--- openmpi-1.3.orig/debian/libopenmpi1.install +++ openmpi-1.3/debian/libopenmpi1.install @@ -0,0 +1,9 @@ +usr/lib/openmpi/lib/libmpi.so.0.0.0 +usr/lib/openmpi/lib/libmpi_cxx.so.0.0.0 +usr/lib/openmpi/lib/libmpi_f77.so.0.0.0 +usr/lib/openmpi/lib/libmpi_f90.so.0.0.0 +usr/lib/openmpi/lib/libopen-pal.so.0.0.0 +usr/lib/openmpi/lib/libopen-rte.so.0.0.0 +usr/lib/openmpi/lib/libmca_common_sm.so.0.0.0 +usr/lib/openmpi/lib/openmpi/*.so +usr/lib/openmpi/lib/mpi.mod --- openmpi-1.3.orig/debian/openmpi-bin.README.Debian +++ openmpi-1.3/debian/openmpi-bin.README.Debian @@ -0,0 +1,68 @@ +OpenMPI for Debian +------------------ + +InfiniBand support +------------------ + +This section provides information about warning messages when OpenFabrics +hardware isn't present. This is fixed since version 1.2.6-3. The information +provided here is only for historical reasons. + +InfiniBand support is build into the package and enabled by default. On +systems that don't have InfiniBand, a warning like this will be issued: + + libibverbs: Fatal: couldn't read uverbs ABI version. + -------------------------------------------------------------------------- + [0,1,2]: OpenIB on host xyz was unable to find any HCAs. + Another transport will be used instead, although this may result in + lower performance. + -------------------------------------------------------------------------- + +To get rid of the warning, you can either disable the use of the "openib" BTL +in /etc/openmpi/openmpi-mca-params.conf by adding a line that reads + + btl = ^openib + +or pass "--mca btl ^openib" to mpirun or mpiexec. + +Please see http://bugs.debian.org/439730 for a discussion on that topic. + + +Thread support +-------------- + +Thread support was enabled until package version 1.2.3-3. It is known to be +broken in upstream and led to segfaults on several architectures. + +We disabled threading for this reason in 1.2.3-4 and will reenable it as soon +as it is known to be working, probably in the 1.3 branch of OpenMPI. Please +see http://bugs.debian.org/435581 for a discussion of this issue. + + +MPI Alternatives +---------------- + +The current OpenMPI version of Debian uses the Debian Alternatives system. +Although OpenMPI might replace most of the existing MPI implementations in the +future (see http://www.open-mpi.org/faq/?category=general#why), we decided to +not affect any other MPI implementation already installed on your system. You +can check which version of MPI you use with + + "update-alternatives --list mpirun" and + "update-alternatives --list mpiexec" + +and list all installed implementations with + + "update-alternatives --display mpirun" and + "update-alternatives --display mpiexec". + +OpenMPI is only listed as default implementation if no other MPI implentation +is present on the system. If you have several implementations installed, you +have to enable OpenMPI explicitly with + + "update-alternatives --set mpirun /usr/bin/mpirun.openmpi" and + "update-alternatives --set mpiexec /usr/bin/mpiexec.openmpi". + +This might change in future versions of the package. + + -- Debian OpenMPI Team , Sat, 31 May 2008 22:21:44 +0200 --- openmpi-1.3.orig/debian/shlibs.local +++ openmpi-1.3/debian/shlibs.local @@ -0,0 +1,2 @@ +# Temporary fix because libibverbs does not provide the information yet +libibverbs 1 libibverbs1 (>= 1.1) --- openmpi-1.3.orig/debian/libopenmpi-dev.prerm +++ openmpi-1.3/debian/libopenmpi-dev.prerm @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +if [ "$1" != "upgrade" ]; then + update-alternatives --remove mpi /usr/lib/openmpi/include +fi + +#DEBHELPER# + +exit 0 --- openmpi-1.3.orig/debian/openmpi-bin.postinst +++ openmpi-1.3/debian/openmpi-bin.postinst @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +update-alternatives \ + --install /usr/bin/mpirun mpirun /usr/bin/mpirun.openmpi 5 \ + --slave /usr/share/man/man1/mpirun.1.gz mpirun.1.gz /usr/share/man/man1/mpirun.openmpi.1.gz + +update-alternatives \ + --install /usr/bin/mpiexec mpiexec /usr/bin/mpiexec.openmpi 5 \ + --slave /usr/share/man/man1/mpiexec.1.gz mpiexec.1.gz /usr/share/man/man1/mpiexec.openmpi.1.gz + +#DEBHELPER# + +exit 0 --- openmpi-1.3.orig/debian/libopenmpi-dev.preinst.off +++ openmpi-1.3/debian/libopenmpi-dev.preinst.off @@ -0,0 +1,29 @@ +#!/bin/sh + +set -e + +for link in /etc/alternatives/libopenmpi.so /etc/alternatives/libmpi++.so +do + echo -n "Looking at $link: " + if test -e $link + then + echo -n "Yes " + else + echo -n "No " + fi + if test -f $link + then + echo -n "Yes " + else + echo -n "No " + fi + if test -h $link + then + echo -n "Yes " + else + echo -n "No " + fi + echo "" +done + +exit 0 --- openmpi-1.3.orig/debian/watch +++ openmpi-1.3/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://www.open-mpi.org/software/ompi/v1.3/downloads/ openmpi-([\d+\.]+)\.tar\.gz --- openmpi-1.3.orig/debian/openmpi-doc.install +++ openmpi-1.3/debian/openmpi-doc.install @@ -0,0 +1 @@ +usr/share/man/man3/* --- openmpi-1.3.orig/debian/openmpi-bin.prerm +++ openmpi-1.3/debian/openmpi-bin.prerm @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +if [ "$1" != "upgrade" ]; then + update-alternatives --remove mpirun /usr/bin/mpirun.openmpi + update-alternatives --remove mpiexec /usr/bin/mpiexec.openmpi +fi + +#DEBHELPER# + +exit 0 --- openmpi-1.3.orig/debian/libopenmpi-dev.postinst +++ openmpi-1.3/debian/libopenmpi-dev.postinst @@ -0,0 +1,24 @@ +#!/bin/sh + +set -e + +update-alternatives \ + --install /usr/include/mpi mpi /usr/lib/openmpi/include 5 \ + --slave /usr/lib/libmpi.so libmpi.so /usr/lib/openmpi/lib/libmpi.so \ + --slave /usr/lib/libmpi++.so libmpi++.so /usr/lib/openmpi/lib/libmpi_cxx.so \ + --slave /usr/bin/mpicc mpicc /usr/bin/mpicc.openmpi \ + --slave /usr/bin/mpic++ mpic++ /usr/bin/mpic++.openmpi \ + --slave /usr/bin/mpicxx mpicxx /usr/bin/mpic++.openmpi \ + --slave /usr/bin/mpiCC mpiCC /usr/bin/mpic++.openmpi \ + --slave /usr/bin/mpif77 mpif77 /usr/bin/mpif77.openmpi \ + --slave /usr/bin/mpif90 mpif90 /usr/bin/mpif90.openmpi \ + --slave /usr/share/man/man1/mpicc.1.gz mpicc.1.gz /usr/share/man/man1/mpicc.openmpi.1.gz \ + --slave /usr/share/man/man1/mpic++.1.gz mpic++.1.gz /usr/share/man/man1/mpic++.openmpi.1.gz \ + --slave /usr/share/man/man1/mpicxx.1.gz mpicxx.1.gz /usr/share/man/man1/mpicxx.openmpi.1.gz \ + --slave /usr/share/man/man1/mpiCC.1.gz mpiCC.1.gz /usr/share/man/man1/mpiCC.openmpi.1.gz \ + --slave /usr/share/man/man1/mpif77.1.gz mpif77.1.gz /usr/share/man/man1/mpif77.openmpi.1.gz \ + --slave /usr/share/man/man1/mpif90.1.gz mpif90.1.gz /usr/share/man/man1/mpif90.openmpi.1.gz + +#DEBHELPER# + +exit 0 --- openmpi-1.3.orig/debian/changelog +++ openmpi-1.3/debian/changelog @@ -0,0 +1,477 @@ +openmpi (1.3-2ubuntu1) jaunty; urgency=low + + * Merge from Debian unstable, remaining Ubuntu change: + - add lpia to supported architectures. + + -- Devid Antonio Filoni Fri, 30 Jan 2009 18:37:12 +0100 + +openmpi (1.3-2) unstable; urgency=low + + * Updated debian/watch to point to 1.3 series download location + * Added a patch to fix build issues with VampirTrace + * Added a patch to fix lintian warnings: manpage-has-errors-from-man + * Added a patch to enable Open MPI to build on MIPS. Many thanks to + Thiemo Seufer, he will be missed! + + -- Manuel Prinz Wed, 28 Jan 2009 23:38:02 +0100 + +openmpi (1.3-1ubuntu1) jaunty; urgency=low + + * Merge from Debian unstable, remaining Ubuntu change: + - add lpia to supported architectures. + + -- Devid Antonio Filoni Thu, 29 Jan 2009 18:29:15 +0100 + +openmpi (1.3-1) unstable; urgency=low + + [ Dirk Eddelbuettel ] + * New upstream version. + * debian/rules: Pass empty LDFLAGS to configure call to prevent seg.fault. + on load due to overly hungry link command on Ubuntu + + [ Manuel Prinz ] + * Header files are now available under /usr/include/openmpi via symlink + (Closes: #493875) + + -- Dirk Eddelbuettel Tue, 20 Jan 2009 20:10:20 -0600 + +openmpi (1.2.8-3ubuntu1) jaunty; urgency=low + + * Merge from debian unstable, remaining changes: + - Unexport LDFLAGS to fix SIGSEGV when initialising mpi. + - Add lpia to supported architectures. + + -- Luca Falavigna Mon, 10 Nov 2008 23:41:23 +0100 + +openmpi (1.2.8-3) unstable; urgency=low + + * Building static libraries (again) (Closes: #502232) + * Removed *.so files from libopenmpi-dev package (Closes: #504161) + + -- Manuel Prinz Sun, 02 Nov 2008 15:53:19 +0100 + +openmpi (1.2.8-2) unstable; urgency=low + + * Reverted back to revision r137 corresponding to Debian release 1.2.7-1 + (Closes: #504161) + + -- Dirk Eddelbuettel Sat, 01 Nov 2008 17:37:07 -0500 + +openmpi (1.2.8-1) unstable; urgency=low + + * New upstream version. + * libopenmpi-dev ships static libraries (Closes: #502232) + * Remaining lintian warnings removed + + -- Sylvestre Ledru Tue, 28 Oct 2008 23:49:37 +0200 + +openmpi (1.2.7-1) unstable; urgency=low + + * New upstream version. + + [ Sylvestre Ledru ] + * debian/control: Added myself to Uploaders field + + [ Manuel Prinz ] + * debian/control: Changed my email address in Uploaders field + + -- Manuel Prinz Wed, 24 Sep 2008 21:22:35 +0200 + +openmpi (1.2.7~rc2-2) unstable; urgency=low + + * Updated README.Debian of libopenmpi-dev. It contained references to closed + bugs. Also added a recommendation on correct linking. + * debian/control: Removed XS-Autobuild field + * debian/copyright: Added missing copyrights and licenses for ROMIO and + GNU libltdl + + -- Manuel Prinz Mon, 25 Aug 2008 22:41:16 +0200 + +openmpi (1.2.7~rc2-1ubuntu2) intrepid; urgency=low + + * Add lpia to supported architectures. + + -- Luca Falavigna Fri, 25 Jul 2008 15:01:34 +0000 + +openmpi (1.2.7~rc2-1ubuntu1) intrepid; urgency=low + + * Merge from Debian unstable, remaining Ubuntu changes: + - unexport LDFLAGS to fix SIGSEGV when initialising mpi. + * Modify Maintainer value to match the DebianMaintainerField + specification. + + -- Cesare Tirabassi Sat, 05 Jul 2008 00:11:13 +0200 + +openmpi (1.2.7~rc2-1) unstable; urgency=low + + [ Dirk Eddelbuettel ] + * New upstream pre-release version + * Thanks to Manuel for the work on this release, and on 1.2.6-3 which + we never uploaded, and to the Open MPI team for the integrating the patch + from 1.2.6-3 into what will be 1.2.7 + + [ Manuel Prinz ] + * debian/control: Changed Standards-Version to 3.8.0 + * Deleted all patches, removed Build-Depends of dpatch + + -- Dirk Eddelbuettel Wed, 02 Jul 2008 19:08:07 -0500 + +openmpi (1.2.6-3) unstable; urgency=low + + [ Manuel Prinz ] + * debian/patches/01openfabrics.dpatch: Applied patch by Jeff Squyres that + deals with the warnings printed when OpenFabrics hardware is not present. + Thanks to Jeff for the patch! + * debian/patches/10fix_config_infiniband.dpatch: Removed, it's obsoleted + by the above mentioned OpenFabrics patch. + * Updated README.Debian with information about the OpenFabrics patch. + * debian/patches/02manpages-lintian-fix.dpatch: Applied patch another patch + by Jeff Squyres that fixes Lintian manpage-has-errors-from-man issues. + Thanks again to Jeff for the patch! + + -- Manuel Prinz Sat, 31 May 2008 23:49:13 +0200 + +openmpi (1.2.6-2ubuntu1) intrepid; urgency=low + + * debian/rules: unexport LDFLAGS + fix SIGSEGV when initialising mpi (LP: #234837). + * Modify Maintainer value to match the DebianMaintainerField + specification. + + -- Cesare Tirabassi Sun, 15 Jun 2008 21:39:00 +0200 + +openmpi (1.2.6-2) unstable; urgency=low + + [ Sylvestre Ledru ] + * Can be built under ppc64. Thanks to Andreas Jochens (Closes: #478427) + + [ Dirk Eddelbuettel ] + * Built and uploaded. Thanks to Sylvestre for applying the patch. + + -- Dirk Eddelbuettel Mon, 05 May 2008 07:16:49 -0500 + +openmpi (1.2.6-1) unstable; urgency=low + + [ Dirk Eddelbuettel ] + * New upstream version + * debian/patches/00list: Disabled man page patches 60* which + has been included upstream in version 1.2.6 + + -- Dirk Eddelbuettel Tue, 08 Apr 2008 20:19:24 -0500 + +openmpi (1.2.5-3) unstable; urgency=low + + [ Dirk Eddelbuettel ] + * debian/control: Version the Conflicts: of libopenmpi-dev with pgapack to + 'pgapack (<= 1.0.0.1-4.2)' as newer pgapack do not exhibit a conflict. + + -- Dirk Eddelbuettel Mon, 10 Mar 2008 16:55:37 -0500 + +openmpi (1.2.5-2) unstable; urgency=low + + [ Dirk Eddelbuettel ] + * Debian build and upload + * Thanks to Manuel for all the work, and to Ondrej for persistent debugging. + + [ Manuel Prinz ] + * Added missing ${shlibs:Depends} to Depends: line of libopenmpi-dev + * debian/shlibs.local: Added entry for libibverbs until the package provides + the necessary information. (Closes: #464705) + * debian/control: Added versioned dependency to libibverbs in Build-Depends + * debian/libopenmpi-dev.postinst: Corrected dead symlinks. Thanks to Ondrej + Certik for reporting the issue! (Closes: #464795) + * debian/patches/60_fix_manpage_name_section.dpatch: Fixing name line in the + MPI_Comm_f2c.3 manpage. Thanks to Jeff Squyres! + + -- Dirk Eddelbuettel Thu, 14 Feb 2008 20:54:06 -0600 + +openmpi (1.2.5-1) unstable; urgency=low + + [ Dirk Eddelbuettel ] + * New upstream version + * debian/patches/00list: Disabled man page patches 20*, 30* and 31* which + have been included upstream + * debian/patches/60_fix_manpage_name_section.dpatch: Applied small correction + * Debian build and upload + + [ Manuel Prinz ] + * debian/*.lintian-override: Deleted, all issues are fixed + - debian/libopenmpi{1,-dev}.links, debian/libopenmpi1.install: + Moved *.so.0 links from /usr/lib/openmpi/lib to /usr/lib. Created + *.so.0.0.0 symlinks in /usr/lib, pointing to /usr/lib/openmpi/lib. + This fixes postinst-has-useless-call-to-ldconfig, postrm-has-useless- + call-to-ldconfig and package-name-doesnt-match-sonames warnings. + - debian/rules, debian/control: Added chrpath to Build-Depends and + deleting all rpath info with chrpath in install-arch target. This + fixes all binary-or-shlib-defines-rpath warnings. + * debian/rules: Adjusted target dependencies to be more sane. Renamed + "test" target to "check". + * Applied a patch by Adam Powell IV that adds /usr/lib/libmpi++.so via + update-alternatives for compatibility with LAM/MPI and MPICH. Thanks to + Adam for the patch! (Closes: #459642) + + -- Dirk Eddelbuettel Wed, 09 Jan 2008 16:30:33 -0600 + +openmpi (1.2.4-5) unstable; urgency=low + + [ Manuel Prinz ] + * Several changes in the libopenmpi-dev package to correct the library + soname links (Closes: #456721) + + [ Dirk Eddelbuettel ] + * Debian build and upload + + -- Dirk Eddelbuettel Tue, 18 Dec 2007 20:00:53 -0600 + +openmpi (1.2.4-4) unstable; urgency=low + + [ Manuel Prinz ] + * debian/rules: Several minor changes + - Added cross-compilation support + - Replaced (un)patch targets with dpatch's makefile snippet + * debian/control: Changed Standards-Version to match latest policy + * debian/control: Several cosmetic changes to control fields + - XS-Vcs-*: Renamed fields to Vcs-* + - XS-DM-Upload-Allowed: Added, allowing uploads for Debian Maintainers + - Homepage: Newly added + - Build-Depends: Removed libsysfs-dev (Closes: #449084) + - Build-Depends: Removed automake + - Uploaders: Added myself + * Moved include files and libraries to /usr/lib/openmpi and use the "mpi" + alternative. Thanks to Nicholas Breen for assistance! (Closes: #452047) + + [ Dirk Eddelbuettel ] + * Debian build and upload + + -- Dirk Eddelbuettel Wed, 12 Dec 2007 09:40:29 -0600 + +openmpi (1.2.4-3) unstable; urgency=low + + [ Manuel Prinz ] + * debian/control: Added openmpi-common to libopenmpi-dev's Depends + (Closes: #445230) + + [ Dirk Eddelbuettel ] + * Debian build and upload + + -- Dirk Eddelbuettel Sat, 06 Oct 2007 07:54:47 -0500 + +openmpi (1.2.4-2) unstable; urgency=low + + [ Manuel Prinz ] + * debian/control: Added sparc to list of supported architectures + + [ Dirk Eddelbuettel ] + * Debian build and upload + + -- Dirk Eddelbuettel Tue, 02 Oct 2007 22:04:04 -0500 + +openmpi (1.2.4-1) unstable; urgency=low + + [ Manuel Prinz ] + * debian/control: Modified package relationships to prevent problems when + upgrading from 1.2.3-4 (Closes: #444432) + + [ Dirk Eddelbuettel ] + * Debian build and upload + + -- Dirk Eddelbuettel Fri, 28 Sep 2007 16:25:13 -0500 + +openmpi (1.2.4-0) unstable; urgency=low + + * New upstream release + + [ Sylvestre Ledru ] + * debian/patches: Removed 50fix_kfreebsd_build patch (Fixed upstream) + + [ Manuel Prinz ] + * Patch added: Please shut up libibverbs (Closes: #439730) + * Moved compiler wrappers from package openmpi-bin to libopenmpi-dev. + + [ Dirk Eddelbuettel ] + * Debian build and upload + + -- Dirk Eddelbuettel Wed, 26 Sep 2007 22:07:15 -0500 + +openmpi (1.2.3-4) unstable; urgency=low + + [ Manuel Prinz ] + * Fixed: openmpi-bin: FTBFS on kFreeBSD and maybe Hurd. Thanks to + Uwe Hermann for providing the patches! (Closes: #437839) + * debian/rules: Disabled threading support (Closes: #435581) + * debian/openmpi-bin.README.Debian: Documented disabling of threading + * debian/patches: Removed 10opal_noexecstack and 99autoconf patches + because they are no longer needed. Thanks to Brian Barrett for + clarification. + + [ Dirk Eddelbuettel ] + * debian/control: Add 'kfreebsd-i386 kfreebsd-amd64 hurd-i386' to list + of build architecture (via Uwe's patch referenced above) + + -- Dirk Eddelbuettel Mon, 20 Aug 2007 20:10:46 -0500 + +openmpi (1.2.3-3) unstable; urgency=low + + [ Manuel Prinz ] + * Fixed: openmpi-bin: libibverbs only available for Linux. Thanks to + Uwe Hermann for providing the patch! (Closes: #435573) + * Changed section of openmpi-doc to doc to satisfy overrides + + [ Dirk Eddelbuettel ] + * debian/control: Trying something moderately radical here -- we are + switching the binary packages from 'Architecture: any' to the set + of five architectures that can actually build the package, given the + lack of upstream support for atomistic operations on the other + architectures (c.f. Debian BTS for openmpi) + + -- Dirk Eddelbuettel Sun, 12 Aug 2007 19:43:29 -0500 + +openmpi (1.2.3-2) unstable; urgency=low + + [ Dirk Eddelbuettel ] + * debian/control: Added some per-package text to the common titles + of the Descriptions + + [ Manuel Prinz ] + * Fixed: FTBFS on GNU/kFreeBSD, Thanks to Petr Salinger for providing + the patch! (Closes: #433142). + * debian/control: Changed priority to "extra" to comply with the Debian + Policy, section 2.5. + + -- Dirk Eddelbuettel Mon, 30 Jul 2007 21:12:11 -0500 + +openmpi (1.2.3-1) unstable; urgency=low + + [ Dirk Eddelbuettel ] + * debian/rules: Ensure AUTHORS NEWS README are installed everywhere + * debian/rules: Add examples/ directory to openmpi-doc + * debian/control: More Conflicts/Replaces/Provides for renamed packages + + -- Dirk Eddelbuettel Sun, 24 Jun 2007 21:18:31 -0500 + +openmpi (1.2.3-0) unstable; urgency=low + + * First release by the new maintainer group 'pkg-openmpi' + + * Takeover of the package is coordinated with the previous maintainer. + Our thanks to Florian for his initial packaging. + * We also would like to thank everybody who has prepared a previous NMU, + + [ Dirk Eddelbuettel ] + * debian/control: Add myself as Uploaders + * debian/patches/31_fix_manpages_lintian.dpatch: Another small man page fix + * debian/{ompi_info.1,opal_wrapper.1,orted.1}: Contributed three man pages + * Renaming some sub-package: + - openmpi-libs0 package renamed to libopenmpi1 + - openmpi-dev package renamed to libopenmpi-dev + - openmpi-dbg package rename to libopenmpi-dbg + - new openmpi-mpidoc package renamed to openmpi-doc + * debian/control: Add Build-Depends: on 'gcc (>= 4.1.2)' to build for the + 'long double' transition -- and as we happen to have renamed the library + package name, is requivalent to the 'ldbl' suffix (Closes: #430321) + + [ Upstream ] + * Fixed: mpif77 and mpif90 incorrect default include file search path + (Closes: #405472) + + [ Sylvestre Ledru ] + * New upstream release 1.2.3 + * New upstream release 1.2.2 (Closes: #427356) + * Patch removed: 20implicit_pointer_conversion.dpatch + * Apply all of Tilman's patches below (Closes: #415338) + * Add the correct XS-Autobuild, XS-Vcs-Svn and XS-Vcs-Browser fields in + debian/control. + * Fix errors in manpages (Lintian complaining) + + [ Manuel Prinz ] + * Patch removed: 30_alpha_inline_assembly.dpatch (Fixed upstream) + * Updated patch of autogenerated autoconf files by Steve Langasek. + * Fixed: Please make openmpi thread-compartible by adding + --enable-mpi-threads and --enable-progress-threads (Closes: #419867) + * Fixed: Use Debian alternatives (Closes: #396761) + * Added watch file. + + [ Tilman Koschnick ] + * New upstream release 1.2.0 + * Acknowledge previous NMUs (Closes: #386491, #392633, #404003, #404026). + * Fix: mpicc.openmpi fails to run when named mpicc.openmpi (Closes: #388216). + * Include manual pages (Closes: #413607). + * Add openmpi-mpidoc package for man pages describing the MPI standard. + * Update copyrights. + + [ Andreas Barth ] + * Spelling mistake in the description of the package (Closes: #390238) + + -- Dirk Eddelbuettel Sat, 23 Jun 2007 18:55:31 -0500 + +openmpi (1.1-2.5) unstable; urgency=high + + * Non-maintainer upload. + * High urgency upload for RC bugfix. + * Add missing build-dependency on libsysfs-dev, which is used in the build + but was previously pulled in via libibverbs-dev. + + -- Steve Langasek Sun, 29 Apr 2007 22:03:58 -0700 + +openmpi (1.1-2.4) unstable; urgency=low + + * Non-maintainer upload. + * 0-day alpha porter upload. + * Fix wrong inline assembler check on alpha: 'zero' is not recognized + as a mnemonic for $31 with binutils. This broken check resulted + in various atomic operations remaining undefined, leading to a build + failure on alpha. Likewise, fix the inline assembly provided in + opal/include/opal/sys/alpha/atomic.h so that it's valid under GNU + binutils. Closes: #384792. + + -- Steve Langasek Sun, 29 Apr 2007 02:27:51 -0700 + +openmpi (1.1-2.3) unstable; urgency=high + + * Non-maintainer upload. + * Add conflicts between openmpi-dev and libopal-dev, pgapack. + Closes: #404003, #404026 + + -- Andreas Barth Fri, 22 Dec 2006 13:57:13 +0000 + +openmpi (1.1-2.2) unstable; urgency=low + + * Non-maintainer upload. + * Remove --host=* from debian/rules to make autoconf not enable + cross-building mode. Thanks to Steve Langasek for pointing this out. + Closes: #392633. + + -- Mark Hymers Sun, 15 Oct 2006 00:46:11 +0100 + +openmpi (1.1-2.1) unstable; urgency=high + + * NMU + * Make sparc build UltraSPARC-only, since upstream seems to have + dropped support for 32-bit machines. closes: #386491. + + -- Clint Adams Tue, 26 Sep 2006 00:31:36 -0400 + +openmpi (1.1-2) unstable; urgency=low + + * Apply patch by Tilman Koschnick to add a new package + with debugging symbols (Closes: #383997). + + -- Florian Ragwitz Wed, 23 Aug 2006 12:43:16 +0200 + +openmpi (1.1-1) unstable; urgency=low + + * New upstream release. + * Applied patch by dann frazier to fix an implicit + pointer conversion on 64bit platforms (Closes: #377725). + * Fixed mix-up in package descriptions (Closes: #379594). + * Use the alternatives system for the mpi* executables in openmpi-bin + (Closes: #377297). + + -- Florian Ragwitz Mon, 7 Aug 2006 16:57:42 +0200 + +openmpi (1.0.2-1) unstable; urgency=low + + * Initial release (Closes: #340426). + + -- Florian Ragwitz Fri, 6 Jan 2006 15:13:31 +0100 + --- openmpi-1.3.orig/debian/libopenmpi-dev.install +++ openmpi-1.3/debian/libopenmpi-dev.install @@ -0,0 +1,13 @@ +usr/bin/opal_wrapper +usr/lib/openmpi/include/* +usr/lib/openmpi/lib/*.so +usr/share/man/man1/mpicc.openmpi.1 +usr/share/man/man1/mpic++.openmpi.1 +usr/share/man/man1/mpicxx.openmpi.1 +usr/share/man/man1/mpif77.openmpi.1 +usr/share/man/man1/mpif90.openmpi.1 +usr/share/man/man1/opalc++.1 +usr/share/man/man1/opalcc.1 +usr/share/man/man1/opal_wrapper.1 +usr/share/man/man1/ortec++.1 +usr/share/man/man1/ortecc.1 --- openmpi-1.3.orig/debian/clean_symlinks +++ openmpi-1.3/debian/clean_symlinks @@ -0,0 +1,591 @@ +ompi/mca/ptl/sm/ptl_sm_send_alternate.c +ompi/mpi/c/profile/pabort.c +ompi/mpi/c/profile/pexscan.c +ompi/mpi/c/profile/padd_error_class.c +ompi/mpi/c/profile/pcomm_get_name.c +ompi/mpi/c/profile/padd_error_code.c +ompi/mpi/c/profile/padd_error_string.c +ompi/mpi/c/profile/paddress.c +ompi/mpi/c/profile/pfile_f2c.c +ompi/mpi/c/profile/pallgather.c +ompi/mpi/c/profile/pcomm_get_parent.c +ompi/mpi/c/profile/pallgatherv.c +ompi/mpi/c/profile/palloc_mem.c +ompi/mpi/c/profile/pcomm_group.c +ompi/mpi/c/profile/pallreduce.c +ompi/mpi/c/profile/palltoall.c +ompi/mpi/c/profile/palltoallv.c +ompi/mpi/c/profile/pcomm_join.c +ompi/mpi/c/profile/palltoallw.c +ompi/mpi/c/profile/pattr_delete.c +ompi/mpi/c/profile/pcomm_rank.c +ompi/mpi/c/profile/pattr_get.c +ompi/mpi/c/profile/pfile_c2f.c +ompi/mpi/c/profile/pattr_put.c +ompi/mpi/c/profile/pbarrier.c +ompi/mpi/c/profile/pfile_close.c +ompi/mpi/c/profile/pbcast.c +ompi/mpi/c/profile/pfile_open.c +ompi/mpi/c/profile/pbsend.c +ompi/mpi/c/profile/pbsend_init.c +ompi/mpi/c/profile/pbuffer_attach.c +ompi/mpi/c/profile/pcomm_remote_group.c +ompi/mpi/c/profile/pbuffer_detach.c +ompi/mpi/c/profile/pcomm_remote_size.c +ompi/mpi/c/profile/pcancel.c +ompi/mpi/c/profile/pfile_iread.c +ompi/mpi/c/profile/pcart_coords.c +ompi/mpi/c/profile/perrhandler_c2f.c +ompi/mpi/c/profile/pcart_create.c +ompi/mpi/c/profile/pcartdim_get.c +ompi/mpi/c/profile/pcomm_set_attr.c +ompi/mpi/c/profile/pcart_get.c +ompi/mpi/c/profile/pcart_map.c +ompi/mpi/c/profile/pfile_read.c +ompi/mpi/c/profile/pcart_rank.c +ompi/mpi/c/profile/pcart_shift.c +ompi/mpi/c/profile/pcomm_set_name.c +ompi/mpi/c/profile/pcart_sub.c +ompi/mpi/c/profile/pclose_port.c +ompi/mpi/c/profile/pcomm_accept.c +ompi/mpi/c/profile/pcomm_size.c +ompi/mpi/c/profile/pcomm_c2f.c +ompi/mpi/c/profile/pfile_seek.c +ompi/mpi/c/profile/pcomm_call_errhandler.c +ompi/mpi/c/profile/pcomm_compare.c +ompi/mpi/c/profile/pcomm_connect.c +ompi/mpi/c/profile/pcomm_spawn.c +ompi/mpi/c/profile/pcomm_create.c +ompi/mpi/c/profile/pcomm_create_errhandler.c +ompi/mpi/c/profile/pcomm_create_keyval.c +ompi/mpi/c/profile/pcomm_get_errhandler.c +ompi/mpi/c/profile/pcomm_delete_attr.c +ompi/mpi/c/profile/pcomm_split.c +ompi/mpi/c/profile/pcomm_disconnect.c +ompi/mpi/c/profile/pcomm_dup.c +ompi/mpi/c/profile/pcomm_f2c.c +ompi/mpi/c/profile/pfile_sync.c +ompi/mpi/c/profile/pcomm_free.c +ompi/mpi/c/profile/pcomm_test_inter.c +ompi/mpi/c/profile/pcomm_free_keyval.c +ompi/mpi/c/profile/pcomm_get_attr.c +ompi/mpi/c/profile/pdims_create.c +ompi/mpi/c/profile/pcomm_set_errhandler.c +ompi/mpi/c/profile/pfile_seek_shared.c +ompi/mpi/c/profile/pcomm_spawn_multiple.c +ompi/mpi/c/profile/perrhandler_create.c +ompi/mpi/c/profile/pfile_read_ordered.c +ompi/mpi/c/profile/perrhandler_f2c.c +ompi/mpi/c/profile/pfile_write_all.c +ompi/mpi/c/profile/perrhandler_free.c +ompi/mpi/c/profile/perrhandler_get.c +ompi/mpi/c/profile/pfile_write_at_all.c +ompi/mpi/c/profile/perrhandler_set.c +ompi/mpi/c/profile/perror_class.c +ompi/mpi/c/profile/pfile_write_all_end.c +ompi/mpi/c/profile/perror_string.c +ompi/mpi/c/profile/pfile_call_errhandler.c +ompi/mpi/c/profile/pfile_write_at.c +ompi/mpi/c/profile/pfile_create_errhandler.c +ompi/mpi/c/profile/pfile_read_ordered_end.c +ompi/mpi/c/profile/pfile_delete.c +ompi/mpi/c/profile/pfile_write_shared.c +ompi/mpi/c/profile/pfile_get_amode.c +ompi/mpi/c/profile/pfile_get_atomicity.c +ompi/mpi/c/profile/pfile_get_byte_offset.c +ompi/mpi/c/profile/pfile_read_shared.c +ompi/mpi/c/profile/pfile_get_errhandler.c +ompi/mpi/c/profile/pfile_get_group.c +ompi/mpi/c/profile/pfile_write.c +ompi/mpi/c/profile/pfile_get_info.c +ompi/mpi/c/profile/pfile_get_position.c +ompi/mpi/c/profile/pfile_set_size.c +ompi/mpi/c/profile/pfile_get_position_shared.c +ompi/mpi/c/profile/pfile_get_size.c +ompi/mpi/c/profile/pfile_write_ordered.c +ompi/mpi/c/profile/pfile_get_type_extent.c +ompi/mpi/c/profile/pfile_set_atomicity.c +ompi/mpi/c/profile/pfile_get_view.c +ompi/mpi/c/profile/pfile_iread_at.c +ompi/mpi/c/profile/pfinalize.c +ompi/mpi/c/profile/pgather.c +ompi/mpi/c/profile/pfile_iread_shared.c +ompi/mpi/c/profile/pfile_iwrite_at.c +ompi/mpi/c/profile/pfile_iwrite.c +ompi/mpi/c/profile/pfinalized.c +ompi/mpi/c/profile/pfile_iwrite_shared.c +ompi/mpi/c/profile/pfile_set_errhandler.c +ompi/mpi/c/profile/pfile_preallocate.c +ompi/mpi/c/profile/pfile_read_all_begin.c +ompi/mpi/c/profile/pfile_read_all.c +ompi/mpi/c/profile/pfree_mem.c +ompi/mpi/c/profile/pfile_read_all_end.c +ompi/mpi/c/profile/pfile_set_info.c +ompi/mpi/c/profile/pfile_read_at_all_begin.c +ompi/mpi/c/profile/pfile_read_at_all.c +ompi/mpi/c/profile/pfile_read_at_all_end.c +ompi/mpi/c/profile/pfile_set_view.c +ompi/mpi/c/profile/pfile_read_at.c +ompi/mpi/c/profile/pfile_read_ordered_begin.c +ompi/mpi/c/profile/pfile_write_all_begin.c +ompi/mpi/c/profile/pinit_thread.c +ompi/mpi/c/profile/pfile_write_at_all_begin.c +ompi/mpi/c/profile/pfile_write_at_all_end.c +ompi/mpi/c/profile/pinfo_get_nthkey.c +ompi/mpi/c/profile/pfile_write_ordered_begin.c +ompi/mpi/c/profile/pinfo_get_valuelen.c +ompi/mpi/c/profile/pfile_write_ordered_end.c +ompi/mpi/c/profile/pgatherv.c +ompi/mpi/c/profile/pget_address.c +ompi/mpi/c/profile/pget_count.c +ompi/mpi/c/profile/pop_c2f.c +ompi/mpi/c/profile/pget_elements.c +ompi/mpi/c/profile/pget_processor_name.c +ompi/mpi/c/profile/pinfo_set.c +ompi/mpi/c/profile/pget_version.c +ompi/mpi/c/profile/pintercomm_create.c +ompi/mpi/c/profile/pgraph_create.c +ompi/mpi/c/profile/pgraph_get.c +ompi/mpi/c/profile/pintercomm_merge.c +ompi/mpi/c/profile/pgraph_map.c +ompi/mpi/c/profile/pgraph_neighbors_count.c +ompi/mpi/c/profile/pgraph_neighbors.c +ompi/mpi/c/profile/piprobe.c +ompi/mpi/c/profile/pgraphdims_get.c +ompi/mpi/c/profile/pgrequest_complete.c +ompi/mpi/c/profile/pinit.c +ompi/mpi/c/profile/pgrequest_start.c +ompi/mpi/c/profile/pirecv.c +ompi/mpi/c/profile/pgroup_c2f.c +ompi/mpi/c/profile/pgroup_compare.c +ompi/mpi/c/profile/pirsend.c +ompi/mpi/c/profile/pgroup_difference.c +ompi/mpi/c/profile/pgroup_excl.c +ompi/mpi/c/profile/pis_thread_main.c +ompi/mpi/c/profile/pgroup_f2c.c +ompi/mpi/c/profile/pgroup_free.c +ompi/mpi/c/profile/pisend.c +ompi/mpi/c/profile/pgroup_incl.c +ompi/mpi/c/profile/pgroup_intersection.c +ompi/mpi/c/profile/pgroup_range_excl.c +ompi/mpi/c/profile/pissend.c +ompi/mpi/c/profile/pgroup_range_incl.c +ompi/mpi/c/profile/pgroup_rank.c +ompi/mpi/c/profile/pkeyval_create.c +ompi/mpi/c/profile/pgroup_size.c +ompi/mpi/c/profile/pgroup_translate_ranks.c +ompi/mpi/c/profile/pinitialized.c +ompi/mpi/c/profile/pgroup_union.c +ompi/mpi/c/profile/pkeyval_free.c +ompi/mpi/c/profile/pibsend.c +ompi/mpi/c/profile/pop_create.c +ompi/mpi/c/profile/pinfo_c2f.c +ompi/mpi/c/profile/pop_f2c.c +ompi/mpi/c/profile/pinfo_create.c +ompi/mpi/c/profile/pinfo_delete.c +ompi/mpi/c/profile/plookup_name.c +ompi/mpi/c/profile/pinfo_dup.c +ompi/mpi/c/profile/popen_port.c +ompi/mpi/c/profile/pinfo_f2c.c +ompi/mpi/c/profile/pinfo_free.c +ompi/mpi/c/profile/pinfo_get.c +ompi/mpi/c/profile/pinfo_get_nkeys.c +ompi/mpi/c/profile/pop_free.c +ompi/mpi/c/profile/ptype_create_keyval.c +ompi/mpi/c/profile/ppack_external.c +ompi/mpi/c/profile/ptype_create_struct.c +ompi/mpi/c/profile/ppack_external_size.c +ompi/mpi/c/profile/ppack.c +ompi/mpi/c/profile/ptype_lb.c +ompi/mpi/c/profile/ppack_size.c +ompi/mpi/c/profile/ptype_delete_attr.c +ompi/mpi/c/profile/ppcontrol.c +ompi/mpi/c/profile/pprobe.c +ompi/mpi/c/profile/ppublish_name.c +ompi/mpi/c/profile/pquery_thread.c +ompi/mpi/c/profile/precv_init.c +ompi/mpi/c/profile/ptype_dup.c +ompi/mpi/c/profile/precv.c +ompi/mpi/c/profile/ptype_size.c +ompi/mpi/c/profile/preduce.c +ompi/mpi/c/profile/ptype_ub.c +ompi/mpi/c/profile/preduce_scatter.c +ompi/mpi/c/profile/pregister_datarep.c +ompi/mpi/c/profile/ptype_extent.c +ompi/mpi/c/profile/prequest_c2f.c +ompi/mpi/c/profile/prequest_f2c.c +ompi/mpi/c/profile/ptype_f2c.c +ompi/mpi/c/profile/prequest_free.c +ompi/mpi/c/profile/prequest_get_status.c +ompi/mpi/c/profile/ptype_create_indexed_block.c +ompi/mpi/c/profile/prsend_init.c +ompi/mpi/c/profile/ptype_free.c +ompi/mpi/c/profile/prsend.c +ompi/mpi/c/profile/pwtick.c +ompi/mpi/c/profile/pscan.c +ompi/mpi/c/profile/pscatter.c +ompi/mpi/c/profile/punpack.c +ompi/mpi/c/profile/pscatterv.c +ompi/mpi/c/profile/psend.c +ompi/mpi/c/profile/pwait.c +ompi/mpi/c/profile/psend_init.c +ompi/mpi/c/profile/psendrecv.c +ompi/mpi/c/profile/psendrecv_replace.c +ompi/mpi/c/profile/ptype_free_keyval.c +ompi/mpi/c/profile/pssend_init.c +ompi/mpi/c/profile/pssend.c +ompi/mpi/c/profile/pwaitall.c +ompi/mpi/c/profile/pstart.c +ompi/mpi/c/profile/pstartall.c +ompi/mpi/c/profile/pwaitany.c +ompi/mpi/c/profile/pstatus_c2f.c +ompi/mpi/c/profile/ptype_get_attr.c +ompi/mpi/c/profile/pstatus_f2c.c +ompi/mpi/c/profile/pstatus_set_cancelled.c +ompi/mpi/c/profile/pstatus_set_elements.c +ompi/mpi/c/profile/ptype_create_hindexed.c +ompi/mpi/c/profile/ptestall.c +ompi/mpi/c/profile/ptestany.c +ompi/mpi/c/profile/pwaitsome.c +ompi/mpi/c/profile/ptest.c +ompi/mpi/c/profile/ptest_cancelled.c +ompi/mpi/c/profile/ptype_get_contents.c +ompi/mpi/c/profile/ptestsome.c +ompi/mpi/c/profile/pwtime.c +ompi/mpi/c/profile/ptopo_test.c +ompi/mpi/c/profile/ptype_get_envelope.c +ompi/mpi/c/profile/ptype_c2f.c +ompi/mpi/c/profile/ptype_commit.c +ompi/mpi/c/profile/ptype_contiguous.c +ompi/mpi/c/profile/ptype_get_extent.c +ompi/mpi/c/profile/ptype_create_darray.c +ompi/mpi/c/profile/ptype_create_f90_complex.c +ompi/mpi/c/profile/ptype_create_hvector.c +ompi/mpi/c/profile/ptype_create_f90_integer.c +ompi/mpi/c/profile/ptype_create_f90_real.c +ompi/mpi/c/profile/ptype_get_name.c +ompi/mpi/c/profile/ptype_create_resized.c +ompi/mpi/c/profile/ptype_create_subarray.c +ompi/mpi/c/profile/ptype_get_true_extent.c +ompi/mpi/c/profile/ptype_hindexed.c +ompi/mpi/c/profile/ptype_hvector.c +ompi/mpi/c/profile/ptype_indexed.c +ompi/mpi/c/profile/ptype_match_size.c +ompi/mpi/c/profile/ptype_set_attr.c +ompi/mpi/c/profile/ptype_set_name.c +ompi/mpi/c/profile/ptype_struct.c +ompi/mpi/c/profile/ptype_vector.c +ompi/mpi/c/profile/punpack_external.c +ompi/mpi/c/profile/punpublish_name.c +ompi/mpi/f77/profile/pabort_f.c +ompi/mpi/f77/profile/pexscan_f.c +ompi/mpi/f77/profile/padd_error_class_f.c +ompi/mpi/f77/profile/padd_error_code_f.c +ompi/mpi/f77/profile/padd_error_string_f.c +ompi/mpi/f77/profile/pcomm_get_errhandler_f.c +ompi/mpi/f77/profile/paddress_f.c +ompi/mpi/f77/profile/pallgather_f.c +ompi/mpi/f77/profile/pcomm_get_parent_f.c +ompi/mpi/f77/profile/pallgatherv_f.c +ompi/mpi/f77/profile/pcomm_group_f.c +ompi/mpi/f77/profile/palloc_mem_f.c +ompi/mpi/f77/profile/pcomm_set_attr_f.c +ompi/mpi/f77/profile/pallreduce_f.c +ompi/mpi/f77/profile/palltoall_f.c +ompi/mpi/f77/profile/pcomm_join_f.c +ompi/mpi/f77/profile/palltoallv_f.c +ompi/mpi/f77/profile/palltoallw_f.c +ompi/mpi/f77/profile/pcomm_rank_f.c +ompi/mpi/f77/profile/pattr_delete_f.c +ompi/mpi/f77/profile/pattr_get_f.c +ompi/mpi/f77/profile/pcomm_remote_size_f.c +ompi/mpi/f77/profile/pattr_put_f.c +ompi/mpi/f77/profile/pbarrier_f.c +ompi/mpi/f77/profile/pbcast_f.c +ompi/mpi/f77/profile/pfree_mem_f.c +ompi/mpi/f77/profile/pbsend_f.c +ompi/mpi/f77/profile/pbsend_init_f.c +ompi/mpi/f77/profile/pcomm_set_name_f.c +ompi/mpi/f77/profile/pbuffer_attach_f.c +ompi/mpi/f77/profile/pbuffer_detach_f.c +ompi/mpi/f77/profile/pcomm_size_f.c +ompi/mpi/f77/profile/pcancel_f.c +ompi/mpi/f77/profile/pfinalize_f.c +ompi/mpi/f77/profile/pcart_coords_f.c +ompi/mpi/f77/profile/pcart_create_f.c +ompi/mpi/f77/profile/pcomm_spawn_f.c +ompi/mpi/f77/profile/pcartdim_get_f.c +ompi/mpi/f77/profile/pcart_get_f.c +ompi/mpi/f77/profile/pcomm_split_f.c +ompi/mpi/f77/profile/pcart_map_f.c +ompi/mpi/f77/profile/pcart_rank_f.c +ompi/mpi/f77/profile/pcomm_test_inter_f.c +ompi/mpi/f77/profile/pcart_shift_f.c +ompi/mpi/f77/profile/pdims_create_f.c +ompi/mpi/f77/profile/pcart_sub_f.c +ompi/mpi/f77/profile/pclose_port_f.c +ompi/mpi/f77/profile/pcomm_accept_f.c +ompi/mpi/f77/profile/perrhandler_free_f.c +ompi/mpi/f77/profile/pcomm_call_errhandler_f.c +ompi/mpi/f77/profile/pcomm_compare_f.c +ompi/mpi/f77/profile/perrhandler_get_f.c +ompi/mpi/f77/profile/pcomm_connect_f.c +ompi/mpi/f77/profile/perror_class_f.c +ompi/mpi/f77/profile/pcomm_create_errhandler_f.c +ompi/mpi/f77/profile/pcomm_create_f.c +ompi/mpi/f77/profile/pcomm_create_keyval_f.c +ompi/mpi/f77/profile/pcomm_get_attr_f.c +ompi/mpi/f77/profile/pcomm_delete_attr_f.c +ompi/mpi/f77/profile/pcomm_disconnect_f.c +ompi/mpi/f77/profile/pcomm_get_name_f.c +ompi/mpi/f77/profile/pcomm_dup_f.c +ompi/mpi/f77/profile/perrhandler_set_f.c +ompi/mpi/f77/profile/pcomm_free_f.c +ompi/mpi/f77/profile/pcomm_free_keyval_f.c +ompi/mpi/f77/profile/pgather_f.c +ompi/mpi/f77/profile/pcomm_remote_group_f.c +ompi/mpi/f77/profile/pcomm_set_errhandler_f.c +ompi/mpi/f77/profile/pfile_read_ordered_begin_f.c +ompi/mpi/f77/profile/pcomm_spawn_multiple_f.c +ompi/mpi/f77/profile/pfile_read_ordered_end_f.c +ompi/mpi/f77/profile/perrhandler_create_f.c +ompi/mpi/f77/profile/pfile_set_size_f.c +ompi/mpi/f77/profile/perror_string_f.c +ompi/mpi/f77/profile/pfile_call_errhandler_f.c +ompi/mpi/f77/profile/pfile_close_f.c +ompi/mpi/f77/profile/pfile_set_view_f.c +ompi/mpi/f77/profile/pfile_create_errhandler_f.c +ompi/mpi/f77/profile/pfile_read_ordered_f.c +ompi/mpi/f77/profile/pfile_delete_f.c +ompi/mpi/f77/profile/pfile_get_amode_f.c +ompi/mpi/f77/profile/pfile_sync_f.c +ompi/mpi/f77/profile/pfile_get_atomicity_f.c +ompi/mpi/f77/profile/pfile_get_byte_offset_f.c +ompi/mpi/f77/profile/pfile_read_shared_f.c +ompi/mpi/f77/profile/pfile_get_errhandler_f.c +ompi/mpi/f77/profile/pfile_get_group_f.c +ompi/mpi/f77/profile/pfile_get_info_f.c +ompi/mpi/f77/profile/pfile_write_all_f.c +ompi/mpi/f77/profile/pfile_get_position_f.c +ompi/mpi/f77/profile/pfile_seek_f.c +ompi/mpi/f77/profile/pfile_get_position_shared_f.c +ompi/mpi/f77/profile/pfile_read_f.c +ompi/mpi/f77/profile/pfile_get_size_f.c +ompi/mpi/f77/profile/pfile_get_type_extent_f.c +ompi/mpi/f77/profile/pfile_get_view_f.c +ompi/mpi/f77/profile/pfile_write_at_f.c +ompi/mpi/f77/profile/pfile_iread_at_f.c +ompi/mpi/f77/profile/pfile_iread_f.c +ompi/mpi/f77/profile/pfile_write_f.c +ompi/mpi/f77/profile/pfile_iread_shared_f.c +ompi/mpi/f77/profile/pfile_seek_shared_f.c +ompi/mpi/f77/profile/pfile_iwrite_at_f.c +ompi/mpi/f77/profile/pfile_iwrite_f.c +ompi/mpi/f77/profile/pfinalized_f.c +ompi/mpi/f77/profile/pfile_iwrite_shared_f.c +ompi/mpi/f77/profile/pfile_open_f.c +ompi/mpi/f77/profile/pfile_preallocate_f.c +ompi/mpi/f77/profile/pfile_set_atomicity_f.c +ompi/mpi/f77/profile/pfile_read_all_begin_f.c +ompi/mpi/f77/profile/pfile_read_all_end_f.c +ompi/mpi/f77/profile/pfile_set_errhandler_f.c +ompi/mpi/f77/profile/pfile_read_all_f.c +ompi/mpi/f77/profile/pfile_read_at_all_begin_f.c +ompi/mpi/f77/profile/pfile_read_at_all_end_f.c +ompi/mpi/f77/profile/pfile_set_info_f.c +ompi/mpi/f77/profile/pfile_read_at_all_f.c +ompi/mpi/f77/profile/pfile_read_at_f.c +ompi/mpi/f77/profile/pgatherv_f.c +ompi/mpi/f77/profile/pfile_write_all_begin_f.c +ompi/mpi/f77/profile/pfile_write_all_end_f.c +ompi/mpi/f77/profile/pinit_thread_f.c +ompi/mpi/f77/profile/pfile_write_at_all_begin_f.c +ompi/mpi/f77/profile/pfile_write_at_all_end_f.c +ompi/mpi/f77/profile/pfile_write_at_all_f.c +ompi/mpi/f77/profile/pinfo_get_nkeys_f.c +ompi/mpi/f77/profile/pfile_write_ordered_begin_f.c +ompi/mpi/f77/profile/pinfo_get_f.c +ompi/mpi/f77/profile/pop_free_f.c +ompi/mpi/f77/profile/pfile_write_ordered_end_f.c +ompi/mpi/f77/profile/pfile_write_ordered_f.c +ompi/mpi/f77/profile/pinfo_get_nthkey_f.c +ompi/mpi/f77/profile/pfile_write_shared_f.c +ompi/mpi/f77/profile/pget_address_f.c +ompi/mpi/f77/profile/pintercomm_merge_f.c +ompi/mpi/f77/profile/pget_count_f.c +ompi/mpi/f77/profile/pget_elements_f.c +ompi/mpi/f77/profile/piprobe_f.c +ompi/mpi/f77/profile/pget_processor_name_f.c +ompi/mpi/f77/profile/pinfo_get_valuelen_f.c +ompi/mpi/f77/profile/pget_version_f.c +ompi/mpi/f77/profile/plookup_name_f.c +ompi/mpi/f77/profile/pgraph_create_f.c +ompi/mpi/f77/profile/pgraphdims_get_f.c +ompi/mpi/f77/profile/pirecv_f.c +ompi/mpi/f77/profile/pgraph_get_f.c +ompi/mpi/f77/profile/pgraph_map_f.c +ompi/mpi/f77/profile/pirsend_f.c +ompi/mpi/f77/profile/pgraph_neighbors_count_f.c +ompi/mpi/f77/profile/pgraph_neighbors_f.c +ompi/mpi/f77/profile/pinfo_set_f.c +ompi/mpi/f77/profile/pgrequest_complete_f.c +ompi/mpi/f77/profile/pgrequest_start_f.c +ompi/mpi/f77/profile/pgroup_compare_f.c +ompi/mpi/f77/profile/pisend_f.c +ompi/mpi/f77/profile/pgroup_difference_f.c +ompi/mpi/f77/profile/pinit_f.c +ompi/mpi/f77/profile/pgroup_excl_f.c +ompi/mpi/f77/profile/pgroup_free_f.c +ompi/mpi/f77/profile/pissend_f.c +ompi/mpi/f77/profile/pgroup_incl_f.c +ompi/mpi/f77/profile/pgroup_intersection_f.c +ompi/mpi/f77/profile/pgroup_range_excl_f.c +ompi/mpi/f77/profile/pinitialized_f.c +ompi/mpi/f77/profile/pgroup_range_incl_f.c +ompi/mpi/f77/profile/pgroup_rank_f.c +ompi/mpi/f77/profile/pis_thread_main_f.c +ompi/mpi/f77/profile/pgroup_size_f.c +ompi/mpi/f77/profile/pgroup_translate_ranks_f.c +ompi/mpi/f77/profile/pintercomm_create_f.c +ompi/mpi/f77/profile/pgroup_union_f.c +ompi/mpi/f77/profile/pkeyval_create_f.c +ompi/mpi/f77/profile/pibsend_f.c +ompi/mpi/f77/profile/pinfo_create_f.c +ompi/mpi/f77/profile/pinfo_delete_f.c +ompi/mpi/f77/profile/pkeyval_free_f.c +ompi/mpi/f77/profile/pinfo_dup_f.c +ompi/mpi/f77/profile/pinfo_free_f.c +ompi/mpi/f77/profile/ppack_f.c +ompi/mpi/f77/profile/ptype_delete_attr_f.c +ompi/mpi/f77/profile/pop_create_f.c +ompi/mpi/f77/profile/ptype_dup_f.c +ompi/mpi/f77/profile/popen_port_f.c +ompi/mpi/f77/profile/ptype_get_attr_f.c +ompi/mpi/f77/profile/ppack_external_f.c +ompi/mpi/f77/profile/ppack_external_size_f.c +ompi/mpi/f77/profile/ptype_create_f90_real_f.c +ompi/mpi/f77/profile/ptype_ub_f.c +ompi/mpi/f77/profile/ppack_size_f.c +ompi/mpi/f77/profile/ptype_extent_f.c +ompi/mpi/f77/profile/ppcontrol_f.c +ompi/mpi/f77/profile/pprobe_f.c +ompi/mpi/f77/profile/ppublish_name_f.c +ompi/mpi/f77/profile/ptype_free_f.c +ompi/mpi/f77/profile/pquery_thread_f.c +ompi/mpi/f77/profile/precv_f.c +ompi/mpi/f77/profile/punpack_f.c +ompi/mpi/f77/profile/precv_init_f.c +ompi/mpi/f77/profile/ptype_free_keyval_f.c +ompi/mpi/f77/profile/preduce_f.c +ompi/mpi/f77/profile/preduce_scatter_f.c +ompi/mpi/f77/profile/pregister_datarep_f.c +ompi/mpi/f77/profile/ptype_create_resized_f.c +ompi/mpi/f77/profile/prequest_free_f.c +ompi/mpi/f77/profile/prequest_get_status_f.c +ompi/mpi/f77/profile/prsend_f.c +ompi/mpi/f77/profile/prsend_init_f.c +ompi/mpi/f77/profile/ptype_get_extent_f.c +ompi/mpi/f77/profile/pscan_f.c +ompi/mpi/f77/profile/pwaitall_f.c +ompi/mpi/f77/profile/pscatter_f.c +ompi/mpi/f77/profile/ptype_get_name_f.c +ompi/mpi/f77/profile/pscatterv_f.c +ompi/mpi/f77/profile/psend_f.c +ompi/mpi/f77/profile/pwaitany_f.c +ompi/mpi/f77/profile/psend_init_f.c +ompi/mpi/f77/profile/psendrecv_f.c +ompi/mpi/f77/profile/ptype_hindexed_f.c +ompi/mpi/f77/profile/psendrecv_replace_f.c +ompi/mpi/f77/profile/ptype_create_hindexed_f.c +ompi/mpi/f77/profile/pssend_f.c +ompi/mpi/f77/profile/pssend_init_f.c +ompi/mpi/f77/profile/pstartall_f.c +ompi/mpi/f77/profile/ptype_hvector_f.c +ompi/mpi/f77/profile/pstart_f.c +ompi/mpi/f77/profile/pwait_f.c +ompi/mpi/f77/profile/pstatus_set_cancelled_f.c +ompi/mpi/f77/profile/pstatus_set_elements_f.c +ompi/mpi/f77/profile/ptype_create_hvector_f.c +ompi/mpi/f77/profile/ptestall_f.c +ompi/mpi/f77/profile/ptestany_f.c +ompi/mpi/f77/profile/ptype_indexed_f.c +ompi/mpi/f77/profile/ptest_cancelled_f.c +ompi/mpi/f77/profile/ptest_f.c +ompi/mpi/f77/profile/pwaitsome_f.c +ompi/mpi/f77/profile/ptestsome_f.c +ompi/mpi/f77/profile/ptype_lb_f.c +ompi/mpi/f77/profile/ptopo_test_f.c +ompi/mpi/f77/profile/ptype_commit_f.c +ompi/mpi/f77/profile/ptype_match_size_f.c +ompi/mpi/f77/profile/ptype_contiguous_f.c +ompi/mpi/f77/profile/ptype_create_darray_f.c +ompi/mpi/f77/profile/ptype_create_keyval_f.c +ompi/mpi/f77/profile/ptype_create_f90_complex_f.c +ompi/mpi/f77/profile/ptype_create_f90_integer_f.c +ompi/mpi/f77/profile/ptype_set_attr_f.c +ompi/mpi/f77/profile/ptype_create_indexed_block_f.c +ompi/mpi/f77/profile/ptype_create_struct_f.c +ompi/mpi/f77/profile/ptype_create_subarray_f.c +ompi/mpi/f77/profile/pwin_unlock_f.c +ompi/mpi/f77/profile/pwin_wait_f.c +ompi/mpi/f77/profile/ptype_get_contents_f.c +ompi/mpi/f77/profile/ptype_get_envelope_f.c +ompi/mpi/f77/profile/ptype_get_true_extent_f.c +ompi/mpi/f77/profile/ptype_set_name_f.c +ompi/mpi/f77/profile/ptype_size_f.c +ompi/mpi/f77/profile/ptype_struct_f.c +ompi/mpi/f77/profile/ptype_vector_f.c +ompi/mpi/f77/profile/punpack_external_f.c +ompi/mpi/f77/profile/punpublish_name_f.c +ompi/mpi/f77/profile/pwtick_f.c +ompi/mpi/f77/profile/pwtime_f.c +ompi/mpi/f77/profile/paccumulate_f.c +ompi/mpi/f77/profile/pget_f.c +ompi/mpi/f77/profile/pput_f.c +ompi/mpi/f77/profile/pwin_call_errhandler_f.c +ompi/mpi/f77/profile/pwin_complete_f.c +ompi/mpi/f77/profile/pwin_create_errhandler_f.c +ompi/mpi/f77/profile/pwin_create_f.c +ompi/mpi/f77/profile/pwin_create_keyval_f.c +ompi/mpi/f77/profile/pwin_delete_attr_f.c +ompi/mpi/f77/profile/pwin_fence_f.c +ompi/mpi/f77/profile/pwin_free_f.c +ompi/mpi/f77/profile/pwin_free_keyval_f.c +ompi/mpi/f77/profile/pwin_get_attr_f.c +ompi/mpi/f77/profile/pwin_get_errhandler_f.c +ompi/mpi/f77/profile/pwin_get_group_f.c +ompi/mpi/f77/profile/pwin_get_name_f.c +ompi/mpi/f77/profile/pwin_lock_f.c +ompi/mpi/f77/profile/pwin_post_f.c +ompi/mpi/f77/profile/pwin_set_attr_f.c +ompi/mpi/f77/profile/pwin_set_errhandler_f.c +ompi/mpi/f77/profile/pwin_set_name_f.c +ompi/mpi/f77/profile/pwin_start_f.c +ompi/mpi/f77/profile/pwin_test_f.c +ompi/mpi/c/profile/paccumulate.c +ompi/mpi/c/profile/pget.c +ompi/mpi/c/profile/pput.c +ompi/mpi/c/profile/pwin_c2f.c +ompi/mpi/c/profile/pwin_call_errhandler.c +ompi/mpi/c/profile/pwin_complete.c +ompi/mpi/c/profile/pwin_create_errhandler.c +ompi/mpi/c/profile/pwin_create_keyval.c +ompi/mpi/c/profile/pwin_create.c +ompi/mpi/c/profile/pwin_delete_attr.c +ompi/mpi/c/profile/pwin_f2c.c +ompi/mpi/c/profile/pwin_fence.c +ompi/mpi/c/profile/pwin_free_keyval.c +ompi/mpi/c/profile/pwin_free.c +ompi/mpi/c/profile/pwin_get_attr.c +ompi/mpi/c/profile/pwin_get_errhandler.c +ompi/mpi/c/profile/pwin_get_group.c +ompi/mpi/c/profile/pwin_get_name.c +ompi/mpi/c/profile/pwin_lock.c +ompi/mpi/c/profile/pwin_post.c +ompi/mpi/c/profile/pwin_set_attr.c +ompi/mpi/c/profile/pwin_set_errhandler.c +ompi/mpi/c/profile/pwin_set_name.c +ompi/mpi/c/profile/pwin_start.c +ompi/mpi/c/profile/pwin_test.c +ompi/mpi/c/profile/pwin_unlock.c +ompi/mpi/c/profile/pwin_wait.c --- openmpi-1.3.orig/debian/copyright +++ openmpi-1.3/debian/copyright @@ -0,0 +1,151 @@ +This package was debianized by Florian Ragwitz on +Fri, 6 Jan 2006 15:13:31 +0100. + +It was downloaded from http://open-mpi.org/ + +Copyright Holder: + +Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana + University Research and Technology + Corporation. All rights reserved. +Copyright (c) 2004-2007 The University of Tennessee and The University + of Tennessee Research Foundation. All rights + reserved. +Copyright (c) 2004-2006 High Performance Computing Center Stuttgart, + University of Stuttgart. All rights reserved. +Copyright (c) 2004-2006 The Regents of the University of California. + All rights reserved. +Copyright (c) 2006-2007 Los Alamos National Security, LLC. All rights + reserved. +Copyright (c) 2006-2007 Cisco Systems, Inc. All rights reserved. +Copyright (c) 2006-2007 Voltaire, Inc. All rights reserved. +Copyright (c) 2006 Sandia National Laboratories. All rights reserved. +Copyright (c) 2006-2007 Sun Microsystems, Inc. All rights reserved. + Use is subject to license terms. +Copyright (c) 2006-2007 The University of Houston. All rights reserved. +Copyright (c) 2006 Myricom, Inc. All rights reserved. + + +License: + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +- Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +- Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer listed + in this license in the documentation and/or other materials + provided with the distribution. + +- Neither the name of the copyright holders nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +The copyright holders provide no reassurances that the source code +provided does not infringe any patent, copyright, or any other +intellectual property rights of third parties. The copyright holders +disclaim any liability to any recipient for claims brought against +recipient by any third party for infringement of that parties +intellectual property rights. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +ROMIO (Files under ./ompi/mca/io/romio/romio/) +===== + + COPYRIGHT + +The following is a notice of limited availability of the code and +disclaimer, which must be included in the prologue of the code and in +all source listings of the code. + +Copyright (C) 1997 University of Chicago + +Permission is hereby granted to use, reproduce, prepare derivative +works, and to redistribute to others. + +The University of Chicago makes no representations as to the suitability, +operability, accuracy, or correctness of this software for any purpose. +It is provided "as is" without express or implied warranty. + +This software was authored by: +Rajeev Thakur: (630) 252-1682; thakur@mcs.anl.gov +Mathematics and Computer Science Division +Argonne National Laboratory, Argonne IL 60439, USA + + + GOVERNMENT LICENSE + +Portions of this material resulted from work developed under a U.S. +Government Contract and are subject to the following license: the +Government is granted for itself and others acting on its behalf a +paid-up, nonexclusive, irrevocable worldwide license in this computer +software to reproduce, prepare derivative works, and perform publicly +and display publicly. + + +ptmalloc2 (Files under ./opal/mca/memory/ptmalloc2/) +========= + +Copyright (C) 2001 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Wolfram Gloger , 2001. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +On Debian systems, the complete text of the GNU Library General Public License +can be found in /usr/share/common-licenses/LGPL-2. + + +GNU Libltdl +=========== + +Copyright Holder: + +Copyright (C) 1998-2007 Free Software Foundation, Inc. + +License: + +GNU Libltdl is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2 of the License, or (at your option) any later version. + +As a special exception to the GNU Lesser General Public License, +if you distribute this file as part of a program or library that +is built using GNU Libtool, you may include this file under the +same distribution terms that you use for the rest of that program. + +GNU Libltdl is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with GNU Libltdl; see the file COPYING.LIB. If not, a +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html, +or obtained by writing to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + --- openmpi-1.3.orig/debian/libopenmpi-dev.links +++ openmpi-1.3/debian/libopenmpi-dev.links @@ -0,0 +1,19 @@ +usr/bin/opal_wrapper usr/bin/mpicc.openmpi +usr/bin/opal_wrapper usr/bin/mpiCC.openmpi +usr/bin/opal_wrapper usr/bin/mpic++.openmpi +usr/bin/opal_wrapper usr/bin/mpicxx.openmpi +usr/bin/opal_wrapper usr/bin/mpif77.openmpi +usr/bin/opal_wrapper usr/bin/mpif90.openmpi +usr/bin/opal_wrapper usr/bin/opalc++ +usr/bin/opal_wrapper usr/bin/opalcc +usr/bin/opal_wrapper usr/bin/ortec++ +usr/bin/opal_wrapper usr/bin/ortecc +usr/share/man/man1/mpic++.openmpi.1 usr/share/man/man1/mpiCC.openmpi.1 +usr/lib/libmca_common_sm.so.0 usr/lib/libmca_common_sm.so +usr/lib/libopen-pal.so.0 usr/lib/libopen-pal.so +usr/lib/libopen-rte.so.0 usr/lib/libopen-rte.so +usr/lib/libmpi_cxx.so.0 usr/lib/libmpi_cxx.so +usr/lib/libmpi_f77.so.0 usr/lib/libmpi_f77.so +usr/lib/libmpi_f90.so.0 usr/lib/libmpi_f90.so +# Convenience link for header files, see bug #493875 +usr/lib/openmpi/include/ usr/include/openmpi --- openmpi-1.3.orig/debian/ompi_info.1 +++ openmpi-1.3/debian/ompi_info.1 @@ -0,0 +1,67 @@ +.\" Contributed by Dirk Eddelbuettel under the BSD license +.TH OMPI_INFO 1 "June 2006" "Open MPI" "OPEN MPI COMMANDS" +.SH NAME +ompi_info - Information about the OpenMPI installation +.SH SYNOPSIS +.B ompi_info [options] +.SH DESCRIPTION +.PP +.B ompi_info +provides detailed information about the OpenMPI installation. +.SH OPTIONS +.B ompi_info +accepts the following options: +.TP 8 +.I \-a|\-\-all +Show all configuration options and MCA parameters +.TP 8 +.I \-\-arch +Show architecture Open MPI was compiled on +.TP 8 +.I \-c|\-\-config +Show configuration options +.TP 8 +.I \-gmca|\-\-gmca +Pass global MCA parameters that are applicable to all contexts (arg0 is the +parameter name; arg1 is the parameter value) +.TP 8 +.I \-h|\-\-help +Show this help message +.TP 8 +.I \-\-hostname +Show the hostname that Open MPI was configured and built on +.TP 8 +.I \-\-internal +Show internal MCA parameters (not meant to be modified by users) +.TP 8 +.I \-mca|\-\-mca +Pass context-specific MCA parameters; they are considered global if --gmca is +not used and only one context is specified (arg0 is the parameter name; arg1 +is the parameter value) +.TP 8 +.I \-\-param +Show MCA parameters +.TP 8 +.I \-\-parsable +Display output in parsable format +.I \-\-parseable +Synonym for --parsable +.TP 8 +.I \-\-path +Show paths that Open MPI was configured with +.TP 8 +.I \-\-pretty +Display output in 'prettyprint' format (default) +.TP 8 +.I \-v|\-\-version +Show version of Open MPI or a component +.SH AUTHORS +The OpenMPI maintainers -- see +.I http://www.openmpi.org +or the file +.IR AUTHORS . + +This manual page was added by Dirk Eddelbuettel , +one of the Debian GNU/Linux maintainers for +.BR OpenMPI , +and may be used by others. --- openmpi-1.3.orig/debian/compat +++ openmpi-1.3/debian/compat @@ -0,0 +1 @@ +5 --- openmpi-1.3.orig/debian/openmpi-bin.install +++ openmpi-1.3/debian/openmpi-bin.install @@ -0,0 +1,8 @@ +etc/* +usr/bin/ompi_info +usr/bin/orted +usr/bin/orterun +usr/share/man/man1/mpiexec.openmpi.1 +usr/share/man/man1/ompi_info.1 +usr/share/man/man1/orted.1 +usr/share/man/man1/orterun.1 --- openmpi-1.3.orig/debian/openmpi-common.links +++ openmpi-1.3/debian/openmpi-common.links @@ -0,0 +1,6 @@ +usr/share/openmpi/mpic++-wrapper-data.txt usr/share/openmpi/mpic++.openmpi-wrapper-data.txt +usr/share/openmpi/mpicc-wrapper-data.txt usr/share/openmpi/mpicc.openmpi-wrapper-data.txt +usr/share/openmpi/mpicxx-wrapper-data.txt usr/share/openmpi/mpicxx.openmpi-wrapper-data.txt +usr/share/openmpi/mpiCC-wrapper-data.txt usr/share/openmpi/mpiCC.openmpi-wrapper-data.txt +usr/share/openmpi/mpif77-wrapper-data.txt usr/share/openmpi/mpif77.openmpi-wrapper-data.txt +usr/share/openmpi/mpif90-wrapper-data.txt usr/share/openmpi/mpif90.openmpi-wrapper-data.txt --- openmpi-1.3.orig/debian/openmpi-common.install +++ openmpi-1.3/debian/openmpi-common.install @@ -0,0 +1 @@ +usr/share/openmpi/* --- openmpi-1.3.orig/debian/libopenmpi1.links +++ openmpi-1.3/debian/libopenmpi1.links @@ -0,0 +1,14 @@ +usr/lib/openmpi/lib/libmca_common_sm.so.0.0.0 usr/lib/libmca_common_sm.so.0.0.0 +usr/lib/openmpi/lib/libopen-pal.so.0.0.0 usr/lib/libopen-pal.so.0.0.0 +usr/lib/openmpi/lib/libopen-rte.so.0.0.0 usr/lib/libopen-rte.so.0.0.0 +usr/lib/openmpi/lib/libmpi.so.0.0.0 usr/lib/libmpi.so.0.0.0 +usr/lib/openmpi/lib/libmpi_cxx.so.0.0.0 usr/lib/libmpi_cxx.so.0.0.0 +usr/lib/openmpi/lib/libmpi_f77.so.0.0.0 usr/lib/libmpi_f77.so.0.0.0 +usr/lib/openmpi/lib/libmpi_f90.so.0.0.0 usr/lib/libmpi_f90.so.0.0.0 +usr/lib/libmca_common_sm.so.0.0.0 usr/lib/libmca_common_sm.so.0 +usr/lib/libopen-pal.so.0.0.0 usr/lib/libopen-pal.so.0 +usr/lib/libopen-rte.so.0.0.0 usr/lib/libopen-rte.so.0 +usr/lib/libmpi.so.0.0.0 usr/lib/libmpi.so.0 +usr/lib/libmpi_cxx.so.0.0.0 usr/lib/libmpi_cxx.so.0 +usr/lib/libmpi_f77.so.0.0.0 usr/lib/libmpi_f77.so.0 +usr/lib/libmpi_f90.so.0.0.0 usr/lib/libmpi_f90.so.0 --- openmpi-1.3.orig/debian/opal_wrapper.1 +++ openmpi-1.3/debian/opal_wrapper.1 @@ -0,0 +1,44 @@ +.\" Contributed by Dirk Eddelbuettel under the BSD license +.TH OPAL_WRAPPER 1 "June 2006" "Open MPI" "OPEN MPI COMMANDS" +.SH NAME +opal_wrapper - Internal OpenMPI wrapper command +.SH SYNOPSIS +.B opal_wrapper [options] +.SH DESCRIPTION +.PP +.B opal_wrapper +is not meant to be called directly, but is the backend called by the commands +.BR ortecc , +.BR ortec++ , +.BR opalcc , +.BR opalc++ , +.BR mpif90.openmpi , +.BR mpif77.openmpi , +.BR mpicxx.openmpi , +.BR mpiCC.openmpi , +.BR mpicc.openmpi and +.BR mpic++.openmpi . + +.SH SEE ALSO +.BR ortecc (1), +.BR ortec++ (1), +.BR opalccc (1), +.BR mpif90.openmpi (1), +.BR mpif77.openmpi (1), +.BR mpicxx.openmpi (1), +.BR mpiCC.openmpi (1), +.BR mpicc.openmpi (1), +.BR mpic++.openmpi . + and the website at +.IR http://www.openmpi.org . + +.SH AUTHORS +The OpenMPI maintainers -- see +.I http://www.openmpi.org +or the file +.IR AUTHORS . + +This manual page was added by Dirk Eddelbuettel , +one of the Debian GNU/Linux maintainers for +.BR OpenMPI , +and may be used by others. --- openmpi-1.3.orig/debian/orted.1 +++ openmpi-1.3/debian/orted.1 @@ -0,0 +1,92 @@ +.\" Contributed by Dirk Eddelbuettel under the BSD license +.TH ORTED 1 "June 2006" "Open MPI" "OPEN MPI COMMANDS" +.SH NAME +orted - Start an Open RTE Daemon +.SH SYNOPSIS +.B orted [options] +.SH DESCRIPTION +.PP +.B orted +starts an Open RTE daemon for the OpenMPI system. +.SH OPTIONS +.B orted +accepts the following options: +.TP 8 +.I \-\-bootproxy +Run as boot proxy for +.TP 8 +.I \-d|\-\-debug +Debug the OpenRTE +.TP 8 +.I \-d|\-\-spin +Have the +.B orted +spin until we can connect a debugger to it +.TP 8 +.I \-\-debug-daemons +Enable debugging of OpenRTE daemons +.TP 8 +.I \-\-debug-daemons-file +Enable debugging of OpenRTE daemons, storing output in files +.TP 8 +.I \-\-gprreplica +Registry contact information. +.TP 8 +.I \-h|\-\-help +This help message +.TP 8 +.I \-\-mpi-call-yield +Have MPI (or similar) applications call yield when idle +.TP 8 +.I \-\-name +Set the orte process name +.TP 8 +.I \-\-no-daemonize +Don't daemonize into the background +.TP 8 +.I \-\-nodename +Node name as specified by host/resource description. +.TP 8 +.I \-\-ns-nds +set sds/nds component to use for daemon (normally not needed) +.TP 8 +.I \-\-nsreplica +Name service contact information. +.TP 8 +.I \-\-num_procs +Set the number of process in this job +.TP 8 +.I \-\-persistent +Remain alive after the application process completes +.TP 8 +.I \-\-report-uri +Report this process' uri on indicated pipe +.TP 8 +.I \-\-scope +Set restrictions on who can connect to this universe +.TP 8 +.I \-\-seed +Host replicas for the core universe services +.TP 8 +.I \-\-set-sid +Direct the orted to separate from the current session +.TP 8 +.I \-\-tmpdir +Set the root for the session directory tree +.TP 8 +.I \-\-universe +Set the universe name as username@hostname:universe_name for this application +.TP 8 +.I \-\-vpid_start +Set the starting vpid for this job + +.SH AUTHORS +The OpenMPI maintainers -- see +.I http://www.openmpi.org +or the file +.IR AUTHORS . + +This manual page was added by Dirk Eddelbuettel , +one of the Debian GNU/Linux maintainers for +.BR OpenMPI , +and may be used by others. --- openmpi-1.3.orig/debian/libopenmpi-dev.README.Debian +++ openmpi-1.3/debian/libopenmpi-dev.README.Debian @@ -0,0 +1,26 @@ +OpenMPI for Debian - Developer Notes +------------------------------------ + +MPI Alternatives +---------------- + +The current OpenMPI version of Debian uses the Debian Alternatives system. +Although OpenMPI might replace most of the existing MPI implementations in the +future (see http://www.open-mpi.org/faq/?category=general#why), we decided to +not affect any other MPI implementation already installed on your system. + +You can setup OpenMPI as default MPI implementation by selecting openmpi as +the "mpi" alternative: + + update-alternatives --config mpi + +Please note that there is a bug in update-alternatives (namely #388313) that +may cause trouble when you install several development packages of other +MPI implementations, i.e. LAM or MPICH. + +If you would like to build Debian packages that link against multiple MPI +implementations, we recommend to point your build system to the locations +under /usr/lib instead of relying on update-alternatives. This may also allow +parallel builds. + + -- Debian OpenMPI Team , Mon, 21 Jul 2008 16:34:30 +0200 --- openmpi-1.3.orig/debian/openmpi-bin.links +++ openmpi-1.3/debian/openmpi-bin.links @@ -0,0 +1,3 @@ +usr/bin/orterun usr/bin/mpirun.openmpi +usr/bin/orterun usr/bin/mpiexec.openmpi +usr/share/man/man1/mpiexec.openmpi.1 usr/share/man/man1/mpirun.openmpi.1 --- openmpi-1.3.orig/debian/rules +++ openmpi-1.3/debian/rules @@ -0,0 +1,157 @@ +#!/usr/bin/make -f + +#include /usr/share/dpatch/dpatch.make +include /usr/share/quilt/quilt.make + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +DEB_HOST_GNU_CPU ?= $(shell dpkg-architecture -qDEB_HOST_GNU_CPU) + +CFLAGS = -Wall -g + +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) + CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +else + CROSS= --build $(DEB_BUILD_GNU_TYPE) +endif + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +ifeq (sparc,$(DEB_HOST_GNU_CPU)) + CFLAGS += -mcpu=v9 +endif + +COMMON_CONFIG_PARAMS = \ + $(CROSS) \ + --prefix=/usr \ + --mandir=\$${prefix}/share/man \ + --infodir=\$${prefix}/share/info \ + --sysconfdir=/etc/openmpi \ + --libdir=\$${prefix}/lib/openmpi/lib \ + --includedir=\$${prefix}/lib/openmpi/include \ + --with-devel-headers + +# Thread support disabled because it's broken, see bug #435581 +# --enable-mpi-threads \ +# --enable-progress-threads + +# Flags for the static build: see bug #502232 +STATIC_CONFIG_PARAMS = --enable-static + +.PHONY: build +build: build-shared build-static + +build-shared: build-shared-stamp patch +build-shared-stamp: + dh_testdir + mkdir -p build/shared + (cd build/shared && LDFLAGS="" CFLAGS="$(CFLAGS)" ../../configure $(COMMON_CONFIG_PARAMS)) + $(MAKE) -C build/shared + touch $@ + +build-static: build-static-stamp patch +build-static-stamp: + dh_testdir + mkdir -p build/static + (cd build/static && LDFLAGS="" CFLAGS="$(CFLAGS)" ../../configure $(COMMON_CONFIG_PARAMS) $(STATIC_CONFIG_PARAMS)) + $(MAKE) -C build/static + touch $@ + +# Everything is built in the "build" target +build-arch: build +build-indep: build + +check: check-stamp build +check-stamp: + -$(MAKE) check + touch $@ + +clean: clean-work unpatch +clean-work: + dh_testdir + dh_testroot + rm -rf configure-stamp build/ build-shared-stamp build-static-stamp check-stamp + rm -rf check debian/openmpi + xargs rm -f < debian/clean_symlinks + [ ! -f Makefile ] || $(MAKE) distclean + # some additional cleanups + rm -rf opal/libltdl/.libs + dh_clean + +install-indep: build-indep check + dh_testdir + dh_testroot + dh_clean -k -i + dh_installdirs -i + dh_install -i --sourcedir=$(CURDIR)/debian/openmpi + +install-arch: build-arch check + dh_testdir + dh_testroot + dh_clean -k -s + $(MAKE) -C build/static install DESTDIR=$(CURDIR)/debian/libopenmpi-dev/ + $(MAKE) -C build/shared install DESTDIR=$(CURDIR)/debian/openmpi/ + rm -rf $(CURDIR)/debian/libopenmpi-dev/usr/lib/openmpi/include/ $(CURDIR)/debian/libopenmpi-dev/etc/ $(CURDIR)/debian/libopenmpi-dev/usr/share/ $(CURDIR)/debian/libopenmpi-dev/usr/bin/ + rm $(CURDIR)/debian/libopenmpi-dev/usr/lib/openmpi/lib/mpi.mod + find $(CURDIR)/debian/libopenmpi-dev/ -name '*\.so*' -exec rm '{}' \; + + # Strip rpath info from all executables and libraries + find debian/openmpi/ -type f -perm -+x -a ! -name '*.la' -a ! -name '*.mod' -exec chrpath -d '{}' \; + for f in mpic++ mpicc mpicxx mpiexec mpif77 mpif90 ; do \ + cp debian/openmpi/usr/share/man/man1/$${f}.1 debian/openmpi/usr/share/man/man1/$${f}.openmpi.1 ; \ + done + for f in ompi_info opal_wrapper orted; do \ + cp debian/$${f}.1 debian/openmpi/usr/share/man/man1/$${f}.1 ; \ + done + + chmod 644 debian/openmpi/usr/lib/openmpi/lib/mpi.mod + sed -i 's/3OpenMPI/3/' debian/openmpi/usr/share/man/man3/*.3 + + dh_install -s --sourcedir=$(CURDIR)/debian/openmpi --list-missing + +binary-indep: install-indep + dh_testdir -i + dh_testroot -i + dh_installchangelogs -i + dh_installdocs --all AUTHORS NEWS README + dh_installexamples -popenmpi-doc examples/* + dh_installman -i + dh_link -i + dh_strip -i + dh_compress -i + dh_fixperms -i + dh_makeshlibs -i + dh_installdeb -i + dh_shlibdeps -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary-arch: install-arch + dh_testdir -a + dh_testroot -a + dh_installchangelogs -a + dh_installdocs --all AUTHORS NEWS README + dh_installexamples -a + dh_installman -a + dh_link -a + dh_strip -a --dbg-package=libopenmpi-dbg + dh_compress -a + dh_fixperms -a + dh_makeshlibs -plibopenmpi1 + dh_makeshlibs -n -plibopenmpi-dev + dh_installdeb -a + dh_shlibdeps -a -l$(CURDIR)/debian/openmpi/usr/lib/openmpi/lib -Llibopenmpi1 + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-arch binary-indep + +.PHONY: binary binary-arch binary-indep build-arch build-indep clean install-arch install-indep --- openmpi-1.3.orig/debian/control +++ openmpi-1.3/debian/control @@ -0,0 +1,115 @@ +Source: openmpi +Section: net +Priority: extra +Homepage: http://www.open-mpi.org/ +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Debian OpenMPI Maintainers +Uploaders: Dirk Eddelbuettel , Manuel Prinz , Sylvestre Ledru +Build-Depends: debhelper (>= 5.0.0), libibverbs-dev (>= 1.1.1) [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], gfortran, gcc (>= 4:4.1.2), chrpath, quilt +Standards-Version: 3.8.0 +Vcs-Svn: svn://svn.debian.org/svn/pkg-openmpi/openmpi/trunk/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-openmpi/openmpi/trunk/ +XS-Dm-Upload-Allowed: yes + +Package: openmpi-bin +Architecture: alpha amd64 i386 ia64 powerpc ppc64 sparc kfreebsd-i386 kfreebsd-amd64 hurd-i386 lpia +Depends: ${shlibs:Depends}, ${misc:Depends}, openmpi-common (= ${source:Version}) +Suggests: gfortran +Description: high performance message passing library -- binaries + Open MPI is a project combining technologies and resources from several other + projects (FT-MPI, LA-MPI, LAM/MPI, and PACX-MPI) in order to build the best + MPI library available. A completely new MPI-2 compliant implementation, Open + MPI offers advantages for system and software vendors, application developers + and computer science researchers. + . + Features: + * Full MPI-2 standards conformance + * Thread safety and concurrency + * Dynamic process spawning + * High performance on all platforms + * Reliable and fast job management + * Network and process fault tolerance + * Support network heterogeneity + * Single library supports all networks + * Run-time instrumentation + * Many job schedulers supported + * Internationalized error messages + * Component-based design, documented APIs + . + This package contains the Open MPI utility programs. + +Package: libopenmpi-dev +Section: libdevel +Architecture: alpha amd64 i386 ia64 powerpc ppc64 sparc kfreebsd-i386 kfreebsd-amd64 hurd-i386 lpia +Depends: ${shlibs:Depends}, libopenmpi1 (= ${binary:Version}), openmpi-common (= ${source:Version}) +Conflicts: libopal-dev, pgapack (<= 1.0.0.1-4.2), openmpi-dev +Replaces: openmpi-dev, openmpi-bin (<= 1.2.4-0) +Provides: openmpi-dev +Description: high performance message passing library -- header files + Open MPI is a project combining technologies and resources from several other + projects (FT-MPI, LA-MPI, LAM/MPI, and PACX-MPI) in order to build the best + MPI library available. A completely new MPI-2 compliant implementation, Open + MPI offers advantages for system and software vendors, application developers + and computer science researchers. + . + This package contains the header files and compiler wrappers which are needed + to compile and link programs against libopenmpi1. + +Package: libopenmpi1 +Section: libs +Architecture: alpha amd64 i386 ia64 powerpc ppc64 sparc kfreebsd-i386 kfreebsd-amd64 hurd-i386 lpia +Depends: ${shlibs:Depends}, ${misc:Depends} +Conflicts: openmpi-libs0 +Replaces: openmpi-libs0 +Provides: openmpi-libs0 +Description: high performance message passing library -- shared library + Open MPI is a project combining technologies and resources from several other + projects (FT-MPI, LA-MPI, LAM/MPI, and PACX-MPI) in order to build the best + MPI library available. A completely new MPI-2 compliant implementation, Open + MPI offers advantages for system and software vendors, application developers + and computer science researchers. + . + This package contains the Open MPI shared libraries. + +Package: openmpi-common +Architecture: all +Description: high performance message passing library -- common files + Open MPI is a project combining technologies and resources from several other + projects (FT-MPI, LA-MPI, LAM/MPI, and PACX-MPI) in order to build the best + MPI library available. A completely new MPI-2 compliant implementation, Open + MPI offers advantages for system and software vendors, application developers + and computer science researchers. + . + This package contains platform independent files for Open MPI. + +Package: openmpi-doc +Section: doc +Architecture: all +Conflicts: mpi-doc, lam-mpidoc, lam4-dev, openmpi-mpidoc +Replaces: openmpi-mpidoc +Provides: openmpi-mpidoc +Description: high performance message passing library -- man pages + Open MPI is a project combining technologies and resources from several other + projects (FT-MPI, LA-MPI, LAM/MPI, and PACX-MPI) in order to build the best + MPI library available. A completely new MPI-2 compliant implementation, Open + MPI offers advantages for system and software vendors, application developers + and computer science researchers. + . + This package contains man pages describing the Message Passing Interface + standard. + +Package: libopenmpi-dbg +Section: devel +Architecture: alpha amd64 i386 ia64 powerpc ppc64 sparc kfreebsd-i386 kfreebsd-amd64 hurd-i386 lpia +Depends: openmpi-bin (= ${binary:Version}), libopenmpi1 (= ${binary:Version}) +Conflicts: openmpi-dbg +Replaces: openmpi-dbg +Provides: openmpi-dbg +Description: high performance message passing library -- debug library + Open MPI is a project combining technologies and resources from several other + projects (FT-MPI, LA-MPI, LAM/MPI, and PACX-MPI) in order to build the best + MPI library available. A completely new MPI-2 compliant implementation, Open + MPI offers advantages for system and software vendors, application developers + and computer science researchers. + . + This package contains debugging symbols for Open MPI. --- openmpi-1.3.orig/debian/patches/series +++ openmpi-1.3/debian/patches/series @@ -0,0 +1,12 @@ +# Backport of SVN changesets 20317 and 20318. Will be in 1.3.1. +vampirtrace +# Updated patch by Thiemo Seufer. Hopefully this will resolve #489173. +# If this works, it may be included upstream. +mips-support +# This huge patch is needed to update all autotools-related files. +# This is required because libtool 2.2 is needed which is not yet in +# unstable. (But in experimental.) +autogen +# This patch fixes the manpage issues. It's a backport from upstream SVN, +# changeset 20307 and will be in 1.3.1. +manpages --- openmpi-1.3.orig/debian/patches/manpages +++ openmpi-1.3/debian/patches/manpages @@ -0,0 +1,90 @@ +--- /dev/null ++++ b/ompi/mpi/man/man3/MPI_Comm_accept.3in +@@ -0,0 +1,71 @@ ++.\"Copyright 2009, Cisco Systems, Inc. All rights reserved. ++.\"Copyright 2007, Sun Microsystems, Inc. ++.\" Copyright (c) 1996 Thinking Machines Corporation ++.TH MPI_Comm_accept 3OpenMPI "#OMPI_DATE#" "#PACKAGE_VERSION#" "#PACKAGE_NAME#" ++.SH NAME ++\fBMPI_Comm_accept \fP \- Establishes communication with a client. ++ ++.SH SYNTAX ++.ft R ++.SH C Syntax ++.nf ++#include ++int MPI_Comm_accept(char *\fIport_name\fP, MPI_Info \fIinfo\fP, int \fIroot\fP, MPI_Comm \fIcomm\fP, MPI_Comm *\fInewcomm\fP) ++ ++.SH Fortran Syntax ++.nf ++INCLUDE 'mpif.h' ++MPI_COMM_ACCEPT(\fIPORT_NAME, INFO, ROOT, COMM, NEWCOMM, IERROR\fP) ++ CHARACTER*(*) \fIPORT_NAME\fP ++ INTEGER \fIINFO, ROOT, COMM, NEWCOMM, IERROR\fP ++ ++.SH C++ Syntax ++.nf ++#include ++MPI::Intercomm MPI::Intracomm::Accept(const char* \fIport_name\fP, ++ const MPI::Info& \fIinfo\fP, int \fIroot\fP) const ++ ++.SH INPUT PARAMETERS ++.ft R ++.TP 1i ++port_name ++Port name (string, used only on \fIroot\fP). ++.TP 1i ++info ++Options given by root for the accept (handle, used only on root). No options currently supported. ++.TP 1i ++root ++Rank in \fIcomm\fP of root node (integer). ++.TP 1i ++comm ++Intracommunicator over which call is collective (handle). ++ ++.SH OUTPUT PARAMETERS ++.ft R ++.TP 1i ++newcomm ++Intercommunicator with client as remote group (handle) ++.TP 1i ++IERROR ++Fortran only: Error status (integer). ++ ++.SH DESCRIPTION ++.ft R ++MPI_Comm_accept establishes communication with a client. It is collective over the calling communicator. It returns an intercommunicator that allows communication with the client, after the client has connected with the MPI_Comm_accept function using the MPI_Comm_connect function. ++.sp ++The \fIport_name\fP must have been established through a call to MPI_Open_port on the root. ++ ++ ++.SH ERRORS ++Almost all MPI routines return an error value; C routines as the value of the function and Fortran routines in the last argument. C++ functions do not return errors. If the default error handler is set to MPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanism will be used to throw an MPI:Exception object. ++.sp ++Before the error value is returned, the current MPI error handler is ++called. By default, this error handler aborts the MPI job, except for I/O function errors. The error handler may be changed with MPI_Comm_set_errhandler; the predefined error handler MPI_ERRORS_RETURN may be used to cause error values to be returned. ++.sp ++See the MPI man page for a full list of MPI error codes. ++ ++.SH SEE ALSO ++MPI_Comm_connect ++MPI_Open_port ++.br ++ +--- a/orte/tools/orterun/orterun.1in ++++ b/orte/tools/orterun/orterun.1in +@@ -1,3 +1,4 @@ ++.\" Copyright (c) 2009 Cisco Systems, Inc. All rights reserved. + .\" Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved. + .\" + .\" Man page for ORTE's orterun command +@@ -128,7 +129,7 @@ + . + . + .TP +-.B -cf \f |--cartofile \fP. ++.B -cf\fR,\fP --cartofile \fR\fP + Provide a cartography file. + . + . --- openmpi-1.3.orig/debian/patches/autogen +++ openmpi-1.3/debian/patches/autogen @@ -0,0 +1,715541 @@ +--- a/Makefile.in ++++ b/Makefile.in +@@ -947,7 +947,6 @@ + sysconfdir = @sysconfdir@ + target_alias = @target_alias@ + timer_aix_LIBS = @timer_aix_LIBS@ +-top_build_prefix = @top_build_prefix@ + top_builddir = @top_builddir@ + top_ompi_builddir = @top_ompi_builddir@ + top_ompi_srcdir = @top_ompi_srcdir@ +--- a/aclocal.m4 ++++ b/aclocal.m4 +@@ -13,8 +13,8 @@ + + m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +-m4_if(AC_AUTOCONF_VERSION, [2.63],, +-[m4_warning([this file was generated for autoconf 2.63. ++m4_if(AC_AUTOCONF_VERSION, [2.61],, ++[m4_warning([this file was generated for autoconf 2.61. + You have another version of autoconf. It may work, but is not guaranteed to. + If you have problems, you may need to regenerate the build system entirely. + To do so, use the procedure documented by the package, typically `autoreconf'.])]) +--- /dev/null ++++ b/aclocal.m4.rej +@@ -0,0 +1,17 @@ ++*************** ++*** 5311,5317 **** ++ # Commands to make compiler produce verbose output that lists ++ # what "hidden" libraries, object files and flags are used when ++ # linking a shared library. ++- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' ++ ++ else ++ GXX=no ++--- 5311,5317 ---- ++ # Commands to make compiler produce verbose output that lists ++ # what "hidden" libraries, object files and flags are used when ++ # linking a shared library. +++ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L" | tail -n 1' ++ ++ else ++ GXX=no +--- /dev/null ++++ b/autom4te.cache/output.0 +@@ -0,0 +1,184301 @@ ++@%:@! /bin/sh ++@%:@ Guess values for system-dependent variables and create Makefiles. ++@%:@ Generated by GNU Autoconf 2.61 for Open MPI 1.3. ++@%:@ ++@%:@ Report bugs to . ++@%:@ ++@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, ++@%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. ++@%:@ This configure script is free software; the Free Software Foundation ++@%:@ gives unlimited permission to copy, distribute and modify it. ++## --------------------- ## ++## M4sh Initialization. ## ++## --------------------- ## ++ ++# Be more Bourne compatible ++DUALCASE=1; export DUALCASE # for MKS sh ++if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then ++ emulate sh ++ NULLCMD=: ++ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which ++ # is contrary to our usage. Disable this feature. ++ alias -g '${1+"$@"}'='"$@"' ++ setopt NO_GLOB_SUBST ++else ++ case `(set -o) 2>/dev/null` in ++ *posix*) set -o posix ;; ++esac ++ ++fi ++ ++ ++ ++ ++# PATH needs CR ++# Avoid depending upon Character Ranges. ++as_cr_letters='abcdefghijklmnopqrstuvwxyz' ++as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' ++as_cr_Letters=$as_cr_letters$as_cr_LETTERS ++as_cr_digits='0123456789' ++as_cr_alnum=$as_cr_Letters$as_cr_digits ++ ++# The user is always right. ++if test "${PATH_SEPARATOR+set}" != set; then ++ echo "#! /bin/sh" >conf$$.sh ++ echo "exit 0" >>conf$$.sh ++ chmod +x conf$$.sh ++ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then ++ PATH_SEPARATOR=';' ++ else ++ PATH_SEPARATOR=: ++ fi ++ rm -f conf$$.sh ++fi ++ ++# Support unset when possible. ++if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then ++ as_unset=unset ++else ++ as_unset=false ++fi ++ ++ ++# IFS ++# We need space, tab and new line, in precisely that order. Quoting is ++# there to prevent editors from complaining about space-tab. ++# (If _AS_PATH_WALK were called with IFS unset, it would disable word ++# splitting by setting IFS to empty value.) ++as_nl=' ++' ++IFS=" "" $as_nl" ++ ++# Find who we are. Look in the path if we contain no directory separator. ++case $0 in ++ *[\\/]* ) as_myself=$0 ;; ++ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break ++done ++IFS=$as_save_IFS ++ ++ ;; ++esac ++# We did not find ourselves, most probably we were run as `sh COMMAND' ++# in which case we are not to be found in the path. ++if test "x$as_myself" = x; then ++ as_myself=$0 ++fi ++if test ! -f "$as_myself"; then ++ echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 ++ { (exit 1); exit 1; } ++fi ++ ++# Work around bugs in pre-3.0 UWIN ksh. ++for as_var in ENV MAIL MAILPATH ++do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var ++done ++PS1='$ ' ++PS2='> ' ++PS4='+ ' ++ ++# NLS nuisances. ++for as_var in \ ++ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ ++ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ ++ LC_TELEPHONE LC_TIME ++do ++ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then ++ eval $as_var=C; export $as_var ++ else ++ ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var ++ fi ++done ++ ++# Required to use basename. ++if expr a : '\(a\)' >/dev/null 2>&1 && ++ test "X`expr 00001 : '.*\(...\)'`" = X001; then ++ as_expr=expr ++else ++ as_expr=false ++fi ++ ++if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then ++ as_basename=basename ++else ++ as_basename=false ++fi ++ ++ ++# Name of the executable. ++as_me=`$as_basename -- "$0" || ++$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ ++ X"$0" : 'X\(//\)$' \| \ ++ X"$0" : 'X\(/\)' \| . 2>/dev/null || ++echo X/"$0" | ++ sed '/^.*\/\([^/][^/]*\)\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\/\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\/\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ ++# CDPATH. ++$as_unset CDPATH ++ ++ ++if test "x$CONFIG_SHELL" = x; then ++ if (eval ":") 2>/dev/null; then ++ as_have_required=yes ++else ++ as_have_required=no ++fi ++ ++ if test $as_have_required = yes && (eval ": ++(as_func_return () { ++ (exit \$1) ++} ++as_func_success () { ++ as_func_return 0 ++} ++as_func_failure () { ++ as_func_return 1 ++} ++as_func_ret_success () { ++ return 0 ++} ++as_func_ret_failure () { ++ return 1 ++} ++ ++exitcode=0 ++if as_func_success; then ++ : ++else ++ exitcode=1 ++ echo as_func_success failed. ++fi ++ ++if as_func_failure; then ++ exitcode=1 ++ echo as_func_failure succeeded. ++fi ++ ++if as_func_ret_success; then ++ : ++else ++ exitcode=1 ++ echo as_func_ret_success failed. ++fi ++ ++if as_func_ret_failure; then ++ exitcode=1 ++ echo as_func_ret_failure succeeded. ++fi ++ ++if ( set x; as_func_ret_success y && test x = \"\$1\" ); then ++ : ++else ++ exitcode=1 ++ echo positional parameters were not saved. ++fi ++ ++test \$exitcode = 0) || { (exit 1); exit 1; } ++ ++( ++ as_lineno_1=\$LINENO ++ as_lineno_2=\$LINENO ++ test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && ++ test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } ++") 2> /dev/null; then ++ : ++else ++ as_candidate_shells= ++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ case $as_dir in ++ /*) ++ for as_base in sh bash ksh sh5; do ++ as_candidate_shells="$as_candidate_shells $as_dir/$as_base" ++ done;; ++ esac ++done ++IFS=$as_save_IFS ++ ++ ++ for as_shell in $as_candidate_shells $SHELL; do ++ # Try only shells that exist, to save several forks. ++ if { test -f "$as_shell" || test -f "$as_shell.exe"; } && ++ { ("$as_shell") 2> /dev/null <<\_ASEOF ++if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then ++ emulate sh ++ NULLCMD=: ++ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which ++ # is contrary to our usage. Disable this feature. ++ alias -g '${1+"$@"}'='"$@"' ++ setopt NO_GLOB_SUBST ++else ++ case `(set -o) 2>/dev/null` in ++ *posix*) set -o posix ;; ++esac ++ ++fi ++ ++ ++: ++_ASEOF ++}; then ++ CONFIG_SHELL=$as_shell ++ as_have_required=yes ++ if { "$as_shell" 2> /dev/null <<\_ASEOF ++if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then ++ emulate sh ++ NULLCMD=: ++ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which ++ # is contrary to our usage. Disable this feature. ++ alias -g '${1+"$@"}'='"$@"' ++ setopt NO_GLOB_SUBST ++else ++ case `(set -o) 2>/dev/null` in ++ *posix*) set -o posix ;; ++esac ++ ++fi ++ ++ ++: ++(as_func_return () { ++ (exit $1) ++} ++as_func_success () { ++ as_func_return 0 ++} ++as_func_failure () { ++ as_func_return 1 ++} ++as_func_ret_success () { ++ return 0 ++} ++as_func_ret_failure () { ++ return 1 ++} ++ ++exitcode=0 ++if as_func_success; then ++ : ++else ++ exitcode=1 ++ echo as_func_success failed. ++fi ++ ++if as_func_failure; then ++ exitcode=1 ++ echo as_func_failure succeeded. ++fi ++ ++if as_func_ret_success; then ++ : ++else ++ exitcode=1 ++ echo as_func_ret_success failed. ++fi ++ ++if as_func_ret_failure; then ++ exitcode=1 ++ echo as_func_ret_failure succeeded. ++fi ++ ++if ( set x; as_func_ret_success y && test x = "$1" ); then ++ : ++else ++ exitcode=1 ++ echo positional parameters were not saved. ++fi ++ ++test $exitcode = 0) || { (exit 1); exit 1; } ++ ++( ++ as_lineno_1=$LINENO ++ as_lineno_2=$LINENO ++ test "x$as_lineno_1" != "x$as_lineno_2" && ++ test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } ++ ++_ASEOF ++}; then ++ break ++fi ++ ++fi ++ ++ done ++ ++ if test "x$CONFIG_SHELL" != x; then ++ for as_var in BASH_ENV ENV ++ do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var ++ done ++ export CONFIG_SHELL ++ exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} ++fi ++ ++ ++ if test $as_have_required = no; then ++ echo This script requires a shell more modern than all the ++ echo shells that I found on your system. Please install a ++ echo modern shell, or manually run the script under such a ++ echo shell if you do have one. ++ { (exit 1); exit 1; } ++fi ++ ++ ++fi ++ ++fi ++ ++ ++ ++(eval "as_func_return () { ++ (exit \$1) ++} ++as_func_success () { ++ as_func_return 0 ++} ++as_func_failure () { ++ as_func_return 1 ++} ++as_func_ret_success () { ++ return 0 ++} ++as_func_ret_failure () { ++ return 1 ++} ++ ++exitcode=0 ++if as_func_success; then ++ : ++else ++ exitcode=1 ++ echo as_func_success failed. ++fi ++ ++if as_func_failure; then ++ exitcode=1 ++ echo as_func_failure succeeded. ++fi ++ ++if as_func_ret_success; then ++ : ++else ++ exitcode=1 ++ echo as_func_ret_success failed. ++fi ++ ++if as_func_ret_failure; then ++ exitcode=1 ++ echo as_func_ret_failure succeeded. ++fi ++ ++if ( set x; as_func_ret_success y && test x = \"\$1\" ); then ++ : ++else ++ exitcode=1 ++ echo positional parameters were not saved. ++fi ++ ++test \$exitcode = 0") || { ++ echo No shell found that supports shell functions. ++ echo Please tell autoconf@gnu.org about your system, ++ echo including any error possibly output before this ++ echo message ++} ++ ++ ++ ++ as_lineno_1=$LINENO ++ as_lineno_2=$LINENO ++ test "x$as_lineno_1" != "x$as_lineno_2" && ++ test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { ++ ++ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO ++ # uniformly replaced by the line number. The first 'sed' inserts a ++ # line-number line after each line using $LINENO; the second 'sed' ++ # does the real work. The second script uses 'N' to pair each ++ # line-number line with the line containing $LINENO, and appends ++ # trailing '-' during substitution so that $LINENO is not a special ++ # case at line end. ++ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the ++ # scripts with optimization help from Paolo Bonzini. Blame Lee ++ # E. McMahon (1931-1989) for sed's syntax. :-) ++ sed -n ' ++ p ++ /[$]LINENO/= ++ ' <$as_myself | ++ sed ' ++ s/[$]LINENO.*/&-/ ++ t lineno ++ b ++ :lineno ++ N ++ :loop ++ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ ++ t loop ++ s/-\n.*// ++ ' >$as_me.lineno && ++ chmod +x "$as_me.lineno" || ++ { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 ++ { (exit 1); exit 1; }; } ++ ++ # Don't try to exec as it changes $[0], causing all sort of problems ++ # (the dirname of $[0] is not the place where we might find the ++ # original and so on. Autoconf is especially sensitive to this). ++ . "./$as_me.lineno" ++ # Exit status is that of the last command. ++ exit ++} ++ ++ ++if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then ++ as_dirname=dirname ++else ++ as_dirname=false ++fi ++ ++ECHO_C= ECHO_N= ECHO_T= ++case `echo -n x` in ++-n*) ++ case `echo 'x\c'` in ++ *c*) ECHO_T=' ';; # ECHO_T is single tab character. ++ *) ECHO_C='\c';; ++ esac;; ++*) ++ ECHO_N='-n';; ++esac ++ ++if expr a : '\(a\)' >/dev/null 2>&1 && ++ test "X`expr 00001 : '.*\(...\)'`" = X001; then ++ as_expr=expr ++else ++ as_expr=false ++fi ++ ++rm -f conf$$ conf$$.exe conf$$.file ++if test -d conf$$.dir; then ++ rm -f conf$$.dir/conf$$.file ++else ++ rm -f conf$$.dir ++ mkdir conf$$.dir ++fi ++echo >conf$$.file ++if ln -s conf$$.file conf$$ 2>/dev/null; then ++ as_ln_s='ln -s' ++ # ... but there are two gotchas: ++ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. ++ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. ++ # In both cases, we have to default to `cp -p'. ++ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || ++ as_ln_s='cp -p' ++elif ln conf$$.file conf$$ 2>/dev/null; then ++ as_ln_s=ln ++else ++ as_ln_s='cp -p' ++fi ++rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file ++rmdir conf$$.dir 2>/dev/null ++ ++if mkdir -p . 2>/dev/null; then ++ as_mkdir_p=: ++else ++ test -d ./-p && rmdir ./-p ++ as_mkdir_p=false ++fi ++ ++if test -x / >/dev/null 2>&1; then ++ as_test_x='test -x' ++else ++ if ls -dL / >/dev/null 2>&1; then ++ as_ls_L_option=L ++ else ++ as_ls_L_option= ++ fi ++ as_test_x=' ++ eval sh -c '\'' ++ if test -d "$1"; then ++ test -d "$1/."; ++ else ++ case $1 in ++ -*)set "./$1";; ++ esac; ++ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ++ ???[sx]*):;;*)false;;esac;fi ++ '\'' sh ++ ' ++fi ++as_executable_p=$as_test_x ++ ++# Sed expression to map a string onto a valid CPP name. ++as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" ++ ++# Sed expression to map a string onto a valid variable name. ++as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" ++ ++ ++ ++lt_ltdl_dir='opal/libltdl' ++ ++ ++# Check that we are running under the correct shell. ++SHELL=${CONFIG_SHELL-/bin/sh} ++ ++case X$lt_ECHO in ++X*--fallback-echo) ++ # Remove one level of quotation (which was required for Make). ++ ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` ++ ;; ++esac ++ ++ECHO=${lt_ECHO-echo} ++if test "X$1" = X--no-reexec; then ++ # Discard the --no-reexec flag, and continue. ++ shift ++elif test "X$1" = X--fallback-echo; then ++ # Avoid inline document here, it may be left over ++ : ++elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then ++ # Yippee, $ECHO works! ++ : ++else ++ # Restart under the correct shell. ++ exec $SHELL "$0" --no-reexec ${1+"$@"} ++fi ++ ++if test "X$1" = X--fallback-echo; then ++ # used as fallback echo ++ shift ++ cat <<_LT_EOF ++$* ++_LT_EOF ++ exit 0 ++fi ++ ++# The HP-UX ksh and POSIX shell print the target directory to stdout ++# if CDPATH is set. ++(unset CDPATH) >/dev/null 2>&1 && unset CDPATH ++ ++if test -z "$lt_ECHO"; then ++ if test "X${echo_test_string+set}" != Xset; then ++ # find a string as large as possible, as long as the shell can cope with it ++ for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do ++ # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... ++ if { echo_test_string=`eval $cmd`; } 2>/dev/null && ++ { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null ++ then ++ break ++ fi ++ done ++ fi ++ ++ if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && ++ echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && ++ test "X$echo_testing_string" = "X$echo_test_string"; then ++ : ++ else ++ # The Solaris, AIX, and Digital Unix default echo programs unquote ++ # backslashes. This makes it impossible to quote backslashes using ++ # echo "$something" | sed 's/\\/\\\\/g' ++ # ++ # So, first we look for a working echo in the user's PATH. ++ ++ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ++ for dir in $PATH /usr/ucb; do ++ IFS="$lt_save_ifs" ++ if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && ++ test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && ++ echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && ++ test "X$echo_testing_string" = "X$echo_test_string"; then ++ ECHO="$dir/echo" ++ break ++ fi ++ done ++ IFS="$lt_save_ifs" ++ ++ if test "X$ECHO" = Xecho; then ++ # We didn't find a better echo, so look for alternatives. ++ if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && ++ echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && ++ test "X$echo_testing_string" = "X$echo_test_string"; then ++ # This shell has a builtin print -r that does the trick. ++ ECHO='print -r' ++ elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && ++ test "X$CONFIG_SHELL" != X/bin/ksh; then ++ # If we have ksh, try running configure again with it. ++ ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} ++ export ORIGINAL_CONFIG_SHELL ++ CONFIG_SHELL=/bin/ksh ++ export CONFIG_SHELL ++ exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} ++ else ++ # Try using printf. ++ ECHO='printf %s\n' ++ if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && ++ echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && ++ test "X$echo_testing_string" = "X$echo_test_string"; then ++ # Cool, printf works ++ : ++ elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && ++ test "X$echo_testing_string" = 'X\t' && ++ echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && ++ test "X$echo_testing_string" = "X$echo_test_string"; then ++ CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL ++ export CONFIG_SHELL ++ SHELL="$CONFIG_SHELL" ++ export SHELL ++ ECHO="$CONFIG_SHELL $0 --fallback-echo" ++ elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && ++ test "X$echo_testing_string" = 'X\t' && ++ echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && ++ test "X$echo_testing_string" = "X$echo_test_string"; then ++ ECHO="$CONFIG_SHELL $0 --fallback-echo" ++ else ++ # maybe with a smaller string... ++ prev=: ++ ++ for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do ++ if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null ++ then ++ break ++ fi ++ prev="$cmd" ++ done ++ ++ if test "$prev" != 'sed 50q "$0"'; then ++ echo_test_string=`eval $prev` ++ export echo_test_string ++ exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} ++ else ++ # Oops. We lost completely, so just stick with echo. ++ ECHO=echo ++ fi ++ fi ++ fi ++ fi ++ fi ++fi ++ ++# Copy echo and quote the copy suitably for passing to libtool from ++# the Makefile, instead of quoting the original, which is used later. ++lt_ECHO=$ECHO ++if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then ++ lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" ++fi ++ ++ ++ ++ ++exec 7<&0 &1 ++ ++# Name of the host. ++# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, ++# so uname gets run too. ++ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` ++ ++# ++# Initializations. ++# ++ac_default_prefix=/usr/local ++ac_clean_files= ++ac_config_libobj_dir=. ++LIB@&t@OBJS= ++cross_compiling=no ++subdirs= ++MFLAGS= ++MAKEFLAGS= ++SHELL=${CONFIG_SHELL-/bin/sh} ++ ++# Identity of this package. ++PACKAGE_NAME='Open MPI' ++PACKAGE_TARNAME='openmpi' ++PACKAGE_VERSION='1.3' ++PACKAGE_STRING='Open MPI 1.3' ++PACKAGE_BUGREPORT='http://www.open-mpi.org/community/help/' ++ ++# Factoring default headers for most tests. ++ac_includes_default="\ ++#include ++#ifdef HAVE_SYS_TYPES_H ++# include ++#endif ++#ifdef HAVE_SYS_STAT_H ++# include ++#endif ++#ifdef STDC_HEADERS ++# include ++# include ++#else ++# ifdef HAVE_STDLIB_H ++# include ++# endif ++#endif ++#ifdef HAVE_STRING_H ++# if !defined STDC_HEADERS && defined HAVE_MEMORY_H ++# include ++# endif ++# include ++#endif ++#ifdef HAVE_STRINGS_H ++# include ++#endif ++#ifdef HAVE_INTTYPES_H ++# include ++#endif ++#ifdef HAVE_STDINT_H ++# include ++#endif ++#ifdef HAVE_UNISTD_H ++# include ++#endif" ++ ++ac_subst_vars='SHELL ++PATH_SEPARATOR ++PACKAGE_NAME ++PACKAGE_TARNAME ++PACKAGE_VERSION ++PACKAGE_STRING ++PACKAGE_BUGREPORT ++exec_prefix ++prefix ++program_transform_name ++bindir ++sbindir ++libexecdir ++datarootdir ++datadir ++sysconfdir ++sharedstatedir ++localstatedir ++includedir ++oldincludedir ++docdir ++infodir ++htmldir ++dvidir ++pdfdir ++psdir ++libdir ++localedir ++mandir ++DEFS ++ECHO_C ++ECHO_N ++ECHO_T ++LIBS ++build_alias ++host_alias ++target_alias ++OPAL_DEFAULT_MCA_PARAM_CONF ++OPAL_PARAM_FROM_PLATFORM ++INSTALL_PROGRAM ++INSTALL_SCRIPT ++INSTALL_DATA ++am__isrc ++CYGPATH_W ++PACKAGE ++VERSION ++ACLOCAL ++AUTOCONF ++AUTOMAKE ++AUTOHEADER ++MAKEINFO ++install_sh ++STRIP ++INSTALL_STRIP_PROGRAM ++mkdir_p ++AWK ++SET_MAKE ++am__leading_dot ++AMTAR ++am__tar ++am__untar ++CONFIGURE_DEPENDENCIES ++OMPI_CONFIGURE_USER ++OMPI_CONFIGURE_HOST ++OMPI_CONFIGURE_DATE ++OMPI_MAJOR_VERSION ++OMPI_MINOR_VERSION ++OMPI_RELEASE_VERSION ++OMPI_GREEK_VERSION ++OMPI_WANT_SVN ++OMPI_SVN_R ++OMPI_VERSION ++OMPI_RELEASE_DATE ++ORTE_MAJOR_VERSION ++ORTE_MINOR_VERSION ++ORTE_RELEASE_VERSION ++ORTE_GREEK_VERSION ++ORTE_WANT_SVN ++ORTE_SVN_R ++ORTE_VERSION ++ORTE_RELEASE_DATE ++OPAL_MAJOR_VERSION ++OPAL_MINOR_VERSION ++OPAL_RELEASE_VERSION ++OPAL_GREEK_VERSION ++OPAL_WANT_SVN ++OPAL_SVN_R ++OPAL_VERSION ++OPAL_RELEASE_DATE ++OMPI_TOP_BUILDDIR ++OMPI_TOP_SRCDIR ++CLEANFILES ++build ++build_cpu ++build_vendor ++build_os ++host ++host_cpu ++host_vendor ++host_os ++ac_prefix_program ++top_ompi_srcdir ++top_ompi_builddir ++OMPI_WANT_BUILD_F90_TRIVIAL_TRUE ++OMPI_WANT_BUILD_F90_TRIVIAL_FALSE ++OMPI_WANT_BUILD_F90_SMALL_TRUE ++OMPI_WANT_BUILD_F90_SMALL_FALSE ++OMPI_WANT_BUILD_F90_MEDIUM_TRUE ++OMPI_WANT_BUILD_F90_MEDIUM_FALSE ++OMPI_WANT_BUILD_F90_LARGE_TRUE ++OMPI_WANT_BUILD_F90_LARGE_FALSE ++OMPI_F90_BUILD_SIZE ++MPIF_H_PMPI_W_FUNCS ++WANT_INSTALL_HEADERS_TRUE ++WANT_INSTALL_HEADERS_FALSE ++WANT_PERUSE_TRUE ++WANT_PERUSE_FALSE ++OMPI_FORTRAN_MAX_ARRAY_RANK ++ORTE_DISABLE_FULL_SUPPORT_TRUE ++ORTE_DISABLE_FULL_SUPPORT_FALSE ++WANT_FT_TRUE ++WANT_FT_FALSE ++OMPI_INSTALL_BINARIES_TRUE ++OMPI_INSTALL_BINARIES_FALSE ++OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_TRUE ++OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_FALSE ++CC ++CFLAGS ++LDFLAGS ++CPPFLAGS ++ac_ct_CC ++EXEEXT ++OBJEXT ++DEPDIR ++am__include ++am__quote ++AMDEP_TRUE ++AMDEP_FALSE ++AMDEPBACKSLASH ++CCDEPMODE ++am__fastdepCC_TRUE ++am__fastdepCC_FALSE ++OMPI_CC_ABSOLUTE ++CPP ++GREP ++EGREP ++CFLAGS_WITHOUT_OPTFLAGS ++OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE ++OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE ++WANT_MPI_BINDINGS_LAYER_TRUE ++WANT_MPI_BINDINGS_LAYER_FALSE ++WANT_PMPI_BINDINGS_LAYER_TRUE ++WANT_PMPI_BINDINGS_LAYER_FALSE ++COMPILE_PROFILING_SEPARATELY_TRUE ++COMPILE_PROFILING_SEPARATELY_FALSE ++CXX ++CXXFLAGS ++ac_ct_CXX ++CXXDEPMODE ++am__fastdepCXX_TRUE ++am__fastdepCXX_FALSE ++CXXCPP ++OMPI_CXX_ABSOLUTE ++WANT_MPI_CXX_BINDINGS_TRUE ++WANT_MPI_CXX_BINDINGS_FALSE ++CCAS ++CCASFLAGS ++CCASDEPMODE ++am__fastdepCCAS_TRUE ++am__fastdepCCAS_FALSE ++OMPI_ASM_TEXT ++OMPI_AS_GLOBAL ++OBJDUMP ++OMPI_AS_LABEL_SUFFIX ++OMPI_ASM_GSYM ++DUMPBIN ++ac_ct_DUMPBIN ++NM ++OMPI_ASM_LSYM ++OMPI_ASM_TYPE ++OMPI_ASM_SUPPORT_64BIT ++OMPI_ASSEMBLY_FORMAT ++OMPI_ASSEMBLY_ARCH ++FGREP ++PERL ++OMPI_HAVE_ASM_FILE_TRUE ++OMPI_HAVE_ASM_FILE_FALSE ++OMPI_ASM_FILE ++F77 ++FFLAGS ++ac_ct_F77 ++OMPI_WANT_F77_BINDINGS_TRUE ++OMPI_WANT_F77_BINDINGS_FALSE ++OMPI_F77_ABSOLUTE ++WANT_MPI_F77_BINDINGS_LAYER_TRUE ++WANT_MPI_F77_BINDINGS_LAYER_FALSE ++WANT_PMPI_F77_BINDINGS_LAYER_TRUE ++WANT_PMPI_F77_BINDINGS_LAYER_FALSE ++FC ++FCFLAGS ++ac_ct_FC ++OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS ++FCFLAGS_f ++FCFLAGS_f90 ++OMPI_WANT_F90_BINDINGS_TRUE ++OMPI_WANT_F90_BINDINGS_FALSE ++OMPI_F90_ABSOLUTE ++OMPI_FC_MODULE_FLAG ++OMPI_SIZEOF_F90_LOGICAL ++OMPI_SIZEOF_F90_LOGICAL1 ++OMPI_SIZEOF_F90_LOGICAL2 ++OMPI_SIZEOF_F90_LOGICAL4 ++OMPI_SIZEOF_F90_LOGICAL8 ++OMPI_SIZEOF_F90_INTEGER ++OMPI_SIZEOF_F90_INTEGER1 ++OMPI_SIZEOF_F90_INTEGER2 ++OMPI_SIZEOF_F90_INTEGER4 ++OMPI_SIZEOF_F90_INTEGER8 ++OMPI_SIZEOF_F90_INTEGER16 ++OMPI_SIZEOF_F90_REAL ++OMPI_SIZEOF_F90_REAL2 ++OMPI_SIZEOF_F90_REAL4 ++OMPI_SIZEOF_F90_REAL8 ++OMPI_SIZEOF_F90_REAL16 ++OMPI_SIZEOF_F90_DOUBLE_PRECISION ++OMPI_SIZEOF_F90_COMPLEX ++OMPI_SIZEOF_F90_COMPLEX8 ++OMPI_SIZEOF_F90_COMPLEX16 ++OMPI_SIZEOF_F90_COMPLEX32 ++OMPI_SIZEOF_F90_DOUBLE_COMPLEX ++OMPI_F90_IKINDS ++OMPI_F90_RKINDS ++OMPI_F90_CKINDS ++OMPI_MPI_INTEGER_KIND ++OMPI_MPI_ADDRESS_KIND ++OMPI_MPI_OFFSET_KIND ++OMPI_HAVE_POSIX_THREADS_TRUE ++OMPI_HAVE_POSIX_THREADS_FALSE ++OMPI_HAVE_SOLARIS_THREADS_TRUE ++OMPI_HAVE_SOLARIS_THREADS_FALSE ++WANT_FT_THREAD_TRUE ++WANT_FT_THREAD_FALSE ++LN_S ++LEX ++LEX_OUTPUT_ROOT ++LEXLIB ++CASE_SENSITIVE_FS_TRUE ++CASE_SENSITIVE_FS_FALSE ++OMPI_BUILD_backtrace_execinfo_DSO_TRUE ++OMPI_BUILD_backtrace_execinfo_DSO_FALSE ++OMPI_BUILD_backtrace_printstack_DSO_TRUE ++OMPI_BUILD_backtrace_printstack_DSO_FALSE ++backtrace_darwin_CFLAGS ++OMPI_BUILD_backtrace_darwin_DSO_TRUE ++OMPI_BUILD_backtrace_darwin_DSO_FALSE ++OMPI_BUILD_backtrace_none_DSO_TRUE ++OMPI_BUILD_backtrace_none_DSO_FALSE ++MCA_backtrace_ALL_COMPONENTS ++MCA_backtrace_STATIC_COMPONENTS ++MCA_backtrace_DSO_COMPONENTS ++MCA_backtrace_STATIC_LTLIBS ++MCA_backtrace_ALL_SUBDIRS ++MCA_backtrace_STATIC_SUBDIRS ++MCA_backtrace_DSO_SUBDIRS ++OMPI_BUILD_carto_auto_detect_DSO_TRUE ++OMPI_BUILD_carto_auto_detect_DSO_FALSE ++OMPI_BUILD_carto_file_DSO_TRUE ++OMPI_BUILD_carto_file_DSO_FALSE ++MCA_carto_ALL_COMPONENTS ++MCA_carto_STATIC_COMPONENTS ++MCA_carto_DSO_COMPONENTS ++MCA_carto_STATIC_LTLIBS ++MCA_carto_ALL_SUBDIRS ++MCA_carto_STATIC_SUBDIRS ++MCA_carto_DSO_SUBDIRS ++OMPI_BUILD_crs_none_DSO_TRUE ++OMPI_BUILD_crs_none_DSO_FALSE ++crs_blcr_crs_blcr_WRAPPER_EXTRA_LDFLAGS ++crs_blcr_crs_blcr_WRAPPER_EXTRA_LIBS ++crs_blcr_crs_blcr_WRAPPER_EXTRA_CPPFLAGS ++crs_blcr_CFLAGS ++crs_blcr_CPPFLAGS ++crs_blcr_LDFLAGS ++crs_blcr_LIBS ++OMPI_BUILD_crs_blcr_DSO_TRUE ++OMPI_BUILD_crs_blcr_DSO_FALSE ++OMPI_BUILD_crs_self_DSO_TRUE ++OMPI_BUILD_crs_self_DSO_FALSE ++MCA_crs_ALL_COMPONENTS ++MCA_crs_STATIC_COMPONENTS ++MCA_crs_DSO_COMPONENTS ++MCA_crs_STATIC_LTLIBS ++MCA_crs_ALL_SUBDIRS ++MCA_crs_STATIC_SUBDIRS ++MCA_crs_DSO_SUBDIRS ++OMPI_BUILD_installdirs_env_DSO_TRUE ++OMPI_BUILD_installdirs_env_DSO_FALSE ++OMPI_BUILD_installdirs_config_DSO_TRUE ++OMPI_BUILD_installdirs_config_DSO_FALSE ++MCA_installdirs_ALL_COMPONENTS ++MCA_installdirs_STATIC_COMPONENTS ++MCA_installdirs_DSO_COMPONENTS ++MCA_installdirs_STATIC_LTLIBS ++MCA_installdirs_ALL_SUBDIRS ++MCA_installdirs_STATIC_SUBDIRS ++MCA_installdirs_DSO_SUBDIRS ++OMPI_BUILD_maffinity_first_use_DSO_TRUE ++OMPI_BUILD_maffinity_first_use_DSO_FALSE ++maffinity_libnuma_CPPFLAGS ++maffinity_libnuma_LDFLAGS ++maffinity_libnuma_LIBS ++OMPI_BUILD_maffinity_libnuma_DSO_TRUE ++OMPI_BUILD_maffinity_libnuma_DSO_FALSE ++MCA_maffinity_ALL_COMPONENTS ++MCA_maffinity_STATIC_COMPONENTS ++MCA_maffinity_DSO_COMPONENTS ++MCA_maffinity_STATIC_LTLIBS ++MCA_maffinity_ALL_SUBDIRS ++MCA_maffinity_STATIC_SUBDIRS ++MCA_maffinity_DSO_SUBDIRS ++OMPI_WANT_MEMCHECKER_TRUE ++OMPI_WANT_MEMCHECKER_FALSE ++memchecker_valgrind_CPPFLAGS ++OMPI_BUILD_memchecker_valgrind_DSO_TRUE ++OMPI_BUILD_memchecker_valgrind_DSO_FALSE ++MCA_memchecker_ALL_COMPONENTS ++MCA_memchecker_STATIC_COMPONENTS ++MCA_memchecker_DSO_COMPONENTS ++MCA_memchecker_STATIC_LTLIBS ++MCA_memchecker_ALL_SUBDIRS ++MCA_memchecker_STATIC_SUBDIRS ++MCA_memchecker_DSO_SUBDIRS ++MCA_memcpy_ALL_COMPONENTS ++MCA_memcpy_STATIC_COMPONENTS ++MCA_memcpy_DSO_COMPONENTS ++MCA_memcpy_STATIC_LTLIBS ++MCA_memcpy_ALL_SUBDIRS ++MCA_memcpy_STATIC_SUBDIRS ++MCA_memcpy_DSO_SUBDIRS ++memory_ptmalloc2_LIBS ++OMPI_WANT_EXTERNAL_PTMALLOC2_TRUE ++OMPI_WANT_EXTERNAL_PTMALLOC2_FALSE ++OMPI_BUILD_memory_ptmalloc2_DSO_TRUE ++OMPI_BUILD_memory_ptmalloc2_DSO_FALSE ++memory_malloc_solaris_LIBS ++OMPI_BUILD_memory_malloc_solaris_DSO_TRUE ++OMPI_BUILD_memory_malloc_solaris_DSO_FALSE ++memory_mallopt_LIBS ++OMPI_BUILD_memory_mallopt_DSO_TRUE ++OMPI_BUILD_memory_mallopt_DSO_FALSE ++MCA_memory_ALL_COMPONENTS ++MCA_memory_STATIC_COMPONENTS ++MCA_memory_DSO_COMPONENTS ++MCA_memory_STATIC_LTLIBS ++MCA_memory_ALL_SUBDIRS ++MCA_memory_STATIC_SUBDIRS ++MCA_memory_DSO_SUBDIRS ++YACC ++YFLAGS ++PLPA_BUILD_STANDALONE_TRUE ++PLPA_BUILD_STANDALONE_FALSE ++PLPA_BUILD_EXECUTABLES_TRUE ++PLPA_BUILD_EXECUTABLES_FALSE ++OMPI_BUILD_paffinity_linux_DSO_TRUE ++OMPI_BUILD_paffinity_linux_DSO_FALSE ++OMPI_BUILD_paffinity_solaris_DSO_TRUE ++OMPI_BUILD_paffinity_solaris_DSO_FALSE ++OMPI_BUILD_paffinity_windows_DSO_TRUE ++OMPI_BUILD_paffinity_windows_DSO_FALSE ++OMPI_BUILD_paffinity_darwin_DSO_TRUE ++OMPI_BUILD_paffinity_darwin_DSO_FALSE ++OMPI_BUILD_paffinity_posix_DSO_TRUE ++OMPI_BUILD_paffinity_posix_DSO_FALSE ++MCA_paffinity_ALL_COMPONENTS ++MCA_paffinity_STATIC_COMPONENTS ++MCA_paffinity_DSO_COMPONENTS ++MCA_paffinity_STATIC_LTLIBS ++MCA_paffinity_ALL_SUBDIRS ++MCA_paffinity_STATIC_SUBDIRS ++MCA_paffinity_DSO_SUBDIRS ++OMPI_BUILD_timer_catamount_DSO_TRUE ++OMPI_BUILD_timer_catamount_DSO_FALSE ++timer_aix_LIBS ++OMPI_BUILD_timer_aix_DSO_TRUE ++OMPI_BUILD_timer_aix_DSO_FALSE ++OMPI_BUILD_timer_altix_DSO_TRUE ++OMPI_BUILD_timer_altix_DSO_FALSE ++OMPI_BUILD_timer_darwin_DSO_TRUE ++OMPI_BUILD_timer_darwin_DSO_FALSE ++OMPI_BUILD_timer_solaris_DSO_TRUE ++OMPI_BUILD_timer_solaris_DSO_FALSE ++OMPI_BUILD_timer_windows_DSO_TRUE ++OMPI_BUILD_timer_windows_DSO_FALSE ++OMPI_BUILD_timer_linux_DSO_TRUE ++OMPI_BUILD_timer_linux_DSO_FALSE ++MCA_timer_ALL_COMPONENTS ++MCA_timer_STATIC_COMPONENTS ++MCA_timer_DSO_COMPONENTS ++MCA_timer_STATIC_LTLIBS ++MCA_timer_ALL_SUBDIRS ++MCA_timer_STATIC_SUBDIRS ++MCA_timer_DSO_SUBDIRS ++MCA_opal_FRAMEWORKS ++MCA_opal_FRAMEWORKS_SUBDIRS ++MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS ++MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS ++MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS ++MCA_opal_FRAMEWORK_LIBS ++OMPI_BUILD_errmgr_default_DSO_TRUE ++OMPI_BUILD_errmgr_default_DSO_FALSE ++MCA_errmgr_ALL_COMPONENTS ++MCA_errmgr_STATIC_COMPONENTS ++MCA_errmgr_DSO_COMPONENTS ++MCA_errmgr_STATIC_LTLIBS ++MCA_errmgr_ALL_SUBDIRS ++MCA_errmgr_STATIC_SUBDIRS ++MCA_errmgr_DSO_SUBDIRS ++ess_portals_utcp_CPPFLAGS ++ess_portals_utcp_LDFLAGS ++ess_portals_utcp_LIBS ++OMPI_BUILD_ess_portals_utcp_DSO_TRUE ++OMPI_BUILD_ess_portals_utcp_DSO_FALSE ++OMPI_BUILD_ess_cnos_DSO_TRUE ++OMPI_BUILD_ess_cnos_DSO_FALSE ++OMPI_BUILD_ess_alps_DSO_TRUE ++OMPI_BUILD_ess_alps_DSO_FALSE ++OMPI_BUILD_ess_env_DSO_TRUE ++OMPI_BUILD_ess_env_DSO_FALSE ++OMPI_BUILD_ess_hnp_DSO_TRUE ++OMPI_BUILD_ess_hnp_DSO_FALSE ++ess_lsf_CPPFLAGS ++ess_lsf_LDFLAGS ++ess_lsf_LIBS ++OMPI_BUILD_ess_lsf_DSO_TRUE ++OMPI_BUILD_ess_lsf_DSO_FALSE ++OMPI_BUILD_ess_singleton_DSO_TRUE ++OMPI_BUILD_ess_singleton_DSO_FALSE ++ess_slurm_CPPFLAGS ++ess_slurm_LDFLAGS ++ess_slurm_LIBS ++OMPI_BUILD_ess_slurm_DSO_TRUE ++OMPI_BUILD_ess_slurm_DSO_FALSE ++OMPI_BUILD_ess_tool_DSO_TRUE ++OMPI_BUILD_ess_tool_DSO_FALSE ++MCA_ess_ALL_COMPONENTS ++MCA_ess_STATIC_COMPONENTS ++MCA_ess_DSO_COMPONENTS ++MCA_ess_STATIC_LTLIBS ++MCA_ess_ALL_SUBDIRS ++MCA_ess_STATIC_SUBDIRS ++MCA_ess_DSO_SUBDIRS ++OMPI_BUILD_filem_rsh_DSO_TRUE ++OMPI_BUILD_filem_rsh_DSO_FALSE ++MCA_filem_ALL_COMPONENTS ++MCA_filem_STATIC_COMPONENTS ++MCA_filem_DSO_COMPONENTS ++MCA_filem_STATIC_LTLIBS ++MCA_filem_ALL_SUBDIRS ++MCA_filem_STATIC_SUBDIRS ++MCA_filem_DSO_SUBDIRS ++OMPI_BUILD_grpcomm_cnos_DSO_TRUE ++OMPI_BUILD_grpcomm_cnos_DSO_FALSE ++OMPI_BUILD_grpcomm_bad_DSO_TRUE ++OMPI_BUILD_grpcomm_bad_DSO_FALSE ++OMPI_BUILD_grpcomm_basic_DSO_TRUE ++OMPI_BUILD_grpcomm_basic_DSO_FALSE ++MCA_grpcomm_ALL_COMPONENTS ++MCA_grpcomm_STATIC_COMPONENTS ++MCA_grpcomm_DSO_COMPONENTS ++MCA_grpcomm_STATIC_LTLIBS ++MCA_grpcomm_ALL_SUBDIRS ++MCA_grpcomm_STATIC_SUBDIRS ++MCA_grpcomm_DSO_SUBDIRS ++OMPI_BUILD_iof_hnp_DSO_TRUE ++OMPI_BUILD_iof_hnp_DSO_FALSE ++OMPI_BUILD_iof_orted_DSO_TRUE ++OMPI_BUILD_iof_orted_DSO_FALSE ++OMPI_BUILD_iof_tool_DSO_TRUE ++OMPI_BUILD_iof_tool_DSO_FALSE ++MCA_iof_ALL_COMPONENTS ++MCA_iof_STATIC_COMPONENTS ++MCA_iof_DSO_COMPONENTS ++MCA_iof_STATIC_LTLIBS ++MCA_iof_ALL_SUBDIRS ++MCA_iof_STATIC_SUBDIRS ++MCA_iof_DSO_SUBDIRS ++OMPI_BUILD_notifier_syslog_DSO_TRUE ++OMPI_BUILD_notifier_syslog_DSO_FALSE ++MCA_notifier_ALL_COMPONENTS ++MCA_notifier_STATIC_COMPONENTS ++MCA_notifier_DSO_COMPONENTS ++MCA_notifier_STATIC_LTLIBS ++MCA_notifier_ALL_SUBDIRS ++MCA_notifier_STATIC_SUBDIRS ++MCA_notifier_DSO_SUBDIRS ++OMPI_BUILD_odls_default_DSO_TRUE ++OMPI_BUILD_odls_default_DSO_FALSE ++MCA_odls_ALL_COMPONENTS ++MCA_odls_STATIC_COMPONENTS ++MCA_odls_DSO_COMPONENTS ++MCA_odls_STATIC_LTLIBS ++MCA_odls_ALL_SUBDIRS ++MCA_odls_STATIC_SUBDIRS ++MCA_odls_DSO_SUBDIRS ++OMPI_BUILD_oob_tcp_DSO_TRUE ++OMPI_BUILD_oob_tcp_DSO_FALSE ++MCA_oob_ALL_COMPONENTS ++MCA_oob_STATIC_COMPONENTS ++MCA_oob_DSO_COMPONENTS ++MCA_oob_STATIC_LTLIBS ++MCA_oob_ALL_SUBDIRS ++MCA_oob_STATIC_SUBDIRS ++MCA_oob_DSO_SUBDIRS ++OMPI_BUILD_plm_alps_DSO_TRUE ++OMPI_BUILD_plm_alps_DSO_FALSE ++plm_lsf_CPPFLAGS ++plm_lsf_LDFLAGS ++plm_lsf_LIBS ++OMPI_BUILD_plm_lsf_DSO_TRUE ++OMPI_BUILD_plm_lsf_DSO_FALSE ++OMPI_BUILD_plm_rsh_DSO_TRUE ++OMPI_BUILD_plm_rsh_DSO_FALSE ++plm_slurm_CPPFLAGS ++plm_slurm_LDFLAGS ++plm_slurm_LIBS ++OMPI_BUILD_plm_slurm_DSO_TRUE ++OMPI_BUILD_plm_slurm_DSO_FALSE ++plm_tm_CPPFLAGS ++plm_tm_LDFLAGS ++plm_tm_LIBS ++OMPI_BUILD_plm_tm_DSO_TRUE ++OMPI_BUILD_plm_tm_DSO_FALSE ++OBJC ++OBJCFLAGS ++ac_ct_OBJC ++OBJCDEPMODE ++am__fastdepOBJC_TRUE ++am__fastdepOBJC_FALSE ++plm_xgrid_OBJCFLAGS ++plm_xgrid_LDFLAGS ++OMPI_BUILD_plm_xgrid_DSO_TRUE ++OMPI_BUILD_plm_xgrid_DSO_FALSE ++MCA_plm_ALL_COMPONENTS ++MCA_plm_STATIC_COMPONENTS ++MCA_plm_DSO_COMPONENTS ++MCA_plm_STATIC_LTLIBS ++MCA_plm_ALL_SUBDIRS ++MCA_plm_STATIC_SUBDIRS ++MCA_plm_DSO_SUBDIRS ++OMPI_BUILD_ras_alps_DSO_TRUE ++OMPI_BUILD_ras_alps_DSO_FALSE ++QRSH ++OMPI_BUILD_ras_gridengine_DSO_TRUE ++OMPI_BUILD_ras_gridengine_DSO_FALSE ++ras_loadleveler_CPPFLAGS ++ras_loadleveler_LDFLAGS ++ras_loadleveler_LIBS ++OMPI_BUILD_ras_loadleveler_DSO_TRUE ++OMPI_BUILD_ras_loadleveler_DSO_FALSE ++ras_lsf_CPPFLAGS ++ras_lsf_LDFLAGS ++ras_lsf_LIBS ++OMPI_BUILD_ras_lsf_DSO_TRUE ++OMPI_BUILD_ras_lsf_DSO_FALSE ++ras_slurm_CPPFLAGS ++ras_slurm_LDFLAGS ++ras_slurm_LIBS ++OMPI_BUILD_ras_slurm_DSO_TRUE ++OMPI_BUILD_ras_slurm_DSO_FALSE ++ras_tm_CPPFLAGS ++ras_tm_LDFLAGS ++ras_tm_LIBS ++OMPI_BUILD_ras_tm_DSO_TRUE ++OMPI_BUILD_ras_tm_DSO_FALSE ++MCA_ras_ALL_COMPONENTS ++MCA_ras_STATIC_COMPONENTS ++MCA_ras_DSO_COMPONENTS ++MCA_ras_STATIC_LTLIBS ++MCA_ras_ALL_SUBDIRS ++MCA_ras_STATIC_SUBDIRS ++MCA_ras_DSO_SUBDIRS ++OMPI_BUILD_rmaps_rank_file_DSO_TRUE ++OMPI_BUILD_rmaps_rank_file_DSO_FALSE ++OMPI_BUILD_rmaps_round_robin_DSO_TRUE ++OMPI_BUILD_rmaps_round_robin_DSO_FALSE ++OMPI_BUILD_rmaps_seq_DSO_TRUE ++OMPI_BUILD_rmaps_seq_DSO_FALSE ++MCA_rmaps_ALL_COMPONENTS ++MCA_rmaps_STATIC_COMPONENTS ++MCA_rmaps_DSO_COMPONENTS ++MCA_rmaps_STATIC_LTLIBS ++MCA_rmaps_ALL_SUBDIRS ++MCA_rmaps_STATIC_SUBDIRS ++MCA_rmaps_DSO_SUBDIRS ++OMPI_BUILD_rml_oob_DSO_TRUE ++OMPI_BUILD_rml_oob_DSO_FALSE ++OMPI_BUILD_rml_ftrm_DSO_TRUE ++OMPI_BUILD_rml_ftrm_DSO_FALSE ++MCA_rml_ALL_COMPONENTS ++MCA_rml_STATIC_COMPONENTS ++MCA_rml_DSO_COMPONENTS ++MCA_rml_STATIC_LTLIBS ++MCA_rml_ALL_SUBDIRS ++MCA_rml_STATIC_SUBDIRS ++MCA_rml_DSO_SUBDIRS ++OMPI_BUILD_routed_binomial_DSO_TRUE ++OMPI_BUILD_routed_binomial_DSO_FALSE ++OMPI_BUILD_routed_direct_DSO_TRUE ++OMPI_BUILD_routed_direct_DSO_FALSE ++OMPI_BUILD_routed_linear_DSO_TRUE ++OMPI_BUILD_routed_linear_DSO_FALSE ++MCA_routed_ALL_COMPONENTS ++MCA_routed_STATIC_COMPONENTS ++MCA_routed_DSO_COMPONENTS ++MCA_routed_STATIC_LTLIBS ++MCA_routed_ALL_SUBDIRS ++MCA_routed_STATIC_SUBDIRS ++MCA_routed_DSO_SUBDIRS ++OMPI_BUILD_snapc_full_DSO_TRUE ++OMPI_BUILD_snapc_full_DSO_FALSE ++MCA_snapc_ALL_COMPONENTS ++MCA_snapc_STATIC_COMPONENTS ++MCA_snapc_DSO_COMPONENTS ++MCA_snapc_STATIC_LTLIBS ++MCA_snapc_ALL_SUBDIRS ++MCA_snapc_STATIC_SUBDIRS ++MCA_snapc_DSO_SUBDIRS ++MCA_orte_FRAMEWORKS ++MCA_orte_FRAMEWORKS_SUBDIRS ++MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS ++MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS ++MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS ++MCA_orte_FRAMEWORK_LIBS ++OMPI_BUILD_allocator_basic_DSO_TRUE ++OMPI_BUILD_allocator_basic_DSO_FALSE ++OMPI_BUILD_allocator_bucket_DSO_TRUE ++OMPI_BUILD_allocator_bucket_DSO_FALSE ++MCA_allocator_ALL_COMPONENTS ++MCA_allocator_STATIC_COMPONENTS ++MCA_allocator_DSO_COMPONENTS ++MCA_allocator_STATIC_LTLIBS ++MCA_allocator_ALL_SUBDIRS ++MCA_allocator_STATIC_SUBDIRS ++MCA_allocator_DSO_SUBDIRS ++OMPI_BUILD_bml_r2_DSO_TRUE ++OMPI_BUILD_bml_r2_DSO_FALSE ++MCA_bml_ALL_COMPONENTS ++MCA_bml_STATIC_COMPONENTS ++MCA_bml_DSO_COMPONENTS ++MCA_bml_STATIC_LTLIBS ++MCA_bml_ALL_SUBDIRS ++MCA_bml_STATIC_SUBDIRS ++MCA_bml_DSO_SUBDIRS ++OMPI_BUILD_btl_self_DSO_TRUE ++OMPI_BUILD_btl_self_DSO_FALSE ++OMPI_BUILD_btl_sm_DSO_TRUE ++OMPI_BUILD_btl_sm_DSO_FALSE ++btl_elan_CFLAGS ++btl_elan_CPPFLAGS ++btl_elan_LDFLAGS ++btl_elan_LIBS ++OMPI_BUILD_btl_elan_DSO_TRUE ++OMPI_BUILD_btl_elan_DSO_FALSE ++btl_gm_CFLAGS ++btl_gm_CPPFLAGS ++btl_gm_LDFLAGS ++btl_gm_LIBS ++OMPI_BUILD_btl_gm_DSO_TRUE ++OMPI_BUILD_btl_gm_DSO_FALSE ++btl_mx_CFLAGS ++btl_mx_CPPFLAGS ++btl_mx_LDFLAGS ++btl_mx_LIBS ++OMPI_BUILD_btl_mx_DSO_TRUE ++OMPI_BUILD_btl_mx_DSO_FALSE ++btl_ofud_CFLAGS ++btl_ofud_CPPFLAGS ++btl_ofud_LDFLAGS ++btl_ofud_LIBS ++OMPI_BUILD_btl_ofud_DSO_TRUE ++OMPI_BUILD_btl_ofud_DSO_FALSE ++btl_openib_CFLAGS ++btl_openib_CPPFLAGS ++btl_openib_LDFLAGS ++btl_openib_LIBS ++MCA_btl_openib_have_xrc_TRUE ++MCA_btl_openib_have_xrc_FALSE ++MCA_btl_openib_have_rdmacm_TRUE ++MCA_btl_openib_have_rdmacm_FALSE ++MCA_btl_openib_have_ibcm_TRUE ++MCA_btl_openib_have_ibcm_FALSE ++OMPI_BUILD_btl_openib_DSO_TRUE ++OMPI_BUILD_btl_openib_DSO_FALSE ++btl_portals_CPPFLAGS ++btl_portals_LDFLAGS ++btl_portals_LIBS ++OMPI_BUILD_btl_portals_DSO_TRUE ++OMPI_BUILD_btl_portals_DSO_FALSE ++OMPI_BUILD_btl_tcp_DSO_TRUE ++OMPI_BUILD_btl_tcp_DSO_FALSE ++btl_udapl_CFLAGS ++btl_udapl_CPPFLAGS ++btl_udapl_LDFLAGS ++btl_udapl_LIBS ++OMPI_BUILD_btl_udapl_DSO_TRUE ++OMPI_BUILD_btl_udapl_DSO_FALSE ++MCA_btl_ALL_COMPONENTS ++MCA_btl_STATIC_COMPONENTS ++MCA_btl_DSO_COMPONENTS ++MCA_btl_STATIC_LTLIBS ++MCA_btl_ALL_SUBDIRS ++MCA_btl_STATIC_SUBDIRS ++MCA_btl_DSO_SUBDIRS ++OMPI_BUILD_coll_basic_DSO_TRUE ++OMPI_BUILD_coll_basic_DSO_FALSE ++OMPI_BUILD_coll_hierarch_DSO_TRUE ++OMPI_BUILD_coll_hierarch_DSO_FALSE ++OMPI_BUILD_coll_inter_DSO_TRUE ++OMPI_BUILD_coll_inter_DSO_FALSE ++OMPI_BUILD_coll_self_DSO_TRUE ++OMPI_BUILD_coll_self_DSO_FALSE ++OMPI_BUILD_coll_sm_DSO_TRUE ++OMPI_BUILD_coll_sm_DSO_FALSE ++OMPI_BUILD_coll_tuned_DSO_TRUE ++OMPI_BUILD_coll_tuned_DSO_FALSE ++MCA_coll_ALL_COMPONENTS ++MCA_coll_STATIC_COMPONENTS ++MCA_coll_DSO_COMPONENTS ++MCA_coll_STATIC_LTLIBS ++MCA_coll_ALL_SUBDIRS ++MCA_coll_STATIC_SUBDIRS ++MCA_coll_DSO_SUBDIRS ++OMPI_BUILD_common_sm_DSO_TRUE ++OMPI_BUILD_common_sm_DSO_FALSE ++common_mx_CFLAGS ++common_mx_CPPFLAGS ++common_mx_LDFLAGS ++common_mx_LIBS ++OMPI_BUILD_common_mx_DSO_TRUE ++OMPI_BUILD_common_mx_DSO_FALSE ++common_portals_CPPFLAGS ++common_portals_LDFLAGS ++common_portals_LIBS ++OMPI_BUILD_common_portals_DSO_TRUE ++OMPI_BUILD_common_portals_DSO_FALSE ++MCA_common_ALL_COMPONENTS ++MCA_common_STATIC_COMPONENTS ++MCA_common_DSO_COMPONENTS ++MCA_common_STATIC_LTLIBS ++MCA_common_ALL_SUBDIRS ++MCA_common_STATIC_SUBDIRS ++MCA_common_DSO_SUBDIRS ++OMPI_BUILD_crcp_bkmrk_DSO_TRUE ++OMPI_BUILD_crcp_bkmrk_DSO_FALSE ++MCA_crcp_ALL_COMPONENTS ++MCA_crcp_STATIC_COMPONENTS ++MCA_crcp_DSO_COMPONENTS ++MCA_crcp_STATIC_LTLIBS ++MCA_crcp_ALL_SUBDIRS ++MCA_crcp_STATIC_SUBDIRS ++MCA_crcp_DSO_SUBDIRS ++OMPI_BUILD_dpm_orte_DSO_TRUE ++OMPI_BUILD_dpm_orte_DSO_FALSE ++MCA_dpm_ALL_COMPONENTS ++MCA_dpm_STATIC_COMPONENTS ++MCA_dpm_DSO_COMPONENTS ++MCA_dpm_STATIC_LTLIBS ++MCA_dpm_ALL_SUBDIRS ++MCA_dpm_STATIC_SUBDIRS ++MCA_dpm_DSO_SUBDIRS ++MCA_io_romio_SHOULD_BUILD_TRUE ++MCA_io_romio_SHOULD_BUILD_FALSE ++OMPI_BUILD_io_romio_DSO_TRUE ++OMPI_BUILD_io_romio_DSO_FALSE ++MCA_io_ALL_COMPONENTS ++MCA_io_STATIC_COMPONENTS ++MCA_io_DSO_COMPONENTS ++MCA_io_STATIC_LTLIBS ++MCA_io_ALL_SUBDIRS ++MCA_io_STATIC_SUBDIRS ++MCA_io_DSO_SUBDIRS ++OMPI_PROVIDE_MPI_FILE_INTERFACE_TRUE ++OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE ++OMPI_MPIF_MPI_IO_INCLUDE ++OMPI_BUILD_mpool_fake_DSO_TRUE ++OMPI_BUILD_mpool_fake_DSO_FALSE ++OMPI_BUILD_mpool_rdma_DSO_TRUE ++OMPI_BUILD_mpool_rdma_DSO_FALSE ++OMPI_BUILD_mpool_sm_DSO_TRUE ++OMPI_BUILD_mpool_sm_DSO_FALSE ++MCA_mpool_ALL_COMPONENTS ++MCA_mpool_STATIC_COMPONENTS ++MCA_mpool_DSO_COMPONENTS ++MCA_mpool_STATIC_LTLIBS ++MCA_mpool_ALL_SUBDIRS ++MCA_mpool_STATIC_SUBDIRS ++MCA_mpool_DSO_SUBDIRS ++mtl_mx_CFLAGS ++mtl_mx_CPPFLAGS ++mtl_mx_LDFLAGS ++mtl_mx_LIBS ++OMPI_BUILD_mtl_mx_DSO_TRUE ++OMPI_BUILD_mtl_mx_DSO_FALSE ++mtl_portals_CPPFLAGS ++mtl_portals_LDFLAGS ++mtl_portals_LIBS ++OMPI_BUILD_mtl_portals_DSO_TRUE ++OMPI_BUILD_mtl_portals_DSO_FALSE ++mtl_psm_CFLAGS ++mtl_psm_CPPFLAGS ++mtl_psm_LDFLAGS ++mtl_psm_LIBS ++OMPI_BUILD_mtl_psm_DSO_TRUE ++OMPI_BUILD_mtl_psm_DSO_FALSE ++MCA_mtl_ALL_COMPONENTS ++MCA_mtl_STATIC_COMPONENTS ++MCA_mtl_DSO_COMPONENTS ++MCA_mtl_STATIC_LTLIBS ++MCA_mtl_ALL_SUBDIRS ++MCA_mtl_STATIC_SUBDIRS ++MCA_mtl_DSO_SUBDIRS ++OMPI_BUILD_osc_pt2pt_DSO_TRUE ++OMPI_BUILD_osc_pt2pt_DSO_FALSE ++OMPI_BUILD_osc_rdma_DSO_TRUE ++OMPI_BUILD_osc_rdma_DSO_FALSE ++MCA_osc_ALL_COMPONENTS ++MCA_osc_STATIC_COMPONENTS ++MCA_osc_DSO_COMPONENTS ++MCA_osc_STATIC_LTLIBS ++MCA_osc_ALL_SUBDIRS ++MCA_osc_STATIC_SUBDIRS ++MCA_osc_DSO_SUBDIRS ++OMPI_BUILD_pml_cm_DSO_TRUE ++OMPI_BUILD_pml_cm_DSO_FALSE ++OMPI_BUILD_pml_ob1_DSO_TRUE ++OMPI_BUILD_pml_ob1_DSO_FALSE ++OMPI_BUILD_pml_crcpw_DSO_TRUE ++OMPI_BUILD_pml_crcpw_DSO_FALSE ++OMPI_BUILD_vprotocol_pessimist_DSO_TRUE ++OMPI_BUILD_vprotocol_pessimist_DSO_FALSE ++MCA_vprotocol_ALL_COMPONENTS ++MCA_vprotocol_STATIC_COMPONENTS ++MCA_vprotocol_DSO_COMPONENTS ++MCA_vprotocol_STATIC_LTLIBS ++MCA_vprotocol_ALL_SUBDIRS ++MCA_vprotocol_STATIC_SUBDIRS ++MCA_vprotocol_DSO_SUBDIRS ++OMPI_BUILD_pml_v_DSO_TRUE ++OMPI_BUILD_pml_v_DSO_FALSE ++MCA_pml_ALL_COMPONENTS ++MCA_pml_STATIC_COMPONENTS ++MCA_pml_DSO_COMPONENTS ++MCA_pml_STATIC_LTLIBS ++MCA_pml_ALL_SUBDIRS ++MCA_pml_STATIC_SUBDIRS ++MCA_pml_DSO_SUBDIRS ++OMPI_BUILD_pubsub_orte_DSO_TRUE ++OMPI_BUILD_pubsub_orte_DSO_FALSE ++MCA_pubsub_ALL_COMPONENTS ++MCA_pubsub_STATIC_COMPONENTS ++MCA_pubsub_DSO_COMPONENTS ++MCA_pubsub_STATIC_LTLIBS ++MCA_pubsub_ALL_SUBDIRS ++MCA_pubsub_STATIC_SUBDIRS ++MCA_pubsub_DSO_SUBDIRS ++OMPI_BUILD_rcache_vma_DSO_TRUE ++OMPI_BUILD_rcache_vma_DSO_FALSE ++MCA_rcache_ALL_COMPONENTS ++MCA_rcache_STATIC_COMPONENTS ++MCA_rcache_DSO_COMPONENTS ++MCA_rcache_STATIC_LTLIBS ++MCA_rcache_ALL_SUBDIRS ++MCA_rcache_STATIC_SUBDIRS ++MCA_rcache_DSO_SUBDIRS ++OMPI_BUILD_topo_unity_DSO_TRUE ++OMPI_BUILD_topo_unity_DSO_FALSE ++MCA_topo_ALL_COMPONENTS ++MCA_topo_STATIC_COMPONENTS ++MCA_topo_DSO_COMPONENTS ++MCA_topo_STATIC_LTLIBS ++MCA_topo_ALL_SUBDIRS ++MCA_topo_STATIC_SUBDIRS ++MCA_topo_DSO_SUBDIRS ++MCA_ompi_FRAMEWORKS ++MCA_ompi_FRAMEWORKS_SUBDIRS ++MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS ++MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS ++MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS ++MCA_ompi_FRAMEWORK_LIBS ++MCA_pml_DIRECT_CALL_HEADER ++MCA_mtl_DIRECT_CALL_HEADER ++MCA_PROJECT_SUBDIRS ++OMPI_CONTRIB_SUBDIRS ++OMPI_CONTRIB_DIST_SUBDIRS ++OMPI_LIBEVENT_SOURCES ++LIBLTDL ++LTDLDEPS ++LTDLINCL ++INCLTDL ++AS ++DLLTOOL ++LIBTOOL ++SED ++LD ++AR ++RANLIB ++lt_ECHO ++DSYMUTIL ++NMEDIT ++LIPO ++OTOOL ++OTOOL64 ++LIBLTDL_SUBDIR ++TOTALVIEW_DEBUG_FLAGS ++CXXCPPFLAGS ++OMPI_LIBMPI_EXTRA_LIBS ++OMPI_LIBMPI_EXTRA_LDFLAGS ++AMCA_PARAM_SETS_DIR ++OPAL_WRAPPER_EXTRA_CPPFLAGS ++OPAL_WRAPPER_EXTRA_CFLAGS ++OPAL_WRAPPER_EXTRA_CXXFLAGS ++OPAL_WRAPPER_EXTRA_LDFLAGS ++OPAL_WRAPPER_EXTRA_LIBS ++OPAL_WRAPPER_EXTRA_INCLUDES ++ORTE_WRAPPER_EXTRA_CPPFLAGS ++ORTE_WRAPPER_EXTRA_CFLAGS ++ORTE_WRAPPER_EXTRA_CXXFLAGS ++ORTE_WRAPPER_EXTRA_LDFLAGS ++ORTE_WRAPPER_EXTRA_LIBS ++ORTE_WRAPPER_EXTRA_INCLUDES ++OMPI_WRAPPER_EXTRA_CPPFLAGS ++OMPI_WRAPPER_EXTRA_CFLAGS ++OMPI_WRAPPER_EXTRA_CXXFLAGS ++OMPI_WRAPPER_EXTRA_FFLAGS ++OMPI_WRAPPER_EXTRA_FCFLAGS ++OMPI_WRAPPER_EXTRA_LDFLAGS ++OMPI_WRAPPER_EXTRA_LIBS ++OMPI_WRAPPER_EXTRA_INCLUDES ++OMPI_WRAPPER_CXX_LIB ++OMPI_WRAPPER_CXX_REQUIRED_FILE ++OMPI_WRAPPER_F77_REQUIRED_FILE ++OMPI_WRAPPER_F90_REQUIRED_FILE ++OMPI_WRAPPER_INCLUDEDIR ++OMPI_WRAPPER_LIBDIR ++WRAPPER_EXTRA_CFLAGS ++WRAPPER_EXTRA_CXXFLAGS ++WRAPPER_EXTRA_FFLAGS ++WRAPPER_EXTRA_FCFLAGS ++WRAPPER_EXTRA_LDFLAGS ++WRAPPER_EXTRA_LIBS ++LIB@&t@OBJS ++LTLIBOBJS' ++ac_subst_files='' ++ ac_precious_vars='build_alias ++host_alias ++target_alias ++CC ++CFLAGS ++LDFLAGS ++LIBS ++CPPFLAGS ++CPP ++CXX ++CXXFLAGS ++CCC ++CXXCPP ++CCAS ++CCASFLAGS ++F77 ++FFLAGS ++FC ++FCFLAGS ++YACC ++YFLAGS ++OBJC ++OBJCFLAGS' ++ ++ ++# Initialize some variables set by options. ++ac_init_help= ++ac_init_version=false ++# The variables have the same names as the options, with ++# dashes changed to underlines. ++cache_file=/dev/null ++exec_prefix=NONE ++no_create= ++no_recursion= ++prefix=NONE ++program_prefix=NONE ++program_suffix=NONE ++program_transform_name=s,x,x, ++silent= ++site= ++srcdir= ++verbose= ++x_includes=NONE ++x_libraries=NONE ++ ++# Installation directory options. ++# These are left unexpanded so users can "make install exec_prefix=/foo" ++# and all the variables that are supposed to be based on exec_prefix ++# by default will actually change. ++# Use braces instead of parens because sh, perl, etc. also accept them. ++# (The list follows the same order as the GNU Coding Standards.) ++bindir='${exec_prefix}/bin' ++sbindir='${exec_prefix}/sbin' ++libexecdir='${exec_prefix}/libexec' ++datarootdir='${prefix}/share' ++datadir='${datarootdir}' ++sysconfdir='${prefix}/etc' ++sharedstatedir='${prefix}/com' ++localstatedir='${prefix}/var' ++includedir='${prefix}/include' ++oldincludedir='/usr/include' ++docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' ++infodir='${datarootdir}/info' ++htmldir='${docdir}' ++dvidir='${docdir}' ++pdfdir='${docdir}' ++psdir='${docdir}' ++libdir='${exec_prefix}/lib' ++localedir='${datarootdir}/locale' ++mandir='${datarootdir}/man' ++ ++ac_prev= ++ac_dashdash= ++for ac_option ++do ++ # If the previous option needs an argument, assign it. ++ if test -n "$ac_prev"; then ++ eval $ac_prev=\$ac_option ++ ac_prev= ++ continue ++ fi ++ ++ case $ac_option in ++ *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; ++ *) ac_optarg=yes ;; ++ esac ++ ++ # Accept the important Cygnus configure options, so we can diagnose typos. ++ ++ case $ac_dashdash$ac_option in ++ --) ++ ac_dashdash=yes ;; ++ ++ -bindir | --bindir | --bindi | --bind | --bin | --bi) ++ ac_prev=bindir ;; ++ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) ++ bindir=$ac_optarg ;; ++ ++ -build | --build | --buil | --bui | --bu) ++ ac_prev=build_alias ;; ++ -build=* | --build=* | --buil=* | --bui=* | --bu=*) ++ build_alias=$ac_optarg ;; ++ ++ -cache-file | --cache-file | --cache-fil | --cache-fi \ ++ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ++ ac_prev=cache_file ;; ++ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ ++ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) ++ cache_file=$ac_optarg ;; ++ ++ --config-cache | -C) ++ cache_file=config.cache ;; ++ ++ -datadir | --datadir | --datadi | --datad) ++ ac_prev=datadir ;; ++ -datadir=* | --datadir=* | --datadi=* | --datad=*) ++ datadir=$ac_optarg ;; ++ ++ -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ ++ | --dataroo | --dataro | --datar) ++ ac_prev=datarootdir ;; ++ -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ ++ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) ++ datarootdir=$ac_optarg ;; ++ ++ -disable-* | --disable-*) ++ ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` ++ # Reject names that are not valid shell variable names. ++ expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && ++ { echo "$as_me: error: invalid feature name: $ac_feature" >&2 ++ { (exit 1); exit 1; }; } ++ ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` ++ eval enable_$ac_feature=no ;; ++ ++ -docdir | --docdir | --docdi | --doc | --do) ++ ac_prev=docdir ;; ++ -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) ++ docdir=$ac_optarg ;; ++ ++ -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ++ ac_prev=dvidir ;; ++ -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) ++ dvidir=$ac_optarg ;; ++ ++ -enable-* | --enable-*) ++ ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` ++ # Reject names that are not valid shell variable names. ++ expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && ++ { echo "$as_me: error: invalid feature name: $ac_feature" >&2 ++ { (exit 1); exit 1; }; } ++ ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` ++ eval enable_$ac_feature=\$ac_optarg ;; ++ ++ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ ++ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ ++ | --exec | --exe | --ex) ++ ac_prev=exec_prefix ;; ++ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ ++ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ ++ | --exec=* | --exe=* | --ex=*) ++ exec_prefix=$ac_optarg ;; ++ ++ -gas | --gas | --ga | --g) ++ # Obsolete; use --with-gas. ++ with_gas=yes ;; ++ ++ -help | --help | --hel | --he | -h) ++ ac_init_help=long ;; ++ -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ++ ac_init_help=recursive ;; ++ -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ++ ac_init_help=short ;; ++ ++ -host | --host | --hos | --ho) ++ ac_prev=host_alias ;; ++ -host=* | --host=* | --hos=* | --ho=*) ++ host_alias=$ac_optarg ;; ++ ++ -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ++ ac_prev=htmldir ;; ++ -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ ++ | --ht=*) ++ htmldir=$ac_optarg ;; ++ ++ -includedir | --includedir | --includedi | --included | --include \ ++ | --includ | --inclu | --incl | --inc) ++ ac_prev=includedir ;; ++ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ ++ | --includ=* | --inclu=* | --incl=* | --inc=*) ++ includedir=$ac_optarg ;; ++ ++ -infodir | --infodir | --infodi | --infod | --info | --inf) ++ ac_prev=infodir ;; ++ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) ++ infodir=$ac_optarg ;; ++ ++ -libdir | --libdir | --libdi | --libd) ++ ac_prev=libdir ;; ++ -libdir=* | --libdir=* | --libdi=* | --libd=*) ++ libdir=$ac_optarg ;; ++ ++ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ ++ | --libexe | --libex | --libe) ++ ac_prev=libexecdir ;; ++ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ ++ | --libexe=* | --libex=* | --libe=*) ++ libexecdir=$ac_optarg ;; ++ ++ -localedir | --localedir | --localedi | --localed | --locale) ++ ac_prev=localedir ;; ++ -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) ++ localedir=$ac_optarg ;; ++ ++ -localstatedir | --localstatedir | --localstatedi | --localstated \ ++ | --localstate | --localstat | --localsta | --localst | --locals) ++ ac_prev=localstatedir ;; ++ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ ++ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) ++ localstatedir=$ac_optarg ;; ++ ++ -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ++ ac_prev=mandir ;; ++ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) ++ mandir=$ac_optarg ;; ++ ++ -nfp | --nfp | --nf) ++ # Obsolete; use --without-fp. ++ with_fp=no ;; ++ ++ -no-create | --no-create | --no-creat | --no-crea | --no-cre \ ++ | --no-cr | --no-c | -n) ++ no_create=yes ;; ++ ++ -no-recursion | --no-recursion | --no-recursio | --no-recursi \ ++ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ++ no_recursion=yes ;; ++ ++ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ ++ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ ++ | --oldin | --oldi | --old | --ol | --o) ++ ac_prev=oldincludedir ;; ++ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ ++ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ ++ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) ++ oldincludedir=$ac_optarg ;; ++ ++ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ++ ac_prev=prefix ;; ++ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ++ prefix=$ac_optarg ;; ++ ++ -program-prefix | --program-prefix | --program-prefi | --program-pref \ ++ | --program-pre | --program-pr | --program-p) ++ ac_prev=program_prefix ;; ++ -program-prefix=* | --program-prefix=* | --program-prefi=* \ ++ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) ++ program_prefix=$ac_optarg ;; ++ ++ -program-suffix | --program-suffix | --program-suffi | --program-suff \ ++ | --program-suf | --program-su | --program-s) ++ ac_prev=program_suffix ;; ++ -program-suffix=* | --program-suffix=* | --program-suffi=* \ ++ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) ++ program_suffix=$ac_optarg ;; ++ ++ -program-transform-name | --program-transform-name \ ++ | --program-transform-nam | --program-transform-na \ ++ | --program-transform-n | --program-transform- \ ++ | --program-transform | --program-transfor \ ++ | --program-transfo | --program-transf \ ++ | --program-trans | --program-tran \ ++ | --progr-tra | --program-tr | --program-t) ++ ac_prev=program_transform_name ;; ++ -program-transform-name=* | --program-transform-name=* \ ++ | --program-transform-nam=* | --program-transform-na=* \ ++ | --program-transform-n=* | --program-transform-=* \ ++ | --program-transform=* | --program-transfor=* \ ++ | --program-transfo=* | --program-transf=* \ ++ | --program-trans=* | --program-tran=* \ ++ | --progr-tra=* | --program-tr=* | --program-t=*) ++ program_transform_name=$ac_optarg ;; ++ ++ -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ++ ac_prev=pdfdir ;; ++ -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) ++ pdfdir=$ac_optarg ;; ++ ++ -psdir | --psdir | --psdi | --psd | --ps) ++ ac_prev=psdir ;; ++ -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) ++ psdir=$ac_optarg ;; ++ ++ -q | -quiet | --quiet | --quie | --qui | --qu | --q \ ++ | -silent | --silent | --silen | --sile | --sil) ++ silent=yes ;; ++ ++ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ++ ac_prev=sbindir ;; ++ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ ++ | --sbi=* | --sb=*) ++ sbindir=$ac_optarg ;; ++ ++ -sharedstatedir | --sharedstatedir | --sharedstatedi \ ++ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ ++ | --sharedst | --shareds | --shared | --share | --shar \ ++ | --sha | --sh) ++ ac_prev=sharedstatedir ;; ++ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ ++ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ ++ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ ++ | --sha=* | --sh=*) ++ sharedstatedir=$ac_optarg ;; ++ ++ -site | --site | --sit) ++ ac_prev=site ;; ++ -site=* | --site=* | --sit=*) ++ site=$ac_optarg ;; ++ ++ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ++ ac_prev=srcdir ;; ++ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) ++ srcdir=$ac_optarg ;; ++ ++ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ ++ | --syscon | --sysco | --sysc | --sys | --sy) ++ ac_prev=sysconfdir ;; ++ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ ++ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) ++ sysconfdir=$ac_optarg ;; ++ ++ -target | --target | --targe | --targ | --tar | --ta | --t) ++ ac_prev=target_alias ;; ++ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) ++ target_alias=$ac_optarg ;; ++ ++ -v | -verbose | --verbose | --verbos | --verbo | --verb) ++ verbose=yes ;; ++ ++ -version | --version | --versio | --versi | --vers | -V) ++ ac_init_version=: ;; ++ ++ -with-* | --with-*) ++ ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` ++ # Reject names that are not valid shell variable names. ++ expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && ++ { echo "$as_me: error: invalid package name: $ac_package" >&2 ++ { (exit 1); exit 1; }; } ++ ac_package=`echo $ac_package | sed 's/[-.]/_/g'` ++ eval with_$ac_package=\$ac_optarg ;; ++ ++ -without-* | --without-*) ++ ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` ++ # Reject names that are not valid shell variable names. ++ expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && ++ { echo "$as_me: error: invalid package name: $ac_package" >&2 ++ { (exit 1); exit 1; }; } ++ ac_package=`echo $ac_package | sed 's/[-.]/_/g'` ++ eval with_$ac_package=no ;; ++ ++ --x) ++ # Obsolete; use --with-x. ++ with_x=yes ;; ++ ++ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ ++ | --x-incl | --x-inc | --x-in | --x-i) ++ ac_prev=x_includes ;; ++ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ ++ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) ++ x_includes=$ac_optarg ;; ++ ++ -x-libraries | --x-libraries | --x-librarie | --x-librari \ ++ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ++ ac_prev=x_libraries ;; ++ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ ++ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) ++ x_libraries=$ac_optarg ;; ++ ++ -*) { echo "$as_me: error: unrecognized option: $ac_option ++Try \`$0 --help' for more information." >&2 ++ { (exit 1); exit 1; }; } ++ ;; ++ ++ *=*) ++ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` ++ # Reject names that are not valid shell variable names. ++ expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && ++ { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 ++ { (exit 1); exit 1; }; } ++ eval $ac_envvar=\$ac_optarg ++ export $ac_envvar ;; ++ ++ *) ++ # FIXME: should be removed in autoconf 3.0. ++ echo "$as_me: WARNING: you should use --build, --host, --target" >&2 ++ expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && ++ echo "$as_me: WARNING: invalid host type: $ac_option" >&2 ++ : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ++ ;; ++ ++ esac ++done ++ ++if test -n "$ac_prev"; then ++ ac_option=--`echo $ac_prev | sed 's/_/-/g'` ++ { echo "$as_me: error: missing argument to $ac_option" >&2 ++ { (exit 1); exit 1; }; } ++fi ++ ++# Be sure to have absolute directory names. ++for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ ++ datadir sysconfdir sharedstatedir localstatedir includedir \ ++ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ ++ libdir localedir mandir ++do ++ eval ac_val=\$$ac_var ++ case $ac_val in ++ [\\/$]* | ?:[\\/]* ) continue;; ++ NONE | '' ) case $ac_var in *prefix ) continue;; esac;; ++ esac ++ { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 ++ { (exit 1); exit 1; }; } ++done ++ ++# There might be people who depend on the old broken behavior: `$host' ++# used to hold the argument of --host etc. ++# FIXME: To remove some day. ++build=$build_alias ++host=$host_alias ++target=$target_alias ++ ++# FIXME: To remove some day. ++if test "x$host_alias" != x; then ++ if test "x$build_alias" = x; then ++ cross_compiling=maybe ++ echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. ++ If a cross compiler is detected then cross compile mode will be used." >&2 ++ elif test "x$build_alias" != "x$host_alias"; then ++ cross_compiling=yes ++ fi ++fi ++ ++ac_tool_prefix= ++test -n "$host_alias" && ac_tool_prefix=$host_alias- ++ ++test "$silent" = yes && exec 6>/dev/null ++ ++ ++ac_pwd=`pwd` && test -n "$ac_pwd" && ++ac_ls_di=`ls -di .` && ++ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || ++ { echo "$as_me: error: Working directory cannot be determined" >&2 ++ { (exit 1); exit 1; }; } ++test "X$ac_ls_di" = "X$ac_pwd_ls_di" || ++ { echo "$as_me: error: pwd does not report name of working directory" >&2 ++ { (exit 1); exit 1; }; } ++ ++ ++# Find the source files, if location was not specified. ++if test -z "$srcdir"; then ++ ac_srcdir_defaulted=yes ++ # Try the directory containing this script, then the parent directory. ++ ac_confdir=`$as_dirname -- "$0" || ++$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$0" : 'X\(//\)[^/]' \| \ ++ X"$0" : 'X\(//\)$' \| \ ++ X"$0" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$0" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ srcdir=$ac_confdir ++ if test ! -r "$srcdir/$ac_unique_file"; then ++ srcdir=.. ++ fi ++else ++ ac_srcdir_defaulted=no ++fi ++if test ! -r "$srcdir/$ac_unique_file"; then ++ test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." ++ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 ++ { (exit 1); exit 1; }; } ++fi ++ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ++ac_abs_confdir=`( ++ cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 ++ { (exit 1); exit 1; }; } ++ pwd)` ++# When building in place, set srcdir=. ++if test "$ac_abs_confdir" = "$ac_pwd"; then ++ srcdir=. ++fi ++# Remove unnecessary trailing slashes from srcdir. ++# Double slashes in file names in object file debugging info ++# mess up M-x gdb in Emacs. ++case $srcdir in ++*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; ++esac ++for ac_var in $ac_precious_vars; do ++ eval ac_env_${ac_var}_set=\${${ac_var}+set} ++ eval ac_env_${ac_var}_value=\$${ac_var} ++ eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} ++ eval ac_cv_env_${ac_var}_value=\$${ac_var} ++done ++ ++# ++# Report the --help message. ++# ++if test "$ac_init_help" = "long"; then ++ # Omit some internal or obsolete options to make the list less imposing. ++ # This message is too long to be a string in the A/UX 3.1 sh. ++ cat <<_ACEOF ++\`configure' configures Open MPI 1.3 to adapt to many kinds of systems. ++ ++Usage: $0 [OPTION]... [VAR=VALUE]... ++ ++To assign environment variables (e.g., CC, CFLAGS...), specify them as ++VAR=VALUE. See below for descriptions of some of the useful variables. ++ ++Defaults for the options are specified in brackets. ++ ++Configuration: ++ -h, --help display this help and exit ++ --help=short display options specific to this package ++ --help=recursive display the short help of all the included packages ++ -V, --version display version information and exit ++ -q, --quiet, --silent do not print \`checking...' messages ++ --cache-file=FILE cache test results in FILE [disabled] ++ -C, --config-cache alias for \`--cache-file=config.cache' ++ -n, --no-create do not create output files ++ --srcdir=DIR find the sources in DIR [configure dir or \`..'] ++ ++Installation directories: ++ --prefix=PREFIX install architecture-independent files in PREFIX ++ [$ac_default_prefix] ++ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX ++ [PREFIX] ++ ++By default, \`make install' will install all the files in ++\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify ++an installation prefix other than \`$ac_default_prefix' using \`--prefix', ++for instance \`--prefix=\$HOME'. ++ ++For better control, use the options below. ++ ++Fine tuning of the installation directories: ++ --bindir=DIR user executables [EPREFIX/bin] ++ --sbindir=DIR system admin executables [EPREFIX/sbin] ++ --libexecdir=DIR program executables [EPREFIX/libexec] ++ --sysconfdir=DIR read-only single-machine data [PREFIX/etc] ++ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] ++ --localstatedir=DIR modifiable single-machine data [PREFIX/var] ++ --libdir=DIR object code libraries [EPREFIX/lib] ++ --includedir=DIR C header files [PREFIX/include] ++ --oldincludedir=DIR C header files for non-gcc [/usr/include] ++ --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] ++ --datadir=DIR read-only architecture-independent data [DATAROOTDIR] ++ --infodir=DIR info documentation [DATAROOTDIR/info] ++ --localedir=DIR locale-dependent data [DATAROOTDIR/locale] ++ --mandir=DIR man documentation [DATAROOTDIR/man] ++ --docdir=DIR documentation root @<:@DATAROOTDIR/doc/openmpi@:>@ ++ --htmldir=DIR html documentation [DOCDIR] ++ --dvidir=DIR dvi documentation [DOCDIR] ++ --pdfdir=DIR pdf documentation [DOCDIR] ++ --psdir=DIR ps documentation [DOCDIR] ++_ACEOF ++ ++ cat <<\_ACEOF ++ ++Program names: ++ --program-prefix=PREFIX prepend PREFIX to installed program names ++ --program-suffix=SUFFIX append SUFFIX to installed program names ++ --program-transform-name=PROGRAM run sed PROGRAM on installed program names ++ ++System types: ++ --build=BUILD configure for building on BUILD [guessed] ++ --host=HOST cross-compile to build programs to run on HOST [BUILD] ++_ACEOF ++fi ++ ++if test -n "$ac_init_help"; then ++ case $ac_init_help in ++ short | recursive ) echo "Configuration of Open MPI 1.3:";; ++ esac ++ cat <<\_ACEOF ++ ++Optional Features: ++ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) ++ --enable-FEATURE[=ARG] include FEATURE [ARG=yes] ++ --enable-dist guarantee that that the "dist" make target will be ++ functional, although may not guarantee that any ++ other make target will be functional. ++ --enable-coverage enable code coverage files to be generated ++ --enable-branch-probabilities ++ enable profile arcs and branch probability ++ optimization ++ --enable-mem-debug enable memory debugging (debugging only) (default: ++ disabled) ++ --enable-mem-profile enable memory profiling (debugging only) (default: ++ disabled) ++ --enable-picky enable developer-level compiler pickyness when ++ building Open MPI (default: disabled) ++ --enable-debug enable developer-level debugging code (not for ++ general MPI users!) (default: disabled) ++ --disable-debug-symbols Disable adding compiler flags to enable debugging ++ symbols if --enable-debug is specified. For ++ non-debugging builds, this flag has no effect. ++ --enable-sparse-groups enable sparse process groups (default: not enabled) ++ --enable-mpi-f77 enable f77 MPI bindings (default: enabled) ++ --enable-mpi-f90 enable f90 MPI bindings (default: enabled) ++ --enable-mpi-profile enable MPI profiling (default: enabled) ++ --enable-mpi-cxx enable C++ MPI bindings (default: enabled) ++ --enable-mpi-cxx-seek enable support for MPI::SEEK_SET, MPI::SEEK_END, and ++ MPI::SEEK_POS in C++ bindings (default: enabled) ++ --enable-weak-symbols use weak symbols, if available (default: enabled) ++ --enable-pretty-print-stacktrace ++ Pretty print stacktrace on process signal (default: ++ enabled) ++ --enable-peruse Support PERUSE interface (default: disabled) ++ --enable-pty-support Enable/disable PTY support for STDIO forwarding. ++ (default: enabled) ++ --enable-dlopen Whether build should attempt to use dlopen (or ++ similar) to dynamically load components. Disabling ++ dlopen implies --disable-mca-dso. (default: enabled) ++ --enable-heterogeneous Enable features required for heterogeneous platform ++ support (default: disabled) ++ --enable-trace Enable internal tracing of OMPI/ORTE/OPAL calls -- ++ used only for developer debugging, not tracing of ++ MPI applications (default: disabled) ++ --enable-binaries Build and install binaries required for Open MPI, ++ such as the wrapper compilers. Useful for multi-lib ++ installations. (default: enabled) ++ --enable-script-wrapper-compilers ++ Use less featured script-based wrapper compilers ++ instead of the standard C-based wrapper compilers. ++ This option ignores the --disable-binaries option ++ and is mainly useful in cross-compile environments ++ --enable-per-user-config-files ++ Disable per-user configuration files, to save disk ++ accesses during job strart-up. This is likely ++ desirable for large jobs. Note that this can also be ++ acheived by environment variables at run-time. ++ (default: enabled) ++ --disable-ipv6 Disable IPv6 support (default: enabled, but only if ++ the underlying system supports it) ++ --enable-orterun-prefix-by-default ++ Make "orterun ..." behave exactly the same as ++ "orterun --prefix \$prefix" (where \$prefix is the ++ value given to --prefix in configure) ++ --enable-mpirun-prefix-by-default ++ Synonym for --enable-orterun-prefix-by-default ++ --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@ ++ --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=no@:>@ ++ --disable-dependency-tracking speeds up one-time build ++ --enable-dependency-tracking do not reject slow dependency extractors ++ --enable-cxx-exceptions enable support for C++ exceptions (default: ++ disabled) ++ --enable-smp-locks enable smp locks in atomic ops. Do not disable if ++ code will ever run in SMP or multi-threaded ++ environment. (default: enabled) ++ --enable-mpi-threads Enable threads for MPI applications (default: ++ disabled) ++ --enable-progress-threads ++ Enable threads asynchronous communication progress ++ (default: disabled) ++ --disable-ft-thread Disable fault tolerance thread running inside all ++ processes. Requires progress and/or MPI threads ++ (default: enabled) ++ --enable-mca-no-build=LIST ++ Comma-separated list of - pairs ++ that will not be built. Example: ++ "--enable-mca-no-build=maffinity,btl-portals" will ++ disable building all maffinity components and the ++ "portals" btl components. ++ --enable-mca-dso=LIST Comma-separated list of types and/or type-component ++ pairs that will be built as run-time loadable ++ components (as opposed to statically linked in), if ++ supported on this platform. The default is to build ++ all components as DSOs. ++ --enable-mca-static=LIST ++ Comma-separated list of types and/or type-component ++ pairs that will be built statically linked into the ++ library. The default (if DSOs are supported) is to ++ build all components as DSOs. Enabling a component ++ as static disables it building as a DSO. ++ --enable-mca-direct=LIST ++ Comma-separated list of type-component pairs that ++ will be hard coded as the one component to use for a ++ given component type, saving the (small) overhead of ++ the component architecture. LIST must not be empty ++ and implies given component pairs are build as ++ static components. ++ --enable-memchecker Enable memory and buffer checks. Note that disabling ++ will *also* add "memchecker" to the ++ --enable-mca-no-build list (default: disabled) ++ --enable-ptmalloc2-internal ++ Build ptmalloc2 memory manager into libopen-pal, ++ instead of as separate library. Only has meaning if ++ ptmalloc2 memory component exists ++ --enable-emulate Emulate __NR_sched_setaffinity and ++ __NR_sched_getaffinity, to allow building on ++ non-Linux systems (for testing) ++ --disable-executables Using --disable-executables disables building and ++ installing the PLPA executables ++ --enable-included-mode Using --enable-included-mode puts the PLPA into ++ "included" mode. The default is ++ --disable-included-mode, meaning that the PLPA is in ++ "standalone" mode. ++ --enable-debug Using --enable-debug enables various ++ maintainer-level debugging controls. This option is ++ not recomended for end users. ++ --enable-openib-connectx-xrc ++ Enable ConnectX XRC support. If you do not have ++ InfiniBand ConnectX adapters, you may disable the ++ ConnectX XRC support. If you do not know which ++ InfiniBand adapter is installed on your cluster, ++ leave this option enabled (default: enabled) ++ --enable-openib-ibcm Enable Open Fabrics IBCM support in openib BTL ++ (default: disabled) ++ --enable-openib-rdmacm Enable Open Fabrics RDMACM support in openib BTL ++ (default: enabled) ++ --disable-mpi-io Disable built-in support for MPI-2 I/O, likely ++ because an externally-provided MPI I/O package will ++ be used. Default is to use the internal component ++ system and its specially modified version of ROMIO ++ --disable-io-romio Disable the ROMIO MPI-IO component ++ --enable-visibility enable visibility feature of certain ++ compilers/linkers (default: enabled) ++ --enable-contrib-no-build=LIST ++ Comma-separated list of contributed package NAMEs ++ that will not be built. Example: ++ "--enable-contrib-no-build=libnbc,vt" will disable ++ building both the "libnbc" and "vt" contributed ++ software packages. ++ --enable-fast-install@<:@=PKGS@:>@ ++ optimize for fast installation @<:@default=yes@:>@ ++ --disable-libtool-lock avoid locking (might break parallel builds) ++ ++Optional Packages: ++ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] ++ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) ++ --with-platform=FILE Load options for build from FILE. Options on the ++ command line not in FILE are used. Options on the ++ command line and in FILE are replaced by what is in ++ FILE. ++ --with-mpi-f90-size=SIZE ++ specify the types of functions in the Fortran 90 MPI ++ module, where SIZE is one of: trivial (MPI-2 ++ F90-specific functions only), small (trivial + all ++ MPI functions without choice buffers), medium (small ++ + all MPI functions with one choice buffer), large ++ (medium + all MPI functions with 2 choice buffers, ++ but only when both buffers are the same type). ++ Default SIZE is "small". ++ --with-mpi-param-check(=VALUE) ++ behavior of MPI function parameter checking. Valid ++ values are: always, never, runtime. If ++ --with-mpi-param-check is specified with no VALUE ++ argument, it is equivalent to a VALUE of "always"; ++ --without-mpi-param-check is equivalent to "never" ++ (default: runtime). ++ --with-devel-headers normal MPI users/applications do not need this ++ (mpi.h and mpif.h are ALWAYS installed). Developer ++ headers are only necessary for MCA module authors ++ (default: disabled). ++ --with-f90-max-array-dim= ++ The maximum array dimension supported in the F90 MPI ++ bindings (default: $OMPI_FORTRAN_MAX_ARRAY_RANK). ++ --without-rte-support Build without RTE support for systems that do not ++ require it (default: full RTE support built) ++ --with-cross=FILE Specify configure values that can not be determined ++ in a cross-compilation environment. See the Open MPI ++ FAQ. ++ --with-ft=TYPE Specify the type of fault tolerance to enable. ++ Options: LAM (LAM/MPI-like), cr (Checkpoint/Restart) ++ (default: disabled) ++ --with-package-string=STRING ++ Use a branding string throughout Open MPI ++ --with-ident-string=STRING ++ Embed an ident string into Open MPI object files ++ --with-wrapper-cflags Extra flags to add to CFLAGS when using mpicc ++ --with-wrapper-cxxflags Extra flags to add to CXXFLAGS when using ++ mpiCC/mpic++ ++ --with-wrapper-fflags Extra flags to add to FFLAGS when using mpif77 ++ --with-wrapper-fcflags Extra flags to add to FCFLAGS when using mpif90 ++ --with-wrapper-ldflags Extra flags to add to LDFLAGS when using wrapper ++ compilers ++ --with-wrapper-libs Extra flags to add to LIBS when using wrapper ++ compilers ++ --with-exflags Specify flags necessary to enable C++ exceptions ++ --with-broken-qsort Build with FreeBSD qsort instead of native qsort ++ (default: no) ++ --with-threads Set thread type (solaris / posix) ++ --with-cs-fs Destination FS is case sensitive (default: set to ++ value of the build FS's case sensitivity) ++ --with-blcr(=DIR) Path to BLCR Installation ++ --with-blcr-libdir=DIR Search for BLCR libraries in DIR ++ --with-libnuma Directory where the libnuma software is installed ++ --with-valgrind(=DIR) Directory where the valgrind software is installed ++ --with-memory-manager=TYPE ++ Use TYPE for intercepting memory management calls to ++ control memory pinning. ++ --with-plpa-symbol-prefix=STRING ++ STRING can be any valid C symbol name. It will be ++ prefixed to all public PLPA symbols. Default: ++ "plpa_" ++ --with-timer=TYPE Build high resolution timer component TYPE ++ --with-portals=DIR Specify the installation directory of PORTALS ++ --with-portals-libs=LIBS ++ Libraries to link with for portals ++ --with-alps Build ALPS scheduler component (default: no) ++ --with-lsf(=DIR) Build LSF support ++ --with-lsf-libdir=DIR Search for LSF libraries in DIR ++ --with-slurm Build SLURM scheduler component (default: yes) ++ --with-tm(=DIR) Directory where the tm software is installed ++ --with-xgrid Build support for the Apple Xgrid batch system ++ (default: yes) ++ --with-sge Build SGE or Grid Engine support (default: no) ++ --with-loadleveler(=DIR) ++ Directory where the loadleveler software is ++ installed ++ --with-elan(=DIR) Build Elan (QsNet2) support, searching for libraries ++ in DIR ++ --with-elan-libdir=DIR Search for Elan (QsNet2) libraries in DIR ++ --with-gm(=DIR) Build GM (Myrinet) support, searching for libraries ++ in DIR ++ --with-gm-libdir=DIR Search for GM (Myrinet) libraries in DIR ++ --with-mx(=DIR) Build MX (Myrinet Express) support, searching for ++ libraries in DIR ++ --with-mx-libdir=DIR Search for MX (Myrinet Express) libraries in DIR ++ --with-openib(=DIR) Build OpenFabrics support, searching for libraries ++ in DIR ++ --with-openib-libdir=DIR ++ Search for OpenFabrics libraries in DIR ++ --with-portals(=DIR) Build Portals support, searching for installation in ++ DIR ++ --with-portals-config configuration to use for Portals support. One of ++ "utcp", "xt3", "xt3-modex". (default: utcp) ++ --with-portals-libs=LIBS ++ Libraries to link with for portals ++ --with-udapl(=DIR) Build uDAPL support, searching for libraries in DIR ++ --with-udapl-libdir=DIR Search for uDAPL libraries in DIR ++ --with-io-romio-flags=FLAGS ++ Pass FLAGS to the ROMIO distribution configuration ++ script ++ --with-psm(=DIR) Build PSM (QLogic InfiniPath PSM) support, searching ++ for libraries in DIR ++ --with-psm-libdir=DIR Search for PSM (QLogic InfiniPath PSM) libraries in ++ DIR ++ --with-contrib-vt-flags=FLAGS ++ Pass FLAGS to the VampirTrace distribution ++ configuration script ++ --with-event-rtsig compile with support for real time signals ++ (experimental) ++ --with-pic try to use only PIC/non-PIC objects @<:@default=use ++ both@:>@ ++ --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ ++ ++Some influential environment variables: ++ CC C compiler command ++ CFLAGS C compiler flags ++ LDFLAGS linker flags, e.g. -L if you have libraries in a ++ nonstandard directory ++ LIBS libraries to pass to the linker, e.g. -l ++ CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if ++ you have headers in a nonstandard directory ++ CPP C preprocessor ++ CXX C++ compiler command ++ CXXFLAGS C++ compiler flags ++ CXXCPP C++ preprocessor ++ CCAS assembler compiler command (defaults to CC) ++ CCASFLAGS assembler compiler flags (defaults to CFLAGS) ++ F77 Fortran 77 compiler command ++ FFLAGS Fortran 77 compiler flags ++ FC Fortran compiler command ++ FCFLAGS Fortran compiler flags ++ YACC The `Yet Another C Compiler' implementation to use. Defaults to ++ the first program found out of: `bison -y', `byacc', `yacc'. ++ YFLAGS The list of arguments that will be passed by default to $YACC. ++ This script will default YFLAGS to the empty string to avoid a ++ default value of `-d' given by some make applications. ++ OBJC Objective C compiler command ++ OBJCFLAGS Objective C compiler flags ++ ++Use these variables to override the choices made by `configure' or to help ++it to find libraries and programs with nonstandard names/locations. ++ ++Report bugs to . ++_ACEOF ++ac_status=$? ++fi ++ ++if test "$ac_init_help" = "recursive"; then ++ # If there are subdirs, report their specific --help. ++ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue ++ test -d "$ac_dir" || continue ++ ac_builddir=. ++ ++case "$ac_dir" in ++.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; ++*) ++ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` ++ # A ".." for each directory in $ac_dir_suffix. ++ ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` ++ case $ac_top_builddir_sub in ++ "") ac_top_builddir_sub=. ac_top_build_prefix= ;; ++ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; ++ esac ;; ++esac ++ac_abs_top_builddir=$ac_pwd ++ac_abs_builddir=$ac_pwd$ac_dir_suffix ++# for backward compatibility: ++ac_top_builddir=$ac_top_build_prefix ++ ++case $srcdir in ++ .) # We are building in place. ++ ac_srcdir=. ++ ac_top_srcdir=$ac_top_builddir_sub ++ ac_abs_top_srcdir=$ac_pwd ;; ++ [\\/]* | ?:[\\/]* ) # Absolute name. ++ ac_srcdir=$srcdir$ac_dir_suffix; ++ ac_top_srcdir=$srcdir ++ ac_abs_top_srcdir=$srcdir ;; ++ *) # Relative name. ++ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ++ ac_top_srcdir=$ac_top_build_prefix$srcdir ++ ac_abs_top_srcdir=$ac_pwd/$srcdir ;; ++esac ++ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix ++ ++ cd "$ac_dir" || { ac_status=$?; continue; } ++ # Check for guested configure. ++ if test -f "$ac_srcdir/configure.gnu"; then ++ echo && ++ $SHELL "$ac_srcdir/configure.gnu" --help=recursive ++ elif test -f "$ac_srcdir/configure"; then ++ echo && ++ $SHELL "$ac_srcdir/configure" --help=recursive ++ else ++ echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 ++ fi || ac_status=$? ++ cd "$ac_pwd" || { ac_status=$?; break; } ++ done ++fi ++ ++test -n "$ac_init_help" && exit $ac_status ++if $ac_init_version; then ++ cat <<\_ACEOF ++Open MPI configure 1.3 ++generated by GNU Autoconf 2.61 ++ ++Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, ++2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. ++This configure script is free software; the Free Software Foundation ++gives unlimited permission to copy, distribute and modify it. ++_ACEOF ++ exit ++fi ++cat >config.log <<_ACEOF ++This file contains any messages produced by compilers while ++running configure, to aid debugging if configure makes a mistake. ++ ++It was created by Open MPI $as_me 1.3, which was ++generated by GNU Autoconf 2.61. Invocation command line was ++ ++ $ $0 $@ ++ ++_ACEOF ++exec 5>>config.log ++{ ++cat <<_ASUNAME ++@%:@@%:@ --------- @%:@@%:@ ++@%:@@%:@ Platform. @%:@@%:@ ++@%:@@%:@ --------- @%:@@%:@ ++ ++hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` ++uname -m = `(uname -m) 2>/dev/null || echo unknown` ++uname -r = `(uname -r) 2>/dev/null || echo unknown` ++uname -s = `(uname -s) 2>/dev/null || echo unknown` ++uname -v = `(uname -v) 2>/dev/null || echo unknown` ++ ++/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` ++/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` ++ ++/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` ++/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` ++/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` ++/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` ++/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` ++/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` ++/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` ++ ++_ASUNAME ++ ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ echo "PATH: $as_dir" ++done ++IFS=$as_save_IFS ++ ++} >&5 ++ ++cat >&5 <<_ACEOF ++ ++ ++@%:@@%:@ ----------- @%:@@%:@ ++@%:@@%:@ Core tests. @%:@@%:@ ++@%:@@%:@ ----------- @%:@@%:@ ++ ++_ACEOF ++ ++ ++# Keep a trace of the command line. ++# Strip out --no-create and --no-recursion so they do not pile up. ++# Strip out --silent because we don't want to record it for future runs. ++# Also quote any args containing shell meta-characters. ++# Make two passes to allow for proper duplicate-argument suppression. ++ac_configure_args= ++ac_configure_args0= ++ac_configure_args1= ++ac_must_keep_next=false ++for ac_pass in 1 2 ++do ++ for ac_arg ++ do ++ case $ac_arg in ++ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; ++ -q | -quiet | --quiet | --quie | --qui | --qu | --q \ ++ | -silent | --silent | --silen | --sile | --sil) ++ continue ;; ++ *\'*) ++ ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; ++ esac ++ case $ac_pass in ++ 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; ++ 2) ++ ac_configure_args1="$ac_configure_args1 '$ac_arg'" ++ if test $ac_must_keep_next = true; then ++ ac_must_keep_next=false # Got value, back to normal. ++ else ++ case $ac_arg in ++ *=* | --config-cache | -C | -disable-* | --disable-* \ ++ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ ++ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ ++ | -with-* | --with-* | -without-* | --without-* | --x) ++ case "$ac_configure_args0 " in ++ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; ++ esac ++ ;; ++ -* ) ac_must_keep_next=true ;; ++ esac ++ fi ++ ac_configure_args="$ac_configure_args '$ac_arg'" ++ ;; ++ esac ++ done ++done ++$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } ++$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } ++ ++# When interrupted or exit'd, cleanup temporary files, and complete ++# config.log. We remove comments because anyway the quotes in there ++# would cause problems or look ugly. ++# WARNING: Use '\'' to represent an apostrophe within the trap. ++# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. ++trap 'exit_status=$? ++ # Save into config.log some information that might help in debugging. ++ { ++ echo ++ ++ cat <<\_ASBOX ++@%:@@%:@ ---------------- @%:@@%:@ ++@%:@@%:@ Cache variables. @%:@@%:@ ++@%:@@%:@ ---------------- @%:@@%:@ ++_ASBOX ++ echo ++ # The following way of writing the cache mishandles newlines in values, ++( ++ for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do ++ eval ac_val=\$$ac_var ++ case $ac_val in #( ++ *${as_nl}*) ++ case $ac_var in #( ++ *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 ++echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; ++ esac ++ case $ac_var in #( ++ _ | IFS | as_nl) ;; #( ++ *) $as_unset $ac_var ;; ++ esac ;; ++ esac ++ done ++ (set) 2>&1 | ++ case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( ++ *${as_nl}ac_space=\ *) ++ sed -n \ ++ "s/'\''/'\''\\\\'\'''\''/g; ++ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ++ ;; #( ++ *) ++ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ++ ;; ++ esac | ++ sort ++) ++ echo ++ ++ cat <<\_ASBOX ++@%:@@%:@ ----------------- @%:@@%:@ ++@%:@@%:@ Output variables. @%:@@%:@ ++@%:@@%:@ ----------------- @%:@@%:@ ++_ASBOX ++ echo ++ for ac_var in $ac_subst_vars ++ do ++ eval ac_val=\$$ac_var ++ case $ac_val in ++ *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; ++ esac ++ echo "$ac_var='\''$ac_val'\''" ++ done | sort ++ echo ++ ++ if test -n "$ac_subst_files"; then ++ cat <<\_ASBOX ++@%:@@%:@ ------------------- @%:@@%:@ ++@%:@@%:@ File substitutions. @%:@@%:@ ++@%:@@%:@ ------------------- @%:@@%:@ ++_ASBOX ++ echo ++ for ac_var in $ac_subst_files ++ do ++ eval ac_val=\$$ac_var ++ case $ac_val in ++ *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; ++ esac ++ echo "$ac_var='\''$ac_val'\''" ++ done | sort ++ echo ++ fi ++ ++ if test -s confdefs.h; then ++ cat <<\_ASBOX ++@%:@@%:@ ----------- @%:@@%:@ ++@%:@@%:@ confdefs.h. @%:@@%:@ ++@%:@@%:@ ----------- @%:@@%:@ ++_ASBOX ++ echo ++ cat confdefs.h ++ echo ++ fi ++ test "$ac_signal" != 0 && ++ echo "$as_me: caught signal $ac_signal" ++ echo "$as_me: exit $exit_status" ++ } >&5 ++ rm -f core *.core core.conftest.* && ++ rm -f -r conftest* confdefs* conf$$* $ac_clean_files && ++ exit $exit_status ++' 0 ++for ac_signal in 1 2 13 15; do ++ trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal ++done ++ac_signal=0 ++ ++# confdefs.h avoids OS command line length limits that DEFS can exceed. ++rm -f -r conftest* confdefs.h ++ ++# Predefined preprocessor variables. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define PACKAGE_NAME "$PACKAGE_NAME" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define PACKAGE_STRING "$PACKAGE_STRING" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" ++_ACEOF ++ ++ ++# Let the site file select an alternate cache file if it wants to. ++# Prefer explicitly selected file to automatically selected ones. ++if test -n "$CONFIG_SITE"; then ++ set x "$CONFIG_SITE" ++elif test "x$prefix" != xNONE; then ++ set x "$prefix/share/config.site" "$prefix/etc/config.site" ++else ++ set x "$ac_default_prefix/share/config.site" \ ++ "$ac_default_prefix/etc/config.site" ++fi ++shift ++for ac_site_file ++do ++ if test -r "$ac_site_file"; then ++ { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 ++echo "$as_me: loading site script $ac_site_file" >&6;} ++ sed 's/^/| /' "$ac_site_file" >&5 ++ . "$ac_site_file" ++ fi ++done ++ ++if test -r "$cache_file"; then ++ # Some versions of bash will fail to source /dev/null (special ++ # files actually), so we avoid doing that. ++ if test -f "$cache_file"; then ++ { echo "$as_me:$LINENO: loading cache $cache_file" >&5 ++echo "$as_me: loading cache $cache_file" >&6;} ++ case $cache_file in ++ [\\/]* | ?:[\\/]* ) . "$cache_file";; ++ *) . "./$cache_file";; ++ esac ++ fi ++else ++ { echo "$as_me:$LINENO: creating cache $cache_file" >&5 ++echo "$as_me: creating cache $cache_file" >&6;} ++ >$cache_file ++fi ++ ++# Check that the precious variables saved in the cache have kept the same ++# value. ++ac_cache_corrupted=false ++for ac_var in $ac_precious_vars; do ++ eval ac_old_set=\$ac_cv_env_${ac_var}_set ++ eval ac_new_set=\$ac_env_${ac_var}_set ++ eval ac_old_val=\$ac_cv_env_${ac_var}_value ++ eval ac_new_val=\$ac_env_${ac_var}_value ++ case $ac_old_set,$ac_new_set in ++ set,) ++ { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 ++echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ++ ac_cache_corrupted=: ;; ++ ,set) ++ { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 ++echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ++ ac_cache_corrupted=: ;; ++ ,);; ++ *) ++ if test "x$ac_old_val" != "x$ac_new_val"; then ++ { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 ++echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ++ { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 ++echo "$as_me: former value: $ac_old_val" >&2;} ++ { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 ++echo "$as_me: current value: $ac_new_val" >&2;} ++ ac_cache_corrupted=: ++ fi;; ++ esac ++ # Pass precious variables to config.status. ++ if test "$ac_new_set" = set; then ++ case $ac_new_val in ++ *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; ++ *) ac_arg=$ac_var=$ac_new_val ;; ++ esac ++ case " $ac_configure_args " in ++ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. ++ *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; ++ esac ++ fi ++done ++if $ac_cache_corrupted; then ++ { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 ++echo "$as_me: error: changes in the environment can compromise the build" >&2;} ++ { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 ++echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ ++ac_aux_dir= ++for ac_dir in config "$srcdir"/config; do ++ if test -f "$ac_dir/install-sh"; then ++ ac_aux_dir=$ac_dir ++ ac_install_sh="$ac_aux_dir/install-sh -c" ++ break ++ elif test -f "$ac_dir/install.sh"; then ++ ac_aux_dir=$ac_dir ++ ac_install_sh="$ac_aux_dir/install.sh -c" ++ break ++ elif test -f "$ac_dir/shtool"; then ++ ac_aux_dir=$ac_dir ++ ac_install_sh="$ac_aux_dir/shtool install -c" ++ break ++ fi ++done ++if test -z "$ac_aux_dir"; then ++ { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 ++echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++# These three variables are undocumented and unsupported, ++# and are intended to be withdrawn in a future Autoconf release. ++# They can cause serious problems if a builder's source tree is in a directory ++# whose full name contains unusual characters. ++ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ++ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ++ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. ++ ++ ++ ++ ++# Get our platform support file. This has to be done very, very early ++# because it twiddles random bits of autoconf ++ ++ ++# Check whether --with-platform was given. ++if test "${with_platform+set}" = set; then ++ withval=$with_platform; ++fi ++ ++ if test "$with_platform" = "yes" ; then ++ { { echo "$as_me:$LINENO: error: --with-platform argument must include FILE option" >&5 ++echo "$as_me: error: --with-platform argument must include FILE option" >&2;} ++ { (exit 1); exit 1; }; } ++ elif test "$with_platform" = "no" ; then ++ { { echo "$as_me:$LINENO: error: --without-platform is not a valid argument" >&5 ++echo "$as_me: error: --without-platform is not a valid argument" >&2;} ++ { (exit 1); exit 1; }; } ++ elif test "$with_platform" != "" ; then ++ # if no path part, check in contrib/platform ++ if test "`basename $with_platform`" = "$with_platform" ; then ++ if test -r "${srcdir}/contrib/platform/$with_platform" ; then ++ with_platform="${srcdir}/contrib/platform/$with_platform" ++ fi ++ fi ++ ++ # make sure file exists ++ if test ! -r "$with_platform" ; then ++ { { echo "$as_me:$LINENO: error: platform file $with_platform not found" >&5 ++echo "$as_me: error: platform file $with_platform not found" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # eval into environment ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: Loading environment file $with_platform, with contents below" >&5 ++else ++ echo Loading environment file $with_platform, with contents below >&5 ++fi ++ ++# 1 is the filename ++if test -n "$with_platform" -a -f "$with_platform"; then ++ cat $with_platform >&5 ++fi ++ . "$with_platform" ++ ++ # see if they left us a name ++ if test "$OMPI_PLATFORM_LOADED" != "" ; then ++ platform_loaded="$OMPI_PLATFORM_LOADED" ++ else ++ platform_loaded="$with_platform" ++ fi ++ echo "Loaded platform arguments for $platform_loaded" ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: Loaded platform arguments for $platform_loaded" >&5 ++else ++ echo Loaded platform arguments for $platform_loaded >&5 ++fi ++ ++ # look for default mca param file ++ ++ # setup by getting full pathname for the platform directories ++ platform_base="`dirname $with_platform`" ++ # get full pathname of where we are so we can return ++ platform_savedir="`pwd`" ++ # go to where the platform file is located ++ cd "$platform_base" ++ # get the full path to this location ++ platform_file_dir=`pwd` ++ # return to where we started ++ cd "$platform_savedir" ++ ++ # define an alternate default mca param filename ++ platform_alt_mca_file="`basename $platform_loaded`.conf" ++ ++ # look where platform file is located for platform.conf name ++ if test -r "${platform_file_dir}/${platform_alt_mca_file}" ; then ++ OPAL_DEFAULT_MCA_PARAM_CONF=$platform_file_dir/$platform_alt_mca_file ++ ++ OPAL_PARAM_FROM_PLATFORM="yes" ++ ++ # if not, see if a file is there with the default name ++ elif test -r "${platform_file_dir}/openmpi-mca-params.conf" ; then ++ OPAL_DEFAULT_MCA_PARAM_CONF=$platform_file_dir/openmpi-mca-params.conf ++ ++ OPAL_PARAM_FROM_PLATFORM="yes" ++ ++ # if not, then just use the default ++ else ++ OPAL_DEFAULT_MCA_PARAM_CONF=openmpi-mca-params.conf ++ ++ OPAL_PARAM_FROM_PLATFORM="no" ++ ++ fi ++ ++ else ++ OPAL_DEFAULT_MCA_PARAM_CONF=openmpi-mca-params.conf ++ ++ fi ++ ++ ++# ++# Init automake ++# ++am__api_version='1.10' ++ ++# Find a good install program. We prefer a C program (faster), ++# so one script is as good as another. But avoid the broken or ++# incompatible versions: ++# SysV /etc/install, /usr/sbin/install ++# SunOS /usr/etc/install ++# IRIX /sbin/install ++# AIX /bin/install ++# AmigaOS /C/install, which installs bootblocks on floppy discs ++# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag ++# AFS /usr/afsws/bin/install, which mishandles nonexistent args ++# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" ++# OS/2's system install, which has a completely different semantic ++# ./install, which can be erroneously created by make from ./install.sh. ++{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 ++echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } ++if test -z "$INSTALL"; then ++if test "${ac_cv_path_install+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ # Account for people who put trailing slashes in PATH elements. ++case $as_dir/ in ++ ./ | .// | /cC/* | \ ++ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ++ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ ++ /usr/ucb/* ) ;; ++ *) ++ # OSF1 and SCO ODT 3.0 have their own names for install. ++ # Don't use installbsd from OSF since it installs stuff as root ++ # by default. ++ for ac_prog in ginstall scoinst install; do ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then ++ if test $ac_prog = install && ++ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then ++ # AIX install. It has an incompatible calling convention. ++ : ++ elif test $ac_prog = install && ++ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then ++ # program-specific install script used by HP pwplus--don't use. ++ : ++ else ++ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" ++ break 3 ++ fi ++ fi ++ done ++ done ++ ;; ++esac ++done ++IFS=$as_save_IFS ++ ++ ++fi ++ if test "${ac_cv_path_install+set}" = set; then ++ INSTALL=$ac_cv_path_install ++ else ++ # As a last resort, use the slow shell script. Don't cache a ++ # value for INSTALL within a source directory, because that will ++ # break other packages using the cache if that directory is ++ # removed, or if the value is a relative name. ++ INSTALL=$ac_install_sh ++ fi ++fi ++{ echo "$as_me:$LINENO: result: $INSTALL" >&5 ++echo "${ECHO_T}$INSTALL" >&6; } ++ ++# Use test -z because SunOS4 sh mishandles braces in ${var-val}. ++# It thinks the first close brace ends the variable substitution. ++test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' ++ ++test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' ++ ++test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' ++ ++{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 ++echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } ++# Just in case ++sleep 1 ++echo timestamp > conftest.file ++# Do `set' in a subshell so we don't clobber the current shell's ++# arguments. Must try -L first in case configure is actually a ++# symlink; some systems play weird games with the mod time of symlinks ++# (eg FreeBSD returns the mod time of the symlink's containing ++# directory). ++if ( ++ set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` ++ if test "$*" = "X"; then ++ # -L didn't work. ++ set X `ls -t $srcdir/configure conftest.file` ++ fi ++ rm -f conftest.file ++ if test "$*" != "X $srcdir/configure conftest.file" \ ++ && test "$*" != "X conftest.file $srcdir/configure"; then ++ ++ # If neither matched, then we have a broken ls. This can happen ++ # if, for instance, CONFIG_SHELL is bash and it inherits a ++ # broken ls alias from the environment. This has actually ++ # happened. Such a system could not be considered "sane". ++ { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken ++alias in your environment" >&5 ++echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken ++alias in your environment" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ test "$2" = conftest.file ++ ) ++then ++ # Ok. ++ : ++else ++ { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! ++Check your system clock" >&5 ++echo "$as_me: error: newly created file is older than distributed files! ++Check your system clock" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++{ echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++test "$program_prefix" != NONE && ++ program_transform_name="s&^&$program_prefix&;$program_transform_name" ++# Use a double $ so make ignores it. ++test "$program_suffix" != NONE && ++ program_transform_name="s&\$&$program_suffix&;$program_transform_name" ++# Double any \ or $. echo might interpret backslashes. ++# By default was `s,x,x', remove it if useless. ++cat <<\_ACEOF >conftest.sed ++s/[\\$]/&&/g;s/;s,x,x,$// ++_ACEOF ++program_transform_name=`echo $program_transform_name | sed -f conftest.sed` ++rm -f conftest.sed ++ ++# expand $ac_aux_dir to an absolute path ++am_aux_dir=`cd $ac_aux_dir && pwd` ++ ++test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" ++# Use eval to expand $SHELL ++if eval "$MISSING --run true"; then ++ am_missing_run="$MISSING --run " ++else ++ am_missing_run= ++ { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 ++echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} ++fi ++ ++{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 ++echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } ++if test -z "$MKDIR_P"; then ++ if test "${ac_cv_path_mkdir+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_prog in mkdir gmkdir; do ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue ++ case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( ++ 'mkdir (GNU coreutils) '* | \ ++ 'mkdir (coreutils) '* | \ ++ 'mkdir (fileutils) '4.1*) ++ ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext ++ break 3;; ++ esac ++ done ++ done ++done ++IFS=$as_save_IFS ++ ++fi ++ ++ if test "${ac_cv_path_mkdir+set}" = set; then ++ MKDIR_P="$ac_cv_path_mkdir -p" ++ else ++ # As a last resort, use the slow shell script. Don't cache a ++ # value for MKDIR_P within a source directory, because that will ++ # break other packages using the cache if that directory is ++ # removed, or if the value is a relative name. ++ test -d ./--version && rmdir ./--version ++ MKDIR_P="$ac_install_sh -d" ++ fi ++fi ++{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 ++echo "${ECHO_T}$MKDIR_P" >&6; } ++ ++mkdir_p="$MKDIR_P" ++case $mkdir_p in ++ [\\/$]* | ?:[\\/]*) ;; ++ */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; ++esac ++ ++for ac_prog in gawk mawk nawk awk ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_AWK+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$AWK"; then ++ ac_cv_prog_AWK="$AWK" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_AWK="$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++AWK=$ac_cv_prog_AWK ++if test -n "$AWK"; then ++ { echo "$as_me:$LINENO: result: $AWK" >&5 ++echo "${ECHO_T}$AWK" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$AWK" && break ++done ++ ++{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 ++echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } ++set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` ++if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.make <<\_ACEOF ++SHELL = /bin/sh ++all: ++ @echo '@@@%%%=$(MAKE)=@@@%%%' ++_ACEOF ++# GNU make sometimes prints "make[1]: Entering...", which would confuse us. ++case `${MAKE-make} -f conftest.make 2>/dev/null` in ++ *@@@%%%=?*=@@@%%%*) ++ eval ac_cv_prog_make_${ac_make}_set=yes;; ++ *) ++ eval ac_cv_prog_make_${ac_make}_set=no;; ++esac ++rm -f conftest.make ++fi ++if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ SET_MAKE= ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ SET_MAKE="MAKE=${MAKE-make}" ++fi ++ ++rm -rf .tst 2>/dev/null ++mkdir .tst 2>/dev/null ++if test -d .tst; then ++ am__leading_dot=. ++else ++ am__leading_dot=_ ++fi ++rmdir .tst 2>/dev/null ++ ++if test "`cd $srcdir && pwd`" != "`pwd`"; then ++ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output ++ # is not polluted with repeated "-I." ++ am__isrc=' -I$(srcdir)' ++ # test to see if srcdir already configured ++ if test -f $srcdir/config.status; then ++ { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 ++echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++fi ++ ++# test whether we have cygpath ++if test -z "$CYGPATH_W"; then ++ if (cygpath --version) >/dev/null 2>/dev/null; then ++ CYGPATH_W='cygpath -w' ++ else ++ CYGPATH_W=echo ++ fi ++fi ++ ++ ++# Define the identity of the package. ++ PACKAGE='openmpi' ++ VERSION='1.3' ++ ++ ++# Some tools Automake needs. ++ ++ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} ++ ++ ++AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} ++ ++ ++AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} ++ ++ ++AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} ++ ++ ++MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} ++ ++install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} ++ ++# Installed binaries are usually stripped using `strip' when the user ++# run `make install-strip'. However `strip' might not be the right ++# tool to use in cross-compilation environments, therefore Automake ++# will honor the `STRIP' environment variable to overrule this program. ++if test "$cross_compiling" != no; then ++ if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. ++set dummy ${ac_tool_prefix}strip; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_STRIP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$STRIP"; then ++ ac_cv_prog_STRIP="$STRIP" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_STRIP="${ac_tool_prefix}strip" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++STRIP=$ac_cv_prog_STRIP ++if test -n "$STRIP"; then ++ { echo "$as_me:$LINENO: result: $STRIP" >&5 ++echo "${ECHO_T}$STRIP" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_STRIP"; then ++ ac_ct_STRIP=$STRIP ++ # Extract the first word of "strip", so it can be a program name with args. ++set dummy strip; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_STRIP"; then ++ ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_STRIP="strip" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP ++if test -n "$ac_ct_STRIP"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 ++echo "${ECHO_T}$ac_ct_STRIP" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_STRIP" = x; then ++ STRIP=":" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ STRIP=$ac_ct_STRIP ++ fi ++else ++ STRIP="$ac_cv_prog_STRIP" ++fi ++ ++fi ++INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" ++ ++# We need awk for the "check" target. The system "awk" is bad on ++# some platforms. ++# Always define AMTAR for backward compatibility. ++ ++AMTAR=${AMTAR-"${am_missing_run}tar"} ++ ++ ++{ echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5 ++echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; } ++# Loop over all known methods to create a tar archive until one works. ++_am_tools='gnutar plaintar pax cpio none' ++_am_tools=${am_cv_prog_tar_ustar-$_am_tools} ++# Do not fold the above two line into one, because Tru64 sh and ++# Solaris sh will not grok spaces in the rhs of `-'. ++for _am_tool in $_am_tools ++do ++ case $_am_tool in ++ gnutar) ++ for _am_tar in tar gnutar gtar; ++ do ++ { echo "$as_me:$LINENO: $_am_tar --version" >&5 ++ ($_am_tar --version) >&5 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && break ++ done ++ am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' ++ am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' ++ am__untar="$_am_tar -xf -" ++ ;; ++ plaintar) ++ # Must skip GNU tar: if it does not support --format= it doesn't create ++ # ustar tarball either. ++ (tar --version) >/dev/null 2>&1 && continue ++ am__tar='tar chf - "$$tardir"' ++ am__tar_='tar chf - "$tardir"' ++ am__untar='tar xf -' ++ ;; ++ pax) ++ am__tar='pax -L -x ustar -w "$$tardir"' ++ am__tar_='pax -L -x ustar -w "$tardir"' ++ am__untar='pax -r' ++ ;; ++ cpio) ++ am__tar='find "$$tardir" -print | cpio -o -H ustar -L' ++ am__tar_='find "$tardir" -print | cpio -o -H ustar -L' ++ am__untar='cpio -i -H ustar -d' ++ ;; ++ none) ++ am__tar=false ++ am__tar_=false ++ am__untar=false ++ ;; ++ esac ++ ++ # If the value was cached, stop now. We just wanted to have am__tar ++ # and am__untar set. ++ test -n "${am_cv_prog_tar_ustar}" && break ++ ++ # tar/untar a dummy directory, and stop if the command works ++ rm -rf conftest.dir ++ mkdir conftest.dir ++ echo GrepMe > conftest.dir/file ++ { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 ++ (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++ rm -rf conftest.dir ++ if test -s conftest.tar; then ++ { echo "$as_me:$LINENO: $am__untar &5 ++ ($am__untar &5 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++ grep GrepMe conftest.dir/file >/dev/null 2>&1 && break ++ fi ++done ++rm -rf conftest.dir ++ ++if test "${am_cv_prog_tar_ustar+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ am_cv_prog_tar_ustar=$_am_tool ++fi ++ ++{ echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5 ++echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; } ++ ++ ++ ++ ++ ++ ++ ++ ++# Make configure depend on the VERSION file, since it's used in AC_INIT ++CONFIGURE_DEPENDENCIES='$(top_srcdir)/VERSION' ++ ++ ++# ++# Start it up ++# ++ ++ ++ ++# Some helper script functions. Unfortunately, we cannot use kinds ++# of arugments here because of the m4 substitution. So we have to set ++# special variable names before invoking the function. :-\ ++ ++ompi_show_title() { ++ cat <&5 ++echo $ECHO_N "checking for SVN version... $ECHO_C" >&6; } ++ if test -d "$srcdir/.svn" ; then ++ OMPI_SVN_R=r`svnversion "$srcdir"` ++ elif test -d "$srcdir/.hg" ; then ++ OMPI_SVN_R=hg`hg -v -R "$srcdir" tip | grep changeset | cut -d: -f3` ++ fi ++ if test "OMPI_SVN_R" = ""; then ++ OMPI_SVN_R=svn`date '+%m%d%Y'` ++ fi ++ { echo "$as_me:$LINENO: result: done" >&5 ++echo "${ECHO_T}done" >&6; } ++ fi ++ OMPI_VERSION="${OMPI_VERSION}${OMPI_SVN_R}" ++ fi ++ fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking Open MPI version" >&5 ++echo $ECHO_N "checking Open MPI version... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $OMPI_VERSION" >&5 ++echo "${ECHO_T}$OMPI_VERSION" >&6; } ++ { echo "$as_me:$LINENO: checking Open MPI release date" >&5 ++echo $ECHO_N "checking Open MPI release date... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $OMPI_RELEASE_DATE" >&5 ++echo "${ECHO_T}$OMPI_RELEASE_DATE" >&6; } ++ { echo "$as_me:$LINENO: checking Open MPI Subversion repository version" >&5 ++echo $ECHO_N "checking Open MPI Subversion repository version... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $OMPI_SVN_R" >&5 ++echo "${ECHO_T}$OMPI_SVN_R" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_MAJOR_VERSION $OMPI_MAJOR_VERSION ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_MINOR_VERSION $OMPI_MINOR_VERSION ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_RELEASE_VERSION $OMPI_RELEASE_VERSION ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_GREEK_VERSION "$OMPI_GREEK_VERSION" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_VERSION "$OMPI_RELEASE_VERSION" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_RELEASE_DATE "$OMPI_RELEASE_DATE" ++_ACEOF ++ ++ ++ ac_config_files="$ac_config_files ompi/include/ompi/version.h" ++ ++ ++ ++ ++ ++ : ${ompi_ver_need_svn=1} ++ : ${srcdir=.} ++ : ${svnversion_result=-1} ++ ++ if test -f "$srcdir/VERSION"; then ++ ompi_vers=`sed -n " ++ t clear ++ : clear ++ s/^major/ORTE_MAJOR_VERSION/ ++ s/^minor/ORTE_MINOR_VERSION/ ++ s/^release/ORTE_RELEASE_VERSION/ ++ s/^greek/ORTE_GREEK_VERSION/ ++ s/^want_svn/ORTE_WANT_SVN/ ++ s/^svn_r/ORTE_SVN_R/ ++ s/^date/ORTE_RELEASE_DATE/ ++ t print ++ b ++ : print ++ p" < "$srcdir/VERSION"` ++ eval "$ompi_vers" ++ ++ # Only print release version if it isn't 0 ++ if test $ORTE_RELEASE_VERSION -ne 0 ; then ++ ORTE_VERSION="$ORTE_MAJOR_VERSION.$ORTE_MINOR_VERSION.$ORTE_RELEASE_VERSION" ++ else ++ ORTE_VERSION="$ORTE_MAJOR_VERSION.$ORTE_MINOR_VERSION" ++ fi ++ ORTE_VERSION="${ORTE_VERSION}${ORTE_GREEK_VERSION}" ++ ORTE_BASE_VERSION=$ORTE_VERSION ++ ++ if test $ORTE_WANT_SVN -eq 1 && test $ompi_ver_need_svn -eq 1 ; then ++ if test "$svnversion_result" != "-1" ; then ++ ORTE_SVN_R=$svnversion_result ++ fi ++ if test "$ORTE_SVN_R" = "-1" ; then ++ { echo "$as_me:$LINENO: checking for SVN version" >&5 ++echo $ECHO_N "checking for SVN version... $ECHO_C" >&6; } ++ if test -d "$srcdir/.svn" ; then ++ ORTE_SVN_R=r`svnversion "$srcdir"` ++ elif test -d "$srcdir/.hg" ; then ++ ORTE_SVN_R=hg`hg -v -R "$srcdir" tip | grep changeset | cut -d: -f3` ++ fi ++ if test "ORTE_SVN_R" = ""; then ++ ORTE_SVN_R=svn`date '+%m%d%Y'` ++ fi ++ { echo "$as_me:$LINENO: result: done" >&5 ++echo "${ECHO_T}done" >&6; } ++ fi ++ ORTE_VERSION="${ORTE_VERSION}${ORTE_SVN_R}" ++ fi ++ fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking Open Run-Time Environment version" >&5 ++echo $ECHO_N "checking Open Run-Time Environment version... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $ORTE_VERSION" >&5 ++echo "${ECHO_T}$ORTE_VERSION" >&6; } ++ { echo "$as_me:$LINENO: checking Open Run-Time Environment release date" >&5 ++echo $ECHO_N "checking Open Run-Time Environment release date... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $ORTE_RELEASE_DATE" >&5 ++echo "${ECHO_T}$ORTE_RELEASE_DATE" >&6; } ++ { echo "$as_me:$LINENO: checking Open Run-Time Environment Subversion repository version" >&5 ++echo $ECHO_N "checking Open Run-Time Environment Subversion repository version... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $ORTE_SVN_R" >&5 ++echo "${ECHO_T}$ORTE_SVN_R" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ORTE_MAJOR_VERSION $ORTE_MAJOR_VERSION ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ORTE_MINOR_VERSION $ORTE_MINOR_VERSION ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ORTE_RELEASE_VERSION $ORTE_RELEASE_VERSION ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ORTE_GREEK_VERSION "$ORTE_GREEK_VERSION" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ORTE_VERSION "$ORTE_RELEASE_VERSION" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ORTE_RELEASE_DATE "$ORTE_RELEASE_DATE" ++_ACEOF ++ ++ ++ ac_config_files="$ac_config_files orte/include/orte/version.h" ++ ++ ++ ++ ++ ++ : ${ompi_ver_need_svn=1} ++ : ${srcdir=.} ++ : ${svnversion_result=-1} ++ ++ if test -f "$srcdir/VERSION"; then ++ ompi_vers=`sed -n " ++ t clear ++ : clear ++ s/^major/OPAL_MAJOR_VERSION/ ++ s/^minor/OPAL_MINOR_VERSION/ ++ s/^release/OPAL_RELEASE_VERSION/ ++ s/^greek/OPAL_GREEK_VERSION/ ++ s/^want_svn/OPAL_WANT_SVN/ ++ s/^svn_r/OPAL_SVN_R/ ++ s/^date/OPAL_RELEASE_DATE/ ++ t print ++ b ++ : print ++ p" < "$srcdir/VERSION"` ++ eval "$ompi_vers" ++ ++ # Only print release version if it isn't 0 ++ if test $OPAL_RELEASE_VERSION -ne 0 ; then ++ OPAL_VERSION="$OPAL_MAJOR_VERSION.$OPAL_MINOR_VERSION.$OPAL_RELEASE_VERSION" ++ else ++ OPAL_VERSION="$OPAL_MAJOR_VERSION.$OPAL_MINOR_VERSION" ++ fi ++ OPAL_VERSION="${OPAL_VERSION}${OPAL_GREEK_VERSION}" ++ OPAL_BASE_VERSION=$OPAL_VERSION ++ ++ if test $OPAL_WANT_SVN -eq 1 && test $ompi_ver_need_svn -eq 1 ; then ++ if test "$svnversion_result" != "-1" ; then ++ OPAL_SVN_R=$svnversion_result ++ fi ++ if test "$OPAL_SVN_R" = "-1" ; then ++ { echo "$as_me:$LINENO: checking for SVN version" >&5 ++echo $ECHO_N "checking for SVN version... $ECHO_C" >&6; } ++ if test -d "$srcdir/.svn" ; then ++ OPAL_SVN_R=r`svnversion "$srcdir"` ++ elif test -d "$srcdir/.hg" ; then ++ OPAL_SVN_R=hg`hg -v -R "$srcdir" tip | grep changeset | cut -d: -f3` ++ fi ++ if test "OPAL_SVN_R" = ""; then ++ OPAL_SVN_R=svn`date '+%m%d%Y'` ++ fi ++ { echo "$as_me:$LINENO: result: done" >&5 ++echo "${ECHO_T}done" >&6; } ++ fi ++ OPAL_VERSION="${OPAL_VERSION}${OPAL_SVN_R}" ++ fi ++ fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking Open Portable Access Layer version" >&5 ++echo $ECHO_N "checking Open Portable Access Layer version... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $OPAL_VERSION" >&5 ++echo "${ECHO_T}$OPAL_VERSION" >&6; } ++ { echo "$as_me:$LINENO: checking Open Portable Access Layer release date" >&5 ++echo $ECHO_N "checking Open Portable Access Layer release date... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $OPAL_RELEASE_DATE" >&5 ++echo "${ECHO_T}$OPAL_RELEASE_DATE" >&6; } ++ { echo "$as_me:$LINENO: checking Open Portable Access Layer Subversion repository version" >&5 ++echo $ECHO_N "checking Open Portable Access Layer Subversion repository version... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $OPAL_SVN_R" >&5 ++echo "${ECHO_T}$OPAL_SVN_R" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_MAJOR_VERSION $OPAL_MAJOR_VERSION ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_MINOR_VERSION $OPAL_MINOR_VERSION ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_RELEASE_VERSION $OPAL_RELEASE_VERSION ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_GREEK_VERSION "$OPAL_GREEK_VERSION" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_VERSION "$OPAL_RELEASE_VERSION" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_RELEASE_DATE "$OPAL_RELEASE_DATE" ++_ACEOF ++ ++ ++ ac_config_files="$ac_config_files opal/include/opal/version.h" ++ ++ ++ ++ac_config_headers="$ac_config_headers opal/include/opal_config.h orte/include/orte_config.h ompi/include/ompi_config.h ompi/include/mpi.h" ++ ++ ++# override/fixup the version numbers set by AC_INIT, since on ++# developer builds, there's no good way to know what the version is ++# before running configure :(. We only use the base version number ++# (ie, no svn r numbers) for the version set in AC_INIT. This will ++# always match reality because we add the VERSION file (the only way ++# to change the major.minor.release{greek}) into the configure ++# dependencies. PACKAGE_VERSION the AC_DEFINE doesn't change once set ++# the first time -- AC_INIT's input (so it doesn't have an r number in ++# it). PACKAGE_VERSION the AC_SUBST can be rewritten along the way, ++# and we'd like it to have the r number in it so that it shows up in ++# the tarball name, so it is set to the full version here. ++PACKAGE_VERSION="$OPAL_VERSION" ++PACKAGE_STRING="${PACKAGE_NAME} ${PACKAGE_VERSION}" ++VERSION="${PACKAGE_VERSION}" ++ ++ompi_show_subtitle "Initialization, setup" ++ ++OMPI_TOP_BUILDDIR="`pwd`" ++ ++cd "$srcdir" ++OMPI_TOP_SRCDIR="`pwd`" ++ ++cd "$OMPI_TOP_BUILDDIR" ++ ++{ echo "$as_me:$LINENO: builddir: $OMPI_TOP_BUILDDIR" >&5 ++echo "$as_me: builddir: $OMPI_TOP_BUILDDIR" >&6;} ++{ echo "$as_me:$LINENO: srcdir: $OMPI_TOP_SRCDIR" >&5 ++echo "$as_me: srcdir: $OMPI_TOP_SRCDIR" >&6;} ++if test "$OMPI_TOP_BUILDDIR" != "$OMPI_TOP_SRCDIR"; then ++ { echo "$as_me:$LINENO: Detected VPATH build" >&5 ++echo "$as_me: Detected VPATH build" >&6;} ++fi ++ ++# Setup the top of the opal/include/opal_config.h file ++ ++ ++ ++ ++ ++ ++# Other basic setup stuff (shared with components) ++ ++# Make sure we can run config.sub. ++$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || ++ { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 ++echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} ++ { (exit 1); exit 1; }; } ++ ++{ echo "$as_me:$LINENO: checking build system type" >&5 ++echo $ECHO_N "checking build system type... $ECHO_C" >&6; } ++if test "${ac_cv_build+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_build_alias=$build_alias ++test "x$ac_build_alias" = x && ++ ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` ++test "x$ac_build_alias" = x && ++ { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 ++echo "$as_me: error: cannot guess build type; you must specify one" >&2;} ++ { (exit 1); exit 1; }; } ++ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || ++ { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 ++echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} ++ { (exit 1); exit 1; }; } ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 ++echo "${ECHO_T}$ac_cv_build" >&6; } ++case $ac_cv_build in ++*-*-*) ;; ++*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 ++echo "$as_me: error: invalid value of canonical build" >&2;} ++ { (exit 1); exit 1; }; };; ++esac ++build=$ac_cv_build ++ac_save_IFS=$IFS; IFS='-' ++set x $ac_cv_build ++shift ++build_cpu=$1 ++build_vendor=$2 ++shift; shift ++# Remember, the first character of IFS is used to create $*, ++# except with old shells: ++build_os=$* ++IFS=$ac_save_IFS ++case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac ++ ++ ++ ++# ++# Save some stats about this build ++# ++ ++OMPI_CONFIGURE_USER="`whoami`" ++OMPI_CONFIGURE_HOST="`hostname | head -n 1`" ++OMPI_CONFIGURE_DATE="`date`" ++ ++# ++# Make automake clean emacs ~ files for "make clean" ++# ++ ++CLEANFILES="*~ .\#*" ++ ++ ++# ++# This is useful later (ompi_info, and therefore mpiexec) ++# ++ ++{ echo "$as_me:$LINENO: checking host system type" >&5 ++echo $ECHO_N "checking host system type... $ECHO_C" >&6; } ++if test "${ac_cv_host+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "x$host_alias" = x; then ++ ac_cv_host=$ac_cv_build ++else ++ ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || ++ { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 ++echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 ++echo "${ECHO_T}$ac_cv_host" >&6; } ++case $ac_cv_host in ++*-*-*) ;; ++*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 ++echo "$as_me: error: invalid value of canonical host" >&2;} ++ { (exit 1); exit 1; }; };; ++esac ++host=$ac_cv_host ++ac_save_IFS=$IFS; IFS='-' ++set x $ac_cv_host ++shift ++host_cpu=$1 ++host_vendor=$2 ++shift; shift ++# Remember, the first character of IFS is used to create $*, ++# except with old shells: ++host_os=$* ++IFS=$ac_save_IFS ++case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ARCH "$host" ++_ACEOF ++ ++ ++# ++# See if we can find an old installation of OMPI to overwrite ++# ++ ++# Stupid autoconf 2.54 has a bug in AC_PREFIX_PROGRAM -- if ompi_clean ++# is not found in the path and the user did not specify --prefix, ++# we'll get a $prefix of "." ++ ++ompi_prefix_save="$prefix" ++if test "x$prefix" = xNONE; then ++ echo $ECHO_N "checking for prefix by $ECHO_C" >&6 ++ # Extract the first word of "ompi_clean", so it can be a program name with args. ++set dummy ompi_clean; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_path_ac_prefix_program+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ case $ac_prefix_program in ++ [\\/]* | ?:[\\/]*) ++ ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path. ++ ;; ++ *) ++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++ ;; ++esac ++fi ++ac_prefix_program=$ac_cv_path_ac_prefix_program ++if test -n "$ac_prefix_program"; then ++ { echo "$as_me:$LINENO: result: $ac_prefix_program" >&5 ++echo "${ECHO_T}$ac_prefix_program" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ if test -n "$ac_prefix_program"; then ++ prefix=`$as_dirname -- "$ac_prefix_program" || ++$as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$ac_prefix_program" : 'X\(//\)[^/]' \| \ ++ X"$ac_prefix_program" : 'X\(//\)$' \| \ ++ X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$ac_prefix_program" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ prefix=`$as_dirname -- "$prefix" || ++$as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$prefix" : 'X\(//\)[^/]' \| \ ++ X"$prefix" : 'X\(//\)$' \| \ ++ X"$prefix" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$prefix" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ fi ++fi ++ ++if test "$prefix" = "."; then ++ prefix="$ompi_prefix_save" ++fi ++unset ompi_prefix_save ++ ++# ++# Basic sanity checking; we can't install to a relative path ++# ++ ++case "$prefix" in ++ /*/bin) ++ prefix="`dirname $prefix`" ++ echo installing to directory \"$prefix\" ++ ;; ++ /*) ++ echo installing to directory \"$prefix\" ++ ;; ++ NONE) ++ echo installing to directory \"$ac_default_prefix\" ++ ;; ++ @<:@a-zA-Z@:>@:*) ++ echo installing to directory \"$prefix\" ++ ;; ++ *) ++ { { echo "$as_me:$LINENO: error: prefix \"$prefix\" must be an absolute directory path" >&5 ++echo "$as_me: error: prefix \"$prefix\" must be an absolute directory path" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++esac ++ ++# Allow the --enable-dist flag to be passed in ++ ++# Check whether --enable-dist was given. ++if test "${enable_dist+set}" = set; then ++ enableval=$enable_dist; OMPI_WANT_DIST=yes ++else ++ OMPI_WANT_DIST=no ++fi ++ ++ ++if test "$OMPI_WANT_DIST" = "yes"; then ++ { echo "$as_me:$LINENO: WARNING: Configuring in 'make dist' mode" >&5 ++echo "$as_me: WARNING: Configuring in 'make dist' mode" >&2;} ++ { echo "$as_me:$LINENO: WARNING: Most make targets may be non-functional!" >&5 ++echo "$as_me: WARNING: Most make targets may be non-functional!" >&2;} ++fi ++ ++top_ompi_srcdir="$OMPI_TOP_SRCDIR" ++ ++top_ompi_builddir="$OMPI_TOP_BUILDDIR" ++ ++ ++############################################################################ ++# Configuration options ++############################################################################ ++ ++ ++ompi_show_subtitle "Configuration options" ++ ++# ++# Is this a developer copy? ++# ++if test -d .svn -o -d .hg; then ++ OMPI_DEVEL=1 ++else ++ OMPI_DEVEL=0 ++fi ++ ++# ++# Code coverage options ++# ++{ echo "$as_me:$LINENO: checking whether to run code coverage" >&5 ++echo $ECHO_N "checking whether to run code coverage... $ECHO_C" >&6; } ++# Check whether --enable-coverage was given. ++if test "${enable_coverage+set}" = set; then ++ enableval=$enable_coverage; ++fi ++ ++if test "$enable_coverage" = "yes"; then ++ if test "$enable_shared" = "yes"; then ++ { echo "$as_me:$LINENO: WARNING: Code coverage can run only with static libraries. Please ++run configure with --enable-static --disable-shared if ++you want code coverage. Also ensure that you execute ++make clean too ensure removal of all leftover shared ++mpi libraries" >&5 ++echo "$as_me: WARNING: Code coverage can run only with static libraries. Please ++run configure with --enable-static --disable-shared if ++you want code coverage. Also ensure that you execute ++make clean too ensure removal of all leftover shared ++mpi libraries" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue processing" >&5 ++echo "$as_me: error: Cannot continue processing" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_COVERAGE=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ WANT_COVERAGE=0 ++fi ++ ++ ++# ++# Branch Probabilities options ++# ++{ echo "$as_me:$LINENO: checking whether to compile with branch probabilities" >&5 ++echo $ECHO_N "checking whether to compile with branch probabilities... $ECHO_C" >&6; } ++# Check whether --enable-branch-probabilities was given. ++if test "${enable_branch_probabilities+set}" = set; then ++ enableval=$enable_branch_probabilities; ++fi ++ ++if test "$enable_branch_probabilities" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_BRANCH_PROBABILITIES=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ WANT_BRANCH_PROBABILITIES=0 ++fi ++ ++ ++# ++# Memory debugging ++# ++ ++{ echo "$as_me:$LINENO: checking whether to debug memory usage" >&5 ++echo $ECHO_N "checking whether to debug memory usage... $ECHO_C" >&6; } ++# Check whether --enable-mem-debug was given. ++if test "${enable_mem_debug+set}" = set; then ++ enableval=$enable_mem_debug; ++fi ++ ++if test "$enable_mem_debug" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_MEM_DEBUG=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ WANT_MEM_DEBUG=0 ++fi ++#################### Early development override #################### ++if test "$WANT_MEM_DEBUG" = "0" -a -z "$enable_mem_debug" -a "$OMPI_DEVEL" = 1; then ++ WANT_MEM_DEBUG=1 ++ echo "--> developer override: enable mem profiling by default" ++fi ++#################### Early development override #################### ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ENABLE_MEM_DEBUG $WANT_MEM_DEBUG ++_ACEOF ++ ++ ++# ++# Memory profiling ++# ++ ++{ echo "$as_me:$LINENO: checking whether to profile memory usage" >&5 ++echo $ECHO_N "checking whether to profile memory usage... $ECHO_C" >&6; } ++# Check whether --enable-mem-profile was given. ++if test "${enable_mem_profile+set}" = set; then ++ enableval=$enable_mem_profile; ++fi ++ ++if test "$enable_mem_profile" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_MEM_PROFILE=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ WANT_MEM_PROFILE=0 ++fi ++#################### Early development override #################### ++if test "$WANT_MEM_PROFILE" = "0" -a -z "$enable_mem_profile" -a "$OMPI_DEVEL" = 1; then ++ WANT_MEM_PROFILE=1 ++ echo "--> developer override: enable mem profiling by default" ++fi ++#################### Early development override #################### ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ENABLE_MEM_PROFILE $WANT_MEM_PROFILE ++_ACEOF ++ ++ ++# ++# Developer picky compiler options ++# ++ ++{ echo "$as_me:$LINENO: checking if want developer-level compiler pickyness" >&5 ++echo $ECHO_N "checking if want developer-level compiler pickyness... $ECHO_C" >&6; } ++# Check whether --enable-picky was given. ++if test "${enable_picky+set}" = set; then ++ enableval=$enable_picky; ++fi ++ ++if test "$enable_picky" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_PICKY_COMPILER=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ WANT_PICKY_COMPILER=0 ++fi ++#################### Early development override #################### ++if test "$WANT_PICKY_COMPILER" = "0" -a -z "$enable_picky" -a "$OMPI_DEVEL" = 1; then ++ WANT_PICKY_COMPILER=1 ++ echo "--> developer override: enable picky compiler by default" ++fi ++#################### Early development override #################### ++ ++# ++# Developer debugging ++# ++ ++{ echo "$as_me:$LINENO: checking if want developer-level debugging code" >&5 ++echo $ECHO_N "checking if want developer-level debugging code... $ECHO_C" >&6; } ++# Check whether --enable-debug was given. ++if test "${enable_debug+set}" = set; then ++ enableval=$enable_debug; ++fi ++ ++if test "$enable_debug" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_DEBUG=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ WANT_DEBUG=0 ++fi ++#################### Early development override #################### ++if test "$WANT_DEBUG" = "0" -a -z "$enable_debug" -a "$OMPI_DEVEL" = 1; then ++ WANT_DEBUG=1 ++ echo "--> developer override: enable debugging code by default" ++fi ++#################### Early development override #################### ++if test "$WANT_DEBUG" = "0"; then ++ CFLAGS="-DNDEBUG $CFLAGS" ++ CXXFLAGS="-DNDEBUG $CXXFLAGS" ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ENABLE_DEBUG $WANT_DEBUG ++_ACEOF ++ ++ ++# Check whether --enable-debug-symbols was given. ++if test "${enable_debug_symbols+set}" = set; then ++ enableval=$enable_debug_symbols; ++fi ++ ++ ++# ++# Sparse Groups ++# ++ ++{ echo "$as_me:$LINENO: checking if want sparse process groups" >&5 ++echo $ECHO_N "checking if want sparse process groups... $ECHO_C" >&6; } ++# Check whether --enable-sparse-groups was given. ++if test "${enable_sparse_groups+set}" = set; then ++ enableval=$enable_sparse_groups; ++fi ++ ++if test "$enable_sparse_groups" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ GROUP_SPARSE=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ GROUP_SPARSE=0 ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_GROUP_SPARSE $GROUP_SPARSE ++_ACEOF ++ ++ ++# ++# Fortran 77 ++# ++ ++{ echo "$as_me:$LINENO: checking if want Fortran 77 bindings" >&5 ++echo $ECHO_N "checking if want Fortran 77 bindings... $ECHO_C" >&6; } ++# Check whether --enable-mpi-f77 was given. ++if test "${enable_mpi_f77+set}" = set; then ++ enableval=$enable_mpi_f77; ++fi ++ ++if test "$enable_mpi_f77" != "no"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ OMPI_WANT_F77_BINDINGS=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ OMPI_WANT_F77_BINDINGS=0 ++fi ++ ++ ++# ++# Fortran 90 ++# ++ ++{ echo "$as_me:$LINENO: checking if want Fortran 90 bindings" >&5 ++echo $ECHO_N "checking if want Fortran 90 bindings... $ECHO_C" >&6; } ++# Check whether --enable-mpi-f90 was given. ++if test "${enable_mpi_f90+set}" = set; then ++ enableval=$enable_mpi_f90; ++fi ++ ++if test "$enable_mpi_f90" != "no"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ OMPI_WANT_F90_BINDINGS=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ OMPI_WANT_F90_BINDINGS=0 ++fi ++ ++{ echo "$as_me:$LINENO: checking desired Fortran 90 bindings \"size\"" >&5 ++echo $ECHO_N "checking desired Fortran 90 bindings \"size\"... $ECHO_C" >&6; } ++ ++# Check whether --with-mpi-f90-size was given. ++if test "${with_mpi_f90_size+set}" = set; then ++ withval=$with_mpi_f90_size; ++fi ++ ++ ++if test "$OMPI_WANT_F90_BINDINGS" = "0"; then ++ { echo "$as_me:$LINENO: result: disabled (Fortran 90 bindings disabled)" >&5 ++echo "${ECHO_T}disabled (Fortran 90 bindings disabled)" >&6; } ++elif test "$with_mpi_f90_size" = "no"; then ++ OMPI_WANT_F90_BINDINGS=0 ++ { echo "$as_me:$LINENO: result: disabling F90 MPI module (used specified)" >&5 ++echo "${ECHO_T}disabling F90 MPI module (used specified)" >&6; } ++else ++ # Default value ++ if test "$with_mpi_f90_size" = ""; then ++ with_mpi_f90_size=small ++ fi ++ ++ # Check for each of the sizes ++ if test "$with_mpi_f90_size" = "trivial"; then ++ OMPI_F90_BUILD_SIZE=trivial ++ elif test "$with_mpi_f90_size" = "small"; then ++ OMPI_F90_BUILD_SIZE=small ++ elif test "$with_mpi_f90_size" = "medium"; then ++ OMPI_F90_BUILD_SIZE=medium ++ elif test "$with_mpi_f90_size" = "large"; then ++ OMPI_F90_BUILD_SIZE=large ++ else ++ { echo "$as_me:$LINENO: result: Unrecognized size: $with_mpi_f90_size" >&5 ++echo "${ECHO_T}Unrecognized size: $with_mpi_f90_size" >&6; } ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++fi ++ ++ if test "$OMPI_F90_BUILD_SIZE" = "trivial"; then ++ OMPI_WANT_BUILD_F90_TRIVIAL_TRUE= ++ OMPI_WANT_BUILD_F90_TRIVIAL_FALSE='#' ++else ++ OMPI_WANT_BUILD_F90_TRIVIAL_TRUE='#' ++ OMPI_WANT_BUILD_F90_TRIVIAL_FALSE= ++fi ++ ++ if test "$OMPI_F90_BUILD_SIZE" = "small"; then ++ OMPI_WANT_BUILD_F90_SMALL_TRUE= ++ OMPI_WANT_BUILD_F90_SMALL_FALSE='#' ++else ++ OMPI_WANT_BUILD_F90_SMALL_TRUE='#' ++ OMPI_WANT_BUILD_F90_SMALL_FALSE= ++fi ++ ++ if test "$OMPI_F90_BUILD_SIZE" = "medium"; then ++ OMPI_WANT_BUILD_F90_MEDIUM_TRUE= ++ OMPI_WANT_BUILD_F90_MEDIUM_FALSE='#' ++else ++ OMPI_WANT_BUILD_F90_MEDIUM_TRUE='#' ++ OMPI_WANT_BUILD_F90_MEDIUM_FALSE= ++fi ++ ++ if test "$OMPI_F90_BUILD_SIZE" = "large"; then ++ OMPI_WANT_BUILD_F90_LARGE_TRUE= ++ OMPI_WANT_BUILD_F90_LARGE_FALSE='#' ++else ++ OMPI_WANT_BUILD_F90_LARGE_TRUE='#' ++ OMPI_WANT_BUILD_F90_LARGE_FALSE= ++fi ++ ++ ++ ++{ echo "$as_me:$LINENO: result: $OMPI_F90_BUILD_SIZE" >&5 ++echo "${ECHO_T}$OMPI_F90_BUILD_SIZE" >&6; } ++ ++# ++# MPI profiling ++# ++ ++{ echo "$as_me:$LINENO: checking whether to enable PMPI" >&5 ++echo $ECHO_N "checking whether to enable PMPI... $ECHO_C" >&6; } ++# Check whether --enable-mpi-profile was given. ++if test "${enable_mpi_profile+set}" = set; then ++ enableval=$enable_mpi_profile; ++fi ++ ++if test "$enable_mpi_profile" != "no"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_MPI_PROFILING=1 ++ MPIF_H_PMPI_W_FUNCS=", PMPI_WTICK, PMPI_WTIME" ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ WANT_MPI_PROFILING=0 ++ MPIF_H_PMPI_W_FUNCS= ++fi ++ ++ ++ ++# ++# C++ ++# ++ ++{ echo "$as_me:$LINENO: checking if want C++ bindings" >&5 ++echo $ECHO_N "checking if want C++ bindings... $ECHO_C" >&6; } ++# Check whether --enable-mpi-cxx was given. ++if test "${enable_mpi_cxx+set}" = set; then ++ enableval=$enable_mpi_cxx; ++fi ++ ++if test "$enable_mpi_cxx" != "no"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_MPI_CXX_SUPPORT=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ WANT_MPI_CXX_SUPPORT=0 ++fi ++ ++{ echo "$as_me:$LINENO: checking if want MPI::SEEK_SET support" >&5 ++echo $ECHO_N "checking if want MPI::SEEK_SET support... $ECHO_C" >&6; } ++# Check whether --enable-mpi-cxx-seek was given. ++if test "${enable_mpi_cxx_seek+set}" = set; then ++ enableval=$enable_mpi_cxx_seek; ++fi ++ ++if test "$enable_mpi_cxx_seek" != "no" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ OMPI_WANT_MPI_CXX_SEEK=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ OMPI_WANT_MPI_CXX_SEEK=0 ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_WANT_MPI_CXX_SEEK $OMPI_WANT_MPI_CXX_SEEK ++_ACEOF ++ ++ ++# ++# Do we want to disable weak symbols for some reason? ++# ++ ++{ echo "$as_me:$LINENO: checking if want to enable weak symbol support" >&5 ++echo $ECHO_N "checking if want to enable weak symbol support... $ECHO_C" >&6; } ++# Check whether --enable-weak-symbols was given. ++if test "${enable_weak_symbols+set}" = set; then ++ enableval=$enable_weak_symbols; ++fi ++ ++if test "$enable_weak_symbols" != "no"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_WEAK_SYMBOLS=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ WANT_WEAK_SYMBOLS=0 ++fi ++ ++# ++# Do we want to disable MPI parameter checking at run-time? ++# ++ ++{ echo "$as_me:$LINENO: checking if want run-time MPI parameter checking" >&5 ++echo $ECHO_N "checking if want run-time MPI parameter checking... $ECHO_C" >&6; } ++ ++# Check whether --with-mpi-param-check was given. ++if test "${with_mpi_param_check+set}" = set; then ++ withval=$with_mpi_param_check; ++fi ++ ++mpi_param_check=ompi_mpi_param_check ++if test "$with_mpi_param_check" = "no" -o \ ++ "$with_mpi_param_check" = "never"; then ++ mpi_param_check=0 ++ { echo "$as_me:$LINENO: result: never" >&5 ++echo "${ECHO_T}never" >&6; } ++elif test "$with_mpi_param_check" = "yes" -o \ ++ "$with_mpi_param_check" = "always"; then ++ mpi_param_check=1 ++ { echo "$as_me:$LINENO: result: always" >&5 ++echo "${ECHO_T}always" >&6; } ++elif test "$with_mpi_param_check" = "runtime" -o \ ++ -z "$with_mpi_params_check"; then ++ { echo "$as_me:$LINENO: result: runtime" >&5 ++echo "${ECHO_T}runtime" >&6; } ++else ++ { echo "$as_me:$LINENO: result: unknown" >&5 ++echo "${ECHO_T}unknown" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Unrecognized --with-mpi-param-check value" >&5 ++echo "$as_me: WARNING: *** Unrecognized --with-mpi-param-check value" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See \"configure --help\" output" >&5 ++echo "$as_me: WARNING: *** See \"configure --help\" output" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Defaulting to \"runtime\"" >&5 ++echo "$as_me: WARNING: *** Defaulting to \"runtime\"" >&2;} ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MPI_PARAM_CHECK $mpi_param_check ++_ACEOF ++ ++ ++ ++# ++# Do we want to install all of OMPI's header files? ++# ++ ++{ echo "$as_me:$LINENO: checking if want to install OMPI header files" >&5 ++echo $ECHO_N "checking if want to install OMPI header files... $ECHO_C" >&6; } ++ ++# Check whether --with-devel-headers was given. ++if test "${with_devel_headers+set}" = set; then ++ withval=$with_devel_headers; ++fi ++ ++if test "$with_devel_headers" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_INSTALL_HEADERS=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ WANT_INSTALL_HEADERS=0 ++fi ++ if test "$WANT_INSTALL_HEADERS" = 1; then ++ WANT_INSTALL_HEADERS_TRUE= ++ WANT_INSTALL_HEADERS_FALSE='#' ++else ++ WANT_INSTALL_HEADERS_TRUE='#' ++ WANT_INSTALL_HEADERS_FALSE= ++fi ++ ++ ++# ++# Do we want the pretty-print stack trace feature? ++# ++{ echo "$as_me:$LINENO: checking if want pretty-print stacktrace" >&5 ++echo $ECHO_N "checking if want pretty-print stacktrace... $ECHO_C" >&6; } ++# Check whether --enable-pretty-print-stacktrace was given. ++if test "${enable_pretty_print_stacktrace+set}" = set; then ++ enableval=$enable_pretty_print_stacktrace; ++fi ++ ++if test "$enable_pretty_print_stacktrace" = "no" ; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ WANT_PRETTY_PRINT_STACKTRACE=0 ++else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_PRETTY_PRINT_STACKTRACE=1 ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_WANT_PRETTY_PRINT_STACKTRACE $WANT_PRETTY_PRINT_STACKTRACE ++_ACEOF ++ ++ ++# ++# Do we want to enable peruse interface? ++# ++ ++{ echo "$as_me:$LINENO: checking if peruse support is required" >&5 ++echo $ECHO_N "checking if peruse support is required... $ECHO_C" >&6; } ++# Check whether --enable-peruse was given. ++if test "${enable_peruse+set}" = set; then ++ enableval=$enable_peruse; ++fi ++ ++if test "$enable_peruse" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_PERUSE=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ WANT_PERUSE=0 ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_WANT_PERUSE $WANT_PERUSE ++_ACEOF ++ ++ if test "$WANT_PERUSE" = "1"; then ++ WANT_PERUSE_TRUE= ++ WANT_PERUSE_FALSE='#' ++else ++ WANT_PERUSE_TRUE='#' ++ WANT_PERUSE_FALSE= ++fi ++ ++ ++# ++# What is the max array rank that we want to support in the f90 bindings? ++# ++ ++OMPI_FORTRAN_MAX_ARRAY_RANK=4 ++{ echo "$as_me:$LINENO: checking max supported array dimension in F90 MPI bindings" >&5 ++echo $ECHO_N "checking max supported array dimension in F90 MPI bindings... $ECHO_C" >&6; } ++ ++# Check whether --with-f90-max-array-dim was given. ++if test "${with_f90_max_array_dim+set}" = set; then ++ withval=$with_f90_max_array_dim; ++fi ++ ++if test ! -z "$with_f90_max_array_dim" -a "$with_f90_max_array_dim" != "no"; then ++ # Ensure it's a number (hopefully an integer!), and >=1 and <=7 ++ expr $with_f90_max_array_dim + 1 > /dev/null 2> /dev/null ++ happy=1 ++ if test "$?" != "0"; then ++ happy=0 ++else ++ expr $with_f90_max_array_dim \>= 1 \& $with_f90_max_array_dim \<= 7 > /dev/null 2>/dev/null ++ if test "$?" != "0"; then ++ happy=0 ++fi ++ ++fi ++ ++ ++ # If badness in the above tests, bail ++ if test "$happy" = "0"; then ++ { echo "$as_me:$LINENO: result: bad value ($with_f90_max_array_dim)" >&5 ++echo "${ECHO_T}bad value ($with_f90_max_array_dim)" >&6; } ++ { echo "$as_me:$LINENO: WARNING: --with-f90-max-array-dim value must be >=1 and <=7" >&5 ++echo "$as_me: WARNING: --with-f90-max-array-dim value must be >=1 and <=7" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ OMPI_FORTRAN_MAX_ARRAY_RANK="$with_f90_max_array_dim" ++fi ++{ echo "$as_me:$LINENO: result: $OMPI_FORTRAN_MAX_ARRAY_RANK" >&5 ++echo "${ECHO_T}$OMPI_FORTRAN_MAX_ARRAY_RANK" >&6; } ++ ++ ++# do we want PTY support? ++{ echo "$as_me:$LINENO: checking if pty support should be enabled" >&5 ++echo $ECHO_N "checking if pty support should be enabled... $ECHO_C" >&6; } ++# Check whether --enable-pty-support was given. ++if test "${enable_pty_support+set}" = set; then ++ enableval=$enable_pty_support; ++fi ++ ++if test "$enable_pty_support" = "no" ; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ OMPI_ENABLE_PTY_SUPPORT=0 ++else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ OMPI_ENABLE_PTY_SUPPORT=1 ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ENABLE_PTY_SUPPORT $OMPI_ENABLE_PTY_SUPPORT ++_ACEOF ++ ++ ++# ++# Do we want to allow DLOPEN? ++# ++{ echo "$as_me:$LINENO: checking if user wants dlopen support" >&5 ++echo $ECHO_N "checking if user wants dlopen support... $ECHO_C" >&6; } ++# Check whether --enable-dlopen was given. ++if test "${enable_dlopen+set}" = set; then ++ enableval=$enable_dlopen; ++fi ++ ++if test "$enable_dlopen" = "no" ; then ++ enable_mca_dso="no" ++ enable_mca_static="yes" ++ OMPI_ENABLE_DLOPEN_SUPPORT=0 ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++else ++ OMPI_ENABLE_DLOPEN_SUPPORT=1 ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++fi ++ ++# ++# Heterogeneous support ++# ++ ++{ echo "$as_me:$LINENO: checking if heterogeneous support should be enabled" >&5 ++echo $ECHO_N "checking if heterogeneous support should be enabled... $ECHO_C" >&6; } ++# Check whether --enable-heterogeneous was given. ++if test "${enable_heterogeneous+set}" = set; then ++ enableval=$enable_heterogeneous; ++fi ++ ++if test "$enable_heterogeneous" = "yes" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ompi_want_heterogeneous=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ompi_want_heterogeneous=0 ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ENABLE_HETEROGENEOUS_SUPPORT $ompi_want_heterogeneous ++_ACEOF ++ ++ ++# ++# Internal trace file logging (debugging) ++# ++ ++{ echo "$as_me:$LINENO: checking if want trace file debugging" >&5 ++echo $ECHO_N "checking if want trace file debugging... $ECHO_C" >&6; } ++# Check whether --enable-trace was given. ++if test "${enable_trace+set}" = set; then ++ enableval=$enable_trace; ++fi ++ ++if test "$enable_trace" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ opal_want_trace=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ opal_want_trace=0 ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_ENABLE_TRACE $opal_want_trace ++_ACEOF ++ ++ ++ ++# ++# Minimal RTE support ++# ++{ echo "$as_me:$LINENO: checking if want full RTE support" >&5 ++echo $ECHO_N "checking if want full RTE support... $ECHO_C" >&6; } ++ ++# Check whether --with-rte-support was given. ++if test "${with_rte_support+set}" = set; then ++ withval=$with_rte_support; ++fi ++ ++if test "$with_rte_support" = "no"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ orte_without_full_support=1 ++ list_of_frameworks="errmgr,ess-singleton,ess-hnp,ess-tool,ess-env,filem,grpcomm-basic,grpcomm-bad,iof,odls,oob,plm,ras,rmaps,rml,routed,snapc,btl-sm,coll-sm,common-sm,mpool-sm,dpm-orte,pubsub-orte" ++ if test -z $enable_mca_no_build ; then ++ enable_mca_no_build="$list_of_frameworks" ++ else ++ enable_mca_no_build="$enable_mca_no_build,$list_of_frameworks" ++ fi ++else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ orte_without_full_support=0 ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ORTE_DISABLE_FULL_SUPPORT $orte_without_full_support ++_ACEOF ++ ++ if test "$with_rte_support" = "no"; then ++ ORTE_DISABLE_FULL_SUPPORT_TRUE= ++ ORTE_DISABLE_FULL_SUPPORT_FALSE='#' ++else ++ ORTE_DISABLE_FULL_SUPPORT_TRUE='#' ++ ORTE_DISABLE_FULL_SUPPORT_FALSE= ++fi ++ ++ ++# ++# Cross-compile data ++# ++ ++# Check whether --with-cross was given. ++if test "${with_cross+set}" = set; then ++ withval=$with_cross; ++fi ++ ++if test "$with_cross" = "yes" ; then ++ { { echo "$as_me:$LINENO: error: --with-cross argument must include FILE option" >&5 ++echo "$as_me: error: --with-cross argument must include FILE option" >&2;} ++ { (exit 1); exit 1; }; } ++elif test "$with_cross" = "no" ; then ++ { { echo "$as_me:$LINENO: error: --without-cross is not a valid argument" >&5 ++echo "$as_me: error: --without-cross is not a valid argument" >&2;} ++ { (exit 1); exit 1; }; } ++elif test "$with_cross" != "" ; then ++ if test ! -r $with_cross ; then ++ { { echo "$as_me:$LINENO: error: could not find cross-compile data file $with_cross" >&5 ++echo "$as_me: error: could not find cross-compile data file $with_cross" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # eval into environment ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: Loading cross-compile file $with_cross, with contents below" >&5 ++else ++ echo Loading cross-compile file $with_cross, with contents below >&5 ++fi ++ ++# 1 is the filename ++if test -n "$with_cross" -a -f "$with_cross"; then ++ cat $with_cross >&5 ++fi ++ . "$with_cross" ++fi ++ ++# ++# --with-ft=TYPE ++# TYPE: ++# - LAM (synonym for 'cr' currently) ++# - cr ++# /* General FT sections */ ++# #if OPAL_ENABLE_FT == 0 /* FT Disabled globaly */ ++# #if OPAL_ENABLE_FT == 1 /* FT Enabled globaly */ ++# /* CR Specific sections */ ++# #if OPAL_ENABLE_FT_CR == 0 /* FT Ckpt/Restart Disabled */ ++# #if OPAL_ENABLE_FT_CR == 1 /* FT Ckpt/Restart Enabled */ ++# ++{ echo "$as_me:$LINENO: checking if want fault tolerance" >&5 ++echo $ECHO_N "checking if want fault tolerance... $ECHO_C" >&6; } ++ ++# Check whether --with-ft was given. ++if test "${with_ft+set}" = set; then ++ withval=$with_ft; ompi_want_ft=1 ++else ++ ompi_want_ft=0 ++fi ++ ++if test "$with_ft" = "no" -o "$ompi_want_ft" = "0"; then ++ ompi_want_ft=0 ++ ompi_want_ft_cr=0 ++ { echo "$as_me:$LINENO: result: Disabled fault tolerance" >&5 ++echo "${ECHO_T}Disabled fault tolerance" >&6; } ++else ++ ompi_want_ft=1 ++ ompi_want_ft_cr=0 ++ ompi_want_ft_type=none ++ ++ # Default value ++ if test "$with_ft" = "" -o "$with_ft" = "yes"; then ++ ompi_want_ft_type=cr ++ ompi_want_ft_cr=1 ++ elif test "$with_ft" = "LAM"; then ++ ompi_want_ft_type=lam ++ ompi_want_ft_cr=1 ++ elif test "$with_ft" = "lam"; then ++ ompi_want_ft_type=lam ++ ompi_want_ft_cr=1 ++ elif test "$with_ft" = "CR"; then ++ ompi_want_ft_type=cr ++ ompi_want_ft_cr=1 ++ elif test "$with_ft" = "cr"; then ++ ompi_want_ft_type=cr ++ ompi_want_ft_cr=1 ++ else ++ { echo "$as_me:$LINENO: result: Unrecognized FT TYPE: $with_ft" >&5 ++echo "${ECHO_T}Unrecognized FT TYPE: $with_ft" >&6; } ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ { echo "$as_me:$LINENO: result: Enabled $with_ft ($ompi_want_ft_type)" >&5 ++echo "${ECHO_T}Enabled $with_ft ($ompi_want_ft_type)" >&6; } ++ { echo "$as_me:$LINENO: WARNING: **************************************************" >&5 ++echo "$as_me: WARNING: **************************************************" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fault Tolerance Integration into Open MPI is *" >&5 ++echo "$as_me: WARNING: *** Fault Tolerance Integration into Open MPI is *" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** a research quality implementation, and care *" >&5 ++echo "$as_me: WARNING: *** a research quality implementation, and care *" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** should be used when choosing to enable it. *" >&5 ++echo "$as_me: WARNING: *** should be used when choosing to enable it. *" >&2;} ++ { echo "$as_me:$LINENO: WARNING: **************************************************" >&5 ++echo "$as_me: WARNING: **************************************************" >&2;} ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_ENABLE_FT $ompi_want_ft ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_ENABLE_FT_CR $ompi_want_ft_cr ++_ACEOF ++ ++ if test "$ompi_want_ft" = "1"; then ++ WANT_FT_TRUE= ++ WANT_FT_FALSE='#' ++else ++ WANT_FT_TRUE='#' ++ WANT_FT_FALSE= ++fi ++ ++ ++# ++# Do we want to install binaries? ++# ++# Check whether --enable-binaries was given. ++if test "${enable_binaries+set}" = set; then ++ enableval=$enable_binaries; ++fi ++ ++ if test "$enable_binaries" != "no"; then ++ OMPI_INSTALL_BINARIES_TRUE= ++ OMPI_INSTALL_BINARIES_FALSE='#' ++else ++ OMPI_INSTALL_BINARIES_TRUE='#' ++ OMPI_INSTALL_BINARIES_FALSE= ++fi ++ ++ ++# Check whether --enable-script-wrapper-compilers was given. ++if test "${enable_script_wrapper_compilers+set}" = set; then ++ enableval=$enable_script_wrapper_compilers; ++fi ++ ++ if test "$enable_script_wrapper_compilers" = "yes"; then ++ OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_TRUE= ++ OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_FALSE='#' ++else ++ OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_TRUE='#' ++ OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_FALSE= ++fi ++ ++ac_config_files="$ac_config_files ompi/tools/wrappers/ompi_wrapper_script" ++ ++ ++# ++# Support per-user config files? ++# ++# Check whether --enable-per-user-config-files was given. ++if test "${enable_per_user_config_files+set}" = set; then ++ enableval=$enable_per_user_config_files; ++fi ++ ++if test "$enable_per_user_config_files" = "no" ; then ++ result=0 ++else ++ result=1 ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_WANT_HOME_CONFIG_FILES $result ++_ACEOF ++ ++ ++# ++# Do we want to disable IPv6 support? ++# ++{ echo "$as_me:$LINENO: checking if want IPv6 support" >&5 ++echo $ECHO_N "checking if want IPv6 support... $ECHO_C" >&6; } ++# Check whether --enable-ipv6 was given. ++if test "${enable_ipv6+set}" = set; then ++ enableval=$enable_ipv6; ++fi ++ ++if test "$enable_ipv6" = "no"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ opal_want_ipv6=0 ++else ++ { echo "$as_me:$LINENO: result: yes (if underlying system supports it)" >&5 ++echo "${ECHO_T}yes (if underlying system supports it)" >&6; } ++ opal_want_ipv6=1 ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_ENABLE_IPV6 $opal_want_ipv6 ++_ACEOF ++ ++ ++# ++# Do we want orterun's --prefix behavior to be enabled by default? ++# ++{ echo "$as_me:$LINENO: checking if want orterun \"--prefix\" behavior to be enabled by default" >&5 ++echo $ECHO_N "checking if want orterun \"--prefix\" behavior to be enabled by default... $ECHO_C" >&6; } ++# Check whether --enable-orterun-prefix-by-default was given. ++if test "${enable_orterun_prefix_by_default+set}" = set; then ++ enableval=$enable_orterun_prefix_by_default; ++fi ++ ++# Check whether --enable-mpirun-prefix-by-default was given. ++if test "${enable_mpirun_prefix_by_default+set}" = set; then ++ enableval=$enable_mpirun_prefix_by_default; ++fi ++ ++if test "$enable_orterun_prefix_by_default" = ""; then ++ enable_orterun_prefix_by_default=$enable_mpirun_prefix_by_default ++fi ++if test "$enable_orterun_prefix_by_default" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ orte_want_orterun_prefix_by_default=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ orte_want_orterun_prefix_by_default=0 ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ORTE_WANT_ORTERUN_PREFIX_BY_DEFAULT $orte_want_orterun_prefix_by_default ++_ACEOF ++ ++ ++# ++# Package/brand string ++# ++{ echo "$as_me:$LINENO: checking for package/brand string" >&5 ++echo $ECHO_N "checking for package/brand string... $ECHO_C" >&6; } ++ ++# Check whether --with-package-string was given. ++if test "${with_package_string+set}" = set; then ++ withval=$with_package_string; ++fi ++ ++if test "$with_package_string" = "" -o "$with_package_string" = "no"; then ++ with_package_string="Open MPI $OMPI_CONFIGURE_USER@$OMPI_CONFIGURE_HOST Distribution" ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_PACKAGE_STRING "$with_package_string" ++_ACEOF ++ ++{ echo "$as_me:$LINENO: result: $with_package_string" >&5 ++echo "${ECHO_T}$with_package_string" >&6; } ++ ++# ++# Ident string ++# ++{ echo "$as_me:$LINENO: checking for ident string" >&5 ++echo $ECHO_N "checking for ident string... $ECHO_C" >&6; } ++ ++# Check whether --with-ident-string was given. ++if test "${with_ident_string+set}" = set; then ++ withval=$with_ident_string; ++fi ++ ++if test "$with_ident_string" = "" -o "$with_ident_string" = "no"; then ++ with_ident_string="%VERSION%" ++fi ++with_ident_string="`echo $with_ident_string | sed -e 's/%VERSION%/'$OMPI_VERSION/`" ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_IDENT_STRING "$with_ident_string" ++_ACEOF ++ ++{ echo "$as_me:$LINENO: result: $with_ident_string" >&5 ++echo "${ECHO_T}$with_ident_string" >&6; } ++ ++ ++ ++ ++if test "$enable_binaries" = "no" -a "$enable_dist" = "yes"; then ++ { echo "$as_me:$LINENO: WARNING: --disable-binaries is incompatible with --enable dist" >&5 ++echo "$as_me: WARNING: --disable-binaries is incompatible with --enable dist" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++############################################################################ ++# Libtool: part one ++# (before C compiler setup) ++############################################################################ ++ ++# ++# Part one of libtool magic. Enable static so that we have the --with ++# tests done up here and can check for OS. Save the values of ++# $enable_static and $enable_shared before setting the defaults, ++# because if the user specified --[en|dis]able-[static|shared] on the ++# command line, they'll already be set. In this way, we can tell if ++# the user requested something or if the default was set here. ++# ++ ++ompi_enable_shared="$enable_shared" ++ompi_enable_static="$enable_static" ++# Check whether --enable-shared was given. ++if test "${enable_shared+set}" = set; then ++ enableval=$enable_shared; p=${PACKAGE-default} ++ case $enableval in ++ yes) enable_shared=yes ;; ++ no) enable_shared=no ;; ++ *) ++ enable_shared=no ++ # Look at the argument we got. We use all the common list separators. ++ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," ++ for pkg in $enableval; do ++ IFS="$lt_save_ifs" ++ if test "X$pkg" = "X$p"; then ++ enable_shared=yes ++ fi ++ done ++ IFS="$lt_save_ifs" ++ ;; ++ esac ++else ++ enable_shared=yes ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++# Check whether --enable-static was given. ++if test "${enable_static+set}" = set; then ++ enableval=$enable_static; p=${PACKAGE-default} ++ case $enableval in ++ yes) enable_static=yes ;; ++ no) enable_static=no ;; ++ *) ++ enable_static=no ++ # Look at the argument we got. We use all the common list separators. ++ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," ++ for pkg in $enableval; do ++ IFS="$lt_save_ifs" ++ if test "X$pkg" = "X$p"; then ++ enable_static=yes ++ fi ++ done ++ IFS="$lt_save_ifs" ++ ;; ++ esac ++else ++ enable_static=no ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ WRAPPER_EXTRA_CPPFLAGS= ++ WRAPPER_EXTRA_CFLAGS= ++ WRAPPER_EXTRA_CXXFLAGS= ++ WRAPPER_EXTRA_FFLAGS= ++ WRAPPER_EXTRA_FCFLAGS= ++ WRAPPER_EXTRA_LDFLAGS= ++ WRAPPER_EXTRA_LIBS= ++ ++ USER_WRAPPER_EXTRA_CFLAGS= ++ USER_WRAPPER_EXTRA_CXXFLAGS= ++ USER_WRAPPER_EXTRA_FFLAGS= ++ USER_WRAPPER_EXTRA_FCFLAGS= ++ USER_WRAPPER_EXTRA_LDFLAGS= ++ USER_WRAPPER_EXTRA_LIBS= ++ ++ ++# Check whether --with-wrapper-cflags was given. ++if test "${with_wrapper_cflags+set}" = set; then ++ withval=$with_wrapper_cflags; ++fi ++ ++ if test "$with_wrapper_cflags" = "yes" -o "$with_wrapper_cflags" = "no"; then ++ { { echo "$as_me:$LINENO: error: --with-wrapper-cflags must have an argument. Aborting" >&5 ++echo "$as_me: error: --with-wrapper-cflags must have an argument. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ elif test ! -z "$with_wrapper_cflags" ; then ++ USER_WRAPPER_EXTRA_CFLAGS="$with_wrapper_cflags" ++ fi ++ ++ ++# Check whether --with-wrapper-cxxflags was given. ++if test "${with_wrapper_cxxflags+set}" = set; then ++ withval=$with_wrapper_cxxflags; ++fi ++ ++ if test "$with_wrapper_cxxflags" = "yes" -o "$with_wrapper_cxxflags" = "no"; then ++ { { echo "$as_me:$LINENO: error: --with-wrapper-cxxflags must have an argument. Aborting" >&5 ++echo "$as_me: error: --with-wrapper-cxxflags must have an argument. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ elif test ! -z "$with_wrapper_cxxflags" ; then ++ USER_WRAPPER_EXTRA_CXXFLAGS="$with_wrapper_cxxflags" ++ fi ++ ++ ++# Check whether --with-wrapper-fflags was given. ++if test "${with_wrapper_fflags+set}" = set; then ++ withval=$with_wrapper_fflags; ++fi ++ ++ if test "$with_wrapper_fflags" = "yes" -o "$with_wrapper_fflags" = "no"; then ++ { { echo "$as_me:$LINENO: error: --with-wrapper-fflags must have an argument. Aborting" >&5 ++echo "$as_me: error: --with-wrapper-fflags must have an argument. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ elif test ! -z "$with_wrapper_fflags" ; then ++ USER_WRAPPER_EXTRA_FFLAGS="$with_wrapper_fflags" ++ fi ++ ++ ++# Check whether --with-wrapper-fcflags was given. ++if test "${with_wrapper_fcflags+set}" = set; then ++ withval=$with_wrapper_fcflags; ++fi ++ ++ if test "$with_wrapper_fcflags" = "yes" -o "$with_wrapper_fcflags" = "no"; then ++ { { echo "$as_me:$LINENO: error: --with-wrapper-fcflags must have an argument. Aborting" >&5 ++echo "$as_me: error: --with-wrapper-fcflags must have an argument. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ elif test ! -z "$with_wrapper_fcflags" ; then ++ USER_WRAPPER_EXTRA_FCFLAGS="$with_wrapper_fcflags" ++ fi ++ ++ ++# Check whether --with-wrapper-ldflags was given. ++if test "${with_wrapper_ldflags+set}" = set; then ++ withval=$with_wrapper_ldflags; ++fi ++ ++ if test "$with_wrapper_ldflags" = "yes" -o "$with_wrapper_ldflags" = "no"; then ++ { { echo "$as_me:$LINENO: error: --with-wrapper-ldflags must have an argument. Aborting" >&5 ++echo "$as_me: error: --with-wrapper-ldflags must have an argument. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ elif test ! -z "$with_wrapper_ldflags" ; then ++ USER_WRAPPER_EXTRA_LDFLAGS="$with_wrapper_ldflags" ++ fi ++ ++ ++# Check whether --with-wrapper-libs was given. ++if test "${with_wrapper_libs+set}" = set; then ++ withval=$with_wrapper_libs; ++fi ++ ++ if test "$with_wrapper_libs" = "yes" -o "$with_wrapper_libs" = "no"; then ++ { { echo "$as_me:$LINENO: error: --with-wrapper-libs must have an argument. Aborting" >&5 ++echo "$as_me: error: --with-wrapper-libs must have an argument. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ elif test ! -z "$with_wrapper_libs" ; then ++ USER_WRAPPER_EXTRA_LIBS="$with_wrapper_libs" ++ fi ++ ++ ++ ++############################################################################ ++# Check for compilers and preprocessors ++############################################################################ ++ompi_show_title "Compiler and preprocessor tests" ++ ++################################## ++# C compiler characteristics ++################################## ++ ++ ++ ompi_show_subtitle "C compiler and preprocessor" ++ ++ # $%@#!@#% AIX!! This has to be called before anything invokes the C ++ # compiler. ++ ++DEPDIR="${am__leading_dot}deps" ++ ++ac_config_commands="$ac_config_commands depfiles" ++ ++ ++am_make=${MAKE-make} ++cat > confinc << 'END' ++am__doit: ++ @echo done ++.PHONY: am__doit ++END ++# If we don't find an include directive, just comment out the code. ++{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 ++echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } ++am__include="#" ++am__quote= ++_am_result=none ++# First try GNU make style include. ++echo "include confinc" > confmf ++# We grep out `Entering directory' and `Leaving directory' ++# messages which can occur if `w' ends up in MAKEFLAGS. ++# In particular we don't look at `^make:' because GNU make might ++# be invoked under some other name (usually "gmake"), in which ++# case it prints its new name instead of `make'. ++if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then ++ am__include=include ++ am__quote= ++ _am_result=GNU ++fi ++# Now try BSD make style include. ++if test "$am__include" = "#"; then ++ echo '.include "confinc"' > confmf ++ if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then ++ am__include=.include ++ am__quote="\"" ++ _am_result=BSD ++ fi ++fi ++ ++ ++{ echo "$as_me:$LINENO: result: $_am_result" >&5 ++echo "${ECHO_T}$_am_result" >&6; } ++rm -f confinc confmf ++ ++# Check whether --enable-dependency-tracking was given. ++if test "${enable_dependency_tracking+set}" = set; then ++ enableval=$enable_dependency_tracking; ++fi ++ ++if test "x$enable_dependency_tracking" != xno; then ++ am_depcomp="$ac_aux_dir/depcomp" ++ AMDEPBACKSLASH='\' ++fi ++ if test "x$enable_dependency_tracking" != xno; then ++ AMDEP_TRUE= ++ AMDEP_FALSE='#' ++else ++ AMDEP_TRUE='#' ++ AMDEP_FALSE= ++fi ++ ++ ++ ++ # ++ # Check for the compiler ++ # ++ ompi_cflags_save="$CFLAGS" ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. ++set dummy ${ac_tool_prefix}gcc; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_CC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$CC"; then ++ ac_cv_prog_CC="$CC" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_CC="${ac_tool_prefix}gcc" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++CC=$ac_cv_prog_CC ++if test -n "$CC"; then ++ { echo "$as_me:$LINENO: result: $CC" >&5 ++echo "${ECHO_T}$CC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_CC"; then ++ ac_ct_CC=$CC ++ # Extract the first word of "gcc", so it can be a program name with args. ++set dummy gcc; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_CC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_CC"; then ++ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_CC="gcc" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_CC=$ac_cv_prog_ac_ct_CC ++if test -n "$ac_ct_CC"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 ++echo "${ECHO_T}$ac_ct_CC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_CC" = x; then ++ CC="" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ CC=$ac_ct_CC ++ fi ++else ++ CC="$ac_cv_prog_CC" ++fi ++ ++if test -z "$CC"; then ++ if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. ++set dummy ${ac_tool_prefix}cc; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_CC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$CC"; then ++ ac_cv_prog_CC="$CC" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_CC="${ac_tool_prefix}cc" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++CC=$ac_cv_prog_CC ++if test -n "$CC"; then ++ { echo "$as_me:$LINENO: result: $CC" >&5 ++echo "${ECHO_T}$CC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ fi ++fi ++if test -z "$CC"; then ++ # Extract the first word of "cc", so it can be a program name with args. ++set dummy cc; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_CC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$CC"; then ++ ac_cv_prog_CC="$CC" # Let the user override the test. ++else ++ ac_prog_rejected=no ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ++ ac_prog_rejected=yes ++ continue ++ fi ++ ac_cv_prog_CC="cc" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++if test $ac_prog_rejected = yes; then ++ # We found a bogon in the path, so make sure we never use it. ++ set dummy $ac_cv_prog_CC ++ shift ++ if test $@%:@ != 0; then ++ # We chose a different compiler from the bogus one. ++ # However, it has the same basename, so the bogon will be chosen ++ # first if we set CC to just the basename; use the full file name. ++ shift ++ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" ++ fi ++fi ++fi ++fi ++CC=$ac_cv_prog_CC ++if test -n "$CC"; then ++ { echo "$as_me:$LINENO: result: $CC" >&5 ++echo "${ECHO_T}$CC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$CC"; then ++ if test -n "$ac_tool_prefix"; then ++ for ac_prog in cl.exe ++ do ++ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ++set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_CC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$CC"; then ++ ac_cv_prog_CC="$CC" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_CC="$ac_tool_prefix$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++CC=$ac_cv_prog_CC ++if test -n "$CC"; then ++ { echo "$as_me:$LINENO: result: $CC" >&5 ++echo "${ECHO_T}$CC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$CC" && break ++ done ++fi ++if test -z "$CC"; then ++ ac_ct_CC=$CC ++ for ac_prog in cl.exe ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_CC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_CC"; then ++ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_CC="$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_CC=$ac_cv_prog_ac_ct_CC ++if test -n "$ac_ct_CC"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 ++echo "${ECHO_T}$ac_ct_CC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$ac_ct_CC" && break ++done ++ ++ if test "x$ac_ct_CC" = x; then ++ CC="" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ CC=$ac_ct_CC ++ fi ++fi ++ ++fi ++ ++ ++test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH ++See \`config.log' for more details." >&5 ++echo "$as_me: error: no acceptable C compiler found in \$PATH ++See \`config.log' for more details." >&2;} ++ { (exit 1); exit 1; }; } ++ ++# Provide some information about the compiler. ++echo "$as_me:$LINENO: checking for C compiler version" >&5 ++ac_compiler=`set X $ac_compile; echo $2` ++{ (ac_try="$ac_compiler --version >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler --version >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -v >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -v >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -V >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -V >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++ ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++ac_clean_files_save=$ac_clean_files ++ac_clean_files="$ac_clean_files a.out a.exe b.out" ++# Try to create an executable without -o first, disregard a.out. ++# It will help us diagnose broken compilers, and finding out an intuition ++# of exeext. ++{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 ++echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } ++ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` ++# ++# List of possible output files, starting from the most likely. ++# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) ++# only as a last resort. b.out is created by i960 compilers. ++ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' ++# ++# The IRIX 6 linker writes into existing files which may not be ++# executable, retaining their permissions. Remove them first so a ++# subsequent execution test works. ++ac_rmfiles= ++for ac_file in $ac_files ++do ++ case $ac_file in ++ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; ++ * ) ac_rmfiles="$ac_rmfiles $ac_file";; ++ esac ++done ++rm -f $ac_rmfiles ++ ++if { (ac_try="$ac_link_default" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link_default") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. ++# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' ++# in a Makefile. We should not override ac_cv_exeext if it was cached, ++# so that the user can short-circuit this test for compilers unknown to ++# Autoconf. ++for ac_file in $ac_files '' ++do ++ test -f "$ac_file" || continue ++ case $ac_file in ++ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ++ ;; ++ [ab].out ) ++ # We found the default executable, but exeext='' is most ++ # certainly right. ++ break;; ++ *.* ) ++ if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; ++ then :; else ++ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` ++ fi ++ # We set ac_cv_exeext here because the later test for it is not ++ # safe: cross compilers may not add the suffix if given an `-o' ++ # argument, so we may need to know it at that point already. ++ # Even if this section looks crufty: it has the advantage of ++ # actually working. ++ break;; ++ * ) ++ break;; ++ esac ++done ++test "$ac_cv_exeext" = no && ac_cv_exeext= ++ ++else ++ ac_file='' ++fi ++ ++{ echo "$as_me:$LINENO: result: $ac_file" >&5 ++echo "${ECHO_T}$ac_file" >&6; } ++if test -z "$ac_file"; then ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++{ { echo "$as_me:$LINENO: error: C compiler cannot create executables ++See \`config.log' for more details." >&5 ++echo "$as_me: error: C compiler cannot create executables ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++fi ++ ++ac_exeext=$ac_cv_exeext ++ ++# Check that the compiler produces executables we can run. If not, either ++# the compiler is broken, or we cross compile. ++{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 ++echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } ++# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 ++# If not cross compiling, check that we can run a simple program. ++if test "$cross_compiling" != yes; then ++ if { ac_try='./$ac_file' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ cross_compiling=no ++ else ++ if test "$cross_compiling" = maybe; then ++ cross_compiling=yes ++ else ++ { { echo "$as_me:$LINENO: error: cannot run C compiled programs. ++If you meant to cross compile, use \`--host'. ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot run C compiled programs. ++If you meant to cross compile, use \`--host'. ++See \`config.log' for more details." >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++fi ++{ echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++rm -f a.out a.exe conftest$ac_cv_exeext b.out ++ac_clean_files=$ac_clean_files_save ++# Check that the compiler produces executables we can run. If not, either ++# the compiler is broken, or we cross compile. ++{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 ++echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } ++{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 ++echo "${ECHO_T}$cross_compiling" >&6; } ++ ++{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 ++echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # If both `conftest.exe' and `conftest' are `present' (well, observable) ++# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will ++# work properly (i.e., refer to `conftest.exe'), while it won't with ++# `rm'. ++for ac_file in conftest.exe conftest conftest.*; do ++ test -f "$ac_file" || continue ++ case $ac_file in ++ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; ++ *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` ++ break;; ++ * ) break;; ++ esac ++done ++else ++ { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute suffix of executables: cannot compile and link ++See \`config.log' for more details." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++rm -f conftest$ac_cv_exeext ++{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 ++echo "${ECHO_T}$ac_cv_exeext" >&6; } ++ ++rm -f conftest.$ac_ext ++EXEEXT=$ac_cv_exeext ++ac_exeext=$EXEEXT ++{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 ++echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } ++if test "${ac_cv_objext+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.o conftest.obj ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ for ac_file in conftest.o conftest.obj conftest.*; do ++ test -f "$ac_file" || continue; ++ case $ac_file in ++ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; ++ *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` ++ break;; ++ esac ++done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute suffix of object files: cannot compile ++See \`config.log' for more details." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++rm -f conftest.$ac_cv_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 ++echo "${ECHO_T}$ac_cv_objext" >&6; } ++OBJEXT=$ac_cv_objext ++ac_objext=$OBJEXT ++{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 ++echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } ++if test "${ac_cv_c_compiler_gnu+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++#ifndef __GNUC__ ++ choke me ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_compiler_gnu=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_compiler_gnu=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ac_cv_c_compiler_gnu=$ac_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 ++echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } ++GCC=`test $ac_compiler_gnu = yes && echo yes` ++ac_test_CFLAGS=${CFLAGS+set} ++ac_save_CFLAGS=$CFLAGS ++{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 ++echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } ++if test "${ac_cv_prog_cc_g+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_save_c_werror_flag=$ac_c_werror_flag ++ ac_c_werror_flag=yes ++ ac_cv_prog_cc_g=no ++ CFLAGS="-g" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_cc_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ CFLAGS="" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ : ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_c_werror_flag=$ac_save_c_werror_flag ++ CFLAGS="-g" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_cc_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_c_werror_flag=$ac_save_c_werror_flag ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 ++echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } ++if test "$ac_test_CFLAGS" = set; then ++ CFLAGS=$ac_save_CFLAGS ++elif test $ac_cv_prog_cc_g = yes; then ++ if test "$GCC" = yes; then ++ CFLAGS="-g -O2" ++ else ++ CFLAGS="-g" ++ fi ++else ++ if test "$GCC" = yes; then ++ CFLAGS="-O2" ++ else ++ CFLAGS= ++ fi ++fi ++{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 ++echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } ++if test "${ac_cv_prog_cc_c89+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_prog_cc_c89=no ++ac_save_CC=$CC ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++#include ++#include ++/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ ++struct buf { int x; }; ++FILE * (*rcsopen) (struct buf *, struct stat *, int); ++static char *e (p, i) ++ char **p; ++ int i; ++{ ++ return p[i]; ++} ++static char *f (char * (*g) (char **, int), char **p, ...) ++{ ++ char *s; ++ va_list v; ++ va_start (v,p); ++ s = g (p, va_arg (v,int)); ++ va_end (v); ++ return s; ++} ++ ++/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has ++ function prototypes and stuff, but not '\xHH' hex character constants. ++ These don't provoke an error unfortunately, instead are silently treated ++ as 'x'. The following induces an error, until -std is added to get ++ proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an ++ array size at least. It's necessary to write '\x00'==0 to get something ++ that's true only with -std. */ ++int osf4_cc_array ['\x00' == 0 ? 1 : -1]; ++ ++/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters ++ inside strings and character constants. */ ++#define FOO(x) 'x' ++int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; ++ ++int test (int i, double x); ++struct s1 {int (*f) (int a);}; ++struct s2 {int (*f) (double a);}; ++int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); ++int argc; ++char **argv; ++int ++main () ++{ ++return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ++ ; ++ return 0; ++} ++_ACEOF ++for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ ++ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" ++do ++ CC="$ac_save_CC $ac_arg" ++ rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_cc_c89=$ac_arg ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext ++ test "x$ac_cv_prog_cc_c89" != "xno" && break ++done ++rm -f conftest.$ac_ext ++CC=$ac_save_CC ++ ++fi ++# AC_CACHE_VAL ++case "x$ac_cv_prog_cc_c89" in ++ x) ++ { echo "$as_me:$LINENO: result: none needed" >&5 ++echo "${ECHO_T}none needed" >&6; } ;; ++ xno) ++ { echo "$as_me:$LINENO: result: unsupported" >&5 ++echo "${ECHO_T}unsupported" >&6; } ;; ++ *) ++ CC="$CC $ac_cv_prog_cc_c89" ++ { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 ++echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; ++esac ++ ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++depcc="$CC" am_compiler_list= ++ ++{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 ++echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } ++if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then ++ # We make a subdir and do the tests there. Otherwise we can end up ++ # making bogus files that we don't know about and never remove. For ++ # instance it was reported that on HP-UX the gcc test will end up ++ # making a dummy file named `D' -- because `-MD' means `put the output ++ # in D'. ++ mkdir conftest.dir ++ # Copy depcomp to subdir because otherwise we won't find it if we're ++ # using a relative directory. ++ cp "$am_depcomp" conftest.dir ++ cd conftest.dir ++ # We will build objects and dependencies in a subdirectory because ++ # it helps to detect inapplicable dependency modes. For instance ++ # both Tru64's cc and ICC support -MD to output dependencies as a ++ # side effect of compilation, but ICC will put the dependencies in ++ # the current directory while Tru64 will put them in the object ++ # directory. ++ mkdir sub ++ ++ am_cv_CC_dependencies_compiler_type=none ++ if test "$am_compiler_list" = ""; then ++ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` ++ fi ++ for depmode in $am_compiler_list; do ++ # Setup a source with many dependencies, because some compilers ++ # like to wrap large dependency lists on column 80 (with \), and ++ # we should not choose a depcomp mode which is confused by this. ++ # ++ # We need to recreate these files for each test, as the compiler may ++ # overwrite some of them when testing with obscure command lines. ++ # This happens at least with the AIX C compiler. ++ : > sub/conftest.c ++ for i in 1 2 3 4 5 6; do ++ echo '#include "conftst'$i'.h"' >> sub/conftest.c ++ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with ++ # Solaris 8's {/usr,}/bin/sh. ++ touch sub/conftst$i.h ++ done ++ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf ++ ++ case $depmode in ++ nosideeffect) ++ # after this tag, mechanisms are not by side-effect, so they'll ++ # only be used when explicitly requested ++ if test "x$enable_dependency_tracking" = xyes; then ++ continue ++ else ++ break ++ fi ++ ;; ++ none) break ;; ++ esac ++ # We check with `-c' and `-o' for the sake of the "dashmstdout" ++ # mode. It turns out that the SunPro C++ compiler does not properly ++ # handle `-M -o', and we need to detect this. ++ if depmode=$depmode \ ++ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ ++ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ ++ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ ++ >/dev/null 2>conftest.err && ++ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ++ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then ++ # icc doesn't choke on unknown options, it will just issue warnings ++ # or remarks (even with -Werror). So we grep stderr for any message ++ # that says an option was ignored or not supported. ++ # When given -MP, icc 7.0 and 7.1 complain thusly: ++ # icc: Command line warning: ignoring option '-M'; no argument required ++ # The diagnosis changed in icc 8.0: ++ # icc: Command line remark: option '-MP' not supported ++ if (grep 'ignoring option' conftest.err || ++ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else ++ am_cv_CC_dependencies_compiler_type=$depmode ++ break ++ fi ++ fi ++ done ++ ++ cd .. ++ rm -rf conftest.dir ++else ++ am_cv_CC_dependencies_compiler_type=none ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 ++echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } ++CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type ++ ++ if ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then ++ am__fastdepCC_TRUE= ++ am__fastdepCC_FALSE='#' ++else ++ am__fastdepCC_TRUE='#' ++ am__fastdepCC_FALSE= ++fi ++ ++ ++ BASECC="`basename $CC`" ++ CFLAGS="$ompi_cflags_save" ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CC "$CC" ++_ACEOF ++ ++ set dummy $CC ++ ompi_cc_argv0=$2 ++ ++# 1 is the variable name to do "which" on ++# 2 is the variable name to assign the return value to ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ompi_prog=$ompi_cc_argv0 ++ ++IFS_SAVE=$IFS ++IFS="$PATH_SEPARATOR" ++for ompi_dir in $PATH; do ++ if test -x "$ompi_dir/$ompi_prog"; then ++ OMPI_CC_ABSOLUTE="$ompi_dir/$ompi_prog" ++ break ++ fi ++done ++IFS=$IFS_SAVE ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++if test "x$CC" != xcc; then ++ { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 ++echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; } ++else ++ { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 ++echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; } ++fi ++set dummy $CC; ac_cc=`echo $2 | ++ sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` ++if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++# Make sure it works both with $CC and with simple cc. ++# We do the test twice because some compilers refuse to overwrite an ++# existing .o file with -o, though they will create one. ++ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' ++rm -f conftest2.* ++if { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && ++ test -f conftest2.$ac_objext && { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; ++then ++ eval ac_cv_prog_cc_${ac_cc}_c_o=yes ++ if test "x$CC" != xcc; then ++ # Test first that cc exists at all. ++ if { ac_try='cc -c conftest.$ac_ext >&5' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' ++ rm -f conftest2.* ++ if { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && ++ test -f conftest2.$ac_objext && { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; ++ then ++ # cc works too. ++ : ++ else ++ # cc exists but doesn't like -o. ++ eval ac_cv_prog_cc_${ac_cc}_c_o=no ++ fi ++ fi ++ fi ++else ++ eval ac_cv_prog_cc_${ac_cc}_c_o=no ++fi ++rm -f core conftest* ++ ++fi ++if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define NO_MINUS_C_MINUS_O 1 ++_ACEOF ++ ++fi ++ ++# FIXME: we rely on the cache variable name because ++# there is no other way. ++set dummy $CC ++ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` ++if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then ++ # Losing compiler, so override with the script. ++ # FIXME: It is wrong to rewrite CC. ++ # But if we don't then we get into trouble of one sort or another. ++ # A longer-term fix would be to have automake use am__CC in this case, ++ # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" ++ CC="$am_aux_dir/compile $CC" ++fi ++ ++ ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 ++echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } ++# On Suns, sometimes $CPP names a directory. ++if test -n "$CPP" && test -d "$CPP"; then ++ CPP= ++fi ++if test -z "$CPP"; then ++ if test "${ac_cv_prog_CPP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Double quotes because CPP needs to be expanded ++ for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" ++ do ++ ac_preproc_ok=false ++for ac_c_preproc_warn_flag in '' yes ++do ++ # Use a header file that comes with gcc, so configuring glibc ++ # with a fresh cross-compiler works. ++ # Prefer to if __STDC__ is defined, since ++ # exists even on freestanding compilers. ++ # On the NeXT, cc -E runs the code through the compiler's parser, ++ # not just through cpp. "Syntax error" is here to catch this case. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@ifdef __STDC__ ++@%:@ include ++@%:@else ++@%:@ include ++@%:@endif ++ Syntax error ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ : ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # Broken: fails on valid input. ++continue ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++ ++ # OK, works on sane cases. Now check whether nonexistent headers ++ # can be detected and how. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ # Broken: success on invalid input. ++continue ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # Passes both tests. ++ac_preproc_ok=: ++break ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++ ++done ++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ++rm -f conftest.err conftest.$ac_ext ++if $ac_preproc_ok; then ++ break ++fi ++ ++ done ++ ac_cv_prog_CPP=$CPP ++ ++fi ++ CPP=$ac_cv_prog_CPP ++else ++ ac_cv_prog_CPP=$CPP ++fi ++{ echo "$as_me:$LINENO: result: $CPP" >&5 ++echo "${ECHO_T}$CPP" >&6; } ++ac_preproc_ok=false ++for ac_c_preproc_warn_flag in '' yes ++do ++ # Use a header file that comes with gcc, so configuring glibc ++ # with a fresh cross-compiler works. ++ # Prefer to if __STDC__ is defined, since ++ # exists even on freestanding compilers. ++ # On the NeXT, cc -E runs the code through the compiler's parser, ++ # not just through cpp. "Syntax error" is here to catch this case. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@ifdef __STDC__ ++@%:@ include ++@%:@else ++@%:@ include ++@%:@endif ++ Syntax error ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ : ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # Broken: fails on valid input. ++continue ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++ ++ # OK, works on sane cases. Now check whether nonexistent headers ++ # can be detected and how. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ # Broken: success on invalid input. ++continue ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # Passes both tests. ++ac_preproc_ok=: ++break ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++ ++done ++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ++rm -f conftest.err conftest.$ac_ext ++if $ac_preproc_ok; then ++ : ++else ++ { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check ++See \`config.log' for more details." >&5 ++echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check ++See \`config.log' for more details." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 ++echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } ++if test "${ac_cv_path_GREP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Extract the first word of "grep ggrep" to use in msg output ++if test -z "$GREP"; then ++set dummy grep ggrep; ac_prog_name=$2 ++if test "${ac_cv_path_GREP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_path_GREP_found=false ++# Loop through the user's path and test for each of PROGNAME-LIST ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_prog in grep ggrep; do ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" ++ { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue ++ # Check for GNU ac_path_GREP and select it if it is found. ++ # Check for GNU $ac_path_GREP ++case `"$ac_path_GREP" --version 2>&1` in ++*GNU*) ++ ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; ++*) ++ ac_count=0 ++ echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" ++ while : ++ do ++ cat "conftest.in" "conftest.in" >"conftest.tmp" ++ mv "conftest.tmp" "conftest.in" ++ cp "conftest.in" "conftest.nl" ++ echo 'GREP' >> "conftest.nl" ++ "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break ++ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ++ ac_count=`expr $ac_count + 1` ++ if test $ac_count -gt ${ac_path_GREP_max-0}; then ++ # Best one so far, save it but keep looking for a better one ++ ac_cv_path_GREP="$ac_path_GREP" ++ ac_path_GREP_max=$ac_count ++ fi ++ # 10*(2^10) chars as input seems more than enough ++ test $ac_count -gt 10 && break ++ done ++ rm -f conftest.in conftest.tmp conftest.nl conftest.out;; ++esac ++ ++ ++ $ac_path_GREP_found && break 3 ++ done ++done ++ ++done ++IFS=$as_save_IFS ++ ++ ++fi ++ ++GREP="$ac_cv_path_GREP" ++if test -z "$GREP"; then ++ { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 ++echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ ac_cv_path_GREP=$GREP ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 ++echo "${ECHO_T}$ac_cv_path_GREP" >&6; } ++ GREP="$ac_cv_path_GREP" ++ ++ ++{ echo "$as_me:$LINENO: checking for egrep" >&5 ++echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } ++if test "${ac_cv_path_EGREP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 ++ then ac_cv_path_EGREP="$GREP -E" ++ else ++ # Extract the first word of "egrep" to use in msg output ++if test -z "$EGREP"; then ++set dummy egrep; ac_prog_name=$2 ++if test "${ac_cv_path_EGREP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_path_EGREP_found=false ++# Loop through the user's path and test for each of PROGNAME-LIST ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_prog in egrep; do ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" ++ { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue ++ # Check for GNU ac_path_EGREP and select it if it is found. ++ # Check for GNU $ac_path_EGREP ++case `"$ac_path_EGREP" --version 2>&1` in ++*GNU*) ++ ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; ++*) ++ ac_count=0 ++ echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" ++ while : ++ do ++ cat "conftest.in" "conftest.in" >"conftest.tmp" ++ mv "conftest.tmp" "conftest.in" ++ cp "conftest.in" "conftest.nl" ++ echo 'EGREP' >> "conftest.nl" ++ "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break ++ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ++ ac_count=`expr $ac_count + 1` ++ if test $ac_count -gt ${ac_path_EGREP_max-0}; then ++ # Best one so far, save it but keep looking for a better one ++ ac_cv_path_EGREP="$ac_path_EGREP" ++ ac_path_EGREP_max=$ac_count ++ fi ++ # 10*(2^10) chars as input seems more than enough ++ test $ac_count -gt 10 && break ++ done ++ rm -f conftest.in conftest.tmp conftest.nl conftest.out;; ++esac ++ ++ ++ $ac_path_EGREP_found && break 3 ++ done ++done ++ ++done ++IFS=$as_save_IFS ++ ++ ++fi ++ ++EGREP="$ac_cv_path_EGREP" ++if test -z "$EGREP"; then ++ { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 ++echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ ac_cv_path_EGREP=$EGREP ++fi ++ ++ ++ fi ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 ++echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } ++ EGREP="$ac_cv_path_EGREP" ++ ++ ++ ++ # AM_PROG_CC_C_O AC_REQUIREs AC_PROG_CC, so we have to be a little ++ # careful about ordering here, and AC_REQUIRE these things so that ++ # they get stamped out in the right order. ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for the C compiler vendor" >&5 ++echo $ECHO_N "checking for the C compiler vendor... $ECHO_C" >&6; } ++if test "${ompi_cv_c_compiler_vendor+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ ompi_check_compiler_vendor_result="unknown" ++ ++ # GNU is probably the most common, so check that one as soon as ++ # possible. Intel pretends to be GNU, so need to check Intel ++ # before checking for GNU. ++ ++ # Intel ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__INTEL_COMPILER) || defined(__ICC) ) ++#error "condition defined(__INTEL_COMPILER) || defined(__ICC) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="intel" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # GNU ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __GNUC__ ++#error "symbol __GNUC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="gnu" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Borland Turbo C ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __TURBOC__ ++#error "symbol __TURBOC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="borland" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Borland C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __BORLANDC__ ++#error "symbol __BORLANDC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="borland" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Comeau C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __COMO__ ++#error "symbol __COMO__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="comeau" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Compaq C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__DECC) || defined(VAXC) || defined(__VAXC) ) ++#error "condition defined(__DECC) || defined(VAXC) || defined(__VAXC) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="compaq" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__osf__) && defined(__LANGUAGE_C__) ) ++#error "condition defined(__osf__) && defined(__LANGUAGE_C__) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="compaq" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __DECCXX ++#error "symbol __DECCXX not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="compaq" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Cray C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef _CRAYC ++#error "symbol _CRAYC not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="cray" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Diab C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __DCC__ ++#error "symbol __DCC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="diab" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Digital Mars ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__DMC__) || defined(__SC__) || defined(__ZTC__) ) ++#error "condition defined(__DMC__) || defined(__SC__) || defined(__ZTC__) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="digital mars" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # HP ANSI C / aC++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__HP_cc) || defined(__HP_aCC) ) ++#error "condition defined(__HP_cc) || defined(__HP_aCC) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="hp" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # IBM XL C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) ) ++#error "condition defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="ibm" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(_AIX) && !defined(__GNUC__) ) ++#error "condition defined(_AIX) && !defined(__GNUC__) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="ibm" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # KAI C++ (rest in peace) ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __KCC ++#error "symbol __KCC not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="kai" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # LCC ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __LCC__ ++#error "symbol __LCC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="lcc" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # MetaWare High C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __HIGHC__ ++#error "symbol __HIGHC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="metaware high" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Metrowerks Codewarrior ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __MWERKS__ ++#error "symbol __MWERKS__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="metrowerks" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # MIPSpro (SGI) ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(sgi) || defined(__sgi) ) ++#error "condition defined(sgi) || defined(__sgi) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="sgi" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # MPW C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) ) ++#error "condition defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="mpw" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Microsoft ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ # Always use C compiler when checking for Microsoft, as ++ # Visual C++ doesn't recognize .cc as a C++ file. ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(_MSC_VER) || defined(__MSC_VER) ) ++#error "condition defined(_MSC_VER) || defined(__MSC_VER) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="microsoft" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++ ++ ++ # Norcroft C ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __CC_NORCROFT ++#error "symbol __CC_NORCROFT not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="norcroft" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Pelles C ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __POCC__ ++#error "symbol __POCC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="pelles" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Portland Group ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __PGI ++#error "symbol __PGI not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="portland group" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # SAS/C ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(SASC) || defined(__SASC) || defined(__SASC__) ) ++#error "condition defined(SASC) || defined(__SASC) || defined(__SASC__) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="sas" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Sun Workshop C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__SUNPRO_C) || defined(__SUNPRO_CC) ) ++#error "condition defined(__SUNPRO_C) || defined(__SUNPRO_CC) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="sun" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # TenDRA C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __TenDRA__ ++#error "symbol __TenDRA__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="tendra" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Tiny C ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __TINYC__ ++#error "symbol __TINYC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="tiny" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # USL C ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __USLC__ ++#error "symbol __USLC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="usl" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Watcom C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __WATCOMC__ ++#error "symbol __WATCOMC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="watcom" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ ompi_cv_c_compiler_vendor="$ompi_check_compiler_vendor_result" ++ unset ompi_check_compiler_vendor_result ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_compiler_vendor" >&5 ++echo "${ECHO_T}$ompi_cv_c_compiler_vendor" >&6; } ++ ++ ompi_c_vendor="$ompi_cv_c_compiler_vendor" ++ ++ ++ # Check for standard headers, needed here because needed before ++ # the types checks. ++ { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 ++echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } ++if test "${ac_cv_header_stdc+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++#include ++#include ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_header_stdc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_header_stdc=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++if test $ac_cv_header_stdc = yes; then ++ # SunOS 4.x string.h does not declare mem*, contrary to ANSI. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++_ACEOF ++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ++ $EGREP "memchr" >/dev/null 2>&1; then ++ : ++else ++ ac_cv_header_stdc=no ++fi ++rm -f conftest* ++ ++fi ++ ++if test $ac_cv_header_stdc = yes; then ++ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++_ACEOF ++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ++ $EGREP "free" >/dev/null 2>&1; then ++ : ++else ++ ac_cv_header_stdc=no ++fi ++rm -f conftest* ++ ++fi ++ ++if test $ac_cv_header_stdc = yes; then ++ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. ++ if test "$cross_compiling" = yes; then ++ : ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++#if ((' ' & 0x0FF) == 0x020) ++# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') ++# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) ++#else ++# define ISLOWER(c) \ ++ (('a' <= (c) && (c) <= 'i') \ ++ || ('j' <= (c) && (c) <= 'r') \ ++ || ('s' <= (c) && (c) <= 'z')) ++# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) ++#endif ++ ++#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) ++int ++main () ++{ ++ int i; ++ for (i = 0; i < 256; i++) ++ if (XOR (islower (i), ISLOWER (i)) ++ || toupper (i) != TOUPPER (i)) ++ return 2; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ : ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++ac_cv_header_stdc=no ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 ++echo "${ECHO_T}$ac_cv_header_stdc" >&6; } ++if test $ac_cv_header_stdc = yes; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define STDC_HEADERS 1 ++_ACEOF ++ ++fi ++ ++ ++ # GNU C and autotools are inconsistent about whether this is ++ # defined so let's make it true everywhere for now... However, IBM ++ # XL compilers on PPC Linux behave really badly when compiled with ++ # _GNU_SOURCE defined, so don't define it in that situation. ++ # ++ # Don't use AC_GNU_SOURCE because it requires that no compiler ++ # tests are done before setting it, and we need to at least do ++ # enough tests to figure out if we're using XL or not. ++ if test "$ompi_cv_c_compiler_vendor" != "ibm"; then ++ ++ ++ cat >>confdefs.h <<\_ACEOF ++@%:@define _GNU_SOURCE 1 ++_ACEOF ++ ++fi ++ ++ ++ # Do we want code coverage ++ if test "$WANT_COVERAGE" = "1"; then ++ if test "$ompi_c_vendor" = "gnu" ; then ++ # For compilers > gcc-4.x, use --coverage for ++ # compiling and linking to circumvent trouble with ++ # libgcov. ++ CFLAGS_orig="$CFLAGS" ++ LDFLAGS_orig="$LDFLAGS" ++ ++ CFLAGS="$CFLAGS_orig --coverage" ++ LDFLAGS="$LDFLAGS_orig --coverage" ++ OMPI_COVERAGE_FLAGS= ++ ++ { echo "$as_me:$LINENO: checking if $CC supports --coverage" >&5 ++echo $ECHO_N "checking if $CC supports --coverage... $ECHO_C" >&6; } ++if test "${ompi_cv_cc_coverage+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_cc_coverage="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cc_coverage="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cc_coverage" >&5 ++echo "${ECHO_T}$ompi_cv_cc_coverage" >&6; } ++ ++ if test "$ompi_cv_cc_coverage" = "yes" ; then ++ OMPI_COVERAGE_FLAGS="--coverage" ++ CLEANFILES="*.gcno ${CLEANFILES}" ++ CONFIG_CLEAN_FILES="*.gcda *.gcov ${CONFIG_CLEAN_FILES}" ++ else ++ OMPI_COVERAGE_FLAGS="-ftest-coverage -fprofile-arcs" ++ CLEANFILES="*.bb *.bbg ${CLEANFILES}" ++ CONFIG_CLEAN_FILES="*.da *.*.gcov ${CONFIG_CLEAN_FILES}" ++ fi ++ CFLAGS="$CFLAGS_orig $OMPI_COVERAGE_FLAGS" ++ LDFLAGS="$LDFLAGS_orig $OMPI_COVERAGE_FLAGS" ++ WRAPPER_EXTRA_CFLAGS="${WRAPPER_EXTRA_CFLAGS} $OMPI_COVERAGE_FLAGS" ++ WRAPPER_EXTRA_LDFLAGS="${WRAPPER_EXTRA_LDFLAGS} $OMPI_COVERAGE_FLAGS" ++ ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=CFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${CFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=LDFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${LDFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=WRAPPER_EXTRA_CFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${WRAPPER_EXTRA_CFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=WRAPPER_EXTRA_LDFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${WRAPPER_EXTRA_LDFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ { echo "$as_me:$LINENO: WARNING: $OMPI_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&5 ++echo "$as_me: WARNING: $OMPI_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&2;} ++ ++ WANT_DEBUG=1 ++ else ++ { echo "$as_me:$LINENO: WARNING: Code coverage functionality is currently available only with GCC" >&5 ++echo "$as_me: WARNING: Code coverage functionality is currently available only with GCC" >&2;} ++ { { echo "$as_me:$LINENO: error: Configure: Cannot continue" >&5 ++echo "$as_me: error: Configure: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # Do we want debugging? ++ if test "$WANT_DEBUG" = "1" -a "$enable_debug_symbols" != "no" ; then ++ if test "$ompi_c_vendor" = "gnu"; then ++ CFLAGS="$CFLAGS -g" # keep the -g3 for when it will become a standard option. ++ else ++ CFLAGS="$CFLAGS -g" ++ fi ++ ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=CFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${CFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ { echo "$as_me:$LINENO: WARNING: -g has been added to CFLAGS (--enable-debug)" >&5 ++echo "$as_me: WARNING: -g has been added to CFLAGS (--enable-debug)" >&2;} ++ fi ++ ++ # These flags are generally gcc-specific; even the ++ # gcc-impersonating compilers won't accept them. ++ OMPI_CFLAGS_BEFORE_PICKY="$CFLAGS" ++ if test "$WANT_PICKY_COMPILER" = 1 -a "$ompi_c_vendor" = "gnu" ; then ++ add="-Wall -Wundef -Wno-long-long -Wsign-compare" ++ add="$add -Wmissing-prototypes -Wstrict-prototypes" ++ add="$add -Wcomment -pedantic" ++ ++ # see if -Wno-long-double works... ++ CFLAGS_orig="$CFLAGS" ++ # CFLAGS="$CFLAGS -Wno-long-double" ++ # Starting with GCC-4.4, the compiler complains about not ++ # knowing -Wno-long-double, only if -Wstrict-prototypes is set, too. ++ # ++ # Actually, this is not real fix, as GCC will pass on any -Wno- flag, ++ # have fun with the warning: -Wno-britney ++ CFLAGS="$CFLAGS $add -Wno-long-double -Wstrict-prototypes" ++ ++ { echo "$as_me:$LINENO: checking if $CC supports -Wno-long-double" >&5 ++echo $ECHO_N "checking if $CC supports -Wno-long-double... $ECHO_C" >&6; } ++if test "${ompi_cv_cc_wno_long_double+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_cc_wno_long_double="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cc_wno_long_double="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cc_wno_long_double" >&5 ++echo "${ECHO_T}$ompi_cv_cc_wno_long_double" >&6; } ++ ++ CFLAGS="$CFLAGS_orig" ++ if test "$ompi_cv_cc_wno_long_double" = "yes" ; then ++ add="$add -Wno-long-double" ++ fi ++ ++ add="$add -Werror-implicit-function-declaration " ++ ++ CFLAGS="$CFLAGS $add" ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=CFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${CFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ { echo "$as_me:$LINENO: WARNING: $add has been added to CFLAGS (--enable-picky)" >&5 ++echo "$as_me: WARNING: $add has been added to CFLAGS (--enable-picky)" >&2;} ++ unset add ++ fi ++ ++ # See if this version of gcc allows -finline-functions and/or ++ # -fno-strict-aliasing. Even check the gcc-impersonating compilers. ++ if test "$GCC" = "yes"; then ++ CFLAGS_orig="$CFLAGS" ++ ++ CFLAGS="$CFLAGS_orig -finline-functions" ++ add= ++ { echo "$as_me:$LINENO: checking if $CC supports -finline-functions" >&5 ++echo $ECHO_N "checking if $CC supports -finline-functions... $ECHO_C" >&6; } ++if test "${ompi_cv_cc_finline_functions+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_cc_finline_functions="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cc_finline_functions="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cc_finline_functions" >&5 ++echo "${ECHO_T}$ompi_cv_cc_finline_functions" >&6; } ++ if test "$ompi_cv_cc_finline_functions" = "yes" ; then ++ add=" -finline-functions" ++ fi ++ CFLAGS="$CFLAGS_orig$add" ++ ++ CFLAGS_orig="$CFLAGS" ++ CFLAGS="$CFLAGS_orig -fno-strict-aliasing" ++ add= ++ { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5 ++echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; } ++if test "${ompi_cv_cc_fno_strict_aliasing+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_cc_fno_strict_aliasing="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cc_fno_strict_aliasing="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cc_fno_strict_aliasing" >&5 ++echo "${ECHO_T}$ompi_cv_cc_fno_strict_aliasing" >&6; } ++ if test "$ompi_cv_cc_fno_strict_aliasing" = "yes" ; then ++ add=" -fno-strict-aliasing" ++ fi ++ CFLAGS="$CFLAGS_orig$add" ++ ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=CFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${CFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ { echo "$as_me:$LINENO: WARNING: $add has been added to CFLAGS" >&5 ++echo "$as_me: WARNING: $add has been added to CFLAGS" >&2;} ++ unset add ++ fi ++ ++ # Try to enable restrict keyword ++ RESTRICT_CFLAGS= ++ case "$ompi_c_vendor" in ++ intel) ++ RESTRICT_CFLAGS="-restrict" ++ ;; ++ sgi) ++ RESTRICT_CFLAGS="-LANG:restrict=ON" ++ ;; ++ esac ++ if test ! -z "$RESTRICT_CFLAGS" ; then ++ CFLAGS_orig="$CFLAGS" ++ CFLAGS="$CFLAGS_orig $RESTRICT_CFLAGS" ++ add= ++ { echo "$as_me:$LINENO: checking if $CC supports $RESTRICT_CFLAGS" >&5 ++echo $ECHO_N "checking if $CC supports $RESTRICT_CFLAGS... $ECHO_C" >&6; } ++if test "${ompi_cv_cc_restrict_cflags+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_cc_restrict_cflags="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cc_restrict_cflags="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cc_restrict_cflags" >&5 ++echo "${ECHO_T}$ompi_cv_cc_restrict_cflags" >&6; } ++ if test "$ompi_cv_cc_restrict_cflags" = "yes" ; then ++ add=" $RESTRICT_CFLAGS" ++ fi ++ ++ CFLAGS="${CFLAGS_orig}${add}" ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=CFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${CFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ if test "$add" != "" ; then ++ { echo "$as_me:$LINENO: WARNING: $add has been added to CFLAGS" >&5 ++echo "$as_me: WARNING: $add has been added to CFLAGS" >&2;} ++ fi ++ unset add ++ fi ++ ++ # see if the C compiler supports __builtin_expect ++ { echo "$as_me:$LINENO: checking if $CC supports __builtin_expect" >&5 ++echo $ECHO_N "checking if $CC supports __builtin_expect... $ECHO_C" >&6; } ++if test "${ompi_cv_cc_supports___builtin_expect+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++void *ptr = (void*) 0; ++ if (__builtin_expect (ptr != (void*) 0, 1)) return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_cc_supports___builtin_expect="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cc_supports___builtin_expect="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cc_supports___builtin_expect" >&5 ++echo "${ECHO_T}$ompi_cv_cc_supports___builtin_expect" >&6; } ++ if test "$ompi_cv_cc_supports___builtin_expect" = "yes" ; then ++ have_builtin_expect=1 ++ else ++ have_builtin_expect=0 ++ fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_C_HAVE_BUILTIN_EXPECT $have_builtin_expect ++_ACEOF ++ ++ ++ # see if the C compiler supports __builtin_prefetch ++ { echo "$as_me:$LINENO: checking if $CC supports __builtin_prefetch" >&5 ++echo $ECHO_N "checking if $CC supports __builtin_prefetch... $ECHO_C" >&6; } ++if test "${ompi_cv_cc_supports___builtin_prefetch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++int ptr; ++ __builtin_prefetch(&ptr,0,0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_cc_supports___builtin_prefetch="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cc_supports___builtin_prefetch="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cc_supports___builtin_prefetch" >&5 ++echo "${ECHO_T}$ompi_cv_cc_supports___builtin_prefetch" >&6; } ++ if test "$ompi_cv_cc_supports___builtin_prefetch" = "yes" ; then ++ have_builtin_prefetch=1 ++ else ++ have_builtin_prefetch=0 ++ fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_C_HAVE_BUILTIN_PREFETCH $have_builtin_prefetch ++_ACEOF ++ ++ ++ # Preload the optflags for the case where the user didn't specify ++ # any. If we're using GNU compilers, use -O3 (since it GNU ++ # doesn't require all compilation units to be compiled with the ++ # same level of optimization -- selecting a high level of ++ # optimization is not prohibitive). If we're using anything else, ++ # be conservative and just use -O. ++ # ++ # Note: gcc-impersonating compilers accept -O3 ++ if test "$WANT_DEBUG" = "1"; then ++ OPTFLAGS= ++ else ++ if test "$GCC" = yes; then ++ OPTFLAGS="-O3" ++ else ++ OPTFLAGS="-O" ++ fi ++ fi ++ ++ ++ ++# Modularize this setup so that sub-configure.in scripts can use this ++# same setup code. ++ ++################################## ++# Optimization flags ++################################## ++ ++# If the user did not specify optimization flags, add some (the value ++# from $OPTFLAGS) ++ ++co_arg=""$OMPI_CFLAGS_BEFORE_PICKY"" ++co_found=0 ++for co_word in $co_arg; do ++ # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs ++ # for an explanation of @<:@ and @:>@ -- they m4 expand to [ and ] ++ case $co_word in ++ -g) co_found=1 ;; ++ -g@<:@1-3@:>@) co_found=1 ;; ++ +K@<:@0-5@:>@) co_found=1 ;; ++ -O) co_found=1 ;; ++ -O@<:@0-9@:>@) co_found=1 ;; ++ -xO) co_found=1 ;; ++ -xO@<:@0-9@:>@) co_found=1 ;; ++ -fast) co_found=1 ;; ++ ++ # The below Sun Studio flags require or ++ # trigger -xO optimization ++ -xvector*) co_found=1 ;; ++ -xdepend=yes) co_found=1 ;; ++ ++ esac ++done ++ ++if test "$co_found" = "0"; then ++ co_result="$OPTFLAGS $co_arg" ++else ++ co_result="$co_arg" ++fi ++ ++# Clean up ++ ++unset co_found co_word co_arg ++ ++ OMPI_CFLAGS_BEFORE_PICKY="$co_result" ++ ++ { echo "$as_me:$LINENO: checking for C optimization flags" >&5 ++echo $ECHO_N "checking for C optimization flags... $ECHO_C" >&6; } ++ ++ ++# Modularize this setup so that sub-configure.in scripts can use this ++# same setup code. ++ ++################################## ++# Optimization flags ++################################## ++ ++# If the user did not specify optimization flags, add some (the value ++# from $OPTFLAGS) ++ ++co_arg=""$CFLAGS"" ++co_found=0 ++for co_word in $co_arg; do ++ # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs ++ # for an explanation of @<:@ and @:>@ -- they m4 expand to [ and ] ++ case $co_word in ++ -g) co_found=1 ;; ++ -g@<:@1-3@:>@) co_found=1 ;; ++ +K@<:@0-5@:>@) co_found=1 ;; ++ -O) co_found=1 ;; ++ -O@<:@0-9@:>@) co_found=1 ;; ++ -xO) co_found=1 ;; ++ -xO@<:@0-9@:>@) co_found=1 ;; ++ -fast) co_found=1 ;; ++ ++ # The below Sun Studio flags require or ++ # trigger -xO optimization ++ -xvector*) co_found=1 ;; ++ -xdepend=yes) co_found=1 ;; ++ ++ esac ++done ++ ++if test "$co_found" = "0"; then ++ co_result="$OPTFLAGS $co_arg" ++else ++ co_result="$co_arg" ++fi ++ ++# Clean up ++ ++unset co_found co_word co_arg ++ ++ { echo "$as_me:$LINENO: result: $co_result" >&5 ++echo "${ECHO_T}$co_result" >&6; } ++ CFLAGS="$co_result" ++ ++ CFLAGS_WITHOUT_OPTFLAGS="" ++ for co_word in $CFLAGS ; do ++ co_found=0 ++ # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs ++ # for an explanation of @<:@ and @:>@ -- they m4 expand to [ and ] ++ case $co_word in ++ +K@<:@0-5@:>@) co_found=1 ;; ++ -O) co_found=1 ;; ++ -O@<:@0-9@:>@) co_found=1 ;; ++ -xO) co_found=1 ;; ++ -xO@<:@0-9@:>@) co_found=1 ;; ++ -fast) co_found=1 ;; ++ ++ # The below Sun Studio flags require or ++ # trigger -xO optimization ++ -xvector*) co_found=1 ;; ++ -xdepend=yes) co_found=1 ;; ++ ++ esac ++ if test "$co_found" = "0" ; then ++ CFLAGS_WITHOUT_OPTFLAGS="$CFLAGS_WITHOUT_OPTFLAGS $co_word" ++ fi ++ done ++ ++ unset co_found co_word ++ ++ ++ ++ ++# If we build on a windows environment with the windows compiler and linker ++# then we need some translation functions from the opal/win32 directory. ++ if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then ++ OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE= ++ OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE='#' ++else ++ OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE='#' ++ OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE= ++fi ++ ++ ++# Do all Interix detections if necessary ++ ++ ++ { echo "$as_me:$LINENO: checking for Interix environment" >&5 ++echo $ECHO_N "checking for Interix environment... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++#if !defined(__INTERIX) ++ #error Normal Unix environment ++ #endif ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ is_interix=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ is_interix=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ { echo "$as_me:$LINENO: result: $is_interix" >&5 ++echo "${ECHO_T}$is_interix" >&6; } ++ if test "$is_interix" = "yes"; then ++ ++ ompi_show_subtitle "Interix detection" ++ ++ if ! test -d /usr/include/port; then ++ { echo "$as_me:$LINENO: WARNING: Compiling Open MPI under Interix require an up-to-date" >&5 ++echo "$as_me: WARNING: Compiling Open MPI under Interix require an up-to-date" >&2;} ++ { echo "$as_me:$LINENO: WARNING: version of libport. Please ask your system administrator" >&5 ++echo "$as_me: WARNING: version of libport. Please ask your system administrator" >&2;} ++ { echo "$as_me:$LINENO: WARNING: to install it (pkg_update -L libport)." >&5 ++echo "$as_me: WARNING: to install it (pkg_update -L libport)." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ # ++ # These are the minimum requirements for Interix ... ++ # ++ { echo "$as_me:$LINENO: WARNING: -lport was added to the linking flags" >&5 ++echo "$as_me: WARNING: -lport was added to the linking flags" >&2;} ++ LDFLAGS="-lport $LDFLAGS" ++ { echo "$as_me:$LINENO: WARNING: -D_ALL_SOURCE -D_USE_LIBPORT was added to the compilation flags" >&5 ++echo "$as_me: WARNING: -D_ALL_SOURCE -D_USE_LIBPORT was added to the compilation flags" >&2;} ++ CFLAGS="-D_ALL_SOURCE -D_USE_LIBPORT -I/usr/include/port $CFLAGS" ++ CPPFLAGS="-D_ALL_SOURCE -D_USE_LIBPORT -I/usr/include/port $CPPFLAGS" ++ CXXFLAGS="-D_ALL_SOURCE -D_USE_LIBPORT -I/usr/include/port $CXXFLAGS" ++ ++ fi ++ ++ ++ ++# Does the compiler support "ident"-like constructs? ++ ++ ++ { echo "$as_me:$LINENO: checking for C ident string support" >&5 ++echo $ECHO_N "checking for C ident string support... $ECHO_C" >&6; } ++ ++ ompi_pragma_ident_happy=0 ++ ompi_ident_happy=0 ++ ompi_static_const_char_happy=0 ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_ident_happy=1 ++ ompi_message="#pragma ident" ++else ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_ident_happy=1 ++ ompi_message="#ident" ++else ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_ident_happy=1 ++ ompi_message="#ident" ++else ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_ident_happy=1 ++ ompi_message="#ident" ++else ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CC_USE_PRAGMA_IDENT $ompi_pragma_ident_happy ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CC_USE_IDENT $ompi_ident_happy ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CC_USE_PRAGMA_COMMENT $ompi_pragma_comment_happy ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CC_USE_CONST_CHAR_IDENT $ompi_static_const_char_happy ++_ACEOF ++ ++ ++ { echo "$as_me:$LINENO: result: $ompi_message" >&5 ++echo "${ECHO_T}$ompi_message" >&6; } ++ ++ unset ompi_pragma_ident_happy ompi_ident_happy ompi_static_const_char_happy ompi_message ++ ++ ++# ++# Check for some types ++# ++ ++# On IRIX 5.3, sys/types and inttypes.h are conflicting. ++ ++ ++ ++ ++ ++ ++ ++ ++ ++for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ ++ inttypes.h stdint.h unistd.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ eval "$as_ac_Header=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_Header=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++ ++{ echo "$as_me:$LINENO: checking for long long" >&5 ++echo $ECHO_N "checking for long long... $ECHO_C" >&6; } ++if test "${ac_cv_type_long_long+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef long long ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_long_long=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_long_long=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 ++echo "${ECHO_T}$ac_cv_type_long_long" >&6; } ++if test $ac_cv_type_long_long = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_LONG_LONG 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for long double" >&5 ++echo $ECHO_N "checking for long double... $ECHO_C" >&6; } ++if test "${ac_cv_type_long_double+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef long double ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_long_double=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_long_double=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 ++echo "${ECHO_T}$ac_cv_type_long_double" >&6; } ++if test $ac_cv_type_long_double = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_LONG_DOUBLE 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for int8_t" >&5 ++echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_int8_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef int8_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_int8_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_int8_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 ++echo "${ECHO_T}$ac_cv_type_int8_t" >&6; } ++if test $ac_cv_type_int8_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_INT8_T 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for uint8_t" >&5 ++echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_uint8_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef uint8_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_uint8_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_uint8_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 ++echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; } ++if test $ac_cv_type_uint8_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_UINT8_T 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for int16_t" >&5 ++echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_int16_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef int16_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_int16_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_int16_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 ++echo "${ECHO_T}$ac_cv_type_int16_t" >&6; } ++if test $ac_cv_type_int16_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_INT16_T 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for uint16_t" >&5 ++echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_uint16_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef uint16_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_uint16_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_uint16_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 ++echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; } ++if test $ac_cv_type_uint16_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_UINT16_T 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for int32_t" >&5 ++echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_int32_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef int32_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_int32_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_int32_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 ++echo "${ECHO_T}$ac_cv_type_int32_t" >&6; } ++if test $ac_cv_type_int32_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_INT32_T 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for uint32_t" >&5 ++echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_uint32_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef uint32_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_uint32_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_uint32_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 ++echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; } ++if test $ac_cv_type_uint32_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_UINT32_T 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for int64_t" >&5 ++echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_int64_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef int64_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_int64_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_int64_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 ++echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } ++if test $ac_cv_type_int64_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_INT64_T 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for uint64_t" >&5 ++echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_uint64_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef uint64_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_uint64_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_uint64_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 ++echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } ++if test $ac_cv_type_uint64_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_UINT64_T 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for intptr_t" >&5 ++echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_intptr_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef intptr_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_intptr_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_intptr_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 ++echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; } ++if test $ac_cv_type_intptr_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_INTPTR_T 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for uintptr_t" >&5 ++echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_uintptr_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef uintptr_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_uintptr_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_uintptr_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 ++echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } ++if test $ac_cv_type_uintptr_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_UINTPTR_T 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for mode_t" >&5 ++echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_mode_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef mode_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_mode_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_mode_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 ++echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } ++if test $ac_cv_type_mode_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_MODE_T 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for ssize_t" >&5 ++echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_ssize_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef ssize_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_ssize_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_ssize_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 ++echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } ++if test $ac_cv_type_ssize_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_SSIZE_T 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 ++echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_ptrdiff_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef ptrdiff_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_ptrdiff_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_ptrdiff_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 ++echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } ++if test $ac_cv_type_ptrdiff_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_PTRDIFF_T 1 ++_ACEOF ++ ++ ++fi ++ ++ ++# ++# Check for type sizes ++# ++ ++{ echo "$as_me:$LINENO: checking for char" >&5 ++echo $ECHO_N "checking for char... $ECHO_C" >&6; } ++if test "${ac_cv_type_char+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef char ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_char=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_char=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 ++echo "${ECHO_T}$ac_cv_type_char" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of char" >&5 ++echo $ECHO_N "checking size of char... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_char+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef char ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef char ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef char ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef char ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef char ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_char=$ac_lo;; ++'') if test "$ac_cv_type_char" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (char) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_char=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef char ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_char=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_char" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (char) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_char=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_char" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_CHAR $ac_cv_sizeof_char ++_ACEOF ++ ++ ++{ echo "$as_me:$LINENO: checking for short" >&5 ++echo $ECHO_N "checking for short... $ECHO_C" >&6; } ++if test "${ac_cv_type_short+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef short ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_short=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_short=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 ++echo "${ECHO_T}$ac_cv_type_short" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of short" >&5 ++echo $ECHO_N "checking size of short... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_short+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef short ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef short ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef short ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef short ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef short ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_short=$ac_lo;; ++'') if test "$ac_cv_type_short" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (short) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_short=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef short ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_short=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_short" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (short) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_short=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_SHORT $ac_cv_sizeof_short ++_ACEOF ++ ++ ++{ echo "$as_me:$LINENO: checking for int" >&5 ++echo $ECHO_N "checking for int... $ECHO_C" >&6; } ++if test "${ac_cv_type_int+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef int ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_int=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_int=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 ++echo "${ECHO_T}$ac_cv_type_int" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of int" >&5 ++echo $ECHO_N "checking size of int... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_int+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef int ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef int ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef int ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef int ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef int ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_int=$ac_lo;; ++'') if test "$ac_cv_type_int" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (int) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_int=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef int ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_int=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_int" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (int) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_int=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_INT $ac_cv_sizeof_int ++_ACEOF ++ ++ ++{ echo "$as_me:$LINENO: checking for long" >&5 ++echo $ECHO_N "checking for long... $ECHO_C" >&6; } ++if test "${ac_cv_type_long+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef long ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_long=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_long=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 ++echo "${ECHO_T}$ac_cv_type_long" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of long" >&5 ++echo $ECHO_N "checking size of long... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_long+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_long=$ac_lo;; ++'') if test "$ac_cv_type_long" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (long) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_long=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_long=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_long" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (long) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_long=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_LONG $ac_cv_sizeof_long ++_ACEOF ++ ++ ++if test $ac_cv_type_long_long = yes; then ++ { echo "$as_me:$LINENO: checking for long long" >&5 ++echo $ECHO_N "checking for long long... $ECHO_C" >&6; } ++if test "${ac_cv_type_long_long+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef long long ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_long_long=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_long_long=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 ++echo "${ECHO_T}$ac_cv_type_long_long" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of long long" >&5 ++echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_long_long+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long long ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long long ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long long ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long long ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long long ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_long_long=$ac_lo;; ++'') if test "$ac_cv_type_long_long" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (long long) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_long_long=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long long ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_long_long=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_long_long" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (long long) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_long_long=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long ++_ACEOF ++ ++ ++fi ++if test $ac_cv_type_long_double = yes; then ++ { echo "$as_me:$LINENO: checking for long double" >&5 ++echo $ECHO_N "checking for long double... $ECHO_C" >&6; } ++if test "${ac_cv_type_long_double+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef long double ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_long_double=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_long_double=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 ++echo "${ECHO_T}$ac_cv_type_long_double" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of long double" >&5 ++echo $ECHO_N "checking size of long double... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_long_double+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long double ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long double ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long double ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long double ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long double ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_long_double=$ac_lo;; ++'') if test "$ac_cv_type_long_double" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (long double) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_long_double=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long double ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_long_double=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_long_double" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (long double) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_long_double=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double ++_ACEOF ++ ++ ++fi ++{ echo "$as_me:$LINENO: checking for float" >&5 ++echo $ECHO_N "checking for float... $ECHO_C" >&6; } ++if test "${ac_cv_type_float+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef float ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_float=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_float=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 ++echo "${ECHO_T}$ac_cv_type_float" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of float" >&5 ++echo $ECHO_N "checking size of float... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_float+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef float ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef float ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef float ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef float ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef float ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_float=$ac_lo;; ++'') if test "$ac_cv_type_float" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (float) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_float=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef float ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_float=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_float" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (float) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_float=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_float" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_FLOAT $ac_cv_sizeof_float ++_ACEOF ++ ++ ++{ echo "$as_me:$LINENO: checking for double" >&5 ++echo $ECHO_N "checking for double... $ECHO_C" >&6; } ++if test "${ac_cv_type_double+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef double ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_double=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_double=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 ++echo "${ECHO_T}$ac_cv_type_double" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of double" >&5 ++echo $ECHO_N "checking size of double... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_double+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef double ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef double ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef double ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef double ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef double ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_double=$ac_lo;; ++'') if test "$ac_cv_type_double" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (double) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_double=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef double ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_double=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_double" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (double) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_double=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_double" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_DOUBLE $ac_cv_sizeof_double ++_ACEOF ++ ++ ++{ echo "$as_me:$LINENO: checking for void *" >&5 ++echo $ECHO_N "checking for void *... $ECHO_C" >&6; } ++if test "${ac_cv_type_void_p+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef void * ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_void_p=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_void_p=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 ++echo "${ECHO_T}$ac_cv_type_void_p" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of void *" >&5 ++echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_void_p+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef void * ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef void * ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef void * ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef void * ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef void * ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_void_p=$ac_lo;; ++'') if test "$ac_cv_type_void_p" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (void *) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_void_p=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef void * ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_void_p=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_void_p" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (void *) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_void_p=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_VOID_P $ac_cv_sizeof_void_p ++_ACEOF ++ ++ ++{ echo "$as_me:$LINENO: checking for size_t" >&5 ++echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_size_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef size_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_size_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_size_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 ++echo "${ECHO_T}$ac_cv_type_size_t" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of size_t" >&5 ++echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_size_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef size_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef size_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef size_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef size_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef size_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_size_t=$ac_lo;; ++'') if test "$ac_cv_type_size_t" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (size_t) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_size_t=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef size_t ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_size_t=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_size_t" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (size_t) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_size_t=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t ++_ACEOF ++ ++ ++if test $ac_cv_type_ssize_t = yes ; then ++ { echo "$as_me:$LINENO: checking for ssize_t" >&5 ++echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_ssize_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef ssize_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_ssize_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_ssize_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 ++echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of ssize_t" >&5 ++echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_ssize_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef ssize_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef ssize_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef ssize_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef ssize_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef ssize_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_ssize_t=$ac_lo;; ++'') if test "$ac_cv_type_ssize_t" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (ssize_t) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_ssize_t=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef ssize_t ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_ssize_t=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_ssize_t" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (ssize_t) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_ssize_t=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t ++_ACEOF ++ ++ ++fi ++if test $ac_cv_type_ptrdiff_t = yes; then ++ { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 ++echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_ptrdiff_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef ptrdiff_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_ptrdiff_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_ptrdiff_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 ++echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5 ++echo $ECHO_N "checking size of ptrdiff_t... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef ptrdiff_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef ptrdiff_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef ptrdiff_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef ptrdiff_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef ptrdiff_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_ptrdiff_t=$ac_lo;; ++'') if test "$ac_cv_type_ptrdiff_t" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (ptrdiff_t) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_ptrdiff_t=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef ptrdiff_t ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_ptrdiff_t=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_ptrdiff_t" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (ptrdiff_t) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_ptrdiff_t=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_ptrdiff_t" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_ptrdiff_t" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t ++_ACEOF ++ ++ ++fi ++ ++# ++# Check for type alignments ++# ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of char" >&5 ++echo $ECHO_N "checking alignment of char... $ECHO_C" >&6; } ++if test "${ompi_cv_c_align_char+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # cross compile - do a non-executable test. Trick ++ # taken from the Autoconf 2.59c. Switch to using ++ # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; char y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; char y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; char y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; char y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; char y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ompi_cv_c_align_char=$ac_lo;; ++'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; char y; } ompi__type_alignof_; ++ ++static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); } ++static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) offsetof (ompi__type_alignof_, y)) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_char=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++ ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++struct foo { char c; char x; }; ++int main() ++{ ++ struct foo *p = (struct foo *) malloc(sizeof(struct foo)); ++ int diff; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ diff = ((char *)&p->x) - ((char *)&p->c); ++ fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_char=`cat conftestval` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_align_char" >&5 ++echo "${ECHO_T}$ompi_cv_c_align_char" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_CHAR $ompi_cv_c_align_char ++_ACEOF ++ ++eval "OMPI_ALIGNMENT_CHAR=$ompi_cv_c_align_char" ++ ++rm -rf conftest* ++ ++ { echo "$as_me:$LINENO: checking alignment of short" >&5 ++echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; } ++if test "${ompi_cv_c_align_short+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # cross compile - do a non-executable test. Trick ++ # taken from the Autoconf 2.59c. Switch to using ++ # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; short y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; short y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; short y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; short y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; short y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ompi_cv_c_align_short=$ac_lo;; ++'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; short y; } ompi__type_alignof_; ++ ++static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); } ++static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) offsetof (ompi__type_alignof_, y)) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_short=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++ ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++struct foo { char c; short x; }; ++int main() ++{ ++ struct foo *p = (struct foo *) malloc(sizeof(struct foo)); ++ int diff; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ diff = ((char *)&p->x) - ((char *)&p->c); ++ fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_short=`cat conftestval` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_align_short" >&5 ++echo "${ECHO_T}$ompi_cv_c_align_short" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_SHORT $ompi_cv_c_align_short ++_ACEOF ++ ++eval "OMPI_ALIGNMENT_SHORT=$ompi_cv_c_align_short" ++ ++rm -rf conftest* ++ ++ { echo "$as_me:$LINENO: checking alignment of wchar_t" >&5 ++echo $ECHO_N "checking alignment of wchar_t... $ECHO_C" >&6; } ++if test "${ompi_cv_c_align_wchar_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # cross compile - do a non-executable test. Trick ++ # taken from the Autoconf 2.59c. Switch to using ++ # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; wchar_t y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; wchar_t y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; wchar_t y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; wchar_t y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; wchar_t y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ompi_cv_c_align_wchar_t=$ac_lo;; ++'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; wchar_t y; } ompi__type_alignof_; ++ ++static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); } ++static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) offsetof (ompi__type_alignof_, y)) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_wchar_t=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++ ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++struct foo { char c; wchar_t x; }; ++int main() ++{ ++ struct foo *p = (struct foo *) malloc(sizeof(struct foo)); ++ int diff; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ diff = ((char *)&p->x) - ((char *)&p->c); ++ fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_wchar_t=`cat conftestval` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_align_wchar_t" >&5 ++echo "${ECHO_T}$ompi_cv_c_align_wchar_t" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_WCHAR $ompi_cv_c_align_wchar_t ++_ACEOF ++ ++eval "OMPI_ALIGNMENT_WCHAR=$ompi_cv_c_align_wchar_t" ++ ++rm -rf conftest* ++ ++ { echo "$as_me:$LINENO: checking alignment of int" >&5 ++echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; } ++if test "${ompi_cv_c_align_int+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # cross compile - do a non-executable test. Trick ++ # taken from the Autoconf 2.59c. Switch to using ++ # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; int y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; int y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; int y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; int y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; int y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ompi_cv_c_align_int=$ac_lo;; ++'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; int y; } ompi__type_alignof_; ++ ++static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); } ++static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) offsetof (ompi__type_alignof_, y)) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_int=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++ ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++struct foo { char c; int x; }; ++int main() ++{ ++ struct foo *p = (struct foo *) malloc(sizeof(struct foo)); ++ int diff; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ diff = ((char *)&p->x) - ((char *)&p->c); ++ fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_int=`cat conftestval` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_align_int" >&5 ++echo "${ECHO_T}$ompi_cv_c_align_int" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_INT $ompi_cv_c_align_int ++_ACEOF ++ ++eval "OMPI_ALIGNMENT_INT=$ompi_cv_c_align_int" ++ ++rm -rf conftest* ++ ++ { echo "$as_me:$LINENO: checking alignment of long" >&5 ++echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; } ++if test "${ompi_cv_c_align_long+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # cross compile - do a non-executable test. Trick ++ # taken from the Autoconf 2.59c. Switch to using ++ # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ompi_cv_c_align_long=$ac_lo;; ++'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long y; } ompi__type_alignof_; ++ ++static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); } ++static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) offsetof (ompi__type_alignof_, y)) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_long=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++ ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++struct foo { char c; long x; }; ++int main() ++{ ++ struct foo *p = (struct foo *) malloc(sizeof(struct foo)); ++ int diff; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ diff = ((char *)&p->x) - ((char *)&p->c); ++ fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_long=`cat conftestval` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_align_long" >&5 ++echo "${ECHO_T}$ompi_cv_c_align_long" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_LONG $ompi_cv_c_align_long ++_ACEOF ++ ++eval "OMPI_ALIGNMENT_LONG=$ompi_cv_c_align_long" ++ ++rm -rf conftest* ++if test $ac_cv_type_long_long = yes; then ++ ++ { echo "$as_me:$LINENO: checking alignment of long long" >&5 ++echo $ECHO_N "checking alignment of long long... $ECHO_C" >&6; } ++if test "${ompi_cv_c_align_long_long+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # cross compile - do a non-executable test. Trick ++ # taken from the Autoconf 2.59c. Switch to using ++ # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long long y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long long y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long long y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long long y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long long y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ompi_cv_c_align_long_long=$ac_lo;; ++'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long long y; } ompi__type_alignof_; ++ ++static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); } ++static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) offsetof (ompi__type_alignof_, y)) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_long_long=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++ ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++struct foo { char c; long long x; }; ++int main() ++{ ++ struct foo *p = (struct foo *) malloc(sizeof(struct foo)); ++ int diff; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ diff = ((char *)&p->x) - ((char *)&p->c); ++ fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_long_long=`cat conftestval` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_align_long_long" >&5 ++echo "${ECHO_T}$ompi_cv_c_align_long_long" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_LONG_LONG $ompi_cv_c_align_long_long ++_ACEOF ++ ++eval "OMPI_ALIGNMENT_LONG_LONG=$ompi_cv_c_align_long_long" ++ ++rm -rf conftest* ++fi ++ ++ { echo "$as_me:$LINENO: checking alignment of float" >&5 ++echo $ECHO_N "checking alignment of float... $ECHO_C" >&6; } ++if test "${ompi_cv_c_align_float+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # cross compile - do a non-executable test. Trick ++ # taken from the Autoconf 2.59c. Switch to using ++ # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; float y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; float y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; float y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; float y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; float y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ompi_cv_c_align_float=$ac_lo;; ++'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; float y; } ompi__type_alignof_; ++ ++static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); } ++static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) offsetof (ompi__type_alignof_, y)) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_float=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++ ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++struct foo { char c; float x; }; ++int main() ++{ ++ struct foo *p = (struct foo *) malloc(sizeof(struct foo)); ++ int diff; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ diff = ((char *)&p->x) - ((char *)&p->c); ++ fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_float=`cat conftestval` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_align_float" >&5 ++echo "${ECHO_T}$ompi_cv_c_align_float" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FLOAT $ompi_cv_c_align_float ++_ACEOF ++ ++eval "OMPI_ALIGNMENT_FLOAT=$ompi_cv_c_align_float" ++ ++rm -rf conftest* ++ ++ { echo "$as_me:$LINENO: checking alignment of double" >&5 ++echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; } ++if test "${ompi_cv_c_align_double+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # cross compile - do a non-executable test. Trick ++ # taken from the Autoconf 2.59c. Switch to using ++ # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; double y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; double y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; double y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; double y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; double y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ompi_cv_c_align_double=$ac_lo;; ++'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; double y; } ompi__type_alignof_; ++ ++static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); } ++static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) offsetof (ompi__type_alignof_, y)) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_double=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++ ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++struct foo { char c; double x; }; ++int main() ++{ ++ struct foo *p = (struct foo *) malloc(sizeof(struct foo)); ++ int diff; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ diff = ((char *)&p->x) - ((char *)&p->c); ++ fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_double=`cat conftestval` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_align_double" >&5 ++echo "${ECHO_T}$ompi_cv_c_align_double" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_DOUBLE $ompi_cv_c_align_double ++_ACEOF ++ ++eval "OMPI_ALIGNMENT_DOUBLE=$ompi_cv_c_align_double" ++ ++rm -rf conftest* ++if test $ac_cv_type_long_double = yes; then ++ ++ { echo "$as_me:$LINENO: checking alignment of long double" >&5 ++echo $ECHO_N "checking alignment of long double... $ECHO_C" >&6; } ++if test "${ompi_cv_c_align_long_double+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # cross compile - do a non-executable test. Trick ++ # taken from the Autoconf 2.59c. Switch to using ++ # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long double y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long double y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long double y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long double y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long double y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ompi_cv_c_align_long_double=$ac_lo;; ++'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long double y; } ompi__type_alignof_; ++ ++static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); } ++static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) offsetof (ompi__type_alignof_, y)) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_long_double=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++ ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++struct foo { char c; long double x; }; ++int main() ++{ ++ struct foo *p = (struct foo *) malloc(sizeof(struct foo)); ++ int diff; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ diff = ((char *)&p->x) - ((char *)&p->c); ++ fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_long_double=`cat conftestval` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_align_long_double" >&5 ++echo "${ECHO_T}$ompi_cv_c_align_long_double" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_LONG_DOUBLE $ompi_cv_c_align_long_double ++_ACEOF ++ ++eval "OMPI_ALIGNMENT_LONG_DOUBLE=$ompi_cv_c_align_long_double" ++ ++rm -rf conftest* ++fi ++ ++ { echo "$as_me:$LINENO: checking alignment of void *" >&5 ++echo $ECHO_N "checking alignment of void *... $ECHO_C" >&6; } ++if test "${ompi_cv_c_align_void_p+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # cross compile - do a non-executable test. Trick ++ # taken from the Autoconf 2.59c. Switch to using ++ # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; void * y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; void * y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; void * y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; void * y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; void * y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ompi_cv_c_align_void_p=$ac_lo;; ++'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; void * y; } ompi__type_alignof_; ++ ++static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); } ++static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) offsetof (ompi__type_alignof_, y)) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_void_p=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++ ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++struct foo { char c; void * x; }; ++int main() ++{ ++ struct foo *p = (struct foo *) malloc(sizeof(struct foo)); ++ int diff; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ diff = ((char *)&p->x) - ((char *)&p->c); ++ fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_void_p=`cat conftestval` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_align_void_p" >&5 ++echo "${ECHO_T}$ompi_cv_c_align_void_p" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_VOID_P $ompi_cv_c_align_void_p ++_ACEOF ++ ++eval "OMPI_ALIGNMENT_VOID_P=$ompi_cv_c_align_void_p" ++ ++rm -rf conftest* ++ ++# ++# Does the C compiler native support "bool"? (i.e., without ++# or any other help) ++# ++ ++{ echo "$as_me:$LINENO: checking for C bool type" >&5 ++echo $ECHO_N "checking for C bool type... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++$ac_includes_default ++int ++main () ++{ ++bool bar, foo = true; bar = foo; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ OMPI_NEED_C_BOOL=0 MSG=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ OMPI_NEED_C_BOOL=1 MSG=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_NEED_C_BOOL $OMPI_NEED_C_BOOL ++_ACEOF ++ ++{ echo "$as_me:$LINENO: result: $MSG" >&5 ++echo "${ECHO_T}$MSG" >&6; } ++ ++# ++# Check for other compiler characteristics ++# ++ ++if test "$GCC" = "yes"; then ++ ++ # gcc 2.96 will emit oodles of warnings if you use "inline" with ++ # -pedantic (which we do in developer builds). However, ++ # "__inline__" is ok. So we have to force gcc to select the ++ # right one. If you use -pedantic, the AC_C_INLINE test will fail ++ # (because it names a function foo() -- without the (void)). So ++ # we turn off all the picky flags, turn on -ansi mode (which is ++ # implied by -pedantic), and set warnings to be errors. Hence, ++ # this does the following (for 2.96): ++ # ++ # - causes the check for "inline" to emit a warning, which then ++ # fails ++ # - checks for __inline__, which then emits no error, and works ++ # ++ # This also works nicely for gcc 3.x because "inline" will work on ++ # the first check, and all is fine. :-) ++ ++ CFLAGS_save="$CFLAGS" ++ CFLAGS="$OMPI_CFLAGS_BEFORE_PICKY -Werror -ansi" ++fi ++{ echo "$as_me:$LINENO: checking for inline" >&5 ++echo $ECHO_N "checking for inline... $ECHO_C" >&6; } ++if test "${ac_cv_c_inline+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_c_inline=no ++for ac_kw in inline __inline__ __inline; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#ifndef __cplusplus ++typedef int foo_t; ++static $ac_kw foo_t static_foo () {return 0; } ++$ac_kw foo_t foo () {return 0; } ++#endif ++ ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_c_inline=$ac_kw ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ test "$ac_cv_c_inline" != no && break ++done ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 ++echo "${ECHO_T}$ac_cv_c_inline" >&6; } ++ ++ ++case $ac_cv_c_inline in ++ inline | yes) ;; ++ *) ++ case $ac_cv_c_inline in ++ no) ac_val=;; ++ *) ac_val=$ac_cv_c_inline;; ++ esac ++ cat >>confdefs.h <<_ACEOF ++#ifndef __cplusplus ++#define inline $ac_val ++#endif ++_ACEOF ++ ;; ++esac ++ ++# Microsoft compilers support 2 versions of restrict. One for functions, and ++# one for variables. The problem is that they don't have an equivalent ++# syntax, and the autoconf restrict detection is unable to detect them ++# correctly. It detect the restrict keyword as __restrict which break the ++# rules for function syntax which is declspec(restrict). ++if test "x$ompi_cv_c_compiler_vendor" != "xmicrosoft"; then ++ { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5 ++echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; } ++if test "${ac_cv_c_restrict+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_c_restrict=no ++ # Try the official restrict keyword, then gcc's __restrict, and ++ # the less common variants. ++ for ac_kw in restrict __restrict __restrict__ _Restrict; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++typedef int * int_ptr; ++ int foo (int_ptr $ac_kw ip) { ++ return ip[0]; ++ } ++int ++main () ++{ ++int s[1]; ++ int * $ac_kw t = s; ++ t[0] = 0; ++ return foo(t) ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_c_restrict=$ac_kw ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ test "$ac_cv_c_restrict" != no && break ++ done ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5 ++echo "${ECHO_T}$ac_cv_c_restrict" >&6; } ++ case $ac_cv_c_restrict in ++ restrict) ;; ++ no) ++cat >>confdefs.h <<\_ACEOF ++@%:@define restrict ++_ACEOF ++ ;; ++ *) cat >>confdefs.h <<_ACEOF ++@%:@define restrict $ac_cv_c_restrict ++_ACEOF ++ ;; ++ esac ++ ++fi ++ ++ { echo "$as_me:$LINENO: checking for weak symbol support" >&5 ++echo $ECHO_N "checking for weak symbol support... $ECHO_C" >&6; } ++if test "${ompi_cv_c_weak_symbols+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # need two files because icc will incorrectly not create the ++ # symbols if they are not used in the object file in which they ++ # are defined. Blah! ++ # To get to compile with icc, have them in a separate header. ++ cat > conftest_weak.h < conftest_weak.c < conftest.c <&5 ++$CC $CFLAGS -c conftest_weak.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS conftest.c conftest_weak.o -o conftest $LDFLAGS $LIBS" >&5 ++$CC $CFLAGS conftest.c conftest_weak.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_c_weak_symbols_happy=1 ++else ++ unset ompi_status ++ ompi_c_weak_symbols_happy=0 ++fi ++else ++ unset ompi_status ++ ompi_c_weak_symbols_happy=0 ++fi ++ ++ if test "$ompi_c_weak_symbols_happy" = "1"; then ++ ompi_cv_c_weak_symbols="yes" ++else ++ ompi_cv_c_weak_symbols="no" ++fi ++ ++ ++ unset ompi_c_weak_symbols_happy ++ rm -f conftest_weak.h conftest_weak.c conftest.c conftest ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_weak_symbols" >&5 ++echo "${ECHO_T}$ompi_cv_c_weak_symbols" >&6; } ++ ++ if test "$ompi_cv_c_weak_symbols" = "yes"; then ++ OMPI_C_HAVE_WEAK_SYMBOLS=1 ++else ++ OMPI_C_HAVE_WEAK_SYMBOLS=0 ++fi ++ ++ ++if test "$GCC" = "yes"; then ++ CFLAGS="$CFLAGS_save" ++fi ++ ++if test "x$CC" = "xicc"; then ++ ++{ echo "$as_me:$LINENO: checking whether icc-8.1 for EM64T works with variable arguments" >&5 ++echo $ECHO_N "checking whether icc-8.1 for EM64T works with variable arguments... $ECHO_C" >&6; } ++if test "$cross_compiling" = yes; then ++ ompi_ac_icc_varargs=1 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++ ++void func (int c, char * f, ...) ++{ ++ va_list arglist; ++ va_start (arglist, f); ++ /* vprintf (f, arglist); */ ++ va_end (arglist); ++} ++ ++int main () ++{ ++ FILE *f; ++ func (4711, "Help %d [%s]\n", 10, "ten"); ++ f=fopen ("conftestval", "w"); ++ if (!f) exit (1); ++ return 0; ++} ++ ++ ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_ac_icc_varargs=`test -f conftestval` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++ompi_ac_icc_varargs=1 ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ ++if test "$ompi_ac_icc_varargs" = "1"; then ++ { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Your icc-8.1 compiler seems to miscompile va_start!" >&5 ++echo "$as_me: WARNING: *** Your icc-8.1 compiler seems to miscompile va_start!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Please upgrade compiler to at least version 8.1.027" >&5 ++echo "$as_me: WARNING: *** Please upgrade compiler to at least version 8.1.027" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++{ echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++rm -rf conftest* ++fi ++ ++# If we want the profiling layer: ++# - If the C compiler has weak symbols, use those. ++# - If not, then set to compile the code again with #define's in a ++# separate directory. ++ ++if test "$WANT_WEAK_SYMBOLS" = "0"; then ++ OMPI_C_HAVE_WEAK_SYMBOLS=0 ++fi ++if test "$WANT_MPI_PROFILING" = "1"; then ++ if test "$OMPI_C_HAVE_WEAK_SYMBOLS" = "1"; then ++ OMPI_PROFILING_COMPILE_SEPARATELY=0 ++ else ++ OMPI_PROFILING_COMPILE_SEPARATELY=1 ++ fi ++else ++ OMPI_PROFILING_COMPILE_SEPARATELY=0 ++fi ++ ++# ++# There are 2 layers to the MPI Language binidings One layer generates ++# MPI_* bindings. The other layer generates PMPI_* bindings. The ++# following conditions determine whether each (or both) these layers ++# are built. ++# 1. MPI_* bindings are needed if: ++# - Profiling is not required ++# - Profiling is required but weak symbols are not ++# supported ++# 2. PMPI_* bindings are needed if profiling is required. Hence we ++# define 2 conditionals which tell us whether each of these layers ++# need to be built or NOT ++# ++ ++ if test "$WANT_MPI_PROFILING" = 0 -o "$OMPI_PROFILING_COMPILE_SEPARATELY" = 1; then ++ WANT_MPI_BINDINGS_LAYER_TRUE= ++ WANT_MPI_BINDINGS_LAYER_FALSE='#' ++else ++ WANT_MPI_BINDINGS_LAYER_TRUE='#' ++ WANT_MPI_BINDINGS_LAYER_FALSE= ++fi ++ ++ ++ if test "$WANT_MPI_PROFILING" = 1; then ++ WANT_PMPI_BINDINGS_LAYER_TRUE= ++ WANT_PMPI_BINDINGS_LAYER_FALSE='#' ++else ++ WANT_PMPI_BINDINGS_LAYER_TRUE='#' ++ WANT_PMPI_BINDINGS_LAYER_FALSE= ++fi ++ ++ if test "$OMPI_PROFILING_COMPILE_SEPARATELY" = 1; then ++ COMPILE_PROFILING_SEPARATELY_TRUE= ++ COMPILE_PROFILING_SEPARATELY_FALSE='#' ++else ++ COMPILE_PROFILING_SEPARATELY_TRUE='#' ++ COMPILE_PROFILING_SEPARATELY_FALSE= ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ENABLE_MPI_PROFILING $WANT_MPI_PROFILING ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_WEAK_SYMBOLS $OMPI_C_HAVE_WEAK_SYMBOLS ++_ACEOF ++ ++ ++ ++################################## ++# C++ compiler characteristics ++################################## ++ ++ ++ ompi_show_subtitle "C++ compiler and preprocessor" ++ ++ ++ ++ ompi_cxxflags_save="$CXXFLAGS" ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++if test -z "$CXX"; then ++ if test -n "$CCC"; then ++ CXX=$CCC ++ else ++ if test -n "$ac_tool_prefix"; then ++ for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC ++ do ++ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ++set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_CXX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$CXX"; then ++ ac_cv_prog_CXX="$CXX" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++CXX=$ac_cv_prog_CXX ++if test -n "$CXX"; then ++ { echo "$as_me:$LINENO: result: $CXX" >&5 ++echo "${ECHO_T}$CXX" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$CXX" && break ++ done ++fi ++if test -z "$CXX"; then ++ ac_ct_CXX=$CXX ++ for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_CXX"; then ++ ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_CXX="$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_CXX=$ac_cv_prog_ac_ct_CXX ++if test -n "$ac_ct_CXX"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 ++echo "${ECHO_T}$ac_ct_CXX" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$ac_ct_CXX" && break ++done ++ ++ if test "x$ac_ct_CXX" = x; then ++ CXX="g++" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ CXX=$ac_ct_CXX ++ fi ++fi ++ ++ fi ++fi ++# Provide some information about the compiler. ++echo "$as_me:$LINENO: checking for C++ compiler version" >&5 ++ac_compiler=`set X $ac_compile; echo $2` ++{ (ac_try="$ac_compiler --version >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler --version >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -v >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -v >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -V >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -V >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++ ++{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 ++echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } ++if test "${ac_cv_cxx_compiler_gnu+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++#ifndef __GNUC__ ++ choke me ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_compiler_gnu=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_compiler_gnu=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ac_cv_cxx_compiler_gnu=$ac_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 ++echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } ++GXX=`test $ac_compiler_gnu = yes && echo yes` ++ac_test_CXXFLAGS=${CXXFLAGS+set} ++ac_save_CXXFLAGS=$CXXFLAGS ++{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 ++echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } ++if test "${ac_cv_prog_cxx_g+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_save_cxx_werror_flag=$ac_cxx_werror_flag ++ ac_cxx_werror_flag=yes ++ ac_cv_prog_cxx_g=no ++ CXXFLAGS="-g" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_cxx_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ CXXFLAGS="" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ : ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cxx_werror_flag=$ac_save_cxx_werror_flag ++ CXXFLAGS="-g" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_cxx_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_cxx_werror_flag=$ac_save_cxx_werror_flag ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 ++echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } ++if test "$ac_test_CXXFLAGS" = set; then ++ CXXFLAGS=$ac_save_CXXFLAGS ++elif test $ac_cv_prog_cxx_g = yes; then ++ if test "$GXX" = yes; then ++ CXXFLAGS="-g -O2" ++ else ++ CXXFLAGS="-g" ++ fi ++else ++ if test "$GXX" = yes; then ++ CXXFLAGS="-O2" ++ else ++ CXXFLAGS= ++ fi ++fi ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++depcc="$CXX" am_compiler_list= ++ ++{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 ++echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } ++if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then ++ # We make a subdir and do the tests there. Otherwise we can end up ++ # making bogus files that we don't know about and never remove. For ++ # instance it was reported that on HP-UX the gcc test will end up ++ # making a dummy file named `D' -- because `-MD' means `put the output ++ # in D'. ++ mkdir conftest.dir ++ # Copy depcomp to subdir because otherwise we won't find it if we're ++ # using a relative directory. ++ cp "$am_depcomp" conftest.dir ++ cd conftest.dir ++ # We will build objects and dependencies in a subdirectory because ++ # it helps to detect inapplicable dependency modes. For instance ++ # both Tru64's cc and ICC support -MD to output dependencies as a ++ # side effect of compilation, but ICC will put the dependencies in ++ # the current directory while Tru64 will put them in the object ++ # directory. ++ mkdir sub ++ ++ am_cv_CXX_dependencies_compiler_type=none ++ if test "$am_compiler_list" = ""; then ++ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` ++ fi ++ for depmode in $am_compiler_list; do ++ # Setup a source with many dependencies, because some compilers ++ # like to wrap large dependency lists on column 80 (with \), and ++ # we should not choose a depcomp mode which is confused by this. ++ # ++ # We need to recreate these files for each test, as the compiler may ++ # overwrite some of them when testing with obscure command lines. ++ # This happens at least with the AIX C compiler. ++ : > sub/conftest.c ++ for i in 1 2 3 4 5 6; do ++ echo '#include "conftst'$i'.h"' >> sub/conftest.c ++ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with ++ # Solaris 8's {/usr,}/bin/sh. ++ touch sub/conftst$i.h ++ done ++ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf ++ ++ case $depmode in ++ nosideeffect) ++ # after this tag, mechanisms are not by side-effect, so they'll ++ # only be used when explicitly requested ++ if test "x$enable_dependency_tracking" = xyes; then ++ continue ++ else ++ break ++ fi ++ ;; ++ none) break ;; ++ esac ++ # We check with `-c' and `-o' for the sake of the "dashmstdout" ++ # mode. It turns out that the SunPro C++ compiler does not properly ++ # handle `-M -o', and we need to detect this. ++ if depmode=$depmode \ ++ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ ++ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ ++ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ ++ >/dev/null 2>conftest.err && ++ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ++ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then ++ # icc doesn't choke on unknown options, it will just issue warnings ++ # or remarks (even with -Werror). So we grep stderr for any message ++ # that says an option was ignored or not supported. ++ # When given -MP, icc 7.0 and 7.1 complain thusly: ++ # icc: Command line warning: ignoring option '-M'; no argument required ++ # The diagnosis changed in icc 8.0: ++ # icc: Command line remark: option '-MP' not supported ++ if (grep 'ignoring option' conftest.err || ++ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else ++ am_cv_CXX_dependencies_compiler_type=$depmode ++ break ++ fi ++ fi ++ done ++ ++ cd .. ++ rm -rf conftest.dir ++else ++ am_cv_CXX_dependencies_compiler_type=none ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 ++echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } ++CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type ++ ++ if ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then ++ am__fastdepCXX_TRUE= ++ am__fastdepCXX_FALSE='#' ++else ++ am__fastdepCXX_TRUE='#' ++ am__fastdepCXX_FALSE= ++fi ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 ++echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } ++if test -z "$CXXCPP"; then ++ if test "${ac_cv_prog_CXXCPP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Double quotes because CXXCPP needs to be expanded ++ for CXXCPP in "$CXX -E" "/lib/cpp" ++ do ++ ac_preproc_ok=false ++for ac_cxx_preproc_warn_flag in '' yes ++do ++ # Use a header file that comes with gcc, so configuring glibc ++ # with a fresh cross-compiler works. ++ # Prefer to if __STDC__ is defined, since ++ # exists even on freestanding compilers. ++ # On the NeXT, cc -E runs the code through the compiler's parser, ++ # not just through cpp. "Syntax error" is here to catch this case. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@ifdef __STDC__ ++@%:@ include ++@%:@else ++@%:@ include ++@%:@endif ++ Syntax error ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ : ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # Broken: fails on valid input. ++continue ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++ ++ # OK, works on sane cases. Now check whether nonexistent headers ++ # can be detected and how. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ # Broken: success on invalid input. ++continue ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # Passes both tests. ++ac_preproc_ok=: ++break ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++ ++done ++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ++rm -f conftest.err conftest.$ac_ext ++if $ac_preproc_ok; then ++ break ++fi ++ ++ done ++ ac_cv_prog_CXXCPP=$CXXCPP ++ ++fi ++ CXXCPP=$ac_cv_prog_CXXCPP ++else ++ ac_cv_prog_CXXCPP=$CXXCPP ++fi ++{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 ++echo "${ECHO_T}$CXXCPP" >&6; } ++ac_preproc_ok=false ++for ac_cxx_preproc_warn_flag in '' yes ++do ++ # Use a header file that comes with gcc, so configuring glibc ++ # with a fresh cross-compiler works. ++ # Prefer to if __STDC__ is defined, since ++ # exists even on freestanding compilers. ++ # On the NeXT, cc -E runs the code through the compiler's parser, ++ # not just through cpp. "Syntax error" is here to catch this case. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@ifdef __STDC__ ++@%:@ include ++@%:@else ++@%:@ include ++@%:@endif ++ Syntax error ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ : ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # Broken: fails on valid input. ++continue ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++ ++ # OK, works on sane cases. Now check whether nonexistent headers ++ # can be detected and how. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ # Broken: success on invalid input. ++continue ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # Passes both tests. ++ac_preproc_ok=: ++break ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++ ++done ++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ++rm -f conftest.err conftest.$ac_ext ++if $ac_preproc_ok; then ++ : ++else ++ { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check ++See \`config.log' for more details." >&5 ++echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check ++See \`config.log' for more details." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ BASECXX="`basename $CXX`" ++ CXXFLAGS="$ompi_cxxflags_save" ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CXX "$CXX" ++_ACEOF ++ ++ set dummy $CXX ++ ompi_cxx_argv0=$2 ++ ++# 1 is the variable name to do "which" on ++# 2 is the variable name to assign the return value to ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ompi_prog=$ompi_cxx_argv0 ++ ++IFS_SAVE=$IFS ++IFS="$PATH_SEPARATOR" ++for ompi_dir in $PATH; do ++ if test -x "$ompi_dir/$ompi_prog"; then ++ OMPI_CXX_ABSOLUTE="$ompi_dir/$ompi_prog" ++ break ++ fi ++done ++IFS=$IFS_SAVE ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for the C++ compiler vendor" >&5 ++echo $ECHO_N "checking for the C++ compiler vendor... $ECHO_C" >&6; } ++if test "${ompi_cv_cxx_compiler_vendor+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ ++ ompi_check_compiler_vendor_result="unknown" ++ ++ # GNU is probably the most common, so check that one as soon as ++ # possible. Intel pretends to be GNU, so need to check Intel ++ # before checking for GNU. ++ ++ # Intel ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__INTEL_COMPILER) || defined(__ICC) ) ++#error "condition defined(__INTEL_COMPILER) || defined(__ICC) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="intel" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # GNU ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __GNUC__ ++#error "symbol __GNUC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="gnu" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Borland Turbo C ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __TURBOC__ ++#error "symbol __TURBOC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="borland" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Borland C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __BORLANDC__ ++#error "symbol __BORLANDC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="borland" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Comeau C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __COMO__ ++#error "symbol __COMO__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="comeau" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Compaq C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__DECC) || defined(VAXC) || defined(__VAXC) ) ++#error "condition defined(__DECC) || defined(VAXC) || defined(__VAXC) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="compaq" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__osf__) && defined(__LANGUAGE_C__) ) ++#error "condition defined(__osf__) && defined(__LANGUAGE_C__) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="compaq" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __DECCXX ++#error "symbol __DECCXX not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="compaq" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Cray C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef _CRAYC ++#error "symbol _CRAYC not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="cray" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Diab C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __DCC__ ++#error "symbol __DCC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="diab" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Digital Mars ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__DMC__) || defined(__SC__) || defined(__ZTC__) ) ++#error "condition defined(__DMC__) || defined(__SC__) || defined(__ZTC__) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="digital mars" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # HP ANSI C / aC++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__HP_cc) || defined(__HP_aCC) ) ++#error "condition defined(__HP_cc) || defined(__HP_aCC) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="hp" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # IBM XL C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) ) ++#error "condition defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="ibm" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(_AIX) && !defined(__GNUC__) ) ++#error "condition defined(_AIX) && !defined(__GNUC__) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="ibm" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # KAI C++ (rest in peace) ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __KCC ++#error "symbol __KCC not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="kai" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # LCC ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __LCC__ ++#error "symbol __LCC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="lcc" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # MetaWare High C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __HIGHC__ ++#error "symbol __HIGHC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="metaware high" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Metrowerks Codewarrior ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __MWERKS__ ++#error "symbol __MWERKS__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="metrowerks" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # MIPSpro (SGI) ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(sgi) || defined(__sgi) ) ++#error "condition defined(sgi) || defined(__sgi) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="sgi" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # MPW C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) ) ++#error "condition defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="mpw" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Microsoft ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ # Always use C compiler when checking for Microsoft, as ++ # Visual C++ doesn't recognize .cc as a C++ file. ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(_MSC_VER) || defined(__MSC_VER) ) ++#error "condition defined(_MSC_VER) || defined(__MSC_VER) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="microsoft" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++fi ++ ++ ++ # Norcroft C ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __CC_NORCROFT ++#error "symbol __CC_NORCROFT not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="norcroft" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Pelles C ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __POCC__ ++#error "symbol __POCC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="pelles" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Portland Group ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __PGI ++#error "symbol __PGI not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="portland group" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # SAS/C ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(SASC) || defined(__SASC) || defined(__SASC__) ) ++#error "condition defined(SASC) || defined(__SASC) || defined(__SASC__) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="sas" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Sun Workshop C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__SUNPRO_C) || defined(__SUNPRO_CC) ) ++#error "condition defined(__SUNPRO_C) || defined(__SUNPRO_CC) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="sun" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # TenDRA C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __TenDRA__ ++#error "symbol __TenDRA__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="tendra" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Tiny C ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __TINYC__ ++#error "symbol __TINYC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="tiny" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # USL C ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __USLC__ ++#error "symbol __USLC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="usl" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Watcom C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __WATCOMC__ ++#error "symbol __WATCOMC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="watcom" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ ompi_cv_cxx_compiler_vendor="$ompi_check_compiler_vendor_result" ++ unset ompi_check_compiler_vendor_result ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cxx_compiler_vendor" >&5 ++echo "${ECHO_T}$ompi_cv_cxx_compiler_vendor" >&6; } ++ ++ ompi_cxx_vendor="$ompi_cv_c_compiler_vendor" ++ ++ ++ # Make sure that the C++ compiler both works and is actually a C++ ++ # compiler (if not cross-compiling). Don't just use the AC macro ++ # so that we can have a pretty message. Do something here that ++ # should force the linking of C++-specific things (e.g., STL ++ # strings) so that we can force a hard check of compiling, ++ # linking, and running a C++ application Note that some C ++ # compilers, such as at least some versions of the GNU and Intel ++ # compilers, will detect that the file extension is ".cc" and ++ # therefore switch into a pseudo-C++ personality which works for ++ # *compiling*, but does not work for *linking*. So in this test, ++ # we want to cover the entire spectrum (compiling, linking, ++ # running). ++ ++ if test "$ompi_cv_cxx_compiler_vendor" != "microsoft" ; then ++ ++ ++ { echo "$as_me:$LINENO: checking if C++ compiler works" >&5 ++echo $ECHO_N "checking if C++ compiler works... $ECHO_C" >&6; } ++if test "${ompi_cv_Cpp_works+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ if test "$cross_compiling" = yes; then ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++std::string foo = "Hello, world" ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_Cpp_works="links (cross compiling)" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_Cpp_works="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++std::string foo = "Hello, world" ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_Cpp_works="yes" ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++ompi_cv_Cpp_works="no" ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_Cpp_works" >&5 ++echo "${ECHO_T}$ompi_cv_Cpp_works" >&6; } ++ if test "$ompi_cv_Cpp_works" = "no"; then ++ cat <&2 ++********************************************************************** ++* It appears that your C++ compiler is unable to produce working ++* executables. A simple test application failed to properly ++* execute. Note that this is likely not a problem with Open MPI, ++* but a problem with the local compiler installation. More ++* information (including exactly what command was given to the ++* compiler and what error resulted when the command was executed) is ++* available in the config.log file in this directory. ++********************************************************************** ++EOF ++ { { echo "$as_me:$LINENO: error: Could not run a simple C++ program. Aborting." >&5 ++echo "$as_me: error: Could not run a simple C++ program. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ ++ fi ++ ++ ++ ++ ++ ++ ++ # Do we want code coverage ++ if test "$WANT_COVERAGE" = "1"; then ++ if test "$ompi_cxx_vendor" = "gnu" ; then ++ { echo "$as_me:$LINENO: WARNING: $OMPI_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&5 ++echo "$as_me: WARNING: $OMPI_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&2;} ++ WANT_DEBUG=1 ++ CXXFLAGS="${CXXFLAGS} $OMPI_COVERAGE_FLAGS" ++ WRAPPER_EXTRA_CXXFLAGS="${WRAPPER_EXTRA_CXXFLAGS} $OMPI_COVERAGE_FLAGS" ++ else ++ { echo "$as_me:$LINENO: WARNING: Code coverage functionality is currently available only with GCC suite" >&5 ++echo "$as_me: WARNING: Code coverage functionality is currently available only with GCC suite" >&2;} ++ { { echo "$as_me:$LINENO: error: Configure: cannot continue" >&5 ++echo "$as_me: error: Configure: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # Do we want debugging? ++ if test "$WANT_DEBUG" = "1" -a "$enable_debug_symbols" != "no" ; then ++ CXXFLAGS="$CXXFLAGS -g" ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=CXXFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${CXXFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ { echo "$as_me:$LINENO: WARNING: -g has been added to CXXFLAGS (--enable-debug)" >&5 ++echo "$as_me: WARNING: -g has been added to CXXFLAGS (--enable-debug)" >&2;} ++ fi ++ ++ # These flags are generally g++-specific; even the g++-impersonating ++ # compilers won't accept them. ++ OMPI_CXXFLAGS_BEFORE_PICKY="$CXXFLAGS" ++ if test "$WANT_PICKY_COMPILER" = 1 -a "$ompi_cxx_vendor" = "gnu"; then ++ add="-Wall -Wundef -Wno-long-long" ++ ++ # see if -Wno-long-double works... ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ CXXFLAGS_orig="$CXXFLAGS" ++ CXXFLAGS="$CXXFLAGS $add -Wno-long-double -fstrict-prototype" ++ { echo "$as_me:$LINENO: checking if $CXX supports -Wno-long-double" >&5 ++echo $ECHO_N "checking if $CXX supports -Wno-long-double... $ECHO_C" >&6; } ++if test "${ompi_cv_cxx_wno_long_double+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_cxx_wno_long_double="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cxx_wno_long_double="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cxx_wno_long_double" >&5 ++echo "${ECHO_T}$ompi_cv_cxx_wno_long_double" >&6; } ++ CXXFLAGS="$CXXFLAGS_orig" ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_cv_cxx_wno_long_double" = "yes" ; then ++ add="$add -Wno-long-double" ++ fi ++ ++ CXXFLAGS="$CXXFLAGS $add" ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=CXXFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${CXXFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ if test "$add" != "" ; then ++ { echo "$as_me:$LINENO: WARNING: $add has been added to CXXFLAGS (--enable-picky)" >&5 ++echo "$as_me: WARNING: $add has been added to CXXFLAGS (--enable-picky)" >&2;} ++ fi ++ unset add ++ fi ++ ++ # See if this version of g++ allows -finline-functions ++ if test "$GXX" = "yes"; then ++ CXXFLAGS_orig="$CXXFLAGS" ++ CXXFLAGS="$CXXFLAGS -finline-functions" ++ add= ++ { echo "$as_me:$LINENO: checking if $CXX supports -finline-functions" >&5 ++echo $ECHO_N "checking if $CXX supports -finline-functions... $ECHO_C" >&6; } ++if test "${ompi_cv_cxx_finline_functions+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_cxx_finline_functions="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cxx_finline_functions="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cxx_finline_functions" >&5 ++echo "${ECHO_T}$ompi_cv_cxx_finline_functions" >&6; } ++ if test "$ompi_cv_cxx_finline_functions" = "yes" ; then ++ add=" -finline-functions" ++ fi ++ CXXFLAGS="$CXXFLAGS_orig$add" ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=CXXFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${CXXFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ if test "$add" != "" ; then ++ { echo "$as_me:$LINENO: WARNING: $add has been added to CXXFLAGS" >&5 ++echo "$as_me: WARNING: $add has been added to CXXFLAGS" >&2;} ++ fi ++ unset add ++ fi ++ ++ # Check for special things due to C++ exceptions ++ ENABLE_CXX_EXCEPTIONS=no ++ HAVE_CXX_EXCEPTIONS=0 ++ # Check whether --enable-cxx-exceptions was given. ++if test "${enable_cxx_exceptions+set}" = set; then ++ enableval=$enable_cxx_exceptions; ENABLE_CXX_EXCEPTIONS="$enableval" ++fi ++ ++ ++ { echo "$as_me:$LINENO: checking if want C++ exception handling" >&5 ++echo $ECHO_N "checking if want C++ exception handling... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $ENABLE_CXX_EXCEPTIONS" >&5 ++echo "${ECHO_T}$ENABLE_CXX_EXCEPTIONS" >&6; } ++ if test "$ENABLE_CXX_EXCEPTIONS" = "yes"; then ++ # config/cxx_have_exceptions.m4 ++ ++# ++# Arguments: None ++# ++# Depdencies: None ++# ++# Check to see if the C++ compiler can handle exceptions ++# ++# Sets OMPI_CXX_EXCEPTIONS to 1 if compiler has exceptions, 0 if not ++# ++ ++{ echo "$as_me:$LINENO: checking for throw/catch" >&5 ++echo $ECHO_N "checking for throw/catch... $ECHO_C" >&6; } ++ ++ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++int i=1; throw(i); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ OMPI_CXX_EXCEPTIONS=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ OMPI_CXX_EXCPTIONS=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++if test "$OMPI_CXX_EXCEPTIONS" = "1"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++# Clean up ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ # config/cxx_find_exception_flags.m4 ++ ++# ++# Arguments: none ++# ++# Dependencies: none ++# ++# Get the exception handling flags for the C++ compiler. Leaves ++# CXXFLAGS undisturbed. ++# Provides --with-exflags command line argument for configure as well. ++# ++# Sets OMPI_CXX_EXCEPTION_CXXFLAGS and OMPI_CXX_EXCEPTION_LDFLAGS as ++# appropriate. ++# Must call AC_SUBST manually ++# ++ ++# Command line flags ++ ++ ++# Check whether --with-exflags was given. ++if test "${with_exflags+set}" = set; then ++ withval=$with_exflags; ompi_force_exflags="$withval" ++fi ++ ++ ++ompi_CXXFLAGS_SAVE="$CXXFLAGS" ++{ echo "$as_me:$LINENO: checking for compiler exception flags" >&5 ++echo $ECHO_N "checking for compiler exception flags... $ECHO_C" >&6; } ++ ++# See which flags to use ++ ++if test "$ompi_force_exflags" != ""; then ++ ++ # If the user supplied flags, use those ++ ++ ompi_exflags="$ompi_force_exflags" ++elif test "$GXX" = "yes"; then ++ ++ # g++ has changed their flags a few times. Sigh. ++ ++ CXXFLAGS="$CXXFLAGS -fexceptions" ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++try { int i = 0; } catch(...) { int j = 2; } ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_happy=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_happy=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ if test "$ompi_happy" = "1"; then ++ ompi_exflags="-fexceptions"; ++ else ++ CXXFLAGS="$CXXFLAGS_SAVE -fhandle-exceptions" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++try { int i = 0; } catch(...) { int j = 2; } ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_happy=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_happy=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_happy" = "1"; then ++ ompi_exflags="-fhandle-exceptions"; ++ fi ++ fi ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++elif test "`basename $CXX`" = "KCC"; then ++ ++ # KCC flags ++ ++ ompi_exflags="--exceptions" ++fi ++CXXFLAGS="$ompi_CXXFLAGS_SAVE" ++ ++# Save the result ++ ++OMPI_CXX_EXCEPTIONS_CXXFLAGS="$ompi_exflags" ++OMPI_CXX_EXCEPTIONS_LDFLAGS="$ompi_exflags" ++if test "$ompi_exflags" = ""; then ++ { echo "$as_me:$LINENO: result: none necessary" >&5 ++echo "${ECHO_T}none necessary" >&6; } ++else ++ { echo "$as_me:$LINENO: result: $ompi_exflags" >&5 ++echo "${ECHO_T}$ompi_exflags" >&6; } ++fi ++ ++# Clean up ++ ++unset ompi_force_exflags ompi_CXXFLAGS_SAVE ompi_exflags ompi_happy ++ if test "$OMPI_CXX_EXCEPTIONS" = "1"; then ++ HAVE_CXX_EXCEPTIONS=1 ++ ++ # Test to see if the C compiler likes these flags ++ { echo "$as_me:$LINENO: checking to see if C compiler likes the exception flags" >&5 ++echo $ECHO_N "checking to see if C compiler likes the exception flags... $ECHO_C" >&6; } ++ CFLAGS="$CFLAGS $OMPI_CXX_EXCEPTIONS_CXXFLAGS" ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++int i = 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: C++ exception flags are different between the C and C++ compilers; this configure script cannot currently handle this scenario. Either disable C++ exception support or send mail to the Open MPI users list." >&5 ++echo "$as_me: WARNING: C++ exception flags are different between the C and C++ compilers; this configure script cannot currently handle this scenario. Either disable C++ exception support or send mail to the Open MPI users list." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ # We can't test the F77 and F90 compilers now because we ++ # haven't found/set the up yet. So just save the flags ++ # and test them later (in ompi_setup_f77.m4 and ++ # ompi_setup_f90.m4). ++ ++ CXXFLAGS="$CXXFLAGS $OMPI_CXX_EXCEPTIONS_CXXFLAGS" ++ LDFLAGS="$LDFLAGS $OMPI_CXX_EXCEPTIONS_LDFLAGS" ++ ++ WRAPPER_EXTRA_CFLAGS="$OMPI_CXX_EXCEPTIONS_CXXFLAGS ${WRAPPER_EXTRA_CFLAGS}" ++ WRAPPER_EXTRA_FFLAGS="$OMPI_CXX_EXCEPTIONS_CXXFLAGS ${WRAPPER_EXTRA_FFLAGS}" ++ WRAPPER_EXTRA_FCFLAGS="$OMPI_CXX_EXCEPTIONS_CXXFLAGS ${WRAPPER_EXTRA_FCFLAGS}" ++ WRAPPER_EXTRA_CXXFLAGS="$OMPI_CXX_EXCEPTIONS_CXXFLAGS ${WRAPPER_EXTRA_CXXFLAGS}" ++ fi ++ fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_CXX_EXCEPTION_SUPPORT $HAVE_CXX_EXCEPTIONS ++_ACEOF ++ ++ ++ # Make sure we can link with the C compiler ++ if test "$ompi_cv_cxx_compiler_vendor" != "microsoft" ; then ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if C and C++ are link compatible" >&5 ++echo $ECHO_N "checking if C and C++ are link compatible... $ECHO_C" >&6; } ++if test "${ompi_cv_c_link_Cpp+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ testfunc_name="testfunc" ++ ++ # Write out C part ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ rm -f conftest_c.$ac_ext ++ cat > conftest_c.$ac_ext << EOF ++int $testfunc_name(int a); ++int $testfunc_name(int a) { return a; } ++EOF ++ ++ # Now compile both parts ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext" >&5 ++$CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ ompi_lang_link_with_c_libs="$LIBS" ++ LIBS="conftest_c.o $LIBS" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#if defined(c_plusplus) || defined(__cplusplus) ++extern "C" int testfunc(int); ++#else ++extern int testfunc(int); ++#endif ++ ++int ++main () ++{ ++return testfunc(0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_c_link_Cpp="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_c_link_Cpp="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LIBS="$ompi_lang_link_with_c_libs" ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++else ++ unset ompi_status ++ ompi_cv_c_link_Cpp="no" ++fi ++ rm -f conftest_c.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_link_Cpp" >&5 ++echo "${ECHO_T}$ompi_cv_c_link_Cpp" >&6; } ++ ++ if test "$ompi_cv_c_link_Cpp" = "yes"; then ++ : ++else ++ cat <&2 ++********************************************************************** ++* It appears that your C++ compiler is unable to link against object ++* files created by your C compiler. This generally indicates either ++* a conflict between the options specified in CFLAGS and CXXFLAGS ++* or a problem with the local compiler installation. More ++* information (including exactly what command was given to the ++* compilers and what error resulted when the commands were executed) is ++* available in the config.log file in this directory. ++********************************************************************** ++EOF ++ { { echo "$as_me:$LINENO: error: C and C++ compilers are not link compatible. Can not continue." >&5 ++echo "$as_me: error: C and C++ compilers are not link compatible. Can not continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ fi ++ ++ # Find some more characteristics of the C++ compiler ++ ++ # config/cxx_find_template_repository.m4 ++ ++ ++ ++ # ++ # Arguments: None ++ # ++ # Dependencies: None ++ # ++ # See if the compiler makes template repository directories ++ # Warning: this is a really screwy example! -JMS ++ # ++ # Sets OMPI_CXX_TEMPLATE_REPOSITORY to the template repository, or blank. ++ # Must call AC_SUBST manually ++ # ++ { echo "$as_me:$LINENO: checking for C++ template_repository_directory" >&5 ++echo $ECHO_N "checking for C++ template_repository_directory... $ECHO_C" >&6; } ++if test "${ompi_cv_cxx_template_repository+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++# Find the repository ++mkdir conf_tmp_$$ ++cd conf_tmp_$$ ++cat > conftest.h < ++class foo { ++public: ++ foo(T yow) : data(yow) { yow.member(3); }; ++ void member(int i); ++private: ++ T data; ++}; ++ ++class bar { ++public: ++ bar(int i) { data = i; }; ++ void member(int j) { data = data * j; }; ++ ++private: ++ int data; ++}; ++EOF ++ ++cat > conftest2.C < var1(6); ++ foo< foo > var2(var1); ++} ++EOF ++ ++cat > conftest1.C < ++void ++foo::member(int i) ++{ ++ i += 2; ++} ++ ++int ++main() ++{ ++ foo var1(6); ++ foo< foo > var2(var1); ++ ++ some_other_function(); ++ return 0; ++} ++EOF ++ ++ompi_template_failed= ++echo configure:__oline__: $CXX $CXXFLAGS -c conftest1.C >&5 ++$CXX $CXXFLAGS -c conftest1.C >&5 2>&5 ++if test ! -f conftest1.o ; then ++ ompi_cv_cxx_template_repository="templates not supported" ++ echo configure:__oline__: here is the program that failed: >&5 ++ cat conftest1.C >&5 ++ echo configure:__oline__: here is conftest.h: >&5 ++ cat conftest.h >&5 ++ ompi_template_failed=1 ++else ++ echo configure:__oline__: $CXX $CXXFLAGS -c conftest2.C >&5 ++ $CXX $CXXFLAGS -c conftest2.C >&5 2>&5 ++ if test ! -f conftest2.o ; then ++ ompi_cv_cxx_template_repository= ++ echo configure:__oline__: here is the program that failed: >&5 ++ cat conftest2.C >&5 ++ echo configure:__oline__: here is conftest.h: >&5 ++ cat conftest.h >&5 ++ else ++ rm -rf conftest* ++ ++ for ompi_file in `ls` ++ do ++ if test "$ompi_file" != "." -a "$ompi_file" != ".."; then ++ # Is it a directory? ++ if test -d "$ompi_file"; then ++ ompi_template_dir="$ompi_file $ompi_template_dir" ++ ++ # Or is it a file? ++ else ++ name="`echo $ompi_file | cut -d. -f1`" ++ ++ temp_mask= ++ if test "$name" = "main" -o "$name" = "other"; then ++ temp_mask="`echo $ompi_file | cut -d. -f2`" ++ if test "$ompi_template_filemask" = ""; then ++ ompi_template_filemask="$temp_mask"; ++ elif test "`echo $ompi_template_filemask | $GREP $temp_mask`" = ""; then ++ ompi_template_filemask="$ompi_template_filemask $temp_mask" ++ fi ++ fi ++ fi ++ fi ++ done ++ if test "$ompi_template_filemask" != ""; then ++ temp_mask= ++ for mask in $ompi_template_filemask ++ do ++ temp_mask="*.$mask $temp_mask" ++ done ++ ompi_template_filemask=$temp_mask ++ fi ++ fi ++fi ++ompi_cv_cxx_template_repository="$ompi_template_dir $ompi_template_filemask" ++ ++if test "`echo $ompi_cv_cxx_template_repository`" = ""; then ++ ompi_cv_cxx_template_repository="not used" ++fi ++cd .. ++rm -rf conf_tmp_$$ ++ ++# Clean up ++unset ompi_file ompi_template_failed ompi_template_dir ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cxx_template_repository" >&5 ++echo "${ECHO_T}$ompi_cv_cxx_template_repository" >&6; } ++ ++ if test "$ompi_cv_cxx_template_repository" = "not used" ; then ++ OMPI_CXX_TEMPLATE_REPOSITORY= ++ elif test "$ompi_cv_cxx_template_repository" = "templates not supported" ; then ++ OMPI_CXX_TEMPLATE_REPOSITORY= ++ else ++ OMPI_CXX_TEMPLATE_REPOSITORY="$ompi_cv_cxx_template_repository" ++ fi ++ ++ # config/cxx_find_template_parameters.m4 ++ ++# ++# Arguments: none ++# ++# Dependencies: None ++# ++# Get the C++ compiler template parameters. ++# ++# Adds to CXXFLAGS ++ ++{ echo "$as_me:$LINENO: checking for C++ compiler template parameters" >&5 ++echo $ECHO_N "checking for C++ compiler template parameters... $ECHO_C" >&6; } ++if test "$BASECXX" = "KCC"; then ++ new_flags="--one_instantiation_per_object" ++ CXXFLAGS="$CXXFLAGS $new_flags" ++else ++ new_flags="none needed" ++fi ++{ echo "$as_me:$LINENO: result: $new_flags" >&5 ++echo "${ECHO_T}$new_flags" >&6; } ++ ++# ++# Clean up ++# ++unset new_flags ++ ++ ++ # see if the C++ compiler supports __builtin_expect ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ { echo "$as_me:$LINENO: checking if $CXX supports __builtin_expect" >&5 ++echo $ECHO_N "checking if $CXX supports __builtin_expect... $ECHO_C" >&6; } ++if test "${ompi_cv_cxx_supports___builtin_expect+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++void *ptr = (void*) 0; ++ if (__builtin_expect (ptr != (void*) 0, 1)) return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_cxx_supports___builtin_expect="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cxx_supports___builtin_expect="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cxx_supports___builtin_expect" >&5 ++echo "${ECHO_T}$ompi_cv_cxx_supports___builtin_expect" >&6; } ++ if test "$ompi_cv_cxx_supports___builtin_expect" = "yes" ; then ++ have_builtin_expect=1 ++ else ++ have_builtin_expect=0 ++ fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CXX_HAVE_BUILTIN_EXPECT $have_builtin_expect ++_ACEOF ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ # see if the C compiler supports __builtin_prefetch ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ { echo "$as_me:$LINENO: checking if $CXX supports __builtin_prefetch" >&5 ++echo $ECHO_N "checking if $CXX supports __builtin_prefetch... $ECHO_C" >&6; } ++if test "${ompi_cv_cxx_supports___builtin_prefetch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++int ptr; ++ __builtin_prefetch(&ptr,0,0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_cxx_supports___builtin_prefetch="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cxx_supports___builtin_prefetch="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cxx_supports___builtin_prefetch" >&5 ++echo "${ECHO_T}$ompi_cv_cxx_supports___builtin_prefetch" >&6; } ++ if test "$ompi_cv_cxx_supports___builtin_prefetch" = "yes" ; then ++ have_builtin_prefetch=1 ++ else ++ have_builtin_prefetch=0 ++ fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CXX_HAVE_BUILTIN_PREFETCH $have_builtin_prefetch ++_ACEOF ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ # If we are on HP-UX, ensure that we're using aCC ++ case "$host" in ++ *hpux*) ++ if test "$BASECXX" = "CC"; then ++ { echo "$as_me:$LINENO: WARNING: *** You will probably have problems compiling the MPI 2" >&5 ++echo "$as_me: WARNING: *** You will probably have problems compiling the MPI 2" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** C++ bindings with the HP-UX CC compiler. You should" >&5 ++echo "$as_me: WARNING: *** C++ bindings with the HP-UX CC compiler. You should" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** probably be using the aCC compiler. Re-run configure" >&5 ++echo "$as_me: WARNING: *** probably be using the aCC compiler. Re-run configure" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** with the environment variable \"CXX=aCC\"." >&5 ++echo "$as_me: WARNING: *** with the environment variable \"CXX=aCC\"." >&2;} ++ fi ++ ;; ++ esac ++ ++ # see if the compiler supports const_cast of 2-dimensional arrays ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ { echo "$as_me:$LINENO: checking if $CXX supports const_cast<> properly" >&5 ++echo $ECHO_N "checking if $CXX supports const_cast<> properly... $ECHO_C" >&6; } ++if test "${ompi_cv_cxx_supports_2d_const_cast+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++int non_const_func(int ranges[][3]); ++int cast_test(const int ranges[][3]) { ++ return non_const_func(const_cast(ranges)); ++} ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_cxx_supports_2d_const_cast="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cxx_supports_2d_const_cast="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cxx_supports_2d_const_cast" >&5 ++echo "${ECHO_T}$ompi_cv_cxx_supports_2d_const_cast" >&6; } ++ if test "$ompi_cv_cxx_supports_2d_const_cast" = "yes" ; then ++ use_2d_const_cast=1 ++ else ++ use_2d_const_cast=0 ++ fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CXX_SUPPORTS_2D_CONST_CAST $use_2d_const_cast ++_ACEOF ++ ++ unset use_2d_const_cast ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ # Note: gcc-imperonating compilers accept -O3 ++ if test "$WANT_DEBUG" = "1"; then ++ OPTFLAGS= ++ else ++ if test "$GXX" = yes; then ++ OPTFLAGS="-O3" ++ else ++ OPTFLAGS="-O" ++ fi ++ fi ++ ++ # config/ompi_check_optflags.m4 ++ ++ ++# Modularize this setup so that sub-configure.in scripts can use this ++# same setup code. ++ ++################################## ++# Optimization flags ++################################## ++ ++# If the user did not specify optimization flags, add some (the value ++# from $OPTFLAGS) ++ ++co_arg=""$CXXFLAGS"" ++co_found=0 ++for co_word in $co_arg; do ++ # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs ++ # for an explanation of @<:@ and @:>@ -- they m4 expand to [ and ] ++ case $co_word in ++ -g) co_found=1 ;; ++ -g@<:@1-3@:>@) co_found=1 ;; ++ +K@<:@0-5@:>@) co_found=1 ;; ++ -O) co_found=1 ;; ++ -O@<:@0-9@:>@) co_found=1 ;; ++ -xO) co_found=1 ;; ++ -xO@<:@0-9@:>@) co_found=1 ;; ++ -fast) co_found=1 ;; ++ ++ # The below Sun Studio flags require or ++ # trigger -xO optimization ++ -xvector*) co_found=1 ;; ++ -xdepend=yes) co_found=1 ;; ++ ++ esac ++done ++ ++if test "$co_found" = "0"; then ++ co_result="$OPTFLAGS $co_arg" ++else ++ co_result="$co_arg" ++fi ++ ++# Clean up ++ ++unset co_found co_word co_arg ++ ++ { echo "$as_me:$LINENO: checking for C++ optimization flags" >&5 ++echo $ECHO_N "checking for C++ optimization flags... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $co_result" >&5 ++echo "${ECHO_T}$co_result" >&6; } ++ CXXFLAGS="$co_result" ++ ++ ++# Does the compiler support "ident"-like constructs? ++ ++ ++ { echo "$as_me:$LINENO: checking for C++ ident string support" >&5 ++echo $ECHO_N "checking for C++ ident string support... $ECHO_C" >&6; } ++ ++ ompi_pragma_ident_happy=0 ++ ompi_ident_happy=0 ++ ompi_static_const_char_happy=0 ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_ident_happy=1 ++ ompi_message="#pragma ident" ++else ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_ident_happy=1 ++ ompi_message="#ident" ++else ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_ident_happy=1 ++ ompi_message="#ident" ++else ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_ident_happy=1 ++ ompi_message="#ident" ++else ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CXX_USE_PRAGMA_IDENT $ompi_pragma_ident_happy ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CXX_USE_IDENT $ompi_ident_happy ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CXX_USE_PRAGMA_COMMENT $ompi_pragma_comment_happy ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CXX_USE_CONST_CHAR_IDENT $ompi_static_const_char_happy ++_ACEOF ++ ++ ++ { echo "$as_me:$LINENO: result: $ompi_message" >&5 ++echo "${ECHO_T}$ompi_message" >&6; } ++ ++ unset ompi_pragma_ident_happy ompi_ident_happy ompi_static_const_char_happy ompi_message ++ ++ ++# check for type sizes ++ ++ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++{ echo "$as_me:$LINENO: checking for bool" >&5 ++echo $ECHO_N "checking for bool... $ECHO_C" >&6; } ++if test "${ac_cv_type_bool+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef bool ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_bool=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_bool=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5 ++echo "${ECHO_T}$ac_cv_type_bool" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of bool" >&5 ++echo $ECHO_N "checking size of bool... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_bool+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef bool ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef bool ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef bool ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef bool ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef bool ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_bool=$ac_lo;; ++'') if test "$ac_cv_type_bool" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (bool) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (bool) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_bool=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef bool ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_bool=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_bool" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (bool) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (bool) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_bool=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_bool" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_bool" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_BOOL $ac_cv_sizeof_bool ++_ACEOF ++ ++ ++ ++# check for type alignments ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of bool" >&5 ++echo $ECHO_N "checking alignment of bool... $ECHO_C" >&6; } ++if test "${ompi_cv_c_align_bool+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # cross compile - do a non-executable test. Trick ++ # taken from the Autoconf 2.59c. Switch to using ++ # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; bool y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; bool y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; bool y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; bool y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; bool y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ompi_cv_c_align_bool=$ac_lo;; ++'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; bool y; } ompi__type_alignof_; ++ ++static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); } ++static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) offsetof (ompi__type_alignof_, y)) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_bool=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++ ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++struct foo { char c; bool x; }; ++int main() ++{ ++ struct foo *p = (struct foo *) malloc(sizeof(struct foo)); ++ int diff; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ diff = ((char *)&p->x) - ((char *)&p->c); ++ fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_bool=`cat conftestval` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_align_bool" >&5 ++echo "${ECHO_T}$ompi_cv_c_align_bool" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_CXX_BOOL $ompi_cv_c_align_bool ++_ACEOF ++ ++eval "OMPI_ALIGNMENT_CXX_BOOL=$ompi_cv_c_align_bool" ++ ++rm -rf conftest* ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++# check if we want C++ support ++ ++ if test "$WANT_MPI_CXX_SUPPORT" = 1; then ++ WANT_MPI_CXX_BINDINGS_TRUE= ++ WANT_MPI_CXX_BINDINGS_FALSE='#' ++else ++ WANT_MPI_CXX_BINDINGS_TRUE='#' ++ WANT_MPI_CXX_BINDINGS_FALSE= ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_WANT_CXX_BINDINGS $WANT_MPI_CXX_SUPPORT ++_ACEOF ++ ++ ++ ++################################## ++# Only after setting up both ++# C and C++ check compiler attributes. ++################################## ++ ++ { echo "$as_me:$LINENO: checking for __attribute__" >&5 ++echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; } ++ ++ if test "${ompi_cv___attribute__+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ /* Check for the longest available __attribute__ (since gcc-2.3) */ ++ struct foo { ++ char a; ++ int x[2] __attribute__ ((__packed__)); ++ }; ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ if test "$ompi_cv___attribute__" = "1" ; then ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ /* Check for the longest available __attribute__ (since gcc-2.3) */ ++ struct foo { ++ char a; ++ int x[2] __attribute__ ((__packed__)); ++ }; ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ fi ++ ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE $ompi_cv___attribute__ ++_ACEOF ++ ++ ++# ++# Now that we know the compiler support __attribute__ let's check which kind of ++# attributed are supported. ++# ++ if test "$ompi_cv___attribute__" = "0" ; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ompi_cv___attribute__aligned=0 ++ ompi_cv___attribute__always_inline=0 ++ ompi_cv___attribute__cold=0 ++ ompi_cv___attribute__const=0 ++ ompi_cv___attribute__deprecated=0 ++ ompi_cv___attribute__format=0 ++ ompi_cv___attribute__hot=0 ++ ompi_cv___attribute__malloc=0 ++ ompi_cv___attribute__may_alias=0 ++ ompi_cv___attribute__no_instrument_function=0 ++ ompi_cv___attribute__nonnull=0 ++ ompi_cv___attribute__noreturn=0 ++ ompi_cv___attribute__packed=0 ++ ompi_cv___attribute__pure=0 ++ ompi_cv___attribute__sentinel=0 ++ ompi_cv___attribute__unused=0 ++ ompi_cv___attribute__visibility=0 ++ ompi_cv___attribute__warn_unused_result=0 ++ ompi_cv___attribute__weak_alias=0 ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(aligned)" >&5 ++echo $ECHO_N "checking for __attribute__(aligned)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__aligned+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++struct foo { char text[4]; } __attribute__ ((__aligned__(8))); ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__aligned=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__aligned=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__aligned=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__aligned" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ struct foo { char text[4]; } __attribute__ ((__aligned__(8))); ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__aligned=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__aligned=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__aligned=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__aligned" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__aligned=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__aligned=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__aligned=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__aligned" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ # ++ # Ignored by PGI-6.2.5; -- recognized by output-parser ++ # ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(always_inline)" >&5 ++echo $ECHO_N "checking for __attribute__(always_inline)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__always_inline+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++int foo (int arg) __attribute__ ((__always_inline__)); ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__always_inline=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__always_inline=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__always_inline=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__always_inline" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ int foo (int arg) __attribute__ ((__always_inline__)); ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__always_inline=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__always_inline=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__always_inline=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__always_inline" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__always_inline=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__always_inline=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__always_inline=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__always_inline" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(cold)" >&5 ++echo $ECHO_N "checking for __attribute__(cold)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__cold+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ int foo(int arg1, int arg2) __attribute__ ((__cold__)); ++ int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__cold=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__cold=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__cold=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__cold" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ int foo(int arg1, int arg2) __attribute__ ((__cold__)); ++ int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__cold=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__cold=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__cold=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__cold" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__cold=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__cold=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__cold=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__cold" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(const)" >&5 ++echo $ECHO_N "checking for __attribute__(const)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__const+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ int foo(int arg1, int arg2) __attribute__ ((__const__)); ++ int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__const=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__const=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__const=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__const" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ int foo(int arg1, int arg2) __attribute__ ((__const__)); ++ int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__const=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__const=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__const=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__const" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__const=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__const=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__const=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__const" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(deprecated)" >&5 ++echo $ECHO_N "checking for __attribute__(deprecated)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__deprecated+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ int foo(int arg1, int arg2) __attribute__ ((__deprecated__)); ++ int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__deprecated=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__deprecated=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__deprecated=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__deprecated" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ int foo(int arg1, int arg2) __attribute__ ((__deprecated__)); ++ int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__deprecated=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__deprecated=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__deprecated=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__deprecated" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__deprecated=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__deprecated=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__deprecated=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__deprecated" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ ATTRIBUTE_CFLAGS= ++ case "$ompi_c_vendor" in ++ gnu) ++ ATTRIBUTE_CFLAGS="-Wall" ++ ;; ++ intel) ++ # we want specifically the warning on format string conversion ++ ATTRIBUTE_CFLAGS="-we181" ++ ;; ++ esac ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(format)" >&5 ++echo $ECHO_N "checking for __attribute__(format)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__format+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ int this_printf (void *my_object, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3))); ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__format=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__format=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__format=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__format" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ int this_printf (void *my_object, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3))); ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__format=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__format=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__format=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__format" = "1" -a " ++ static int usage (int * argument); ++ extern int this_printf (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3))); ++ ++ static int usage (int * argument) { ++ return this_printf (*argument, "%d", argument); /* This should produce a format warning */ ++ } ++ /* The autoconf-generated main-function is int main(), which produces a warning by itself */ ++ int main(void); ++ " != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS $ATTRIBUTE_CFLAGS" ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ static int usage (int * argument); ++ extern int this_printf (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3))); ++ ++ static int usage (int * argument) { ++ return this_printf (*argument, "%d", argument); /* This should produce a format warning */ ++ } ++ /* The autoconf-generated main-function is int main(), which produces a warning by itself */ ++ int main(void); ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__format=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__format=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__format=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__format" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(hot)" >&5 ++echo $ECHO_N "checking for __attribute__(hot)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__hot+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ int foo(int arg1, int arg2) __attribute__ ((__hot__)); ++ int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__hot=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__hot=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__hot=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__hot" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ int foo(int arg1, int arg2) __attribute__ ((__hot__)); ++ int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__hot=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__hot=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__hot=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__hot" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__hot=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__hot=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__hot=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__hot" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(malloc)" >&5 ++echo $ECHO_N "checking for __attribute__(malloc)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__malloc+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#ifdef HAVE_STDLIB_H ++# include ++#endif ++ int * foo(int arg1) __attribute__ ((__malloc__)); ++ int * foo(int arg1) { return (int*) malloc(arg1); } ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__malloc=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__malloc=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__malloc=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__malloc" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++#ifdef HAVE_STDLIB_H ++# include ++#endif ++ int * foo(int arg1) __attribute__ ((__malloc__)); ++ int * foo(int arg1) { return (int*) malloc(arg1); } ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__malloc=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__malloc=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__malloc=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__malloc" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__malloc=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__malloc=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__malloc=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__malloc" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ # ++ # Attribute may_alias: No suitable cross-check available, that works for non-supporting compilers ++ # Ignored by intel-9.1.045 -- turn off with -wd1292 ++ # Ignored by PGI-6.2.5; ignore not detected due to missing cross-check ++ # ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(may_alias)" >&5 ++echo $ECHO_N "checking for __attribute__(may_alias)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__may_alias+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++int * p_value __attribute__ ((__may_alias__)); ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__may_alias=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__may_alias=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__may_alias=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__may_alias" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ int * p_value __attribute__ ((__may_alias__)); ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__may_alias=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__may_alias=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__may_alias=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__may_alias" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__may_alias=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__may_alias=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__may_alias=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__may_alias" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(no_instrument_function)" >&5 ++echo $ECHO_N "checking for __attribute__(no_instrument_function)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__no_instrument_function+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++int * foo(int arg1) __attribute__ ((__no_instrument_function__)); ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__no_instrument_function=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__no_instrument_function=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__no_instrument_function=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__no_instrument_function" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ int * foo(int arg1) __attribute__ ((__no_instrument_function__)); ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__no_instrument_function=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__no_instrument_function=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__no_instrument_function=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__no_instrument_function" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__no_instrument_function=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__no_instrument_function=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__no_instrument_function=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__no_instrument_function" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ # ++ # Attribute nonnull: ++ # Ignored by intel-compiler 9.1.045 -- recognized by cross-check ++ # Ignored by PGI-6.2.5 (pgCC) -- recognized by cross-check ++ # ++ ATTRIBUTE_CFLAGS= ++ case "$ompi_c_vendor" in ++ gnu) ++ ATTRIBUTE_CFLAGS="-Wall" ++ ;; ++ intel) ++ # we do not want to get ignored attributes warnings, but rather real warnings ++ ATTRIBUTE_CFLAGS="-wd1292" ++ ;; ++ esac ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(nonnull)" >&5 ++echo $ECHO_N "checking for __attribute__(nonnull)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__nonnull+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ int square(int *arg) __attribute__ ((__nonnull__)); ++ int square(int *arg) { return *arg; } ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__nonnull=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__nonnull=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__nonnull=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__nonnull" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ int square(int *arg) __attribute__ ((__nonnull__)); ++ int square(int *arg) { return *arg; } ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__nonnull=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__nonnull=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__nonnull=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__nonnull" = "1" -a " ++ static int usage(int * argument); ++ int square(int * argument) __attribute__ ((__nonnull__)); ++ int square(int * argument) { return (*argument) * (*argument); } ++ ++ static int usage(int * argument) { ++ return square( ((void*)0) ); /* This should produce an argument must be nonnull warning */ ++ } ++ /* The autoconf-generated main-function is int main(), which produces a warning by itself */ ++ int main(void); ++ " != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS $ATTRIBUTE_CFLAGS" ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ static int usage(int * argument); ++ int square(int * argument) __attribute__ ((__nonnull__)); ++ int square(int * argument) { return (*argument) * (*argument); } ++ ++ static int usage(int * argument) { ++ return square( ((void*)0) ); /* This should produce an argument must be nonnull warning */ ++ } ++ /* The autoconf-generated main-function is int main(), which produces a warning by itself */ ++ int main(void); ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__nonnull=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__nonnull=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__nonnull=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__nonnull" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(noreturn)" >&5 ++echo $ECHO_N "checking for __attribute__(noreturn)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__noreturn+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#ifdef HAVE_UNISTD_H ++# include ++#endif ++#ifdef HAVE_STDLIB_H ++# include ++#endif ++ void fatal(int arg1) __attribute__ ((__noreturn__)); ++ void fatal(int arg1) { exit(arg1); } ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__noreturn=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__noreturn=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__noreturn=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__noreturn" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++#ifdef HAVE_UNISTD_H ++# include ++#endif ++#ifdef HAVE_STDLIB_H ++# include ++#endif ++ void fatal(int arg1) __attribute__ ((__noreturn__)); ++ void fatal(int arg1) { exit(arg1); } ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__noreturn=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__noreturn=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__noreturn=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__noreturn" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__noreturn=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__noreturn=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__noreturn=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__noreturn" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(packed)" >&5 ++echo $ECHO_N "checking for __attribute__(packed)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__packed+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ struct foo { ++ char a; ++ int x[2] __attribute__ ((__packed__)); ++ }; ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__packed=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__packed=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__packed=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__packed" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ struct foo { ++ char a; ++ int x[2] __attribute__ ((__packed__)); ++ }; ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__packed=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__packed=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__packed=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__packed" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__packed=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__packed=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__packed=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__packed" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(pure)" >&5 ++echo $ECHO_N "checking for __attribute__(pure)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__pure+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ int square(int arg) __attribute__ ((__pure__)); ++ int square(int arg) { return arg * arg; } ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__pure=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__pure=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__pure=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__pure" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ int square(int arg) __attribute__ ((__pure__)); ++ int square(int arg) { return arg * arg; } ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__pure=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__pure=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__pure=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__pure" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__pure=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__pure=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__pure=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__pure" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ # ++ # Attribute sentinel: ++ # Ignored by the intel-9.1.045 -- recognized by cross-check ++ # intel-10.0beta works fine ++ # Ignored by PGI-6.2.5 (pgCC) -- recognized by output-parser and cross-check ++ # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore) ++ # ++ ATTRIBUTE_CFLAGS= ++ case "$ompi_c_vendor" in ++ gnu) ++ ATTRIBUTE_CFLAGS="-Wall" ++ ;; ++ intel) ++ # we do not want to get ignored attributes warnings ++ ATTRIBUTE_CFLAGS="-wd1292" ++ ;; ++ esac ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(sentinel)" >&5 ++echo $ECHO_N "checking for __attribute__(sentinel)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__sentinel+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__)); ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__sentinel=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__sentinel=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__sentinel=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__sentinel" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__)); ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__sentinel=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__sentinel=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__sentinel=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__sentinel" = "1" -a " ++ static int usage(int * argument); ++ int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__)); ++ ++ static int usage(int * argument) { ++ void * last_arg_should_be_null = argument; ++ return my_execlp ("lala", "/home/there", last_arg_should_be_null); /* This should produce a warning */ ++ } ++ /* The autoconf-generated main-function is int main(), which produces a warning by itself */ ++ int main(void); ++ " != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS $ATTRIBUTE_CFLAGS" ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ static int usage(int * argument); ++ int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__)); ++ ++ static int usage(int * argument) { ++ void * last_arg_should_be_null = argument; ++ return my_execlp ("lala", "/home/there", last_arg_should_be_null); /* This should produce a warning */ ++ } ++ /* The autoconf-generated main-function is int main(), which produces a warning by itself */ ++ int main(void); ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__sentinel=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__sentinel=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__sentinel=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__sentinel" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(unused)" >&5 ++echo $ECHO_N "checking for __attribute__(unused)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__unused+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ int square(int arg1 __attribute__ ((__unused__)), int arg2); ++ int square(int arg1, int arg2) { return arg2; } ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__unused=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__unused=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__unused=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__unused" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ int square(int arg1 __attribute__ ((__unused__)), int arg2); ++ int square(int arg1, int arg2) { return arg2; } ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__unused=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__unused=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__unused=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__unused" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__unused=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__unused=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__unused=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__unused" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ # ++ # Ignored by PGI-6.2.5 (pgCC) -- recognized by the output-parser ++ # ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(visibility)" >&5 ++echo $ECHO_N "checking for __attribute__(visibility)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__visibility+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ int square(int arg1) __attribute__ ((__visibility__("hidden"))); ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__visibility=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__visibility=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__visibility=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__visibility" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ int square(int arg1) __attribute__ ((__visibility__("hidden"))); ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__visibility=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__visibility=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__visibility=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__visibility" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__visibility=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__visibility=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__visibility=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__visibility" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ # ++ # Attribute warn_unused_result: ++ # Ignored by the intel-compiler 9.1.045 -- recognized by cross-check ++ # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore) ++ # ++ ATTRIBUTE_CFLAGS= ++ case "$ompi_c_vendor" in ++ gnu) ++ ATTRIBUTE_CFLAGS="-Wall" ++ ;; ++ intel) ++ # we do not want to get ignored attributes warnings ++ ATTRIBUTE_CFLAGS="-wd1292" ++ ;; ++ esac ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(warn_unused_result)" >&5 ++echo $ECHO_N "checking for __attribute__(warn_unused_result)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__warn_unused_result+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ int foo(int arg) __attribute__ ((__warn_unused_result__)); ++ int foo(int arg) { return arg + 3; } ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__warn_unused_result=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__warn_unused_result=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__warn_unused_result=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__warn_unused_result" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ int foo(int arg) __attribute__ ((__warn_unused_result__)); ++ int foo(int arg) { return arg + 3; } ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__warn_unused_result=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__warn_unused_result=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__warn_unused_result=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__warn_unused_result" = "1" -a " ++ static int usage(int * argument); ++ int foo(int arg) __attribute__ ((__warn_unused_result__)); ++ ++ int foo(int arg) { return arg + 3; } ++ static int usage(int * argument) { ++ foo (*argument); /* Should produce an unused result warning */ ++ return 0; ++ } ++ ++ /* The autoconf-generated main-function is int main(), which produces a warning by itself */ ++ int main(void); ++ " != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS $ATTRIBUTE_CFLAGS" ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ static int usage(int * argument); ++ int foo(int arg) __attribute__ ((__warn_unused_result__)); ++ ++ int foo(int arg) { return arg + 3; } ++ static int usage(int * argument) { ++ foo (*argument); /* Should produce an unused result warning */ ++ return 0; ++ } ++ ++ /* The autoconf-generated main-function is int main(), which produces a warning by itself */ ++ int main(void); ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__warn_unused_result=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__warn_unused_result=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__warn_unused_result=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__warn_unused_result" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(weak_alias)" >&5 ++echo $ECHO_N "checking for __attribute__(weak_alias)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__weak_alias+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ int foo(int arg); ++ int foo(int arg) { return arg + 3; } ++ int foo2(int arg) __attribute__ ((__weak__, __alias__("foo"))); ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__weak_alias=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__weak_alias=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__weak_alias=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__weak_alias" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ int foo(int arg); ++ int foo(int arg) { return arg + 3; } ++ int foo2(int arg) __attribute__ ((__weak__, __alias__("foo"))); ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__weak_alias=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__weak_alias=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__weak_alias=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__weak_alias" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__weak_alias=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__weak_alias=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__weak_alias=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__weak_alias" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ fi ++ ++ # Now that all the values are set, define them ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_ALIGNED $ompi_cv___attribute__aligned ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_ALWAYS_INLINE $ompi_cv___attribute__always_inline ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_COLD $ompi_cv___attribute__cold ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_CONST $ompi_cv___attribute__const ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_DEPRECATED $ompi_cv___attribute__deprecated ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_FORMAT $ompi_cv___attribute__format ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_HOT $ompi_cv___attribute__hot ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_MALLOC $ompi_cv___attribute__malloc ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_MAY_ALIAS $ompi_cv___attribute__may_alias ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_NO_INSTRUMENT_FUNCTION $ompi_cv___attribute__no_instrument_function ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_NONNULL $ompi_cv___attribute__nonnull ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_NORETURN $ompi_cv___attribute__noreturn ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_PACKED $ompi_cv___attribute__packed ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_PURE $ompi_cv___attribute__pure ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_SENTINEL $ompi_cv___attribute__sentinel ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_UNUSED $ompi_cv___attribute__unused ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_VISIBILITY $ompi_cv___attribute__visibility ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT $ompi_cv___attribute__warn_unused_result ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_WEAK_ALIAS $ompi_cv___attribute__weak_alias ++_ACEOF ++ ++ ++ ++ ++################################## ++# Assembler Configuration ++################################## ++ ++ompi_show_subtitle "Assembler" ++ ++# By default we simply use the C compiler to build assembly code. ++ ++test "${CCAS+set}" = set || CCAS=$CC ++test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS ++ ++ ++ ++depcc="$CCAS" am_compiler_list= ++ ++{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 ++echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } ++if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then ++ # We make a subdir and do the tests there. Otherwise we can end up ++ # making bogus files that we don't know about and never remove. For ++ # instance it was reported that on HP-UX the gcc test will end up ++ # making a dummy file named `D' -- because `-MD' means `put the output ++ # in D'. ++ mkdir conftest.dir ++ # Copy depcomp to subdir because otherwise we won't find it if we're ++ # using a relative directory. ++ cp "$am_depcomp" conftest.dir ++ cd conftest.dir ++ # We will build objects and dependencies in a subdirectory because ++ # it helps to detect inapplicable dependency modes. For instance ++ # both Tru64's cc and ICC support -MD to output dependencies as a ++ # side effect of compilation, but ICC will put the dependencies in ++ # the current directory while Tru64 will put them in the object ++ # directory. ++ mkdir sub ++ ++ am_cv_CCAS_dependencies_compiler_type=none ++ if test "$am_compiler_list" = ""; then ++ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` ++ fi ++ for depmode in $am_compiler_list; do ++ # Setup a source with many dependencies, because some compilers ++ # like to wrap large dependency lists on column 80 (with \), and ++ # we should not choose a depcomp mode which is confused by this. ++ # ++ # We need to recreate these files for each test, as the compiler may ++ # overwrite some of them when testing with obscure command lines. ++ # This happens at least with the AIX C compiler. ++ : > sub/conftest.c ++ for i in 1 2 3 4 5 6; do ++ echo '#include "conftst'$i'.h"' >> sub/conftest.c ++ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with ++ # Solaris 8's {/usr,}/bin/sh. ++ touch sub/conftst$i.h ++ done ++ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf ++ ++ case $depmode in ++ nosideeffect) ++ # after this tag, mechanisms are not by side-effect, so they'll ++ # only be used when explicitly requested ++ if test "x$enable_dependency_tracking" = xyes; then ++ continue ++ else ++ break ++ fi ++ ;; ++ none) break ;; ++ esac ++ # We check with `-c' and `-o' for the sake of the "dashmstdout" ++ # mode. It turns out that the SunPro C++ compiler does not properly ++ # handle `-M -o', and we need to detect this. ++ if depmode=$depmode \ ++ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ ++ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ ++ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ ++ >/dev/null 2>conftest.err && ++ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ++ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then ++ # icc doesn't choke on unknown options, it will just issue warnings ++ # or remarks (even with -Werror). So we grep stderr for any message ++ # that says an option was ignored or not supported. ++ # When given -MP, icc 7.0 and 7.1 complain thusly: ++ # icc: Command line warning: ignoring option '-M'; no argument required ++ # The diagnosis changed in icc 8.0: ++ # icc: Command line remark: option '-MP' not supported ++ if (grep 'ignoring option' conftest.err || ++ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else ++ am_cv_CCAS_dependencies_compiler_type=$depmode ++ break ++ fi ++ fi ++ done ++ ++ cd .. ++ rm -rf conftest.dir ++else ++ am_cv_CCAS_dependencies_compiler_type=none ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5 ++echo "${ECHO_T}$am_cv_CCAS_dependencies_compiler_type" >&6; } ++CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type ++ ++ if ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then ++ am__fastdepCCAS_TRUE= ++ am__fastdepCCAS_FALSE='#' ++else ++ am__fastdepCCAS_TRUE='#' ++ am__fastdepCCAS_FALSE= ++fi ++ ++ ++{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 ++echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; } ++if test "${lt_cv_path_NM+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$NM"; then ++ # Let the user override the test. ++ lt_cv_path_NM="$NM" ++else ++ lt_nm_to_check="${ac_tool_prefix}nm" ++ if test -n "$ac_tool_prefix" && test "$build" = "$host"; then ++ lt_nm_to_check="$lt_nm_to_check nm" ++ fi ++ for lt_tmp_nm in $lt_nm_to_check; do ++ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ++ for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do ++ IFS="$lt_save_ifs" ++ test -z "$ac_dir" && ac_dir=. ++ tmp_nm="$ac_dir/$lt_tmp_nm" ++ if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then ++ # Check to see if the nm accepts a BSD-compat flag. ++ # Adding the `sed 1q' prevents false positives on HP-UX, which says: ++ # nm: unknown option "B" ignored ++ # Tru64's nm complains that /dev/null is an invalid object file ++ case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in ++ */dev/null* | *'Invalid file or object type'*) ++ lt_cv_path_NM="$tmp_nm -B" ++ break ++ ;; ++ *) ++ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in ++ */dev/null*) ++ lt_cv_path_NM="$tmp_nm -p" ++ break ++ ;; ++ *) ++ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but ++ continue # so that we can try to find one that supports BSD flags ++ ;; ++ esac ++ ;; ++ esac ++ fi ++ done ++ IFS="$lt_save_ifs" ++ done ++ : ${lt_cv_path_NM=no} ++fi ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 ++echo "${ECHO_T}$lt_cv_path_NM" >&6; } ++if test "$lt_cv_path_NM" != "no"; then ++ NM="$lt_cv_path_NM" ++else ++ # Didn't find any BSD compatible name lister, look for dumpbin. ++ if test -n "$ac_tool_prefix"; then ++ for ac_prog in "dumpbin -symbols" "link -dump -symbols" ++ do ++ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ++set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_DUMPBIN+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$DUMPBIN"; then ++ ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++DUMPBIN=$ac_cv_prog_DUMPBIN ++if test -n "$DUMPBIN"; then ++ { echo "$as_me:$LINENO: result: $DUMPBIN" >&5 ++echo "${ECHO_T}$DUMPBIN" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$DUMPBIN" && break ++ done ++fi ++if test -z "$DUMPBIN"; then ++ ac_ct_DUMPBIN=$DUMPBIN ++ for ac_prog in "dumpbin -symbols" "link -dump -symbols" ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_DUMPBIN"; then ++ ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN ++if test -n "$ac_ct_DUMPBIN"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 ++echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$ac_ct_DUMPBIN" && break ++done ++ ++ if test "x$ac_ct_DUMPBIN" = x; then ++ DUMPBIN=":" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ DUMPBIN=$ac_ct_DUMPBIN ++ fi ++fi ++ ++ ++ if test "$DUMPBIN" != ":"; then ++ NM="$DUMPBIN" ++ fi ++fi ++test -z "$NM" && NM=nm ++ ++ ++ ++ ++ ++ ++{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 ++echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; } ++if test "${lt_cv_nm_interface+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_nm_interface="BSD nm" ++ echo "int some_variable = 0;" > conftest.$ac_ext ++ (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&5) ++ (eval "$ac_compile" 2>conftest.err) ++ cat conftest.err >&5 ++ (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&5) ++ (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) ++ cat conftest.err >&5 ++ (eval echo "\"\$as_me:__oline__: output\"" >&5) ++ cat conftest.out >&5 ++ if $GREP 'External.*some_variable' conftest.out > /dev/null; then ++ lt_cv_nm_interface="MS dumpbin" ++ fi ++ rm -f conftest* ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 ++echo "${ECHO_T}$lt_cv_nm_interface" >&6; } ++ ++{ echo "$as_me:$LINENO: checking for fgrep" >&5 ++echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; } ++if test "${ac_cv_path_FGREP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 ++ then ac_cv_path_FGREP="$GREP -F" ++ else ++ # Extract the first word of "fgrep" to use in msg output ++if test -z "$FGREP"; then ++set dummy fgrep; ac_prog_name=$2 ++if test "${ac_cv_path_FGREP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_path_FGREP_found=false ++# Loop through the user's path and test for each of PROGNAME-LIST ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_prog in fgrep; do ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" ++ { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue ++ # Check for GNU ac_path_FGREP and select it if it is found. ++ # Check for GNU $ac_path_FGREP ++case `"$ac_path_FGREP" --version 2>&1` in ++*GNU*) ++ ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; ++*) ++ ac_count=0 ++ echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" ++ while : ++ do ++ cat "conftest.in" "conftest.in" >"conftest.tmp" ++ mv "conftest.tmp" "conftest.in" ++ cp "conftest.in" "conftest.nl" ++ echo 'FGREP' >> "conftest.nl" ++ "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break ++ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ++ ac_count=`expr $ac_count + 1` ++ if test $ac_count -gt ${ac_path_FGREP_max-0}; then ++ # Best one so far, save it but keep looking for a better one ++ ac_cv_path_FGREP="$ac_path_FGREP" ++ ac_path_FGREP_max=$ac_count ++ fi ++ # 10*(2^10) chars as input seems more than enough ++ test $ac_count -gt 10 && break ++ done ++ rm -f conftest.in conftest.tmp conftest.nl conftest.out;; ++esac ++ ++ ++ $ac_path_FGREP_found && break 3 ++ done ++done ++ ++done ++IFS=$as_save_IFS ++ ++ ++fi ++ ++FGREP="$ac_cv_path_FGREP" ++if test -z "$FGREP"; then ++ { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 ++echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ ac_cv_path_FGREP=$FGREP ++fi ++ ++ ++ fi ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 ++echo "${ECHO_T}$ac_cv_path_FGREP" >&6; } ++ FGREP="$ac_cv_path_FGREP" ++ ++ ++ ++ ++ ++ ++ ++ # OS X Leopard ld bus errors if you have "-g" or "-gX" in the link line ++ # with our assembly (!). So remove it from CCASFLAGS if it's ++ # there (and we're on Leopard). ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ompi_config_asm_flags_new ompi_config_asm_flag; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ompi_config_asm_flags_new ompi_config_asm_flag\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ { echo "$as_me:$LINENO: checking if need to remove -g from CCASFLAGS" >&5 ++echo $ECHO_N "checking if need to remove -g from CCASFLAGS... $ECHO_C" >&6; } ++ case "$host" in ++ *-apple-darwin9.*) ++ for ompi_config_asm_flag in $CCASFLAGS; do ++ # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs ++ # for an explanation of @<:@ and @:>@ -- they m4 expand ++ # to [ and ] ++ case $ompi_config_asm_flag in ++ -g) ;; ++ -g@<:@0-9@:>@) ;; ++ *) ++ ompi_config_asm_flags_new="$ompi_config_asm_flags_new $ompi_config_asm_flag" ++ ;; ++ esac ++ done ++ CCASFLAGS="$ompi_config_asm_flags_new" ++ { echo "$as_me:$LINENO: result: OS X Leopard - yes ($CCASFLAGS)" >&5 ++echo "${ECHO_T}OS X Leopard - yes ($CCASFLAGS)" >&6; } ++ ;; ++ *) ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ;; ++ esac ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ { echo "$as_me:$LINENO: checking whether to enable smp locks" >&5 ++echo $ECHO_N "checking whether to enable smp locks... $ECHO_C" >&6; } ++ # Check whether --enable-smp-locks was given. ++if test "${enable_smp_locks+set}" = set; then ++ enableval=$enable_smp_locks; ++fi ++ ++ if test "$enable_smp_locks" != "no"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ want_smp_locks=1 ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ want_smp_locks=0 ++ fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_WANT_SMP_LOCKS $want_smp_locks ++_ACEOF ++ ++ ++ if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then ++ ompi_cv_asm_arch="WINDOWS" ++ else ++ ++ { echo "$as_me:$LINENO: checking if .proc/endp is needed" >&5 ++echo $ECHO_N "checking if .proc/endp is needed... $ECHO_C" >&6; } ++if test "${ompi_cv_asm_need_proc+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ompi_cv_asm_need_proc="no" ++ cat >conftest.s <&5 ++ (eval $ompi_assemble) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # save the warnings ++ cat conftest.out >&5 ++ ompi_cv_asm_need_proc="yes" ++else ++ # save compiler output and failed program ++ cat conftest.out >&5 ++ echo "configure: failed program was:" >&5 ++ cat conftest.s >&5 ++ : ++fi ++rm -rf conftest* ++unset ompi_assemble ++ ++ rm -f conftest.out ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_asm_need_proc" >&5 ++echo "${ECHO_T}$ompi_cv_asm_need_proc" >&6; } ++ ++ if test "$ompi_cv_asm_need_proc" = "yes" ; then ++ ompi_cv_asm_proc=".proc" ++ ompi_cv_asm_endproc=".endp" ++ else ++ ompi_cv_asm_proc="#" ++ ompi_cv_asm_endproc="#" ++ fi ++ ++ ++ { echo "$as_me:$LINENO: checking directive for setting text section" >&5 ++echo $ECHO_N "checking directive for setting text section... $ECHO_C" >&6; } ++ ompi_cv_asm_text="" ++ if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then ++ # text section will be brought in with the rest of ++ # header for MS - leave blank for now ++ ompi_cv_asm_text="" ++ else ++ case $host in ++ *-aix*) ++ ompi_cv_asm_text=".csect .text[PR]" ++ ;; ++ *) ++ ompi_cv_asm_text=".text" ++ ;; ++ esac ++ fi ++ { echo "$as_me:$LINENO: result: $ompi_cv_asm_text" >&5 ++echo "${ECHO_T}$ompi_cv_asm_text" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ASM_TEXT "$ompi_cv_asm_text" ++_ACEOF ++ ++ OMPI_ASM_TEXT="$ompi_cv_asm_text" ++ ++ ++ ++ { echo "$as_me:$LINENO: checking directive for exporting symbols" >&5 ++echo $ECHO_N "checking directive for exporting symbols... $ECHO_C" >&6; } ++ ompi_cv_asm_global="" ++ if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then ++ ompi_cv_asm_global="PUBLIC" ++ else ++ case $host in ++ *) ++ ompi_cv_asm_global=".globl" ++ ;; ++ esac ++ fi ++ { echo "$as_me:$LINENO: result: $ompi_cv_asm_global" >&5 ++echo "${ECHO_T}$ompi_cv_asm_global" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ASM_GLOBAL "$ompi_cv_asm_global" ++_ACEOF ++ ++ OMPI_ASM_GLOBAL="$ompi_cv_asm_global" ++ ++ ++ ++ ++ ++ # Extract the first word of "objdump", so it can be a program name with args. ++set dummy objdump; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_OBJDUMP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$OBJDUMP"; then ++ ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_OBJDUMP="objdump" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++OBJDUMP=$ac_cv_prog_OBJDUMP ++if test -n "$OBJDUMP"; then ++ { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 ++echo "${ECHO_T}$OBJDUMP" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ { echo "$as_me:$LINENO: checking if .note.GNU-stack is needed" >&5 ++echo $ECHO_N "checking if .note.GNU-stack is needed... $ECHO_C" >&6; } ++if test "${ompi_cv_asm_gnu_stack_result+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$OBJDUMP" != ""; then ++ # first, see if a simple C program has it set ++ cat >conftest.c <&5 ++$CC $CFLAGS -c conftest.c -o conftest.$OBJEXT 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ $OBJDUMP -x conftest.$OBJEXT | $GREP '\.note\.GNU-stack' > /dev/null && ompi_cv_asm_gnu_stack_result=yes ++else ++ unset ompi_status ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_cv_asm_gnu_stack_result=no ++fi ++ if test "$ompi_cv_asm_gnu_stack_result" != "yes" ; then ++ ompi_cv_asm_gnu_stack_result="no" ++ fi ++ rm -rf conftest.* ++else ++ ompi_cv_asm_gnu_stack_result="no" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_asm_gnu_stack_result" >&5 ++echo "${ECHO_T}$ompi_cv_asm_gnu_stack_result" >&6; } ++ if test "$ompi_cv_asm_gnu_stack_result" = "yes" ; then ++ ompi_cv_asm_gnu_stack=1 ++ else ++ ompi_cv_asm_gnu_stack=0 ++ fi ++ ++ ++ { echo "$as_me:$LINENO: checking suffix for labels" >&5 ++echo $ECHO_N "checking suffix for labels... $ECHO_C" >&6; } ++ ompi_cv_asm_label_suffix="" ++ case $host in ++ *) ++ ompi_cv_asm_label_suffix=":" ++ ;; ++ esac ++ { echo "$as_me:$LINENO: result: $ompi_cv_asm_label_suffix" >&5 ++echo "${ECHO_T}$ompi_cv_asm_label_suffix" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ASM_LABEL_SUFFIX "$ompi_cv_asm_label_suffix" ++_ACEOF ++ ++ OMPI_ASM_LABEL_SUFFIX="$ompi_cv_asm_label_suffix" ++ ++ ++ ++ { echo "$as_me:$LINENO: checking prefix for global symbol labels" >&5 ++echo $ECHO_N "checking prefix for global symbol labels... $ECHO_C" >&6; } ++if test "${ompi_cv_asm_gsym+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ ompi_cv_asm_gsym="none" ++ ++ for sym in "_" "" "." ; do ++ asm_result=0 ++ echo "configure: trying $sym" >&5 ++cat > conftest_c.c <conftest.s <&5 ++ (eval $ompi_assemble) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # save the warnings ++ cat conftest.out >&5 ++ ompi_compile="$CC $CFLAGS -I. conftest_c.c -c > conftest.cmpl 2>&1" ++ if { (eval echo "$as_me:$LINENO: \"$ompi_compile\"") >&5 ++ (eval $ompi_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ; then ++ # save the warnings ++ cat conftest.cmpl >&5 ++ ompi_link="$CC $CFLAGS conftest_c.$OBJEXT conftest.$OBJEXT -o conftest $LDFLAGS $LIBS > conftest.link 2>&1" ++ if { (eval echo "$as_me:$LINENO: \"$ompi_link\"") >&5 ++ (eval $ompi_link) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ; then ++ # save the warnings ++ cat conftest.link >&5 ++ asm_result=1 ++ else ++ cat conftest.link >&5 ++ echo "configure: failed C program was: " >&5 ++ cat conftest_c.c >&5 ++ echo "configure: failed ASM program was: " >&5 ++ cat conftest.s >&5 ++ asm_result=0 ++ fi ++ else ++ # save output and failed program ++ cat conftest.cmpl >&5 ++ echo "configure: failed C program was: " >&5 ++ cat conftest.c >&5 ++ asm_result=0 ++ fi ++else ++ # save compiler output and failed program ++ cat conftest.out >&5 ++ echo "configure: failed program was:" >&5 ++ cat conftest.s >&5 ++ asm_result=0 ++fi ++rm -rf conftest* ++unset ompi_assemble ++ ++ if test "$asm_result" = "1" ; then ++ ompi_cv_asm_gsym="$sym" ++ break ++ fi ++ done ++ rm -rf conftest.* ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_asm_gsym" >&5 ++echo "${ECHO_T}$ompi_cv_asm_gsym" >&6; } ++ ++ if test "$ompi_cv_asm_gsym" = "none" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine global symbol label prefix" >&5 ++echo "$as_me: error: Could not determine global symbol label prefix" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ASM_GSYM "$ompi_cv_asm_gsym" ++_ACEOF ++ ++ OMPI_ASM_GSYM="$ompi_cv_asm_gsym" ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking prefix for lsym labels" >&5 ++echo $ECHO_N "checking prefix for lsym labels... $ECHO_C" >&6; } ++if test "${ompi_cv_asm_lsym+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ ++ ++ ompi_cv_asm_lsym="L" ++ ++ for sym in L .L $ L$ ; do ++ asm_result=0 ++ echo "configure: trying $sym" >&5 ++ cat >conftest.s <&5 ++ (eval $ompi_assemble) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # save the warnings ++ cat conftest.out >&5 ++ # ok, we succeeded at assembling. see if we can nm, ++ # throwing the results in a file ++ if $NM conftest.$OBJEXT > conftest.out 2>&5 ; then ++ if test "`$GREP mytestlabel conftest.out`" = "" ; then ++ # there was no symbol... looks promising to me ++ ompi_cv_asm_lsym="$sym" ++ asm_result=1 ++ elif test "`$GREP ' [Nt] .*mytestlabel' conftest.out`" = "" ; then ++ # see if we have a non-global-ish symbol ++ # but we should see if we can do better. ++ ompi_cv_asm_lsym="$sym" ++ fi ++ else ++ # not so much on the NM goodness :/ ++ echo "$NM failed. Output from NM was:" >&5 ++ cat conftest.out >&5 ++ { echo "$as_me:$LINENO: WARNING: $NM could not read object file" >&5 ++echo "$as_me: WARNING: $NM could not read object file" >&2;} ++ fi ++ ++else ++ # save compiler output and failed program ++ cat conftest.out >&5 ++ echo "configure: failed program was:" >&5 ++ cat conftest.s >&5 ++ : ++fi ++rm -rf conftest* ++unset ompi_assemble ++ ++ if test "$asm_result" = "1" ; then ++ break ++ fi ++ done ++ rm -f conftest.out ++ unset asm_result sym ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_asm_lsym" >&5 ++echo "${ECHO_T}$ompi_cv_asm_lsym" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ASM_LSYM "$ompi_cv_asm_lsym" ++_ACEOF ++ ++ OMPI_ASM_LSYM="$ompi_cv_asm_lsym" ++ ++ ++ ++ { echo "$as_me:$LINENO: checking prefix for function in .type" >&5 ++echo $ECHO_N "checking prefix for function in .type... $ECHO_C" >&6; } ++if test "${ompi_cv_asm_type+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ ompi_cv_asm_type="" ++ ++ case "${host}" in ++ *-sun-solaris*) ++ # GCC on solaris seems to accept just about anything, not ++ # that what it defines actually works... So just hardwire ++ # to the right answer ++ ompi_cv_asm_type="#" ++ ;; ++ *) ++ for type in @ \# % ; do ++ asm_result=0 ++ echo "configure: trying $type" >&5 ++ cat >conftest.s <&5 ++ (eval $ompi_assemble) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # save the warnings ++ cat conftest.out >&5 ++ ompi_cv_asm_type="${type}" ++ asm_result=1 ++else ++ # save compiler output and failed program ++ cat conftest.out >&5 ++ echo "configure: failed program was:" >&5 ++ cat conftest.s >&5 ++ : ++fi ++rm -rf conftest* ++unset ompi_assemble ++ ++ if test "$asm_result" = "1" ; then ++ break ++ fi ++ done ++ ;; ++ esac ++ rm -f conftest.out ++ ++ unset asm_result type ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_asm_type" >&5 ++echo "${ECHO_T}$ompi_cv_asm_type" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ASM_TYPE "$ompi_cv_asm_type" ++_ACEOF ++ ++ OMPI_ASM_TYPE="$ompi_cv_asm_type" ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if .size is needed" >&5 ++echo $ECHO_N "checking if .size is needed... $ECHO_C" >&6; } ++if test "${ompi_cv_asm_need_size+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ompi_cv_asm_need_size="no" ++ cat >conftest.s <&5 ++ (eval $ompi_assemble) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # save the warnings ++ cat conftest.out >&5 ++ ompi_cv_asm_need_size="yes" ++else ++ # save compiler output and failed program ++ cat conftest.out >&5 ++ echo "configure: failed program was:" >&5 ++ cat conftest.s >&5 ++ : ++fi ++rm -rf conftest* ++unset ompi_assemble ++ ++ rm -f conftest.out ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_asm_need_size" >&5 ++echo "${ECHO_T}$ompi_cv_asm_need_size" >&6; } ++ ++ if test "$ompi_cv_asm_need_size" = "yes" ; then ++ ompi_asm_size=1 ++ else ++ ompi_asm_size=0 ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ASM_SIZE "$ompi_asm_size" ++_ACEOF ++ ++ OMPI_ASM_SIZE="$ompi_asm_size" ++ ++ unset asm_result ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if .align directive takes logarithmic value" >&5 ++echo $ECHO_N "checking if .align directive takes logarithmic value... $ECHO_C" >&6; } ++if test "${ompi_cv_asm_align_log+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.s <&5 ++ (eval $ompi_assemble) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # save the warnings ++ cat conftest.out >&5 ++ ompi_asm_addr=`$NM conftest.$OBJEXT | $GREP foo | sed -e 's/.*\([0-9a-fA-F][0-9a-fA-F]\).*foo.*/\1/'` ++else ++ # save compiler output and failed program ++ cat conftest.out >&5 ++ echo "configure: failed program was:" >&5 ++ cat conftest.s >&5 ++ ompi_asm_addr="" ++fi ++rm -rf conftest* ++unset ompi_assemble ++ ++ # test for both 16 and 10 (decimal and hex notations) ++ echo "configure: .align test address offset is $ompi_asm_addr" >&5 ++ if test "$ompi_asm_addr" = "16" -o "$ompi_asm_addr" = "10" ; then ++ ompi_cv_asm_align_log="yes" ++ else ++ ompi_cv_asm_align_log="no" ++ fi ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_asm_align_log" >&5 ++echo "${ECHO_T}$ompi_cv_asm_align_log" >&6; } ++ ++ if test "$ompi_cv_asm_align_log" = "yes" -o "$ompi_cv_asm_align_log" = "1" ; then ++ ompi_asm_align_log_result=1 ++ else ++ ompi_asm_align_log_result=0 ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ASM_ALIGN_LOG $asm_align_log_result ++_ACEOF ++ ++ ++ unset omp_asm_addr asm_result ++ ++ ++ # find our architecture for purposes of assembly stuff ++ ompi_cv_asm_arch="UNSUPPORTED" ++ OMPI_GCC_INLINE_ASSIGN="" ++ OMPI_ASM_SUPPORT_64BIT=0 ++ case "${host}" in ++ i?86-*|x86_64*) ++ if test "$ac_cv_sizeof_long" = "4" ; then ++ ompi_cv_asm_arch="IA32" ++ else ++ ompi_cv_asm_arch="AMD64" ++ fi ++ OMPI_ASM_SUPPORT_64BIT=1 ++ OMPI_GCC_INLINE_ASSIGN='"movl $0, %0" : "=&r"(ret)' ++ ;; ++ ++ ia64-*) ++ ompi_cv_asm_arch="IA64" ++ OMPI_ASM_SUPPORT_64BIT=1 ++ OMPI_GCC_INLINE_ASSIGN='"mov %0=r0\n;;\n" : "=&r"(ret)' ++ ;; ++ ++ alpha-*|alphaev[4-8]-*|alphaev56-*|alphaev6[78]-*) ++ ompi_cv_asm_arch="ALPHA" ++ OMPI_ASM_SUPPORT_64BIT=1 ++ OMPI_GCC_INLINE_ASSIGN='"bis $31,$31,%0" : "=&r"(ret)' ++ ;; ++ ++ mips-*|mips64*) ++ # Should really find some way to make sure that we are on ++ # a MIPS III machine (r4000 and later) ++ ompi_cv_asm_arch="MIPS" ++ OMPI_ASM_SUPPORT_64BIT=1 ++ OMPI_GCC_INLINE_ASSIGN='"or %0,$0,$0" : "=&r"(ret)' ++ ;; ++ ++ powerpc-*|powerpc64-*) ++ ++ { echo "$as_me:$LINENO: checking if PowerPC registers have r prefix" >&5 ++echo $ECHO_N "checking if PowerPC registers have r prefix... $ECHO_C" >&6; } ++ cat >conftest.s <&5 ++ (eval $ompi_assemble) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # save the warnings ++ cat conftest.out >&5 ++ ompi_cv_asm_powerpc_r_reg=0 ++else ++ # save compiler output and failed program ++ cat conftest.out >&5 ++ echo "configure: failed program was:" >&5 ++ cat conftest.s >&5 ++ cat >conftest.s <&5 ++ (eval $ompi_assemble) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # save the warnings ++ cat conftest.out >&5 ++ ompi_cv_asm_powerpc_r_reg=1 ++else ++ # save compiler output and failed program ++ cat conftest.out >&5 ++ echo "configure: failed program was:" >&5 ++ cat conftest.s >&5 ++ { { echo "$as_me:$LINENO: error: Can not determine how to use PPC registers" >&5 ++echo "$as_me: error: Can not determine how to use PPC registers" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -rf conftest* ++unset ompi_assemble ++ ++fi ++rm -rf conftest* ++unset ompi_assemble ++ ++ if test "$ompi_cv_asm_powerpc_r_reg" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_POWERPC_R_REGISTERS $ompi_cv_asm_powerpc_r_reg ++_ACEOF ++ ++ ++ if test "$ac_cv_sizeof_long" = "4" ; then ++ ompi_cv_asm_arch="POWERPC32" ++ ++ # Note that on some platforms (Apple G5), even if we are ++ # compiling in 32 bit mode (and therefore should assume ++ # sizeof(long) == 4), we can use the 64 bit test and set ++ # operations. ++ ++ if test "$ac_cv_sizeof_long" != "4" ; then ++ # this function should only be called in the 32 bit case ++ { { echo "$as_me:$LINENO: error: CHECK_POWERPC_64BIT called on 64 bit platform. Internal error." >&5 ++echo "$as_me: error: CHECK_POWERPC_64BIT called on 64 bit platform. Internal error." >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ { echo "$as_me:$LINENO: checking for 64-bit PowerPC assembly support" >&5 ++echo $ECHO_N "checking for 64-bit PowerPC assembly support... $ECHO_C" >&6; } ++ case $host in ++ *-darwin*) ++ ppc64_result=0 ++ if test "$ompi_cv_asm_powerpc_r_reg" = "1" ; then ++ ldarx_asm=" ldarx r1,r1,r1"; ++ else ++ ldarx_asm=" ldarx 1,1,1"; ++ fi ++ cat >conftest.s <&5 ++ (eval $ompi_assemble) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # save the warnings ++ cat conftest.out >&5 ++ ppc64_result=1 ++else ++ # save compiler output and failed program ++ cat conftest.out >&5 ++ echo "configure: failed program was:" >&5 ++ cat conftest.s >&5 ++ ppc64_result=0 ++fi ++rm -rf conftest* ++unset ompi_assemble ++ ++ ;; ++ *) ++ ppc64_result=0 ++ ;; ++ esac ++ ++ if test "$ppc64_result" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ OMPI_ASM_SUPPORT_64BIT=1 ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ : ++ fi ++ ++ unset ppc64_result ldarx_asm ++ ++ elif test "$ac_cv_sizeof_long" = "8" ; then ++ OMPI_ASM_SUPPORT_64BIT=1 ++ ompi_cv_asm_arch="POWERPC64" ++ else ++ { { echo "$as_me:$LINENO: error: Could not determine PowerPC word size: $ac_cv_sizeof_long" >&5 ++echo "$as_me: error: Could not determine PowerPC word size: $ac_cv_sizeof_long" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ OMPI_GCC_INLINE_ASSIGN='"1: li %0,0" : "=&r"(ret)' ++ ;; ++ ++ sparc*-*) ++ # SPARC v9 (and above) are the only ones with 64bit support ++ # if compiling 32 bit, see if we are v9 (aka v8plus) or ++ # earlier (casa is v8+/v9). ++ if test "$ac_cv_sizeof_long" = "4" ; then ++ have_v8plus=0 ++ ++ { echo "$as_me:$LINENO: checking if have Sparc v8+/v9 support" >&5 ++echo $ECHO_N "checking if have Sparc v8+/v9 support... $ECHO_C" >&6; } ++ sparc_result=0 ++ cat >conftest.s <&5 ++ (eval $ompi_assemble) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # save the warnings ++ cat conftest.out >&5 ++ sparc_result=1 ++else ++ # save compiler output and failed program ++ cat conftest.out >&5 ++ echo "configure: failed program was:" >&5 ++ cat conftest.s >&5 ++ sparc_result=0 ++fi ++rm -rf conftest* ++unset ompi_assemble ++ ++ if test "$sparc_result" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ have_v8plus=1 ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ : ++ fi ++ ++ unset sparc_result ++ ++ if test "$have_v8plus" = "0" ; then ++ OMPI_ASM_SUPPORT_64BIT=0 ++ ompi_cv_asm_arch="SPARC" ++{ echo "$as_me:$LINENO: WARNING: Sparc v8 target is not supported in this release of Open MPI." >&5 ++echo "$as_me: WARNING: Sparc v8 target is not supported in this release of Open MPI." >&2;} ++{ echo "$as_me:$LINENO: WARNING: You must specify the target architecture v8plus" >&5 ++echo "$as_me: WARNING: You must specify the target architecture v8plus" >&2;} ++{ echo "$as_me:$LINENO: WARNING: (cc: -xarch=v8plus, gcc: -mcpu=v9) for CFLAGS, CXXFLAGS," >&5 ++echo "$as_me: WARNING: (cc: -xarch=v8plus, gcc: -mcpu=v9) for CFLAGS, CXXFLAGS," >&2;} ++{ echo "$as_me:$LINENO: WARNING: FFLAGS, and FCFLAGS to compile Open MPI in 32 bit mode on" >&5 ++echo "$as_me: WARNING: FFLAGS, and FCFLAGS to compile Open MPI in 32 bit mode on" >&2;} ++{ echo "$as_me:$LINENO: WARNING: Sparc processors" >&5 ++echo "$as_me: WARNING: Sparc processors" >&2;} ++{ { echo "$as_me:$LINENO: error: Can not continue." >&5 ++echo "$as_me: error: Can not continue." >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ OMPI_ASM_SUPPORT_64BIT=1 ++ ompi_cv_asm_arch="SPARCV9_32" ++ fi ++ ++ elif test "$ac_cv_sizeof_long" = "8" ; then ++ OMPI_ASM_SUPPORT_64BIT=1 ++ ompi_cv_asm_arch="SPARCV9_64" ++ else ++ { { echo "$as_me:$LINENO: error: Could not determine Sparc word size: $ac_cv_sizeof_long" >&5 ++echo "$as_me: error: Could not determine Sparc word size: $ac_cv_sizeof_long" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ OMPI_GCC_INLINE_ASSIGN='"mov 0,%0" : "=&r"(ret)' ++ ;; ++ ++ *) ++ { { echo "$as_me:$LINENO: error: No atomic primitives available for $host" >&5 ++echo "$as_me: error: No atomic primitives available for $host" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ASM_SUPPORT_64BIT $OMPI_ASM_SUPPORT_64BIT ++_ACEOF ++ ++ ++ ++ # ++ # figure out if we need any special function start / stop code ++ # ++ case $host_os in ++ aix*) ++ ompi_asm_arch_config="aix" ++ ;; ++ *) ++ ompi_asm_arch_config="default" ++ ;; ++ esac ++ ++ # now that we know our architecture, try to inline assemble ++ ++ assembly="$OMPI_GCC_INLINE_ASSIGN" ++ asm_result="unknown" ++ ++ { echo "$as_me:$LINENO: checking if $CC supports GCC inline assembly" >&5 ++echo $ECHO_N "checking if $CC supports GCC inline assembly... $ECHO_C" >&6; } ++ ++ if test "$ompi_cv_c_compiler_vendor" = "portland group" ; then ++ # PGI seems to have some issues with our inline assembly. ++ # Disable for now. ++ asm_result="no (Portland Group)" ++ else ++ case $host in ++ *-aix*) ++ # the AIX compilers and linkers really don't do gcc ++ # inline assembly right - disable for now. ++ asm_result="no (AIX)" ++ ;; ++ *) ++ if test ! "$assembly" = "" ; then ++ if test "$cross_compiling" = yes; then ++ asm_result="unknown" ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++$ac_includes_default ++int ++main () ++{ ++int ret = 1; ++__asm__ __volatile__ ($assembly); ++return ret; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ asm_result="yes" ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++asm_result="no" ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ else ++ assembly="test skipped - assuming no" ++ fi ++ ;; ++ esac ++ ++ # if we're cross compiling, just try to compile and figure good enough ++ if test "$asm_result" = "unknown" ; then ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++$ac_includes_default ++int ++main () ++{ ++int ret = 1; ++__asm__ __volatile__ ($assembly); ++return ret; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ asm_result="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ asm_result="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ fi ++ fi ++ ++ { echo "$as_me:$LINENO: result: $asm_result" >&5 ++echo "${ECHO_T}$asm_result" >&6; } ++ ++ if test "$asm_result" = "yes" ; then ++ OMPI_C_GCC_INLINE_ASSEMBLY=1 ++ else ++ OMPI_C_GCC_INLINE_ASSEMBLY=0 ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_C_GCC_INLINE_ASSEMBLY $OMPI_C_GCC_INLINE_ASSEMBLY ++_ACEOF ++ ++ ++ unset OMPI_C_GCC_INLINE_ASSEMBLY assembly asm_result ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if $CC supports DEC inline assembly" >&5 ++echo $ECHO_N "checking if $CC supports DEC inline assembly... $ECHO_C" >&6; } ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++$ac_includes_default ++#include ++int ++main () ++{ ++asm(""); ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ asm_result="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ asm_result="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ ++ { echo "$as_me:$LINENO: result: $asm_result" >&5 ++echo "${ECHO_T}$asm_result" >&6; } ++ ++ if test "$asm_result" = "yes" ; then ++ OMPI_C_DEC_INLINE_ASSEMBLY=1 ++ else ++ OMPI_C_DEC_INLINE_ASSEMBLY=0 ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_C_DEC_INLINE_ASSEMBLY $OMPI_C_DEC_INLINE_ASSEMBLY ++_ACEOF ++ ++ ++ unset OMPI_C_DEC_INLINE_ASSEMBLY asm_result ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if $CC supports XLC inline assembly" >&5 ++echo $ECHO_N "checking if $CC supports XLC inline assembly... $ECHO_C" >&6; } ++ ++ OMPI_C_XLC_INLINE_ASSEMBLY=0 ++ asm_result="no" ++ if test "$CC" = "xlc" ; then ++ OMPI_XLC_INLINE_ASSEMBLY=1 ++ asm_result="yes" ++ fi ++ ++ { echo "$as_me:$LINENO: result: $asm_result" >&5 ++echo "${ECHO_T}$asm_result" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_C_XLC_INLINE_ASSEMBLY $OMPI_C_XLC_INLINE_ASSEMBLY ++_ACEOF ++ ++ ++ unset OMPI_C_XLC_INLINE_ASSEMBLY ++ ++ ++ assembly="$OMPI_GCC_INLINE_ASSIGN" ++ asm_result="unknown" ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ { echo "$as_me:$LINENO: checking if $CXX supports GCC inline assembly" >&5 ++echo $ECHO_N "checking if $CXX supports GCC inline assembly... $ECHO_C" >&6; } ++ ++ case $host in ++ *-aix*) ++ # the AIX compilers and linkers really don't do gcc ++ # inline assembly right - disable for now. ++ asm_result="no (AIX)" ++ ;; ++ *) ++ if test ! "$assembly" = "" ; then ++ if test "$cross_compiling" = yes; then ++ asm_result="unknown" ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++$ac_includes_default ++int ++main () ++{ ++int ret = 1; ++__asm__ __volatile__ ($assembly); ++return ret; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ asm_result="yes" ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++asm_result="no" ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ else ++ assembly="test skipped - assuming no" ++ fi ++ ;; ++ esac ++ # if we're cross compiling, just try to compile and figure good enough ++ if test "$asm_result" = "unknown" ; then ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++$ac_includes_default ++int ++main () ++{ ++int ret = 1; ++__asm__ __volatile__ ($assembly); ++return ret; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ asm_result="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ asm_result="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ fi ++ ++ { echo "$as_me:$LINENO: result: $asm_result" >&5 ++echo "${ECHO_T}$asm_result" >&6; } ++ ++ if test "$asm_result" = "yes" ; then ++ OMPI_CXX_GCC_INLINE_ASSEMBLY=1 ++ else ++ OMPI_CXX_GCC_INLINE_ASSEMBLY=0 ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CXX_GCC_INLINE_ASSEMBLY $OMPI_CXX_GCC_INLINE_ASSEMBLY ++_ACEOF ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ unset OMPI_CXX_GCC_INLINE_ASSEMBLY assembly asm_result ++ ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ { echo "$as_me:$LINENO: checking if $CXX supports DEC inline assembly" >&5 ++echo $ECHO_N "checking if $CXX supports DEC inline assembly... $ECHO_C" >&6; } ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++$ac_includes_default ++#include ++int ++main () ++{ ++asm(""); ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ asm_result="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ asm_result="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ ++ { echo "$as_me:$LINENO: result: $asm_result" >&5 ++echo "${ECHO_T}$asm_result" >&6; } ++ ++ if test "$asm_result" = "yes" ; then ++ OMPI_CXX_DEC_INLINE_ASSEMBLY=1 ++ else ++ OMPI_CXX_DEC_INLINE_ASSEMBLY=0 ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CXX_DEC_INLINE_ASSEMBLY $OMPI_CXX_DEC_INLINE_ASSEMBLY ++_ACEOF ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ unset OMPI_CXX_DEC_INLINE_ASSEMBLY asm_result ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if $CXX supports XLC inline assembly" >&5 ++echo $ECHO_N "checking if $CXX supports XLC inline assembly... $ECHO_C" >&6; } ++ ++ OMPI_CXX_XLC_INLINE_ASSEMBLY=0 ++ asm_result="no" ++ if test "$CXX" = "xlC" -o "$CXX" = "xlc++" ; then ++ OMPI_CXX_XLC_INLINE_ASSEMBLY=1 ++ asm_result="yes" ++ fi ++ ++ { echo "$as_me:$LINENO: result: $asm_result" >&5 ++echo "${ECHO_T}$asm_result" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CXX_XLC_INLINE_ASSEMBLY $OMPI_CXX_XLC_INLINE_ASSEMBLY ++_ACEOF ++ ++ ++ unset OMPI_CXX_XLC_INLINE_ASSEMBLY ++ ++ ++ # format: ++ # config_file-text-global-label_suffix-gsym-lsym-type-size-align_log-ppc_r_reg-64_bit-gnu_stack ++ asm_format="${ompi_asm_arch_config}" ++ asm_format="${asm_format}-${ompi_cv_asm_text}-${ompi_cv_asm_global}" ++ asm_format="${asm_format}-${ompi_cv_asm_label_suffix}-${ompi_cv_asm_gsym}" ++ asm_format="${asm_format}-${ompi_cv_asm_lsym}" ++ asm_format="${asm_format}-${ompi_cv_asm_type}-${ompi_asm_size}" ++ asm_format="${asm_format}-${ompi_asm_align_log_result}" ++ if test "$ompi_cv_asm_arch" = "POWERPC32" -o "$ompi_cv_asm_arch" = "POWERPC64" ; then ++ asm_format="${asm_format}-${ompi_cv_asm_powerpc_r_reg}" ++ else ++ asm_format="${asm_format}-1" ++ fi ++ asm_format="${asm_format}-${OMPI_ASM_SUPPORT_64BIT}" ++ ompi_cv_asm_format="${asm_format}-${ompi_cv_asm_gnu_stack}" ++ # For the Makefile, need to escape the $ as $$. Don't display ++ # this version, but make sure the Makefile gives the right thing ++ # when regenerating the files because the base has been touched. ++ OMPI_ASSEMBLY_FORMAT=`echo "$ompi_cv_asm_format" | sed -e 's/\\\$/\\\$\\\$/'` ++ ++ { echo "$as_me:$LINENO: checking for assembly format" >&5 ++echo $ECHO_N "checking for assembly format... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $ompi_cv_asm_format" >&5 ++echo "${ECHO_T}$ompi_cv_asm_format" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ASSEMBLY_FORMAT "$OMPI_ASSEMBLY_FORMAT" ++_ACEOF ++ ++ ++ fi # if cv_c_compiler_vendor = microsoft ++ ++ result="OMPI_$ompi_cv_asm_arch" ++ OMPI_ASSEMBLY_ARCH="$ompi_cv_asm_arch" ++ { echo "$as_me:$LINENO: checking for asssembly architecture" >&5 ++echo $ECHO_N "checking for asssembly architecture... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $ompi_cv_asm_arch" >&5 ++echo "${ECHO_T}$ompi_cv_asm_arch" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ASSEMBLY_ARCH $result ++_ACEOF ++ ++ ++ ++ ++ ++ ++ ++if test "$ompi_cv_asm_arch" != "WINDOWS" ; then ++ # Extract the first word of "perl", so it can be a program name with args. ++set dummy perl; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_PERL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$PERL"; then ++ ac_cv_prog_PERL="$PERL" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_PERL="perl" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++PERL=$ac_cv_prog_PERL ++if test -n "$PERL"; then ++ { echo "$as_me:$LINENO: result: $PERL" >&5 ++echo "${ECHO_T}$PERL" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ ++ # see if we have a pre-built one already ++ { echo "$as_me:$LINENO: checking for pre-built assembly file" >&5 ++echo $ECHO_N "checking for pre-built assembly file... $ECHO_C" >&6; } ++ ompi_cv_asm_file="" ++ if $GREP "$ompi_cv_asm_arch" "${top_ompi_srcdir}/opal/asm/asm-data.txt" | $FGREP "$ompi_cv_asm_format" >conftest.out 2>&1 ; then ++ ompi_cv_asm_file="`cut -f3 conftest.out`" ++ if test ! "$ompi_cv_asm_file" = "" ; then ++ ompi_cv_asm_file="atomic-${ompi_cv_asm_file}.s" ++ if test -f "${top_ompi_srcdir}/opal/asm/generated/${ompi_cv_asm_file}" ; then ++ { echo "$as_me:$LINENO: result: yes ($ompi_cv_asm_file)" >&5 ++echo "${ECHO_T}yes ($ompi_cv_asm_file)" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no ($ompi_cv_asm_file not found)" >&5 ++echo "${ECHO_T}no ($ompi_cv_asm_file not found)" >&6; } ++ ompi_cv_asm_file="" ++ fi ++ fi ++ else ++ { echo "$as_me:$LINENO: result: no (not in asm-data)" >&5 ++echo "${ECHO_T}no (not in asm-data)" >&6; } ++ fi ++ rm -rf conftest.* ++ ++ if test "$ompi_cv_asm_file" = "" ; then ++ if test ! "$PERL" = "" ; then ++ # we have perl... Can we generate a file? ++ { echo "$as_me:$LINENO: checking whether possible to generate assembly file" >&5 ++echo $ECHO_N "checking whether possible to generate assembly file... $ECHO_C" >&6; } ++ mkdir -p opal/asm/generated ++ ompi_cv_asm_file="atomic-local.s" ++ ompi_try='$PERL $top_ompi_srcdir/opal/asm/generate-asm.pl $ompi_cv_asm_arch "$ompi_cv_asm_format" $top_ompi_srcdir/opal/asm/base $top_ompi_builddir/opal/asm/generated/$ompi_cv_asm_file >conftest.out 2>&1' ++ if { (eval echo "$as_me:$LINENO: \"$ompi_try\"") >&5 ++ (eval $ompi_try) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ; then ++ # save the warnings ++ cat conftest.out >&5 ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ # save output ++ cat conftest.out >&5 ++ ompi_cv_asm_file="" ++ { echo "$as_me:$LINENO: result: failed" >&5 ++echo "${ECHO_T}failed" >&6; } ++ { echo "$as_me:$LINENO: WARNING: Could not build atomic operations assembly file." >&5 ++echo "$as_me: WARNING: Could not build atomic operations assembly file." >&2;} ++ { echo "$as_me:$LINENO: WARNING: There will be no atomic operations for this build." >&5 ++echo "$as_me: WARNING: There will be no atomic operations for this build." >&2;} ++ fi ++ else ++ { echo "$as_me:$LINENO: WARNING: Could not find prebuilt atomic operations file and could not" >&5 ++echo "$as_me: WARNING: Could not find prebuilt atomic operations file and could not" >&2;} ++ { echo "$as_me:$LINENO: WARNING: find perl to attempt to generate a custom assembly file." >&5 ++echo "$as_me: WARNING: find perl to attempt to generate a custom assembly file." >&2;} ++ { echo "$as_me:$LINENO: WARNING: There will be no atomic operations for this build." >&5 ++echo "$as_me: WARNING: There will be no atomic operations for this build." >&2;} ++ fi ++ fi ++ rm -rf conftest.* ++else ++ # On windows with VC++, atomics are done with compiler primitives ++ ompi_cv_asm_file="" ++fi ++ ++ { echo "$as_me:$LINENO: checking for atomic assembly filename" >&5 ++echo $ECHO_N "checking for atomic assembly filename... $ECHO_C" >&6; } ++ if test "$ompi_cv_asm_file" = "" ; then ++ { echo "$as_me:$LINENO: result: none" >&5 ++echo "${ECHO_T}none" >&6; } ++ result=0 ++ else ++ { echo "$as_me:$LINENO: result: $ompi_cv_asm_file" >&5 ++echo "${ECHO_T}$ompi_cv_asm_file" >&6; } ++ result=1 ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ASM_FILE $result ++_ACEOF ++ ++ if test "$result" = "1"; then ++ OMPI_HAVE_ASM_FILE_TRUE= ++ OMPI_HAVE_ASM_FILE_FALSE='#' ++else ++ OMPI_HAVE_ASM_FILE_TRUE='#' ++ OMPI_HAVE_ASM_FILE_FALSE= ++fi ++ ++ ++ OMPI_ASM_FILE=$ompi_cv_asm_file ++ ++ ++ ++ unset result asm_format ++ ++ ++ ++################################## ++# Fortran ++################################## ++ ++#----------- ++# Fortran 77 ++#----------- ++ ++ ++ ++ ++# Modularize this setup so that sub-configure.in scripts can use this ++# same setup code. ++ ++ompi_show_subtitle "Fortran 77 compiler" ++ ++# ++# Check for the compiler ++# ++# Note that we don't actually *use* the fortran compiler to build ++# anything in OMPI; it's only used here in configure to find out ++# symbol conventions, type sizes, etc. We also pass it down to ++# the wrapper compiler mpif77. ++# ++# Always run this test, even if fortran isn't wanted so that F77 has ++# value for the Fint tests ++# ++ompi_fflags_save="$FFLAGS" ++ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++if test -n "$ac_tool_prefix"; then ++ for ac_prog in gfortran g77 f77 xlf frt ifort pgf77 fort77 fl32 af77 ++ do ++ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ++set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_F77+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$F77"; then ++ ac_cv_prog_F77="$F77" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_F77="$ac_tool_prefix$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++F77=$ac_cv_prog_F77 ++if test -n "$F77"; then ++ { echo "$as_me:$LINENO: result: $F77" >&5 ++echo "${ECHO_T}$F77" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$F77" && break ++ done ++fi ++if test -z "$F77"; then ++ ac_ct_F77=$F77 ++ for ac_prog in gfortran g77 f77 xlf frt ifort pgf77 fort77 fl32 af77 ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_F77+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_F77"; then ++ ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_F77="$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_F77=$ac_cv_prog_ac_ct_F77 ++if test -n "$ac_ct_F77"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 ++echo "${ECHO_T}$ac_ct_F77" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$ac_ct_F77" && break ++done ++ ++ if test "x$ac_ct_F77" = x; then ++ F77="" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ F77=$ac_ct_F77 ++ fi ++fi ++ ++ ++# Provide some information about the compiler. ++echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 ++ac_compiler=`set X $ac_compile; echo $2` ++{ (ac_try="$ac_compiler --version >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler --version >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -v >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -v >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -V >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -V >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++rm -f a.out ++ ++# If we don't use `.F' as extension, the preprocessor is not run on the ++# input file. (Note that this only needs to work for GNU compilers.) ++ac_save_ext=$ac_ext ++ac_ext=F ++{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 ++echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } ++if test "${ac_cv_f77_compiler_gnu+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++#ifndef __GNUC__ ++ choke me ++#endif ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_compiler_gnu=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_compiler_gnu=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ac_cv_f77_compiler_gnu=$ac_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 ++echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } ++ac_ext=$ac_save_ext ++ac_test_FFLAGS=${FFLAGS+set} ++ac_save_FFLAGS=$FFLAGS ++FFLAGS= ++{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 ++echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } ++if test "${ac_cv_prog_f77_g+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ FFLAGS=-g ++cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_f77_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_prog_f77_g=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 ++echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } ++if test "$ac_test_FFLAGS" = set; then ++ FFLAGS=$ac_save_FFLAGS ++elif test $ac_cv_prog_f77_g = yes; then ++ if test "x$ac_cv_f77_compiler_gnu" = xyes; then ++ FFLAGS="-g -O2" ++ else ++ FFLAGS="-g" ++ fi ++else ++ if test "x$ac_cv_f77_compiler_gnu" = xyes; then ++ FFLAGS="-O2" ++ else ++ FFLAGS= ++ fi ++fi ++ ++G77=`test $ac_compiler_gnu = yes && echo yes` ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++FFLAGS="$ompi_fflags_save" ++if test -z "$F77"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 bindings disabled (could not find compiler)" >&5 ++echo "$as_me: WARNING: *** Fortran 77 bindings disabled (could not find compiler)" >&2;} ++ OMPI_WANT_F77_BINDINGS=0 ++ OMPI_F77="none" ++ BASEF77="none" ++ OMPI_F77_ABSOLUTE="none" ++else ++ OMPI_F77="$F77" ++ set dummy $OMPI_F77 ++ OMPI_F77_ARGV0=$2 ++ BASEF77="`basename $OMPI_F77_ARGV0`" ++ ++# 1 is the variable name to do "which" on ++# 2 is the variable name to assign the return value to ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ompi_prog=$OMPI_F77_ARGV0 ++ ++IFS_SAVE=$IFS ++IFS="$PATH_SEPARATOR" ++for ompi_dir in $PATH; do ++ if test -x "$ompi_dir/$ompi_prog"; then ++ OMPI_F77_ABSOLUTE="$ompi_dir/$ompi_prog" ++ break ++ fi ++done ++IFS=$IFS_SAVE ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ if test "$OMPI_WANT_F77_BINDINGS" = "0" ; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 bindings disabled by user" >&5 ++echo "$as_me: WARNING: *** Fortran 77 bindings disabled by user" >&2;} ++ OMPI_WANT_F77_BINDINGS=0 ++ else ++ OMPI_WANT_F77_BINDINGS=1 ++ fi ++fi ++ ++# make sure the compiler actually works, if not cross-compiling ++# Don't just use the AC macro so that we can have a pretty ++# message. ++if test $OMPI_WANT_F77_BINDINGS -eq 1; then ++ ++ ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler works" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler works... $ECHO_C" >&6; } ++if test "${ompi_cv_Fortran_77_works+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ if test "$cross_compiling" = yes; then ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_Fortran_77_works="links (cross compiling)" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_Fortran_77_works="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++else ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_Fortran_77_works="yes" ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++ompi_cv_Fortran_77_works="no" ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_Fortran_77_works" >&5 ++echo "${ECHO_T}$ompi_cv_Fortran_77_works" >&6; } ++ if test "$ompi_cv_Fortran_77_works" = "no"; then ++ cat <&2 ++********************************************************************** ++* It appears that your Fortran 77 compiler is unable to produce working ++* executables. A simple test application failed to properly ++* execute. Note that this is likely not a problem with Open MPI, ++* but a problem with the local compiler installation. More ++* information (including exactly what command was given to the ++* compiler and what error resulted when the command was executed) is ++* available in the config.log file in this directory. ++********************************************************************** ++EOF ++ { { echo "$as_me:$LINENO: error: Could not run a simple Fortran 77 program. Aborting." >&5 ++echo "$as_me: error: Could not run a simple Fortran 77 program. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ ++fi ++ ++ ++# now make sure we know our linking convention... ++ ++ ++ ++ ++ # invalidate cache if result came from a run where F77 was disabled ++ if test "$ompi_cv_f77_external_symbol" = "skipped" ; then ++ unset ompi_cv_f77_external_symbol ++ fi ++ ++ { echo "$as_me:$LINENO: checking $F77 external symbol convention" >&5 ++echo $ECHO_N "checking $F77 external symbol convention... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_external_symbol+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$F77" = "none" -o "$OMPI_WANT_F77_BINDINGS" = "0"; then ++ ompi_cv_f77_external_symbol="skipped" ++ else ++ cat >conftest.f <&5 ++$F77 $FFLAGS -c conftest.f $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if $NM conftest.o | $GREP foo_bar__ >/dev/null 2>&1 ; then ++ ompi_cv_f77_external_symbol="double underscore" ++ elif $NM conftest.o | $GREP foo_bar_ >/dev/null 2>&1 ; then ++ ompi_cv_f77_external_symbol="single underscore" ++ elif $NM conftest.o | $GREP FOO_bar >/dev/null 2>&1 ; then ++ ompi_cv_f77_external_symbol="mixed case" ++ elif $NM conftest.o | $GREP foo_bar >/dev/null 2>&1 ; then ++ ompi_cv_f77_external_symbol="no underscore" ++ elif $NM conftest.o | $GREP FOO_BAR >/dev/null 2>&1 ; then ++ ompi_cv_f77_external_symbol="upper case" ++ else ++ $NM conftest.o >conftest.out 2>&1 ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: output from $NM:" >&5 ++else ++ echo output from $NM: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.out" -a -f "conftest.out"; then ++ cat conftest.out >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine Fortran naming convention." >&5 ++echo "$as_me: error: Could not determine Fortran naming convention." >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Fortran compiler did not produce object file" >&5 ++echo "$as_me: error: Fortran compiler did not produce object file" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ fi ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_external_symbol" >&5 ++echo "${ECHO_T}$ompi_cv_f77_external_symbol" >&6; } ++ ++ ompi_fortran_double_underscore=0 ++ ompi_fortran_single_underscore=0 ++ ompi_fortran_caps=0 ++ ompi_fortran_plain=0 ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ ompi_fortran_double_underscore=1 ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_fortran_single_underscore=1 ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_fortran_caps=1 ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_fortran_plain=1 ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_fortran_caps=1 ++ elif test "$ompi_cv_f77_external_symbol" != "skipped" ; then ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_F77_DOUBLE_UNDERSCORE $ompi_fortran_double_underscore ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_F77_SINGLE_UNDERSCORE $ompi_fortran_single_underscore ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_F77_CAPS $ompi_fortran_caps ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_F77_PLAIN $ompi_fortran_plain ++_ACEOF ++ ++ ++ rm -rf conftest.* ++ ++ ++# Make sure we can link with C code... ++if test $OMPI_WANT_F77_BINDINGS -eq 1; then ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if C and Fortran 77 are link compatible" >&5 ++echo $ECHO_N "checking if C and Fortran 77 are link compatible... $ECHO_C" >&6; } ++if test "${ompi_cv_c_link_Fortran_77+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo testfunc | $GREP _ >/dev/null 2>&1 ; then ++ testfunc_name=testfunc__ ++ else ++ testfunc_name=testfunc_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ testfunc_name=testfunc_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ testfunc_name=testfunc ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ testfunc_name=testfunc ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ testfunc_name=TESTFUNC ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ ++ # Write out C part ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ rm -f conftest_c.$ac_ext ++ cat > conftest_c.$ac_ext << EOF ++int $testfunc_name(int a); ++int $testfunc_name(int a) { return a; } ++EOF ++ ++ # Now compile both parts ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext" >&5 ++$CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ ompi_lang_link_with_c_libs="$LIBS" ++ LIBS="conftest_c.o $LIBS" ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ external testfunc ++ call testfunc(1) ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_c_link_Fortran_77="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_c_link_Fortran_77="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LIBS="$ompi_lang_link_with_c_libs" ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++else ++ unset ompi_status ++ ompi_cv_c_link_Fortran_77="no" ++fi ++ rm -f conftest_c.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_link_Fortran_77" >&5 ++echo "${ECHO_T}$ompi_cv_c_link_Fortran_77" >&6; } ++ ++ if test "$ompi_cv_c_link_Fortran_77" = "yes"; then ++ : ++else ++ cat <&5 ++echo "$as_me: error: C and Fortran 77 compilers are not link compatible. Can not continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++fi ++ ++ ++# Test to see if the F77 compilers likes the C++ exceptions flags. If ++# it doesn't, just abort. We *could* handle this scenario (e.g., ++# probe the F77 compiler for what flags would be necessary), but we're ++# kinda assuming that no one will care. If they do, they'll e-mail us. ++{ echo "$as_me:$LINENO: checking to see if F77 compiler likes the C++ exception flags" >&5 ++echo $ECHO_N "checking to see if F77 compiler likes the C++ exception flags... $ECHO_C" >&6; } ++if test $OMPI_WANT_F77_BINDINGS -eq 0; then ++ { echo "$as_me:$LINENO: result: skipped (no F77 bindings)" >&5 ++echo "${ECHO_T}skipped (no F77 bindings)" >&6; } ++elif test "$OMPI_CXX_EXCEPTIONS_CXXFLAGS" = ""; then ++ { echo "$as_me:$LINENO: result: skipped (no C++ exceptions flags)" >&5 ++echo "${ECHO_T}skipped (no C++ exceptions flags)" >&6; } ++else ++ FFLAGS="$FFLAGS $OMPI_CXX_EXCEPTIONS_CXXFLAGS" ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ INTEGER I ++ I = 3 ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: C++ exception flags are different between the C and C++ compilers; this configure script cannot currently handle this scenario. Either disable C++ exception support or send mail to the Open MPI users list." >&5 ++echo "$as_me: WARNING: C++ exception flags are different between the C and C++ compilers; this configure script cannot currently handle this scenario. Either disable C++ exception support or send mail to the Open MPI users list." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_WANT_F77_BINDINGS $OMPI_WANT_F77_BINDINGS ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_F77 "$OMPI_F77" ++_ACEOF ++ ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ OMPI_WANT_F77_BINDINGS_TRUE= ++ OMPI_WANT_F77_BINDINGS_FALSE='#' ++else ++ OMPI_WANT_F77_BINDINGS_TRUE='#' ++ OMPI_WANT_F77_BINDINGS_FALSE= ++fi ++ ++ ++ ++ ++# This allows us to mark bogus types, but still have them be a valid ++# [sentinel] value ++ ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define ompi_fortran_bogus_type_t int ++_ACEOF ++ ++ ++# We want to set the #define's for all of these, so invoke the macros ++# regardless of whether we have F77 support or not. ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=-1 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports LOGICAL... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_LOGICAL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ LOGICAL bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_LOGICAL="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_LOGICAL="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_LOGICAL" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_LOGICAL" >&6; } ++ ++ if test "$ompi_cv_f77_have_LOGICAL" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports LOGICAL... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 LOGICAL" >&5 ++echo $ECHO_N "checking size of Fortran 77 LOGICAL... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_LOGICAL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of LOGICAL when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of LOGICAL when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_LOGICAL=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_LOGICAL" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_LOGICAL" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_LOGICAL ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 LOGICAL does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 LOGICAL does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="yes" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to LOGICAL" >&5 ++echo $ECHO_N "checking for C type corresponding to LOGICAL... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_LOGICAL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_char" = "$oft_target_size" ; then ++ oft_real_type="char" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then ++ oft_real_type="int32_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then ++ oft_real_type="int" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then ++ oft_real_type="int64_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then ++ oft_real_type="long long" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then ++ oft_real_type="long" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_LOGICAL="not found" ++else ++ ompi_cv_find_type_LOGICAL="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_LOGICAL" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_LOGICAL" >&6; } ++ ++ if test "$ompi_cv_find_type_LOGICAL" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_LOGICAL" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_LOGICAL ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran LOGICAL" >&5 ++echo $ECHO_N "checking alignment of Fortran LOGICAL... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_LOGICAL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL" >&5 ++echo "$as_me: error: Could not determine alignment of LOGICAL" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of LOGICAL when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of LOGICAL when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_LOGICAL=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL" >&5 ++echo "$as_me: error: Could not determine alignment of LOGICAL" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_LOGICAL" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_LOGICAL" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_LOGICAL ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_LOGICAL $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_LOGICAL $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_LOGICAL $ofc_type_alignment ++_ACEOF ++ ++ if test "char, int32_t, int, int64_t, long long, long" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_logical_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_LOGICAL_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_LOGICAL=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_LOGICAL=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_LOGICAL=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=1 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL*1" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports LOGICAL*1... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_LOGICALp1+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ LOGICAL*1 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_LOGICALp1="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_LOGICALp1="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_LOGICALp1" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_LOGICALp1" >&6; } ++ ++ if test "$ompi_cv_f77_have_LOGICALp1" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL*1" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports LOGICAL*1... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 LOGICAL*1" >&5 ++echo $ECHO_N "checking size of Fortran 77 LOGICAL*1... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_LOGICALp1+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*1" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*1" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of LOGICAL*1 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of LOGICAL*1 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_LOGICALp1=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*1" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*1" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*1" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*1" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_LOGICALp1" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_LOGICALp1" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_LOGICALp1 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 LOGICAL*1 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 LOGICAL*1 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*1" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*1" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="yes" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to LOGICAL*1" >&5 ++echo $ECHO_N "checking for C type corresponding to LOGICAL*1... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_LOGICALp1+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_char" = "$oft_target_size" ; then ++ oft_real_type="char" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int8_t" = "$oft_target_size" ; then ++ oft_real_type="int8_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_short" = "$oft_target_size" ; then ++ oft_real_type="short" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then ++ oft_real_type="int32_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then ++ oft_real_type="int" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then ++ oft_real_type="int64_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then ++ oft_real_type="long long" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then ++ oft_real_type="long" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_LOGICALp1="not found" ++else ++ ompi_cv_find_type_LOGICALp1="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_LOGICALp1" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_LOGICALp1" >&6; } ++ ++ if test "$ompi_cv_find_type_LOGICALp1" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_LOGICALp1" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_LOGICALp1 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran LOGICAL*1" >&5 ++echo $ECHO_N "checking alignment of Fortran LOGICAL*1... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_LOGICALp1+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL*1" >&5 ++echo "$as_me: error: Could not determine alignment of LOGICAL*1" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of LOGICAL*1 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of LOGICAL*1 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_LOGICALp1=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL*1" >&5 ++echo "$as_me: error: Could not determine alignment of LOGICAL*1" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_LOGICALp1" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_LOGICALp1" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_LOGICALp1 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_LOGICAL1 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_LOGICAL1 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_LOGICAL1 $ofc_type_alignment ++_ACEOF ++ ++ if test "char, int8_t, short, int32_t, int, int64_t, long long, long" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_logical1_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_LOGICAL1_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_LOGICAL1=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_LOGICAL1=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_LOGICAL1=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=2 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL*2" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports LOGICAL*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_LOGICALp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ LOGICAL*2 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_LOGICALp2="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_LOGICALp2="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_LOGICALp2" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_LOGICALp2" >&6; } ++ ++ if test "$ompi_cv_f77_have_LOGICALp2" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL*2" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports LOGICAL*2... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 LOGICAL*2" >&5 ++echo $ECHO_N "checking size of Fortran 77 LOGICAL*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_LOGICALp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*2" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*2" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of LOGICAL*2 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of LOGICAL*2 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_LOGICALp2=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*2" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*2" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*2" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*2" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_LOGICALp2" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_LOGICALp2" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_LOGICALp2 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 LOGICAL*2 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 LOGICAL*2 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*2" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*2" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="yes" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to LOGICAL*2" >&5 ++echo $ECHO_N "checking for C type corresponding to LOGICAL*2... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_LOGICALp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_short" = "$oft_target_size" ; then ++ oft_real_type="short" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int16_t" = "$oft_target_size" ; then ++ oft_real_type="int16_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then ++ oft_real_type="int32_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then ++ oft_real_type="int" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then ++ oft_real_type="int64_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then ++ oft_real_type="long long" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then ++ oft_real_type="long" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_LOGICALp2="not found" ++else ++ ompi_cv_find_type_LOGICALp2="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_LOGICALp2" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_LOGICALp2" >&6; } ++ ++ if test "$ompi_cv_find_type_LOGICALp2" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_LOGICALp2" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_LOGICALp2 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran LOGICAL*2" >&5 ++echo $ECHO_N "checking alignment of Fortran LOGICAL*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_LOGICALp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL*2" >&5 ++echo "$as_me: error: Could not determine alignment of LOGICAL*2" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of LOGICAL*2 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of LOGICAL*2 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_LOGICALp2=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL*2" >&5 ++echo "$as_me: error: Could not determine alignment of LOGICAL*2" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_LOGICALp2" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_LOGICALp2" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_LOGICALp2 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_LOGICAL2 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_LOGICAL2 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_LOGICAL2 $ofc_type_alignment ++_ACEOF ++ ++ if test "short, int16_t, int32_t, int, int64_t, long long, long" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_logical2_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_LOGICAL2_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_LOGICAL2=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_LOGICAL2=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_LOGICAL2=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=4 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL*4" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports LOGICAL*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_LOGICALp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ LOGICAL*4 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_LOGICALp4="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_LOGICALp4="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_LOGICALp4" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_LOGICALp4" >&6; } ++ ++ if test "$ompi_cv_f77_have_LOGICALp4" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL*4" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports LOGICAL*4... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 LOGICAL*4" >&5 ++echo $ECHO_N "checking size of Fortran 77 LOGICAL*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_LOGICALp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*4" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*4" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of LOGICAL*4 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of LOGICAL*4 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_LOGICALp4=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*4" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*4" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*4" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*4" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_LOGICALp4" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_LOGICALp4" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_LOGICALp4 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 LOGICAL*4 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 LOGICAL*4 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*4" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*4" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="yes" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to LOGICAL*4" >&5 ++echo $ECHO_N "checking for C type corresponding to LOGICAL*4... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_LOGICALp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then ++ oft_real_type="int32_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then ++ oft_real_type="int" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then ++ oft_real_type="int64_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then ++ oft_real_type="long long" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then ++ oft_real_type="long" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_LOGICALp4="not found" ++else ++ ompi_cv_find_type_LOGICALp4="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_LOGICALp4" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_LOGICALp4" >&6; } ++ ++ if test "$ompi_cv_find_type_LOGICALp4" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_LOGICALp4" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_LOGICALp4 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran LOGICAL*4" >&5 ++echo $ECHO_N "checking alignment of Fortran LOGICAL*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_LOGICALp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL*4" >&5 ++echo "$as_me: error: Could not determine alignment of LOGICAL*4" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of LOGICAL*4 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of LOGICAL*4 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_LOGICALp4=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL*4" >&5 ++echo "$as_me: error: Could not determine alignment of LOGICAL*4" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_LOGICALp4" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_LOGICALp4" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_LOGICALp4 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_LOGICAL4 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_LOGICAL4 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_LOGICAL4 $ofc_type_alignment ++_ACEOF ++ ++ if test "int32_t, int, int64_t, long long, long" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_logical4_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_LOGICAL4_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_LOGICAL4=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_LOGICAL4=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_LOGICAL4=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=8 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL*8" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports LOGICAL*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_LOGICALp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ LOGICAL*8 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_LOGICALp8="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_LOGICALp8="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_LOGICALp8" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_LOGICALp8" >&6; } ++ ++ if test "$ompi_cv_f77_have_LOGICALp8" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL*8" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports LOGICAL*8... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 LOGICAL*8" >&5 ++echo $ECHO_N "checking size of Fortran 77 LOGICAL*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_LOGICALp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*8" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*8" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of LOGICAL*8 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of LOGICAL*8 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_LOGICALp8=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*8" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*8" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_LOGICALp8" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_LOGICALp8" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_LOGICALp8 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 LOGICAL*8 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 LOGICAL*8 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*8" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*8" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="yes" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to LOGICAL*8" >&5 ++echo $ECHO_N "checking for C type corresponding to LOGICAL*8... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_LOGICALp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then ++ oft_real_type="int" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then ++ oft_real_type="int64_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then ++ oft_real_type="long long" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then ++ oft_real_type="long" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_LOGICALp8="not found" ++else ++ ompi_cv_find_type_LOGICALp8="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_LOGICALp8" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_LOGICALp8" >&6; } ++ ++ if test "$ompi_cv_find_type_LOGICALp8" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_LOGICALp8" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_LOGICALp8 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran LOGICAL*8" >&5 ++echo $ECHO_N "checking alignment of Fortran LOGICAL*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_LOGICALp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL*8" >&5 ++echo "$as_me: error: Could not determine alignment of LOGICAL*8" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of LOGICAL*8 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of LOGICAL*8 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_LOGICALp8=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL*8" >&5 ++echo "$as_me: error: Could not determine alignment of LOGICAL*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_LOGICALp8" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_LOGICALp8" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_LOGICALp8 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_LOGICAL8 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_LOGICAL8 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_LOGICAL8 $ofc_type_alignment ++_ACEOF ++ ++ if test "int, int64_t, long long, long" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_logical8_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_LOGICAL8_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_LOGICAL8=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_LOGICAL8=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_LOGICAL8=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=-1 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_INTEGER+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ INTEGER bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_INTEGER="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_INTEGER="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGER" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_INTEGER" >&6; } ++ ++ if test "$ompi_cv_f77_have_INTEGER" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER" >&5 ++echo $ECHO_N "checking size of Fortran 77 INTEGER... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_INTEGER+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER" >&5 ++echo "$as_me: error: Could not determine size of INTEGER" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of INTEGER when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_INTEGER=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER" >&5 ++echo "$as_me: error: Could not determine size of INTEGER" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER" >&5 ++echo "$as_me: error: Could not determine size of INTEGER" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGER" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_INTEGER" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_INTEGER ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 INTEGER does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="yes" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to INTEGER" >&5 ++echo $ECHO_N "checking for C type corresponding to INTEGER... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_INTEGER+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then ++ oft_real_type="int32_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then ++ oft_real_type="int" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then ++ oft_real_type="int64_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then ++ oft_real_type="long long" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then ++ oft_real_type="long" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_INTEGER="not found" ++else ++ ompi_cv_find_type_INTEGER="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGER" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_INTEGER" >&6; } ++ ++ if test "$ompi_cv_find_type_INTEGER" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_INTEGER" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_INTEGER ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran INTEGER" >&5 ++echo $ECHO_N "checking alignment of Fortran INTEGER... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_INTEGER+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER" >&5 ++echo "$as_me: error: Could not determine alignment of INTEGER" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of INTEGER when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_INTEGER=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER" >&5 ++echo "$as_me: error: Could not determine alignment of INTEGER" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGER" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_INTEGER" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_INTEGER ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_INTEGER $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_INTEGER $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_INTEGER $ofc_type_alignment ++_ACEOF ++ ++ if test "int32_t, int, int64_t, long long, long" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_integer_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_INTEGER_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_INTEGER=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_INTEGER=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_INTEGER=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=1 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*1" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*1... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_INTEGERp1+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ INTEGER*1 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_INTEGERp1="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_INTEGERp1="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGERp1" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_INTEGERp1" >&6; } ++ ++ if test "$ompi_cv_f77_have_INTEGERp1" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*1" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*1... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER*1" >&5 ++echo $ECHO_N "checking size of Fortran 77 INTEGER*1... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_INTEGERp1+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*1" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*1" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*1 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of INTEGER*1 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_INTEGERp1=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*1" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*1" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*1" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*1" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGERp1" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_INTEGERp1" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_INTEGERp1 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER*1 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 INTEGER*1 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*1" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*1" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="no" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to INTEGER*1" >&5 ++echo $ECHO_N "checking for C type corresponding to INTEGER*1... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_INTEGERp1+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_char" = "$oft_target_size" ; then ++ oft_real_type="char" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int8_t" = "$oft_target_size" ; then ++ oft_real_type="int8_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_short" = "$oft_target_size" ; then ++ oft_real_type="short" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then ++ oft_real_type="int" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then ++ oft_real_type="int64_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then ++ oft_real_type="long long" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then ++ oft_real_type="long" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_INTEGERp1="not found" ++else ++ ompi_cv_find_type_INTEGERp1="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGERp1" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_INTEGERp1" >&6; } ++ ++ if test "$ompi_cv_find_type_INTEGERp1" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_INTEGERp1" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_INTEGERp1 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran INTEGER*1" >&5 ++echo $ECHO_N "checking alignment of Fortran INTEGER*1... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_INTEGERp1+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*1" >&5 ++echo "$as_me: error: Could not determine alignment of INTEGER*1" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER*1 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of INTEGER*1 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_INTEGERp1=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*1" >&5 ++echo "$as_me: error: Could not determine alignment of INTEGER*1" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGERp1" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_INTEGERp1" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp1 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_INTEGER1 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_INTEGER1 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_INTEGER1 $ofc_type_alignment ++_ACEOF ++ ++ if test "char, int8_t, short, int, int64_t, long long, long" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_integer1_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_INTEGER1_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_INTEGER1=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_INTEGER1=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_INTEGER1=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=2 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*2" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_INTEGERp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ INTEGER*2 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_INTEGERp2="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_INTEGERp2="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGERp2" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_INTEGERp2" >&6; } ++ ++ if test "$ompi_cv_f77_have_INTEGERp2" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*2" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*2... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER*2" >&5 ++echo $ECHO_N "checking size of Fortran 77 INTEGER*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_INTEGERp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*2" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*2" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*2 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of INTEGER*2 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_INTEGERp2=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*2" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*2" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*2" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*2" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGERp2" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_INTEGERp2" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_INTEGERp2 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER*2 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 INTEGER*2 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*2" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*2" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="no" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to INTEGER*2" >&5 ++echo $ECHO_N "checking for C type corresponding to INTEGER*2... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_INTEGERp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_short" = "$oft_target_size" ; then ++ oft_real_type="short" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int16_t" = "$oft_target_size" ; then ++ oft_real_type="int16_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then ++ oft_real_type="int32_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then ++ oft_real_type="int" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then ++ oft_real_type="int64_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then ++ oft_real_type="long long" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then ++ oft_real_type="long" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_INTEGERp2="not found" ++else ++ ompi_cv_find_type_INTEGERp2="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGERp2" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_INTEGERp2" >&6; } ++ ++ if test "$ompi_cv_find_type_INTEGERp2" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_INTEGERp2" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_INTEGERp2 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran INTEGER*2" >&5 ++echo $ECHO_N "checking alignment of Fortran INTEGER*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_INTEGERp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*2" >&5 ++echo "$as_me: error: Could not determine alignment of INTEGER*2" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER*2 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of INTEGER*2 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_INTEGERp2=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*2" >&5 ++echo "$as_me: error: Could not determine alignment of INTEGER*2" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGERp2" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_INTEGERp2" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp2 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_INTEGER2 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_INTEGER2 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_INTEGER2 $ofc_type_alignment ++_ACEOF ++ ++ if test "short, int16_t, int32_t, int, int64_t, long long, long" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_integer2_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_INTEGER2_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_INTEGER2=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_INTEGER2=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_INTEGER2=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=4 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*4" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_INTEGERp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ INTEGER*4 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_INTEGERp4="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_INTEGERp4="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGERp4" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_INTEGERp4" >&6; } ++ ++ if test "$ompi_cv_f77_have_INTEGERp4" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*4" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*4... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER*4" >&5 ++echo $ECHO_N "checking size of Fortran 77 INTEGER*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_INTEGERp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*4" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*4" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*4 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of INTEGER*4 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_INTEGERp4=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*4" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*4" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*4" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*4" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGERp4" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_INTEGERp4" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_INTEGERp4 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER*4 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 INTEGER*4 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*4" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*4" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="no" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to INTEGER*4" >&5 ++echo $ECHO_N "checking for C type corresponding to INTEGER*4... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_INTEGERp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then ++ oft_real_type="int32_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then ++ oft_real_type="int" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then ++ oft_real_type="int64_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then ++ oft_real_type="long long" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then ++ oft_real_type="long" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_INTEGERp4="not found" ++else ++ ompi_cv_find_type_INTEGERp4="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGERp4" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_INTEGERp4" >&6; } ++ ++ if test "$ompi_cv_find_type_INTEGERp4" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_INTEGERp4" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_INTEGERp4 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran INTEGER*4" >&5 ++echo $ECHO_N "checking alignment of Fortran INTEGER*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_INTEGERp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*4" >&5 ++echo "$as_me: error: Could not determine alignment of INTEGER*4" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER*4 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of INTEGER*4 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_INTEGERp4=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*4" >&5 ++echo "$as_me: error: Could not determine alignment of INTEGER*4" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGERp4" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_INTEGERp4" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp4 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_INTEGER4 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_INTEGER4 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_INTEGER4 $ofc_type_alignment ++_ACEOF ++ ++ if test "int32_t, int, int64_t, long long, long" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_integer4_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_INTEGER4_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_INTEGER4=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_INTEGER4=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_INTEGER4=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=8 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*8" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_INTEGERp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ INTEGER*8 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_INTEGERp8="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_INTEGERp8="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGERp8" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_INTEGERp8" >&6; } ++ ++ if test "$ompi_cv_f77_have_INTEGERp8" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*8" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*8... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER*8" >&5 ++echo $ECHO_N "checking size of Fortran 77 INTEGER*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_INTEGERp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*8" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*8" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*8 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of INTEGER*8 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_INTEGERp8=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*8" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*8" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGERp8" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_INTEGERp8" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_INTEGERp8 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER*8 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 INTEGER*8 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*8" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*8" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="no" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to INTEGER*8" >&5 ++echo $ECHO_N "checking for C type corresponding to INTEGER*8... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_INTEGERp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then ++ oft_real_type="int" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then ++ oft_real_type="int64_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then ++ oft_real_type="long long" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then ++ oft_real_type="long" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_INTEGERp8="not found" ++else ++ ompi_cv_find_type_INTEGERp8="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGERp8" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_INTEGERp8" >&6; } ++ ++ if test "$ompi_cv_find_type_INTEGERp8" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_INTEGERp8" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_INTEGERp8 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran INTEGER*8" >&5 ++echo $ECHO_N "checking alignment of Fortran INTEGER*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_INTEGERp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*8" >&5 ++echo "$as_me: error: Could not determine alignment of INTEGER*8" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER*8 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of INTEGER*8 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_INTEGERp8=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*8" >&5 ++echo "$as_me: error: Could not determine alignment of INTEGER*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGERp8" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_INTEGERp8" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp8 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_INTEGER8 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_INTEGER8 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_INTEGER8 $ofc_type_alignment ++_ACEOF ++ ++ if test "int, int64_t, long long, long" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_integer8_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_INTEGER8_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_INTEGER8=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_INTEGER8=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_INTEGER8=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=16 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*16" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_INTEGERp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ INTEGER*16 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_INTEGERp16="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_INTEGERp16="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGERp16" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_INTEGERp16" >&6; } ++ ++ if test "$ompi_cv_f77_have_INTEGERp16" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*16" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*16... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER*16" >&5 ++echo $ECHO_N "checking size of Fortran 77 INTEGER*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_INTEGERp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*16" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*16" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*16 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of INTEGER*16 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_INTEGERp16=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*16" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*16" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*16" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*16" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGERp16" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_INTEGERp16" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_INTEGERp16 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER*16 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 INTEGER*16 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*16" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*16" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="no" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to INTEGER*16" >&5 ++echo $ECHO_N "checking for C type corresponding to INTEGER*16... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_INTEGERp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then ++ oft_real_type="int" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then ++ oft_real_type="int64_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then ++ oft_real_type="long long" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then ++ oft_real_type="long" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_INTEGERp16="not found" ++else ++ ompi_cv_find_type_INTEGERp16="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGERp16" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_INTEGERp16" >&6; } ++ ++ if test "$ompi_cv_find_type_INTEGERp16" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_INTEGERp16" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_INTEGERp16 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran INTEGER*16" >&5 ++echo $ECHO_N "checking alignment of Fortran INTEGER*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_INTEGERp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*16" >&5 ++echo "$as_me: error: Could not determine alignment of INTEGER*16" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER*16 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of INTEGER*16 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_INTEGERp16=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*16" >&5 ++echo "$as_me: error: Could not determine alignment of INTEGER*16" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGERp16" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_INTEGERp16" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp16 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_INTEGER16 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_INTEGER16 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_INTEGER16 $ofc_type_alignment ++_ACEOF ++ ++ if test "int, int64_t, long long, long" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_integer16_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_INTEGER16_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_INTEGER16=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_INTEGER16=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_INTEGER16=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=-1 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports REAL... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_REAL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ REAL bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_REAL="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_REAL="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_REAL" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_REAL" >&6; } ++ ++ if test "$ompi_cv_f77_have_REAL" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports REAL... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 REAL" >&5 ++echo $ECHO_N "checking size of Fortran 77 REAL... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_REAL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL" >&5 ++echo "$as_me: error: Could not determine size of REAL" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of REAL when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of REAL when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_REAL=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL" >&5 ++echo "$as_me: error: Could not determine size of REAL" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL" >&5 ++echo "$as_me: error: Could not determine size of REAL" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_REAL" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_REAL" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_REAL ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 REAL does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 REAL does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 REAL" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 REAL" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="yes" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to REAL" >&5 ++echo $ECHO_N "checking for C type corresponding to REAL... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_REAL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then ++ oft_real_type="float" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then ++ oft_real_type="double" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then ++ oft_real_type="long double" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_REAL="not found" ++else ++ ompi_cv_find_type_REAL="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_REAL" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_REAL" >&6; } ++ ++ if test "$ompi_cv_find_type_REAL" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_REAL" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_REAL ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran REAL" >&5 ++echo $ECHO_N "checking alignment of Fortran REAL... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_REAL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL" >&5 ++echo "$as_me: error: Could not determine alignment of REAL" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of REAL when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of REAL when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_REAL=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL" >&5 ++echo "$as_me: error: Could not determine alignment of REAL" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_REAL" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_REAL" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_REAL ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_REAL $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_REAL $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_REAL $ofc_type_alignment ++_ACEOF ++ ++ if test "float, double, long double" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_real_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_REAL_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_REAL=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_REAL=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_REAL=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=2 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*2" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports REAL*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_REALp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ REAL*2 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_REALp2="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_REALp2="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_REALp2" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_REALp2" >&6; } ++ ++ if test "$ompi_cv_f77_have_REALp2" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*2" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports REAL*2... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 REAL*2" >&5 ++echo $ECHO_N "checking size of Fortran 77 REAL*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_REALp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*2" >&5 ++echo "$as_me: error: Could not determine size of REAL*2" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of REAL*2 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of REAL*2 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_REALp2=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*2" >&5 ++echo "$as_me: error: Could not determine size of REAL*2" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*2" >&5 ++echo "$as_me: error: Could not determine size of REAL*2" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_REALp2" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_REALp2" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_REALp2 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 REAL*2 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 REAL*2 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 REAL*2" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 REAL*2" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="no" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to REAL*2" >&5 ++echo $ECHO_N "checking for C type corresponding to REAL*2... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_REALp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then ++ oft_real_type="float" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then ++ oft_real_type="double" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then ++ oft_real_type="long double" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_REALp2="not found" ++else ++ ompi_cv_find_type_REALp2="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_REALp2" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_REALp2" >&6; } ++ ++ if test "$ompi_cv_find_type_REALp2" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_REALp2" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_REALp2 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran REAL*2" >&5 ++echo $ECHO_N "checking alignment of Fortran REAL*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_REALp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*2" >&5 ++echo "$as_me: error: Could not determine alignment of REAL*2" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of REAL*2 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of REAL*2 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_REALp2=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*2" >&5 ++echo "$as_me: error: Could not determine alignment of REAL*2" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_REALp2" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_REALp2" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_REALp2 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_REAL2 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_REAL2 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_REAL2 $ofc_type_alignment ++_ACEOF ++ ++ if test "float, double, long double" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_real2_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_REAL2_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_REAL2=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_REAL2=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_REAL2=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=4 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*4" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports REAL*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_REALp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ REAL*4 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_REALp4="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_REALp4="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_REALp4" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_REALp4" >&6; } ++ ++ if test "$ompi_cv_f77_have_REALp4" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*4" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports REAL*4... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 REAL*4" >&5 ++echo $ECHO_N "checking size of Fortran 77 REAL*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_REALp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*4" >&5 ++echo "$as_me: error: Could not determine size of REAL*4" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of REAL*4 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of REAL*4 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_REALp4=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*4" >&5 ++echo "$as_me: error: Could not determine size of REAL*4" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*4" >&5 ++echo "$as_me: error: Could not determine size of REAL*4" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_REALp4" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_REALp4" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_REALp4 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 REAL*4 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 REAL*4 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 REAL*4" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 REAL*4" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="no" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to REAL*4" >&5 ++echo $ECHO_N "checking for C type corresponding to REAL*4... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_REALp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then ++ oft_real_type="float" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then ++ oft_real_type="double" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then ++ oft_real_type="long double" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_REALp4="not found" ++else ++ ompi_cv_find_type_REALp4="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_REALp4" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_REALp4" >&6; } ++ ++ if test "$ompi_cv_find_type_REALp4" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_REALp4" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_REALp4 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran REAL*4" >&5 ++echo $ECHO_N "checking alignment of Fortran REAL*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_REALp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*4" >&5 ++echo "$as_me: error: Could not determine alignment of REAL*4" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of REAL*4 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of REAL*4 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_REALp4=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*4" >&5 ++echo "$as_me: error: Could not determine alignment of REAL*4" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_REALp4" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_REALp4" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_REALp4 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_REAL4 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_REAL4 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_REAL4 $ofc_type_alignment ++_ACEOF ++ ++ if test "float, double, long double" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_real4_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_REAL4_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_REAL4=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_REAL4=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_REAL4=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=8 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*8" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports REAL*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_REALp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ REAL*8 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_REALp8="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_REALp8="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_REALp8" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_REALp8" >&6; } ++ ++ if test "$ompi_cv_f77_have_REALp8" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*8" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports REAL*8... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 REAL*8" >&5 ++echo $ECHO_N "checking size of Fortran 77 REAL*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_REALp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*8" >&5 ++echo "$as_me: error: Could not determine size of REAL*8" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of REAL*8 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of REAL*8 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_REALp8=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*8" >&5 ++echo "$as_me: error: Could not determine size of REAL*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*8" >&5 ++echo "$as_me: error: Could not determine size of REAL*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_REALp8" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_REALp8" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_REALp8 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 REAL*8 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 REAL*8 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 REAL*8" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 REAL*8" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="no" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to REAL*8" >&5 ++echo $ECHO_N "checking for C type corresponding to REAL*8... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_REALp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then ++ oft_real_type="float" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then ++ oft_real_type="double" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then ++ oft_real_type="long double" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_REALp8="not found" ++else ++ ompi_cv_find_type_REALp8="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_REALp8" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_REALp8" >&6; } ++ ++ if test "$ompi_cv_find_type_REALp8" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_REALp8" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_REALp8 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran REAL*8" >&5 ++echo $ECHO_N "checking alignment of Fortran REAL*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_REALp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*8" >&5 ++echo "$as_me: error: Could not determine alignment of REAL*8" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of REAL*8 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of REAL*8 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_REALp8=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*8" >&5 ++echo "$as_me: error: Could not determine alignment of REAL*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_REALp8" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_REALp8" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_REALp8 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_REAL8 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_REAL8 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_REAL8 $ofc_type_alignment ++_ACEOF ++ ++ if test "float, double, long double" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_real8_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_REAL8_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_REAL8=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_REAL8=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_REAL8=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=16 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*16" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports REAL*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_REALp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ REAL*16 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_REALp16="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_REALp16="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_REALp16" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_REALp16" >&6; } ++ ++ if test "$ompi_cv_f77_have_REALp16" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*16" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports REAL*16... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 REAL*16" >&5 ++echo $ECHO_N "checking size of Fortran 77 REAL*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_REALp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*16" >&5 ++echo "$as_me: error: Could not determine size of REAL*16" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of REAL*16 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of REAL*16 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_REALp16=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*16" >&5 ++echo "$as_me: error: Could not determine size of REAL*16" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*16" >&5 ++echo "$as_me: error: Could not determine size of REAL*16" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_REALp16" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_REALp16" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_REALp16 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 REAL*16 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 REAL*16 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 REAL*16" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 REAL*16" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="no" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to REAL*16" >&5 ++echo $ECHO_N "checking for C type corresponding to REAL*16... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_REALp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then ++ oft_real_type="float" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then ++ oft_real_type="double" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then ++ oft_real_type="long double" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_REALp16="not found" ++else ++ ompi_cv_find_type_REALp16="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_REALp16" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_REALp16" >&6; } ++ ++ if test "$ompi_cv_find_type_REALp16" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_REALp16" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_REALp16 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran REAL*16" >&5 ++echo $ECHO_N "checking alignment of Fortran REAL*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_REALp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*16" >&5 ++echo "$as_me: error: Could not determine alignment of REAL*16" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of REAL*16 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of REAL*16 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_REALp16=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*16" >&5 ++echo "$as_me: error: Could not determine alignment of REAL*16" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_REALp16" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_REALp16" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_REALp16 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_REAL16 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_REAL16 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_REAL16 $ofc_type_alignment ++_ACEOF ++ ++ if test "float, double, long double" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_real16_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_REAL16_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_REAL16=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_REAL16=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_REAL16=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++# In some compilers, the bit representation of REAL*16 is not the same ++# as the C counterpart that we found. If this is the case, then we ++# want to disable reduction support for MPI_REAL16 (per ticket #1603). ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy define_value msg; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy define_value msg\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ msg="in C" ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ if test "$OMPI_HAVE_FORTRAN_REAL16" = "1"; then ++ msg="of $OMPI_FORTRAN_REAL16_C_TYPE" ++fi ++ ++fi ++ ++ { echo "$as_me:$LINENO: checking if REAL*16 matches bit representation $msg" >&5 ++echo $ECHO_N "checking if REAL*16 matches bit representation $msg... $ECHO_C" >&6; } ++if test "${ompi_cv_real16_c_equiv+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$OMPI_WANT_F77_BINDINGS" = "1" -a "$OMPI_HAVE_FORTRAN_REAL16" = "1"; then ++ ++ # Make a C function of the Right name ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo c | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_c_fn=c__ ++ else ++ ompi_ac_c_fn=c_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_c_fn=c_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_c_fn=c ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_c_fn=c ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_c_fn=C ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ ++ # C module ++ cat > conftest_c.c < ++#include ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_c_fn($OMPI_FORTRAN_REAL16_C_TYPE *a) { ++ FILE *fp = fopen("conftestval", "w"); ++ if (NULL == fp) exit(1); ++ fprintf(fp, "%s\n", (1.1L == *a) ? "yes" : "no"); ++ fclose(fp); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ # Fortran module ++ cat > conftest_f.f <&5 ++$CC $CFLAGS -I. -c conftest_c.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftest_f.f conftest_c.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftest_f.f conftest_c.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ if test "$happy" = "no"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine if REAL*16 bit-matches C type" >&5 ++echo "$as_me: error: Could not determine if REAL*16 bit-matches C type" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ # If it worked so far, try running to see what we get ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine if REAL*16 bit-matches C if cross compiling" >&5 ++echo "$as_me: error: Can not determine if REAL*16 bit-matches C if cross compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_real16_c_equiv=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine if REAL*16 bit-matches C type" >&5 ++echo "$as_me: error: Could not determine if REAL*16 bit-matches C type" >&2;} ++ { (exit 1); exit 1; }; } ++ ++fi ++ ++fi ++ ++ ++ # All done; whack tmp files ++ rm -rf conftest* ++ ++else ++ ++ # No fortran bindings or no REAL*16 ++ if test "$OMPI_WANT_F77_BINDINGS" = "0"; then ++ msg="no (no Fortran bindings)" ++else ++ msg="no (no REAL*16)" ++fi ++ ++ ompi_cv_real16_c_equiv=$msg ++ ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_real16_c_equiv" >&5 ++echo "${ECHO_T}$ompi_cv_real16_c_equiv" >&6; } ++ ++ ompi_real16_matches_c=$ompi_cv_real16_c_equiv ++ ++ ++ if test "$ompi_real16_matches_c" = "yes"; then ++ define_value=1 ++else ++ define_value=0 ++ { echo "$as_me:$LINENO: WARNING: MPI_REAL16 and MPI_COMPLEX32 support have been disabled" >&5 ++echo "$as_me: WARNING: MPI_REAL16 and MPI_COMPLEX32 support have been disabled" >&2;} ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_REAL16_MATCHES_C $define_value ++_ACEOF ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=-1 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports DOUBLE PRECISION" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports DOUBLE PRECISION... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_DOUBLE_PRECISION+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ DOUBLE PRECISION bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_DOUBLE_PRECISION="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_DOUBLE_PRECISION="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_DOUBLE_PRECISION" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_DOUBLE_PRECISION" >&6; } ++ ++ if test "$ompi_cv_f77_have_DOUBLE_PRECISION" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports DOUBLE PRECISION" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports DOUBLE PRECISION... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 DOUBLE PRECISION" >&5 ++echo $ECHO_N "checking size of Fortran 77 DOUBLE PRECISION... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_DOUBLE_PRECISION+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of DOUBLE PRECISION" >&5 ++echo "$as_me: error: Could not determine size of DOUBLE PRECISION" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of DOUBLE PRECISION when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of DOUBLE PRECISION when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_DOUBLE_PRECISION=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of DOUBLE PRECISION" >&5 ++echo "$as_me: error: Could not determine size of DOUBLE PRECISION" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of DOUBLE PRECISION" >&5 ++echo "$as_me: error: Could not determine size of DOUBLE PRECISION" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_DOUBLE_PRECISION" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_DOUBLE_PRECISION" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_DOUBLE_PRECISION ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 DOUBLE PRECISION does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 DOUBLE PRECISION does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 DOUBLE PRECISION" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 DOUBLE PRECISION" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="yes" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to DOUBLE PRECISION" >&5 ++echo $ECHO_N "checking for C type corresponding to DOUBLE PRECISION... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_DOUBLE_PRECISION+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then ++ oft_real_type="float" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then ++ oft_real_type="double" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then ++ oft_real_type="long double" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_DOUBLE_PRECISION="not found" ++else ++ ompi_cv_find_type_DOUBLE_PRECISION="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_DOUBLE_PRECISION" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_DOUBLE_PRECISION" >&6; } ++ ++ if test "$ompi_cv_find_type_DOUBLE_PRECISION" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_DOUBLE_PRECISION" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_DOUBLE_PRECISION ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran DOUBLE PRECISION" >&5 ++echo $ECHO_N "checking alignment of Fortran DOUBLE PRECISION... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_DOUBLE_PRECISION+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of DOUBLE PRECISION" >&5 ++echo "$as_me: error: Could not determine alignment of DOUBLE PRECISION" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of DOUBLE PRECISION when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of DOUBLE PRECISION when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_DOUBLE_PRECISION=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of DOUBLE PRECISION" >&5 ++echo "$as_me: error: Could not determine alignment of DOUBLE PRECISION" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_DOUBLE_PRECISION" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_DOUBLE_PRECISION" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_DOUBLE_PRECISION ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_DOUBLE_PRECISION $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_DOUBLE_PRECISION $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_DOUBLE_PRECISION $ofc_type_alignment ++_ACEOF ++ ++ if test "float, double, long double" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_double_precision_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_DOUBLE_PRECISION_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_DOUBLE_PRECISION=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_DOUBLE_PRECISION=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_DOUBLE_PRECISION=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=-1 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_COMPLEX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ COMPLEX bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_COMPLEX="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_COMPLEX="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_COMPLEX" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_COMPLEX" >&6; } ++ ++ if test "$ompi_cv_f77_have_COMPLEX" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 COMPLEX" >&5 ++echo $ECHO_N "checking size of Fortran 77 COMPLEX... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_COMPLEX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of COMPLEX when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_COMPLEX=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_COMPLEX" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_COMPLEX" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_COMPLEX ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 COMPLEX does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 COMPLEX does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran COMPLEX" >&5 ++echo $ECHO_N "checking alignment of Fortran COMPLEX... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_COMPLEX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX" >&5 ++echo "$as_me: error: Could not determine alignment of COMPLEX" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of COMPLEX when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of COMPLEX when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_COMPLEX=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX" >&5 ++echo "$as_me: error: Could not determine alignment of COMPLEX" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_COMPLEX" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_COMPLEX" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_COMPLEX ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_COMPLEX $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_COMPLEX $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_COMPLEX $ofc_type_alignment ++_ACEOF ++ ++ if test "" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_complex_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_COMPLEX_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_COMPLEX=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_COMPLEX=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_COMPLEX=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++# The complex*N tests are a bit different (note: the complex tests are ++# the same as all the rest, because complex is a composite of two ++# reals, which we *have* to have. It's only the complex*N tests that ++# are different). The fortran complex types are composites of the ++# real*(N/2) types. So for us to support complex*N, two conditions ++# must be true: ++# ++# a) we must support real*(N/2) (i.e., compiler supports it and we ++# have a back-end C type for it) ++# b) compiler supports complex*N ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=8 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*8" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_COMPLEXp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ COMPLEX*8 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_COMPLEXp8="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_COMPLEXp8="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_COMPLEXp8" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_COMPLEXp8" >&6; } ++ ++ if test "$ompi_cv_f77_have_COMPLEXp8" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*8" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX*8... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 COMPLEX*8" >&5 ++echo $ECHO_N "checking size of Fortran 77 COMPLEX*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_COMPLEXp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*8" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX*8" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*8 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of COMPLEX*8 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_COMPLEXp8=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*8" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*8" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_COMPLEXp8" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_COMPLEXp8" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_COMPLEXp8 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 COMPLEX*8 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 COMPLEX*8 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*8" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*8" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran COMPLEX*8" >&5 ++echo $ECHO_N "checking alignment of Fortran COMPLEX*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_COMPLEXp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*8" >&5 ++echo "$as_me: error: Could not determine alignment of COMPLEX*8" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of COMPLEX*8 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of COMPLEX*8 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_COMPLEXp8=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*8" >&5 ++echo "$as_me: error: Could not determine alignment of COMPLEX*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_COMPLEXp8" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_COMPLEXp8" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_COMPLEXp8 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_COMPLEX8 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_COMPLEX8 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_COMPLEX8 $ofc_type_alignment ++_ACEOF ++ ++ if test "" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_complex8_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_COMPLEX8_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_COMPLEX8=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_COMPLEX8=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_COMPLEX8=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=16 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*16" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_COMPLEXp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ COMPLEX*16 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_COMPLEXp16="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_COMPLEXp16="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_COMPLEXp16" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_COMPLEXp16" >&6; } ++ ++ if test "$ompi_cv_f77_have_COMPLEXp16" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*16" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX*16... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 COMPLEX*16" >&5 ++echo $ECHO_N "checking size of Fortran 77 COMPLEX*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_COMPLEXp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*16" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX*16" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*16 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of COMPLEX*16 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_COMPLEXp16=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*16" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX*16" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*16" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX*16" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_COMPLEXp16" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_COMPLEXp16" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_COMPLEXp16 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 COMPLEX*16 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 COMPLEX*16 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*16" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*16" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran COMPLEX*16" >&5 ++echo $ECHO_N "checking alignment of Fortran COMPLEX*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_COMPLEXp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*16" >&5 ++echo "$as_me: error: Could not determine alignment of COMPLEX*16" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of COMPLEX*16 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of COMPLEX*16 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_COMPLEXp16=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*16" >&5 ++echo "$as_me: error: Could not determine alignment of COMPLEX*16" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_COMPLEXp16" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_COMPLEXp16" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_COMPLEXp16 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_COMPLEX16 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_COMPLEX16 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_COMPLEX16 $ofc_type_alignment ++_ACEOF ++ ++ if test "" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_complex16_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_COMPLEX16_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_COMPLEX16=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_COMPLEX16=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_COMPLEX16=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=32 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*32" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX*32... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_COMPLEXp32+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ COMPLEX*32 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_COMPLEXp32="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_COMPLEXp32="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_COMPLEXp32" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_COMPLEXp32" >&6; } ++ ++ if test "$ompi_cv_f77_have_COMPLEXp32" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*32" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX*32... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 COMPLEX*32" >&5 ++echo $ECHO_N "checking size of Fortran 77 COMPLEX*32... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_COMPLEXp32+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*32" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX*32" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*32 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of COMPLEX*32 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_COMPLEXp32=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*32" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX*32" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*32" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX*32" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_COMPLEXp32" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_COMPLEXp32" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_COMPLEXp32 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 COMPLEX*32 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 COMPLEX*32 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*32" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*32" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran COMPLEX*32" >&5 ++echo $ECHO_N "checking alignment of Fortran COMPLEX*32... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_COMPLEXp32+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*32" >&5 ++echo "$as_me: error: Could not determine alignment of COMPLEX*32" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of COMPLEX*32 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of COMPLEX*32 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_COMPLEXp32=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*32" >&5 ++echo "$as_me: error: Could not determine alignment of COMPLEX*32" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_COMPLEXp32" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_COMPLEXp32" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_COMPLEXp32 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_COMPLEX32 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_COMPLEX32 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_COMPLEX32 $ofc_type_alignment ++_ACEOF ++ ++ if test "" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_complex32_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_COMPLEX32_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_COMPLEX32=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_COMPLEX32=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_COMPLEX32=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++# Regardless of whether we have fortran bindings, or even a fortran ++# compiler, get the max value for a fortran MPI handle (this macro ++# handles the case where we don't have a fortran compiler). ++ ++ ++ { echo "$as_me:$LINENO: checking for max Fortran MPI handle index" >&5 ++echo $ECHO_N "checking for max Fortran MPI handle index... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_fortran_handle_max+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Find max fortran INTEGER value. Set to sentinel value if we don't ++ # have a Fortran compiler (e.g., if --disable-f77 was given). ++ if test "$OMPI_WANT_F77_BINDINGS" = "0" ; then ++ ompi_fint_max=0 ++ else ++ # Calculate the number of f's that we need to append to the hex ++ # value. Do one less than we really need becaue we assume the ++ # top nybble is 0x7 to avoid sign issues. ++ ompi_numf=`expr $OMPI_SIZEOF_FORTRAN_INTEGER \* 2 - 1` ++ ompi_fint_max=0x7 ++ while test "$ompi_numf" -gt "0"; do ++ ompi_fint_max=${ompi_fint_max}f ++ ompi_numf=`expr $ompi_numf - 1` ++ done ++ fi ++ ++ # Get INT_MAX. Compute a SWAG if we are cross compiling or something ++ # goes wrong. ++ rm -f conftest.out >/dev/null 2>&1 ++ if test "$cross_compiling" = yes; then ++ #cross compiling is fun. compute INT_MAX same as INTEGER max ++ ompi_numf=`expr $ac_cv_sizeof_int \* 2 - 1` ++ ompi_cint_max=0x7 ++ while test "$ompi_numf" -gt "0" ; do ++ ompi_cint_max=${ompi_cint_max}f ++ ompi_numf=`expr $ompi_numf - 1` ++ done ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++ ++int ++main () ++{ ++FILE *fp = fopen("conftest.out", "w"); ++long cint = INT_MAX; ++fprintf(fp, "%ld", cint); ++fclose(fp); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cint_max=`cat conftest.out` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++ompi_cint_max=0 ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ ++ if test "$ompi_cint_max" = "0" ; then ++ # wow - something went really wrong. Be conservative ++ ompi_cv_f77_fortran_handle_max=32767 ++ elif test "$ompi_fint_max" = "0" ; then ++ # we aren't compiling Fortran - just set it to C INT_MAX ++ ompi_cv_f77_fortran_handle_max=$ompi_cint_max ++ else ++ # take the lesser of C INT_MAX and Fortran INTEGER ++ # max. The resulting value will then be storable in ++ # either type. There's no easy way to do this in ++ # the shell, so make the preprocessor do it. ++ ompi_cv_f77_fortran_handle_max="( $ompi_fint_max < $ompi_cint_max ? $ompi_fint_max : $ompi_cint_max )" ++ fi ++ rm -f conftest.out > /dev/null 2>&1 ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_fortran_handle_max" >&5 ++echo "${ECHO_T}$ompi_cv_f77_fortran_handle_max" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_FORTRAN_HANDLE_MAX $ompi_cv_f77_fortran_handle_max ++_ACEOF ++ ++ ++ ++# ++# Check for Fortran compilers value of TRUE and for the correct assumption ++# on LOGICAL for conversion into what C considers to be a true value ++# ++ ++ # invalidate cache if result came from a run where F77 was disabled ++ if test "$ompi_cv_f77_true_value" = "0" ; then ++ unset ompi_cv_f77_true_value ++ fi ++ ++ { echo "$as_me:$LINENO: checking FORTRAN value for .TRUE. logical type" >&5 ++echo $ECHO_N "checking FORTRAN value for .TRUE. logical type... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_true_value+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "" = "none" -o "$OMPI_WANT_F77_BINDINGS" = "0" ; then ++ ompi_cv_f77_true_value=0 ++ else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo print | $GREP _ >/dev/null 2>&1 ; then ++ ompi_print_logical_fn=print__ ++ else ++ ompi_print_logical_fn=print_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_print_logical_fn=print_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_print_logical_fn=print ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_print_logical_fn=print ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_print_logical_fn=PRINT ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ ++ # ++ # C module ++ # We really need the confdefs.h Header file for ++ # the ompi_fortran_logical_t definition ++ # ++ if test \! -f confdefs.h ; then ++ { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Cannot find confdefs.h file for config test" >&5 ++echo "$as_me: WARNING: *** Cannot find confdefs.h file for config test" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ cat > conftest.c < ++#include ++#include "confdefs.h" ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ ++void $ompi_print_logical_fn(ompi_fortran_logical_t * logical); ++ ++void $ompi_print_logical_fn(ompi_fortran_logical_t * logical) ++{ ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ ++ if( SIZEOF_INT >= sizeof(ompi_fortran_logical_t) ) { ++ fprintf(f, "%d\n", (int)*logical); ++ } else if (SIZEOF_LONG >= sizeof(ompi_fortran_logical_t) ) { ++ fprintf(f, "%ld\n", (long) *logical); ++#ifdef HAVE_LONG_LONG ++ } else if (SIZEOF_LONG_LONG >= sizeof(ompi_fortran_logical_t) ) { ++ fprintf(f, "%lld\n", (long long) *logical); ++#endif ++ } else { ++ exit(1); ++ } ++} ++ ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ cat > conftestf.f <&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS -o conftest conftest.o conftestf.f $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS -o conftest conftest.o conftestf.f $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy=1 ++else ++ unset ompi_status ++ happy=0 ++fi ++else ++ unset ompi_status ++ happy=0 ++fi ++ ++ if test "$happy" = "0" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine value of Fortran .TRUE.. Aborting." >&5 ++echo "$as_me: error: Could not determine value of Fortran .TRUE.. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine value of .TRUE. when cross-compiling" >&5 ++echo "$as_me: error: Can not determine value of .TRUE. when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_true_value=`sed 's/ *//' conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine value of Fotran .TRUE.. Aborting." >&5 ++echo "$as_me: error: Could not determine value of Fotran .TRUE.. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ fi ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_true_value" >&5 ++echo "${ECHO_T}$ompi_cv_f77_true_value" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_FORTRAN_VALUE_TRUE $ompi_cv_f77_true_value ++_ACEOF ++ ++ ++ unset happy ompi_print_logical_fn ++ rm -rf conftest* ++ ++ ++ { echo "$as_me:$LINENO: checking for correct handling of FORTRAN logical arrays" >&5 ++echo $ECHO_N "checking for correct handling of FORTRAN logical arrays... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_logical_array_correct+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "" = "none" -o "$OMPI_WANT_F77_BINDINGS" = "0"; then ++ ompi_cv_f77_logical_array_correct=yes ++ else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo check | $GREP _ >/dev/null 2>&1 ; then ++ ompi_check_logical_fn=check__ ++ else ++ ompi_check_logical_fn=check_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_check_logical_fn=check_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_check_logical_fn=check ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_check_logical_fn=check ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_check_logical_fn=CHECK ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ ++ # Fortran module ++ cat > conftestf.f <&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Cannot find confdefs.h file for config test" >&5 ++echo "$as_me: WARNING: *** Cannot find confdefs.h file for config test" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ cat > conftest.c < ++#include ++#include "confdefs.h" ++ ++#ifdef __cplusplus ++ extern "C" { ++#endif ++void $ompi_check_logical_fn(ompi_fortran_logical_t * logical); ++ ++void $ompi_check_logical_fn(ompi_fortran_logical_t * logical) ++{ ++ int result = 0; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ ++ if (logical[0] == 0 && ++ logical[1] == $ompi_cv_f77_true_value) ++ result = 1; ++ fprintf(f, "%d\n", result); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ # Try the compilation and run. Can't use AC_TRY_RUN ++ # because it's two module files. ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy=1 ++else ++ unset ompi_status ++ happy=0 ++fi ++else ++ unset ompi_status ++ happy=0 ++fi ++ if test "$happy" = "0" ; then ++ { { echo "$as_me:$LINENO: error: Error determining if arrays of logical values work properly." >&5 ++echo "$as_me: error: Error determining if arrays of logical values work properly." >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ # assume we're ok ++ ompi_cv_f77_logical_array_correct=yes ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test "`cat conftestval`" = "1" ; then ++ ompi_cv_f77_logical_array_correct=yes ++ else ++ ompi_cv_f77_logical_array_correct=no ++ fi ++else ++ unset ompi_status ++ ompi_cv_f77_logical_array_correct=no ++fi ++fi ++ ++ fi ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_logical_array_correct" >&5 ++echo "${ECHO_T}$ompi_cv_f77_logical_array_correct" >&6; } ++ ++ if test "$ompi_cv_f77_logical_array_correct" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Error determining if arrays of logical values work properly." >&5 ++echo "$as_me: error: Error determining if arrays of logical values work properly." >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ unset happy ompi_check_logical_fn ++ rm -rf conftest* ++ ++ ++# ++# There are 2 layers to the MPI f77 layer. The only extra thing that ++# determine f77 bindings is that fortran can be disabled by user. In ++# such cases, we need to not build the target at all. One layer ++# generates MPI_f77* bindings. The other layer generates PMPI_f77* ++# bindings. The following conditions determine whether each (or both) ++# these layers are built. ++# ++# Superceeding clause: ++# - fortran77 bindings should be enabled, else everything is ++# disabled ++# 1. MPI_f77* bindings are needed if: ++# - Profiling is not required ++# - Profiling is required but weak symbols are not ++# supported ++# 2. PMPI_* bindings are needed if profiling is required. Hence we ++# define 2 conditionals which tell us whether each of these layers ++# need to be built or NOT ++# ++ if test \( "$WANT_MPI_PROFILING" = 0 -o "$OMPI_PROFILING_COMPILE_SEPARATELY" = 1 \) -a "$OMPI_WANT_F77_BINDINGS" = 1; then ++ WANT_MPI_F77_BINDINGS_LAYER_TRUE= ++ WANT_MPI_F77_BINDINGS_LAYER_FALSE='#' ++else ++ WANT_MPI_F77_BINDINGS_LAYER_TRUE='#' ++ WANT_MPI_F77_BINDINGS_LAYER_FALSE= ++fi ++ ++ ++ if test "$OMPI_WANT_F77_BINDINGS" = 1 -a "$WANT_MPI_PROFILING" = 1; then ++ WANT_PMPI_F77_BINDINGS_LAYER_TRUE= ++ WANT_PMPI_F77_BINDINGS_LAYER_FALSE='#' ++else ++ WANT_PMPI_F77_BINDINGS_LAYER_TRUE='#' ++ WANT_PMPI_F77_BINDINGS_LAYER_FALSE= ++fi ++ ++ ++#----------- ++# Fortran 90 ++#----------- ++ ++ ++ ++ ++ ++# Modularize this setup so that sub-configure.in scripts can use this ++# same setup code. ++ ++ompi_show_subtitle "Fortran 90/95 compiler" ++ ++if test "$OMPI_WANT_F77_BINDINGS" = "0" ; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90/95 bindings implicitly disabled (because" >&5 ++echo "$as_me: WARNING: *** Fortran 90/95 bindings implicitly disabled (because" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 bindings were disabled)" >&5 ++echo "$as_me: WARNING: *** Fortran 77 bindings were disabled)" >&2;} ++ ++ OMPI_WANT_F90_BINDINGS=0 ++ OMPI_F90="none" ++ BASEF90="none" ++ OMPI_F90_ABSOLUTE="none" ++ if test "$enable_f90" = "yes"; then ++ { echo "$as_me:$LINENO: WARNING: *** but --enable-f90 was explicitly specified" >&5 ++echo "$as_me: WARNING: *** but --enable-f90 was explicitly specified" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++elif test "$OMPI_WANT_F90_BINDINGS" = "0" ; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90/95 bindings disabled by user" >&5 ++echo "$as_me: WARNING: *** Fortran 90/95 bindings disabled by user" >&2;} ++ OMPI_WANT_F90_BINDINGS=0 ++ OMPI_F90="none" ++ BASEF90="none" ++ OMPI_F90_ABSOLUTE="none" ++else ++ ++ # ++ # Check for the compiler ++ # ++ # Note that we don't actually *use* the fortran compiler to build ++ # anything in OMPI; it's only used here in configure to find out ++ # symbol conventions, type sizes, etc. We also pass it down to ++ # the wrapper compiler mpif90. ++ # ++ # Note that AC_PROG_FC will look for *any* fortran compiler, and ++ # we don't want it to find an F77 compiler. The AC docs don't ++ # recommend using the "dialect" feature of AC_PROG_FC (and you can ++ # only look for one of Fortran 90 or 95 -- not both), so instead ++ # use the optional first parameter and steal the list of Fortran ++ # compilers (excluding the f77 compiler names) from AC's default ++ # list of 95 and 90 compilers and use it here. ++ # ++ ++ ompi_fcflags_save="$FCFLAGS" ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++if test -n "$ac_tool_prefix"; then ++ for ac_prog in gfortran f95 fort xlf95 ifort ifc efc pgf95 lf95 f90 xlf90 pgf90 epcf90 ++ do ++ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ++set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_FC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$FC"; then ++ ac_cv_prog_FC="$FC" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_FC="$ac_tool_prefix$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++FC=$ac_cv_prog_FC ++if test -n "$FC"; then ++ { echo "$as_me:$LINENO: result: $FC" >&5 ++echo "${ECHO_T}$FC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$FC" && break ++ done ++fi ++if test -z "$FC"; then ++ ac_ct_FC=$FC ++ for ac_prog in gfortran f95 fort xlf95 ifort ifc efc pgf95 lf95 f90 xlf90 pgf90 epcf90 ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_FC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_FC"; then ++ ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_FC="$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_FC=$ac_cv_prog_ac_ct_FC ++if test -n "$ac_ct_FC"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 ++echo "${ECHO_T}$ac_ct_FC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$ac_ct_FC" && break ++done ++ ++ if test "x$ac_ct_FC" = x; then ++ FC="" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ FC=$ac_ct_FC ++ fi ++fi ++ ++ ++# Provide some information about the compiler. ++echo "$as_me:$LINENO: checking for Fortran compiler version" >&5 ++ac_compiler=`set X $ac_compile; echo $2` ++{ (ac_try="$ac_compiler --version >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler --version >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -v >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -v >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -V >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -V >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++rm -f a.out ++ ++# If we don't use `.F' as extension, the preprocessor is not run on the ++# input file. (Note that this only needs to work for GNU compilers.) ++ac_save_ext=$ac_ext ++ac_ext=F ++{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 ++echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6; } ++if test "${ac_cv_fc_compiler_gnu+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++#ifndef __GNUC__ ++ choke me ++#endif ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_compiler_gnu=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_compiler_gnu=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ac_cv_fc_compiler_gnu=$ac_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 ++echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6; } ++ac_ext=$ac_save_ext ++ac_test_FFLAGS=${FCFLAGS+set} ++ac_save_FFLAGS=$FCFLAGS ++FCFLAGS= ++{ echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 ++echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6; } ++if test "${ac_cv_prog_fc_g+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ FCFLAGS=-g ++cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_fc_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_prog_fc_g=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 ++echo "${ECHO_T}$ac_cv_prog_fc_g" >&6; } ++if test "$ac_test_FFLAGS" = set; then ++ FCFLAGS=$ac_save_FFLAGS ++elif test $ac_cv_prog_fc_g = yes; then ++ if test "x$ac_cv_fc_compiler_gnu" = xyes; then ++ FCFLAGS="-g -O2" ++ else ++ FCFLAGS="-g" ++ fi ++else ++ if test "x$ac_cv_fc_compiler_gnu" = xyes; then ++ FCFLAGS="-O2" ++ else ++ FCFLAGS= ++ fi ++fi ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ FCFLAGS="$ompi_fcflags_save" ++ if test -z "$FC"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90/95 bindings disabled (could not find compiler)" >&5 ++echo "$as_me: WARNING: *** Fortran 90/95 bindings disabled (could not find compiler)" >&2;} ++ OMPI_WANT_F90_BINDINGS=0 ++ OMPI_F90="none" ++ BASEF90="none" ++ OMPI_F90_ABSOLUTE="none" ++ else ++ OMPI_WANT_F90_BINDINGS=1 ++ OMPI_F90="$FC" ++ set dummy $OMPI_F90 ++ OMPI_F90_ARGV0=$2 ++ BASEF90="`basename $OMPI_F90_ARGV0`" ++ ++# 1 is the variable name to do "which" on ++# 2 is the variable name to assign the return value to ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ompi_prog=$OMPI_F90_ARGV0 ++ ++IFS_SAVE=$IFS ++IFS="$PATH_SEPARATOR" ++for ompi_dir in $PATH; do ++ if test -x "$ompi_dir/$ompi_prog"; then ++ OMPI_F90_ABSOLUTE="$ompi_dir/$ompi_prog" ++ break ++ fi ++done ++IFS=$IFS_SAVE ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++fi ++# make sure the compiler actually works, if not cross-compiling ++# Don't just use the AC macro so that we can have a pretty ++# message. ++if test $OMPI_WANT_F90_BINDINGS -eq 1; then ++ ++ ++ { echo "$as_me:$LINENO: checking if Fortran compiler works" >&5 ++echo $ECHO_N "checking if Fortran compiler works... $ECHO_C" >&6; } ++if test "${ompi_cv_Fortran_works+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ if test "$cross_compiling" = yes; then ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_Fortran_works="links (cross compiling)" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_Fortran_works="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++else ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_Fortran_works="yes" ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++ompi_cv_Fortran_works="no" ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_Fortran_works" >&5 ++echo "${ECHO_T}$ompi_cv_Fortran_works" >&6; } ++ if test "$ompi_cv_Fortran_works" = "no"; then ++ cat <&2 ++********************************************************************** ++* It appears that your Fortran compiler is unable to produce working ++* executables. A simple test application failed to properly ++* execute. Note that this is likely not a problem with Open MPI, ++* but a problem with the local compiler installation. More ++* information (including exactly what command was given to the ++* compiler and what error resulted when the command was executed) is ++* available in the config.log file in this directory. ++********************************************************************** ++EOF ++ { { echo "$as_me:$LINENO: error: Could not run a simple Fortran program. Aborting." >&5 ++echo "$as_me: error: Could not run a simple Fortran program. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ ++fi ++ ++ ++# check to see if the F77 and F90 compilers are compatible ++if test $OMPI_WANT_F90_BINDINGS -eq 1; then ++ { echo "$as_me:$LINENO: checking whether $OMPI_F77 and $OMPI_F90 compilers are compatible" >&5 ++echo $ECHO_N "checking whether $OMPI_F77 and $OMPI_F90 compilers are compatible... $ECHO_C" >&6; } ++ ++# make sure that we can combine F90 and F77 code ++ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++# Fortran module ++cat > conftestf77.f < conftestf90.f <&5 ++$OMPI_F90 $FCFLAGS $FCFLAGS_f -c conftestf90.f 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $OMPI_F77 $FFLAGS -c conftestf77.f" >&5 ++$OMPI_F77 $FFLAGS -c conftestf77.f 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $OMPI_F90 $FCFLAGS -o conftest conftestf90.o conftestf77.o $LDFLAGS $LIBS" >&5 ++$OMPI_F90 $FCFLAGS -o conftest conftestf90.o conftestf77.o $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ HAPPY=1 ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++ ++if test "$HAPPY" = "1"; then ++ fortran_goodness=1 ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the F77 program:" >&5 ++else ++ echo here is the F77 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf77.f" -a -f "conftestf77.f"; then ++ cat conftestf77.f >&5 ++fi ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the F90 program:" >&5 ++else ++ echo here is the F90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf90.f" -a -f "conftestf90.f"; then ++ cat conftestf90.f >&5 ++fi ++ fortran_goodness=0 ++fi ++ ++unset HAPPY ompi_conftest_h ++rm -rf conftest* ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ if test "$fortran_goodness" = "0" ; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 and Fortran 90 compilers are not link compatible" >&5 ++echo "$as_me: WARNING: *** Fortran 77 and Fortran 90 compilers are not link compatible" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI Fortran 90/95 bindings" >&5 ++echo "$as_me: WARNING: *** Disabling MPI Fortran 90/95 bindings" >&2;} ++ OMPI_WANT_F90_BINDINGS=0 ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ ++fi ++ ++ ++# BWB - FIX ME - remove once everyone updates to LT 2.0. ++# ++if test $OMPI_WANT_F90_BINDINGS -eq 1; then ++ if test $BASEF77 != $BASEF90; then ++ lt_ver=`$GREP '^VERSION' $srcdir/config/ltmain.sh | cut -f2 -d= | cut -f1 -d'.'` ++ if test $lt_ver -lt 2 ; then ++ { { echo "$as_me:$LINENO: error: You appear to be trying to build the Fortran 90 ++ layer with Libtool 1.5.x or earlier and a Fortran 77 / Fortran 90 compiler ++ combination that will not work with this configuration. You must either ++ use a different Fortran 77 / Fortran 90 compiler (one where it is the same ++ compiler for both languages), upgrade to Libtool 2.x, or disable the ++ Fortran 90 bindings." >&5 ++echo "$as_me: error: You appear to be trying to build the Fortran 90 ++ layer with Libtool 1.5.x or earlier and a Fortran 77 / Fortran 90 compiler ++ combination that will not work with this configuration. You must either ++ use a different Fortran 77 / Fortran 90 compiler (one where it is the same ++ compiler for both languages), upgrade to Libtool 2.x, or disable the ++ Fortran 90 bindings." >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++fi ++ ++ ++# OS X before 10.3 (deployment target) does not allow undefined common ++# symbols in shared libraries. Because we can't figure out how to ++# implement MPI_STATUSES_IGNORE and friends wihtout common symbols, on ++# OS X we can't build the F90 bindings as a shared library. ++{ echo "$as_me:$LINENO: checking for extra arguments to build a shard library" >&5 ++echo $ECHO_N "checking for extra arguments to build a shard library... $ECHO_C" >&6; } ++case "$host" in ++ *apple-darwin*) ++ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then ++ { echo "$as_me:$LINENO: result: impossible -- -static" >&5 ++echo "${ECHO_T}impossible -- -static" >&6; } ++ OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS="-static" ++ else ++ case ${MACOSX_DEPLOYMENT_TARGET} in ++ 10.012) ++ { echo "$as_me:$LINENO: result: impossible -- -static" >&5 ++echo "${ECHO_T}impossible -- -static" >&6; } ++ OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS="-static" ++ ;; ++ 10.*) ++ { echo "$as_me:$LINENO: result: -Wl,-single_module" >&5 ++echo "${ECHO_T}-Wl,-single_module" >&6; } ++ OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS="-Wl,-single_module" ++ esac ++ fi ++ ;; ++ *) ++ { echo "$as_me:$LINENO: result: none needed" >&5 ++echo "${ECHO_T}none needed" >&6; } ++ OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS="" ++ ;; ++esac ++ ++ ++# if we're still good, then save the extra file types. Do this last ++# because it implies tests that should be invoked by the above tests ++# (e.g., running the fortran compiler). ++if test $OMPI_WANT_F90_BINDINGS -eq 1; then ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++{ echo "$as_me:$LINENO: checking for Fortran flag to compile .f files" >&5 ++echo $ECHO_N "checking for Fortran flag to compile .f files... $ECHO_C" >&6; } ++if test "${ac_cv_fc_srcext_f+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_fcflags_srcext_save=$ac_fcflags_srcext ++ac_fcflags_srcext= ++ac_cv_fc_srcext_f=unknown ++for ac_flag in none -qsuffix=f=f -Tf; do ++ test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag" ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_fc_srcext_f=$ac_flag; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++rm -f conftest.$ac_objext conftest.f ++ac_fcflags_srcext=$ac_fcflags_srcext_save ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_fc_srcext_f" >&5 ++echo "${ECHO_T}$ac_cv_fc_srcext_f" >&6; } ++if test "x$ac_cv_fc_srcext_f" = xunknown; then ++ { { echo "$as_me:$LINENO: error: Fortran could not compile .f files" >&5 ++echo "$as_me: error: Fortran could not compile .f files" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ac_fc_srcext=f ++ if test "x$ac_cv_fc_srcext_f" = xnone; then ++ ac_fcflags_srcext="" ++ FCFLAGS_f="" ++ else ++ ac_fcflags_srcext=$ac_cv_fc_srcext_f ++ FCFLAGS_f=$ac_cv_fc_srcext_f ++ fi ++ ++ ++fi ++ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++{ echo "$as_me:$LINENO: checking for Fortran flag to compile .f90 files" >&5 ++echo $ECHO_N "checking for Fortran flag to compile .f90 files... $ECHO_C" >&6; } ++if test "${ac_cv_fc_srcext_f90+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f90 ++ac_fcflags_srcext_save=$ac_fcflags_srcext ++ac_fcflags_srcext= ++ac_cv_fc_srcext_f90=unknown ++for ac_flag in none -qsuffix=f=f90 -Tf; do ++ test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag" ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_fc_srcext_f90=$ac_flag; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++rm -f conftest.$ac_objext conftest.f90 ++ac_fcflags_srcext=$ac_fcflags_srcext_save ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_fc_srcext_f90" >&5 ++echo "${ECHO_T}$ac_cv_fc_srcext_f90" >&6; } ++if test "x$ac_cv_fc_srcext_f90" = xunknown; then ++ { { echo "$as_me:$LINENO: error: Fortran could not compile .f90 files" >&5 ++echo "$as_me: error: Fortran could not compile .f90 files" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ac_fc_srcext=f90 ++ if test "x$ac_cv_fc_srcext_f90" = xnone; then ++ ac_fcflags_srcext="" ++ FCFLAGS_f90="" ++ else ++ ac_fcflags_srcext=$ac_cv_fc_srcext_f90 ++ FCFLAGS_f90=$ac_cv_fc_srcext_f90 ++ fi ++ ++ ++fi ++ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++ ++ ++# Test to see if the F90 compilers likes the C++ exceptions flags. If ++# it doesn't, just abort. We *could* handle this scenario (e.g., ++# probe the F90 compiler for what flags would be necessary), but we're ++# kinda assuming that no one will care. If they do, they'll e-mail us. ++{ echo "$as_me:$LINENO: checking to see if F90 compiler likes the C++ exception flags" >&5 ++echo $ECHO_N "checking to see if F90 compiler likes the C++ exception flags... $ECHO_C" >&6; } ++if test "$OMPI_WANT_F90_BINDINGS" = "0"; then ++ { echo "$as_me:$LINENO: result: skipped (no F90 bindings)" >&5 ++echo "${ECHO_T}skipped (no F90 bindings)" >&6; } ++elif test "$OMPI_CXX_EXCEPTIONS_CXXFLAGS" = ""; then ++ { echo "$as_me:$LINENO: result: skipped (no C++ exceptions flags)" >&5 ++echo "${ECHO_T}skipped (no C++ exceptions flags)" >&6; } ++else ++ FCFLAGS="$FFLAGS $OMPI_CXX_EXCEPTIONS_CXXFLAGS" ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ INTEGER I ++ I = 3 ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: C++ exception flags are different between the C and C++ compilers; this configure script cannot currently handle this scenario. Either disable C++ exception support or send mail to the Open MPI users list." >&5 ++echo "$as_me: WARNING: C++ exception flags are different between the C and C++ compilers; this configure script cannot currently handle this scenario. Either disable C++ exception support or send mail to the Open MPI users list." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++ ++# All done -- save values ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_WANT_F90_BINDINGS $OMPI_WANT_F90_BINDINGS ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_F90 "$OMPI_F90" ++_ACEOF ++ ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ OMPI_WANT_F90_BINDINGS_TRUE= ++ OMPI_WANT_F90_BINDINGS_FALSE='#' ++else ++ OMPI_WANT_F90_BINDINGS_TRUE='#' ++ OMPI_WANT_F90_BINDINGS_FALSE= ++fi ++ ++ ++unset fortran_goodness ++ ++ ++# Look for the fortran module compiler flag ++ ++ ++ ++ if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then ++ { echo "$as_me:$LINENO: checking for Fortran 90 compiler module include flag" >&5 ++echo $ECHO_N "checking for Fortran 90 compiler module include flag... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_module_include_flag+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ofi_possible_flags="-I -p -M" ++ mkdir conftest.$$ ++ cd conftest.$$ ++ ++ # Try to compile an F90 module ++ mkdir subdir ++ cd subdir ++ cat > conftest-module.f90 <&5 ++$FC $FCFLAGS $FCFLAGS_f90 -c conftest-module.f90 $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++else ++ unset ompi_status ++ cd .. ++ rm -rf conftest.$$ ++ { echo "$as_me:$LINENO: result: Whoops!" >&5 ++echo "${ECHO_T}Whoops!" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Cannot seem to compile an f90 module" >&5 ++echo "$as_me: WARNING: *** Cannot seem to compile an f90 module" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ cd .. ++ ++ # ++ # Now try to compile a simple program usinng that module, iterating ++ # through the possible flags that the compiler might use ++ # ++ ++ cat > conftest.f90 <&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftest.f90 ${flag}subdir $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_module_include_flag=$flag ++ ofi_module_flag="$flag" ++else ++ unset ompi_status ++ ++fi ++ fi ++ done ++ cd .. ++ rm -rf conftest.$$ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_module_include_flag" >&5 ++echo "${ECHO_T}$ompi_cv_f90_module_include_flag" >&6; } ++ ++ OMPI_FC_MODULE_FLAG=$ompi_cv_f90_module_include_flag ++ if test "$OMPI_FC_MODULE_FLAG" = ""; then ++ { echo "$as_me:$LINENO: WARNING: *** Could not determine the f90 compiler flag to indicate where modules reside" >&5 ++echo "$as_me: WARNING: *** Could not determine the f90 compiler flag to indicate where modules reside" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ else ++ OMPI_FC_MODULE_FLAG= ++ fi ++ ++ ++ ++ ++# Look for all the types ++OMPI_F90_IKINDS="" ++OMPI_F90_RKINDS="" ++OMPI_F90_CKINDS="" ++ ++# LOGICAL and friends ++ ++ ofc_fortran_type="LOGICAL" ++ ofc_expected_size="" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports LOGICAL" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports LOGICAL... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_LOGICAL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ LOGICAL :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_LOGICAL="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_LOGICAL="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_LOGICAL" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_LOGICAL" >&6; } ++ ++ if test "$ompi_cv_f90_have_LOGICAL" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 LOGICAL" >&5 ++echo $ECHO_N "checking size of Fortran 90 LOGICAL... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_LOGICAL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of LOGICAL" >&5 ++echo "$as_me: WARNING: Could not determine size of LOGICAL" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of LOGICAL when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of LOGICAL when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_LOGICAL=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_LOGICAL" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_LOGICAL" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_LOGICAL ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_LOGICAL ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (LOGICAL) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (LOGICAL) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (LOGICAL)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (LOGICAL)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_LOGICAL ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for LOGICAL ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for LOGICAL ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for LOGICAL ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for LOGICAL ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=L ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_LOGICAL $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_LOGICAL=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="LOGICAL*1" ++ ofc_expected_size="1" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports LOGICAL*1" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports LOGICAL*1... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_LOGICALp1+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ LOGICAL*1 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_LOGICALp1="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_LOGICALp1="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_LOGICALp1" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_LOGICALp1" >&6; } ++ ++ if test "$ompi_cv_f90_have_LOGICALp1" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 LOGICAL*1" >&5 ++echo $ECHO_N "checking size of Fortran 90 LOGICAL*1... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_LOGICALp1+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of LOGICAL*1" >&5 ++echo "$as_me: WARNING: Could not determine size of LOGICAL*1" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of LOGICAL*1 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of LOGICAL*1 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_LOGICALp1=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*1" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*1" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_LOGICALp1" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_LOGICALp1" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_LOGICALp1 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_LOGICAL1 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (LOGICAL*1) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (LOGICAL*1) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (LOGICAL*1)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (LOGICAL*1)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_LOGICAL1 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for LOGICAL*1 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for LOGICAL*1 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for LOGICAL*1 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for LOGICAL*1 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=L ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_LOGICAL1 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_LOGICAL1=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="LOGICAL*2" ++ ofc_expected_size="2" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports LOGICAL*2" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports LOGICAL*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_LOGICALp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ LOGICAL*2 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_LOGICALp2="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_LOGICALp2="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_LOGICALp2" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_LOGICALp2" >&6; } ++ ++ if test "$ompi_cv_f90_have_LOGICALp2" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 LOGICAL*2" >&5 ++echo $ECHO_N "checking size of Fortran 90 LOGICAL*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_LOGICALp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of LOGICAL*2" >&5 ++echo "$as_me: WARNING: Could not determine size of LOGICAL*2" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of LOGICAL*2 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of LOGICAL*2 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_LOGICALp2=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*2" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*2" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_LOGICALp2" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_LOGICALp2" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_LOGICALp2 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_LOGICAL2 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (LOGICAL*2) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (LOGICAL*2) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (LOGICAL*2)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (LOGICAL*2)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_LOGICAL2 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for LOGICAL*2 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for LOGICAL*2 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for LOGICAL*2 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for LOGICAL*2 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=L ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_LOGICAL2 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_LOGICAL2=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="LOGICAL*4" ++ ofc_expected_size="4" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports LOGICAL*4" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports LOGICAL*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_LOGICALp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ LOGICAL*4 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_LOGICALp4="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_LOGICALp4="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_LOGICALp4" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_LOGICALp4" >&6; } ++ ++ if test "$ompi_cv_f90_have_LOGICALp4" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 LOGICAL*4" >&5 ++echo $ECHO_N "checking size of Fortran 90 LOGICAL*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_LOGICALp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of LOGICAL*4" >&5 ++echo "$as_me: WARNING: Could not determine size of LOGICAL*4" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of LOGICAL*4 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of LOGICAL*4 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_LOGICALp4=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*4" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*4" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_LOGICALp4" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_LOGICALp4" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_LOGICALp4 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_LOGICAL4 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (LOGICAL*4) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (LOGICAL*4) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (LOGICAL*4)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (LOGICAL*4)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_LOGICAL4 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for LOGICAL*4 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for LOGICAL*4 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for LOGICAL*4 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for LOGICAL*4 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=L ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_LOGICAL4 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_LOGICAL4=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="LOGICAL*8" ++ ofc_expected_size="8" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports LOGICAL*8" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports LOGICAL*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_LOGICALp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ LOGICAL*8 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_LOGICALp8="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_LOGICALp8="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_LOGICALp8" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_LOGICALp8" >&6; } ++ ++ if test "$ompi_cv_f90_have_LOGICALp8" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 LOGICAL*8" >&5 ++echo $ECHO_N "checking size of Fortran 90 LOGICAL*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_LOGICALp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of LOGICAL*8" >&5 ++echo "$as_me: WARNING: Could not determine size of LOGICAL*8" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of LOGICAL*8 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of LOGICAL*8 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_LOGICALp8=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*8" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_LOGICALp8" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_LOGICALp8" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_LOGICALp8 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_LOGICAL8 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (LOGICAL*8) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (LOGICAL*8) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (LOGICAL*8)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (LOGICAL*8)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_LOGICAL8 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for LOGICAL*8 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for LOGICAL*8 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for LOGICAL*8 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for LOGICAL*8 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=L ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_LOGICAL8 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_LOGICAL8=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++# INTEGER and friends ++ ++ ofc_fortran_type="INTEGER" ++ ofc_expected_size="" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports INTEGER" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports INTEGER... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_INTEGER+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ INTEGER :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_INTEGER="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_INTEGER="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_INTEGER" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_INTEGER" >&6; } ++ ++ if test "$ompi_cv_f90_have_INTEGER" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 INTEGER" >&5 ++echo $ECHO_N "checking size of Fortran 90 INTEGER... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_INTEGER+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER" >&5 ++echo "$as_me: WARNING: Could not determine size of INTEGER" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of INTEGER when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_INTEGER=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER" >&5 ++echo "$as_me: error: Could not determine size of INTEGER" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_INTEGER" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_INTEGER" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_INTEGER ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for INTEGER ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for INTEGER ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=I ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_INTEGER $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_INTEGER=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="INTEGER*1" ++ ofc_expected_size="1" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports INTEGER*1" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports INTEGER*1... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_INTEGERp1+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ INTEGER*1 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_INTEGERp1="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_INTEGERp1="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_INTEGERp1" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_INTEGERp1" >&6; } ++ ++ if test "$ompi_cv_f90_have_INTEGERp1" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 INTEGER*1" >&5 ++echo $ECHO_N "checking size of Fortran 90 INTEGER*1... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_INTEGERp1+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER*1" >&5 ++echo "$as_me: WARNING: Could not determine size of INTEGER*1" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*1 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of INTEGER*1 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_INTEGERp1=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*1" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*1" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_INTEGERp1" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_INTEGERp1" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_INTEGERp1 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER1 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER*1) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*1) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER*1)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER*1)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER1 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER*1 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*1 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER*1 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*1 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=I ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_INTEGER1 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_INTEGER1=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="INTEGER*2" ++ ofc_expected_size="2" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports INTEGER*2" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports INTEGER*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_INTEGERp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ INTEGER*2 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_INTEGERp2="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_INTEGERp2="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_INTEGERp2" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_INTEGERp2" >&6; } ++ ++ if test "$ompi_cv_f90_have_INTEGERp2" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 INTEGER*2" >&5 ++echo $ECHO_N "checking size of Fortran 90 INTEGER*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_INTEGERp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER*2" >&5 ++echo "$as_me: WARNING: Could not determine size of INTEGER*2" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*2 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of INTEGER*2 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_INTEGERp2=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*2" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*2" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_INTEGERp2" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_INTEGERp2" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_INTEGERp2 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER2 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER*2) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*2) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER*2)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER*2)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER2 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER*2 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*2 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER*2 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*2 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=I ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_INTEGER2 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_INTEGER2=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="INTEGER*4" ++ ofc_expected_size="4" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports INTEGER*4" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports INTEGER*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_INTEGERp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ INTEGER*4 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_INTEGERp4="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_INTEGERp4="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_INTEGERp4" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_INTEGERp4" >&6; } ++ ++ if test "$ompi_cv_f90_have_INTEGERp4" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 INTEGER*4" >&5 ++echo $ECHO_N "checking size of Fortran 90 INTEGER*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_INTEGERp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER*4" >&5 ++echo "$as_me: WARNING: Could not determine size of INTEGER*4" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*4 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of INTEGER*4 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_INTEGERp4=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*4" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*4" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_INTEGERp4" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_INTEGERp4" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_INTEGERp4 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER4 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER*4) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*4) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER*4)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER*4)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER4 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER*4 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*4 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER*4 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*4 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=I ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_INTEGER4 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_INTEGER4=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="INTEGER*8" ++ ofc_expected_size="8" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports INTEGER*8" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports INTEGER*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_INTEGERp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ INTEGER*8 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_INTEGERp8="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_INTEGERp8="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_INTEGERp8" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_INTEGERp8" >&6; } ++ ++ if test "$ompi_cv_f90_have_INTEGERp8" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 INTEGER*8" >&5 ++echo $ECHO_N "checking size of Fortran 90 INTEGER*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_INTEGERp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER*8" >&5 ++echo "$as_me: WARNING: Could not determine size of INTEGER*8" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*8 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of INTEGER*8 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_INTEGERp8=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*8" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_INTEGERp8" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_INTEGERp8" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_INTEGERp8 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER8 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER*8) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*8) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER*8)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER*8)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER8 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER*8 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*8 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER*8 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*8 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=I ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_INTEGER8 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_INTEGER8=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="INTEGER*16" ++ ofc_expected_size="16" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports INTEGER*16" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports INTEGER*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_INTEGERp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ INTEGER*16 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_INTEGERp16="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_INTEGERp16="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_INTEGERp16" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_INTEGERp16" >&6; } ++ ++ if test "$ompi_cv_f90_have_INTEGERp16" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 INTEGER*16" >&5 ++echo $ECHO_N "checking size of Fortran 90 INTEGER*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_INTEGERp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER*16" >&5 ++echo "$as_me: WARNING: Could not determine size of INTEGER*16" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*16 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of INTEGER*16 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_INTEGERp16=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*16" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*16" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_INTEGERp16" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_INTEGERp16" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_INTEGERp16 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER16 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER*16) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*16) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER*16)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER*16)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER16 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER*16 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*16 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER*16 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*16 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=I ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_INTEGER16 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_INTEGER16=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++# REAL, DOUBLE PRECISION, REAL*4, *8, *16 ++ ++ ofc_fortran_type="REAL" ++ ofc_expected_size="" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports REAL" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports REAL... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_REAL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ REAL :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_REAL="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_REAL="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_REAL" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_REAL" >&6; } ++ ++ if test "$ompi_cv_f90_have_REAL" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 REAL" >&5 ++echo $ECHO_N "checking size of Fortran 90 REAL... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_REAL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of REAL" >&5 ++echo "$as_me: WARNING: Could not determine size of REAL" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of REAL when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of REAL when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_REAL=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL" >&5 ++echo "$as_me: error: Could not determine size of REAL" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_REAL" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_REAL" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_REAL ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_REAL ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (REAL) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (REAL)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (REAL)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_REAL ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for REAL ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for REAL ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for REAL ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for REAL ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=R ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_REAL $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_REAL=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="REAL*2" ++ ofc_expected_size="2" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports REAL*2" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports REAL*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_REALp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ REAL*2 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_REALp2="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_REALp2="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_REALp2" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_REALp2" >&6; } ++ ++ if test "$ompi_cv_f90_have_REALp2" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 REAL*2" >&5 ++echo $ECHO_N "checking size of Fortran 90 REAL*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_REALp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of REAL*2" >&5 ++echo "$as_me: WARNING: Could not determine size of REAL*2" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of REAL*2 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of REAL*2 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_REALp2=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*2" >&5 ++echo "$as_me: error: Could not determine size of REAL*2" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_REALp2" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_REALp2" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_REALp2 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_REAL2 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (REAL*2) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL*2) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (REAL*2)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (REAL*2)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_REAL2 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for REAL*2 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for REAL*2 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for REAL*2 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for REAL*2 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=R ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_REAL2 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_REAL2=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="REAL*4" ++ ofc_expected_size="4" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports REAL*4" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports REAL*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_REALp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ REAL*4 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_REALp4="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_REALp4="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_REALp4" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_REALp4" >&6; } ++ ++ if test "$ompi_cv_f90_have_REALp4" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 REAL*4" >&5 ++echo $ECHO_N "checking size of Fortran 90 REAL*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_REALp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of REAL*4" >&5 ++echo "$as_me: WARNING: Could not determine size of REAL*4" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of REAL*4 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of REAL*4 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_REALp4=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*4" >&5 ++echo "$as_me: error: Could not determine size of REAL*4" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_REALp4" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_REALp4" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_REALp4 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_REAL4 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (REAL*4) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL*4) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (REAL*4)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (REAL*4)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_REAL4 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for REAL*4 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for REAL*4 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for REAL*4 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for REAL*4 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=R ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_REAL4 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_REAL4=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="REAL*8" ++ ofc_expected_size="8" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports REAL*8" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports REAL*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_REALp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ REAL*8 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_REALp8="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_REALp8="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_REALp8" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_REALp8" >&6; } ++ ++ if test "$ompi_cv_f90_have_REALp8" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 REAL*8" >&5 ++echo $ECHO_N "checking size of Fortran 90 REAL*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_REALp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of REAL*8" >&5 ++echo "$as_me: WARNING: Could not determine size of REAL*8" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of REAL*8 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of REAL*8 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_REALp8=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*8" >&5 ++echo "$as_me: error: Could not determine size of REAL*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_REALp8" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_REALp8" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_REALp8 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_REAL8 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (REAL*8) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL*8) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (REAL*8)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (REAL*8)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_REAL8 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for REAL*8 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for REAL*8 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for REAL*8 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for REAL*8 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=R ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_REAL8 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_REAL8=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="REAL*16" ++ ofc_expected_size="16" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports REAL*16" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports REAL*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_REALp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ REAL*16 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_REALp16="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_REALp16="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_REALp16" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_REALp16" >&6; } ++ ++ if test "$ompi_cv_f90_have_REALp16" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 REAL*16" >&5 ++echo $ECHO_N "checking size of Fortran 90 REAL*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_REALp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of REAL*16" >&5 ++echo "$as_me: WARNING: Could not determine size of REAL*16" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of REAL*16 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of REAL*16 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_REALp16=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*16" >&5 ++echo "$as_me: error: Could not determine size of REAL*16" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_REALp16" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_REALp16" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_REALp16 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_REAL16 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (REAL*16) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL*16) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (REAL*16)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (REAL*16)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_REAL16 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for REAL*16 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for REAL*16 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for REAL*16 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for REAL*16 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=R ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_REAL16 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_REAL16=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="DOUBLE PRECISION" ++ ofc_expected_size="" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports DOUBLE PRECISION" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports DOUBLE PRECISION... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_DOUBLE_PRECISION+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ DOUBLE PRECISION :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_DOUBLE_PRECISION="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_DOUBLE_PRECISION="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_DOUBLE_PRECISION" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_DOUBLE_PRECISION" >&6; } ++ ++ if test "$ompi_cv_f90_have_DOUBLE_PRECISION" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 DOUBLE PRECISION" >&5 ++echo $ECHO_N "checking size of Fortran 90 DOUBLE PRECISION... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_DOUBLE_PRECISION+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of DOUBLE PRECISION" >&5 ++echo "$as_me: WARNING: Could not determine size of DOUBLE PRECISION" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of DOUBLE PRECISION when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of DOUBLE PRECISION when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_DOUBLE_PRECISION=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of DOUBLE PRECISION" >&5 ++echo "$as_me: error: Could not determine size of DOUBLE PRECISION" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_DOUBLE_PRECISION" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_DOUBLE_PRECISION" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_DOUBLE_PRECISION ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_DOUBLE_PRECISION ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (DOUBLE PRECISION) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (DOUBLE PRECISION) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (DOUBLE PRECISION)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (DOUBLE PRECISION)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_DOUBLE_PRECISION ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for DOUBLE PRECISION ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for DOUBLE PRECISION ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for DOUBLE PRECISION ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for DOUBLE PRECISION ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=D ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_DOUBLE_PRECISION $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_DOUBLE_PRECISION=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++# COMPLEX, DOUBLE COMPLEX, COMPLEX*8, *16, *32 ++ ++ ofc_fortran_type="COMPLEX" ++ ofc_expected_size="" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports COMPLEX" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports COMPLEX... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_COMPLEX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ COMPLEX :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_COMPLEX="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_COMPLEX="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_COMPLEX" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_COMPLEX" >&6; } ++ ++ if test "$ompi_cv_f90_have_COMPLEX" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 COMPLEX" >&5 ++echo $ECHO_N "checking size of Fortran 90 COMPLEX... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_COMPLEX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of COMPLEX" >&5 ++echo "$as_me: WARNING: Could not determine size of COMPLEX" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of COMPLEX when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_COMPLEX=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_COMPLEX" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_COMPLEX" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_COMPLEX ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_COMPLEX ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (COMPLEX) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (COMPLEX) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (COMPLEX)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (COMPLEX)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_COMPLEX ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for COMPLEX ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for COMPLEX ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for COMPLEX ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for COMPLEX ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=C ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_COMPLEX $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_COMPLEX=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="COMPLEX*8" ++ ofc_expected_size="8" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports COMPLEX*8" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports COMPLEX*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_COMPLEXp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ COMPLEX*8 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_COMPLEXp8="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_COMPLEXp8="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_COMPLEXp8" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_COMPLEXp8" >&6; } ++ ++ if test "$ompi_cv_f90_have_COMPLEXp8" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 COMPLEX*8" >&5 ++echo $ECHO_N "checking size of Fortran 90 COMPLEX*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_COMPLEXp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of COMPLEX*8" >&5 ++echo "$as_me: WARNING: Could not determine size of COMPLEX*8" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*8 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of COMPLEX*8 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_COMPLEXp8=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*8" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_COMPLEXp8" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_COMPLEXp8" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_COMPLEXp8 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_COMPLEX8 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (COMPLEX*8) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (COMPLEX*8) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (COMPLEX*8)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (COMPLEX*8)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_COMPLEX8 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for COMPLEX*8 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for COMPLEX*8 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for COMPLEX*8 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for COMPLEX*8 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=C ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_COMPLEX8 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_COMPLEX8=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="COMPLEX*16" ++ ofc_expected_size="16" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports COMPLEX*16" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports COMPLEX*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_COMPLEXp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ COMPLEX*16 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_COMPLEXp16="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_COMPLEXp16="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_COMPLEXp16" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_COMPLEXp16" >&6; } ++ ++ if test "$ompi_cv_f90_have_COMPLEXp16" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 COMPLEX*16" >&5 ++echo $ECHO_N "checking size of Fortran 90 COMPLEX*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_COMPLEXp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of COMPLEX*16" >&5 ++echo "$as_me: WARNING: Could not determine size of COMPLEX*16" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*16 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of COMPLEX*16 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_COMPLEXp16=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*16" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX*16" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_COMPLEXp16" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_COMPLEXp16" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_COMPLEXp16 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_COMPLEX16 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (COMPLEX*16) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (COMPLEX*16) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (COMPLEX*16)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (COMPLEX*16)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_COMPLEX16 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for COMPLEX*16 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for COMPLEX*16 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for COMPLEX*16 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for COMPLEX*16 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=C ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_COMPLEX16 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_COMPLEX16=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="COMPLEX*32" ++ ofc_expected_size="32" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports COMPLEX*32" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports COMPLEX*32... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_COMPLEXp32+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ COMPLEX*32 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_COMPLEXp32="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_COMPLEXp32="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_COMPLEXp32" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_COMPLEXp32" >&6; } ++ ++ if test "$ompi_cv_f90_have_COMPLEXp32" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 COMPLEX*32" >&5 ++echo $ECHO_N "checking size of Fortran 90 COMPLEX*32... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_COMPLEXp32+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of COMPLEX*32" >&5 ++echo "$as_me: WARNING: Could not determine size of COMPLEX*32" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*32 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of COMPLEX*32 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_COMPLEXp32=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*32" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX*32" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_COMPLEXp32" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_COMPLEXp32" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_COMPLEXp32 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_COMPLEX32 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (COMPLEX*32) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (COMPLEX*32) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (COMPLEX*32)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (COMPLEX*32)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_COMPLEX32 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for COMPLEX*32 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for COMPLEX*32 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for COMPLEX*32 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for COMPLEX*32 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=C ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_COMPLEX32 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_COMPLEX32=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="DOUBLE COMPLEX" ++ ofc_expected_size="" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports DOUBLE COMPLEX" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports DOUBLE COMPLEX... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_DOUBLE_COMPLEX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ DOUBLE COMPLEX :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_DOUBLE_COMPLEX="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_DOUBLE_COMPLEX="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_DOUBLE_COMPLEX" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_DOUBLE_COMPLEX" >&6; } ++ ++ if test "$ompi_cv_f90_have_DOUBLE_COMPLEX" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 DOUBLE COMPLEX" >&5 ++echo $ECHO_N "checking size of Fortran 90 DOUBLE COMPLEX... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_DOUBLE_COMPLEX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of DOUBLE COMPLEX" >&5 ++echo "$as_me: WARNING: Could not determine size of DOUBLE COMPLEX" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of DOUBLE COMPLEX when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of DOUBLE COMPLEX when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_DOUBLE_COMPLEX=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of DOUBLE COMPLEX" >&5 ++echo "$as_me: error: Could not determine size of DOUBLE COMPLEX" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_DOUBLE_COMPLEX" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_DOUBLE_COMPLEX" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_DOUBLE_COMPLEX ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_DOUBLE_COMPLEX ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (DOUBLE COMPLEX) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (DOUBLE COMPLEX) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (DOUBLE COMPLEX)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (DOUBLE COMPLEX)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_DOUBLE_COMPLEX ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for DOUBLE COMPLEX ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for DOUBLE COMPLEX ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for DOUBLE COMPLEX ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for DOUBLE COMPLEX ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=D ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_DOUBLE_COMPLEX $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_DOUBLE_COMPLEX=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ++ ++ ++ ++# get kind value for Fortran MPI_INTEGER_KIND (corresponding to ++# whatever is the same size as a F77 INTEGER -- for the ++# most-likely-will-never-occur case where F77 INTEGER is smaller than ++# an F90 INTEGER; see MPI-2 4.12.6.5 ++if test "$OMPI_SIZEOF_FORTRAN_INTEGER" = "2"; then ++ ++ ++ ++ if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then ++ { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(4))" >&5 ++echo $ECHO_N "checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(4))... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_int_kind_4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat > conftestf.f90 <&5 ++$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no"; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&5 ++echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&5 ++echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_int_kind_4=`sed 's/ *//' conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&5 ++echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_4" >&5 ++echo "${ECHO_T}$ompi_cv_f90_int_kind_4" >&6; } ++ ++ OMPI_MPI_INTEGER_KIND=$ompi_cv_f90_int_kind_4 ++ else ++ OMPI_MPI_INTEGER_KIND=0 ++ fi ++ ++elif test "$OMPI_SIZEOF_FORTRAN_INTEGER" = "4"; then ++ ++ ++ ++ if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then ++ { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(9))" >&5 ++echo $ECHO_N "checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(9))... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_int_kind_9+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat > conftestf.f90 <&5 ++$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no"; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&5 ++echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&5 ++echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_int_kind_9=`sed 's/ *//' conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&5 ++echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_9" >&5 ++echo "${ECHO_T}$ompi_cv_f90_int_kind_9" >&6; } ++ ++ OMPI_MPI_INTEGER_KIND=$ompi_cv_f90_int_kind_9 ++ else ++ OMPI_MPI_INTEGER_KIND=0 ++ fi ++ ++elif test "$OMPI_SIZEOF_FORTRAN_INTEGER" = "8"; then ++ ++ ++ ++ if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then ++ { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(18))" >&5 ++echo $ECHO_N "checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(18))... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_int_kind_18+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat > conftestf.f90 <&5 ++$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no"; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&5 ++echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&5 ++echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_int_kind_18=`sed 's/ *//' conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&5 ++echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_18" >&5 ++echo "${ECHO_T}$ompi_cv_f90_int_kind_18" >&6; } ++ ++ OMPI_MPI_INTEGER_KIND=$ompi_cv_f90_int_kind_18 ++ else ++ OMPI_MPI_INTEGER_KIND=0 ++ fi ++ ++elif test "$OMPI_SIZEOF_FORTRAN_INTEGER" = "16"; then ++ ++ ++ ++ if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then ++ { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(19))" >&5 ++echo $ECHO_N "checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(19))... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_int_kind_19+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat > conftestf.f90 <&5 ++$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no"; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&5 ++echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&5 ++echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_int_kind_19=`sed 's/ *//' conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&5 ++echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_19" >&5 ++echo "${ECHO_T}$ompi_cv_f90_int_kind_19" >&6; } ++ ++ OMPI_MPI_INTEGER_KIND=$ompi_cv_f90_int_kind_19 ++ else ++ OMPI_MPI_INTEGER_KIND=0 ++ fi ++ ++ { { echo "$as_me:$LINENO: error: Cannot support Fortran MPI_INTEGER_KIND!" >&5 ++echo "$as_me: error: Cannot support Fortran MPI_INTEGER_KIND!" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++# get kind value for Fortran MPI_ADDRESS_KIND (corresponding to ++# whatever is big enough to hold (void*)) ++if test "$ac_cv_sizeof_void_p" = "2"; then ++ ++ ++ ++ if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then ++ { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(4))" >&5 ++echo $ECHO_N "checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(4))... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_int_kind_4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat > conftestf.f90 <&5 ++$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no"; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5 ++echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&5 ++echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_int_kind_4=`sed 's/ *//' conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5 ++echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_4" >&5 ++echo "${ECHO_T}$ompi_cv_f90_int_kind_4" >&6; } ++ ++ OMPI_MPI_ADDRESS_KIND=$ompi_cv_f90_int_kind_4 ++ else ++ OMPI_MPI_ADDRESS_KIND=0 ++ fi ++ ++elif test "$ac_cv_sizeof_void_p" = "4"; then ++ ++ ++ ++ if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then ++ { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(9))" >&5 ++echo $ECHO_N "checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(9))... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_int_kind_9+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat > conftestf.f90 <&5 ++$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no"; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5 ++echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&5 ++echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_int_kind_9=`sed 's/ *//' conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5 ++echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_9" >&5 ++echo "${ECHO_T}$ompi_cv_f90_int_kind_9" >&6; } ++ ++ OMPI_MPI_ADDRESS_KIND=$ompi_cv_f90_int_kind_9 ++ else ++ OMPI_MPI_ADDRESS_KIND=0 ++ fi ++ ++elif test "$ac_cv_sizeof_void_p" = "8"; then ++ ++ ++ ++ if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then ++ { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(18))" >&5 ++echo $ECHO_N "checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(18))... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_int_kind_18+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat > conftestf.f90 <&5 ++$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no"; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5 ++echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&5 ++echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_int_kind_18=`sed 's/ *//' conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5 ++echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_18" >&5 ++echo "${ECHO_T}$ompi_cv_f90_int_kind_18" >&6; } ++ ++ OMPI_MPI_ADDRESS_KIND=$ompi_cv_f90_int_kind_18 ++ else ++ OMPI_MPI_ADDRESS_KIND=0 ++ fi ++ ++elif test "$ac_cv_sizeof_void_p" = "16"; then ++ ++ ++ ++ if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then ++ { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(19))" >&5 ++echo $ECHO_N "checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(19))... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_int_kind_19+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat > conftestf.f90 <&5 ++$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no"; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5 ++echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&5 ++echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_int_kind_19=`sed 's/ *//' conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5 ++echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_19" >&5 ++echo "${ECHO_T}$ompi_cv_f90_int_kind_19" >&6; } ++ ++ OMPI_MPI_ADDRESS_KIND=$ompi_cv_f90_int_kind_19 ++ else ++ OMPI_MPI_ADDRESS_KIND=0 ++ fi ++ ++else ++ { { echo "$as_me:$LINENO: error: Cannot support Fortran MPI_ADDRESS_KIND!" >&5 ++echo "$as_me: error: Cannot support Fortran MPI_ADDRESS_KIND!" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++# get kind value for Fortran MPI_OFFSET_KIND (corresponding to INTEGER*8) ++ ++ ++ ++ if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then ++ { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_OFFSET_KIND (selected_int_kind(18))" >&5 ++echo $ECHO_N "checking Fortran 90 kind of MPI_OFFSET_KIND (selected_int_kind(18))... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_int_kind_18+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat > conftestf.f90 <&5 ++$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no"; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_OFFSET_KIND)" >&5 ++echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_OFFSET_KIND)" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_OFFSET_KIND) when cross-compiling" >&5 ++echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_OFFSET_KIND) when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_int_kind_18=`sed 's/ *//' conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_OFFSET_KIND)" >&5 ++echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_OFFSET_KIND)" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_18" >&5 ++echo "${ECHO_T}$ompi_cv_f90_int_kind_18" >&6; } ++ ++ OMPI_MPI_OFFSET_KIND=$ompi_cv_f90_int_kind_18 ++ else ++ OMPI_MPI_OFFSET_KIND=0 ++ fi ++ ++ ++ ++# checkpoint results ++cat >confcache <<\_ACEOF ++# This file is a shell script that caches the results of configure ++# tests run on this system so they can be shared between configure ++# scripts and configure runs, see configure's option --config-cache. ++# It is not useful on other systems. If it contains results you don't ++# want to keep, you may remove or edit it. ++# ++# config.status only pays attention to the cache file if you give it ++# the --recheck option to rerun configure. ++# ++# `ac_cv_env_foo' variables (set or unset) will be overridden when ++# loading this file, other *unset* `ac_cv_foo' will be assigned the ++# following values. ++ ++_ACEOF ++ ++# The following way of writing the cache mishandles newlines in values, ++# but we know of no workaround that is simple, portable, and efficient. ++# So, we kill variables containing newlines. ++# Ultrix sh set writes to stderr and can't be redirected directly, ++# and sets the high bit in the cache file unless we assign to the vars. ++( ++ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do ++ eval ac_val=\$$ac_var ++ case $ac_val in #( ++ *${as_nl}*) ++ case $ac_var in #( ++ *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 ++echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; ++ esac ++ case $ac_var in #( ++ _ | IFS | as_nl) ;; #( ++ *) $as_unset $ac_var ;; ++ esac ;; ++ esac ++ done ++ ++ (set) 2>&1 | ++ case $as_nl`(ac_space=' '; set) 2>&1` in #( ++ *${as_nl}ac_space=\ *) ++ # `set' does not quote correctly, so add quotes (double-quote ++ # substitution turns \\\\ into \\, and sed turns \\ into \). ++ sed -n \ ++ "s/'/'\\\\''/g; ++ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ++ ;; #( ++ *) ++ # `set' quotes correctly as required by POSIX, so do not add quotes. ++ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ++ ;; ++ esac | ++ sort ++) | ++ sed ' ++ /^ac_cv_env_/b end ++ t clear ++ :clear ++ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ ++ t end ++ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ ++ :end' >>confcache ++if diff "$cache_file" confcache >/dev/null 2>&1; then :; else ++ if test -w "$cache_file"; then ++ test "x$cache_file" != "x/dev/null" && ++ { echo "$as_me:$LINENO: updating cache $cache_file" >&5 ++echo "$as_me: updating cache $cache_file" >&6;} ++ cat confcache >$cache_file ++ else ++ { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 ++echo "$as_me: not updating unwritable cache $cache_file" >&6;} ++ fi ++fi ++rm -f confcache ++ ++################################## ++# Header files ++################################## ++ ++ompi_show_title "Header file tests" ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++for ac_header in alloca.h aio.h arpa/inet.h dirent.h \ ++ dlfcn.h execinfo.h err.h fcntl.h grp.h inttypes.h libgen.h \ ++ libutil.h netdb.h netinet/in.h netinet/tcp.h \ ++ poll.h pthread.h pty.h pwd.h sched.h stdint.h \ ++ string.h strings.h stropts.h sys/fcntl.h sys/ipc.h \ ++ sys/ioctl.h sys/mman.h sys/param.h sys/queue.h \ ++ sys/resource.h sys/select.h sys/socket.h sys/sockio.h \ ++ stdarg.h sys/stat.h sys/statvfs.h sys/time.h sys/tree.h \ ++ sys/types.h sys/uio.h net/uio.h sys/utsname.h sys/wait.h syslog.h \ ++ time.h termios.h ulimit.h unistd.h util.h utmp.h malloc.h \ ++ ifaddrs.h sys/sysctl.h crt_externs.h regex.h \ ++ ioLib.h sockLib.h hostLib.h shlwapi.h sys/synch.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++ ++# Needed to work around Darwin requiring sys/socket.h for ++# net/if.h ++ ++for ac_header in net/if.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#if STDC_HEADERS ++# include ++# include ++#else ++# if HAVE_STDLIB_H ++# include ++# endif ++#endif ++#if HAVE_SYS_SOCKET_H ++# include ++#endif ++ ++ ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ eval "$as_ac_Header=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_Header=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++ ++# Note that sometimes we have , but it doesn't work (e.g., ++# have both Portland and GNU installed; using pgcc will find GNU's ++# , which all it does -- by standard -- is define "bool" to ++# "_Bool" [see ++# http://www.opengroup.org/onlinepubs/009695399/basedefs/stdbool.h.html], ++# and Portland has no idea what to do with _Bool). ++ ++# So first figure out if we have (i.e., check the value of ++# the macro HAVE_STDBOOL_H from the result of AC_CHECK_HEADERS, ++# above). If we do have it, then check to see if it actually works. ++# Define OMPI_USE_STDBOOL_H as approrpaite. ++ ++for ac_header in stdbool.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ have_stdbool_h=1 ++else ++ have_stdbool_h=0 ++fi ++ ++done ++ ++{ echo "$as_me:$LINENO: checking if works" >&5 ++echo $ECHO_N "checking if works... $ECHO_C" >&6; } ++if test "$have_stdbool_h" = "1"; then ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++$ac_includes_default ++#if HAVE_STDBOOL_H ++#include ++#endif ++int ++main () ++{ ++bool bar, foo = true; bar = foo; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ OMPI_USE_STDBOOL_H=1 MSG=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ OMPI_USE_STDBOOL_H=0 MSG=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++else ++ OMPI_USE_STDBOOL_H=0 ++ MSG="no (don't have )" ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_USE_STDBOOL_H $OMPI_USE_STDBOOL_H ++_ACEOF ++ ++{ echo "$as_me:$LINENO: result: $MSG" >&5 ++echo "${ECHO_T}$MSG" >&6; } ++ ++# checkpoint results ++cat >confcache <<\_ACEOF ++# This file is a shell script that caches the results of configure ++# tests run on this system so they can be shared between configure ++# scripts and configure runs, see configure's option --config-cache. ++# It is not useful on other systems. If it contains results you don't ++# want to keep, you may remove or edit it. ++# ++# config.status only pays attention to the cache file if you give it ++# the --recheck option to rerun configure. ++# ++# `ac_cv_env_foo' variables (set or unset) will be overridden when ++# loading this file, other *unset* `ac_cv_foo' will be assigned the ++# following values. ++ ++_ACEOF ++ ++# The following way of writing the cache mishandles newlines in values, ++# but we know of no workaround that is simple, portable, and efficient. ++# So, we kill variables containing newlines. ++# Ultrix sh set writes to stderr and can't be redirected directly, ++# and sets the high bit in the cache file unless we assign to the vars. ++( ++ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do ++ eval ac_val=\$$ac_var ++ case $ac_val in #( ++ *${as_nl}*) ++ case $ac_var in #( ++ *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 ++echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; ++ esac ++ case $ac_var in #( ++ _ | IFS | as_nl) ;; #( ++ *) $as_unset $ac_var ;; ++ esac ;; ++ esac ++ done ++ ++ (set) 2>&1 | ++ case $as_nl`(ac_space=' '; set) 2>&1` in #( ++ *${as_nl}ac_space=\ *) ++ # `set' does not quote correctly, so add quotes (double-quote ++ # substitution turns \\\\ into \\, and sed turns \\ into \). ++ sed -n \ ++ "s/'/'\\\\''/g; ++ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ++ ;; #( ++ *) ++ # `set' quotes correctly as required by POSIX, so do not add quotes. ++ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ++ ;; ++ esac | ++ sort ++) | ++ sed ' ++ /^ac_cv_env_/b end ++ t clear ++ :clear ++ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ ++ t end ++ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ ++ :end' >>confcache ++if diff "$cache_file" confcache >/dev/null 2>&1; then :; else ++ if test -w "$cache_file"; then ++ test "x$cache_file" != "x/dev/null" && ++ { echo "$as_me:$LINENO: updating cache $cache_file" >&5 ++echo "$as_me: updating cache $cache_file" >&6;} ++ cat confcache >$cache_file ++ else ++ { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 ++echo "$as_me: not updating unwritable cache $cache_file" >&6;} ++ fi ++fi ++rm -f confcache ++ ++ ++################################## ++# Types ++################################## ++ ++ompi_show_title "Type tests" ++ ++# Size of pid_t ++{ echo "$as_me:$LINENO: checking for pid_t" >&5 ++echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_pid_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef pid_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_pid_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_pid_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 ++echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of pid_t" >&5 ++echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_pid_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef pid_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef pid_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef pid_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef pid_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef pid_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_pid_t=$ac_lo;; ++'') if test "$ac_cv_type_pid_t" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (pid_t) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_pid_t=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef pid_t ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_pid_t=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_pid_t" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (pid_t) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_pid_t=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_PID_T $ac_cv_sizeof_pid_t ++_ACEOF ++ ++ ++ ++{ echo "$as_me:$LINENO: checking for socklen_t" >&5 ++echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_socklen_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#if HAVE_SYS_SOCKET_H ++#include ++#endif ++#ifdef HAVE_NETINET_IN_H ++#include ++#endif ++ ++typedef socklen_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_socklen_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_socklen_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 ++echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } ++if test $ac_cv_type_socklen_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_SOCKLEN_T 1 ++_ACEOF ++ ++ ++fi ++{ echo "$as_me:$LINENO: checking for struct sockaddr_in" >&5 ++echo $ECHO_N "checking for struct sockaddr_in... $ECHO_C" >&6; } ++if test "${ac_cv_type_struct_sockaddr_in+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#if HAVE_SYS_SOCKET_H ++#include ++#endif ++#ifdef HAVE_NETINET_IN_H ++#include ++#endif ++ ++typedef struct sockaddr_in ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_struct_sockaddr_in=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_struct_sockaddr_in=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in" >&5 ++echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in" >&6; } ++if test $ac_cv_type_struct_sockaddr_in = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_STRUCT_SOCKADDR_IN 1 ++_ACEOF ++ ++ ++fi ++{ echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 ++echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; } ++if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#if HAVE_SYS_SOCKET_H ++#include ++#endif ++#ifdef HAVE_NETINET_IN_H ++#include ++#endif ++ ++typedef struct sockaddr_in6 ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_struct_sockaddr_in6=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_struct_sockaddr_in6=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5 ++echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; } ++if test $ac_cv_type_struct_sockaddr_in6 = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_STRUCT_SOCKADDR_IN6 1 ++_ACEOF ++ ++ ++fi ++{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 ++echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; } ++if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#if HAVE_SYS_SOCKET_H ++#include ++#endif ++#ifdef HAVE_NETINET_IN_H ++#include ++#endif ++ ++typedef struct sockaddr_storage ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_struct_sockaddr_storage=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_struct_sockaddr_storage=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5 ++echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; } ++if test $ac_cv_type_struct_sockaddr_storage = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_STRUCT_SOCKADDR_STORAGE 1 ++_ACEOF ++ ++ ++fi ++ ++ ++{ echo "$as_me:$LINENO: checking whether AF_UNSPEC is declared" >&5 ++echo $ECHO_N "checking whether AF_UNSPEC is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl_AF_UNSPEC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#if HAVE_SYS_SOCKET_H ++#include ++#endif ++#ifdef HAVE_NETINET_IN_H ++#include ++#endif ++ ++int ++main () ++{ ++#ifndef AF_UNSPEC ++ (void) AF_UNSPEC; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl_AF_UNSPEC=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl_AF_UNSPEC=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AF_UNSPEC" >&5 ++echo "${ECHO_T}$ac_cv_have_decl_AF_UNSPEC" >&6; } ++if test $ac_cv_have_decl_AF_UNSPEC = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_AF_UNSPEC 1 ++_ACEOF ++ ++ ++else ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_AF_UNSPEC 0 ++_ACEOF ++ ++ ++fi ++{ echo "$as_me:$LINENO: checking whether PF_UNSPEC is declared" >&5 ++echo $ECHO_N "checking whether PF_UNSPEC is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl_PF_UNSPEC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#if HAVE_SYS_SOCKET_H ++#include ++#endif ++#ifdef HAVE_NETINET_IN_H ++#include ++#endif ++ ++int ++main () ++{ ++#ifndef PF_UNSPEC ++ (void) PF_UNSPEC; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl_PF_UNSPEC=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl_PF_UNSPEC=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PF_UNSPEC" >&5 ++echo "${ECHO_T}$ac_cv_have_decl_PF_UNSPEC" >&6; } ++if test $ac_cv_have_decl_PF_UNSPEC = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_PF_UNSPEC 1 ++_ACEOF ++ ++ ++else ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_PF_UNSPEC 0 ++_ACEOF ++ ++ ++fi ++{ echo "$as_me:$LINENO: checking whether AF_INET6 is declared" >&5 ++echo $ECHO_N "checking whether AF_INET6 is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl_AF_INET6+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#if HAVE_SYS_SOCKET_H ++#include ++#endif ++#ifdef HAVE_NETINET_IN_H ++#include ++#endif ++ ++int ++main () ++{ ++#ifndef AF_INET6 ++ (void) AF_INET6; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl_AF_INET6=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl_AF_INET6=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AF_INET6" >&5 ++echo "${ECHO_T}$ac_cv_have_decl_AF_INET6" >&6; } ++if test $ac_cv_have_decl_AF_INET6 = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_AF_INET6 1 ++_ACEOF ++ ++ ++else ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_AF_INET6 0 ++_ACEOF ++ ++ ++fi ++{ echo "$as_me:$LINENO: checking whether PF_INET6 is declared" >&5 ++echo $ECHO_N "checking whether PF_INET6 is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl_PF_INET6+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#if HAVE_SYS_SOCKET_H ++#include ++#endif ++#ifdef HAVE_NETINET_IN_H ++#include ++#endif ++ ++int ++main () ++{ ++#ifndef PF_INET6 ++ (void) PF_INET6; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl_PF_INET6=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl_PF_INET6=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PF_INET6" >&5 ++echo "${ECHO_T}$ac_cv_have_decl_PF_INET6" >&6; } ++if test $ac_cv_have_decl_PF_INET6 = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_PF_INET6 1 ++_ACEOF ++ ++ ++else ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_PF_INET6 0 ++_ACEOF ++ ++ ++fi ++ ++ ++ ++# SA_RESTART in signal.h ++{ echo "$as_me:$LINENO: checking if SA_RESTART defined in signal.h" >&5 ++echo $ECHO_N "checking if SA_RESTART defined in signal.h... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#ifdef SA_RESTART ++ yes ++#endif ++_ACEOF ++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ++ $EGREP "yes" >/dev/null 2>&1; then ++ MSG=yes VALUE=1 ++else ++ MSG=no VALUE=0 ++fi ++rm -f conftest* ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_SA_RESTART $VALUE ++_ACEOF ++ ++{ echo "$as_me:$LINENO: result: $MSG" >&5 ++echo "${ECHO_T}$MSG" >&6; } ++ ++{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 ++echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; } ++if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#if HAVE_SYS_SOCKET_H ++#include ++#endif ++ ++int ++main () ++{ ++static struct sockaddr ac_aggr; ++if (ac_aggr.sa_len) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_struct_sockaddr_sa_len=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#if HAVE_SYS_SOCKET_H ++#include ++#endif ++ ++int ++main () ++{ ++static struct sockaddr ac_aggr; ++if (sizeof ac_aggr.sa_len) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_struct_sockaddr_sa_len=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_member_struct_sockaddr_sa_len=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 ++echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } ++if test $ac_cv_member_struct_sockaddr_sa_len = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_STRUCT_SOCKADDR_SA_LEN 1 ++_ACEOF ++ ++ ++fi ++ ++ ++{ echo "$as_me:$LINENO: checking for struct dirent.d_type" >&5 ++echo $ECHO_N "checking for struct dirent.d_type... $ECHO_C" >&6; } ++if test "${ac_cv_member_struct_dirent_d_type+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++ ++int ++main () ++{ ++static struct dirent ac_aggr; ++if (ac_aggr.d_type) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_struct_dirent_d_type=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++ ++int ++main () ++{ ++static struct dirent ac_aggr; ++if (sizeof ac_aggr.d_type) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_struct_dirent_d_type=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_member_struct_dirent_d_type=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_type" >&5 ++echo "${ECHO_T}$ac_cv_member_struct_dirent_d_type" >&6; } ++if test $ac_cv_member_struct_dirent_d_type = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_STRUCT_DIRENT_D_TYPE 1 ++_ACEOF ++ ++ ++fi ++ ++ ++{ echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5 ++echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; } ++if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++static siginfo_t ac_aggr; ++if (ac_aggr.si_fd) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_siginfo_t_si_fd=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++static siginfo_t ac_aggr; ++if (sizeof ac_aggr.si_fd) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_siginfo_t_si_fd=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_member_siginfo_t_si_fd=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5 ++echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; } ++if test $ac_cv_member_siginfo_t_si_fd = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_SIGINFO_T_SI_FD 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for siginfo_t.si_band" >&5 ++echo $ECHO_N "checking for siginfo_t.si_band... $ECHO_C" >&6; } ++if test "${ac_cv_member_siginfo_t_si_band+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++static siginfo_t ac_aggr; ++if (ac_aggr.si_band) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_siginfo_t_si_band=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++static siginfo_t ac_aggr; ++if (sizeof ac_aggr.si_band) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_siginfo_t_si_band=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_member_siginfo_t_si_band=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_band" >&5 ++echo "${ECHO_T}$ac_cv_member_siginfo_t_si_band" >&6; } ++if test $ac_cv_member_siginfo_t_si_band = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_SIGINFO_T_SI_BAND 1 ++_ACEOF ++ ++ ++fi ++ ++ ++ ++# checkpoint results ++cat >confcache <<\_ACEOF ++# This file is a shell script that caches the results of configure ++# tests run on this system so they can be shared between configure ++# scripts and configure runs, see configure's option --config-cache. ++# It is not useful on other systems. If it contains results you don't ++# want to keep, you may remove or edit it. ++# ++# config.status only pays attention to the cache file if you give it ++# the --recheck option to rerun configure. ++# ++# `ac_cv_env_foo' variables (set or unset) will be overridden when ++# loading this file, other *unset* `ac_cv_foo' will be assigned the ++# following values. ++ ++_ACEOF ++ ++# The following way of writing the cache mishandles newlines in values, ++# but we know of no workaround that is simple, portable, and efficient. ++# So, we kill variables containing newlines. ++# Ultrix sh set writes to stderr and can't be redirected directly, ++# and sets the high bit in the cache file unless we assign to the vars. ++( ++ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do ++ eval ac_val=\$$ac_var ++ case $ac_val in #( ++ *${as_nl}*) ++ case $ac_var in #( ++ *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 ++echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; ++ esac ++ case $ac_var in #( ++ _ | IFS | as_nl) ;; #( ++ *) $as_unset $ac_var ;; ++ esac ;; ++ esac ++ done ++ ++ (set) 2>&1 | ++ case $as_nl`(ac_space=' '; set) 2>&1` in #( ++ *${as_nl}ac_space=\ *) ++ # `set' does not quote correctly, so add quotes (double-quote ++ # substitution turns \\\\ into \\, and sed turns \\ into \). ++ sed -n \ ++ "s/'/'\\\\''/g; ++ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ++ ;; #( ++ *) ++ # `set' quotes correctly as required by POSIX, so do not add quotes. ++ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ++ ;; ++ esac | ++ sort ++) | ++ sed ' ++ /^ac_cv_env_/b end ++ t clear ++ :clear ++ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ ++ t end ++ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ ++ :end' >>confcache ++if diff "$cache_file" confcache >/dev/null 2>&1; then :; else ++ if test -w "$cache_file"; then ++ test "x$cache_file" != "x/dev/null" && ++ { echo "$as_me:$LINENO: updating cache $cache_file" >&5 ++echo "$as_me: updating cache $cache_file" >&6;} ++ cat confcache >$cache_file ++ else ++ { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 ++echo "$as_me: not updating unwritable cache $cache_file" >&6;} ++ fi ++fi ++rm -f confcache ++ ++ ++################################## ++# Libraries ++################################## ++ ++ompi_show_title "Library and Function tests" ++ ++ ++{ echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 ++echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; } ++if test "${ac_cv_lib_util_openpty+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lutil $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char openpty (); ++int ++main () ++{ ++return openpty (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_util_openpty=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_util_openpty=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 ++echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; } ++if test $ac_cv_lib_util_openpty = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_LIBUTIL 1 ++_ACEOF ++ ++ LIBS="-lutil $LIBS" ++ ++fi ++ ++ ++ ++{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 ++echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } ++if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lnsl $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char gethostbyname (); ++int ++main () ++{ ++return gethostbyname (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_nsl_gethostbyname=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_nsl_gethostbyname=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 ++echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } ++if test $ac_cv_lib_nsl_gethostbyname = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_LIBNSL 1 ++_ACEOF ++ ++ LIBS="-lnsl $LIBS" ++ ++fi ++ ++ ++ ++{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 ++echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } ++if test "${ac_cv_lib_socket_socket+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lsocket $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char socket (); ++int ++main () ++{ ++return socket (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_socket_socket=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_socket_socket=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 ++echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } ++if test $ac_cv_lib_socket_socket = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_LIBSOCKET 1 ++_ACEOF ++ ++ LIBS="-lsocket $LIBS" ++ ++fi ++ ++ ++# Solaris has sched_yeild in -lrt, usually in libc ++ ++ { echo "$as_me:$LINENO: checking if we need -lrt for sched_yield" >&5 ++echo $ECHO_N "checking if we need -lrt for sched_yield... $ECHO_C" >&6; } ++if test "${ompi_cv_func_lib_sched_yield_rt+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define sched_yield to an innocuous variant, in case declares sched_yield. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define sched_yield innocuous_sched_yield ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char sched_yield (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef sched_yield ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char sched_yield (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_sched_yield || defined __stub___sched_yield ++choke me ++#endif ++ ++int ++main () ++{ ++return sched_yield (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_lib_sched_yield_rt="no" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ LIBS_save="$LIBS" ++ LIBS="$LIBS -lrt" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define sched_yield to an innocuous variant, in case declares sched_yield. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define sched_yield innocuous_sched_yield ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char sched_yield (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef sched_yield ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char sched_yield (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_sched_yield || defined __stub___sched_yield ++choke me ++#endif ++ ++int ++main () ++{ ++return sched_yield (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_lib_sched_yield_rt="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_lib_sched_yield_rt="not found" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LIBS="$LIBS_save" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_lib_sched_yield_rt" >&5 ++echo "${ECHO_T}$ompi_cv_func_lib_sched_yield_rt" >&6; } ++ if test "$ompi_cv_func_lib_sched_yield_rt" = "yes"; then ++ LIBS="$LIBS -lrt" ++fi ++ ++ ++ # see if we actually have sched_yield. Use AC_CHECK_FUNCS so that it ++ # does the glibc "not implemented" check. Will use the current LIBS, ++ # so will check in -lrt if we decided we needed it above ++ ++for ac_func in sched_yield ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ ++ ++# IRIX has dirname in -lgen, usually in libc ++ ++ { echo "$as_me:$LINENO: checking if we need -lgen for dirname" >&5 ++echo $ECHO_N "checking if we need -lgen for dirname... $ECHO_C" >&6; } ++if test "${ompi_cv_func_lib_dirname_gen+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define dirname to an innocuous variant, in case declares dirname. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define dirname innocuous_dirname ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char dirname (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef dirname ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dirname (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_dirname || defined __stub___dirname ++choke me ++#endif ++ ++int ++main () ++{ ++return dirname (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_lib_dirname_gen="no" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ LIBS_save="$LIBS" ++ LIBS="$LIBS -lgen" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define dirname to an innocuous variant, in case declares dirname. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define dirname innocuous_dirname ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char dirname (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef dirname ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dirname (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_dirname || defined __stub___dirname ++choke me ++#endif ++ ++int ++main () ++{ ++return dirname (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_lib_dirname_gen="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_lib_dirname_gen="not found" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LIBS="$LIBS_save" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_lib_dirname_gen" >&5 ++echo "${ECHO_T}$ompi_cv_func_lib_dirname_gen" >&6; } ++ if test "$ompi_cv_func_lib_dirname_gen" = "yes"; then ++ LIBS="$LIBS -lgen" ++fi ++ ++ ++ # see if we actually have dirname. Use AC_CHECK_FUNCS so that it ++ # does the glibc "not implemented" check. Will use the current LIBS, ++ # so will check in -lgen if we decided we needed it above ++ ++for ac_func in dirname ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ ++ ++# Darwin doesn't need -lm, as it's a symlink to libSystem.dylib ++ ++ { echo "$as_me:$LINENO: checking if we need -lm for ceil" >&5 ++echo $ECHO_N "checking if we need -lm for ceil... $ECHO_C" >&6; } ++if test "${ompi_cv_func_lib_ceil_m+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define ceil to an innocuous variant, in case declares ceil. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define ceil innocuous_ceil ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char ceil (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef ceil ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ceil (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_ceil || defined __stub___ceil ++choke me ++#endif ++ ++int ++main () ++{ ++return ceil (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_lib_ceil_m="no" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ LIBS_save="$LIBS" ++ LIBS="$LIBS -lm" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define ceil to an innocuous variant, in case declares ceil. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define ceil innocuous_ceil ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char ceil (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef ceil ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ceil (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_ceil || defined __stub___ceil ++choke me ++#endif ++ ++int ++main () ++{ ++return ceil (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_lib_ceil_m="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_lib_ceil_m="not found" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LIBS="$LIBS_save" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_lib_ceil_m" >&5 ++echo "${ECHO_T}$ompi_cv_func_lib_ceil_m" >&6; } ++ if test "$ompi_cv_func_lib_ceil_m" = "yes"; then ++ LIBS="$LIBS -lm" ++fi ++ ++ ++ # see if we actually have ceil. Use AC_CHECK_FUNCS so that it ++ # does the glibc "not implemented" check. Will use the current LIBS, ++ # so will check in -lm if we decided we needed it above ++ ++for ac_func in ceil ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++for ac_func in asprintf snprintf vasprintf vsnprintf openpty isatty getpwuid fork waitpid execve pipe ptsname setsid mmap mallopt tcgetpgrp posix_memalign strsignal sysconf syslog regcmp regexec regfree _NSGetEnviron socketpair strncpy_s _strdup usleep mkfifo ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ ++# On some hosts, htonl is a define, so the AC_CHECK_FUNC will get ++# confused. On others, it's in the standard library, but stubbed with ++# the magic glibc foo as not implemented. and on other systems, it's ++# just not there. This covers all cases. ++{ echo "$as_me:$LINENO: checking for htonl define" >&5 ++echo $ECHO_N "checking for htonl define... $ECHO_C" >&6; } ++if test "${ompi_cv_htonl_define+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#ifdef HAVE_SYS_TYPES_H ++#include ++#endif ++#ifdef HAVE_NETINET_IN_H ++#include ++#endif ++#ifdef HAVE_ARPA_INET_H ++#include ++#endif ++int ++main () ++{ ++ ++#ifndef ntohl ++#error "ntohl not defined" ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ompi_cv_htonl_define=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_htonl_define=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_htonl_define" >&5 ++echo "${ECHO_T}$ompi_cv_htonl_define" >&6; } ++{ echo "$as_me:$LINENO: checking for htonl" >&5 ++echo $ECHO_N "checking for htonl... $ECHO_C" >&6; } ++if test "${ac_cv_func_htonl+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define htonl to an innocuous variant, in case declares htonl. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define htonl innocuous_htonl ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char htonl (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef htonl ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char htonl (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_htonl || defined __stub___htonl ++choke me ++#endif ++ ++int ++main () ++{ ++return htonl (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_htonl=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_htonl=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_htonl" >&5 ++echo "${ECHO_T}$ac_cv_func_htonl" >&6; } ++if test $ac_cv_func_htonl = yes; then ++ ompi_have_htonl=yes ++else ++ ompi_have_htonl=no ++fi ++ ++if test "$ompi_cv_htonl_define" = "yes" -o "$ompi_have_htonl" = "yes"; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_UNIX_BYTESWAP 1 ++_ACEOF ++ ++fi ++ ++ ++# ++# Make sure we can copy va_lists (need check declared, not linkable) ++# ++ ++{ echo "$as_me:$LINENO: checking whether va_copy is declared" >&5 ++echo $ECHO_N "checking whether va_copy is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl_va_copy+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++#ifndef va_copy ++ (void) va_copy; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl_va_copy=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl_va_copy=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_va_copy" >&5 ++echo "${ECHO_T}$ac_cv_have_decl_va_copy" >&6; } ++if test $ac_cv_have_decl_va_copy = yes; then ++ OMPI_HAVE_VA_COPY=1 ++else ++ OMPI_HAVE_VA_COPY=0 ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_VA_COPY $OMPI_HAVE_VA_COPY ++_ACEOF ++ ++ ++{ echo "$as_me:$LINENO: checking whether __va_copy is declared" >&5 ++echo $ECHO_N "checking whether __va_copy is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl___va_copy+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++#ifndef __va_copy ++ (void) __va_copy; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl___va_copy=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl___va_copy=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___va_copy" >&5 ++echo "${ECHO_T}$ac_cv_have_decl___va_copy" >&6; } ++if test $ac_cv_have_decl___va_copy = yes; then ++ OMPI_HAVE_UNDERSCORE_VA_COPY=1 ++else ++ OMPI_HAVE_UNDERSCORE_VA_COPY=0 ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_UNDERSCORE_VA_COPY $OMPI_HAVE_UNDERSCORE_VA_COPY ++_ACEOF ++ ++ ++{ echo "$as_me:$LINENO: checking whether __func__ is declared" >&5 ++echo $ECHO_N "checking whether __func__ is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl___func__+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++int ++main () ++{ ++#ifndef __func__ ++ (void) __func__; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl___func__=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl___func__=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___func__" >&5 ++echo "${ECHO_T}$ac_cv_have_decl___func__" >&6; } ++if test $ac_cv_have_decl___func__ = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL___FUNC__ 1 ++_ACEOF ++ ++ ++else ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL___FUNC__ 0 ++_ACEOF ++ ++ ++fi ++ ++ ++ ++# checkpoint results ++cat >confcache <<\_ACEOF ++# This file is a shell script that caches the results of configure ++# tests run on this system so they can be shared between configure ++# scripts and configure runs, see configure's option --config-cache. ++# It is not useful on other systems. If it contains results you don't ++# want to keep, you may remove or edit it. ++# ++# config.status only pays attention to the cache file if you give it ++# the --recheck option to rerun configure. ++# ++# `ac_cv_env_foo' variables (set or unset) will be overridden when ++# loading this file, other *unset* `ac_cv_foo' will be assigned the ++# following values. ++ ++_ACEOF ++ ++# The following way of writing the cache mishandles newlines in values, ++# but we know of no workaround that is simple, portable, and efficient. ++# So, we kill variables containing newlines. ++# Ultrix sh set writes to stderr and can't be redirected directly, ++# and sets the high bit in the cache file unless we assign to the vars. ++( ++ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do ++ eval ac_val=\$$ac_var ++ case $ac_val in #( ++ *${as_nl}*) ++ case $ac_var in #( ++ *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 ++echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; ++ esac ++ case $ac_var in #( ++ _ | IFS | as_nl) ;; #( ++ *) $as_unset $ac_var ;; ++ esac ;; ++ esac ++ done ++ ++ (set) 2>&1 | ++ case $as_nl`(ac_space=' '; set) 2>&1` in #( ++ *${as_nl}ac_space=\ *) ++ # `set' does not quote correctly, so add quotes (double-quote ++ # substitution turns \\\\ into \\, and sed turns \\ into \). ++ sed -n \ ++ "s/'/'\\\\''/g; ++ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ++ ;; #( ++ *) ++ # `set' quotes correctly as required by POSIX, so do not add quotes. ++ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ++ ;; ++ esac | ++ sort ++) | ++ sed ' ++ /^ac_cv_env_/b end ++ t clear ++ :clear ++ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ ++ t end ++ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ ++ :end' >>confcache ++if diff "$cache_file" confcache >/dev/null 2>&1; then :; else ++ if test -w "$cache_file"; then ++ test "x$cache_file" != "x/dev/null" && ++ { echo "$as_me:$LINENO: updating cache $cache_file" >&5 ++echo "$as_me: updating cache $cache_file" >&6;} ++ cat confcache >$cache_file ++ else ++ { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 ++echo "$as_me: not updating unwritable cache $cache_file" >&6;} ++ fi ++fi ++rm -f confcache ++ ++ ++################################## ++# System-specific tests ++################################## ++ ++ompi_show_title "System-specific tests" ++ ++# ++# Test to determine type of MPI_Offset. This is searched in the following order ++# int64_t, long long, long, int. If none of these are 8 bytes, then we should ++# search for int32_t, long long, long, int. ++# ++MPI_OFFSET_TYPE="not found" ++MPI_OFFSET_DATATYPE="not found" ++{ echo "$as_me:$LINENO: checking checking for type of MPI_Offset" >&5 ++echo $ECHO_N "checking checking for type of MPI_Offset... $ECHO_C" >&6; } ++if test "$ac_cv_type_long_long" = "yes" -a "$ac_cv_sizeof_long_long" = 8; then ++ MPI_OFFSET_TYPE="long long" ++ MPI_OFFSET_DATATYPE=MPI_LONG_LONG ++ MPI_OFFSET_SIZE=8 ++elif test "$ac_cv_type_long" = "yes" -a "$ac_cv_sizeof_long" = 8; then ++ MPI_OFFSET_TYPE="long" ++ MPI_OFFSET_DATATYPE=MPI_LONG ++ MPI_OFFSET_SIZE=8 ++elif test "ac_cv_sizeof_int" = 8; then ++ MPI_OFFSET_TYPE=int ++ MPI_OFFSET_DATATYPE=MPI_INT ++ MPI_OFFSET_SIZE=8 ++elif test "$ac_cv_type_long_long" = "yes" -a "$ac_cv_sizeof_long_long" = 4; then ++ MPI_OFFSET_TYPE="long long" ++ MPI_OFFSET_DATATYPE=MPI_LONG_LONG ++ MPI_OFFSET_SIZE=4 ++elif test "$ac_cv_type_long" = "yes" -a "$ac_cv_sizeof_long" = 4; then ++ MPI_OFFSET_TYPE="long" ++ MPI_OFFSET_DATATYPE=MPI_LONG ++ MPI_OFFSET_SIZE=4 ++elif test "ac_cv_sizeof_int" = 4; then ++ MPI_OFFSET_TYPE=int ++ MPI_OFFSET_DATATYPE=MPI_INT ++ MPI_OFFSET_SIZE=4 ++fi ++{ echo "$as_me:$LINENO: result: $MPI_OFFSET_TYPE" >&5 ++echo "${ECHO_T}$MPI_OFFSET_TYPE" >&6; } ++if test "$MPI_OFFSET_TYPE" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Unable to find the right definition for MPI_Offset" >&5 ++echo "$as_me: WARNING: *** Unable to find the right definition for MPI_Offset" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_MPI_OFFSET_TYPE $MPI_OFFSET_TYPE ++_ACEOF ++ ++ ++# ++# Check for MPI_Aint type. Yes, there are platforms where ++# sizeof(void*) != sizeof(long) (64 bit Windows, apparently). ++# ++if test $ac_cv_type_ptrdiff_t = yes ; then ++ ompi_ptrdiff_t="ptrdiff_t" ++elif test $ac_cv_sizeof_void_p -eq $ac_cv_sizeof_long ; then ++ ompi_ptrdiff_t="long" ++elif test $ac_cv_type_long_long = yes -a $ac_cv_sizeof_void_p -eq $ac_cv_sizeof_long_long ; then ++ ompi_ptrdiff_t="long long" ++else ++ { { echo "$as_me:$LINENO: error: Could not find datatype to emulate ptrdiff_t. Cannot continue" >&5 ++echo "$as_me: error: Could not find datatype to emulate ptrdiff_t. Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PTRDIFF_TYPE $ompi_ptrdiff_t ++_ACEOF ++ ++ ++# ++# If we haven't already, figure out an MPI datatype that corresponds ++# to the back-end C type of MPI_Offset. ++# ++{ echo "$as_me:$LINENO: checking checking for an MPI datatype for MPI_Offset" >&5 ++echo $ECHO_N "checking checking for an MPI datatype for MPI_Offset... $ECHO_C" >&6; } ++{ echo "$as_me:$LINENO: result: $MPI_OFFSET_DATATYPE" >&5 ++echo "${ECHO_T}$MPI_OFFSET_DATATYPE" >&6; } ++if test "$MPI_OFFSET_DATATYPE" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Unable to find an MPI datatype corresponding to MPI_Offset" >&5 ++echo "$as_me: WARNING: *** Unable to find an MPI datatype corresponding to MPI_Offset" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_OFFSET_DATATYPE $MPI_OFFSET_DATATYPE ++_ACEOF ++ ++ ++# Do we have _SC_NPROCESSORS_ONLN? (only going to pass if we also have ++# and sysconf(), which is ok) OS X 10.4 has and ++# sysconf(), but does not have _SC_NPROCESSORS_ONLN. Doh! ++ ++{ echo "$as_me:$LINENO: checking for _SC_NPROCESSORS_ONLN" >&5 ++echo $ECHO_N "checking for _SC_NPROCESSORS_ONLN... $ECHO_C" >&6; } ++if test "${ompi_cv_have__SC_NPROCESSORS_ONLN+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++$ac_includes_default ++#include ++ ++int ++main () ++{ ++int i = _SC_NPROCESSORS_ONLN; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_have__SC_NPROCESSORS_ONLN="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_have__SC_NPROCESSORS_ONLN="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_have__SC_NPROCESSORS_ONLN" >&5 ++echo "${ECHO_T}$ompi_cv_have__SC_NPROCESSORS_ONLN" >&6; } ++if test "$ompi_cv_have__SC_NPROCESSORS_ONLN" = "yes"; then ++ result=1 ++else ++ result=0 ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_HAVE__SC_NPROCESSORS_ONLN $result ++_ACEOF ++ ++ ++# all: endian ++ ++{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 ++echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } ++if test "${ac_cv_c_bigendian+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # See if sys/param.h defines the BYTE_ORDER macro. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++ ++int ++main () ++{ ++#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ ++ && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) ++ bogus endian macros ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ # It does; now see whether it defined to BIG_ENDIAN or not. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++ ++int ++main () ++{ ++#if BYTE_ORDER != BIG_ENDIAN ++ not big endian ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_c_bigendian=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_c_bigendian=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # It does not; compile a test program. ++if test "$cross_compiling" = yes; then ++ # try to guess the endianness by grepping values into an object file ++ ac_cv_c_bigendian=unknown ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; ++short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; ++void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } ++short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; ++short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; ++void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } ++int ++main () ++{ ++ _ascii (); _ebcdic (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then ++ ac_cv_c_bigendian=yes ++fi ++if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then ++ if test "$ac_cv_c_bigendian" = unknown; then ++ ac_cv_c_bigendian=no ++ else ++ # finding both strings is unlikely to happen, but who knows? ++ ac_cv_c_bigendian=unknown ++ fi ++fi ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++int ++main () ++{ ++ ++ /* Are we little or big endian? From Harbison&Steele. */ ++ union ++ { ++ long int l; ++ char c[sizeof (long int)]; ++ } u; ++ u.l = 1; ++ return u.c[sizeof (long int) - 1] == 1; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_c_bigendian=no ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++ac_cv_c_bigendian=yes ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 ++echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } ++case $ac_cv_c_bigendian in ++ yes) ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define WORDS_BIGENDIAN 1 ++_ACEOF ++ ;; ++ no) ++ ;; ++ *) ++ { { echo "$as_me:$LINENO: error: unknown endianness ++presetting ac_cv_c_bigendian=no (or yes) will help" >&5 ++echo "$as_me: error: unknown endianness ++presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} ++ { (exit 1); exit 1; }; } ;; ++esac ++ ++ ++ ++ ++# Check whether --with-broken-qsort was given. ++if test "${with_broken_qsort+set}" = set; then ++ withval=$with_broken_qsort; ++fi ++ ++ { echo "$as_me:$LINENO: checking for broken qsort" >&5 ++echo $ECHO_N "checking for broken qsort... $ECHO_C" >&6; } ++ ++ if test "$with_broken_qsort" = "yes"; then ++ result="yes" ++ define_result=1 ++ else ++ result="no" ++ define_result=0 ++ fi ++ { echo "$as_me:$LINENO: result: $result" >&5 ++echo "${ECHO_T}$result" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_BROKEN_QSORT $define_result ++_ACEOF ++ ++ ++ ++{ echo "$as_me:$LINENO: checking if word-sized integers must be word-size aligned" >&5 ++echo $ECHO_N "checking if word-sized integers must be word-size aligned... $ECHO_C" >&6; } ++if test "${ompi_cv_c_word_size_align+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$cross_compiling" = yes; then ++ ompi_cv_c_word_size_align=yes ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ long data[2] = {0, 0}; ++ long *lp; ++ int *ip; ++ ip = (int*) data; ++ ip++; ++ lp = (long*) ip; ++ return lp[0]; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_word_size_align=no ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++ompi_cv_c_word_size_align=yes ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_word_size_align" >&5 ++echo "${ECHO_T}$ompi_cv_c_word_size_align" >&6; } ++if test $ompi_cv_c_word_size_align = yes; then ++ results=1 ++else ++ results=0 ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGN_WORD_SIZE_INTEGERS $results ++_ACEOF ++ ++ ++# all: SYSV semaphores ++# all: SYSV shared memory ++# all: size of FD_SET ++# all: sizeof struct stat members ++# all: type of getsockopt optlen ++# all: type of recvfrom optlen ++ ++# ++# Check out what thread support we have ++# ++ ++ ++# ++# Arguments: none ++# ++# Dependencies: None ++# ++# Modifies: ++# none - see called tests ++# ++# configure threads ++# ++ ++# create templates ++ ++ ++ ++ ++ ++# ++# Check for thread types - add your type here... ++# ++ ++ ++ ++ompi_pthread_c_success=0 ++ompi_pthread_f77_success=0 ++ompi_pthread_cxx_success=0 ++ ++orig_CFLAGS="$CFLAGS" ++orig_FFLAGS="$FFLAGS" ++orig_CXXFLAGS="$CXXFLAGS" ++orig_CPPFLAGS="$CPPFLAGS" ++orig_CXXCPPFLAGS="$CXXCPPFLAGS" ++orig_LDFLAGS="$LDFLAGS" ++orig_LIBS="$LIBS" ++ ++PTRHEAD_CFLAGS= ++PTHREAD_FFLAGS= ++PTHREAD_CXXFLAGS= ++PTHREAD_CPPFLAGS= ++PTHREAD_CXXCPPFLAGS= ++PTHREAD_LDFLAGS= ++PTHREAD_LIBS= ++ ++# Try with the basics, mam. ++ ++# BEGIN: OMPI_INTL_POSIX_THREADS_PLAIN ++# ++# Check if can compile without any special flags ++# we throw -D_REENTRANT or -D_THREAD_SAFE in here, just in ++# case. Some systems (OS X, for example) generally don't need ++# the defines, but then will on one system header here or there ++# why take chances? ++# ++ ++# Only run C++ and Fortran if those compilers already configured ++ ++# ++# C compiler ++# ++if test "$ompi_pthread_c_success" = "0"; then ++ { echo "$as_me:$LINENO: checking if C compiler and POSIX threads work as is" >&5 ++echo $ECHO_N "checking if C compiler and POSIX threads work as is... $ECHO_C" >&6; } ++ if test "$HAVE_POSIX_THREADS" = "1" ; then ++ run_this_test=1 ++ else ++ case "${host_cpu}-${host_os}" in ++ *solaris*) ++ { echo "$as_me:$LINENO: result: no - Solaris, not checked" >&5 ++echo "${ECHO_T}no - Solaris, not checked" >&6; } ++ run_this_test=0 ++ ;; ++ *-aix* | *-freebsd*) ++ if test "`echo $CPPFLAGS | $GREP 'D_THREAD_SAFE'`" = ""; then ++ PTRHEAD_CPPFLAGS="-D_THREAD_SAFE" ++ CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS" ++ fi ++ run_this_test=1 ++ ;; ++ *) ++ if test "`echo $CPPFLAGS | $GREP 'D_REENTRANT'`" = ""; then ++ PTHREAD_CPPFLAGS="-D_REENTRANT" ++ CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS" ++ fi ++ run_this_test=1 ++ ;; ++ esac ++ fi ++ ++ if test "$run_this_test" = "1" ; then ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK ++# ++# Make sure that we can run a small application in C or C++, which ++# ever is the current language. Do make sure that C or C++ is the ++# current language. ++# ++# As long as this is not being run.... ++# pthread_t may be anything from an int to a struct -- init with self-tid. ++# ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++pthread_t th=pthread_self(); pthread_join(th, 0); ++ pthread_attr_init(0); pthread_cleanup_push(0, 0); ++ pthread_create(0,0,0,0); pthread_cleanup_pop(0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_pthread_c_success=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_pthread_c_success=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++# END: OMPI_INTL_PTHREAD_TRY_LINK ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_pthread_c_success" = "1"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ PTHREAD_CPPFLAGS= ++ CPPFLAGS="$orig_CPPFLAGS" ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ fi ++fi ++ ++ ++ ++# ++# C++ compiler ++# ++if test "$ompi_pthread_cxx_success" = "0"; then ++ { echo "$as_me:$LINENO: checking if C++ compiler and POSIX threads work as is" >&5 ++echo $ECHO_N "checking if C++ compiler and POSIX threads work as is... $ECHO_C" >&6; } ++ if test "$HAVE_POSIX_THREADS" = "1" ; then ++ run_this_test=1 ++ else ++ case "${host_cpu}-${host_os}" in ++ *solaris*) ++ { echo "$as_me:$LINENO: result: no - Solaris, not checked" >&5 ++echo "${ECHO_T}no - Solaris, not checked" >&6; } ++ run_this_test=0 ++ ;; ++ *-aix* | *-freebsd*) ++ if test "`echo $CXXCPPFLAGS | $GREP 'D_THREAD_SAFE'`" = ""; then ++ PTRHEAD_CXXCPPFLAGS="-D_THREAD_SAFE" ++ CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS" ++ fi ++ run_this_test=1 ++ ;; ++ *) ++ if test "`echo $CXXCPPFLAGS | $GREP 'D_REENTRANT'`" = ""; then ++ PTHREAD_CXXCPPFLAGS="-D_REENTRANT" ++ CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS" ++ fi ++ run_this_test=1 ++ ;; ++ esac ++ fi ++ ++ if test "$run_this_test" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK ++# ++# Make sure that we can run a small application in C or C++, which ++# ever is the current language. Do make sure that C or C++ is the ++# current language. ++# ++# As long as this is not being run.... ++# pthread_t may be anything from an int to a struct -- init with self-tid. ++# ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++pthread_t th=pthread_self(); pthread_join(th, 0); ++ pthread_attr_init(0); pthread_cleanup_push(0, 0); ++ pthread_create(0,0,0,0); pthread_cleanup_pop(0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_pthread_cxx_success=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_pthread_cxx_success=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++# END: OMPI_INTL_PTHREAD_TRY_LINK ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_pthread_cxx_success" = "1"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ PTHREAD_CXXCPPFLAGS= ++ CXXCPPFLAGS="$orig_CXXCPPFLAGS" ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ fi ++fi ++ ++ ++ ++# ++# Fortran compiler ++# ++if test "$ompi_pthread_f77_success" = "0" -a "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ { echo "$as_me:$LINENO: checking if F77 compiler and POSIX threads work as is" >&5 ++echo $ECHO_N "checking if F77 compiler and POSIX threads work as is... $ECHO_C" >&6; } ++ if test "$HAVE_POSIX_THREADS" = "1" ; then ++ run_this_test=1 ++ else ++ case "${host_cpu}-${host_os}" in ++ *solaris*) ++ { echo "$as_me:$LINENO: result: no - Solaris, not checked" >&5 ++echo "${ECHO_T}no - Solaris, not checked" >&6; } ++ run_this_test=0 ++ ;; ++ *) ++ run_this_test=1 ++ ;; ++ esac ++ fi ++ ++ if test "$run_this_test" = "1" ; then ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK_F77 ++# ++# Make sure that we can run a small application in Fortran, with ++# pthreads living in a C object file ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo pthreadtest | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_thread_fn=pthreadtest__ ++ else ++ ompi_ac_thread_fn=pthreadtest_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_thread_fn=pthreadtest_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_thread_fn=pthreadtest ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_thread_fn=pthreadtest ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_thread_fn=PTHREADTEST ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ ++# Fortran module ++cat > conftestf.f < conftest.c < ++#include ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_thread_fn() ++{ ++ pthread_t th; ++ pthread_create(&th, NULL, NULL, NULL); ++ pthread_join(th, 0); ++ pthread_attr_init(0); ++ pthread_cleanup_push(0, 0); ++ pthread_create(0,0,0,0); ++ pthread_cleanup_pop(0); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++# Try the compile ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ HAPPY=1 ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++ ++if test "$HAPPY" = "1"; then ++ ompi_pthread_f77_success=1 ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the C program:" >&5 ++else ++ echo here is the C program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ if test -f conftest.h; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is contest.h:" >&5 ++else ++ echo here is contest.h: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.h" -a -f "conftest.h"; then ++ cat conftest.h >&5 ++fi ++ fi ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran program:" >&5 ++else ++ echo here is the fortran program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f" -a -f "conftestf.f"; then ++ cat conftestf.f >&5 ++fi ++ ompi_pthread_f77_success=0 ++fi ++ ++unset HAPPY ompi_conftest_h ++rm -rf conftest* ++# END: OMPI_INTL_PTHREAD_TRY_LINK_F77 ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_pthread_f77_success" = "1"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ fi ++fi ++ ++ ++# End: OMPI_INTL_POSIX_THREADS_PLAIN ++ ++ ++# Try the super-special compiler flags. ++ ++# Begin: OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS ++# ++# If above didn't work, try some super-special compiler flags ++# that get evaluated to the "right" things. ++# ++# -Kthread: ++# -kthread: FreeBSD kernel threads ++# -pthread: Modern GCC (most all platforms) ++# -pthreads: GCC on solaris ++# -mthreads: ++# -mt: Solaris native compilers / HP-UX aCC ++# ++# Put -mt before -mthreads because HP-UX aCC will properly compile ++# with -mthreads (reading as -mt), but emit a warning about unknown ++# flags hreads. Stupid compilers. ++ ++case "${host_cpu}-${host_os}" in ++ *solaris*) ++ pflags="-pthread -pthreads -mt" ++ ;; ++ *) ++ pflags="-Kthread -kthread -pthread -pthreads -mt -mthreads" ++ ;; ++esac ++ ++# Only run C++ and Fortran if those compilers already configured ++ ++# ++# C compiler ++# ++if test "$ompi_pthread_c_success" = "0"; then ++ for pf in $pflags; do ++ { echo "$as_me:$LINENO: checking if C compiler and POSIX threads work with $pf" >&5 ++echo $ECHO_N "checking if C compiler and POSIX threads work with $pf... $ECHO_C" >&6; } ++ CFLAGS="$orig_CFLAGS $pf" ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK ++# ++# Make sure that we can run a small application in C or C++, which ++# ever is the current language. Do make sure that C or C++ is the ++# current language. ++# ++# As long as this is not being run.... ++# pthread_t may be anything from an int to a struct -- init with self-tid. ++# ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++pthread_t th=pthread_self(); pthread_join(th, 0); ++ pthread_attr_init(0); pthread_cleanup_push(0, 0); ++ pthread_create(0,0,0,0); pthread_cleanup_pop(0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_pthread_c_success=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_pthread_c_success=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++# END: OMPI_INTL_PTHREAD_TRY_LINK ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_pthread_c_success" = "1"; then ++ PTHREAD_CFLAGS="$pf" ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ break ++ else ++ PTHREAD_CFLAGS= ++ CFLAGS="$orig_CFLAGS" ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ done ++fi ++ ++ ++ ++# ++# C++ compiler ++# ++if test "$ompi_pthread_cxx_success" = "0"; then ++ for pf in $pflags; do ++ { echo "$as_me:$LINENO: checking if C++ compiler and POSIX threads work with $pf" >&5 ++echo $ECHO_N "checking if C++ compiler and POSIX threads work with $pf... $ECHO_C" >&6; } ++ CXXFLAGS="$orig_CXXFLAGS $pf" ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK ++# ++# Make sure that we can run a small application in C or C++, which ++# ever is the current language. Do make sure that C or C++ is the ++# current language. ++# ++# As long as this is not being run.... ++# pthread_t may be anything from an int to a struct -- init with self-tid. ++# ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++pthread_t th=pthread_self(); pthread_join(th, 0); ++ pthread_attr_init(0); pthread_cleanup_push(0, 0); ++ pthread_create(0,0,0,0); pthread_cleanup_pop(0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_pthread_cxx_success=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_pthread_cxx_success=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++# END: OMPI_INTL_PTHREAD_TRY_LINK ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_pthread_cxx_success" = "1"; then ++ PTHREAD_CXXFLAGS="$pf" ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ break ++ else ++ PTHREAD_CXXFLAGS= ++ CXXFLAGS="$orig_CXXFLAGS" ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ done ++fi ++ ++ ++ ++# ++# Fortran compiler ++# ++if test "$ompi_pthread_f77_success" = "0" -a "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ for pf in $pflags; do ++ { echo "$as_me:$LINENO: checking if F77 compiler and POSIX threads work with $pf" >&5 ++echo $ECHO_N "checking if F77 compiler and POSIX threads work with $pf... $ECHO_C" >&6; } ++ FFLAGS="$orig_FFLAGS $pf" ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK_F77 ++# ++# Make sure that we can run a small application in Fortran, with ++# pthreads living in a C object file ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo pthreadtest | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_thread_fn=pthreadtest__ ++ else ++ ompi_ac_thread_fn=pthreadtest_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_thread_fn=pthreadtest_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_thread_fn=pthreadtest ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_thread_fn=pthreadtest ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_thread_fn=PTHREADTEST ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ ++# Fortran module ++cat > conftestf.f < conftest.c < ++#include ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_thread_fn() ++{ ++ pthread_t th; ++ pthread_create(&th, NULL, NULL, NULL); ++ pthread_join(th, 0); ++ pthread_attr_init(0); ++ pthread_cleanup_push(0, 0); ++ pthread_create(0,0,0,0); ++ pthread_cleanup_pop(0); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++# Try the compile ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ HAPPY=1 ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++ ++if test "$HAPPY" = "1"; then ++ ompi_pthread_f77_success=1 ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the C program:" >&5 ++else ++ echo here is the C program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ if test -f conftest.h; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is contest.h:" >&5 ++else ++ echo here is contest.h: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.h" -a -f "conftest.h"; then ++ cat conftest.h >&5 ++fi ++ fi ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran program:" >&5 ++else ++ echo here is the fortran program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f" -a -f "conftestf.f"; then ++ cat conftestf.f >&5 ++fi ++ ompi_pthread_f77_success=0 ++fi ++ ++unset HAPPY ompi_conftest_h ++rm -rf conftest* ++# END: OMPI_INTL_PTHREAD_TRY_LINK_F77 ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_pthread_f77_success" = "1"; then ++ PTHREAD_FFLAGS="$pf" ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ break ++ else ++ PTHREAD_FFLAGS= ++ FFLAGS="$orig_FFLAGS" ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ done ++fi ++ ++ ++# End: OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS ++ ++ ++# Try the normal linking methods (that's no fun) ++ ++# Begin: OMPI_INTL_POSIX_THREADS_LIBS ++# ++# if we can't find a super-special compiler flags, try some libraries. ++# we throw -D_REENTRANT or -D_THREAD_SAFE in here, just in case. Some ++# systems (OS X, for example) generally don't need the defines, but ++# then will on one system header here or there why take chances? ++# ++# libpthreads: AIX - must check before libpthread ++# liblthread: LinuxThreads on FreeBSD ++# libpthread: The usual place (like we can define usual!) ++plibs="-lpthreads -llthread -lpthread" ++ ++# Only run C++ and Fortran if those compilers already configured ++ ++# ++# C compiler ++# ++if test "$ompi_pthread_c_success" = "0"; then ++ for pl in $plibs; do ++ { echo "$as_me:$LINENO: checking if C compiler and POSIX threads work with $pl" >&5 ++echo $ECHO_N "checking if C compiler and POSIX threads work with $pl... $ECHO_C" >&6; } ++ case "${host_cpu}-${host-_os}" in ++ *-aix* | *-freebsd*) ++ if test "`echo $CPPFLAGS | $GREP 'D_THREAD_SAFE'`" = ""; then ++ PTRHEAD_CPPFLAGS="-D_THREAD_SAFE" ++ CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS" ++ fi ++ ;; ++ *) ++ if test "`echo $CPPFLAGS | $GREP 'D_REENTRANT'`" = ""; then ++ PTHREAD_CPPFLAGS="-D_REENTRANT" ++ CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS" ++ fi ++ ;; ++ esac ++ LIBS="$orig_LIBS $pl" ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK ++# ++# Make sure that we can run a small application in C or C++, which ++# ever is the current language. Do make sure that C or C++ is the ++# current language. ++# ++# As long as this is not being run.... ++# pthread_t may be anything from an int to a struct -- init with self-tid. ++# ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++pthread_t th=pthread_self(); pthread_join(th, 0); ++ pthread_attr_init(0); pthread_cleanup_push(0, 0); ++ pthread_create(0,0,0,0); pthread_cleanup_pop(0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_pthread_c_success=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_pthread_c_success=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++# END: OMPI_INTL_PTHREAD_TRY_LINK ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_pthread_c_success" = "1"; then ++ PTHREAD_LIBS="$pl" ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ PTHREAD_CPPFLAGS= ++ CPPFLAGS="$orig_CPPFLAGS" ++ LIBS="$orig_LIBS" ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ done ++fi ++ ++ ++ ++# ++# C++ compiler ++# ++if test "$ompi_pthread_cxx_success" = "0"; then ++ if test ! "$ompi_pthread_c_success" = "0" -a ! "$PTHREAD_LIBS" = "" ; then ++ { echo "$as_me:$LINENO: checking if C++ compiler and POSIX threads work with $PTHREAD_LIBS" >&5 ++echo $ECHO_N "checking if C++ compiler and POSIX threads work with $PTHREAD_LIBS... $ECHO_C" >&6; } ++ case "${host_cpu}-${host-_os}" in ++ *-aix* | *-freebsd*) ++ if test "`echo $CXXCPPFLAGS | $GREP 'D_THREAD_SAFE'`" = ""; then ++ PTRHEAD_CXXCPPFLAGS="-D_THREAD_SAFE" ++ CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS" ++ fi ++ ;; ++ *) ++ if test "`echo $CXXCPPFLAGS | $GREP 'D_REENTRANT'`" = ""; then ++ PTHREAD_CXXCPPFLAGS="-D_REENTRANT" ++ CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS" ++ fi ++ ;; ++ esac ++ LIBS="$orig_LIBS $PTHREAD_LIBS" ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK ++# ++# Make sure that we can run a small application in C or C++, which ++# ever is the current language. Do make sure that C or C++ is the ++# current language. ++# ++# As long as this is not being run.... ++# pthread_t may be anything from an int to a struct -- init with self-tid. ++# ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++pthread_t th=pthread_self(); pthread_join(th, 0); ++ pthread_attr_init(0); pthread_cleanup_push(0, 0); ++ pthread_create(0,0,0,0); pthread_cleanup_pop(0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_pthread_cxx_success=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_pthread_cxx_success=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++# END: OMPI_INTL_PTHREAD_TRY_LINK ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_pthread_cxx_success" = "1"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ CXXCPPFLAGS="$orig_CXXCPPFLAGS" ++ LIBS="$orig_LIBS" ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not find working threads configuration. aborting" >&5 ++echo "$as_me: error: Can not find working threads configuration. aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ else ++ for pl in $plibs; do ++ { echo "$as_me:$LINENO: checking if C++ compiler and POSIX threads work with $pl" >&5 ++echo $ECHO_N "checking if C++ compiler and POSIX threads work with $pl... $ECHO_C" >&6; } ++ case "${host_cpu}-${host-_os}" in ++ *-aix* | *-freebsd*) ++ if test "`echo $CXXCPPFLAGS | $GREP 'D_THREAD_SAFE'`" = ""; then ++ PTRHEAD_CXXCPPFLAGS="-D_THREAD_SAFE" ++ CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS" ++ fi ++ ;; ++ *) ++ if test "`echo $CXXCPPFLAGS | $GREP 'D_REENTRANT'`" = ""; then ++ PTHREAD_CXXCPPFLAGS="-D_REENTRANT" ++ CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS" ++ fi ++ ;; ++ esac ++ LIBS="$orig_LIBS $pl" ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK ++# ++# Make sure that we can run a small application in C or C++, which ++# ever is the current language. Do make sure that C or C++ is the ++# current language. ++# ++# As long as this is not being run.... ++# pthread_t may be anything from an int to a struct -- init with self-tid. ++# ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++pthread_t th=pthread_self(); pthread_join(th, 0); ++ pthread_attr_init(0); pthread_cleanup_push(0, 0); ++ pthread_create(0,0,0,0); pthread_cleanup_pop(0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_pthread_cxx_success=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_pthread_cxx_success=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++# END: OMPI_INTL_PTHREAD_TRY_LINK ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_pthread_cxx_success" = "1"; then ++ PTHREAD_LIBS="$pl" ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ PTHREAD_CXXCPPFLAGS= ++ CXXCPPFLAGS="$orig_CXXCPPFLAGS" ++ LIBS="$orig_LIBS" ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ done ++ fi ++fi ++ ++ ++ ++# ++# Fortran compiler ++# ++if test "$ompi_pthread_f77_success" = "0" -a "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ if test ! "$ompi_pthread_c_success" = "0" -a ! "$PTHREAD_LIBS" = "" ; then ++ { echo "$as_me:$LINENO: checking if F77 compiler and POSIX threads work with $PTHREAD_LIBS" >&5 ++echo $ECHO_N "checking if F77 compiler and POSIX threads work with $PTHREAD_LIBS... $ECHO_C" >&6; } ++ LIBS="$orig_LIBS $PTHREAD_LIBS" ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK_F77 ++# ++# Make sure that we can run a small application in Fortran, with ++# pthreads living in a C object file ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo pthreadtest | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_thread_fn=pthreadtest__ ++ else ++ ompi_ac_thread_fn=pthreadtest_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_thread_fn=pthreadtest_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_thread_fn=pthreadtest ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_thread_fn=pthreadtest ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_thread_fn=PTHREADTEST ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ ++# Fortran module ++cat > conftestf.f < conftest.c < ++#include ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_thread_fn() ++{ ++ pthread_t th; ++ pthread_create(&th, NULL, NULL, NULL); ++ pthread_join(th, 0); ++ pthread_attr_init(0); ++ pthread_cleanup_push(0, 0); ++ pthread_create(0,0,0,0); ++ pthread_cleanup_pop(0); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++# Try the compile ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ HAPPY=1 ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++ ++if test "$HAPPY" = "1"; then ++ ompi_pthread_f77_success=1 ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the C program:" >&5 ++else ++ echo here is the C program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ if test -f conftest.h; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is contest.h:" >&5 ++else ++ echo here is contest.h: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.h" -a -f "conftest.h"; then ++ cat conftest.h >&5 ++fi ++ fi ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran program:" >&5 ++else ++ echo here is the fortran program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f" -a -f "conftestf.f"; then ++ cat conftestf.f >&5 ++fi ++ ompi_pthread_f77_success=0 ++fi ++ ++unset HAPPY ompi_conftest_h ++rm -rf conftest* ++# END: OMPI_INTL_PTHREAD_TRY_LINK_F77 ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_pthread_f77_success" = "1"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ LIBS="$orig_LIBS" ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not find working threads configuration. aborting" >&5 ++echo "$as_me: error: Can not find working threads configuration. aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ else ++ for pl in $plibs; do ++ { echo "$as_me:$LINENO: checking if F77 compiler and POSIX threads work with $pl" >&5 ++echo $ECHO_N "checking if F77 compiler and POSIX threads work with $pl... $ECHO_C" >&6; } ++ LIBS="$orig_LIBS $pl" ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK_F77 ++# ++# Make sure that we can run a small application in Fortran, with ++# pthreads living in a C object file ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo pthreadtest | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_thread_fn=pthreadtest__ ++ else ++ ompi_ac_thread_fn=pthreadtest_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_thread_fn=pthreadtest_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_thread_fn=pthreadtest ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_thread_fn=pthreadtest ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_thread_fn=PTHREADTEST ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ ++# Fortran module ++cat > conftestf.f < conftest.c < ++#include ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_thread_fn() ++{ ++ pthread_t th; ++ pthread_create(&th, NULL, NULL, NULL); ++ pthread_join(th, 0); ++ pthread_attr_init(0); ++ pthread_cleanup_push(0, 0); ++ pthread_create(0,0,0,0); ++ pthread_cleanup_pop(0); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++# Try the compile ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ HAPPY=1 ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++ ++if test "$HAPPY" = "1"; then ++ ompi_pthread_f77_success=1 ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the C program:" >&5 ++else ++ echo here is the C program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ if test -f conftest.h; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is contest.h:" >&5 ++else ++ echo here is contest.h: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.h" -a -f "conftest.h"; then ++ cat conftest.h >&5 ++fi ++ fi ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran program:" >&5 ++else ++ echo here is the fortran program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f" -a -f "conftestf.f"; then ++ cat conftestf.f >&5 ++fi ++ ompi_pthread_f77_success=0 ++fi ++ ++unset HAPPY ompi_conftest_h ++rm -rf conftest* ++# END: OMPI_INTL_PTHREAD_TRY_LINK_F77 ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_pthread_f77_success" = "1"; then ++ PTHREAD_LIBS="$pl" ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ break ++ else ++ LIBS="$orig_LIBS" ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ done ++ fi ++fi ++ ++ ++# End: OMPI_INTL_POSIX_THREADS_LIBS ++ ++ ++ ++# ++# check to see if we can set error checking mutexes ++# ++ ++# LinuxThreads ++{ echo "$as_me:$LINENO: checking for PTHREAD_MUTEX_ERRORCHECK_NP" >&5 ++echo $ECHO_N "checking for PTHREAD_MUTEX_ERRORCHECK_NP... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++pthread_mutexattr_settype(NULL, PTHREAD_MUTEX_ERRORCHECK_NP); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ result="yes" defval=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ result="no" defval=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $result" >&5 ++echo "${ECHO_T}$result" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_PTHREAD_MUTEX_ERRORCHECK_NP $defval ++_ACEOF ++ ++ ++# Mac OS X ++{ echo "$as_me:$LINENO: checking for PTHREAD_MUTEX_ERRORCHECK" >&5 ++echo $ECHO_N "checking for PTHREAD_MUTEX_ERRORCHECK... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++pthread_mutexattr_settype(NULL, PTHREAD_MUTEX_ERRORCHECK); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ result="yes" defval=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ result="no" defval=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $result" >&5 ++echo "${ECHO_T}$result" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_PTHREAD_MUTEX_ERRORCHECK $defval ++_ACEOF ++ ++ ++CFLAGS="$orig_CFLAGS" ++FFLAGS="$orig_FFLAGS" ++CXXFLAGS="$orig_CXXFLAGS" ++CPPFLAGS="$orig_CPPFLAGS" ++CXXCPPFLAGS="$orig_CXXCPPFLAGS" ++LDFLAGS="$orig_LDFLAGS" ++LIBS="$orig_LIBS" ++ ++if test "$OMPI_WANT_F77_BINDINGS" != "1"; then ++ ompi_pthread_f77_success=1 ++fi ++ ++if test "$ompi_pthread_c_success" = "1" -a \ ++ "$ompi_pthread_cxx_success" = "1" -a \ ++ "$ompi_pthread_f77_success" = "1"; then ++ internal_useless=1 ++ HAVE_POSIX_THREADS=1 ++else ++ internal_useless=1 ++ HAVE_POSIX_THREADS=0 ++fi ++ ++unset ompi_pthread_c_success ompi_pthread_f77_success ompi_pthread_cxx_success ++unset internal_useless ++ ++{ echo "$as_me:$LINENO: checking for working POSIX threads package" >&5 ++echo $ECHO_N "checking for working POSIX threads package... $ECHO_C" >&6; } ++if test "$HAVE_POSIX_THREADS" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++export HAVE_POSIX_THREADS ++ ++ ++ompi_sthread_c_success=0 ++ompi_sthread_f77_success=0 ++ompi_sthread_cxx_success=0 ++ ++orig_CFLAGS="$CFLAGS" ++orig_FFLAGS="$FFLAGS" ++orig_CXXFLAGS="$CXXFLAGS" ++orig_CPPFLAGS="$CPPFLAGS" ++orig_CXXCPPFLAGS="$CXXCPPFLAGS" ++orig_LDFLAGS="$LDFLAGS" ++orig_LIBS="$LIBS" ++ ++STHREAD_CFLAGS= ++STHREAD_FFLAGS= ++STHREAD_CXXFLAGS= ++STHREAD_CPPFLAGS= ++STHREAD_CXXCPPFLAGS= ++STHREAD_LDFLAGS= ++STHREAD_LIBS= ++ ++# Only run C++ and Fortran if those compilers already configured ++ ++if test "$BASECC" = "cc"; then ++ STHREAD_CFLAGS="-mt" ++ style="Workshop/Forte" ++else ++ STHREAD_CPPFLAGS="-D_REENTRANT" ++ STHREAD_LIBS="-lthread" ++ style="-lthread" ++fi ++{ echo "$as_me:$LINENO: checking if C compiler and Solaris threads work" >&5 ++echo $ECHO_N "checking if C compiler and Solaris threads work... $ECHO_C" >&6; } ++CFLAGS="$STHREAD_CFLAGS $CFLAGS_orig" ++CPPFLAGS="$STHREAD_CPPFLAGS $CPPFLAGS_orig" ++LDFLAGS="$STHREAD_LDFLAGS $LDFLAGS_orig" ++LIBS="$STHREAD_LIBS $LIBS_orig" ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_SOLARIS_TRY_LINK ++# ++# Make sure that we can run a small application in C or C++, which ++# ever is the current language. Do make sure that C or C++ is the ++# current language. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++thread_t th; thr_join(th, 0, 0); ++ thr_create(0,0,0,0,0,0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_sthread_c_success=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_sthread_c_success=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++# END: OMPI_INTL_SOLARIS_TRY_LINK ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++if test "$ompi_sthread_c_success" = "1"; then ++ { echo "$as_me:$LINENO: result: yes - $style" >&5 ++echo "${ECHO_T}yes - $style" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ ++if test "$BASECXX" = "CC"; then ++ STHREAD_CXXFLAGS="-mt" ++ style="Workshop/Forte" ++elif test "$BASECXX" = "KCC"; then ++ STHREAD_CXXFLAGS="--backend -mt" ++ style="KCC" ++else ++ STHREAD_CXXCPPFLAGS="-D_REENTRANT" ++ STHREAD_LIBS="-lthread" ++ style="-lthread" ++fi ++CXXFLAGS="$STHREAD_CXXFLAGS $CXXFLAGS_orig" ++CXXCPPFLAGS="$STHREAD_CXXPPFLAGS $CXXPPFLAGS_orig" ++LDFLAGS="$STHREAD_LDFLAGS $LDFLAGS_orig" ++LIBS="$STHREAD_LIBS $LIBS_orig" ++{ echo "$as_me:$LINENO: checking if C++ compiler and Solaris threads work" >&5 ++echo $ECHO_N "checking if C++ compiler and Solaris threads work... $ECHO_C" >&6; } ++ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_SOLARIS_TRY_LINK ++# ++# Make sure that we can run a small application in C or C++, which ++# ever is the current language. Do make sure that C or C++ is the ++# current language. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++thread_t th; thr_join(th, 0, 0); ++ thr_create(0,0,0,0,0,0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_sthread_cxx_success=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_sthread_cxx_success=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++# END: OMPI_INTL_SOLARIS_TRY_LINK ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++if test "$ompi_sthread_cxx_success" = "1"; then ++ { echo "$as_me:$LINENO: result: yes - $style" >&5 ++echo "${ECHO_T}yes - $style" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ ++if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ if test "$BASEFC" = "f77"; then ++ STHREAD_FFLAGS="-mt" ++ style="Workshop/Forte" ++ else ++ STHREAD_LIBS="-lthread" ++ style="-lthread" ++ fi ++ FFLAGS="$STHREAD_FFLAGS $FFLAGS_orig" ++ CFLAGS="$STHREAD_CFLAGS $CFLAGS_orig" ++ CPPFLAGS="$STHREAD_CPPFLAGS $CPPFLAGS_orig" ++ LDFLAGS="$STHREAD_LDFLAGS $LDFLAGS_orig" ++ LIBS="$STHREAD_LIBS $LIBS_orig" ++ { echo "$as_me:$LINENO: checking if F77 compiler and Solaris threads work" >&5 ++echo $ECHO_N "checking if F77 compiler and Solaris threads work... $ECHO_C" >&6; } ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_SOLARIS_TRY_LINK_F77 ++# ++# Make sure that we can run a small application in Fortran, with ++# pthreads living in a C object file ++ ++# Fortran module ++cat > conftestf.f < conftest.c < ++#include ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void ompi_pthread() ++{ ++ thread_t th; ++ thr_join(th, 0, 0); ++ thr_create(0,0,0,0,0,0); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++# Try the compile ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ HAPPY=1 ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++ ++if test "$HAPPY" = "1"; then ++ ompi_sthread_f77_success=1 ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the C program:" >&5 ++else ++ echo here is the C program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ if test -f conftest.h; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is contest.h:" >&5 ++else ++ echo here is contest.h: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.h" -a -f "conftest.h"; then ++ cat conftest.h >&5 ++fi ++ fi ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran program:" >&5 ++else ++ echo here is the fortran program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f" -a -f "conftestf.f"; then ++ cat conftestf.f >&5 ++fi ++ ompi_sthread_f77_success=0 ++fi ++ ++unset HAPPY ompi_conftest_h ++rm -rf conftest* ++# END: OMPI_INTL_SOLARIS_TRY_LINK_F77 ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_sthread_f77_success" = "1"; then ++ { echo "$as_me:$LINENO: result: yes - $style" >&5 ++echo "${ECHO_T}yes - $style" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++else ++ ompi_sthread_f77_success=1 ++fi ++ ++ ++CFLAGS="$orig_CFLAGS" ++FFLAGS="$orig_FFLAGS" ++CXXFLAGS="$orig_CXXFLAGS" ++CPPFLAGS="$orig_CPPFLAGS" ++CXXCPPFLAGS="$orig_CXXCPPFLAGS" ++LDFLAGS="$orig_LDFLAGS" ++LIBS="$orig_LIBS" ++ ++if test "$ompi_sthread_c_success" = "1" -a \ ++ "$ompi_sthread_cxx_success" = "1" -a \ ++ "$ompi_sthread_f77_success" = "1"; then ++ internal_useless=1 ++ HAVE_SOLARIS_THREADS=1 ++else ++ internal_useless=1 ++ HAVE_SOLARIS_THREADS=0 ++fi ++ ++unset ompi_sthread_c_success ompi_sthread_f77_success ompi_sthread_cxx_success ++unset internal_useless ++ ++{ echo "$as_me:$LINENO: checking for working Solaris threads package" >&5 ++echo $ECHO_N "checking for working Solaris threads package... $ECHO_C" >&6; } ++if test "$HAVE_SOLARIS_THREADS" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++export HAVE_SOLARIS_THREADS ++ ++# ++# Ask what threading we want (allow solaris / posix right now) ++# ++{ echo "$as_me:$LINENO: checking for type of thread support" >&5 ++echo $ECHO_N "checking for type of thread support... $ECHO_C" >&6; } ++ ++# Check whether --with-threads was given. ++if test "${with_threads+set}" = set; then ++ withval=$with_threads; THREAD_TYPE=$withval ++fi ++ ++ ++if test "$THREAD_TYPE" = "solaris"; then ++ ++ if test "$HAVE_SOLARIS_THREADS" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: \"*** You have chosen Solaris threads, which are not\"" >&5 ++echo "$as_me: WARNING: \"*** You have chosen Solaris threads, which are not\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: \"*** available on your system \"" >&5 ++echo "$as_me: WARNING: \"*** available on your system \"" >&2;} ++ { { echo "$as_me:$LINENO: error: \"*** Can not continue\"" >&5 ++echo "$as_me: error: \"*** Can not continue\"" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++elif test "$THREAD_TYPE" = "posix"; then ++ ++ if test "$HAVE_POSIX_THREADS" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: \"*** You have chosen POSIX threads, which are not\"" >&5 ++echo "$as_me: WARNING: \"*** You have chosen POSIX threads, which are not\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: \"*** available on your system \"" >&5 ++echo "$as_me: WARNING: \"*** available on your system \"" >&2;} ++ { { echo "$as_me:$LINENO: error: \"*** Can not continue\"" >&5 ++echo "$as_me: error: \"*** Can not continue\"" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++elif test "$THREAD_TYPE" = "no"; then ++ THREAD_TYPE="none" ++elif test -z "$THREAD_TYPE" -o "$THREAD_TYPE" = "yes"; then ++ ++ # Actual logic here - properly set THREAD_TYPE - we go for system ++ # optimized where ever possible ++ case "$host" in ++ *solaris*) ++ if test "$HAVE_SOLARIS_THREADS" = "1"; then ++ THREAD_TYPE="solaris" ++ elif test "$HAVE_POSIX_THREADS" = "1"; then ++ THREAD_TYPE="posix" ++ else ++ THEAD_TYPE="none found" ++ fi ++ ;; ++ *) ++ if test "$HAVE_POSIX_THREADS" = "1"; then ++ THREAD_TYPE="posix" ++ else ++ THREAD_TYPE="none found" ++ fi ++ ;; ++ esac ++else ++ ++ { echo "$as_me:$LINENO: WARNING: \"*** You have specified a thread type that I do not\"" >&5 ++echo "$as_me: WARNING: \"*** You have specified a thread type that I do not\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: \"*** understand. Valid options are posix and solaris\"" >&5 ++echo "$as_me: WARNING: \"*** understand. Valid options are posix and solaris\"" >&2;} ++ { { echo "$as_me:$LINENO: error: \"*** Can not continue.\"" >&5 ++echo "$as_me: error: \"*** Can not continue.\"" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++{ echo "$as_me:$LINENO: result: $THREAD_TYPE" >&5 ++echo "${ECHO_T}$THREAD_TYPE" >&6; } ++ ++ ++# ++# Ok, now run the configuration for that thread package. ++# ++# Blah - this should be made better, but I don't know how... ++# ++ ++ ++ ++if test "$THREAD_TYPE" = "solaris"; then ++ cat >>confdefs.h <<\_ACEOF ++@%:@define OMPI_HAVE_SOLARIS_THREADS 1 ++_ACEOF ++ ++ cat >>confdefs.h <<\_ACEOF ++@%:@define OMPI_HAVE_POSIX_THREADS 0 ++_ACEOF ++ ++ cat >>confdefs.h <<\_ACEOF ++@%:@define OMPI_THREADS_HAVE_DIFFERENT_PIDS 0 ++_ACEOF ++ ++ ++ THREAD_CFLAGS="$STHREAD_CFLAGS" ++ THREAD_FFLAGS="$STHREAD_FFLAGS" ++ THREAD_CXXFLAGS="$STHREAD_CXXFLAGS" ++ THREAD_CPPFLAGS="$STHREAD_CPPFLAGS" ++ THREAD_CXXCPPFLAGS="$STHREAD_CXXCPPFLAGS" ++ THREAD_LDFLAGS="$STHREAD_LDFLAGS" ++ THREAD_LIBS="$STHREAD_LIBS" ++elif test "$THREAD_TYPE" = "posix"; then ++ cat >>confdefs.h <<\_ACEOF ++@%:@define OMPI_HAVE_SOLARIS_THREADS 0 ++_ACEOF ++ ++ cat >>confdefs.h <<\_ACEOF ++@%:@define OMPI_HAVE_POSIX_THREADS 1 ++_ACEOF ++ ++ ++ THREAD_CFLAGS="$PTHREAD_CFLAGS" ++ THREAD_FFLAGS="$PTHREAD_FFLAGS" ++ THREAD_CXXFLAGS="$PTHREAD_CXXFLAGS" ++ THREAD_CPPFLAGS="$PTHREAD_CPPFLAGS" ++ THREAD_CXXCPPFLAGS="$PTHREAD_CXXCPPFLAGS" ++ THREAD_LDFLAGS="$PTHREAD_LDFLAGS" ++ THREAD_LIBS="$PTHREAD_LIBS" ++ ++ ++# ++# Arguments: none ++# ++# Dependencies: None ++# ++# Sets: ++# OMPI_THREADS_HAVE_DIFFERENT_PIDS (variable) ++# ++# Test for Linux-like threads in the system. We will need to handle things like ++# getpid() differently in the case of a Linux-like threads model. ++# ++ ++{ echo "$as_me:$LINENO: checking if threads have different pids (pthreads on linux)" >&5 ++echo $ECHO_N "checking if threads have different pids (pthreads on linux)... $ECHO_C" >&6; } ++CFLAGS_save="$CFLAGS" ++CFLAGS="$CFLAGS $THREAD_CFLAGS" ++CPPFLAGS_save="$CPPFLAGS" ++CPPFLAGS="$CPPFLAGS $THREAD_CPPFLAGS" ++LDFLAGS_save="$LDFLAGS" ++LDFLAGS="$LDFLAGS $THREAD_LDFLAGS" ++LIBS_save="$LIBS" ++LIBS="$LIBS $THREAD_LIBS" ++if test "$cross_compiling" = yes; then ++ case $host in ++ *-linux*) ++ MSG="cross compiling - assuming yes" ++ OMPI_THREADS_HAVE_DIFFERENT_PIDS=1 ++ ;; ++ *) ++ MSG="cross compiling - assuming no" ++ OMPI_THREADS_HAVE_DIFFERENT_PIDS=0 ++ ;; ++ esac ++ ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++#include ++#include ++void *checkpid(void *arg); ++int main() { ++ pthread_t thr; ++ int pid, *retval; ++ pid = getpid(); ++ pthread_create(&thr, NULL, checkpid, &pid); ++ pthread_join(thr, (void **) &retval); ++ exit(*retval); ++} ++static int ret; ++void *checkpid(void *arg) { ++ int ppid = *((int *) arg); ++ if (ppid == getpid()) ++ ret = 0; ++ else ++ ret = 1; ++ pthread_exit((void *) &ret); ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ MSG=no OMPI_THREADS_HAVE_DIFFERENT_PIDS=0 ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++MSG=yes OMPI_THREADS_HAVE_DIFFERENT_PIDS=1 ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ ++CFLAGS="$CFLAGS_save" ++CPPFLAGS="$CPPFLAGS_save" ++LDFLAGS="$LDFLAGS_save" ++LIBS="$LIBS_save" ++ ++{ echo "$as_me:$LINENO: result: $MSG" >&5 ++echo "${ECHO_T}$MSG" >&6; } ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_THREADS_HAVE_DIFFERENT_PIDS $OMPI_THREADS_HAVE_DIFFERENT_PIDS ++_ACEOF ++ ++ ++# ++# if pthreads is not available, then the system does not have an insane threads ++# model ++# ++unset MSG ++else ++ cat >>confdefs.h <<\_ACEOF ++@%:@define OMPI_HAVE_SOLARIS_THREADS 0 ++_ACEOF ++ ++ cat >>confdefs.h <<\_ACEOF ++@%:@define OMPI_HAVE_POSIX_THREADS 0 ++_ACEOF ++ ++ cat >>confdefs.h <<\_ACEOF ++@%:@define OMPI_THREADS_HAVE_DIFFERENT_PIDS 0 ++_ACEOF ++ ++ ++ TRHEAD_CFLAGS= ++ THREAD_FFLAGS= ++ THREAD_CXXFLAGS= ++ THREAD_CPPFLAGS= ++ THREAD_CXXCPPFLAGS= ++ THREAD_LDFLAGS= ++ THREAD_LIBS= ++ if test "$THREAD_TYPE" != "none" ; then ++ cat <&5 ++echo $ECHO_N "checking if want MPI thread support... $ECHO_C" >&6; } ++# Check whether --enable-mpi-threads was given. ++if test "${enable_mpi_threads+set}" = set; then ++ enableval=$enable_mpi_threads; enable_mpi_threads="$enableval" ++fi ++ ++ ++if test "$enable_mpi_threads" = "" ; then ++ # no argument - default to no ++ OMPI_ENABLE_MPI_THREADS=0 ++ enable_mpi_threads="no" ++elif test "$enable_mpi_threads" = "no" ; then ++ OMPI_ENABLE_MPI_THREADS=0 ++else ++ # they want MPI threads. Make sure we have threads ++ if test "$THREAD_TYPE" != "none" ; then ++ OMPI_ENABLE_MPI_THREADS=1 ++ enable_mpi_threads="yes" ++ else ++ { { echo "$as_me:$LINENO: error: User requested MPI threads, but no threading model supported" >&5 ++echo "$as_me: error: User requested MPI threads, but no threading model supported" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ENABLE_MPI_THREADS $OMPI_ENABLE_MPI_THREADS ++_ACEOF ++ ++{ echo "$as_me:$LINENO: result: $enable_mpi_threads" >&5 ++echo "${ECHO_T}$enable_mpi_threads" >&6; } ++ ++ ++{ echo "$as_me:$LINENO: checking if want asynchronous progress thread support" >&5 ++echo $ECHO_N "checking if want asynchronous progress thread support... $ECHO_C" >&6; } ++# Check whether --enable-progress-threads was given. ++if test "${enable_progress_threads+set}" = set; then ++ enableval=$enable_progress_threads; enable_progress_threads="$enableval" ++fi ++ ++ ++if test "$enable_progress_threads" = "" ; then ++ # no argument given either way. Default to no. ++ OMPI_ENABLE_PROGRESS_THREADS=0 ++ enable_progress_threads="no" ++elif test "$enable_progress_threads" = "no" ; then ++ OMPI_ENABLE_PROGRESS_THREADS=0 ++ enable_progress_threads="no" ++else ++ # they want threaded progress ++ if test "$THREAD_TYPE" != "none" ; then ++ OMPI_ENABLE_PROGRESS_THREADS=1 ++ enable_progress_threads="yes" ++ else ++ { { echo "$as_me:$LINENO: error: User requested progress threads, but no threading model supported" >&5 ++echo "$as_me: error: User requested progress threads, but no threading model supported" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ENABLE_PROGRESS_THREADS $OMPI_ENABLE_PROGRESS_THREADS ++_ACEOF ++ ++{ echo "$as_me:$LINENO: result: $enable_progress_threads" >&5 ++echo "${ECHO_T}$enable_progress_threads" >&6; } ++ ++# ++# Fault Tolerance Thread ++# ++# --enable-ft-thread ++# #if OPAL_ENABLE_FT_THREAD == 0 /* Disabled */ ++# #if OPAL_ENABLE_FT_THREAD == 1 /* Enabled */ ++# ++{ echo "$as_me:$LINENO: checking if want fault tolerance thread" >&5 ++echo $ECHO_N "checking if want fault tolerance thread... $ECHO_C" >&6; } ++# Check whether --enable-ft_thread was given. ++if test "${enable_ft_thread+set}" = set; then ++ enableval=$enable_ft_thread; enable_ft_thread="$enableval" ++else ++ enable_ft_thread="undef" ++fi ++ ++ ++# if they do not want FT support, then they do not want this thread either ++if test "$ompi_want_ft" = "0"; then ++ ompi_want_ft_thread=0 ++ { echo "$as_me:$LINENO: result: Disabled (fault tolerance disabled --without-ft)" >&5 ++echo "${ECHO_T}Disabled (fault tolerance disabled --without-ft)" >&6; } ++# if --disable-ft-thread ++elif test "$enable_ft_thread" = "no"; then ++ ompi_want_ft_thread=0 ++ { echo "$as_me:$LINENO: result: Disabled" >&5 ++echo "${ECHO_T}Disabled" >&6; } ++# if default, and no progress or MPI threads ++elif test "$enable_ft_thread" = "undef" -a "$enable_progress_threads" = "no" -a "$enable_mpi_threads" = "no" ; then ++ ompi_want_ft_thread=0 ++ { echo "$as_me:$LINENO: result: Disabled (Progress and MPI Threads Disabled)" >&5 ++echo "${ECHO_T}Disabled (Progress and MPI Threads Disabled)" >&6; } ++# if default, and either progress or MPI threads enabled ++else ++ # Default: Enable ++ # Make sure we have at least Progress Threads or MPI Threads enabled ++ if test "$enable_progress_threads" = "no" -a "$enable_mpi_threads" = "no"; then ++ { echo "$as_me:$LINENO: result: Must enable progress or MPI threads to use this option" >&5 ++echo "${ECHO_T}Must enable progress or MPI threads to use this option" >&6; } ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ompi_want_ft_thread=1 ++ { echo "$as_me:$LINENO: WARNING: **************************************************" >&5 ++echo "$as_me: WARNING: **************************************************" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fault Tolerance with a thread in Open MPI *" >&5 ++echo "$as_me: WARNING: *** Fault Tolerance with a thread in Open MPI *" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** is an experimental, research quality option. *" >&5 ++echo "$as_me: WARNING: *** is an experimental, research quality option. *" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** It requires progress or MPI threads, and *" >&5 ++echo "$as_me: WARNING: *** It requires progress or MPI threads, and *" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** care should be used when enabling these *" >&5 ++echo "$as_me: WARNING: *** care should be used when enabling these *" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** options. *" >&5 ++echo "$as_me: WARNING: *** options. *" >&2;} ++ { echo "$as_me:$LINENO: WARNING: **************************************************" >&5 ++echo "$as_me: WARNING: **************************************************" >&2;} ++ fi ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_ENABLE_FT_THREAD $ompi_want_ft_thread ++_ACEOF ++ ++ if test "$ompi_want_ft_thread" = "1"; then ++ WANT_FT_THREAD_TRUE= ++ WANT_FT_THREAD_FALSE='#' ++else ++ WANT_FT_THREAD_TRUE='#' ++ WANT_FT_THREAD_FALSE= ++fi ++ ++ ++ ++CFLAGS="$CFLAGS $THREAD_CFLAGS" ++CXXFLAGS="$CXXFLAGS $THREAD_CXXFLAGS" ++CPPFLAGS="$CPPFLAGS $THREAD_CPPFLAGS" ++CXXCPPFLAGS="$CXXCPPFLAGS $THREAD_CXXCPPFLAGS" ++LDFLAGS="$LDFLAGS $THREAD_LDFLAGS" ++LIBS="$LIBS $THREAD_LIBS" ++ ++ ++WRAPPER_EXTRA_CPPFLAGS="$WRAPPER_EXTRA_CPPFLAGS $THREAD_CPPFLAGS" ++WRAPPER_EXTRA_CFLAGS="$WRAPPER_EXTRA_CFLAGS $THREAD_CFLAGS" ++WRAPPER_EXTRA_CXXFLAGS="$WRAPPER_EXTRA_CXXFLAGS $THREAD_CXXFLAGS" ++WRAPPER_EXTRA_FFLAGS="$WRAPPER_EXTRA_FFLAGS $THREAD_FFLAGS" ++WRAPPER_EXTRA_FCFLAGS="$WRAPPER_EXTRA_FCFLAGS $THREAD_FFLAGS" ++WRAPPER_EXTRA_LDFLAGS="$WRAPPER_EXTRA_LDFLAGS $THREAD_LDFLAGS" ++# no need to update WRAPPER_EXTRA_LIBS - we'll get it from LT later ++ ++# ++# What is the local equivalent of "ln -s" ++# ++ ++{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 ++echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } ++LN_S=$as_ln_s ++if test "$LN_S" = "ln -s"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 ++echo "${ECHO_T}no, using $LN_S" >&6; } ++fi ++ ++ ++{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 ++echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } ++if test "${ac_cv_path_GREP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Extract the first word of "grep ggrep" to use in msg output ++if test -z "$GREP"; then ++set dummy grep ggrep; ac_prog_name=$2 ++if test "${ac_cv_path_GREP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_path_GREP_found=false ++# Loop through the user's path and test for each of PROGNAME-LIST ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_prog in grep ggrep; do ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" ++ { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue ++ # Check for GNU ac_path_GREP and select it if it is found. ++ # Check for GNU $ac_path_GREP ++case `"$ac_path_GREP" --version 2>&1` in ++*GNU*) ++ ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; ++*) ++ ac_count=0 ++ echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" ++ while : ++ do ++ cat "conftest.in" "conftest.in" >"conftest.tmp" ++ mv "conftest.tmp" "conftest.in" ++ cp "conftest.in" "conftest.nl" ++ echo 'GREP' >> "conftest.nl" ++ "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break ++ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ++ ac_count=`expr $ac_count + 1` ++ if test $ac_count -gt ${ac_path_GREP_max-0}; then ++ # Best one so far, save it but keep looking for a better one ++ ac_cv_path_GREP="$ac_path_GREP" ++ ac_path_GREP_max=$ac_count ++ fi ++ # 10*(2^10) chars as input seems more than enough ++ test $ac_count -gt 10 && break ++ done ++ rm -f conftest.in conftest.tmp conftest.nl conftest.out;; ++esac ++ ++ ++ $ac_path_GREP_found && break 3 ++ done ++done ++ ++done ++IFS=$as_save_IFS ++ ++ ++fi ++ ++GREP="$ac_cv_path_GREP" ++if test -z "$GREP"; then ++ { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 ++echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ ac_cv_path_GREP=$GREP ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 ++echo "${ECHO_T}$ac_cv_path_GREP" >&6; } ++ GREP="$ac_cv_path_GREP" ++ ++ ++{ echo "$as_me:$LINENO: checking for egrep" >&5 ++echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } ++if test "${ac_cv_path_EGREP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 ++ then ac_cv_path_EGREP="$GREP -E" ++ else ++ # Extract the first word of "egrep" to use in msg output ++if test -z "$EGREP"; then ++set dummy egrep; ac_prog_name=$2 ++if test "${ac_cv_path_EGREP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_path_EGREP_found=false ++# Loop through the user's path and test for each of PROGNAME-LIST ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_prog in egrep; do ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" ++ { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue ++ # Check for GNU ac_path_EGREP and select it if it is found. ++ # Check for GNU $ac_path_EGREP ++case `"$ac_path_EGREP" --version 2>&1` in ++*GNU*) ++ ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; ++*) ++ ac_count=0 ++ echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" ++ while : ++ do ++ cat "conftest.in" "conftest.in" >"conftest.tmp" ++ mv "conftest.tmp" "conftest.in" ++ cp "conftest.in" "conftest.nl" ++ echo 'EGREP' >> "conftest.nl" ++ "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break ++ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ++ ac_count=`expr $ac_count + 1` ++ if test $ac_count -gt ${ac_path_EGREP_max-0}; then ++ # Best one so far, save it but keep looking for a better one ++ ac_cv_path_EGREP="$ac_path_EGREP" ++ ac_path_EGREP_max=$ac_count ++ fi ++ # 10*(2^10) chars as input seems more than enough ++ test $ac_count -gt 10 && break ++ done ++ rm -f conftest.in conftest.tmp conftest.nl conftest.out;; ++esac ++ ++ ++ $ac_path_EGREP_found && break 3 ++ done ++done ++ ++done ++IFS=$as_save_IFS ++ ++ ++fi ++ ++EGREP="$ac_cv_path_EGREP" ++if test -z "$EGREP"; then ++ { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 ++echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ ac_cv_path_EGREP=$EGREP ++fi ++ ++ ++ fi ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 ++echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } ++ EGREP="$ac_cv_path_EGREP" ++ ++ ++ ++# ++# We need as and lex ++# ++# By default we simply use the C compiler to build assembly code. ++ ++test "${CCAS+set}" = set || CCAS=$CC ++test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS ++ ++ ++ ++depcc="$CCAS" am_compiler_list= ++ ++{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 ++echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } ++if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then ++ # We make a subdir and do the tests there. Otherwise we can end up ++ # making bogus files that we don't know about and never remove. For ++ # instance it was reported that on HP-UX the gcc test will end up ++ # making a dummy file named `D' -- because `-MD' means `put the output ++ # in D'. ++ mkdir conftest.dir ++ # Copy depcomp to subdir because otherwise we won't find it if we're ++ # using a relative directory. ++ cp "$am_depcomp" conftest.dir ++ cd conftest.dir ++ # We will build objects and dependencies in a subdirectory because ++ # it helps to detect inapplicable dependency modes. For instance ++ # both Tru64's cc and ICC support -MD to output dependencies as a ++ # side effect of compilation, but ICC will put the dependencies in ++ # the current directory while Tru64 will put them in the object ++ # directory. ++ mkdir sub ++ ++ am_cv_CCAS_dependencies_compiler_type=none ++ if test "$am_compiler_list" = ""; then ++ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` ++ fi ++ for depmode in $am_compiler_list; do ++ # Setup a source with many dependencies, because some compilers ++ # like to wrap large dependency lists on column 80 (with \), and ++ # we should not choose a depcomp mode which is confused by this. ++ # ++ # We need to recreate these files for each test, as the compiler may ++ # overwrite some of them when testing with obscure command lines. ++ # This happens at least with the AIX C compiler. ++ : > sub/conftest.c ++ for i in 1 2 3 4 5 6; do ++ echo '#include "conftst'$i'.h"' >> sub/conftest.c ++ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with ++ # Solaris 8's {/usr,}/bin/sh. ++ touch sub/conftst$i.h ++ done ++ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf ++ ++ case $depmode in ++ nosideeffect) ++ # after this tag, mechanisms are not by side-effect, so they'll ++ # only be used when explicitly requested ++ if test "x$enable_dependency_tracking" = xyes; then ++ continue ++ else ++ break ++ fi ++ ;; ++ none) break ;; ++ esac ++ # We check with `-c' and `-o' for the sake of the "dashmstdout" ++ # mode. It turns out that the SunPro C++ compiler does not properly ++ # handle `-M -o', and we need to detect this. ++ if depmode=$depmode \ ++ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ ++ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ ++ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ ++ >/dev/null 2>conftest.err && ++ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ++ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then ++ # icc doesn't choke on unknown options, it will just issue warnings ++ # or remarks (even with -Werror). So we grep stderr for any message ++ # that says an option was ignored or not supported. ++ # When given -MP, icc 7.0 and 7.1 complain thusly: ++ # icc: Command line warning: ignoring option '-M'; no argument required ++ # The diagnosis changed in icc 8.0: ++ # icc: Command line remark: option '-MP' not supported ++ if (grep 'ignoring option' conftest.err || ++ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else ++ am_cv_CCAS_dependencies_compiler_type=$depmode ++ break ++ fi ++ fi ++ done ++ ++ cd .. ++ rm -rf conftest.dir ++else ++ am_cv_CCAS_dependencies_compiler_type=none ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5 ++echo "${ECHO_T}$am_cv_CCAS_dependencies_compiler_type" >&6; } ++CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type ++ ++ if ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then ++ am__fastdepCCAS_TRUE= ++ am__fastdepCCAS_FALSE='#' ++else ++ am__fastdepCCAS_TRUE='#' ++ am__fastdepCCAS_FALSE= ++fi ++ ++ ++for ac_prog in flex lex ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_LEX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$LEX"; then ++ ac_cv_prog_LEX="$LEX" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_LEX="$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++LEX=$ac_cv_prog_LEX ++if test -n "$LEX"; then ++ { echo "$as_me:$LINENO: result: $LEX" >&5 ++echo "${ECHO_T}$LEX" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$LEX" && break ++done ++test -n "$LEX" || LEX=":" ++ ++if test "x$LEX" != "x:"; then ++ cat >conftest.l <<_ACEOF ++%% ++a { ECHO; } ++b { REJECT; } ++c { yymore (); } ++d { yyless (1); } ++e { yyless (input () != 0); } ++f { unput (yytext[0]); } ++. { BEGIN INITIAL; } ++%% ++#ifdef YYTEXT_POINTER ++extern char *yytext; ++#endif ++int ++main (void) ++{ ++ return ! yylex () + ! yywrap (); ++} ++_ACEOF ++{ (ac_try="$LEX conftest.l" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$LEX conftest.l") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ echo "$as_me:$LINENO: checking lex output file root" >&5 ++echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } ++if test "${ac_cv_prog_lex_root+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++if test -f lex.yy.c; then ++ ac_cv_prog_lex_root=lex.yy ++elif test -f lexyy.c; then ++ ac_cv_prog_lex_root=lexyy ++else ++ { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 ++echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 ++echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } ++LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root ++ ++if test -z "${LEXLIB+set}"; then ++ { echo "$as_me:$LINENO: checking lex library" >&5 ++echo $ECHO_N "checking lex library... $ECHO_C" >&6; } ++if test "${ac_cv_lib_lex+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ ac_save_LIBS=$LIBS ++ ac_cv_lib_lex='none needed' ++ for ac_lib in '' -lfl -ll; do ++ LIBS="$ac_lib $ac_save_LIBS" ++ cat >conftest.$ac_ext <<_ACEOF ++`cat $LEX_OUTPUT_ROOT.c` ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_lex=$ac_lib ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ test "$ac_cv_lib_lex" != 'none needed' && break ++ done ++ LIBS=$ac_save_LIBS ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5 ++echo "${ECHO_T}$ac_cv_lib_lex" >&6; } ++ test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex ++fi ++ ++ ++{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 ++echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } ++if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # POSIX says lex can declare yytext either as a pointer or an array; the ++# default is implementation-dependent. Figure out which it is, since ++# not all implementations provide the %pointer and %array declarations. ++ac_cv_prog_lex_yytext_pointer=no ++ac_save_LIBS=$LIBS ++LIBS="$LEXLIB $ac_save_LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++#define YYTEXT_POINTER 1 ++`cat $LEX_OUTPUT_ROOT.c` ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_prog_lex_yytext_pointer=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_save_LIBS ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 ++echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } ++if test $ac_cv_prog_lex_yytext_pointer = yes; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define YYTEXT_POINTER 1 ++_ACEOF ++ ++fi ++rm -f conftest.l $LEX_OUTPUT_ROOT.c ++ ++fi ++if test "$LEX" = :; then ++ LEX=${am_missing_run}flex ++fi ++ ++# If we don't have GNU Flex and we don't have a generated .c file ++# (distribution tarballs will have the .c file included, but SVN ++# checkouts will not), then error. Must have GNU Flex -- other ++# versions of Lex are not workable (all things being equal, since this ++# is *only* required for developers, we decided that it really was not ++# worth it to be portable between different versions of lex ;-). ++ ++if test -z "$LEX" -o -n "`echo $LEX | $GREP missing`" -o \ ++ "`basename $LEX`" != "flex"; then ++ if test ! -f "$srcdir/opal/util/show_help_lex.c"; then ++ { echo "$as_me:$LINENO: WARNING: *** Could not find GNU Flex on your system." >&5 ++echo "$as_me: WARNING: *** Could not find GNU Flex on your system." >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** GNU Flex required for developer builds of Open MPI." >&5 ++echo "$as_me: WARNING: *** GNU Flex required for developer builds of Open MPI." >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Other versions of Lex are not supported." >&5 ++echo "$as_me: WARNING: *** Other versions of Lex are not supported." >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** YOU DO NOT NEED FLEX FOR DISTRIBUTION TARBALLS!" >&5 ++echo "$as_me: WARNING: *** YOU DO NOT NEED FLEX FOR DISTRIBUTION TARBALLS!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** If you absolutely cannot install GNU Flex on this system" >&5 ++echo "$as_me: WARNING: *** If you absolutely cannot install GNU Flex on this system" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** consider using a distribution tarball, or generate the" >&5 ++echo "$as_me: WARNING: *** consider using a distribution tarball, or generate the" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** following files on another system (using Flex) and" >&5 ++echo "$as_me: WARNING: *** following files on another system (using Flex) and" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** copy them here:" >&5 ++echo "$as_me: WARNING: *** copy them here:" >&2;} ++ for lfile in `find . -name \*.l -print`; do ++ cfile="`echo $lfile | cut -d. -f-2`" ++ { echo "$as_me:$LINENO: WARNING: *** $cfile.c" >&5 ++echo "$as_me: WARNING: *** $cfile.c" >&2;} ++ done ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++fi ++ ++# ++# Look for ps command and arguments for orte-clean ++# ++ ++{ echo "$as_me:$LINENO: checking for flavor of ps to use" >&5 ++echo $ECHO_N "checking for flavor of ps to use... $ECHO_C" >&6; } ++PS_FLAVOR="unknown" ++ps -A -o fname > /dev/null 2>&1 ++ ++if test "$?" = "0"; then ++ PS_FLAVOR="ps -A -o fname,pid,user" ++else ++ ps -A -o command > /dev/null 2>&1 ++ if test "$?" = "0"; then ++ PS_FLAVOR="ps -A -o command,pid,user" ++ fi ++fi ++{ echo "$as_me:$LINENO: result: $PS_FLAVOR" >&5 ++echo "${ECHO_T}$PS_FLAVOR" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ORTE_CLEAN_PS_CMD "$PS_FLAVOR" ++_ACEOF ++ ++ ++ ++# ++# File system case sensitivity ++# ++ ++ ++# ++# Arguments: none ++# ++# Dependencies: None ++# ++# See if we are on a case sensitive filesystem. Some filesystems ++# (like HFS+ on MacOS X and MS Windows) are not case sensitive - mpicc ++# and mpiCC are the same file. ++# ++# Sets prefix_OS_HAVE_CASE_SENSITIVE_FS to 1 if filesystem is case ++# sensitive (ie, mpicc and mpiCC will be different files) or 0 if ++# filesystem is not case sensitive (ie, mpicc and mpiCC will be ++# the same file). ++# ++# ++ ++have_cs_fs=1 ++ ++{ echo "$as_me:$LINENO: checking if build filesystem is case sensitive" >&5 ++echo $ECHO_N "checking if build filesystem is case sensitive... $ECHO_C" >&6; } ++cat > conf_fs_test.$$ < CONF_FS_TEST.$$ <&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ have_cs_fs=0 ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++rm -f conf_fs_test.$$ CONF_FS_TEST.$$ ++ ++# ++# Now see what the user wants to do... ++# ++{ echo "$as_me:$LINENO: checking if configuring for case sensitive filesystem" >&5 ++echo $ECHO_N "checking if configuring for case sensitive filesystem... $ECHO_C" >&6; } ++ ++# Check whether --with-cs_fs was given. ++if test "${with_cs_fs+set}" = set; then ++ withval=$with_cs_fs; ++fi ++ ++ ++if test "$with_cs_fs" = "yes"; then ++ OMPI_WANT_CS_FS=1 ++elif test -z "$with_cs_fs"; then ++ OMPI_WANT_CS_FS=$have_cs_fs ++else ++ OMPI_WANT_CS_FS=0 ++fi ++ ++if test "$OMPI_WANT_CS_FS" = "1"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "$OMPI_WANT_CS_FS" = "1"; then ++ CASE_SENSITIVE_FS_TRUE= ++ CASE_SENSITIVE_FS_FALSE='#' ++else ++ CASE_SENSITIVE_FS_TRUE='#' ++ CASE_SENSITIVE_FS_FALSE= ++fi ++ ++ ++if test "$OMPI_WANT_CS_FS" = "0"; then ++ cat <? (e.g., Solaris does not) ++# ++ ++{ echo "$as_me:$LINENO: checking whether RLIMIT_NPROC is declared" >&5 ++echo $ECHO_N "checking whether RLIMIT_NPROC is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl_RLIMIT_NPROC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++$ac_includes_default ++#if HAVE_SYS_RESOURCE_H ++#include ++#endif ++ ++int ++main () ++{ ++#ifndef RLIMIT_NPROC ++ (void) RLIMIT_NPROC; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl_RLIMIT_NPROC=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl_RLIMIT_NPROC=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_RLIMIT_NPROC" >&5 ++echo "${ECHO_T}$ac_cv_have_decl_RLIMIT_NPROC" >&6; } ++if test $ac_cv_have_decl_RLIMIT_NPROC = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_RLIMIT_NPROC 1 ++_ACEOF ++ ++ ++else ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_RLIMIT_NPROC 0 ++_ACEOF ++ ++ ++fi ++ ++ ++ ++# checkpoint results ++cat >confcache <<\_ACEOF ++# This file is a shell script that caches the results of configure ++# tests run on this system so they can be shared between configure ++# scripts and configure runs, see configure's option --config-cache. ++# It is not useful on other systems. If it contains results you don't ++# want to keep, you may remove or edit it. ++# ++# config.status only pays attention to the cache file if you give it ++# the --recheck option to rerun configure. ++# ++# `ac_cv_env_foo' variables (set or unset) will be overridden when ++# loading this file, other *unset* `ac_cv_foo' will be assigned the ++# following values. ++ ++_ACEOF ++ ++# The following way of writing the cache mishandles newlines in values, ++# but we know of no workaround that is simple, portable, and efficient. ++# So, we kill variables containing newlines. ++# Ultrix sh set writes to stderr and can't be redirected directly, ++# and sets the high bit in the cache file unless we assign to the vars. ++( ++ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do ++ eval ac_val=\$$ac_var ++ case $ac_val in #( ++ *${as_nl}*) ++ case $ac_var in #( ++ *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 ++echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; ++ esac ++ case $ac_var in #( ++ _ | IFS | as_nl) ;; #( ++ *) $as_unset $ac_var ;; ++ esac ;; ++ esac ++ done ++ ++ (set) 2>&1 | ++ case $as_nl`(ac_space=' '; set) 2>&1` in #( ++ *${as_nl}ac_space=\ *) ++ # `set' does not quote correctly, so add quotes (double-quote ++ # substitution turns \\\\ into \\, and sed turns \\ into \). ++ sed -n \ ++ "s/'/'\\\\''/g; ++ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ++ ;; #( ++ *) ++ # `set' quotes correctly as required by POSIX, so do not add quotes. ++ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ++ ;; ++ esac | ++ sort ++) | ++ sed ' ++ /^ac_cv_env_/b end ++ t clear ++ :clear ++ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ ++ t end ++ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ ++ :end' >>confcache ++if diff "$cache_file" confcache >/dev/null 2>&1; then :; else ++ if test -w "$cache_file"; then ++ test "x$cache_file" != "x/dev/null" && ++ { echo "$as_me:$LINENO: updating cache $cache_file" >&5 ++echo "$as_me: updating cache $cache_file" >&6;} ++ cat confcache >$cache_file ++ else ++ { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 ++echo "$as_me: not updating unwritable cache $cache_file" >&6;} ++ fi ++fi ++rm -f confcache ++ ++ ++################################## ++# MCA ++################################## ++ ++ompi_show_title "Modular Component Architecture (MCA) setup" ++ ++{ echo "$as_me:$LINENO: checking for subdir args" >&5 ++echo $ECHO_N "checking for subdir args... $ECHO_C" >&6; } ++ ++# ++# Invoke configure in subdirectories. ++# ++# ompi_subdir_args is the name of the variable to assign the output to ++# ++ ++# ++# Make a list of command line args --eliminate the --srcdir and ++# --cache-file args, because we need to replace them with our own ++# values when invoking the sub-configure script. ++# ++ ++subdirs_args= ++subdirs_skip=no ++ ++eval "set x $ac_configure_args" ++shift ++for subdirs_arg ++do ++ if test "$subdirs_skip" = "yes"; then ++ subdirs_skip=no ++ else ++ case $subdirs_arg in ++ -cache-file | --cache-file | -cache | --cache) ++ subdirs_skip=yes ++ ;; ++ --config-cache | -C) ++ ;; ++ -cache-file=* | --cache-file=*) ++ ;; ++ -srcdir | --srcdir) ++ subdirs_skip=yes ++ ;; ++ -srcdir=* | --srcdir=*) ++ ;; ++ *) ++ case $subdir_arg in ++ *\'*) subdir_arg=`echo "$subdir_arg" | sed "s/'/'\\\\\\\\''/g"` ;; ++ esac ++ subdirs_args="$subdirs_args '$subdirs_arg'" ++ ;; ++ esac ++ fi ++done ++ ++# ++# Assign the output ++# ++ ++subdirs_str=ompi_subdir_args=\"$subdirs_args\" ++eval "$subdirs_str" ++ ++# ++# Clean up ++# ++ ++unset subdirs_str subdirs_skip subdirs_args subdirs_arg ++{ echo "$as_me:$LINENO: result: $ompi_subdir_args" >&5 ++echo "${ECHO_T}$ompi_subdir_args" >&6; } ++ ++ ++ ++ # Check whether --enable-emulate was given. ++if test "${enable_emulate+set}" = set; then ++ enableval=$enable_emulate; ++fi ++ ++ if test "$enable_emulate" = "yes"; then ++ plpa_emulate=yes ++ else ++ plpa_emulate=no ++ fi ++ ++ # Build and install the executables or no? ++ # Check whether --enable-executables was given. ++if test "${enable_executables+set}" = set; then ++ enableval=$enable_executables; ++fi ++ ++ if test "$enable_executables" = "yes" -o "$enable_executables" = ""; then ++ plpa_executables=yes ++ else ++ plpa_executables=no ++ fi ++ ++ # Included mode, or standalone? ++ # Check whether --enable-included-mode was given. ++if test "${enable_included_mode+set}" = set; then ++ enableval=$enable_included_mode; ++fi ++ ++ if test "$enable_included_mode" = "yes"; then ++ plpa_mode=included ++ if test "$enable_executables" = ""; then ++ plpa_executables=no ++ fi ++ else ++ plpa_mode=standalone ++ fi ++ ++ ++ # Change the symbol prefix? ++ ++# Check whether --with-plpa-symbol-prefix was given. ++if test "${with_plpa_symbol_prefix+set}" = set; then ++ withval=$with_plpa_symbol_prefix; ++fi ++ ++ if test "$with_plpa_symbol_prefix" = ""; then ++ plpa_symbol_prefix_value=plpa_ ++ else ++ plpa_symbol_prefix_value=$with_plpa_symbol_prefix ++ fi ++ ++ # Debug mode? ++ # Check whether --enable-debug was given. ++if test "${enable_debug+set}" = set; then ++ enableval=$enable_debug; ++fi ++ ++ if test "$enable_debug" = "yes"; then ++ plpa_debug=1 ++ plpa_debug_msg="enabled" ++ elif test "$enable_debug" = "" -a -d .svn; then ++ plpa_debug=1 ++ plpa_debug_msg="enabled (SVN checkout default)" ++ else ++ plpa_debug=0 ++ plpa_debug_msg="disabled" ++ fi ++ ++for ac_prog in 'bison -y' byacc ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_YACC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$YACC"; then ++ ac_cv_prog_YACC="$YACC" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_YACC="$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++YACC=$ac_cv_prog_YACC ++if test -n "$YACC"; then ++ { echo "$as_me:$LINENO: result: $YACC" >&5 ++echo "${ECHO_T}$YACC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$YACC" && break ++done ++test -n "$YACC" || YACC="yacc" ++ ++ac_ext=m ++ac_cpp='$OBJCPP $CPPFLAGS' ++ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_objc_compiler_gnu ++if test -n "$ac_tool_prefix"; then ++ for ac_prog in gcc objcc objc cc CC ++ do ++ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ++set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_OBJC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$OBJC"; then ++ ac_cv_prog_OBJC="$OBJC" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++OBJC=$ac_cv_prog_OBJC ++if test -n "$OBJC"; then ++ { echo "$as_me:$LINENO: result: $OBJC" >&5 ++echo "${ECHO_T}$OBJC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$OBJC" && break ++ done ++fi ++if test -z "$OBJC"; then ++ ac_ct_OBJC=$OBJC ++ for ac_prog in gcc objcc objc cc CC ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_OBJC"; then ++ ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_OBJC="$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC ++if test -n "$ac_ct_OBJC"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5 ++echo "${ECHO_T}$ac_ct_OBJC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$ac_ct_OBJC" && break ++done ++ ++ if test "x$ac_ct_OBJC" = x; then ++ OBJC="gcc" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ OBJC=$ac_ct_OBJC ++ fi ++fi ++ ++# Provide some information about the compiler. ++echo "$as_me:$LINENO: checking for Objective C compiler version" >&5 ++ac_compiler=`set X $ac_compile; echo $2` ++{ (ac_try="$ac_compiler --version >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler --version >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -v >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -v >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -V >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -V >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++ ++{ echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5 ++echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; } ++if test "${ac_cv_objc_compiler_gnu+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++#ifndef __GNUC__ ++ choke me ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_objc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_compiler_gnu=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_compiler_gnu=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ac_cv_objc_compiler_gnu=$ac_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5 ++echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; } ++GOBJC=`test $ac_compiler_gnu = yes && echo yes` ++ac_test_OBJCFLAGS=${OBJCFLAGS+set} ++ac_save_OBJCFLAGS=$OBJCFLAGS ++{ echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5 ++echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; } ++if test "${ac_cv_prog_objc_g+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_save_objc_werror_flag=$ac_objc_werror_flag ++ ac_objc_werror_flag=yes ++ ac_cv_prog_objc_g=no ++ OBJCFLAGS="-g" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_objc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_objc_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ OBJCFLAGS="" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_objc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ : ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_objc_werror_flag=$ac_save_objc_werror_flag ++ OBJCFLAGS="-g" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_objc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_objc_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_objc_werror_flag=$ac_save_objc_werror_flag ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5 ++echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; } ++if test "$ac_test_OBJCFLAGS" = set; then ++ OBJCFLAGS=$ac_save_OBJCFLAGS ++elif test $ac_cv_prog_objc_g = yes; then ++ if test "$GOBJC" = yes; then ++ OBJCFLAGS="-g -O2" ++ else ++ OBJCFLAGS="-g" ++ fi ++else ++ if test "$GOBJC" = yes; then ++ OBJCFLAGS="-O2" ++ else ++ OBJCFLAGS= ++ fi ++fi ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++depcc="$OBJC" am_compiler_list='gcc3 gcc' ++ ++{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 ++echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } ++if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then ++ # We make a subdir and do the tests there. Otherwise we can end up ++ # making bogus files that we don't know about and never remove. For ++ # instance it was reported that on HP-UX the gcc test will end up ++ # making a dummy file named `D' -- because `-MD' means `put the output ++ # in D'. ++ mkdir conftest.dir ++ # Copy depcomp to subdir because otherwise we won't find it if we're ++ # using a relative directory. ++ cp "$am_depcomp" conftest.dir ++ cd conftest.dir ++ # We will build objects and dependencies in a subdirectory because ++ # it helps to detect inapplicable dependency modes. For instance ++ # both Tru64's cc and ICC support -MD to output dependencies as a ++ # side effect of compilation, but ICC will put the dependencies in ++ # the current directory while Tru64 will put them in the object ++ # directory. ++ mkdir sub ++ ++ am_cv_OBJC_dependencies_compiler_type=none ++ if test "$am_compiler_list" = ""; then ++ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` ++ fi ++ for depmode in $am_compiler_list; do ++ # Setup a source with many dependencies, because some compilers ++ # like to wrap large dependency lists on column 80 (with \), and ++ # we should not choose a depcomp mode which is confused by this. ++ # ++ # We need to recreate these files for each test, as the compiler may ++ # overwrite some of them when testing with obscure command lines. ++ # This happens at least with the AIX C compiler. ++ : > sub/conftest.c ++ for i in 1 2 3 4 5 6; do ++ echo '#include "conftst'$i'.h"' >> sub/conftest.c ++ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with ++ # Solaris 8's {/usr,}/bin/sh. ++ touch sub/conftst$i.h ++ done ++ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf ++ ++ case $depmode in ++ nosideeffect) ++ # after this tag, mechanisms are not by side-effect, so they'll ++ # only be used when explicitly requested ++ if test "x$enable_dependency_tracking" = xyes; then ++ continue ++ else ++ break ++ fi ++ ;; ++ none) break ;; ++ esac ++ # We check with `-c' and `-o' for the sake of the "dashmstdout" ++ # mode. It turns out that the SunPro C++ compiler does not properly ++ # handle `-M -o', and we need to detect this. ++ if depmode=$depmode \ ++ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ ++ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ ++ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ ++ >/dev/null 2>conftest.err && ++ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ++ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then ++ # icc doesn't choke on unknown options, it will just issue warnings ++ # or remarks (even with -Werror). So we grep stderr for any message ++ # that says an option was ignored or not supported. ++ # When given -MP, icc 7.0 and 7.1 complain thusly: ++ # icc: Command line warning: ignoring option '-M'; no argument required ++ # The diagnosis changed in icc 8.0: ++ # icc: Command line remark: option '-MP' not supported ++ if (grep 'ignoring option' conftest.err || ++ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else ++ am_cv_OBJC_dependencies_compiler_type=$depmode ++ break ++ fi ++ fi ++ done ++ ++ cd .. ++ rm -rf conftest.dir ++else ++ am_cv_OBJC_dependencies_compiler_type=none ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5 ++echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; } ++OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type ++ ++ if ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then ++ am__fastdepOBJC_TRUE= ++ am__fastdepOBJC_FALSE='#' ++else ++ am__fastdepOBJC_TRUE='#' ++ am__fastdepOBJC_FALSE= ++fi ++ ++ ++ ++ ++ ++ ++ # Find which components should be built as run-time loadable components ++ # Acceptable combinations: ++ # ++ # [default -- no option given] ++ # --enable-mca-dso ++ # --enable-mca-dso=[.+,]*COMPONENT_TYPE[.+,]* ++ # --enable-mca-dso=[.+,]*COMPONENT_TYPE-COMPONENT_NAME[.+,]* ++ # --disable-mca-dso ++ # ++ # Check whether --enable-mca-no-build was given. ++if test "${enable_mca_no_build+set}" = set; then ++ enableval=$enable_mca_no_build; ++fi ++ ++ # Check whether --enable-mca-dso was given. ++if test "${enable_mca_dso+set}" = set; then ++ enableval=$enable_mca_dso; ++fi ++ ++ # Check whether --enable-mca-static was given. ++if test "${enable_mca_static+set}" = set; then ++ enableval=$enable_mca_static; ++fi ++ ++ # Check whether --enable-mca-direct was given. ++if test "${enable_mca_direct+set}" = set; then ++ enableval=$enable_mca_direct; ++fi ++ ++ ++ { echo "$as_me:$LINENO: checking which components should be disabled" >&5 ++echo $ECHO_N "checking which components should be disabled... $ECHO_C" >&6; } ++ if test "$enable_mca_no_build" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ { { echo "$as_me:$LINENO: error: *** The enable-mca-no-build flag requires an explicit list ++*** of type-component pairs. For example, --enable-mca-direct=pml-ob1" >&5 ++echo "$as_me: error: *** The enable-mca-no-build flag requires an explicit list ++*** of type-component pairs. For example, --enable-mca-direct=pml-ob1" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ ifs_save="$IFS" ++ IFS="${IFS}$PATH_SEPARATOR," ++ msg= ++ for item in $enable_mca_no_build; do ++ type="`echo $item | cut -s -f1 -d-`" ++ comp="`echo $item | cut -s -f2- -d-`" ++ if test -z $type ; then ++ type=$item ++ fi ++ if test -z $comp ; then ++ str="`echo DISABLE_${type}=1 | sed s/-/_/g`" ++ eval $str ++ msg="$item $msg" ++ else ++ str="`echo DISABLE_${type}_${comp}=1 | sed s/-/_/g`" ++ eval $str ++ msg="$item $msg" ++ fi ++ done ++ IFS="$ifs_save" ++ fi ++ { echo "$as_me:$LINENO: result: $msg" >&5 ++echo "${ECHO_T}$msg" >&6; } ++ unset msg ++ ++ # ++ # First, add all the mca-direct components / types into the mca-static ++ # lists and create a list of component types that are direct compile, ++ # in the form DIRECT_[type]=[component] ++ # ++ { echo "$as_me:$LINENO: checking which components should be direct-linked into the library" >&5 ++echo $ECHO_N "checking which components should be direct-linked into the library... $ECHO_C" >&6; } ++ if test "$enable_mca_direct" = "yes" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ { { echo "$as_me:$LINENO: error: *** The enable-mca-direct flag requires an explicit list of ++*** type-component pairs. For example, --enable-mca-direct=pml-ob1,coll-basic" >&5 ++echo "$as_me: error: *** The enable-mca-direct flag requires an explicit list of ++*** type-component pairs. For example, --enable-mca-direct=pml-ob1,coll-basic" >&2;} ++ { (exit 1); exit 1; }; } ++ elif test ! -z "$enable_mca_direct" -a "$enable_mca_direct" != "" ; then ++ # ++ # we need to add this into the static list, unless the static list ++ # is everything ++ # ++ if test "$enable_mca_static" = "no" ; then ++ { echo "$as_me:$LINENO: WARNING: *** Re-enabling static component support for direct call" >&5 ++echo "$as_me: WARNING: *** Re-enabling static component support for direct call" >&2;} ++ enable_mca_static="$enable_mca_direct" ++ elif test -z "$enable_mca_static" ; then ++ enable_mca_static="$enable_mca_direct" ++ elif test "$enable_mca_static" != "yes" ; then ++ enable_mca_static="$enable_mca_direct,$enable_mca_static" ++ fi ++ ++ ifs_save="$IFS" ++ IFS="${IFS}$PATH_SEPARATOR," ++ msg= ++ for item in $enable_mca_direct; do ++ type="`echo $item | cut -f1 -d-`" ++ comp="`echo $item | cut -f2- -d-`" ++ if test -z $type -o -z $comp ; then ++ { { echo "$as_me:$LINENO: error: *** The enable-mca-direct flag requires a ++*** list of type-component pairs. Invalid input detected." >&5 ++echo "$as_me: error: *** The enable-mca-direct flag requires a ++*** list of type-component pairs. Invalid input detected." >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ str="`echo DIRECT_$type=$comp | sed s/-/_/g`" ++ eval $str ++ msg="$item $msg" ++ fi ++ done ++ IFS="$ifs_save" ++ fi ++ { echo "$as_me:$LINENO: result: $msg" >&5 ++echo "${ECHO_T}$msg" >&6; } ++ unset msg ++ ++ # ++ # Second, set the DSO_all and STATIC_all variables. conflict ++ # resolution (prefer static) is done in the big loop below ++ # ++ { echo "$as_me:$LINENO: checking which components should be run-time loadable" >&5 ++echo $ECHO_N "checking which components should be run-time loadable... $ECHO_C" >&6; } ++ if test "$enable_static" != "no"; then ++ DSO_all=0 ++ msg=none ++ elif test -z "$enable_mca_dso" -o "$enable_mca_dso" = "yes"; then ++ DSO_all=1 ++ msg=all ++ elif test "$enable_mca_dso" = "no"; then ++ DSO_all=0 ++ msg=none ++ else ++ DSO_all=0 ++ ifs_save="$IFS" ++ IFS="${IFS}$PATH_SEPARATOR," ++ msg= ++ for item in $enable_mca_dso; do ++ str="`echo DSO_$item=1 | sed s/-/_/g`" ++ eval $str ++ msg="$item $msg" ++ done ++ IFS="$ifs_save" ++ fi ++ { echo "$as_me:$LINENO: result: $msg" >&5 ++echo "${ECHO_T}$msg" >&6; } ++ unset msg ++ if test "$enable_static" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: *** Shared libraries have been disabled (--disable-shared)" >&5 ++echo "$as_me: WARNING: *** Shared libraries have been disabled (--disable-shared)" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Building MCA components as DSOs automatically disabled" >&5 ++echo "$as_me: WARNING: *** Building MCA components as DSOs automatically disabled" >&2;} ++ fi ++ ++ { echo "$as_me:$LINENO: checking which components should be static" >&5 ++echo $ECHO_N "checking which components should be static... $ECHO_C" >&6; } ++ if test "$enable_mca_static" = "yes"; then ++ STATIC_all=1 ++ msg=all ++ elif test -z "$enable_mca_static" -o "$enable_mca_static" = "no"; then ++ STATIC_all=0 ++ msg=none ++ else ++ STATIC_all=0 ++ ifs_save="$IFS" ++ IFS="${IFS}$PATH_SEPARATOR," ++ msg= ++ for item in $enable_mca_static; do ++ str="`echo STATIC_$item=1 | sed s/-/_/g`" ++ eval $str ++ msg="$item $msg" ++ done ++ IFS="$ifs_save" ++ fi ++ { echo "$as_me:$LINENO: result: $msg" >&5 ++echo "${ECHO_T}$msg" >&6; } ++ unset msg ++ ++ { echo "$as_me:$LINENO: checking for projects containing MCA frameworks" >&5 ++echo $ECHO_N "checking for projects containing MCA frameworks... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: opal, orte, ompi" >&5 ++echo "${ECHO_T}opal, orte, ompi" >&6; } ++ ++ # if there isn't a project list, abort ++ ++ ++ # now configre all the projects, frameworks, and components. Most ++ # of the hard stuff is in here ++ MCA_PROJECT_SUBDIRS= ++ MCA_PROJECT_SUBDIRS="$MCA_PROJECT_SUBDIRS opal" ++ ++ # can't use a variable rename here because these need to be evaled ++ # at auto* time. ++ ++ ompi_show_subtitle "Configuring MCA for opal" ++ ++ { echo "$as_me:$LINENO: checking for frameworks for opal" >&5 ++echo $ECHO_N "checking for frameworks for opal... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: backtrace, carto, crs, installdirs, maffinity, memchecker, memcpy, memory, paffinity, timer" >&5 ++echo "${ECHO_T}backtrace, carto, crs, installdirs, maffinity, memchecker, memcpy, memory, paffinity, timer" >&6; } ++ ++ # iterate through the list of frameworks. There is something ++ # funky with m4 foreach if the list is defined, but empty. It ++ # will call the 3rd argument once with an empty value for the ++ # first argument. Protect against calling MCA_CONFIGURE_FRAMEWORK ++ # with an empty second argument. Grrr.... ++ # if there isn't a project list, abort ++ # ++ # Also setup two variables for Makefiles: ++ # MCA_project_FRAMEWORKS - list of frameworks in that project ++ # MCA_project_FRAMEWORK_LIBS - list of libraries (or variables pointing ++ # to more libraries) that must be included ++ # in the project's main library ++ ++ ++ MCA_opal_FRAMEWORKS= ++ MCA_opal_FRAMEWORKS_SUBDIRS= ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS= ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS= ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS= ++ MCA_opal_FRAMEWORK_LIBS= ++ ++ # common has to go up front ++ if test "backtrace" = "common" ; then ++ MCA_opal_FRAMEWORKS="backtrace $MCA_opal_FRAMEWORKS" ++ MCA_opal_FRAMEWORKS_SUBDIRS="mca/backtrace $MCA_opal_FRAMEWORKS_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_backtrace_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_backtrace_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_backtrace_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS backtrace" ++ MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/backtrace" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_backtrace_ALL_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_backtrace_DSO_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_backtrace_STATIC_SUBDIRS)" ++ fi ++ if test "backtrace" != "common" ; then ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/backtrace/libmca_backtrace.la" ++ fi ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_backtrace_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework backtrace" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "backtrace" = "common" ; then ++ outdir=opal/mca/common ++ else ++ outdir=opal/mca/backtrace/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework backtrace" >&5 ++echo $ECHO_N "checking for no configure components in framework backtrace... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework backtrace" >&5 ++echo $ECHO_N "checking for m4 configure components in framework backtrace... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: execinfo, printstack, darwin, none" >&5 ++echo "${ECHO_T}execinfo, printstack, darwin, none" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component backtrace:execinfo (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=backtrace ++ component=execinfo ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_backtrace" ; then ++ if test "$DIRECT_backtrace" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component backtrace:execinfo compile mode" >&5 ++echo $ECHO_N "checking for MCA component backtrace:execinfo compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++for ac_header in execinfo.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++ # FreeBSD has backtrace in -lexecinfo, usually in libc ++ ++ { echo "$as_me:$LINENO: checking if we need -lexecinfo for backtrace" >&5 ++echo $ECHO_N "checking if we need -lexecinfo for backtrace... $ECHO_C" >&6; } ++if test "${ompi_cv_func_lib_backtrace_execinfo+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define backtrace to an innocuous variant, in case declares backtrace. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define backtrace innocuous_backtrace ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char backtrace (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef backtrace ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char backtrace (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_backtrace || defined __stub___backtrace ++choke me ++#endif ++ ++int ++main () ++{ ++return backtrace (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_lib_backtrace_execinfo="no" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ LIBS_save="$LIBS" ++ LIBS="$LIBS -lexecinfo" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define backtrace to an innocuous variant, in case declares backtrace. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define backtrace innocuous_backtrace ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char backtrace (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef backtrace ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char backtrace (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_backtrace || defined __stub___backtrace ++choke me ++#endif ++ ++int ++main () ++{ ++return backtrace (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_lib_backtrace_execinfo="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_lib_backtrace_execinfo="not found" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LIBS="$LIBS_save" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_lib_backtrace_execinfo" >&5 ++echo "${ECHO_T}$ompi_cv_func_lib_backtrace_execinfo" >&6; } ++ if test "$ompi_cv_func_lib_backtrace_execinfo" = "yes"; then ++ LIBS="$LIBS -lexecinfo" ++fi ++ ++ ++ # see if we actually have backtrace. Use AC_CHECK_FUNCS so that it ++ # does the glibc "not implemented" check. Will use the current LIBS, ++ # so will check in -lexecinfo if we decided we needed it above ++ ++for ac_func in backtrace ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ backtrace_execinfo_happy="yes" ++else ++ backtrace_execinfo_happy="no" ++fi ++done ++ ++ ++ ++ if test "$backtrace_execinfo_happy" = "yes"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=backtrace ++ component=execinfo ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_backtrace" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_backtrace" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component backtrace:execinfo can compile" >&5 ++echo $ECHO_N "checking if MCA component backtrace:execinfo can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_backtrace" = "execinfo" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"execinfo\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"execinfo\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_backtrace" ; then ++ if test "$DIRECT_backtrace" = "execinfo" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"execinfo\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"execinfo\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components execinfo" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_backtrace_execinfo_DSO=1 ++else ++ BUILD_backtrace_execinfo_DSO=0 ++fi ++ ++ if test "$BUILD_backtrace_execinfo_DSO" = "1"; then ++ OMPI_BUILD_backtrace_execinfo_DSO_TRUE= ++ OMPI_BUILD_backtrace_execinfo_DSO_FALSE='#' ++else ++ OMPI_BUILD_backtrace_execinfo_DSO_TRUE='#' ++ OMPI_BUILD_backtrace_execinfo_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component backtrace:printstack (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=backtrace ++ component=printstack ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_backtrace" ; then ++ if test "$DIRECT_backtrace" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component backtrace:printstack compile mode" >&5 ++echo $ECHO_N "checking for MCA component backtrace:printstack compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++for ac_header in ucontext.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++ # FreeBSD has backtrace in -lexecinfo, usually in libc ++ ++for ac_func in printstack ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ backtrace_printstack_happy="yes" ++else ++ backtrace_printstack_happy="no" ++fi ++done ++ ++ ++ if test "$backtrace_printstack_happy" = "yes"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=backtrace ++ component=printstack ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_backtrace" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_backtrace" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component backtrace:printstack can compile" >&5 ++echo $ECHO_N "checking if MCA component backtrace:printstack can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_backtrace" = "printstack" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"printstack\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"printstack\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_backtrace" ; then ++ if test "$DIRECT_backtrace" = "printstack" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"printstack\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"printstack\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components printstack" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_backtrace_printstack_DSO=1 ++else ++ BUILD_backtrace_printstack_DSO=0 ++fi ++ ++ if test "$BUILD_backtrace_printstack_DSO" = "1"; then ++ OMPI_BUILD_backtrace_printstack_DSO_TRUE= ++ OMPI_BUILD_backtrace_printstack_DSO_FALSE='#' ++else ++ OMPI_BUILD_backtrace_printstack_DSO_TRUE='#' ++ OMPI_BUILD_backtrace_printstack_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component backtrace:darwin (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=backtrace ++ component=darwin ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_backtrace" ; then ++ if test "$DIRECT_backtrace" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component backtrace:darwin compile mode" >&5 ++echo $ECHO_N "checking for MCA component backtrace:darwin compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++for ac_func in vm_read_overwrite ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ backtrace_darwin_happy="yes" ++else ++ backtrace_darwin_happy="no" ++fi ++done ++ ++ ++ case "${host}" in ++ i?86-*|x86_64*) ++ if test "$ac_cv_sizeof_long" = "8" ; then ++ backtrace_darwin_happy="no" ++ fi ++ esac ++ ++ if test "$backtrace_darwin_happy" = "yes" ; then ++ if test "$OMPI_C_GCC_INLINE_ASSEMBLY" = "0" ; then ++ backtrace_darwin_happy="no" ++ fi ++ fi ++ ++ if test "$backtrace_darwin_happy" = "yes"; then ++ ++for ac_header in mach/mach_vm.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++ ++ ++for ac_func in mach_vm_region mach_vm_read ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++fi ++ ++ ++ backtrace_darwin_CFLAGS="`echo $CFLAGS | sed 's/-pedantic//g'`" ++ ++ ++ # see if registers are prefixed with __ or not. On systems ++ # previous to Leopard, they were not. On leopard, it depends on ++ # whether code is compiled in UNIX03 mode or not. Check PPC even ++ # if on x86 because x86 always has PPC includes, but the other way ++ # around is not guaranteed. ++ if test "$backtrace_darwin_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for ppc_thread_state_t.srr0" >&5 ++echo $ECHO_N "checking for ppc_thread_state_t.srr0... $ECHO_C" >&6; } ++if test "${ac_cv_member_ppc_thread_state_t_srr0+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++ ++int ++main () ++{ ++static ppc_thread_state_t ac_aggr; ++if (ac_aggr.srr0) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_ppc_thread_state_t_srr0=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++ ++int ++main () ++{ ++static ppc_thread_state_t ac_aggr; ++if (sizeof ac_aggr.srr0) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_ppc_thread_state_t_srr0=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_member_ppc_thread_state_t_srr0=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t_srr0" >&5 ++echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t_srr0" >&6; } ++if test $ac_cv_member_ppc_thread_state_t_srr0 = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_PPC_THREAD_STATE_T_SRR0 1 ++_ACEOF ++ ++ ++fi ++ ++fi ++ ++ ++ if test "$backtrace_darwin_happy" = "yes"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=backtrace ++ component=darwin ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_backtrace" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_backtrace" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component backtrace:darwin can compile" >&5 ++echo $ECHO_N "checking if MCA component backtrace:darwin can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_backtrace" = "darwin" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_backtrace" ; then ++ if test "$DIRECT_backtrace" = "darwin" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components darwin" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_backtrace_darwin_DSO=1 ++else ++ BUILD_backtrace_darwin_DSO=0 ++fi ++ ++ if test "$BUILD_backtrace_darwin_DSO" = "1"; then ++ OMPI_BUILD_backtrace_darwin_DSO_TRUE= ++ OMPI_BUILD_backtrace_darwin_DSO_FALSE='#' ++else ++ OMPI_BUILD_backtrace_darwin_DSO_TRUE='#' ++ OMPI_BUILD_backtrace_darwin_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component backtrace:none (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=backtrace ++ component=none ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_backtrace" ; then ++ if test "$DIRECT_backtrace" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component backtrace:none compile mode" >&5 ++echo $ECHO_N "checking for MCA component backtrace:none compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ should_build=1 ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=backtrace ++ component=none ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_backtrace" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_backtrace" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component backtrace:none can compile" >&5 ++echo $ECHO_N "checking if MCA component backtrace:none can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_backtrace" = "none" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"none\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"none\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_backtrace" ; then ++ if test "$DIRECT_backtrace" = "none" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"none\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"none\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components none" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_backtrace_none_DSO=1 ++else ++ BUILD_backtrace_none_DSO=0 ++fi ++ ++ if test "$BUILD_backtrace_none_DSO" = "1"; then ++ OMPI_BUILD_backtrace_none_DSO_TRUE= ++ OMPI_BUILD_backtrace_none_DSO_FALSE='#' ++else ++ OMPI_BUILD_backtrace_none_DSO_TRUE='#' ++ OMPI_BUILD_backtrace_none_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ ++ ++ MCA_backtrace_ALL_COMPONENTS="$all_components" ++ MCA_backtrace_STATIC_COMPONENTS="$static_components" ++ MCA_backtrace_DSO_COMPONENTS="$dso_components" ++ MCA_backtrace_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_backtrace_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_backtrace_ALL_SUBDIRS="$MCA_backtrace_ALL_SUBDIRS mca/backtrace/$item" ++ done ++ ++ ++ ++ MCA_backtrace_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_backtrace_STATIC_SUBDIRS="$MCA_backtrace_STATIC_SUBDIRS mca/backtrace/$item" ++ done ++ ++ ++ ++ MCA_backtrace_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_backtrace_DSO_SUBDIRS="$MCA_backtrace_DSO_SUBDIRS mca/backtrace/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "backtrace" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "carto" = "common" ; then ++ MCA_opal_FRAMEWORKS="carto $MCA_opal_FRAMEWORKS" ++ MCA_opal_FRAMEWORKS_SUBDIRS="mca/carto $MCA_opal_FRAMEWORKS_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_carto_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_carto_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_carto_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS carto" ++ MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/carto" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_carto_ALL_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_carto_DSO_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_carto_STATIC_SUBDIRS)" ++ fi ++ if test "carto" != "common" ; then ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/carto/libmca_carto.la" ++ fi ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_carto_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework carto" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "carto" = "common" ; then ++ outdir=opal/mca/common ++ else ++ outdir=opal/mca/carto/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework carto" >&5 ++echo $ECHO_N "checking for no configure components in framework carto... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: auto_detect, file" >&5 ++echo "${ECHO_T}auto_detect, file" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework carto" >&5 ++echo $ECHO_N "checking for m4 configure components in framework carto... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component carto:auto_detect (no configuration)" ++ ++ ++ ++ ++ project=opal ++ framework=carto ++ component=auto_detect ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_carto" ; then ++ if test "$DIRECT_carto" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=opal ++ framework=carto ++ component=auto_detect ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_carto" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=opal ++ framework=carto ++ component=auto_detect ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_carto" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_carto" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component carto:auto_detect can compile" >&5 ++echo $ECHO_N "checking if MCA component carto:auto_detect can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_carto" = "auto_detect" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"auto_detect\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"auto_detect\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_carto" ; then ++ if test "$DIRECT_carto" = "auto_detect" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"auto_detect\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"auto_detect\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components auto_detect" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_carto_auto_detect_DSO=1 ++ else ++ BUILD_carto_auto_detect_DSO=0 ++ fi ++ if test "$BUILD_carto_auto_detect_DSO" = "1"; then ++ OMPI_BUILD_carto_auto_detect_DSO_TRUE= ++ OMPI_BUILD_carto_auto_detect_DSO_FALSE='#' ++else ++ OMPI_BUILD_carto_auto_detect_DSO_TRUE='#' ++ OMPI_BUILD_carto_auto_detect_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component carto:file (no configuration)" ++ ++ ++ ++ ++ project=opal ++ framework=carto ++ component=file ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_carto" ; then ++ if test "$DIRECT_carto" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=opal ++ framework=carto ++ component=file ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_carto" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=opal ++ framework=carto ++ component=file ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_carto" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_carto" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component carto:file can compile" >&5 ++echo $ECHO_N "checking if MCA component carto:file can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_carto" = "file" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"file\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"file\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_carto" ; then ++ if test "$DIRECT_carto" = "file" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"file\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"file\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components file" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_carto_file_DSO=1 ++ else ++ BUILD_carto_file_DSO=0 ++ fi ++ if test "$BUILD_carto_file_DSO" = "1"; then ++ OMPI_BUILD_carto_file_DSO_TRUE= ++ OMPI_BUILD_carto_file_DSO_FALSE='#' ++else ++ OMPI_BUILD_carto_file_DSO_TRUE='#' ++ OMPI_BUILD_carto_file_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/opal/mca/carto/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component carto:$component (need to configure)" ++ ++ ++ ++ ++ project=opal ++ framework=carto ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_carto" ; then ++ if test "$DIRECT_carto" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=opal ++ framework=carto ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_carto" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# opal/mca/carto/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="opal/mca/carto/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=opal ++ framework=carto ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_carto" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_carto" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component carto:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component carto:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_carto" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_carto" ; then ++ if test "$DIRECT_carto" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_carto_ALL_COMPONENTS="$all_components" ++ MCA_carto_STATIC_COMPONENTS="$static_components" ++ MCA_carto_DSO_COMPONENTS="$dso_components" ++ MCA_carto_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_carto_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_carto_ALL_SUBDIRS="$MCA_carto_ALL_SUBDIRS mca/carto/$item" ++ done ++ ++ ++ ++ MCA_carto_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_carto_STATIC_SUBDIRS="$MCA_carto_STATIC_SUBDIRS mca/carto/$item" ++ done ++ ++ ++ ++ MCA_carto_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_carto_DSO_SUBDIRS="$MCA_carto_DSO_SUBDIRS mca/carto/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "carto" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "crs" = "common" ; then ++ MCA_opal_FRAMEWORKS="crs $MCA_opal_FRAMEWORKS" ++ MCA_opal_FRAMEWORKS_SUBDIRS="mca/crs $MCA_opal_FRAMEWORKS_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_crs_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_crs_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_crs_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS crs" ++ MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/crs" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_crs_ALL_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_crs_DSO_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_crs_STATIC_SUBDIRS)" ++ fi ++ if test "crs" != "common" ; then ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/crs/libmca_crs.la" ++ fi ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_crs_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework crs" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "crs" = "common" ; then ++ outdir=opal/mca/common ++ else ++ outdir=opal/mca/crs/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework crs" >&5 ++echo $ECHO_N "checking for no configure components in framework crs... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: none" >&5 ++echo "${ECHO_T}none" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework crs" >&5 ++echo $ECHO_N "checking for m4 configure components in framework crs... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: blcr, self" >&5 ++echo "${ECHO_T}blcr, self" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component crs:none (no configuration)" ++ ++ ++ ++ ++ project=opal ++ framework=crs ++ component=none ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_crs" ; then ++ if test "$DIRECT_crs" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=opal ++ framework=crs ++ component=none ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_crs" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=opal ++ framework=crs ++ component=none ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_crs" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_crs" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component crs:none can compile" >&5 ++echo $ECHO_N "checking if MCA component crs:none can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_crs" = "none" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"none\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"none\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_crs" ; then ++ if test "$DIRECT_crs" = "none" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"none\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"none\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components none" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_crs_none_DSO=1 ++ else ++ BUILD_crs_none_DSO=0 ++ fi ++ if test "$BUILD_crs_none_DSO" = "1"; then ++ OMPI_BUILD_crs_none_DSO_TRUE= ++ OMPI_BUILD_crs_none_DSO_FALSE='#' ++else ++ OMPI_BUILD_crs_none_DSO_TRUE='#' ++ OMPI_BUILD_crs_none_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component crs:blcr (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=crs ++ component=blcr ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_crs" ; then ++ if test "$DIRECT_crs" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=opal ++ framework=crs ++ component=blcr ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_crs" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++# Check whether --with-blcr was given. ++if test "${with_blcr+set}" = set; then ++ withval=$with_blcr; ++fi ++ ++ ++# Check whether --with-blcr-libdir was given. ++if test "${with_blcr_libdir+set}" = set; then ++ withval=$with_blcr_libdir; ++fi ++ ++ ++ check_crs_blcr_good="no" ++ # If we do not want BLCR, then do not compile it ++ if test "$with_blcr" = "no"; then ++ should_build=0 ++ check_crs_blcr_good="no" ++else ++ check_crs_blcr_good="yes" ++fi ++ ++ ++ # If we do not want FT, don't compile this component ++ if test "$ompi_want_ft" = "0"; then ++ should_build=0 ++ check_crs_blcr_good="no" ++else ++ check_crs_blcr_good="yes" ++fi ++ ++ ++ # Defaults ++ check_crs_blcr_dir_msg="compiler default" ++ check_crs_blcr_libdir_msg="linker default" ++ check_crs_blcr_dir="" ++ check_crs_blcr_libdir="" ++ ++ # Determine the search paths for the headers and libraries ++ if test "$check_crs_blcr_good" != "yes"; then ++ should_build=0 ++else ++ if test ! -z "$with_blcr" -a "$with_blcr" != "yes"; then ++ check_crs_blcr_dir="$with_blcr" ++ check_crs_blcr_dir_msg="$with_blcr (from --with-blcr)" ++fi ++ ++ if test ! -z "$with_blcr_libdir" -a "$with_blcr_libdir" != "yes"; then ++ check_crs_blcr_libdir="$with_blcr_libdir" ++ check_crs_blcr_libdir_msg="$with_blcr_libdir (from --with-blcr-libdir)" ++fi ++ ++ ++fi ++ ++ ++ crs_blcr_save_CFLAGS="$CFLAGS" ++ crs_blcr_save_CPPFLAGS="$CPPFLAGS" ++ crs_blcr_save_LDFLAGS="$LDFLAGS" ++ crs_blcr_save_LIBS="$LIBS" ++ ++ crs_blcr_CFLAGS="$CFLAGS" ++ crs_blcr_CPPFLAGS="$CPPFLAGS" ++ crs_blcr_LDFLAGS="$LDFLAGS" ++ crs_blcr_LIBS="$LIBS" ++ ++ if test "$check_crs_blcr_good" != "yes"; then ++ should_build=0 ++else ++ { echo "$as_me:$LINENO: checking for BLCR dir" >&5 ++echo $ECHO_N "checking for BLCR dir... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $check_crs_blcr_dir_msg" >&5 ++echo "${ECHO_T}$check_crs_blcr_dir_msg" >&6; } ++ { echo "$as_me:$LINENO: checking for BLCR library dir" >&5 ++echo $ECHO_N "checking for BLCR library dir... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $check_crs_blcr_libdir_msg" >&5 ++echo "${ECHO_T}$check_crs_blcr_libdir_msg" >&6; } ++ ++ ompi_check_package_crs_blcr_check_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_crs_blcr_check_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_crs_blcr_check_save_LIBS="$LIBS" ++ ++ ompi_check_package_crs_blcr_check_orig_CPPFLAGS="$crs_blcr_check_CPPFLAGS" ++ ompi_check_package_crs_blcr_check_orig_LDFLAGS="$crs_blcr_check_LDFLAGS" ++ ompi_check_package_crs_blcr_check_orig_LIBS="$crs_blcr_check_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_libcr_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$check_crs_blcr_dir" = "/usr" -o "$check_crs_blcr_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_libcr_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for libcr.h" >&5 ++echo $ECHO_N "checking for libcr.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_libcr_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_libcr_h" >&5 ++echo "${ECHO_T}$ac_cv_header_libcr_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking libcr.h usability" >&5 ++echo $ECHO_N "checking libcr.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking libcr.h presence" >&5 ++echo $ECHO_N "checking libcr.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: libcr.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: libcr.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: libcr.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: libcr.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: libcr.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: libcr.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: libcr.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: libcr.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: libcr.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: libcr.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: libcr.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: libcr.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: libcr.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: libcr.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: libcr.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: libcr.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for libcr.h" >&5 ++echo $ECHO_N "checking for libcr.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_libcr_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_libcr_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_libcr_h" >&5 ++echo "${ECHO_T}$ac_cv_header_libcr_h" >&6; } ++ ++fi ++if test $ac_cv_header_libcr_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_libcr_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$check_crs_blcr_dir" != ""; then ++ crs_blcr_check_CPPFLAGS="$crs_blcr_check_CPPFLAGS -I$check_crs_blcr_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$check_crs_blcr_dir/include" ++fi ++ ++ if test "${ac_cv_header_libcr_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for libcr.h" >&5 ++echo $ECHO_N "checking for libcr.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_libcr_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_libcr_h" >&5 ++echo "${ECHO_T}$ac_cv_header_libcr_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking libcr.h usability" >&5 ++echo $ECHO_N "checking libcr.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking libcr.h presence" >&5 ++echo $ECHO_N "checking libcr.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: libcr.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: libcr.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: libcr.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: libcr.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: libcr.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: libcr.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: libcr.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: libcr.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: libcr.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: libcr.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: libcr.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: libcr.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: libcr.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: libcr.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: libcr.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: libcr.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for libcr.h" >&5 ++echo $ECHO_N "checking for libcr.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_libcr_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_libcr_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_libcr_h" >&5 ++echo "${ECHO_T}$ac_cv_header_libcr_h" >&6; } ++ ++fi ++if test $ac_cv_header_libcr_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_cr_cr_init ++ ompi_check_package_lib_happy="no" ++ if test "$check_crs_blcr_libdir" != ""; then ++ # libdir was specified - search only there ++ crs_blcr_check_LDFLAGS="$crs_blcr_check_LDFLAGS -L$check_crs_blcr_libdir" ++ LDFLAGS="$LDFLAGS -L$check_crs_blcr_libdir" ++ { echo "$as_me:$LINENO: checking for cr_init in -lcr" >&5 ++echo $ECHO_N "checking for cr_init in -lcr... $ECHO_C" >&6; } ++if test "${ac_cv_lib_cr_cr_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lcr $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cr_init (); ++int ++main () ++{ ++return cr_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_cr_cr_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_cr_cr_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_cr_cr_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_cr_cr_init" >&6; } ++if test $ac_cv_lib_cr_cr_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS" ++ crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS" ++ unset ac_cv_lib_cr_cr_init ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$check_crs_blcr_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for cr_init in -lcr" >&5 ++echo $ECHO_N "checking for cr_init in -lcr... $ECHO_C" >&6; } ++if test "${ac_cv_lib_cr_cr_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lcr $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cr_init (); ++int ++main () ++{ ++return cr_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_cr_cr_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_cr_cr_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_cr_cr_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_cr_cr_init" >&6; } ++if test $ac_cv_lib_cr_cr_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS" ++ crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS" ++ unset ac_cv_lib_cr_cr_init ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ crs_blcr_check_LDFLAGS="$crs_blcr_check_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for cr_init in -lcr" >&5 ++echo $ECHO_N "checking for cr_init in -lcr... $ECHO_C" >&6; } ++if test "${ac_cv_lib_cr_cr_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lcr $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cr_init (); ++int ++main () ++{ ++return cr_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_cr_cr_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_cr_cr_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_cr_cr_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_cr_cr_init" >&6; } ++if test $ac_cv_lib_cr_cr_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS" ++ crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS" ++ unset ac_cv_lib_cr_cr_init ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ crs_blcr_check_LDFLAGS="$crs_blcr_check_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for cr_init in -lcr" >&5 ++echo $ECHO_N "checking for cr_init in -lcr... $ECHO_C" >&6; } ++if test "${ac_cv_lib_cr_cr_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lcr $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cr_init (); ++int ++main () ++{ ++return cr_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_cr_cr_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_cr_cr_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_cr_cr_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_cr_cr_init" >&6; } ++if test $ac_cv_lib_cr_cr_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS" ++ crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS" ++ unset ac_cv_lib_cr_cr_init ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ crs_blcr_check_LIBS="-lcr " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_cr_cr_init ++ ompi_check_package_lib_happy="no" ++ if test "$check_crs_blcr_libdir" != ""; then ++ # libdir was specified - search only there ++ crs_blcr_check_LDFLAGS="$crs_blcr_check_LDFLAGS -L$check_crs_blcr_libdir" ++ LDFLAGS="$LDFLAGS -L$check_crs_blcr_libdir" ++ { echo "$as_me:$LINENO: checking for cr_init in -lcr" >&5 ++echo $ECHO_N "checking for cr_init in -lcr... $ECHO_C" >&6; } ++if test "${ac_cv_lib_cr_cr_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lcr $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cr_init (); ++int ++main () ++{ ++return cr_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_cr_cr_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_cr_cr_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_cr_cr_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_cr_cr_init" >&6; } ++if test $ac_cv_lib_cr_cr_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS" ++ crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS" ++ unset ac_cv_lib_cr_cr_init ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$check_crs_blcr_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for cr_init in -lcr" >&5 ++echo $ECHO_N "checking for cr_init in -lcr... $ECHO_C" >&6; } ++if test "${ac_cv_lib_cr_cr_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lcr $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cr_init (); ++int ++main () ++{ ++return cr_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_cr_cr_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_cr_cr_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_cr_cr_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_cr_cr_init" >&6; } ++if test $ac_cv_lib_cr_cr_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS" ++ crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS" ++ unset ac_cv_lib_cr_cr_init ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ crs_blcr_check_LDFLAGS="$crs_blcr_check_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for cr_init in -lcr" >&5 ++echo $ECHO_N "checking for cr_init in -lcr... $ECHO_C" >&6; } ++if test "${ac_cv_lib_cr_cr_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lcr $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cr_init (); ++int ++main () ++{ ++return cr_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_cr_cr_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_cr_cr_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_cr_cr_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_cr_cr_init" >&6; } ++if test $ac_cv_lib_cr_cr_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS" ++ crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS" ++ unset ac_cv_lib_cr_cr_init ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ crs_blcr_check_LDFLAGS="$crs_blcr_check_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for cr_init in -lcr" >&5 ++echo $ECHO_N "checking for cr_init in -lcr... $ECHO_C" >&6; } ++if test "${ac_cv_lib_cr_cr_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lcr $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cr_init (); ++int ++main () ++{ ++return cr_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_cr_cr_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_cr_cr_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_cr_cr_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_cr_cr_init" >&6; } ++if test $ac_cv_lib_cr_cr_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS" ++ crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS" ++ unset ac_cv_lib_cr_cr_init ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ crs_blcr_check_LIBS="-lcr " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ check_crs_blcr_good="yes" ++else ++ crs_blcr_check_CPPFLAGS="$ompi_check_package_crs_blcr_check_orig_CPPFLAGS" ++ crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS" ++ crs_blcr_check_LIBS="$ompi_check_package_crs_blcr_check_orig_LIBS" ++ check_crs_blcr_good="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_crs_blcr_check_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS" ++ LIBS="$ompi_check_package_crs_blcr_check_save_LIBS" ++ ++ ++fi ++ ++ ++ # Check to see if we found the BLCR libcr.h library ++ # If we did then add the arguments to the wrapper compiler ++ if test "$check_crs_blcr_good" != "yes"; then ++ should_build=0 ++else ++ ++ # ++ # Since BLCR libraries are not fully ISO99 C compliant ++ # -pedantic and -Wundef raise a bunch of warnings, so ++ # we just strip them off for this component ++ { echo "$as_me:$LINENO: WARNING: Removed -pedantic and -Wundef from CFLAGS for blcr component because libcr.h is not really ANSI C" >&5 ++echo "$as_me: WARNING: Removed -pedantic and -Wundef from CFLAGS for blcr component because libcr.h is not really ANSI C" >&2;} ++ # Strip off problematic arguments ++ crs_blcr_CFLAGS="`echo $crs_blcr_check_CFLAGS | sed 's/-pedantic//g'`" ++ crs_blcr_CFLAGS="`echo $crs_blcr_CFLAGS | sed 's/-Wundef//g'`" ++ crs_blcr_CPPFLAGS="`echo $crs_blcr_check_CPPFLAGS | sed 's/-pedantic//g'`" ++ crs_blcr_CPPFLAGS="`echo $crs_blcr_CPPFLAGS | sed 's/-Wundef//g'`" ++ crs_blcr_LDFLAGS="$crs_blcr_check_LDFLAGS" ++ crs_blcr_LIBS="$crs_blcr_check_LIBS" ++ # ++ # Add to wrapper compiler ++ crs_blcr_WRAPPER_EXTRA_CFLAGS="$crs_blcr_CFLAGS" ++ crs_blcr_WRAPPER_EXTRA_CPPFLAGS="$crs_blcr_CPPFLAGS" ++ crs_blcr_WRAPPER_EXTRA_LDFLAGS="$crs_blcr_LDFLAGS" ++ crs_blcr_WRAPPER_EXTRA_LIBS="$crs_blcr_LIBS" ++ should_build=1 ++fi ++ ++ ++ ++ # ++ # Check for version difference which may have: ++ # - working cr_request_file ++ # - working cr_request_checkpoint (which should be used instead of cr_request_file) ++ # - 'requester' parameter to checkpoint_info ++ # ++ if test "$check_crs_blcr_good" != "yes"; then ++ should_build=0 ++else ++ ++ # ++ # First look for the cr_request_file function ++ # ++ crs_blcr_have_working_cr_request=0 ++ { echo "$as_me:$LINENO: checking for BLCR working cr_request" >&5 ++echo $ECHO_N "checking for BLCR working cr_request... $ECHO_C" >&6; } ++ ++ { echo "$as_me:$LINENO: checking if we need -lcr for cr_request_file" >&5 ++echo $ECHO_N "checking if we need -lcr for cr_request_file... $ECHO_C" >&6; } ++if test "${ompi_cv_func_lib_cr_request_file_cr+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define cr_request_file to an innocuous variant, in case declares cr_request_file. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define cr_request_file innocuous_cr_request_file ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char cr_request_file (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef cr_request_file ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cr_request_file (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_cr_request_file || defined __stub___cr_request_file ++choke me ++#endif ++ ++int ++main () ++{ ++return cr_request_file (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_lib_cr_request_file_cr="no" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ LIBS_save="$LIBS" ++ LIBS="$LIBS -lcr" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define cr_request_file to an innocuous variant, in case declares cr_request_file. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define cr_request_file innocuous_cr_request_file ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char cr_request_file (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef cr_request_file ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cr_request_file (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_cr_request_file || defined __stub___cr_request_file ++choke me ++#endif ++ ++int ++main () ++{ ++return cr_request_file (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_lib_cr_request_file_cr="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_lib_cr_request_file_cr="not found" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LIBS="$LIBS_save" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_lib_cr_request_file_cr" >&5 ++echo "${ECHO_T}$ompi_cv_func_lib_cr_request_file_cr" >&6; } ++ if test "$ompi_cv_func_lib_cr_request_file_cr" = "yes"; then ++ LIBS="$LIBS -lcr" ++fi ++ ++ ++ # see if we actually have cr_request_file. Use AC_CHECK_FUNCS so that it ++ # does the glibc "not implemented" check. Will use the current LIBS, ++ # so will check in -lcr if we decided we needed it above ++ ++for ac_func in cr_request_file ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++#if CR_RELEASE_MAJOR <= 0 && CR_RELEASE_MINOR < 6 ++ #error Version earlier than 0.6.0 ++ #endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ crs_blcr_have_working_cr_request=1 ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ crs_blcr_have_working_cr_request=0 ++ { echo "$as_me:$LINENO: WARNING: This BLCR version does not contain a known working version of cr_request_file" >&5 ++echo "$as_me: WARNING: This BLCR version does not contain a known working version of cr_request_file" >&2;} ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++else ++ crs_blcr_have_working_cr_request=0 ++ { echo "$as_me:$LINENO: WARNING: This BLCR version does not contain the cr_request_file function" >&5 ++echo "$as_me: WARNING: This BLCR version does not contain the cr_request_file function" >&2;} ++ ++fi ++done ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define CRS_BLCR_HAVE_CR_REQUEST $crs_blcr_have_working_cr_request ++_ACEOF ++ ++ ++ # ++ # Look for the cr_request_checkpoint function ++ # ++ crs_blcr_have_cr_request_checkpoint=0 ++ { echo "$as_me:$LINENO: checking for BLCR cr_request_checkpoint" >&5 ++echo $ECHO_N "checking for BLCR cr_request_checkpoint... $ECHO_C" >&6; } ++ ++ { echo "$as_me:$LINENO: checking if we need -lcr for cr_request_checkpoint" >&5 ++echo $ECHO_N "checking if we need -lcr for cr_request_checkpoint... $ECHO_C" >&6; } ++if test "${ompi_cv_func_lib_cr_request_checkpoint_cr+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define cr_request_checkpoint to an innocuous variant, in case declares cr_request_checkpoint. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define cr_request_checkpoint innocuous_cr_request_checkpoint ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char cr_request_checkpoint (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef cr_request_checkpoint ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cr_request_checkpoint (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_cr_request_checkpoint || defined __stub___cr_request_checkpoint ++choke me ++#endif ++ ++int ++main () ++{ ++return cr_request_checkpoint (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_lib_cr_request_checkpoint_cr="no" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ LIBS_save="$LIBS" ++ LIBS="$LIBS -lcr" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define cr_request_checkpoint to an innocuous variant, in case declares cr_request_checkpoint. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define cr_request_checkpoint innocuous_cr_request_checkpoint ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char cr_request_checkpoint (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef cr_request_checkpoint ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cr_request_checkpoint (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_cr_request_checkpoint || defined __stub___cr_request_checkpoint ++choke me ++#endif ++ ++int ++main () ++{ ++return cr_request_checkpoint (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_lib_cr_request_checkpoint_cr="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_lib_cr_request_checkpoint_cr="not found" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LIBS="$LIBS_save" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_lib_cr_request_checkpoint_cr" >&5 ++echo "${ECHO_T}$ompi_cv_func_lib_cr_request_checkpoint_cr" >&6; } ++ if test "$ompi_cv_func_lib_cr_request_checkpoint_cr" = "yes"; then ++ LIBS="$LIBS -lcr" ++fi ++ ++ ++ # see if we actually have cr_request_checkpoint. Use AC_CHECK_FUNCS so that it ++ # does the glibc "not implemented" check. Will use the current LIBS, ++ # so will check in -lcr if we decided we needed it above ++ ++for ac_func in cr_request_checkpoint ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ crs_blcr_have_cr_request_checkpoint=1 ++ ++else ++ crs_blcr_have_cr_request_checkpoint=0 ++ { echo "$as_me:$LINENO: WARNING: This BLCR version does not contain the cr_request_checkpoint function" >&5 ++echo "$as_me: WARNING: This BLCR version does not contain the cr_request_checkpoint function" >&2;} ++ ++fi ++done ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define CRS_BLCR_HAVE_CR_REQUEST_CHECKPOINT $crs_blcr_have_cr_request_checkpoint ++_ACEOF ++ ++ ++ # ++ # Look for the cr_checkpoint_info.requester member ++ # ++ crs_blcr_have_info_requester=0 ++ { echo "$as_me:$LINENO: checking for struct cr_checkpoint_info.requester" >&5 ++echo $ECHO_N "checking for struct cr_checkpoint_info.requester... $ECHO_C" >&6; } ++if test "${ac_cv_member_struct_cr_checkpoint_info_requester+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++static struct cr_checkpoint_info ac_aggr; ++if (ac_aggr.requester) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_struct_cr_checkpoint_info_requester=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++static struct cr_checkpoint_info ac_aggr; ++if (sizeof ac_aggr.requester) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_struct_cr_checkpoint_info_requester=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_member_struct_cr_checkpoint_info_requester=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_cr_checkpoint_info_requester" >&5 ++echo "${ECHO_T}$ac_cv_member_struct_cr_checkpoint_info_requester" >&6; } ++if test $ac_cv_member_struct_cr_checkpoint_info_requester = yes; then ++ crs_blcr_have_info_requester=1 ++else ++ { echo "$as_me:$LINENO: WARNING: This BLCR version does not contain a 'requester' member of the 'cr_checkpoint_info' struct" >&5 ++echo "$as_me: WARNING: This BLCR version does not contain a 'requester' member of the 'cr_checkpoint_info' struct" >&2;} ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define CRS_BLCR_HAVE_INFO_REQUESTER $crs_blcr_have_info_requester ++_ACEOF ++ ++ should_build=1 ++fi ++ ++ ++ CFLAGS="$crs_blcr_save_CFLAGS" ++ CPPFLAGS="$crs_blcr_save_CPPFLAGS" ++ LDFLAGS="$crs_blcr_save_LDFLAGS" ++ LIBS="$crs_blcr_save_LIBS" ++ ++ # ++ if test "$check_crs_blcr_good" = "yes"; then ++ ++ ++ ++ ++ ++ ++ ++ should_build=1 ++else ++ if test ! -z "$with_blcr" -a "$with_blcr" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: BLCR support requested but not found. Perhaps you need to specify the location of the BLCR libraries." >&5 ++echo "$as_me: WARNING: BLCR support requested but not found. Perhaps you need to specify the location of the BLCR libraries." >&2;} ++ { { echo "$as_me:$LINENO: error: Aborting." >&5 ++echo "$as_me: error: Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++fi ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=crs ++ component=blcr ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_crs" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_crs" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component crs:blcr can compile" >&5 ++echo $ECHO_N "checking if MCA component crs:blcr can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_crs" = "blcr" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"blcr\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"blcr\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_crs" ; then ++ if test "$DIRECT_crs" = "blcr" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"blcr\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"blcr\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components blcr" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_crs_blcr_DSO=1 ++else ++ BUILD_crs_blcr_DSO=0 ++fi ++ ++ if test "$BUILD_crs_blcr_DSO" = "1"; then ++ OMPI_BUILD_crs_blcr_DSO_TRUE= ++ OMPI_BUILD_crs_blcr_DSO_FALSE='#' ++else ++ OMPI_BUILD_crs_blcr_DSO_TRUE='#' ++ OMPI_BUILD_crs_blcr_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component crs:self (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=crs ++ component=self ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_crs" ; then ++ if test "$DIRECT_crs" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=opal ++ framework=crs ++ component=self ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_crs" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ # If we don't want FT, don't compile this component ++ if test "$ompi_want_ft" = "1"; then ++ crs_self_good="yes" ++else ++ should_build=0 ++fi ++ ++ ++ # We need to be able to dlopen the executable for this component to work. ++ if test "$OMPI_ENABLE_DLOPEN_SUPPORT" = "1" -a "$crs_self_good" = "yes"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=crs ++ component=self ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_crs" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_crs" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component crs:self can compile" >&5 ++echo $ECHO_N "checking if MCA component crs:self can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_crs" = "self" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_crs" ; then ++ if test "$DIRECT_crs" = "self" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components self" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_crs_self_DSO=1 ++else ++ BUILD_crs_self_DSO=0 ++fi ++ ++ if test "$BUILD_crs_self_DSO" = "1"; then ++ OMPI_BUILD_crs_self_DSO_TRUE= ++ OMPI_BUILD_crs_self_DSO_FALSE='#' ++else ++ OMPI_BUILD_crs_self_DSO_TRUE='#' ++ OMPI_BUILD_crs_self_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/opal/mca/crs/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component crs:$component (need to configure)" ++ ++ ++ ++ ++ project=opal ++ framework=crs ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_crs" ; then ++ if test "$DIRECT_crs" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=opal ++ framework=crs ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_crs" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# opal/mca/crs/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="opal/mca/crs/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=opal ++ framework=crs ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_crs" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_crs" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component crs:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component crs:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_crs" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_crs" ; then ++ if test "$DIRECT_crs" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_crs_ALL_COMPONENTS="$all_components" ++ MCA_crs_STATIC_COMPONENTS="$static_components" ++ MCA_crs_DSO_COMPONENTS="$dso_components" ++ MCA_crs_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_crs_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_crs_ALL_SUBDIRS="$MCA_crs_ALL_SUBDIRS mca/crs/$item" ++ done ++ ++ ++ ++ MCA_crs_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_crs_STATIC_SUBDIRS="$MCA_crs_STATIC_SUBDIRS mca/crs/$item" ++ done ++ ++ ++ ++ MCA_crs_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_crs_DSO_SUBDIRS="$MCA_crs_DSO_SUBDIRS mca/crs/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "crs" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "installdirs" = "common" ; then ++ MCA_opal_FRAMEWORKS="installdirs $MCA_opal_FRAMEWORKS" ++ MCA_opal_FRAMEWORKS_SUBDIRS="mca/installdirs $MCA_opal_FRAMEWORKS_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_installdirs_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_installdirs_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_installdirs_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS installdirs" ++ MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/installdirs" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_installdirs_ALL_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_installdirs_DSO_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_installdirs_STATIC_SUBDIRS)" ++ fi ++ if test "installdirs" != "common" ; then ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/installdirs/libmca_installdirs.la" ++ fi ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_installdirs_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework installdirs" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "installdirs" = "common" ; then ++ outdir=opal/mca/common ++ else ++ outdir=opal/mca/installdirs/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework installdirs" >&5 ++echo $ECHO_N "checking for no configure components in framework installdirs... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework installdirs" >&5 ++echo $ECHO_N "checking for m4 configure components in framework installdirs... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: env, config" >&5 ++echo "${ECHO_T}env, config" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component installdirs:env (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=installdirs ++ component=env ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_installdirs" ; then ++ if test "$DIRECT_installdirs" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component installdirs:env compile mode" >&5 ++echo $ECHO_N "checking for MCA component installdirs:env compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ should_build=1 ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=installdirs ++ component=env ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_installdirs" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_installdirs" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component installdirs:env can compile" >&5 ++echo $ECHO_N "checking if MCA component installdirs:env can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_installdirs" = "env" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"env\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_installdirs" ; then ++ if test "$DIRECT_installdirs" = "env" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"env\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components env" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_installdirs_env_DSO=1 ++else ++ BUILD_installdirs_env_DSO=0 ++fi ++ ++ if test "$BUILD_installdirs_env_DSO" = "1"; then ++ OMPI_BUILD_installdirs_env_DSO_TRUE= ++ OMPI_BUILD_installdirs_env_DSO_FALSE='#' ++else ++ OMPI_BUILD_installdirs_env_DSO_TRUE='#' ++ OMPI_BUILD_installdirs_env_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component installdirs:config (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=installdirs ++ component=config ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_installdirs" ; then ++ if test "$DIRECT_installdirs" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component installdirs:config compile mode" >&5 ++echo $ECHO_N "checking for MCA component installdirs:config compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ac_config_files="$ac_config_files opal/mca/installdirs/config/install_dirs.h" ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=installdirs ++ component=config ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_installdirs" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_installdirs" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component installdirs:config can compile" >&5 ++echo $ECHO_N "checking if MCA component installdirs:config can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_installdirs" = "config" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"config\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"config\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_installdirs" ; then ++ if test "$DIRECT_installdirs" = "config" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"config\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"config\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components config" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_installdirs_config_DSO=1 ++else ++ BUILD_installdirs_config_DSO=0 ++fi ++ ++ if test "$BUILD_installdirs_config_DSO" = "1"; then ++ OMPI_BUILD_installdirs_config_DSO_TRUE= ++ OMPI_BUILD_installdirs_config_DSO_FALSE='#' ++else ++ OMPI_BUILD_installdirs_config_DSO_TRUE='#' ++ OMPI_BUILD_installdirs_config_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/opal/mca/installdirs/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component installdirs:$component (need to configure)" ++ ++ ++ ++ ++ project=opal ++ framework=installdirs ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_installdirs" ; then ++ if test "$DIRECT_installdirs" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=opal ++ framework=installdirs ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_installdirs" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# opal/mca/installdirs/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="opal/mca/installdirs/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=opal ++ framework=installdirs ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_installdirs" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_installdirs" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component installdirs:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component installdirs:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_installdirs" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_installdirs" ; then ++ if test "$DIRECT_installdirs" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_installdirs_ALL_COMPONENTS="$all_components" ++ MCA_installdirs_STATIC_COMPONENTS="$static_components" ++ MCA_installdirs_DSO_COMPONENTS="$dso_components" ++ MCA_installdirs_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_installdirs_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_installdirs_ALL_SUBDIRS="$MCA_installdirs_ALL_SUBDIRS mca/installdirs/$item" ++ done ++ ++ ++ ++ MCA_installdirs_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_installdirs_STATIC_SUBDIRS="$MCA_installdirs_STATIC_SUBDIRS mca/installdirs/$item" ++ done ++ ++ ++ ++ MCA_installdirs_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_installdirs_DSO_SUBDIRS="$MCA_installdirs_DSO_SUBDIRS mca/installdirs/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "installdirs" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "maffinity" = "common" ; then ++ MCA_opal_FRAMEWORKS="maffinity $MCA_opal_FRAMEWORKS" ++ MCA_opal_FRAMEWORKS_SUBDIRS="mca/maffinity $MCA_opal_FRAMEWORKS_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_maffinity_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_maffinity_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_maffinity_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS maffinity" ++ MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/maffinity" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_maffinity_ALL_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_maffinity_DSO_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_maffinity_STATIC_SUBDIRS)" ++ fi ++ if test "maffinity" != "common" ; then ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/maffinity/libmca_maffinity.la" ++ fi ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_maffinity_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework maffinity" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "maffinity" = "common" ; then ++ outdir=opal/mca/common ++ else ++ outdir=opal/mca/maffinity/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework maffinity" >&5 ++echo $ECHO_N "checking for no configure components in framework maffinity... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: first_use" >&5 ++echo "${ECHO_T}first_use" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework maffinity" >&5 ++echo $ECHO_N "checking for m4 configure components in framework maffinity... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: libnuma" >&5 ++echo "${ECHO_T}libnuma" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component maffinity:first_use (no configuration)" ++ ++ ++ ++ ++ project=opal ++ framework=maffinity ++ component=first_use ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_maffinity" ; then ++ if test "$DIRECT_maffinity" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=opal ++ framework=maffinity ++ component=first_use ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_maffinity" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=opal ++ framework=maffinity ++ component=first_use ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_maffinity" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_maffinity" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component maffinity:first_use can compile" >&5 ++echo $ECHO_N "checking if MCA component maffinity:first_use can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_maffinity" = "first_use" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"first_use\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"first_use\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_maffinity" ; then ++ if test "$DIRECT_maffinity" = "first_use" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"first_use\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"first_use\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components first_use" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_maffinity_first_use_DSO=1 ++ else ++ BUILD_maffinity_first_use_DSO=0 ++ fi ++ if test "$BUILD_maffinity_first_use_DSO" = "1"; then ++ OMPI_BUILD_maffinity_first_use_DSO_TRUE= ++ OMPI_BUILD_maffinity_first_use_DSO_FALSE='#' ++else ++ OMPI_BUILD_maffinity_first_use_DSO_TRUE='#' ++ OMPI_BUILD_maffinity_first_use_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component maffinity:libnuma (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=maffinity ++ component=libnuma ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_maffinity" ; then ++ if test "$DIRECT_maffinity" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=opal ++ framework=maffinity ++ component=libnuma ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_maffinity" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++# Check whether --with-libnuma was given. ++if test "${with_libnuma+set}" = set; then ++ withval=$with_libnuma; ++fi ++ ++ ++ if test "$with_libnuma" = "no"; then ++ maffinity_libnuma_happy="no" ++else ++ maffinity_libnuma_happy="yes" ++fi ++ ++ ++ if test "$maffinity_libnuma_happy" = "yes"; then ++ ++ ompi_check_package_maffinity_libnuma_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_maffinity_libnuma_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_maffinity_libnuma_save_LIBS="$LIBS" ++ ++ ompi_check_package_maffinity_libnuma_orig_CPPFLAGS="$maffinity_libnuma_CPPFLAGS" ++ ompi_check_package_maffinity_libnuma_orig_LDFLAGS="$maffinity_libnuma_LDFLAGS" ++ ompi_check_package_maffinity_libnuma_orig_LIBS="$maffinity_libnuma_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_numa_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$with_libnuma" = "/usr" -o "$with_libnuma" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_numa_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for numa.h" >&5 ++echo $ECHO_N "checking for numa.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_numa_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_numa_h" >&5 ++echo "${ECHO_T}$ac_cv_header_numa_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking numa.h usability" >&5 ++echo $ECHO_N "checking numa.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking numa.h presence" >&5 ++echo $ECHO_N "checking numa.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: numa.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: numa.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: numa.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: numa.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: numa.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: numa.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: numa.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: numa.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: numa.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: numa.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: numa.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: numa.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: numa.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: numa.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: numa.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: numa.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for numa.h" >&5 ++echo $ECHO_N "checking for numa.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_numa_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_numa_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_numa_h" >&5 ++echo "${ECHO_T}$ac_cv_header_numa_h" >&6; } ++ ++fi ++if test $ac_cv_header_numa_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_numa_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$with_libnuma" != ""; then ++ maffinity_libnuma_CPPFLAGS="$maffinity_libnuma_CPPFLAGS -I$with_libnuma/include" ++ CPPFLAGS="$CPPFLAGS -I$with_libnuma/include" ++fi ++ ++ if test "${ac_cv_header_numa_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for numa.h" >&5 ++echo $ECHO_N "checking for numa.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_numa_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_numa_h" >&5 ++echo "${ECHO_T}$ac_cv_header_numa_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking numa.h usability" >&5 ++echo $ECHO_N "checking numa.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking numa.h presence" >&5 ++echo $ECHO_N "checking numa.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: numa.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: numa.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: numa.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: numa.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: numa.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: numa.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: numa.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: numa.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: numa.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: numa.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: numa.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: numa.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: numa.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: numa.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: numa.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: numa.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for numa.h" >&5 ++echo $ECHO_N "checking for numa.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_numa_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_numa_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_numa_h" >&5 ++echo "${ECHO_T}$ac_cv_header_numa_h" >&6; } ++ ++fi ++if test $ac_cv_header_numa_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_numa_numa_available ++ ompi_check_package_lib_happy="no" ++ if test "" != ""; then ++ # libdir was specified - search only there ++ maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L" ++ LDFLAGS="$LDFLAGS -L" ++ { echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5 ++echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6; } ++if test "${ac_cv_lib_numa_numa_available+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lnuma $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char numa_available (); ++int ++main () ++{ ++return numa_available (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_numa_numa_available=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_numa_numa_available=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5 ++echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6; } ++if test $ac_cv_lib_numa_numa_available = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS" ++ maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS" ++ unset ac_cv_lib_numa_numa_available ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$with_libnuma" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5 ++echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6; } ++if test "${ac_cv_lib_numa_numa_available+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lnuma $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char numa_available (); ++int ++main () ++{ ++return numa_available (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_numa_numa_available=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_numa_numa_available=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5 ++echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6; } ++if test $ac_cv_lib_numa_numa_available = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS" ++ maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS" ++ unset ac_cv_lib_numa_numa_available ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5 ++echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6; } ++if test "${ac_cv_lib_numa_numa_available+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lnuma $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char numa_available (); ++int ++main () ++{ ++return numa_available (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_numa_numa_available=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_numa_numa_available=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5 ++echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6; } ++if test $ac_cv_lib_numa_numa_available = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS" ++ maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS" ++ unset ac_cv_lib_numa_numa_available ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5 ++echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6; } ++if test "${ac_cv_lib_numa_numa_available+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lnuma $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char numa_available (); ++int ++main () ++{ ++return numa_available (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_numa_numa_available=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_numa_numa_available=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5 ++echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6; } ++if test $ac_cv_lib_numa_numa_available = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS" ++ maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS" ++ unset ac_cv_lib_numa_numa_available ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ maffinity_libnuma_LIBS="-lnuma " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_numa_numa_available ++ ompi_check_package_lib_happy="no" ++ if test "" != ""; then ++ # libdir was specified - search only there ++ maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L" ++ LDFLAGS="$LDFLAGS -L" ++ { echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5 ++echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6; } ++if test "${ac_cv_lib_numa_numa_available+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lnuma $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char numa_available (); ++int ++main () ++{ ++return numa_available (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_numa_numa_available=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_numa_numa_available=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5 ++echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6; } ++if test $ac_cv_lib_numa_numa_available = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS" ++ maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS" ++ unset ac_cv_lib_numa_numa_available ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$with_libnuma" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5 ++echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6; } ++if test "${ac_cv_lib_numa_numa_available+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lnuma $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char numa_available (); ++int ++main () ++{ ++return numa_available (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_numa_numa_available=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_numa_numa_available=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5 ++echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6; } ++if test $ac_cv_lib_numa_numa_available = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS" ++ maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS" ++ unset ac_cv_lib_numa_numa_available ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5 ++echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6; } ++if test "${ac_cv_lib_numa_numa_available+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lnuma $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char numa_available (); ++int ++main () ++{ ++return numa_available (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_numa_numa_available=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_numa_numa_available=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5 ++echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6; } ++if test $ac_cv_lib_numa_numa_available = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS" ++ maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS" ++ unset ac_cv_lib_numa_numa_available ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5 ++echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6; } ++if test "${ac_cv_lib_numa_numa_available+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lnuma $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char numa_available (); ++int ++main () ++{ ++return numa_available (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_numa_numa_available=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_numa_numa_available=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5 ++echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6; } ++if test $ac_cv_lib_numa_numa_available = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS" ++ maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS" ++ unset ac_cv_lib_numa_numa_available ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ maffinity_libnuma_LIBS="-lnuma " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ maffinity_libnuma_happy="yes" ++else ++ maffinity_libnuma_CPPFLAGS="$ompi_check_package_maffinity_libnuma_orig_CPPFLAGS" ++ maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS" ++ maffinity_libnuma_LIBS="$ompi_check_package_maffinity_libnuma_orig_LIBS" ++ maffinity_libnuma_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_maffinity_libnuma_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS" ++ LIBS="$ompi_check_package_maffinity_libnuma_save_LIBS" ++ ++fi ++ ++ ++ if test "$maffinity_libnuma_happy" = "yes"; then ++ maffinity_libnuma_WRAPPER_EXTRA_LDFLAGS="$maffinity_libnuma_LDFLAGS" ++ maffinity_libnuma_WRAPPER_EXTRA_LIBS="$maffinity_libnuma_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # sanity check ++ if test "$maffinity_libnuma_happy" = "no"; then ++ if test "$with_libnuma" != "no" -a ! -z "$with_libnuma"; then ++ { { echo "$as_me:$LINENO: error: maffinity:libnuma requested but not found. Aborting" >&5 ++echo "$as_me: error: maffinity:libnuma requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ # Check for MPOL_MF_MOVE ++ if test "$maffinity_libnuma_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking whether MPOL_MF_MOVE is declared" >&5 ++echo $ECHO_N "checking whether MPOL_MF_MOVE is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl_MPOL_MF_MOVE+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++int ++main () ++{ ++#ifndef MPOL_MF_MOVE ++ (void) MPOL_MF_MOVE; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl_MPOL_MF_MOVE=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl_MPOL_MF_MOVE=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_MPOL_MF_MOVE" >&5 ++echo "${ECHO_T}$ac_cv_have_decl_MPOL_MF_MOVE" >&6; } ++if test $ac_cv_have_decl_MPOL_MF_MOVE = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_MPOL_MF_MOVE 1 ++_ACEOF ++ ++ ++else ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_MPOL_MF_MOVE 0 ++_ACEOF ++ ++ ++fi ++ ++ ++fi ++ ++ ++ # substitute in the things needed to build libnuma ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=maffinity ++ component=libnuma ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_maffinity" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_maffinity" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component maffinity:libnuma can compile" >&5 ++echo $ECHO_N "checking if MCA component maffinity:libnuma can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_maffinity" = "libnuma" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"libnuma\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"libnuma\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_maffinity" ; then ++ if test "$DIRECT_maffinity" = "libnuma" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"libnuma\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"libnuma\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components libnuma" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_maffinity_libnuma_DSO=1 ++else ++ BUILD_maffinity_libnuma_DSO=0 ++fi ++ ++ if test "$BUILD_maffinity_libnuma_DSO" = "1"; then ++ OMPI_BUILD_maffinity_libnuma_DSO_TRUE= ++ OMPI_BUILD_maffinity_libnuma_DSO_FALSE='#' ++else ++ OMPI_BUILD_maffinity_libnuma_DSO_TRUE='#' ++ OMPI_BUILD_maffinity_libnuma_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/opal/mca/maffinity/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component maffinity:$component (need to configure)" ++ ++ ++ ++ ++ project=opal ++ framework=maffinity ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_maffinity" ; then ++ if test "$DIRECT_maffinity" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=opal ++ framework=maffinity ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_maffinity" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# opal/mca/maffinity/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="opal/mca/maffinity/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=opal ++ framework=maffinity ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_maffinity" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_maffinity" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component maffinity:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component maffinity:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_maffinity" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_maffinity" ; then ++ if test "$DIRECT_maffinity" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_maffinity_ALL_COMPONENTS="$all_components" ++ MCA_maffinity_STATIC_COMPONENTS="$static_components" ++ MCA_maffinity_DSO_COMPONENTS="$dso_components" ++ MCA_maffinity_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_maffinity_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_maffinity_ALL_SUBDIRS="$MCA_maffinity_ALL_SUBDIRS mca/maffinity/$item" ++ done ++ ++ ++ ++ MCA_maffinity_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_maffinity_STATIC_SUBDIRS="$MCA_maffinity_STATIC_SUBDIRS mca/maffinity/$item" ++ done ++ ++ ++ ++ MCA_maffinity_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_maffinity_DSO_SUBDIRS="$MCA_maffinity_DSO_SUBDIRS mca/maffinity/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "maffinity" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "memchecker" = "common" ; then ++ MCA_opal_FRAMEWORKS="memchecker $MCA_opal_FRAMEWORKS" ++ MCA_opal_FRAMEWORKS_SUBDIRS="mca/memchecker $MCA_opal_FRAMEWORKS_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_memchecker_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_memchecker_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_memchecker_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS memchecker" ++ MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/memchecker" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_memchecker_ALL_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_memchecker_DSO_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_memchecker_STATIC_SUBDIRS)" ++ fi ++ if test "memchecker" != "common" ; then ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/memchecker/libmca_memchecker.la" ++ fi ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_memchecker_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Pre-configuring the framework memchecker" ++ ++ { echo "$as_me:$LINENO: checking if --enable-memchecker was specified" >&5 ++echo $ECHO_N "checking if --enable-memchecker was specified... $ECHO_C" >&6; } ++ # Check whether --enable-memchecker was given. ++if test "${enable_memchecker+set}" = set; then ++ enableval=$enable_memchecker; ++fi ++ ++ if test "$enable_memchecker" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_MEMCHECKER=1 ++ else ++ { echo "$as_me:$LINENO: result: no (adding \"memchecker\" to --enable-mca-no-build list)" >&5 ++echo "${ECHO_T}no (adding \"memchecker\" to --enable-mca-no-build list)" >&6; } ++ WANT_MEMCHECKER=0 ++ ++ # Setting this environment variable causes ++ # MCA_COMONENT_BUILD_CHECK (in ompi_mca.m4, invoked by ++ # MCA_CONFIGURE_FRAMEWORK, below) to rule that the component ++ # should not be built. It is effectively the same as adding ++ # "memchecker" to the --enable-mca-no-build list. ++ DISABLE_memchecker=1 ++ fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_WANT_MEMCHECKER $WANT_MEMCHECKER ++_ACEOF ++ ++ if test "$WANT_MEMCHECKER" = "1"; then ++ OMPI_WANT_MEMCHECKER_TRUE= ++ OMPI_WANT_MEMCHECKER_FALSE='#' ++else ++ OMPI_WANT_MEMCHECKER_TRUE='#' ++ OMPI_WANT_MEMCHECKER_FALSE= ++fi ++ ++ ++ # first, compile all the components ++ ++ ompi_show_subsubtitle "Configuring MCA framework memchecker" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "memchecker" = "common" ; then ++ outdir=opal/mca/common ++ else ++ outdir=opal/mca/memchecker/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework memchecker" >&5 ++echo $ECHO_N "checking for no configure components in framework memchecker... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework memchecker" >&5 ++echo $ECHO_N "checking for m4 configure components in framework memchecker... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: valgrind" >&5 ++echo "${ECHO_T}valgrind" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component memchecker:valgrind (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=memchecker ++ component=valgrind ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_memchecker" ; then ++ if test "$DIRECT_memchecker" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component memchecker:valgrind compile mode" >&5 ++echo $ECHO_N "checking for MCA component memchecker:valgrind compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in opal_memchecker_valgrind_save_CPPFLAGS opal_memchecker_valgrind_happy opal_memchecker_valgrind_CPPFLAGS; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"opal_memchecker_valgrind_save_CPPFLAGS opal_memchecker_valgrind_happy opal_memchecker_valgrind_CPPFLAGS\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++# Check whether --with-valgrind was given. ++if test "${with_valgrind+set}" = set; then ++ withval=$with_valgrind; ++fi ++ ++ ++ memchecker_valgrind_CPPFLAGS= ++ opal_memchecker_valgrind_CPPFLAGS= ++ opal_memchecker_valgrind_save_CPPFLAGS="$CPPFLAGS" ++ opal_memchecker_valgrind_happy=no ++ if test "$with_valgrind" != "no"; then ++ if test ! -z "$with_valgrind" -a "$with_valgrind" != "yes"; then ++ CPPFLAGS="$CPPFLAGS -I$with_valgrind/include" ++ opal_memchecker_valgrind_CPPFLAGS="-I$with_valgrind/include" ++fi ++ ++ ++for ac_header in valgrind/valgrind.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ { echo "$as_me:$LINENO: checking for VALGRIND_CHECK_MEM_IS_ADDRESSABLE" >&5 ++echo $ECHO_N "checking for VALGRIND_CHECK_MEM_IS_ADDRESSABLE... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include "valgrind/memcheck.h" ++ ++int ++main () ++{ ++char buffer = 0xff; ++ VALGRIND_CHECK_MEM_IS_ADDRESSABLE(&buffer, sizeof(buffer)); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ opal_memchecker_valgrind_happy=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { { echo "$as_me:$LINENO: error: Need Valgrind version 3.2.0 or later. Can not build component." >&5 ++echo "$as_me: error: Need Valgrind version 3.2.0 or later. Can not build component." >&2;} ++ { (exit 1); exit 1; }; } ++ { echo "$as_me:$LINENO: result: cross-compiling; assume yes...?" >&5 ++echo "${ECHO_T}cross-compiling; assume yes...?" >&6; } ++ { echo "$as_me:$LINENO: WARNING: OMPI will fail to compile if you do not have Valgrind version 3.2.0 or later" >&5 ++echo "$as_me: WARNING: OMPI will fail to compile if you do not have Valgrind version 3.2.0 or later" >&2;} ++ opal_memchecker_valgrind_happy=yes ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext, ++ ++else ++ { echo "$as_me:$LINENO: WARNING: valgrind.h not found" >&5 ++echo "$as_me: WARNING: valgrind.h not found" >&2;} ++ { echo "$as_me:$LINENO: WARNING: Cannot compile this component" >&5 ++echo "$as_me: WARNING: Cannot compile this component" >&2;} ++fi ++ ++done ++ ++fi ++ ++ CPPFLAGS="$opal_memchecker_valgrind_save_CPPFLAGS" ++ ++ if test "$opal_memchecker_valgrind_happy" = "yes"; then ++ memchecker_valgrind_CPPFLAGS=$opal_memchecker_valgrind_CPPFLAGS ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=memchecker ++ component=valgrind ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_memchecker" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_memchecker" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component memchecker:valgrind can compile" >&5 ++echo $ECHO_N "checking if MCA component memchecker:valgrind can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_memchecker" = "valgrind" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"valgrind\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"valgrind\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_memchecker" ; then ++ if test "$DIRECT_memchecker" = "valgrind" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"valgrind\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"valgrind\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components valgrind" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_memchecker_valgrind_DSO=1 ++else ++ BUILD_memchecker_valgrind_DSO=0 ++fi ++ ++ if test "$BUILD_memchecker_valgrind_DSO" = "1"; then ++ OMPI_BUILD_memchecker_valgrind_DSO_TRUE= ++ OMPI_BUILD_memchecker_valgrind_DSO_FALSE='#' ++else ++ OMPI_BUILD_memchecker_valgrind_DSO_TRUE='#' ++ OMPI_BUILD_memchecker_valgrind_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ ++ ++ MCA_memchecker_ALL_COMPONENTS="$all_components" ++ MCA_memchecker_STATIC_COMPONENTS="$static_components" ++ MCA_memchecker_DSO_COMPONENTS="$dso_components" ++ MCA_memchecker_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_memchecker_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_memchecker_ALL_SUBDIRS="$MCA_memchecker_ALL_SUBDIRS mca/memchecker/$item" ++ done ++ ++ ++ ++ MCA_memchecker_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_memchecker_STATIC_SUBDIRS="$MCA_memchecker_STATIC_SUBDIRS mca/memchecker/$item" ++ done ++ ++ ++ ++ MCA_memchecker_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_memchecker_DSO_SUBDIRS="$MCA_memchecker_DSO_SUBDIRS mca/memchecker/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "memchecker" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_MEMCHECKER_HAVE_COMPONENT $memchecker_base_found ++_ACEOF ++ ++# common has to go up front ++ if test "memcpy" = "common" ; then ++ MCA_opal_FRAMEWORKS="memcpy $MCA_opal_FRAMEWORKS" ++ MCA_opal_FRAMEWORKS_SUBDIRS="mca/memcpy $MCA_opal_FRAMEWORKS_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_memcpy_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_memcpy_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_memcpy_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS memcpy" ++ MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/memcpy" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_memcpy_ALL_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_memcpy_DSO_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_memcpy_STATIC_SUBDIRS)" ++ fi ++ if test "memcpy" != "common" ; then ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/memcpy/libmca_memcpy.la" ++ fi ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_memcpy_STATIC_LTLIBS)" ++ ++ memcpy_base_include= ++ ++ # first, compile all the components ++ ++ ompi_show_subsubtitle "Configuring MCA framework memcpy" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "memcpy" = "common" ; then ++ outdir=opal/mca/common ++ else ++ outdir=opal/mca/memcpy/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework memcpy" >&5 ++echo $ECHO_N "checking for no configure components in framework memcpy... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework memcpy" >&5 ++echo $ECHO_N "checking for m4 configure components in framework memcpy... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ ++ ++ MCA_memcpy_ALL_COMPONENTS="$all_components" ++ MCA_memcpy_STATIC_COMPONENTS="$static_components" ++ MCA_memcpy_DSO_COMPONENTS="$dso_components" ++ MCA_memcpy_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_memcpy_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_memcpy_ALL_SUBDIRS="$MCA_memcpy_ALL_SUBDIRS mca/memcpy/$item" ++ done ++ ++ ++ ++ MCA_memcpy_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_memcpy_STATIC_SUBDIRS="$MCA_memcpy_STATIC_SUBDIRS mca/memcpy/$item" ++ done ++ ++ ++ ++ MCA_memcpy_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_memcpy_DSO_SUBDIRS="$MCA_memcpy_DSO_SUBDIRS mca/memcpy/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "memcpy" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++ ++ ++ # someone should have set this... ++ if test "$memcpy_base_include" = "" ; then ++ memcpy_base_include="base/memcpy_base_default.h" ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MCA_memcpy_IMPLEMENTATION_HEADER "opal/mca/memcpy/$memcpy_base_include" ++_ACEOF ++ ++# common has to go up front ++ if test "memory" = "common" ; then ++ MCA_opal_FRAMEWORKS="memory $MCA_opal_FRAMEWORKS" ++ MCA_opal_FRAMEWORKS_SUBDIRS="mca/memory $MCA_opal_FRAMEWORKS_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_memory_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_memory_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_memory_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS memory" ++ MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/memory" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_memory_ALL_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_memory_DSO_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_memory_STATIC_SUBDIRS)" ++ fi ++ if test "memory" != "common" ; then ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/memory/libmca_memory.la" ++ fi ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_memory_STATIC_LTLIBS)" ++ ++ ++# Check whether --with-memory-manager was given. ++if test "${with_memory_manager+set}" = set; then ++ withval=$with_memory_manager; ++fi ++ ++ ++ memory_base_found=0 ++ ++ # first, compile all the components ++ ++ ompi_show_subsubtitle "Configuring MCA framework memory" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "memory" = "common" ; then ++ outdir=opal/mca/common ++ else ++ outdir=opal/mca/memory/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework memory" >&5 ++echo $ECHO_N "checking for no configure components in framework memory... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework memory" >&5 ++echo $ECHO_N "checking for m4 configure components in framework memory... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: ptmalloc2, malloc_solaris, mallopt" >&5 ++echo "${ECHO_T}ptmalloc2, malloc_solaris, mallopt" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component memory:ptmalloc2 (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=memory ++ component=ptmalloc2 ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_memory" ; then ++ if test "$DIRECT_memory" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component memory:ptmalloc2 compile mode" >&5 ++echo $ECHO_N "checking for MCA component memory:ptmalloc2 compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ # Check whether --enable-ptmalloc2-internal was given. ++if test "${enable_ptmalloc2_internal+set}" = set; then ++ enableval=$enable_ptmalloc2_internal; ++fi ++ ++ ++ { echo "$as_me:$LINENO: checking if ptmalloc2 should be part of libopen-pal" >&5 ++echo $ECHO_N "checking if ptmalloc2 should be part of libopen-pal... $ECHO_C" >&6; } ++ if test "$enable_ptmalloc2_internal" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ ++ if test "$with_memory_manager" = "ptmalloc2"; then ++ if test "`echo $host | grep apple-darwin`" != "" ; then ++ { echo "$as_me:$LINENO: WARNING: *** Using ptmalloc with OS X will result in failure." >&5 ++echo "$as_me: WARNING: *** Using ptmalloc with OS X will result in failure." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Aborting to save you the effort" >&5 ++echo "$as_me: error: *** Aborting to save you the effort" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ memory_ptmalloc2_happy="yes" ++ memory_ptmalloc2_should_use=1 ++else ++ memory_ptmalloc2_should_use=0 ++ if test "$with_memory_manager" = ""; then ++ memory_ptmalloc2_happy="yes" ++else ++ memory_ptmalloc2_happy="no" ++fi ++ ++fi ++ ++ ++ ++ # Per ticket #227, Intel 9.0 v20051201 on ia64 with optimization ++ # of -O2 or higher will bork ptmalloc2 in strange in mysterious ++ # ways. Doh! So if the compiler vendor is intel and we're on an ++ # ia64 box, run "icc --version" and snarf the version string. If ++ # it's 9.0 and the version is <= 20051201, then disable ptmalloc2. ++ # Executive decision: ignore optimization levels (even though -O1 ++ # and -O0 seem to work). The upgrade to 9.1 is free, so that's a ++ # better path than trying to make a much more complicated test ++ # here. ++ ++ case $host in ++ ia64-*) ++ if test "$ompi_c_vendor" = "intel"; then ++ # check for v9.0 <= 20051201 ++ icc_major_ver="`$CC --version | head -n 1 | awk '{ print $3 }'`" ++ icc_minor_ver="`$CC --version | head -n 1 | awk '{ print $4 }'`" ++ if test "$icc_major_ver" = "9.0" -a "`expr $icc_minor_ver \<= 20051201`" = "1"; then ++ memory_ptmalloc2_happy="no" ++ { echo "$as_me:$LINENO: WARNING: *** Detected Intel C compiler v9.0 <= 20051201 on ia64" >&5 ++echo "$as_me: WARNING: *** Detected Intel C compiler v9.0 <= 20051201 on ia64" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** This compiler/platform combination has known problems with ptmalloc2" >&5 ++echo "$as_me: WARNING: *** This compiler/platform combination has known problems with ptmalloc2" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Automatically disabling ptmalloc2" >&5 ++echo "$as_me: WARNING: *** Automatically disabling ptmalloc2" >&2;} ++fi ++ ++ unset icc_major_ver icc_minor_ver ++fi ++ ++ ;; ++ esac ++ ++ if test "$memory_ptmalloc2_happy" = "yes"; then ++ # check for malloc.h ++ if test "${ac_cv_header_malloc_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for malloc.h" >&5 ++echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_malloc_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 ++echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking malloc.h usability" >&5 ++echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking malloc.h presence" >&5 ++echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for malloc.h" >&5 ++echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_malloc_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_malloc_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 ++echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } ++ ++fi ++if test $ac_cv_header_malloc_h = yes; then ++ memory_ptmalloc2_happy="yes" ++else ++ memory_ptmalloc2_happy="no" ++fi ++ ++ ++fi ++ ++ ++ if test "$memory_ptmalloc2_happy" = "yes"; then ++ # check for init hook symbol ++ { echo "$as_me:$LINENO: checking whether __malloc_initialize_hook is declared" >&5 ++echo $ECHO_N "checking whether __malloc_initialize_hook is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl___malloc_initialize_hook+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ #include ++ ++int ++main () ++{ ++#ifndef __malloc_initialize_hook ++ (void) __malloc_initialize_hook; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl___malloc_initialize_hook=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl___malloc_initialize_hook=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___malloc_initialize_hook" >&5 ++echo "${ECHO_T}$ac_cv_have_decl___malloc_initialize_hook" >&6; } ++if test $ac_cv_have_decl___malloc_initialize_hook = yes; then ++ memory_ptmalloc2_happy="yes" ++else ++ memory_ptmalloc2_happy="no" ++fi ++ ++fi ++ ++ ++ # ++ # See if we have sbrk prototyped ++ # ++ if test "$memory_ptmalloc2_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking whether sbrk is declared" >&5 ++echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl_sbrk+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++int ++main () ++{ ++#ifndef sbrk ++ (void) sbrk; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl_sbrk=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl_sbrk=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5 ++echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6; } ++if test $ac_cv_have_decl_sbrk = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_SBRK 1 ++_ACEOF ++ ++ ++else ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_SBRK 0 ++_ACEOF ++ ++ ++fi ++ ++ ++fi ++ ++ ++ # ++ # Figure out how we're going to call mmap/munmap for real ++ # ++ if test "$memory_ptmalloc2_happy" = "yes"; then ++ memory_ptmalloc2_mmap=0 ++ memory_ptmalloc2_munmap=1 ++ ++ # it's nearly impossible to call mmap from syscall(), so ++ # only go this route if we can't get at munmap any other ++ # way. ++ if test "${ac_cv_header_syscall_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for syscall.h" >&5 ++echo $ECHO_N "checking for syscall.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_syscall_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_syscall_h" >&5 ++echo "${ECHO_T}$ac_cv_header_syscall_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking syscall.h usability" >&5 ++echo $ECHO_N "checking syscall.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking syscall.h presence" >&5 ++echo $ECHO_N "checking syscall.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: syscall.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: syscall.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: syscall.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: syscall.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: syscall.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: syscall.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: syscall.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: syscall.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: syscall.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: syscall.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: syscall.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: syscall.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: syscall.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: syscall.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: syscall.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: syscall.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for syscall.h" >&5 ++echo $ECHO_N "checking for syscall.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_syscall_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_syscall_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_syscall_h" >&5 ++echo "${ECHO_T}$ac_cv_header_syscall_h" >&6; } ++ ++fi ++if test $ac_cv_header_syscall_h = yes; then ++ ++for ac_func in syscall ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++else ++ memory_ptmalloc2_munmap=0 ++fi ++done ++ ++fi ++ ++ ++ ++ # Always look for __munmap and __mmap ++ ++for ac_func in __munmap ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ memory_ptmalloc2_mmap=1 ++fi ++done ++ ++ ++for ac_func in __mmap ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ ++ # only allow dlsym (and therefore add -ldl) if we ++ # really need to ++ if test "$memory_ptmalloc2_mmap" = "0"; then ++ memory_ptmalloc2_LIBS_SAVE="$LIBS" ++ { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 ++echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dl_dlsym+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldl $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dlsym (); ++int ++main () ++{ ++return dlsym (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dl_dlsym=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dl_dlsym=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 ++echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; } ++if test $ac_cv_lib_dl_dlsym = yes; then ++ LIBS="$LIBS -ldl" ++ memory_ptmalloc2_LIBS="-ldl" ++ memory_ptmalloc2_mmap=1 ++fi ++ ++ ++for ac_func in dlsym ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ LIBS="$memory_ptmalloc2_LIBS_SAVE" ++fi ++ ++ ++ if test "$memory_ptmalloc2_mmap" = "0" -a "$memory_ptmalloc2_munmap" = "0"; then ++ memory_ptmalloc2_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$memory_ptmalloc2_happy" = "yes"; then ++ memory_ptmalloc2_WRAPPER_EXTRA_LIBS="$memory_ptmalloc2_LIBS" ++fi ++ ++ ++ if test "$memory_ptmalloc2_happy" = "no" -a \ ++ "$memory_malloc_hoooks_should_use" = "1"; then ++ { { echo "$as_me:$LINENO: error: ptmalloc2 memory management requested but not available. Aborting." >&5 ++echo "$as_me: error: ptmalloc2 memory management requested but not available. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ ++ ++ if test "$memory_ptmalloc2_happy" = "yes"; then ++ memory_base_found=1 ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=memory ++ component=ptmalloc2 ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_memory" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_memory" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component memory:ptmalloc2 can compile" >&5 ++echo $ECHO_N "checking if MCA component memory:ptmalloc2 can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_memory" = "ptmalloc2" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"ptmalloc2\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"ptmalloc2\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_memory" ; then ++ if test "$DIRECT_memory" = "ptmalloc2" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"ptmalloc2\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"ptmalloc2\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components ptmalloc2" ++fi ++ ++ ++ ++ if test "$enable_ptmalloc2_internal" != "yes"; then ++ OMPI_WANT_EXTERNAL_PTMALLOC2_TRUE= ++ OMPI_WANT_EXTERNAL_PTMALLOC2_FALSE='#' ++else ++ OMPI_WANT_EXTERNAL_PTMALLOC2_TRUE='#' ++ OMPI_WANT_EXTERNAL_PTMALLOC2_FALSE= ++fi ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_memory_ptmalloc2_DSO=1 ++else ++ BUILD_memory_ptmalloc2_DSO=0 ++fi ++ ++ if test "$BUILD_memory_ptmalloc2_DSO" = "1"; then ++ OMPI_BUILD_memory_ptmalloc2_DSO_TRUE= ++ OMPI_BUILD_memory_ptmalloc2_DSO_FALSE='#' ++else ++ OMPI_BUILD_memory_ptmalloc2_DSO_TRUE='#' ++ OMPI_BUILD_memory_ptmalloc2_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component memory:malloc_solaris (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=memory ++ component=malloc_solaris ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_memory" ; then ++ if test "$DIRECT_memory" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component memory:malloc_solaris compile mode" >&5 ++echo $ECHO_N "checking for MCA component memory:malloc_solaris compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in memory_malloc_solaris_happy; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"memory_malloc_solaris_happy\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ { echo "$as_me:$LINENO: checking for Solaris" >&5 ++echo $ECHO_N "checking for Solaris... $ECHO_C" >&6; } ++ ++ case "$host" in ++ *solaris*) ++ ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ if test "$with_memory_manager" = "malloc_solaris"; then ++ memory_malloc_solaris_happy="yes" ++ memory_malloc_solaris_should_use=1 ++else ++ memory_malloc_solaris_should_use=0 ++ if test "$with_memory_manager" = ""; then ++ memory_malloc_solaris_happy="yes" ++else ++ memory_malloc_solaris_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$memory_malloc_solaris_happy" = "yes"; then ++ if test "${ac_cv_header_malloc_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for malloc.h" >&5 ++echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_malloc_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 ++echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking malloc.h usability" >&5 ++echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking malloc.h presence" >&5 ++echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for malloc.h" >&5 ++echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_malloc_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_malloc_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 ++echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } ++ ++fi ++if test $ac_cv_header_malloc_h = yes; then ++ : ++else ++ memory_malloc_solaris_happy="no" ++fi ++ ++ ++fi ++ ++ ++ if test "$memory_malloc_solaris_happy" = "yes"; then ++ memory_malloc_solaris_munmap=0 ++ ++ if test "${ac_cv_header_sys_syscall_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for sys/syscall.h" >&5 ++echo $ECHO_N "checking for sys/syscall.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_sys_syscall_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_syscall_h" >&5 ++echo "${ECHO_T}$ac_cv_header_sys_syscall_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking sys/syscall.h usability" >&5 ++echo $ECHO_N "checking sys/syscall.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking sys/syscall.h presence" >&5 ++echo $ECHO_N "checking sys/syscall.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: sys/syscall.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: sys/syscall.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: sys/syscall.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: sys/syscall.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: sys/syscall.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: sys/syscall.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: sys/syscall.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: sys/syscall.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for sys/syscall.h" >&5 ++echo $ECHO_N "checking for sys/syscall.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_sys_syscall_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_sys_syscall_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_syscall_h" >&5 ++echo "${ECHO_T}$ac_cv_header_sys_syscall_h" >&6; } ++ ++fi ++if test $ac_cv_header_sys_syscall_h = yes; then ++ ++for ac_func in syscall ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ memory_malloc_solaris_munmap=1 ++fi ++done ++ ++fi ++ ++ ++ ++ ++for ac_func in __munmap ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ memory_malloc_solaris_munmap=1 ++fi ++done ++ ++ ++ # only allow dlsym (and therefore add -ldl) if we ++ # really need to ++ if test "$memory_malloc_solaris_munmap" = "0"; then ++ memory_malloc_solaris_LIBS_SAVE="$LIBS" ++ { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 ++echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dl_dlsym+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldl $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dlsym (); ++int ++main () ++{ ++return dlsym (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dl_dlsym=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dl_dlsym=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 ++echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; } ++if test $ac_cv_lib_dl_dlsym = yes; then ++ memory_malloc_solaris_LIBS="-ldl" ++ memory_malloc_solaris_munmap=1 ++fi ++ ++ ++for ac_func in dlsym ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ LIBS="$memory_malloc_solaris_LIBS_SAVE" ++fi ++ ++ ++ if test "$memory_malloc_solaris_munmap" = "0"; then ++ memory_malloc_solaris_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$memory_malloc_solaris_happy" = "yes"; then ++ memory_malloc_solaris_WRAPPER_EXTRA_LIBS="$memory_malloc_solaris_LIBS" ++fi ++ ++ ++ if test "$memory_malloc_solaris_happy" = "no" -a \ ++ "$memory_malloc_solaris_should_use" = "1"; then ++ { { echo "$as_me:$LINENO: error: malloc_solaris memory management requested but not available. Aborting." >&5 ++echo "$as_me: error: malloc_solaris memory management requested but not available. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ ++ ++ ;; ++ *) ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ if test "$with_memory_manager" = "malloc_solaris"; then ++ memory_malloc_solaris_happy="no" ++ memory_malloc_solaris_should_use=0 ++fi ++ ++ ;; ++ esac ++ ++ if test "$memory_malloc_solaris_happy" = "yes"; then ++ memory_base_found=1 ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=memory ++ component=malloc_solaris ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_memory" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_memory" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component memory:malloc_solaris can compile" >&5 ++echo $ECHO_N "checking if MCA component memory:malloc_solaris can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_memory" = "malloc_solaris" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"malloc_solaris\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"malloc_solaris\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_memory" ; then ++ if test "$DIRECT_memory" = "malloc_solaris" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"malloc_solaris\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"malloc_solaris\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components malloc_solaris" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_memory_malloc_solaris_DSO=1 ++else ++ BUILD_memory_malloc_solaris_DSO=0 ++fi ++ ++ if test "$BUILD_memory_malloc_solaris_DSO" = "1"; then ++ OMPI_BUILD_memory_malloc_solaris_DSO_TRUE= ++ OMPI_BUILD_memory_malloc_solaris_DSO_FALSE='#' ++else ++ OMPI_BUILD_memory_malloc_solaris_DSO_TRUE='#' ++ OMPI_BUILD_memory_malloc_solaris_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component memory:mallopt (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=memory ++ component=mallopt ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_memory" ; then ++ if test "$DIRECT_memory" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component memory:mallopt compile mode" >&5 ++echo $ECHO_N "checking for MCA component memory:mallopt compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ if test "$with_memory_manager" = "mallopt"; then ++ memory_mallopt_happy="yes" ++ memory_mallopt_should_use=1 ++else ++ memory_mallopt_should_use=0 ++ if test "$with_memory_manager" = ""; then ++ memory_mallopt_happy="yes" ++else ++ memory_mallopt_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$memory_mallopt_happy" = "yes"; then ++ if test "${ac_cv_header_malloc_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for malloc.h" >&5 ++echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_malloc_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 ++echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking malloc.h usability" >&5 ++echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking malloc.h presence" >&5 ++echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for malloc.h" >&5 ++echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_malloc_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_malloc_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 ++echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } ++ ++fi ++if test $ac_cv_header_malloc_h = yes; then ++ : ++else ++ memory_mallopt_happy="no" ++fi ++ ++ ++fi ++ ++ ++ if test "$memory_mallopt_happy" = "yes"; then ++ ++for ac_func in mallopt ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++else ++ memory_mallopt_happy="no" ++fi ++done ++ ++fi ++ ++ ++ if test "$memory_mallopt_happy" = "yes"; then ++ memory_mallopt_munmap=0 ++ ++ if test "${ac_cv_header_syscall_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for syscall.h" >&5 ++echo $ECHO_N "checking for syscall.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_syscall_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_syscall_h" >&5 ++echo "${ECHO_T}$ac_cv_header_syscall_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking syscall.h usability" >&5 ++echo $ECHO_N "checking syscall.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking syscall.h presence" >&5 ++echo $ECHO_N "checking syscall.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: syscall.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: syscall.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: syscall.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: syscall.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: syscall.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: syscall.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: syscall.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: syscall.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: syscall.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: syscall.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: syscall.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: syscall.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: syscall.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: syscall.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: syscall.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: syscall.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for syscall.h" >&5 ++echo $ECHO_N "checking for syscall.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_syscall_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_syscall_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_syscall_h" >&5 ++echo "${ECHO_T}$ac_cv_header_syscall_h" >&6; } ++ ++fi ++if test $ac_cv_header_syscall_h = yes; then ++ ++for ac_func in syscall ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ memory_mallopt_munmap=1 ++fi ++done ++ ++fi ++ ++ ++ ++ ++for ac_func in __munmap ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ memory_mallopt_munmap=1 ++fi ++done ++ ++ ++ # only allow dlsym (and therefore add -ldl) if we ++ # really need to ++ if test "$memory_mallopt_munmap" = "0"; then ++ memory_mallopt_LIBS_SAVE="$LIBS" ++ { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 ++echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dl_dlsym+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldl $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dlsym (); ++int ++main () ++{ ++return dlsym (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dl_dlsym=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dl_dlsym=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 ++echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; } ++if test $ac_cv_lib_dl_dlsym = yes; then ++ memory_mallopt_LIBS="-ldl" ++ memory_mallopt_munmap=1 ++fi ++ ++ ++for ac_func in dlsym ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ LIBS="$memory_mallopt_LIBS_SAVE" ++fi ++ ++ ++ if test "$memory_mallopt_munmap" = "0"; then ++ memory_mallopt_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$memory_mallopt_happy" = "yes"; then ++ memory_mallopt_WRAPPER_EXTRA_LIBS="$memory_mallopt_LIBS" ++fi ++ ++ ++ if test "$memory_mallopt_happy" = "no" -a \ ++ "$memory_malloc_hoooks_should_use" = "1"; then ++ { { echo "$as_me:$LINENO: error: mallopt memory management requested but not available. Aborting." >&5 ++echo "$as_me: error: mallopt memory management requested but not available. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ ++ ++ if test "$memory_mallopt_happy" = "yes"; then ++ memory_base_found=1 ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=memory ++ component=mallopt ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_memory" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_memory" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component memory:mallopt can compile" >&5 ++echo $ECHO_N "checking if MCA component memory:mallopt can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_memory" = "mallopt" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"mallopt\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"mallopt\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_memory" ; then ++ if test "$DIRECT_memory" = "mallopt" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"mallopt\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"mallopt\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components mallopt" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_memory_mallopt_DSO=1 ++else ++ BUILD_memory_mallopt_DSO=0 ++fi ++ ++ if test "$BUILD_memory_mallopt_DSO" = "1"; then ++ OMPI_BUILD_memory_mallopt_DSO_TRUE= ++ OMPI_BUILD_memory_mallopt_DSO_FALSE='#' ++else ++ OMPI_BUILD_memory_mallopt_DSO_TRUE='#' ++ OMPI_BUILD_memory_mallopt_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ ++ ++ MCA_memory_ALL_COMPONENTS="$all_components" ++ MCA_memory_STATIC_COMPONENTS="$static_components" ++ MCA_memory_DSO_COMPONENTS="$dso_components" ++ MCA_memory_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_memory_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_memory_ALL_SUBDIRS="$MCA_memory_ALL_SUBDIRS mca/memory/$item" ++ done ++ ++ ++ ++ MCA_memory_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_memory_STATIC_SUBDIRS="$MCA_memory_STATIC_SUBDIRS mca/memory/$item" ++ done ++ ++ ++ ++ MCA_memory_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_memory_DSO_SUBDIRS="$MCA_memory_DSO_SUBDIRS mca/memory/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "memory" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_MEMORY_HAVE_COMPONENT $memory_base_found ++_ACEOF ++ ++# common has to go up front ++ if test "paffinity" = "common" ; then ++ MCA_opal_FRAMEWORKS="paffinity $MCA_opal_FRAMEWORKS" ++ MCA_opal_FRAMEWORKS_SUBDIRS="mca/paffinity $MCA_opal_FRAMEWORKS_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_paffinity_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_paffinity_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_paffinity_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS paffinity" ++ MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/paffinity" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_paffinity_ALL_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_paffinity_DSO_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_paffinity_STATIC_SUBDIRS)" ++ fi ++ if test "paffinity" != "common" ; then ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/paffinity/libmca_paffinity.la" ++ fi ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_paffinity_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework paffinity" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "paffinity" = "common" ; then ++ outdir=opal/mca/common ++ else ++ outdir=opal/mca/paffinity/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework paffinity" >&5 ++echo $ECHO_N "checking for no configure components in framework paffinity... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework paffinity" >&5 ++echo $ECHO_N "checking for m4 configure components in framework paffinity... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: linux, solaris, windows, darwin, posix" >&5 ++echo "${ECHO_T}linux, solaris, windows, darwin, posix" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ # get the component's priority... ++ infile="$srcdir/opal/mca/paffinity/linux/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component paffinity:linux (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=paffinity ++ component=linux ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_paffinity" ; then ++ if test "$DIRECT_paffinity" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=opal ++ framework=paffinity ++ component=linux ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_paffinity" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in PLPA_VERSION; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"PLPA_VERSION\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ # Setup PLPA ++ ++ ++ plpa_symbol_prefix_value=opal_paffinity_linux_plpa_ ++ ++ ++ ++ ++ ++ plpa_mode=included ++ ++ ++ plpa_executables=no ++ ++ ++ ++ # If we used the 2 param variant of PLPA_INIT, then assume the ++ # config prefix is ".". Otherwise, it's opal/mca/paffinity/linux/plpa. ++ ++ ++ ++ ++ ++ ++ ++ ++ # Check for syscall() ++ { echo "$as_me:$LINENO: checking for syscall" >&5 ++echo $ECHO_N "checking for syscall... $ECHO_C" >&6; } ++if test "${ac_cv_func_syscall+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define syscall to an innocuous variant, in case declares syscall. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define syscall innocuous_syscall ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char syscall (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef syscall ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char syscall (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_syscall || defined __stub___syscall ++choke me ++#endif ++ ++int ++main () ++{ ++return syscall (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_syscall=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_syscall=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_syscall" >&5 ++echo "${ECHO_T}$ac_cv_func_syscall" >&6; } ++if test $ac_cv_func_syscall = yes; then ++ plpa_config_happy=1 ++else ++ plpa_config_happy=0 ++fi ++ ++ ++ # Look for syscall.h ++ if test "$plpa_config_happy" = 1; then ++ if test "${ac_cv_header_sys_syscall_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for sys/syscall.h" >&5 ++echo $ECHO_N "checking for sys/syscall.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_sys_syscall_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_syscall_h" >&5 ++echo "${ECHO_T}$ac_cv_header_sys_syscall_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking sys/syscall.h usability" >&5 ++echo $ECHO_N "checking sys/syscall.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking sys/syscall.h presence" >&5 ++echo $ECHO_N "checking sys/syscall.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: sys/syscall.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: sys/syscall.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: sys/syscall.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: sys/syscall.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: sys/syscall.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: sys/syscall.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: sys/syscall.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: sys/syscall.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for sys/syscall.h" >&5 ++echo $ECHO_N "checking for sys/syscall.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_sys_syscall_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_sys_syscall_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_syscall_h" >&5 ++echo "${ECHO_T}$ac_cv_header_sys_syscall_h" >&6; } ++ ++fi ++if test $ac_cv_header_sys_syscall_h = yes; then ++ plpa_config_happy=1 ++else ++ plpa_config_happy=0 ++fi ++ ++ ++ fi ++ ++ # Look for unistd.h ++ if test "$plpa_config_happy" = 1; then ++ if test "${ac_cv_header_unistd_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for unistd.h" >&5 ++echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_unistd_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 ++echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking unistd.h usability" >&5 ++echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking unistd.h presence" >&5 ++echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for unistd.h" >&5 ++echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_unistd_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_unistd_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 ++echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } ++ ++fi ++if test $ac_cv_header_unistd_h = yes; then ++ plpa_config_happy=1 ++else ++ plpa_config_happy=0 ++fi ++ ++ ++ fi ++ ++ # Check for __NR_sched_setaffinity ++ if test "$plpa_config_happy" = 1; then ++ { echo "$as_me:$LINENO: checking for __NR_sched_setaffinity" >&5 ++echo $ECHO_N "checking for __NR_sched_setaffinity... $ECHO_C" >&6; } ++ if test "$plpa_emulate" = "yes"; then ++ { echo "$as_me:$LINENO: result: emulated" >&5 ++echo "${ECHO_T}emulated" >&6; } ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define __NR_sched_setaffinity 0 ++_ACEOF ++ ++ else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++int ++main () ++{ ++#ifndef __NR_sched_setaffinity ++#error __NR_sched_setaffinity_not found! ++#endif ++int i = 1; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ plpa_config_happy=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ plpa_config_happy=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ fi ++ fi ++ ++ # Check for __NR_sched_getaffinity (probably overkill, but what ++ # the heck?) ++ if test "$plpa_config_happy" = 1; then ++ { echo "$as_me:$LINENO: checking for __NR_sched_getaffinity" >&5 ++echo $ECHO_N "checking for __NR_sched_getaffinity... $ECHO_C" >&6; } ++ if test "$plpa_emulate" = "yes"; then ++ { echo "$as_me:$LINENO: result: emulated" >&5 ++echo "${ECHO_T}emulated" >&6; } ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define __NR_sched_getaffinity 0 ++_ACEOF ++ ++ else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++int ++main () ++{ ++#ifndef __NR_sched_getaffinity ++#error __NR_sched_getaffinity_not found! ++#endif ++int i = 1; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ plpa_config_happy=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ plpa_config_happy=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ fi ++ fi ++ ++ # If all was good, do the real init ++ if test "$plpa_config_happy" = "1"; then ++ ++ ++ ++ # Are we building as standalone or included? ++ { echo "$as_me:$LINENO: checking for PLPA building mode" >&5 ++echo $ECHO_N "checking for PLPA building mode... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $plpa_mode" >&5 ++echo "${ECHO_T}$plpa_mode" >&6; } ++ ++ # Debug mode? ++ { echo "$as_me:$LINENO: checking if want PLPA maintainer support" >&5 ++echo $ECHO_N "checking if want PLPA maintainer support... $ECHO_C" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define PLPA_DEBUG $plpa_debug ++_ACEOF ++ ++ { echo "$as_me:$LINENO: result: $plpa_debug_msg" >&5 ++echo "${ECHO_T}$plpa_debug_msg" >&6; } ++ ++ # We need to set a path for header, etc files depending on whether ++ # we're standalone or included. this is taken care of by PLPA_INCLUDED. ++ ++ { echo "$as_me:$LINENO: checking for PLPA config prefix" >&5 ++echo $ECHO_N "checking for PLPA config prefix... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: opal/mca/paffinity/linux/plpa" >&5 ++echo "${ECHO_T}opal/mca/paffinity/linux/plpa" >&6; } ++ ++ # Note that plpa_config.h *MUST* be listed first so that it ++ # becomes the "main" config header file. Any AM_CONFIG_HEADERs ++ # after that (plpa.h) will only have selective #defines replaced, ++ # not the entire file. ++ ac_config_headers="$ac_config_headers opal/mca/paffinity/linux/plpa/src/libplpa/plpa_config.h" ++ ++ ac_config_headers="$ac_config_headers opal/mca/paffinity/linux/plpa/src/libplpa/plpa.h" ++ ++ ++ # What prefix are we using? ++ { echo "$as_me:$LINENO: checking for PLPA symbol prefix" >&5 ++echo $ECHO_N "checking for PLPA symbol prefix... $ECHO_C" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define PLPA_SYM_PREFIX $plpa_symbol_prefix_value ++_ACEOF ++ ++ # Ensure to [] escape the whole next line so that we can get the ++ # proper tr tokens ++ plpa_symbol_prefix_value_caps="`echo $plpa_symbol_prefix_value | tr '[:lower:]' '[:upper:]'`" ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define PLPA_SYM_PREFIX_CAPS $plpa_symbol_prefix_value_caps ++_ACEOF ++ ++ { echo "$as_me:$LINENO: result: $plpa_symbol_prefix_value" >&5 ++echo "${ECHO_T}$plpa_symbol_prefix_value" >&6; } ++ ++ ++ # Check whether to build the exectuables or not ++ { echo "$as_me:$LINENO: checking whether to build PLPA executables" >&5 ++echo $ECHO_N "checking whether to build PLPA executables... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $plpa_executables" >&5 ++echo "${ECHO_T}$plpa_executables" >&6; } ++ ++ # If we're building executables, we need some things for plpa-taskset ++ if test "$plpa_executables" = "yes"; then ++ { echo "$as_me:$LINENO: checking for inline" >&5 ++echo $ECHO_N "checking for inline... $ECHO_C" >&6; } ++if test "${ac_cv_c_inline+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_c_inline=no ++for ac_kw in inline __inline__ __inline; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#ifndef __cplusplus ++typedef int foo_t; ++static $ac_kw foo_t static_foo () {return 0; } ++$ac_kw foo_t foo () {return 0; } ++#endif ++ ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_c_inline=$ac_kw ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ test "$ac_cv_c_inline" != no && break ++done ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 ++echo "${ECHO_T}$ac_cv_c_inline" >&6; } ++ ++ ++case $ac_cv_c_inline in ++ inline | yes) ;; ++ *) ++ case $ac_cv_c_inline in ++ no) ac_val=;; ++ *) ac_val=$ac_cv_c_inline;; ++ esac ++ cat >>confdefs.h <<_ACEOF ++#ifndef __cplusplus ++#define inline $ac_val ++#endif ++_ACEOF ++ ;; ++esac ++ ++ fi ++ ++ # Success ++ { echo "$as_me:$LINENO: checking for PLPA version" >&5 ++echo $ECHO_N "checking for PLPA version... $ECHO_C" >&6; } ++ PLPA_VERSION=`$srcdir/opal/mca/paffinity/linux/plpa/config/plpa_get_version.sh $srcdir/opal/mca/paffinity/linux/plpa/VERSION` ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define PAFFINITY_LINUX_PLPA_VERSION "$PLPA_VERSION" ++_ACEOF ++ ++ { echo "$as_me:$LINENO: result: $PLPA_VERSION" >&5 ++echo "${ECHO_T}$PLPA_VERSION" >&6; } ++ should_build=1 ++ ++else ++ should_build=0 ++fi ++ ++ ++ if test "$plpa_did_am_conditionals" != "yes"; then ++ if test "$plpa_mode" = "standalone"; then ++ PLPA_BUILD_STANDALONE_TRUE= ++ PLPA_BUILD_STANDALONE_FALSE='#' ++else ++ PLPA_BUILD_STANDALONE_TRUE='#' ++ PLPA_BUILD_STANDALONE_FALSE= ++fi ++ ++ if test "$plpa_executables" = "yes"; then ++ PLPA_BUILD_EXECUTABLES_TRUE= ++ PLPA_BUILD_EXECUTABLES_FALSE='#' ++else ++ PLPA_BUILD_EXECUTABLES_TRUE='#' ++ PLPA_BUILD_EXECUTABLES_FALSE= ++fi ++ ++ fi ++ plpa_did_am_conditionals=yes ++ ++ ++ ac_config_files="$ac_config_files opal/mca/paffinity/linux/plpa/Makefile opal/mca/paffinity/linux/plpa/config/Makefile opal/mca/paffinity/linux/plpa/src/Makefile opal/mca/paffinity/linux/plpa/src/libplpa/Makefile opal/mca/paffinity/linux/plpa/src/plpa-info/Makefile opal/mca/paffinity/linux/plpa/src/plpa-taskset/Makefile" ++ ++ ++ # Cleanup ++ unset plpa_config_happy ++ ++ ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=paffinity ++ component=linux ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_paffinity" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_paffinity" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component paffinity:linux can compile" >&5 ++echo $ECHO_N "checking if MCA component paffinity:linux can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_paffinity" = "linux" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"linux\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_paffinity" ; then ++ if test "$DIRECT_paffinity" = "linux" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"linux\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components linux" ++fi ++ ++ ++ ++ ++ if test "$plpa_did_am_conditionals" != "yes"; then ++ if test "$plpa_mode" = "standalone"; then ++ PLPA_BUILD_STANDALONE_TRUE= ++ PLPA_BUILD_STANDALONE_FALSE='#' ++else ++ PLPA_BUILD_STANDALONE_TRUE='#' ++ PLPA_BUILD_STANDALONE_FALSE= ++fi ++ ++ if test "$plpa_executables" = "yes"; then ++ PLPA_BUILD_EXECUTABLES_TRUE= ++ PLPA_BUILD_EXECUTABLES_FALSE='#' ++else ++ PLPA_BUILD_EXECUTABLES_TRUE='#' ++ PLPA_BUILD_EXECUTABLES_FALSE= ++fi ++ ++ fi ++ plpa_did_am_conditionals=yes ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_paffinity_linux_DSO=1 ++else ++ BUILD_paffinity_linux_DSO=0 ++fi ++ ++ if test "$BUILD_paffinity_linux_DSO" = "1"; then ++ OMPI_BUILD_paffinity_linux_DSO_TRUE= ++ OMPI_BUILD_paffinity_linux_DSO_FALSE='#' ++else ++ OMPI_BUILD_paffinity_linux_DSO_TRUE='#' ++ OMPI_BUILD_paffinity_linux_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/opal/mca/paffinity/solaris/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component paffinity:solaris (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=paffinity ++ component=solaris ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_paffinity" ; then ++ if test "$DIRECT_paffinity" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=opal ++ framework=paffinity ++ component=solaris ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_paffinity" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in paff_solaris_happy; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"paff_solaris_happy\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ #check to see if we have ++ if test "${ac_cv_header_sys_procset_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for sys/procset.h" >&5 ++echo $ECHO_N "checking for sys/procset.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_sys_procset_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_procset_h" >&5 ++echo "${ECHO_T}$ac_cv_header_sys_procset_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking sys/procset.h usability" >&5 ++echo $ECHO_N "checking sys/procset.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking sys/procset.h presence" >&5 ++echo $ECHO_N "checking sys/procset.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: sys/procset.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: sys/procset.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/procset.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: sys/procset.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: sys/procset.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: sys/procset.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/procset.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: sys/procset.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/procset.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: sys/procset.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/procset.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: sys/procset.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/procset.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: sys/procset.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/procset.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: sys/procset.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for sys/procset.h" >&5 ++echo $ECHO_N "checking for sys/procset.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_sys_procset_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_sys_procset_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_procset_h" >&5 ++echo "${ECHO_T}$ac_cv_header_sys_procset_h" >&6; } ++ ++fi ++if test $ac_cv_header_sys_procset_h = yes; then ++ paff_solaris_happy=yes ++else ++ paff_solaris_happy=no ++fi ++ ++ ++ ++ if test "$paff_solaris_happy" = "yes"; then ++ # check for processor_bind() ++ { echo "$as_me:$LINENO: checking for processor_bind" >&5 ++echo $ECHO_N "checking for processor_bind... $ECHO_C" >&6; } ++if test "${ac_cv_func_processor_bind+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define processor_bind to an innocuous variant, in case declares processor_bind. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define processor_bind innocuous_processor_bind ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char processor_bind (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef processor_bind ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char processor_bind (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_processor_bind || defined __stub___processor_bind ++choke me ++#endif ++ ++int ++main () ++{ ++return processor_bind (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_processor_bind=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_processor_bind=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_processor_bind" >&5 ++echo "${ECHO_T}$ac_cv_func_processor_bind" >&6; } ++if test $ac_cv_func_processor_bind = yes; then ++ paff_solaris_happy=yes ++else ++ paff_solaris_happy=no ++fi ++ ++ fi ++ ++ if test "$paff_solaris_happy" = "yes"; then ++ # check for whether header has P_PID defined ++ { echo "$as_me:$LINENO: checking if P_PID is defined" >&5 ++echo $ECHO_N "checking if P_PID is defined... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++int i = P_PID; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ paff_solaris_happy=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ paff_solaris_happy=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ { echo "$as_me:$LINENO: result: $paff_solaris_happy " >&5 ++echo "${ECHO_T}$paff_solaris_happy " >&6; } ++ fi ++ ++ if test "$paff_solaris_happy" = "yes"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=paffinity ++ component=solaris ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_paffinity" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_paffinity" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component paffinity:solaris can compile" >&5 ++echo $ECHO_N "checking if MCA component paffinity:solaris can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_paffinity" = "solaris" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"solaris\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_paffinity" ; then ++ if test "$DIRECT_paffinity" = "solaris" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"solaris\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components solaris" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_paffinity_solaris_DSO=1 ++else ++ BUILD_paffinity_solaris_DSO=0 ++fi ++ ++ if test "$BUILD_paffinity_solaris_DSO" = "1"; then ++ OMPI_BUILD_paffinity_solaris_DSO_TRUE= ++ OMPI_BUILD_paffinity_solaris_DSO_FALSE='#' ++else ++ OMPI_BUILD_paffinity_solaris_DSO_TRUE='#' ++ OMPI_BUILD_paffinity_solaris_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/opal/mca/paffinity/windows/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component paffinity:windows (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=paffinity ++ component=windows ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_paffinity" ; then ++ if test "$DIRECT_paffinity" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=opal ++ framework=paffinity ++ component=windows ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_paffinity" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ # check for GetProcessAffinityMask, which is defined only for some ++ # flavors of Windows. We should first check that the function is defined, ++ # and then check for it's presence in the kernel32 library. ++ { echo "$as_me:$LINENO: checking for working GetProcessAffinityMask" >&5 ++echo $ECHO_N "checking for working GetProcessAffinityMask... $ECHO_C" >&6; } ++ if test "$cross_compiling" = yes; then ++ cat >conftest.$ac_ext <<_ACEOF ++#include ++int main( int argc, char** argv ) { ++ DWORD aff, mask; ++ GetProcessAffinityMask( NULL, &aff, &mask ); ++ return 0; } ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ should_build=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ should_build=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int main( int argc, char** argv ) { ++ DWORD aff, mask; ++ GetProcessAffinityMask( NULL, &aff, &mask ); ++ return 0; } ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ should_build=1 ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ should_build=0 ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=paffinity ++ component=windows ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_paffinity" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_paffinity" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component paffinity:windows can compile" >&5 ++echo $ECHO_N "checking if MCA component paffinity:windows can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_paffinity" = "windows" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"windows\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_paffinity" ; then ++ if test "$DIRECT_paffinity" = "windows" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"windows\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components windows" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_paffinity_windows_DSO=1 ++else ++ BUILD_paffinity_windows_DSO=0 ++fi ++ ++ if test "$BUILD_paffinity_windows_DSO" = "1"; then ++ OMPI_BUILD_paffinity_windows_DSO_TRUE= ++ OMPI_BUILD_paffinity_windows_DSO_FALSE='#' ++else ++ OMPI_BUILD_paffinity_windows_DSO_TRUE='#' ++ OMPI_BUILD_paffinity_windows_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/opal/mca/paffinity/darwin/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component paffinity:darwin (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=paffinity ++ component=darwin ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_paffinity" ; then ++ if test "$DIRECT_paffinity" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=opal ++ framework=paffinity ++ component=darwin ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_paffinity" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in paff_darwin_happy; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"paff_darwin_happy\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ # check to see if we have ++ # as this is a Darwin-specific thing ++ if test "${ac_cv_header_mach_mach_host_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for mach/mach_host.h" >&5 ++echo $ECHO_N "checking for mach/mach_host.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_mach_mach_host_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_mach_mach_host_h" >&5 ++echo "${ECHO_T}$ac_cv_header_mach_mach_host_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking mach/mach_host.h usability" >&5 ++echo $ECHO_N "checking mach/mach_host.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking mach/mach_host.h presence" >&5 ++echo $ECHO_N "checking mach/mach_host.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: mach/mach_host.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: mach/mach_host.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: mach/mach_host.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: mach/mach_host.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: mach/mach_host.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: mach/mach_host.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: mach/mach_host.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: mach/mach_host.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: mach/mach_host.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: mach/mach_host.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: mach/mach_host.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: mach/mach_host.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: mach/mach_host.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: mach/mach_host.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: mach/mach_host.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: mach/mach_host.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for mach/mach_host.h" >&5 ++echo $ECHO_N "checking for mach/mach_host.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_mach_mach_host_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_mach_mach_host_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_mach_mach_host_h" >&5 ++echo "${ECHO_T}$ac_cv_header_mach_mach_host_h" >&6; } ++ ++fi ++if test $ac_cv_header_mach_mach_host_h = yes; then ++ paff_darwin_happy=yes ++else ++ paff_darwin_happy=no ++fi ++ ++ ++ ++ if test "$paff_darwin_happy" = "yes"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=paffinity ++ component=darwin ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_paffinity" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_paffinity" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component paffinity:darwin can compile" >&5 ++echo $ECHO_N "checking if MCA component paffinity:darwin can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_paffinity" = "darwin" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_paffinity" ; then ++ if test "$DIRECT_paffinity" = "darwin" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components darwin" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_paffinity_darwin_DSO=1 ++else ++ BUILD_paffinity_darwin_DSO=0 ++fi ++ ++ if test "$BUILD_paffinity_darwin_DSO" = "1"; then ++ OMPI_BUILD_paffinity_darwin_DSO_TRUE= ++ OMPI_BUILD_paffinity_darwin_DSO_FALSE='#' ++else ++ OMPI_BUILD_paffinity_darwin_DSO_TRUE='#' ++ OMPI_BUILD_paffinity_darwin_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/opal/mca/paffinity/posix/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component paffinity:posix (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=paffinity ++ component=posix ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_paffinity" ; then ++ if test "$DIRECT_paffinity" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=opal ++ framework=paffinity ++ component=posix ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_paffinity" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in paff_posix_happy; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"paff_posix_happy\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ # Check to see if we have ++ if test "${ac_cv_header_unistd_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for unistd.h" >&5 ++echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_unistd_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 ++echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking unistd.h usability" >&5 ++echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking unistd.h presence" >&5 ++echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for unistd.h" >&5 ++echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_unistd_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_unistd_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 ++echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } ++ ++fi ++if test $ac_cv_header_unistd_h = yes; then ++ paff_posix_happy=yes ++else ++ paff_posix_happy=no ++fi ++ ++ ++ ++ # Check to see if we have _SC_NPROCESSORS_ONLN ++ if test "$paff_posix_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for _SC_NPROCESSORS_ONLN" >&5 ++echo $ECHO_N "checking for _SC_NPROCESSORS_ONLN... $ECHO_C" >&6; } ++ if test "$OMPI_HAVE__SC_NPROCESSORS_ONLN" = "1"; then ++ paff_posix_happy=yes ++else ++ paff_posix_happy=no ++fi ++ ++ { echo "$as_me:$LINENO: result: (cached) $paff_posix_happy" >&5 ++echo "${ECHO_T}(cached) $paff_posix_happy" >&6; } ++fi ++ ++ ++ if test "$paff_posix_happy" = "yes"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=paffinity ++ component=posix ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_paffinity" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_paffinity" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component paffinity:posix can compile" >&5 ++echo $ECHO_N "checking if MCA component paffinity:posix can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_paffinity" = "posix" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"posix\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"posix\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_paffinity" ; then ++ if test "$DIRECT_paffinity" = "posix" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"posix\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"posix\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components posix" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_paffinity_posix_DSO=1 ++else ++ BUILD_paffinity_posix_DSO=0 ++fi ++ ++ if test "$BUILD_paffinity_posix_DSO" = "1"; then ++ OMPI_BUILD_paffinity_posix_DSO_TRUE= ++ OMPI_BUILD_paffinity_posix_DSO_FALSE='#' ++else ++ OMPI_BUILD_paffinity_posix_DSO_TRUE='#' ++ OMPI_BUILD_paffinity_posix_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ ++ ++ MCA_paffinity_ALL_COMPONENTS="$all_components" ++ MCA_paffinity_STATIC_COMPONENTS="$static_components" ++ MCA_paffinity_DSO_COMPONENTS="$dso_components" ++ MCA_paffinity_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_paffinity_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_paffinity_ALL_SUBDIRS="$MCA_paffinity_ALL_SUBDIRS mca/paffinity/$item" ++ done ++ ++ ++ ++ MCA_paffinity_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_paffinity_STATIC_SUBDIRS="$MCA_paffinity_STATIC_SUBDIRS mca/paffinity/$item" ++ done ++ ++ ++ ++ MCA_paffinity_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_paffinity_DSO_SUBDIRS="$MCA_paffinity_DSO_SUBDIRS mca/paffinity/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "paffinity" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "timer" = "common" ; then ++ MCA_opal_FRAMEWORKS="timer $MCA_opal_FRAMEWORKS" ++ MCA_opal_FRAMEWORKS_SUBDIRS="mca/timer $MCA_opal_FRAMEWORKS_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_timer_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_timer_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_timer_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS timer" ++ MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/timer" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_timer_ALL_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_timer_DSO_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_timer_STATIC_SUBDIRS)" ++ fi ++ if test "timer" != "common" ; then ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/timer/libmca_timer.la" ++ fi ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_timer_STATIC_LTLIBS)" ++ ++ timer_base_include= ++ ++ # first, compile all the components ++ ++ ompi_show_subsubtitle "Configuring MCA framework timer" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "timer" = "common" ; then ++ outdir=opal/mca/common ++ else ++ outdir=opal/mca/timer/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework timer" >&5 ++echo $ECHO_N "checking for no configure components in framework timer... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework timer" >&5 ++echo $ECHO_N "checking for m4 configure components in framework timer... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: catamount, aix, altix, darwin, solaris, windows, linux" >&5 ++echo "${ECHO_T}catamount, aix, altix, darwin, solaris, windows, linux" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component timer:catamount (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=timer ++ component=catamount ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component timer:catamount compile mode" >&5 ++echo $ECHO_N "checking for MCA component timer:catamount compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++# Check whether --with-timer was given. ++if test "${with_timer+set}" = set; then ++ withval=$with_timer; ++fi ++ ++ ++ if test "$with_timer" = "catamount"; then ++ timer_catamount_happy="yes" ++ timer_catamount_should_use=1 ++else ++ timer_catamount_should_use=0 ++ if test "$with_timer" = ""; then ++ timer_catamount_happy="yes" ++else ++ timer_catamount_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$timer_catamount_happy" = "yes"; then ++ ++for ac_header in catamount/dclock.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++else ++ timer_catamount_happy=no ++fi ++ ++done ++ ++fi ++ ++ ++ if test "$timer_catamount_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for __cpu_mhz" >&5 ++echo $ECHO_N "checking for __cpu_mhz... $ECHO_C" >&6; } ++if test "${ompi_cv_have___cpu_mhz+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++ ++int ++main () ++{ ++ ++unsigned int a = __cpu_mhz; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_have___cpu_mhz=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_have___cpu_mhz=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_have___cpu_mhz" >&5 ++echo "${ECHO_T}$ompi_cv_have___cpu_mhz" >&6; } ++ if test "$ompi_cv_have___cpu_mhz" = "no"; then ++ timer_catamount_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$timer_catamount_happy" = "no" -a \ ++ "$timer_catamount_should_use" = "1"; then ++ { { echo "$as_me:$LINENO: error: Catamount timer requested but not available. Aborting." >&5 ++echo "$as_me: error: Catamount timer requested but not available. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ if test "$timer_catamount_happy" = "yes"; then ++ timer_base_include="catamount/timer_catamount.h" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=timer ++ component=catamount ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_timer" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_timer" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component timer:catamount can compile" >&5 ++echo $ECHO_N "checking if MCA component timer:catamount can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_timer" = "catamount" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"catamount\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"catamount\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "catamount" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"catamount\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"catamount\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components catamount" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_timer_catamount_DSO=1 ++else ++ BUILD_timer_catamount_DSO=0 ++fi ++ ++ if test "$BUILD_timer_catamount_DSO" = "1"; then ++ OMPI_BUILD_timer_catamount_DSO_TRUE= ++ OMPI_BUILD_timer_catamount_DSO_FALSE='#' ++else ++ OMPI_BUILD_timer_catamount_DSO_TRUE='#' ++ OMPI_BUILD_timer_catamount_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component timer:aix (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=timer ++ component=aix ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component timer:aix compile mode" >&5 ++echo $ECHO_N "checking for MCA component timer:aix compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++# Check whether --with-timer was given. ++if test "${with_timer+set}" = set; then ++ withval=$with_timer; ++fi ++ ++ ++ if test "$with_timer" = "aix"; then ++ timer_aix_happy="yes" ++ timer_aix_should_use=1 ++else ++ timer_aix_should_use=0 ++ if test "$with_timer" = ""; then ++ timer_aix_happy="yes" ++else ++ timer_aix_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$timer_aix_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for time_base_to_time" >&5 ++echo $ECHO_N "checking for time_base_to_time... $ECHO_C" >&6; } ++if test "${ac_cv_func_time_base_to_time+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define time_base_to_time to an innocuous variant, in case declares time_base_to_time. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define time_base_to_time innocuous_time_base_to_time ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char time_base_to_time (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef time_base_to_time ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char time_base_to_time (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_time_base_to_time || defined __stub___time_base_to_time ++choke me ++#endif ++ ++int ++main () ++{ ++return time_base_to_time (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_time_base_to_time=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_time_base_to_time=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_time_base_to_time" >&5 ++echo "${ECHO_T}$ac_cv_func_time_base_to_time" >&6; } ++if test $ac_cv_func_time_base_to_time = yes; then ++ timer_aix_happy="yes" ++else ++ timer_aix_happy="no" ++fi ++ ++fi ++ ++ ++ # look to see if -lpmapi is available ++ timer_aix_LIBS= ++ timer_aix_LIBS_SAVE="$LIBS" ++ if test "$timer_aix_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for pm_cycles in -lpmapi" >&5 ++echo $ECHO_N "checking for pm_cycles in -lpmapi... $ECHO_C" >&6; } ++if test "${ac_cv_lib_pmapi_pm_cycles+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpmapi $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char pm_cycles (); ++int ++main () ++{ ++return pm_cycles (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_pmapi_pm_cycles=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_pmapi_pm_cycles=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_pmapi_pm_cycles" >&5 ++echo "${ECHO_T}$ac_cv_lib_pmapi_pm_cycles" >&6; } ++if test $ac_cv_lib_pmapi_pm_cycles = yes; then ++ LIBS="$LIBS -lpmapi" ++ timer_aix_LIBS="-lpmapi" ++else ++ timer_aix_LIBS="" ++fi ++ ++fi ++ ++ ++ # get us a HAVE_PM_CYCLES #define ++ if test "$timer_aix_happy" = "yes"; then ++ ++for ac_func in pm_cycles ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ ++for ac_header in pmapi.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++fi ++ ++ LIBS="$timer_aix_LIBS_SAVE" ++ ++ if test "$timer_aix_happy" = "no" -a \ ++ "$timer_aix_should_use" = "1"; then ++ { { echo "$as_me:$LINENO: error: AIX timer requested but not available. Aborting." >&5 ++echo "$as_me: error: AIX timer requested but not available. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ ++ ++ if test "$timer_aix_happy" = "yes"; then ++ timer_aix_WRAPPER_EXTRA_LIBS="$timer_aix_LIBS" ++ timer_base_include="aix/timer_aix.h" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=timer ++ component=aix ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_timer" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_timer" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component timer:aix can compile" >&5 ++echo $ECHO_N "checking if MCA component timer:aix can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_timer" = "aix" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"aix\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"aix\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "aix" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"aix\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"aix\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components aix" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_timer_aix_DSO=1 ++else ++ BUILD_timer_aix_DSO=0 ++fi ++ ++ if test "$BUILD_timer_aix_DSO" = "1"; then ++ OMPI_BUILD_timer_aix_DSO_TRUE= ++ OMPI_BUILD_timer_aix_DSO_FALSE='#' ++else ++ OMPI_BUILD_timer_aix_DSO_TRUE='#' ++ OMPI_BUILD_timer_aix_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component timer:altix (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=timer ++ component=altix ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component timer:altix compile mode" >&5 ++echo $ECHO_N "checking for MCA component timer:altix compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++# Check whether --with-timer was given. ++if test "${with_timer+set}" = set; then ++ withval=$with_timer; ++fi ++ ++ ++ if test "$with_timer" = "altix"; then ++ timer_altix_happy="yes" ++ timer_altix_should_use=1 ++else ++ timer_altix_should_use=0 ++ if test "$with_timer" = ""; then ++ timer_altix_happy="yes" ++else ++ timer_altix_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$timer_altix_happy" = "yes"; then ++ if test "${ac_cv_header_sn_mmtimer_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for sn/mmtimer.h" >&5 ++echo $ECHO_N "checking for sn/mmtimer.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_sn_mmtimer_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_sn_mmtimer_h" >&5 ++echo "${ECHO_T}$ac_cv_header_sn_mmtimer_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking sn/mmtimer.h usability" >&5 ++echo $ECHO_N "checking sn/mmtimer.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking sn/mmtimer.h presence" >&5 ++echo $ECHO_N "checking sn/mmtimer.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: sn/mmtimer.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: sn/mmtimer.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: sn/mmtimer.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: sn/mmtimer.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: sn/mmtimer.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: sn/mmtimer.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: sn/mmtimer.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: sn/mmtimer.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for sn/mmtimer.h" >&5 ++echo $ECHO_N "checking for sn/mmtimer.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_sn_mmtimer_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_sn_mmtimer_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_sn_mmtimer_h" >&5 ++echo "${ECHO_T}$ac_cv_header_sn_mmtimer_h" >&6; } ++ ++fi ++if test $ac_cv_header_sn_mmtimer_h = yes; then ++ timer_altix_happy="yes" ++else ++ timer_altix_happy="no" ++fi ++ ++ ++fi ++ ++ ++ if test "$timer_altix_happy" = "yes"; then ++ ++ ++for ac_header in sys/ioctl.h sys/mman.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++fi ++ ++ ++ if test "$timer_altix_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking if MM timer can be opened" >&5 ++echo $ECHO_N "checking if MM timer can be opened... $ECHO_C" >&6; } ++if test "${ompi_cv_mm_timer_mmap+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++#include ++#include ++#include ++ ++int ++main () ++{ ++ ++ int fd; ++ fd = open(MMTIMER_FULLNAME, O_RDONLY); ++ if (-1 ==fd) return 1; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_mm_timer_mmap="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_mm_timer_mmap="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_mm_timer_mmap" >&5 ++echo "${ECHO_T}$ompi_cv_mm_timer_mmap" >&6; } ++ if test "$ompi_cv_mm_timer_mmap" = "yes"; then ++ timer_altix_happy="yes" ++else ++ timer_altix_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$timer_altix_happy" = "no" -a \ ++ "$timer_altix_should_use" = "1"; then ++ { { echo "$as_me:$LINENO: error: Altix timer requested but not available. Aborting." >&5 ++echo "$as_me: error: Altix timer requested but not available. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ if test "$timer_altix_happy" = "yes"; then ++ timer_base_include="altix/timer_altix.h" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=timer ++ component=altix ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_timer" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_timer" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component timer:altix can compile" >&5 ++echo $ECHO_N "checking if MCA component timer:altix can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_timer" = "altix" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"altix\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"altix\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "altix" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"altix\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"altix\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components altix" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_timer_altix_DSO=1 ++else ++ BUILD_timer_altix_DSO=0 ++fi ++ ++ if test "$BUILD_timer_altix_DSO" = "1"; then ++ OMPI_BUILD_timer_altix_DSO_TRUE= ++ OMPI_BUILD_timer_altix_DSO_FALSE='#' ++else ++ OMPI_BUILD_timer_altix_DSO_TRUE='#' ++ OMPI_BUILD_timer_altix_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component timer:darwin (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=timer ++ component=darwin ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component timer:darwin compile mode" >&5 ++echo $ECHO_N "checking for MCA component timer:darwin compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++# Check whether --with-timer was given. ++if test "${with_timer+set}" = set; then ++ withval=$with_timer; ++fi ++ ++ ++ if test "$with_timer" = "darwin"; then ++ timer_darwin_happy="yes" ++ timer_darwin_should_use=1 ++else ++ timer_darwin_should_use=0 ++ if test "$with_timer" = ""; then ++ timer_darwin_happy="yes" ++else ++ timer_darwin_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$timer_darwin_happy" = "yes"; then ++ ++for ac_header in mach/mach_time.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++ { echo "$as_me:$LINENO: checking for mach_absolute_time" >&5 ++echo $ECHO_N "checking for mach_absolute_time... $ECHO_C" >&6; } ++if test "${ac_cv_func_mach_absolute_time+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define mach_absolute_time to an innocuous variant, in case declares mach_absolute_time. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define mach_absolute_time innocuous_mach_absolute_time ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char mach_absolute_time (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef mach_absolute_time ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mach_absolute_time (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_mach_absolute_time || defined __stub___mach_absolute_time ++choke me ++#endif ++ ++int ++main () ++{ ++return mach_absolute_time (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_mach_absolute_time=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_mach_absolute_time=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_mach_absolute_time" >&5 ++echo "${ECHO_T}$ac_cv_func_mach_absolute_time" >&6; } ++if test $ac_cv_func_mach_absolute_time = yes; then ++ timer_darwin_happy="yes" ++else ++ timer_darwin_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$timer_darwin_happy" = "no" -a \ ++ "$timer_darwin_should_use" = "1"; then ++ { { echo "$as_me:$LINENO: error: Darwin timer requested but not available. Aborting." >&5 ++echo "$as_me: error: Darwin timer requested but not available. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ if test "$timer_darwin_happy" = "yes"; then ++ timer_base_include="darwin/timer_darwin.h" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=timer ++ component=darwin ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_timer" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_timer" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component timer:darwin can compile" >&5 ++echo $ECHO_N "checking if MCA component timer:darwin can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_timer" = "darwin" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "darwin" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components darwin" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_timer_darwin_DSO=1 ++else ++ BUILD_timer_darwin_DSO=0 ++fi ++ ++ if test "$BUILD_timer_darwin_DSO" = "1"; then ++ OMPI_BUILD_timer_darwin_DSO_TRUE= ++ OMPI_BUILD_timer_darwin_DSO_FALSE='#' ++else ++ OMPI_BUILD_timer_darwin_DSO_TRUE='#' ++ OMPI_BUILD_timer_darwin_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component timer:solaris (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=timer ++ component=solaris ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component timer:solaris compile mode" >&5 ++echo $ECHO_N "checking for MCA component timer:solaris compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++# Check whether --with-timer was given. ++if test "${with_timer+set}" = set; then ++ withval=$with_timer; ++fi ++ ++ ++ if test "$with_timer" = "solaris"; then ++ timer_solaris_happy="yes" ++ timer_solaris_should_use=1 ++else ++ timer_solaris_should_use=0 ++ if test "$with_timer" = ""; then ++ timer_solaris_happy="yes" ++else ++ timer_solaris_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$timer_solaris_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for gethrtime" >&5 ++echo $ECHO_N "checking for gethrtime... $ECHO_C" >&6; } ++if test "${ac_cv_func_gethrtime+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define gethrtime to an innocuous variant, in case declares gethrtime. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define gethrtime innocuous_gethrtime ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char gethrtime (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef gethrtime ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char gethrtime (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_gethrtime || defined __stub___gethrtime ++choke me ++#endif ++ ++int ++main () ++{ ++return gethrtime (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_gethrtime=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_gethrtime=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_gethrtime" >&5 ++echo "${ECHO_T}$ac_cv_func_gethrtime" >&6; } ++if test $ac_cv_func_gethrtime = yes; then ++ timer_solaris_happy="yes" ++else ++ timer_solaris_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$timer_solaris_happy" = "no" -a \ ++ "$timer_solaris_should_use" = "1"; then ++ { { echo "$as_me:$LINENO: error: Solaris timer requested but not available. Aborting." >&5 ++echo "$as_me: error: Solaris timer requested but not available. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ if test "$timer_solaris_happy" = "yes"; then ++ timer_base_include="solaris/timer_solaris.h" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=timer ++ component=solaris ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_timer" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_timer" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component timer:solaris can compile" >&5 ++echo $ECHO_N "checking if MCA component timer:solaris can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_timer" = "solaris" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"solaris\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "solaris" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"solaris\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components solaris" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_timer_solaris_DSO=1 ++else ++ BUILD_timer_solaris_DSO=0 ++fi ++ ++ if test "$BUILD_timer_solaris_DSO" = "1"; then ++ OMPI_BUILD_timer_solaris_DSO_TRUE= ++ OMPI_BUILD_timer_solaris_DSO_FALSE='#' ++else ++ OMPI_BUILD_timer_solaris_DSO_TRUE='#' ++ OMPI_BUILD_timer_solaris_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component timer:windows (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=timer ++ component=windows ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component timer:windows compile mode" >&5 ++echo $ECHO_N "checking for MCA component timer:windows compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++# Check whether --with-timer was given. ++if test "${with_timer+set}" = set; then ++ withval=$with_timer; ++fi ++ ++ ++ if test "$with_timer" = "windows"; then ++ timer_windows_happy="yes" ++ timer_windows_should_use=1 ++else ++ timer_windows_should_use=0 ++ if test "$with_timer" = ""; then ++ timer_windows_happy="yes" ++else ++ timer_windows_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$timer_windows_happy" = "yes"; then ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++LARGE_INTEGER now; ++ QueryPerformanceCounter( &now ); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ timer_windows_happy="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ timer_windows_happy="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ if test "$timer_windows_happy" = "no" -a \ ++ "$timer_windows_should_use" = "1"; then ++ { { echo "$as_me:$LINENO: error: Windows timer requested but not available. Aborting." >&5 ++echo "$as_me: error: Windows timer requested but not available. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ if test "$timer_windows_happy" = "yes"; then ++ timer_base_include="windows/timer_windows.h" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=timer ++ component=windows ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_timer" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_timer" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component timer:windows can compile" >&5 ++echo $ECHO_N "checking if MCA component timer:windows can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_timer" = "windows" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"windows\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "windows" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"windows\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components windows" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_timer_windows_DSO=1 ++else ++ BUILD_timer_windows_DSO=0 ++fi ++ ++ if test "$BUILD_timer_windows_DSO" = "1"; then ++ OMPI_BUILD_timer_windows_DSO_TRUE= ++ OMPI_BUILD_timer_windows_DSO_FALSE='#' ++else ++ OMPI_BUILD_timer_windows_DSO_TRUE='#' ++ OMPI_BUILD_timer_windows_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component timer:linux (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=timer ++ component=linux ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component timer:linux compile mode" >&5 ++echo $ECHO_N "checking for MCA component timer:linux compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++# Check whether --with-timer was given. ++if test "${with_timer+set}" = set; then ++ withval=$with_timer; ++fi ++ ++ ++ if test "$with_timer" = "linux"; then ++ timer_linux_happy="yes" ++ timer_linux_should_use=1 ++else ++ timer_linux_should_use=0 ++ if test "$with_timer" = ""; then ++ timer_linux_happy="yes" ++else ++ timer_linux_happy="no" ++fi ++ ++fi ++ ++ ++ case "${host}" in ++ i?86-*|x86_64*|ia64-*|powerpc-*|powerpc64-*|sparc*-*) ++ if test "$timer_linux_happy" = "yes"; then ++ if test -r "/proc/cpuinfo"; then ++ timer_linux_happy="yes" ++else ++ timer_linux_happy="no" ++fi ++ ++fi ++ ++ ;; ++ *) ++ timer_linux_happy="no" ++ ;; ++ esac ++ ++ if test "$timer_linux_happy" = "no" -a \ ++ "$timer_linux_should_use" = "1"; then ++ { { echo "$as_me:$LINENO: error: Linux timer requested but not available. Aborting." >&5 ++echo "$as_me: error: Linux timer requested but not available. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ if test "$timer_linux_happy" = "yes"; then ++ timer_base_include="linux/timer_linux.h" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=timer ++ component=linux ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_timer" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_timer" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component timer:linux can compile" >&5 ++echo $ECHO_N "checking if MCA component timer:linux can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_timer" = "linux" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"linux\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "linux" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"linux\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components linux" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_timer_linux_DSO=1 ++else ++ BUILD_timer_linux_DSO=0 ++fi ++ ++ if test "$BUILD_timer_linux_DSO" = "1"; then ++ OMPI_BUILD_timer_linux_DSO_TRUE= ++ OMPI_BUILD_timer_linux_DSO_FALSE='#' ++else ++ OMPI_BUILD_timer_linux_DSO_TRUE='#' ++ OMPI_BUILD_timer_linux_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ ++ ++ MCA_timer_ALL_COMPONENTS="$all_components" ++ MCA_timer_STATIC_COMPONENTS="$static_components" ++ MCA_timer_DSO_COMPONENTS="$dso_components" ++ MCA_timer_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_timer_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_timer_ALL_SUBDIRS="$MCA_timer_ALL_SUBDIRS mca/timer/$item" ++ done ++ ++ ++ ++ MCA_timer_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_timer_STATIC_SUBDIRS="$MCA_timer_STATIC_SUBDIRS mca/timer/$item" ++ done ++ ++ ++ ++ MCA_timer_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_timer_DSO_SUBDIRS="$MCA_timer_DSO_SUBDIRS mca/timer/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "timer" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++ ++ ++ # someone should have set this... ++ if test "$timer_base_include" = "" ; then ++ timer_base_include="base/timer_base_null.h" ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MCA_timer_IMPLEMENTATION_HEADER "opal/mca/timer/$timer_base_include" ++_ACEOF ++ ++ ++ ++ ++ ++ ++ ++ ++ ++MCA_PROJECT_SUBDIRS="$MCA_PROJECT_SUBDIRS orte" ++ ++ # can't use a variable rename here because these need to be evaled ++ # at auto* time. ++ ++ ompi_show_subtitle "Configuring MCA for orte" ++ ++ { echo "$as_me:$LINENO: checking for frameworks for orte" >&5 ++echo $ECHO_N "checking for frameworks for orte... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: errmgr, ess, filem, grpcomm, iof, notifier, odls, oob, plm, ras, rmaps, rml, routed, snapc" >&5 ++echo "${ECHO_T}errmgr, ess, filem, grpcomm, iof, notifier, odls, oob, plm, ras, rmaps, rml, routed, snapc" >&6; } ++ ++ # iterate through the list of frameworks. There is something ++ # funky with m4 foreach if the list is defined, but empty. It ++ # will call the 3rd argument once with an empty value for the ++ # first argument. Protect against calling MCA_CONFIGURE_FRAMEWORK ++ # with an empty second argument. Grrr.... ++ # if there isn't a project list, abort ++ # ++ # Also setup two variables for Makefiles: ++ # MCA_project_FRAMEWORKS - list of frameworks in that project ++ # MCA_project_FRAMEWORK_LIBS - list of libraries (or variables pointing ++ # to more libraries) that must be included ++ # in the project's main library ++ ++ ++ MCA_orte_FRAMEWORKS= ++ MCA_orte_FRAMEWORKS_SUBDIRS= ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS= ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS= ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS= ++ MCA_orte_FRAMEWORK_LIBS= ++ ++ # common has to go up front ++ if test "errmgr" = "common" ; then ++ MCA_orte_FRAMEWORKS="errmgr $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/errmgr $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_errmgr_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_errmgr_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_errmgr_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS errmgr" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/errmgr" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_errmgr_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_errmgr_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_errmgr_STATIC_SUBDIRS)" ++ fi ++ if test "errmgr" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/errmgr/libmca_errmgr.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_errmgr_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework errmgr" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "errmgr" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/errmgr/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework errmgr" >&5 ++echo $ECHO_N "checking for no configure components in framework errmgr... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: default" >&5 ++echo "${ECHO_T}default" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework errmgr" >&5 ++echo $ECHO_N "checking for m4 configure components in framework errmgr... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component errmgr:default (no configuration)" ++ ++ ++ ++ ++ project=orte ++ framework=errmgr ++ component=default ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_errmgr" ; then ++ if test "$DIRECT_errmgr" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=errmgr ++ component=default ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_errmgr" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=errmgr ++ component=default ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_errmgr" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_errmgr" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component errmgr:default can compile" >&5 ++echo $ECHO_N "checking if MCA component errmgr:default can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_errmgr" = "default" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"default\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"default\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_errmgr" ; then ++ if test "$DIRECT_errmgr" = "default" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"default\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"default\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components default" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_errmgr_default_DSO=1 ++ else ++ BUILD_errmgr_default_DSO=0 ++ fi ++ if test "$BUILD_errmgr_default_DSO" = "1"; then ++ OMPI_BUILD_errmgr_default_DSO_TRUE= ++ OMPI_BUILD_errmgr_default_DSO_FALSE='#' ++else ++ OMPI_BUILD_errmgr_default_DSO_TRUE='#' ++ OMPI_BUILD_errmgr_default_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/orte/mca/errmgr/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component errmgr:$component (need to configure)" ++ ++ ++ ++ ++ project=orte ++ framework=errmgr ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_errmgr" ; then ++ if test "$DIRECT_errmgr" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=errmgr ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_errmgr" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# orte/mca/errmgr/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="orte/mca/errmgr/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=errmgr ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_errmgr" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_errmgr" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component errmgr:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component errmgr:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_errmgr" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_errmgr" ; then ++ if test "$DIRECT_errmgr" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_errmgr_ALL_COMPONENTS="$all_components" ++ MCA_errmgr_STATIC_COMPONENTS="$static_components" ++ MCA_errmgr_DSO_COMPONENTS="$dso_components" ++ MCA_errmgr_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_errmgr_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_errmgr_ALL_SUBDIRS="$MCA_errmgr_ALL_SUBDIRS mca/errmgr/$item" ++ done ++ ++ ++ ++ MCA_errmgr_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_errmgr_STATIC_SUBDIRS="$MCA_errmgr_STATIC_SUBDIRS mca/errmgr/$item" ++ done ++ ++ ++ ++ MCA_errmgr_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_errmgr_DSO_SUBDIRS="$MCA_errmgr_DSO_SUBDIRS mca/errmgr/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "errmgr" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "ess" = "common" ; then ++ MCA_orte_FRAMEWORKS="ess $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/ess $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_ess_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_ess_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_ess_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS ess" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/ess" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ess_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ess_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ess_STATIC_SUBDIRS)" ++ fi ++ if test "ess" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/ess/libmca_ess.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_ess_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework ess" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "ess" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/ess/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework ess" >&5 ++echo $ECHO_N "checking for no configure components in framework ess... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework ess" >&5 ++echo $ECHO_N "checking for m4 configure components in framework ess... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: portals_utcp, cnos, alps, env, hnp, lsf, singleton, slurm, tool" >&5 ++echo "${ECHO_T}portals_utcp, cnos, alps, env, hnp, lsf, singleton, slurm, tool" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ # get the component's priority... ++ infile="$srcdir/orte/mca/ess/portals_utcp/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component ess:portals_utcp (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ess ++ component=portals_utcp ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ess ++ component=portals_utcp ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ess" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ # save compiler flags so that we don't alter them for later ++ # components. ++ ess_portals_utcp_save_CPPFLAGS="$CPPFLAGS" ++ ess_portals_utcp_save_LDFLAGS="$LDFLAGS" ++ ess_portals_utcp_save_LIBS="$LIBS" ++ ++ # allow user a way to say where the Portals installation is ++ ++# Check whether --with-portals was given. ++if test "${with_portals+set}" = set; then ++ withval=$with_portals; ++fi ++ ++ ++ if test -n "$with_portals"; then ++ if test -d "$with_portals/include"; then ++ ess_portals_utcp_CPPFLAGS="-I$with_portals/include" ++ CPPFLAGS="$CPPFLAGS $ess_portals_utcp_CPPFLAGS" ++fi ++ ++ if test -d "$with_portals/lib"; then ++ ess_portals_utcp_LDFLAGS="-L$with_portals/lib" ++ LDFLAGS="$LDFLAGS $ess_portals_utcp_LDFLAGS" ++fi ++ ++fi ++ ++ ++ # Try to find all the portals libraries (this is not fun!) ++ ++# Check whether --with-portals-libs was given. ++if test "${with_portals_libs+set}" = set; then ++ withval=$with_portals_libs; ++fi ++ ++ if test -n "$with_portals_libs" ; then ++ ess_portals_utcp_LIBS="" ++ for lib in $with_portals_libs ; do ++ ess_portals_utcp_LIBS="$ess_portals_utcp_LIBS -l$lib" ++ done ++ fi ++ ++ ess_portals_utcp_LIBS="-lp3utcp -lp3api -lp3lib -lp3rt -lp3utcp" ++ ++ # check for portals ++ LIBS="$LIBS $ess_portals_utcp_LIBS" ++ { echo "$as_me:$LINENO: checking for PtlGetRank" >&5 ++echo $ECHO_N "checking for PtlGetRank... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++#include ++#include ++#include ++FILE *utcp_api_out; ++FILE *utcp_lib_out; ++int ++main () ++{ ++unsigned int nprocs, rank; ++int dummy; ++PtlInit(&dummy); ++PtlNIInit(PTL_IFACE_DEFAULT, PTL_PID_ANY, NULL, NULL, NULL); ++PtlGetRank(PTL_INVALID_HANDLE, &rank, &nprocs); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ should_build=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ should_build=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ ++ # we don't actually need the Portals code for this component, ++ # so don't link against them... ++ ess_portals_utcp_CPPFLAGS= ++ ess_portals_utcp_LDFLAGS= ++ ess_portals_utcp_LIBS= ++ ++ # substitute in the things needed to build Portals ++ ++ ++ ++ ++ # reset the flags for the next test ++ CPPFLAGS="$ess_portals_utcp_save_CPPFLAGS" ++ LDFLAGS="$ess_portals_utcp_save_LDFLAGS" ++ LIBS="$ess_portals_utcp_save_LIBS" ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ess ++ component=portals_utcp ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ess" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ess" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ess:portals_utcp can compile" >&5 ++echo $ECHO_N "checking if MCA component ess:portals_utcp can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ess" = "portals_utcp" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"portals_utcp\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"portals_utcp\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "portals_utcp" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"portals_utcp\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"portals_utcp\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components portals_utcp" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ess_portals_utcp_DSO=1 ++else ++ BUILD_ess_portals_utcp_DSO=0 ++fi ++ ++ if test "$BUILD_ess_portals_utcp_DSO" = "1"; then ++ OMPI_BUILD_ess_portals_utcp_DSO_TRUE= ++ OMPI_BUILD_ess_portals_utcp_DSO_FALSE='#' ++else ++ OMPI_BUILD_ess_portals_utcp_DSO_TRUE='#' ++ OMPI_BUILD_ess_portals_utcp_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/orte/mca/ess/cnos/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component ess:cnos (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ess ++ component=cnos ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ess ++ component=cnos ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ess" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ # check for cnos functions ++ # a bit of a hack,,, we don't want ess_cnos if alps ++ # was requested, and we can't rely on build priority because ++ # ess_alps uses priorty 10 so that ess_hnp is built as well. ++ { echo "$as_me:$LINENO: checking for cnos_get_rank" >&5 ++echo $ECHO_N "checking for cnos_get_rank... $ECHO_C" >&6; } ++if test "${ac_cv_func_cnos_get_rank+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define cnos_get_rank to an innocuous variant, in case declares cnos_get_rank. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define cnos_get_rank innocuous_cnos_get_rank ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char cnos_get_rank (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef cnos_get_rank ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cnos_get_rank (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_cnos_get_rank || defined __stub___cnos_get_rank ++choke me ++#endif ++ ++int ++main () ++{ ++return cnos_get_rank (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_cnos_get_rank=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_cnos_get_rank=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_cnos_get_rank" >&5 ++echo "${ECHO_T}$ac_cv_func_cnos_get_rank" >&6; } ++if test $ac_cv_func_cnos_get_rank = yes; then ++ ++ ++# Check whether --with-alps was given. ++if test "${with_alps+set}" = set; then ++ withval=$with_alps; ++fi ++ ++ if test "$with_alps" = "yes" ; then ++ ompi_check_alps_happy="yes" ++ fi ++ if test "$ompi_check_alps_happy" = "yes"; then ++ should_build=0 ++else ++ should_build=1 ++fi ++ ++ ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ess ++ component=cnos ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ess" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ess" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ess:cnos can compile" >&5 ++echo $ECHO_N "checking if MCA component ess:cnos can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ess" = "cnos" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"cnos\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "cnos" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"cnos\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components cnos" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ess_cnos_DSO=1 ++else ++ BUILD_ess_cnos_DSO=0 ++fi ++ ++ if test "$BUILD_ess_cnos_DSO" = "1"; then ++ OMPI_BUILD_ess_cnos_DSO_TRUE= ++ OMPI_BUILD_ess_cnos_DSO_FALSE='#' ++else ++ OMPI_BUILD_ess_cnos_DSO_TRUE='#' ++ OMPI_BUILD_ess_cnos_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/orte/mca/ess/alps/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component ess:alps (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ess ++ component=alps ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ess ++ component=alps ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ess" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-alps was given. ++if test "${with_alps+set}" = set; then ++ withval=$with_alps; ++fi ++ ++ if test "$with_alps" = "yes" ; then ++ ompi_check_alps_happy="yes" ++ fi ++ if test "$ompi_check_alps_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for cnos_get_rank" >&5 ++echo $ECHO_N "checking for cnos_get_rank... $ECHO_C" >&6; } ++if test "${ac_cv_func_cnos_get_rank+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define cnos_get_rank to an innocuous variant, in case declares cnos_get_rank. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define cnos_get_rank innocuous_cnos_get_rank ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char cnos_get_rank (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef cnos_get_rank ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cnos_get_rank (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_cnos_get_rank || defined __stub___cnos_get_rank ++choke me ++#endif ++ ++int ++main () ++{ ++return cnos_get_rank (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_cnos_get_rank=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_cnos_get_rank=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_cnos_get_rank" >&5 ++echo "${ECHO_T}$ac_cv_func_cnos_get_rank" >&6; } ++if test $ac_cv_func_cnos_get_rank = yes; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++else ++ should_build=0 ++fi ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ess ++ component=alps ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ess" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ess" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ess:alps can compile" >&5 ++echo $ECHO_N "checking if MCA component ess:alps can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ess" = "alps" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"alps\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "alps" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"alps\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components alps" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ess_alps_DSO=1 ++else ++ BUILD_ess_alps_DSO=0 ++fi ++ ++ if test "$BUILD_ess_alps_DSO" = "1"; then ++ OMPI_BUILD_ess_alps_DSO_TRUE= ++ OMPI_BUILD_ess_alps_DSO_FALSE='#' ++else ++ OMPI_BUILD_ess_alps_DSO_TRUE='#' ++ OMPI_BUILD_ess_alps_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/orte/mca/ess/env/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component ess:env (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ess ++ component=env ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ess ++ component=env ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ess" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ should_build=1 ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ess ++ component=env ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ess" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ess" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ess:env can compile" >&5 ++echo $ECHO_N "checking if MCA component ess:env can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ess" = "env" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"env\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "env" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"env\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components env" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ess_env_DSO=1 ++else ++ BUILD_ess_env_DSO=0 ++fi ++ ++ if test "$BUILD_ess_env_DSO" = "1"; then ++ OMPI_BUILD_ess_env_DSO_TRUE= ++ OMPI_BUILD_ess_env_DSO_FALSE='#' ++else ++ OMPI_BUILD_ess_env_DSO_TRUE='#' ++ OMPI_BUILD_ess_env_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/orte/mca/ess/hnp/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component ess:hnp (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ess ++ component=hnp ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ess ++ component=hnp ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ess" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ should_build=1 ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ess ++ component=hnp ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ess" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ess" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ess:hnp can compile" >&5 ++echo $ECHO_N "checking if MCA component ess:hnp can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ess" = "hnp" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"hnp\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"hnp\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "hnp" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"hnp\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"hnp\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components hnp" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ess_hnp_DSO=1 ++else ++ BUILD_ess_hnp_DSO=0 ++fi ++ ++ if test "$BUILD_ess_hnp_DSO" = "1"; then ++ OMPI_BUILD_ess_hnp_DSO_TRUE= ++ OMPI_BUILD_ess_hnp_DSO_FALSE='#' ++else ++ OMPI_BUILD_ess_hnp_DSO_TRUE='#' ++ OMPI_BUILD_ess_hnp_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/orte/mca/ess/lsf/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component ess:lsf (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ess ++ component=lsf ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ess ++ component=lsf ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ess" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-lsf was given. ++if test "${with_lsf+set}" = set; then ++ withval=$with_lsf; ++fi ++ ++ ++# Check whether --with-lsf-libdir was given. ++if test "${with_lsf_libdir+set}" = set; then ++ withval=$with_lsf_libdir; ++fi ++ ++ ++ # Defaults ++ ompi_check_lsf_dir_msg="compiler default" ++ ompi_check_lsf_libdir_msg="linker default" ++ ++ # Save directory names if supplied ++ if test ! -z "$with_lsf" -a "$with_lsf" != "yes"; then ++ ompi_check_lsf_dir="$with_lsf" ++ ompi_check_lsf_dir_msg="$ompi_check_lsf_dir (from --with-lsf)" ++fi ++ ++ if test ! -z "$with_lsf_libdir" -a "$with_lsf_libdir" != "yes"; then ++ ompi_check_lsf_libdir="$with_lsf_libdir" ++ ompi_check_lsf_libdir_msg="$ompi_check_lsf_libdir (from --with-lsf-libdir)" ++fi ++ ++ ++ # If no directories were specified, look for LSF_LIBDIR, ++ # LSF_INCLUDEDIR, and/or LSF_ENVDIR. ++ if test -z "$ompi_check_lsf_dir" -a -z "$ompi_check_lsf_libdir"; then ++ if test ! -z "$LSF_ENVDIR" -a -z "$LSF_LIBDIR" -a -f "$LSF_ENVDIR/lsf.conf"; then ++ LSF_LIBDIR=`egrep ^LSF_LIBDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-` ++fi ++ ++ if test ! -z "$LSF_ENVDIR" -a -z "$LSF_INCLUDEDIR" -a -f "$LSF_ENVDIR/lsf.conf"; then ++ LSF_INCLUDEDIR=`egrep ^LSF_INCLUDEDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-` ++fi ++ ++ if test ! -z "$LSF_LIBDIR"; then ++ ompi_check_lsf_libdir=$LSF_LIBDIR ++ ompi_check_lsf_libdir_msg="$LSF_LIBDIR (from \$LSF_LIBDIR)" ++fi ++ ++ if test ! -z "$LSF_INCLUDEDIR"; then ++ ompi_check_lsf_dir=`dirname $LSF_INCLUDEDIR` ++ ompi_check_lsf_dir_msg="$ompi_check_lsf_dir (from \$LSF_INCLUDEDIR)" ++fi ++ ++fi ++ ++ ++ if test "$with_lsf" = "no"; then ++ ompi_check_lsf_happy="no" ++else ++ ompi_check_lsf_happy="yes" ++fi ++ ++ ++ ompi_check_lsf_ess_lsf_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_lsf_ess_lsf_save_LDFLAGS="$LDFLAGS" ++ ompi_check_lsf_ess_lsf_save_LIBS="$LIBS" ++ ++ if test "$ompi_check_lsf_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for LSF dir" >&5 ++echo $ECHO_N "checking for LSF dir... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $ompi_check_lsf_dir_msg" >&5 ++echo "${ECHO_T}$ompi_check_lsf_dir_msg" >&6; } ++ { echo "$as_me:$LINENO: checking for LSF library dir" >&5 ++echo $ECHO_N "checking for LSF library dir... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $ompi_check_lsf_libdir_msg" >&5 ++echo "${ECHO_T}$ompi_check_lsf_libdir_msg" >&6; } ++ ++ ompi_check_package_ess_lsf_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_ess_lsf_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_ess_lsf_save_LIBS="$LIBS" ++ ++ ompi_check_package_ess_lsf_orig_CPPFLAGS="$ess_lsf_CPPFLAGS" ++ ompi_check_package_ess_lsf_orig_LDFLAGS="$ess_lsf_LDFLAGS" ++ ompi_check_package_ess_lsf_orig_LIBS="$ess_lsf_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_lsf_lsbatch_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_lsf_dir" = "/usr" -o "$ompi_check_lsf_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5 ++echo $ECHO_N "checking for lsf/lsbatch.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5 ++echo "${ECHO_T}$ac_cv_header_lsf_lsbatch_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking lsf/lsbatch.h usability" >&5 ++echo $ECHO_N "checking lsf/lsbatch.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking lsf/lsbatch.h presence" >&5 ++echo $ECHO_N "checking lsf/lsbatch.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5 ++echo $ECHO_N "checking for lsf/lsbatch.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_lsf_lsbatch_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5 ++echo "${ECHO_T}$ac_cv_header_lsf_lsbatch_h" >&6; } ++ ++fi ++if test $ac_cv_header_lsf_lsbatch_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_lsf_lsbatch_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_lsf_dir" != ""; then ++ ess_lsf_CPPFLAGS="$ess_lsf_CPPFLAGS -I$ompi_check_lsf_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_lsf_dir/include" ++fi ++ ++ if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5 ++echo $ECHO_N "checking for lsf/lsbatch.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5 ++echo "${ECHO_T}$ac_cv_header_lsf_lsbatch_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking lsf/lsbatch.h usability" >&5 ++echo $ECHO_N "checking lsf/lsbatch.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking lsf/lsbatch.h presence" >&5 ++echo $ECHO_N "checking lsf/lsbatch.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5 ++echo $ECHO_N "checking for lsf/lsbatch.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_lsf_lsbatch_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5 ++echo "${ECHO_T}$ac_cv_header_lsf_lsbatch_h" >&6; } ++ ++fi ++if test $ac_cv_header_lsf_lsbatch_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_bat_lsb_launch ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_lsf_libdir" != ""; then ++ # libdir was specified - search only there ++ ess_lsf_LDFLAGS="$ess_lsf_LDFLAGS -L$ompi_check_lsf_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_lsf_libdir" ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS" ++ ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_lsf_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS" ++ ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ess_lsf_LDFLAGS="$ess_lsf_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS" ++ ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ess_lsf_LDFLAGS="$ess_lsf_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS" ++ ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ ess_lsf_LIBS="-lbat -llsf" ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_bat_lsb_launch ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_lsf_libdir" != ""; then ++ # libdir was specified - search only there ++ ess_lsf_LDFLAGS="$ess_lsf_LDFLAGS -L$ompi_check_lsf_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_lsf_libdir" ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS" ++ ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_lsf_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS" ++ ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ess_lsf_LDFLAGS="$ess_lsf_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS" ++ ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ess_lsf_LDFLAGS="$ess_lsf_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS" ++ ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ ess_lsf_LIBS="-lbat -llsf" ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ ompi_check_lsf_happy="yes" ++else ++ ess_lsf_CPPFLAGS="$ompi_check_package_ess_lsf_orig_CPPFLAGS" ++ ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS" ++ ess_lsf_LIBS="$ompi_check_package_ess_lsf_orig_LIBS" ++ ompi_check_lsf_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_ess_lsf_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS" ++ LIBS="$ompi_check_package_ess_lsf_save_LIBS" ++ ++fi ++ ++ ++ CPPFLAGS="$ompi_check_lsf_ess_lsf_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_lsf_ess_lsf_save_LDFLAGS" ++ LIBS="$ompi_check_lsf_ess_lsf_save_LIBS" ++ ++ # Reset for the next time we're called ++ ompi_check_lsf_dir= ++ ompi_check_lsf_libdir= ++ ++ if test "$ompi_check_lsf_happy" = "yes"; then ++ ess_lsf_good=1 ++else ++ if test ! -z "$with_lsf" -a "$with_lsf" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: LSF support requested (via --with-lsf) but not found." >&5 ++echo "$as_me: WARNING: LSF support requested (via --with-lsf) but not found." >&2;} ++ { { echo "$as_me:$LINENO: error: Aborting." >&5 ++echo "$as_me: error: Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ess_lsf_good=0 ++fi ++ ++ ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ if test "$ess_lsf_good" = "1"; then ++ ess_lsf_WRAPPER_EXTRA_LDFLAGS="$ess_lsf_LDFLAGS" ++ ess_lsf_WRAPPER_EXTRA_LIBS="$ess_lsf_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # set build flags to use in makefile ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ess ++ component=lsf ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ess" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ess" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ess:lsf can compile" >&5 ++echo $ECHO_N "checking if MCA component ess:lsf can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ess" = "lsf" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"lsf\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "lsf" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"lsf\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components lsf" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ess_lsf_DSO=1 ++else ++ BUILD_ess_lsf_DSO=0 ++fi ++ ++ if test "$BUILD_ess_lsf_DSO" = "1"; then ++ OMPI_BUILD_ess_lsf_DSO_TRUE= ++ OMPI_BUILD_ess_lsf_DSO_FALSE='#' ++else ++ OMPI_BUILD_ess_lsf_DSO_TRUE='#' ++ OMPI_BUILD_ess_lsf_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/orte/mca/ess/singleton/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component ess:singleton (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ess ++ component=singleton ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ess ++ component=singleton ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ess" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ should_build=1 ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ess ++ component=singleton ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ess" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ess" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ess:singleton can compile" >&5 ++echo $ECHO_N "checking if MCA component ess:singleton can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ess" = "singleton" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"singleton\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"singleton\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "singleton" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"singleton\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"singleton\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components singleton" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ess_singleton_DSO=1 ++else ++ BUILD_ess_singleton_DSO=0 ++fi ++ ++ if test "$BUILD_ess_singleton_DSO" = "1"; then ++ OMPI_BUILD_ess_singleton_DSO_TRUE= ++ OMPI_BUILD_ess_singleton_DSO_FALSE='#' ++else ++ OMPI_BUILD_ess_singleton_DSO_TRUE='#' ++ OMPI_BUILD_ess_singleton_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/orte/mca/ess/slurm/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component ess:slurm (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ess ++ component=slurm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ess ++ component=slurm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ess" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-slurm was given. ++if test "${with_slurm+set}" = set; then ++ withval=$with_slurm; ++fi ++ ++ ++ if test "$with_slurm" = "no" ; then ++ ompi_check_slurm_happy="no" ++ elif test "$with_slurm" = "" ; then ++ # unless user asked, only build slurm component on linux, AIX, ++ # and OS X systems (these are the platforms that SLURM ++ # supports) ++ case $host in ++ *-linux*|*-aix*|*-apple-darwin*) ++ ompi_check_slurm_happy="yes" ++ ;; ++ *) ++ { echo "$as_me:$LINENO: checking for SLURM srun in PATH" >&5 ++echo $ECHO_N "checking for SLURM srun in PATH... $ECHO_C" >&6; } ++ ++# 1 is the variable name to do "which" on ++# 2 is the variable name to assign the return value to ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ompi_prog=srun ++ ++IFS_SAVE=$IFS ++IFS="$PATH_SEPARATOR" ++for ompi_dir in $PATH; do ++ if test -x "$ompi_dir/$ompi_prog"; then ++ OMPI_CHECK_SLURM_SRUN="$ompi_dir/$ompi_prog" ++ break ++ fi ++done ++IFS=$IFS_SAVE ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ if test "$OMPI_CHECK_SLURM_SRUN" = ""; then ++ ompi_check_slurm_happy="no" ++ else ++ ompi_check_slurm_happy="yes" ++ fi ++ { echo "$as_me:$LINENO: result: $ompi_check_slurm_happy" >&5 ++echo "${ECHO_T}$ompi_check_slurm_happy" >&6; } ++ ;; ++ esac ++ else ++ ompi_check_slurm_happy="yes" ++ fi ++ ++ if test "$ompi_check_slurm_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for fork" >&5 ++echo $ECHO_N "checking for fork... $ECHO_C" >&6; } ++if test "${ac_cv_func_fork+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define fork to an innocuous variant, in case declares fork. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define fork innocuous_fork ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char fork (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef fork ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char fork (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_fork || defined __stub___fork ++choke me ++#endif ++ ++int ++main () ++{ ++return fork (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_fork=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_fork=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5 ++echo "${ECHO_T}$ac_cv_func_fork" >&6; } ++if test $ac_cv_func_fork = yes; then ++ ompi_check_slurm_happy="yes" ++else ++ ompi_check_slurm_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_slurm_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for execve" >&5 ++echo $ECHO_N "checking for execve... $ECHO_C" >&6; } ++if test "${ac_cv_func_execve+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define execve to an innocuous variant, in case declares execve. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define execve innocuous_execve ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char execve (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef execve ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char execve (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_execve || defined __stub___execve ++choke me ++#endif ++ ++int ++main () ++{ ++return execve (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_execve=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_execve=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_execve" >&5 ++echo "${ECHO_T}$ac_cv_func_execve" >&6; } ++if test $ac_cv_func_execve = yes; then ++ ompi_check_slurm_happy="yes" ++else ++ ompi_check_slurm_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_slurm_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for setpgid" >&5 ++echo $ECHO_N "checking for setpgid... $ECHO_C" >&6; } ++if test "${ac_cv_func_setpgid+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define setpgid to an innocuous variant, in case declares setpgid. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define setpgid innocuous_setpgid ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char setpgid (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef setpgid ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char setpgid (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_setpgid || defined __stub___setpgid ++choke me ++#endif ++ ++int ++main () ++{ ++return setpgid (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_setpgid=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_setpgid=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5 ++echo "${ECHO_T}$ac_cv_func_setpgid" >&6; } ++if test $ac_cv_func_setpgid = yes; then ++ ompi_check_slurm_happy="yes" ++else ++ ompi_check_slurm_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_slurm_happy" = "yes"; then ++ ess_slurm_good=1 ++else ++ ess_slurm_good=0 ++fi ++ ++ ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ if test "$ess_slurm_good" = "1"; then ++ ess_slurm_WRAPPER_EXTRA_LDFLAGS="$ess_slurm_LDFLAGS" ++ ess_slurm_WRAPPER_EXTRA_LIBS="$ess_slurm_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # set build flags to use in makefile ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ess ++ component=slurm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ess" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ess" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ess:slurm can compile" >&5 ++echo $ECHO_N "checking if MCA component ess:slurm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ess" = "slurm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "slurm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components slurm" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ess_slurm_DSO=1 ++else ++ BUILD_ess_slurm_DSO=0 ++fi ++ ++ if test "$BUILD_ess_slurm_DSO" = "1"; then ++ OMPI_BUILD_ess_slurm_DSO_TRUE= ++ OMPI_BUILD_ess_slurm_DSO_FALSE='#' ++else ++ OMPI_BUILD_ess_slurm_DSO_TRUE='#' ++ OMPI_BUILD_ess_slurm_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/orte/mca/ess/tool/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component ess:tool (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ess ++ component=tool ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ess ++ component=tool ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ess" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ should_build=1 ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ess ++ component=tool ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ess" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ess" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ess:tool can compile" >&5 ++echo $ECHO_N "checking if MCA component ess:tool can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ess" = "tool" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tool\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tool\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "tool" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tool\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tool\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components tool" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ess_tool_DSO=1 ++else ++ BUILD_ess_tool_DSO=0 ++fi ++ ++ if test "$BUILD_ess_tool_DSO" = "1"; then ++ OMPI_BUILD_ess_tool_DSO_TRUE= ++ OMPI_BUILD_ess_tool_DSO_FALSE='#' ++else ++ OMPI_BUILD_ess_tool_DSO_TRUE='#' ++ OMPI_BUILD_ess_tool_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ ++ ++ MCA_ess_ALL_COMPONENTS="$all_components" ++ MCA_ess_STATIC_COMPONENTS="$static_components" ++ MCA_ess_DSO_COMPONENTS="$dso_components" ++ MCA_ess_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_ess_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_ess_ALL_SUBDIRS="$MCA_ess_ALL_SUBDIRS mca/ess/$item" ++ done ++ ++ ++ ++ MCA_ess_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_ess_STATIC_SUBDIRS="$MCA_ess_STATIC_SUBDIRS mca/ess/$item" ++ done ++ ++ ++ ++ MCA_ess_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_ess_DSO_SUBDIRS="$MCA_ess_DSO_SUBDIRS mca/ess/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "ess" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "filem" = "common" ; then ++ MCA_orte_FRAMEWORKS="filem $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/filem $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_filem_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_filem_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_filem_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS filem" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/filem" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_filem_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_filem_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_filem_STATIC_SUBDIRS)" ++ fi ++ if test "filem" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/filem/libmca_filem.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_filem_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework filem" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "filem" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/filem/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework filem" >&5 ++echo $ECHO_N "checking for no configure components in framework filem... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: rsh" >&5 ++echo "${ECHO_T}rsh" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework filem" >&5 ++echo $ECHO_N "checking for m4 configure components in framework filem... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component filem:rsh (no configuration)" ++ ++ ++ ++ ++ project=orte ++ framework=filem ++ component=rsh ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_filem" ; then ++ if test "$DIRECT_filem" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=filem ++ component=rsh ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_filem" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=filem ++ component=rsh ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_filem" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_filem" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component filem:rsh can compile" >&5 ++echo $ECHO_N "checking if MCA component filem:rsh can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_filem" = "rsh" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"rsh\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"rsh\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_filem" ; then ++ if test "$DIRECT_filem" = "rsh" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"rsh\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"rsh\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components rsh" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_filem_rsh_DSO=1 ++ else ++ BUILD_filem_rsh_DSO=0 ++ fi ++ if test "$BUILD_filem_rsh_DSO" = "1"; then ++ OMPI_BUILD_filem_rsh_DSO_TRUE= ++ OMPI_BUILD_filem_rsh_DSO_FALSE='#' ++else ++ OMPI_BUILD_filem_rsh_DSO_TRUE='#' ++ OMPI_BUILD_filem_rsh_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/orte/mca/filem/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component filem:$component (need to configure)" ++ ++ ++ ++ ++ project=orte ++ framework=filem ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_filem" ; then ++ if test "$DIRECT_filem" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=filem ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_filem" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# orte/mca/filem/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="orte/mca/filem/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=filem ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_filem" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_filem" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component filem:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component filem:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_filem" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_filem" ; then ++ if test "$DIRECT_filem" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_filem_ALL_COMPONENTS="$all_components" ++ MCA_filem_STATIC_COMPONENTS="$static_components" ++ MCA_filem_DSO_COMPONENTS="$dso_components" ++ MCA_filem_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_filem_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_filem_ALL_SUBDIRS="$MCA_filem_ALL_SUBDIRS mca/filem/$item" ++ done ++ ++ ++ ++ MCA_filem_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_filem_STATIC_SUBDIRS="$MCA_filem_STATIC_SUBDIRS mca/filem/$item" ++ done ++ ++ ++ ++ MCA_filem_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_filem_DSO_SUBDIRS="$MCA_filem_DSO_SUBDIRS mca/filem/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "filem" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "grpcomm" = "common" ; then ++ MCA_orte_FRAMEWORKS="grpcomm $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/grpcomm $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_grpcomm_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_grpcomm_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_grpcomm_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS grpcomm" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/grpcomm" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_grpcomm_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_grpcomm_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_grpcomm_STATIC_SUBDIRS)" ++ fi ++ if test "grpcomm" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/grpcomm/libmca_grpcomm.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_grpcomm_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework grpcomm" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "grpcomm" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/grpcomm/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework grpcomm" >&5 ++echo $ECHO_N "checking for no configure components in framework grpcomm... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework grpcomm" >&5 ++echo $ECHO_N "checking for m4 configure components in framework grpcomm... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: cnos, bad, basic" >&5 ++echo "${ECHO_T}cnos, bad, basic" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ # get the component's priority... ++ infile="$srcdir/orte/mca/grpcomm/cnos/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component grpcomm:cnos (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=grpcomm ++ component=cnos ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_grpcomm" ; then ++ if test "$DIRECT_grpcomm" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=grpcomm ++ component=cnos ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_grpcomm" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ grpcomm_cnos_happy="no" ++ # see if we should enable super secret utcp support ++ if test "$with_grpcomm_cnos" = "utcp" ; then ++ grpcomm_cnos_happy="yes" ++ grpcomm_cnos_barrier=0 ++ else ++ # check for cnos functions ++ { echo "$as_me:$LINENO: checking for cnos_barrier" >&5 ++echo $ECHO_N "checking for cnos_barrier... $ECHO_C" >&6; } ++if test "${ac_cv_func_cnos_barrier+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define cnos_barrier to an innocuous variant, in case declares cnos_barrier. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define cnos_barrier innocuous_cnos_barrier ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char cnos_barrier (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef cnos_barrier ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cnos_barrier (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_cnos_barrier || defined __stub___cnos_barrier ++choke me ++#endif ++ ++int ++main () ++{ ++return cnos_barrier (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_cnos_barrier=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_cnos_barrier=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_cnos_barrier" >&5 ++echo "${ECHO_T}$ac_cv_func_cnos_barrier" >&6; } ++if test $ac_cv_func_cnos_barrier = yes; then ++ grpcomm_cnos_happy="yes" ++ grpcomm_cnos_barrier=1 ++else ++ grpcomm_cnos_happy="no" ++ grpcomm_cnos_barrier=0 ++fi ++ ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_GRPCOMM_CNOS_HAVE_BARRIER $grpcomm_cnos_barrier ++_ACEOF ++ ++ if test "$grpcomm_cnos_happy" = "yes"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=grpcomm ++ component=cnos ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_grpcomm" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_grpcomm" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component grpcomm:cnos can compile" >&5 ++echo $ECHO_N "checking if MCA component grpcomm:cnos can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_grpcomm" = "cnos" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"cnos\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_grpcomm" ; then ++ if test "$DIRECT_grpcomm" = "cnos" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"cnos\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components cnos" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_grpcomm_cnos_DSO=1 ++else ++ BUILD_grpcomm_cnos_DSO=0 ++fi ++ ++ if test "$BUILD_grpcomm_cnos_DSO" = "1"; then ++ OMPI_BUILD_grpcomm_cnos_DSO_TRUE= ++ OMPI_BUILD_grpcomm_cnos_DSO_FALSE='#' ++else ++ OMPI_BUILD_grpcomm_cnos_DSO_TRUE='#' ++ OMPI_BUILD_grpcomm_cnos_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/orte/mca/grpcomm/bad/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component grpcomm:bad (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=grpcomm ++ component=bad ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_grpcomm" ; then ++ if test "$DIRECT_grpcomm" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=grpcomm ++ component=bad ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_grpcomm" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ should_build=1 ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=grpcomm ++ component=bad ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_grpcomm" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_grpcomm" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component grpcomm:bad can compile" >&5 ++echo $ECHO_N "checking if MCA component grpcomm:bad can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_grpcomm" = "bad" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"bad\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"bad\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_grpcomm" ; then ++ if test "$DIRECT_grpcomm" = "bad" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"bad\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"bad\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components bad" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_grpcomm_bad_DSO=1 ++else ++ BUILD_grpcomm_bad_DSO=0 ++fi ++ ++ if test "$BUILD_grpcomm_bad_DSO" = "1"; then ++ OMPI_BUILD_grpcomm_bad_DSO_TRUE= ++ OMPI_BUILD_grpcomm_bad_DSO_FALSE='#' ++else ++ OMPI_BUILD_grpcomm_bad_DSO_TRUE='#' ++ OMPI_BUILD_grpcomm_bad_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/orte/mca/grpcomm/basic/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component grpcomm:basic (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=grpcomm ++ component=basic ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_grpcomm" ; then ++ if test "$DIRECT_grpcomm" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=grpcomm ++ component=basic ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_grpcomm" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ should_build=1 ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=grpcomm ++ component=basic ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_grpcomm" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_grpcomm" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component grpcomm:basic can compile" >&5 ++echo $ECHO_N "checking if MCA component grpcomm:basic can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_grpcomm" = "basic" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_grpcomm" ; then ++ if test "$DIRECT_grpcomm" = "basic" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components basic" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_grpcomm_basic_DSO=1 ++else ++ BUILD_grpcomm_basic_DSO=0 ++fi ++ ++ if test "$BUILD_grpcomm_basic_DSO" = "1"; then ++ OMPI_BUILD_grpcomm_basic_DSO_TRUE= ++ OMPI_BUILD_grpcomm_basic_DSO_FALSE='#' ++else ++ OMPI_BUILD_grpcomm_basic_DSO_TRUE='#' ++ OMPI_BUILD_grpcomm_basic_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ ++ ++ MCA_grpcomm_ALL_COMPONENTS="$all_components" ++ MCA_grpcomm_STATIC_COMPONENTS="$static_components" ++ MCA_grpcomm_DSO_COMPONENTS="$dso_components" ++ MCA_grpcomm_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_grpcomm_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_grpcomm_ALL_SUBDIRS="$MCA_grpcomm_ALL_SUBDIRS mca/grpcomm/$item" ++ done ++ ++ ++ ++ MCA_grpcomm_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_grpcomm_STATIC_SUBDIRS="$MCA_grpcomm_STATIC_SUBDIRS mca/grpcomm/$item" ++ done ++ ++ ++ ++ MCA_grpcomm_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_grpcomm_DSO_SUBDIRS="$MCA_grpcomm_DSO_SUBDIRS mca/grpcomm/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "grpcomm" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "iof" = "common" ; then ++ MCA_orte_FRAMEWORKS="iof $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/iof $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_iof_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_iof_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_iof_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS iof" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/iof" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_iof_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_iof_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_iof_STATIC_SUBDIRS)" ++ fi ++ if test "iof" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/iof/libmca_iof.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_iof_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework iof" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "iof" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/iof/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework iof" >&5 ++echo $ECHO_N "checking for no configure components in framework iof... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: hnp, orted, tool" >&5 ++echo "${ECHO_T}hnp, orted, tool" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework iof" >&5 ++echo $ECHO_N "checking for m4 configure components in framework iof... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component iof:hnp (no configuration)" ++ ++ ++ ++ ++ project=orte ++ framework=iof ++ component=hnp ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_iof" ; then ++ if test "$DIRECT_iof" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=iof ++ component=hnp ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_iof" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=iof ++ component=hnp ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_iof" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_iof" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component iof:hnp can compile" >&5 ++echo $ECHO_N "checking if MCA component iof:hnp can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_iof" = "hnp" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"hnp\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"hnp\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_iof" ; then ++ if test "$DIRECT_iof" = "hnp" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"hnp\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"hnp\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components hnp" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_iof_hnp_DSO=1 ++ else ++ BUILD_iof_hnp_DSO=0 ++ fi ++ if test "$BUILD_iof_hnp_DSO" = "1"; then ++ OMPI_BUILD_iof_hnp_DSO_TRUE= ++ OMPI_BUILD_iof_hnp_DSO_FALSE='#' ++else ++ OMPI_BUILD_iof_hnp_DSO_TRUE='#' ++ OMPI_BUILD_iof_hnp_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component iof:orted (no configuration)" ++ ++ ++ ++ ++ project=orte ++ framework=iof ++ component=orted ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_iof" ; then ++ if test "$DIRECT_iof" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=iof ++ component=orted ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_iof" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=iof ++ component=orted ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_iof" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_iof" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component iof:orted can compile" >&5 ++echo $ECHO_N "checking if MCA component iof:orted can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_iof" = "orted" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"orted\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"orted\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_iof" ; then ++ if test "$DIRECT_iof" = "orted" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"orted\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"orted\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components orted" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_iof_orted_DSO=1 ++ else ++ BUILD_iof_orted_DSO=0 ++ fi ++ if test "$BUILD_iof_orted_DSO" = "1"; then ++ OMPI_BUILD_iof_orted_DSO_TRUE= ++ OMPI_BUILD_iof_orted_DSO_FALSE='#' ++else ++ OMPI_BUILD_iof_orted_DSO_TRUE='#' ++ OMPI_BUILD_iof_orted_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component iof:tool (no configuration)" ++ ++ ++ ++ ++ project=orte ++ framework=iof ++ component=tool ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_iof" ; then ++ if test "$DIRECT_iof" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=iof ++ component=tool ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_iof" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=iof ++ component=tool ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_iof" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_iof" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component iof:tool can compile" >&5 ++echo $ECHO_N "checking if MCA component iof:tool can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_iof" = "tool" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tool\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tool\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_iof" ; then ++ if test "$DIRECT_iof" = "tool" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tool\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tool\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components tool" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_iof_tool_DSO=1 ++ else ++ BUILD_iof_tool_DSO=0 ++ fi ++ if test "$BUILD_iof_tool_DSO" = "1"; then ++ OMPI_BUILD_iof_tool_DSO_TRUE= ++ OMPI_BUILD_iof_tool_DSO_FALSE='#' ++else ++ OMPI_BUILD_iof_tool_DSO_TRUE='#' ++ OMPI_BUILD_iof_tool_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/orte/mca/iof/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component iof:$component (need to configure)" ++ ++ ++ ++ ++ project=orte ++ framework=iof ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_iof" ; then ++ if test "$DIRECT_iof" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=iof ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_iof" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# orte/mca/iof/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="orte/mca/iof/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=iof ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_iof" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_iof" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component iof:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component iof:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_iof" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_iof" ; then ++ if test "$DIRECT_iof" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_iof_ALL_COMPONENTS="$all_components" ++ MCA_iof_STATIC_COMPONENTS="$static_components" ++ MCA_iof_DSO_COMPONENTS="$dso_components" ++ MCA_iof_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_iof_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_iof_ALL_SUBDIRS="$MCA_iof_ALL_SUBDIRS mca/iof/$item" ++ done ++ ++ ++ ++ MCA_iof_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_iof_STATIC_SUBDIRS="$MCA_iof_STATIC_SUBDIRS mca/iof/$item" ++ done ++ ++ ++ ++ MCA_iof_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_iof_DSO_SUBDIRS="$MCA_iof_DSO_SUBDIRS mca/iof/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "iof" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "notifier" = "common" ; then ++ MCA_orte_FRAMEWORKS="notifier $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/notifier $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_notifier_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_notifier_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_notifier_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS notifier" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/notifier" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_notifier_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_notifier_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_notifier_STATIC_SUBDIRS)" ++ fi ++ if test "notifier" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/notifier/libmca_notifier.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_notifier_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework notifier" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "notifier" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/notifier/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework notifier" >&5 ++echo $ECHO_N "checking for no configure components in framework notifier... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework notifier" >&5 ++echo $ECHO_N "checking for m4 configure components in framework notifier... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: syslog" >&5 ++echo "${ECHO_T}syslog" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component notifier:syslog (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=notifier ++ component=syslog ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_notifier" ; then ++ if test "$DIRECT_notifier" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=notifier ++ component=syslog ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_notifier" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ should_build=1 ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=notifier ++ component=syslog ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_notifier" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_notifier" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component notifier:syslog can compile" >&5 ++echo $ECHO_N "checking if MCA component notifier:syslog can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_notifier" = "syslog" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"syslog\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"syslog\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_notifier" ; then ++ if test "$DIRECT_notifier" = "syslog" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"syslog\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"syslog\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components syslog" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_notifier_syslog_DSO=1 ++else ++ BUILD_notifier_syslog_DSO=0 ++fi ++ ++ if test "$BUILD_notifier_syslog_DSO" = "1"; then ++ OMPI_BUILD_notifier_syslog_DSO_TRUE= ++ OMPI_BUILD_notifier_syslog_DSO_FALSE='#' ++else ++ OMPI_BUILD_notifier_syslog_DSO_TRUE='#' ++ OMPI_BUILD_notifier_syslog_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/orte/mca/notifier/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component notifier:$component (need to configure)" ++ ++ ++ ++ ++ project=orte ++ framework=notifier ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_notifier" ; then ++ if test "$DIRECT_notifier" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=notifier ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_notifier" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# orte/mca/notifier/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="orte/mca/notifier/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=notifier ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_notifier" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_notifier" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component notifier:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component notifier:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_notifier" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_notifier" ; then ++ if test "$DIRECT_notifier" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_notifier_ALL_COMPONENTS="$all_components" ++ MCA_notifier_STATIC_COMPONENTS="$static_components" ++ MCA_notifier_DSO_COMPONENTS="$dso_components" ++ MCA_notifier_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_notifier_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_notifier_ALL_SUBDIRS="$MCA_notifier_ALL_SUBDIRS mca/notifier/$item" ++ done ++ ++ ++ ++ MCA_notifier_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_notifier_STATIC_SUBDIRS="$MCA_notifier_STATIC_SUBDIRS mca/notifier/$item" ++ done ++ ++ ++ ++ MCA_notifier_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_notifier_DSO_SUBDIRS="$MCA_notifier_DSO_SUBDIRS mca/notifier/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "notifier" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "odls" = "common" ; then ++ MCA_orte_FRAMEWORKS="odls $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/odls $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_odls_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_odls_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_odls_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS odls" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/odls" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_odls_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_odls_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_odls_STATIC_SUBDIRS)" ++ fi ++ if test "odls" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/odls/libmca_odls.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_odls_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework odls" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "odls" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/odls/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework odls" >&5 ++echo $ECHO_N "checking for no configure components in framework odls... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework odls" >&5 ++echo $ECHO_N "checking for m4 configure components in framework odls... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: default" >&5 ++echo "${ECHO_T}default" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component odls:default (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=odls ++ component=default ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_odls" ; then ++ if test "$DIRECT_odls" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=odls ++ component=default ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_odls" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ { echo "$as_me:$LINENO: checking for fork" >&5 ++echo $ECHO_N "checking for fork... $ECHO_C" >&6; } ++if test "${ac_cv_func_fork+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define fork to an innocuous variant, in case declares fork. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define fork innocuous_fork ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char fork (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef fork ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char fork (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_fork || defined __stub___fork ++choke me ++#endif ++ ++int ++main () ++{ ++return fork (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_fork=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_fork=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5 ++echo "${ECHO_T}$ac_cv_func_fork" >&6; } ++if test $ac_cv_func_fork = yes; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=odls ++ component=default ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_odls" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_odls" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component odls:default can compile" >&5 ++echo $ECHO_N "checking if MCA component odls:default can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_odls" = "default" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"default\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"default\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_odls" ; then ++ if test "$DIRECT_odls" = "default" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"default\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"default\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components default" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_odls_default_DSO=1 ++else ++ BUILD_odls_default_DSO=0 ++fi ++ ++ if test "$BUILD_odls_default_DSO" = "1"; then ++ OMPI_BUILD_odls_default_DSO_TRUE= ++ OMPI_BUILD_odls_default_DSO_FALSE='#' ++else ++ OMPI_BUILD_odls_default_DSO_TRUE='#' ++ OMPI_BUILD_odls_default_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/orte/mca/odls/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component odls:$component (need to configure)" ++ ++ ++ ++ ++ project=orte ++ framework=odls ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_odls" ; then ++ if test "$DIRECT_odls" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=odls ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_odls" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# orte/mca/odls/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="orte/mca/odls/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=odls ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_odls" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_odls" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component odls:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component odls:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_odls" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_odls" ; then ++ if test "$DIRECT_odls" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_odls_ALL_COMPONENTS="$all_components" ++ MCA_odls_STATIC_COMPONENTS="$static_components" ++ MCA_odls_DSO_COMPONENTS="$dso_components" ++ MCA_odls_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_odls_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_odls_ALL_SUBDIRS="$MCA_odls_ALL_SUBDIRS mca/odls/$item" ++ done ++ ++ ++ ++ MCA_odls_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_odls_STATIC_SUBDIRS="$MCA_odls_STATIC_SUBDIRS mca/odls/$item" ++ done ++ ++ ++ ++ MCA_odls_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_odls_DSO_SUBDIRS="$MCA_odls_DSO_SUBDIRS mca/odls/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "odls" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "oob" = "common" ; then ++ MCA_orte_FRAMEWORKS="oob $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/oob $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_oob_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_oob_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_oob_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS oob" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/oob" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_oob_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_oob_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_oob_STATIC_SUBDIRS)" ++ fi ++ if test "oob" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/oob/libmca_oob.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_oob_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework oob" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "oob" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/oob/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework oob" >&5 ++echo $ECHO_N "checking for no configure components in framework oob... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework oob" >&5 ++echo $ECHO_N "checking for m4 configure components in framework oob... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: tcp" >&5 ++echo "${ECHO_T}tcp" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component oob:tcp (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=oob ++ component=tcp ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_oob" ; then ++ if test "$DIRECT_oob" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=oob ++ component=tcp ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_oob" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ # check for sockaddr_in (a good sign we have TCP) ++ { echo "$as_me:$LINENO: checking for struct sockaddr_in" >&5 ++echo $ECHO_N "checking for struct sockaddr_in... $ECHO_C" >&6; } ++if test "${ac_cv_type_struct_sockaddr_in+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifdef HAVE_NETINET_IN_H ++#include ++#endif ++ ++typedef struct sockaddr_in ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_struct_sockaddr_in=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_struct_sockaddr_in=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in" >&5 ++echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in" >&6; } ++if test $ac_cv_type_struct_sockaddr_in = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_STRUCT_SOCKADDR_IN 1 ++_ACEOF ++ ++should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=oob ++ component=tcp ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_oob" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_oob" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component oob:tcp can compile" >&5 ++echo $ECHO_N "checking if MCA component oob:tcp can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_oob" = "tcp" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tcp\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_oob" ; then ++ if test "$DIRECT_oob" = "tcp" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tcp\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components tcp" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_oob_tcp_DSO=1 ++else ++ BUILD_oob_tcp_DSO=0 ++fi ++ ++ if test "$BUILD_oob_tcp_DSO" = "1"; then ++ OMPI_BUILD_oob_tcp_DSO_TRUE= ++ OMPI_BUILD_oob_tcp_DSO_FALSE='#' ++else ++ OMPI_BUILD_oob_tcp_DSO_TRUE='#' ++ OMPI_BUILD_oob_tcp_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/orte/mca/oob/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component oob:$component (need to configure)" ++ ++ ++ ++ ++ project=orte ++ framework=oob ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_oob" ; then ++ if test "$DIRECT_oob" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=oob ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_oob" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# orte/mca/oob/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="orte/mca/oob/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=oob ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_oob" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_oob" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component oob:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component oob:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_oob" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_oob" ; then ++ if test "$DIRECT_oob" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_oob_ALL_COMPONENTS="$all_components" ++ MCA_oob_STATIC_COMPONENTS="$static_components" ++ MCA_oob_DSO_COMPONENTS="$dso_components" ++ MCA_oob_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_oob_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_oob_ALL_SUBDIRS="$MCA_oob_ALL_SUBDIRS mca/oob/$item" ++ done ++ ++ ++ ++ MCA_oob_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_oob_STATIC_SUBDIRS="$MCA_oob_STATIC_SUBDIRS mca/oob/$item" ++ done ++ ++ ++ ++ MCA_oob_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_oob_DSO_SUBDIRS="$MCA_oob_DSO_SUBDIRS mca/oob/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "oob" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "plm" = "common" ; then ++ MCA_orte_FRAMEWORKS="plm $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/plm $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_plm_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_plm_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_plm_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS plm" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/plm" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_plm_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_plm_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_plm_STATIC_SUBDIRS)" ++ fi ++ if test "plm" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/plm/libmca_plm.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_plm_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework plm" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "plm" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/plm/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework plm" >&5 ++echo $ECHO_N "checking for no configure components in framework plm... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework plm" >&5 ++echo $ECHO_N "checking for m4 configure components in framework plm... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: alps, lsf, rsh, slurm, tm, xgrid" >&5 ++echo "${ECHO_T}alps, lsf, rsh, slurm, tm, xgrid" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component plm:alps (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=plm ++ component=alps ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=plm ++ component=alps ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_plm" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-alps was given. ++if test "${with_alps+set}" = set; then ++ withval=$with_alps; ++fi ++ ++ if test "$with_alps" = "yes" ; then ++ ompi_check_alps_happy="yes" ++ fi ++ if test "$ompi_check_alps_happy" = "yes"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=plm ++ component=alps ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_plm" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_plm" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component plm:alps can compile" >&5 ++echo $ECHO_N "checking if MCA component plm:alps can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_plm" = "alps" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"alps\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "alps" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"alps\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components alps" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_plm_alps_DSO=1 ++else ++ BUILD_plm_alps_DSO=0 ++fi ++ ++ if test "$BUILD_plm_alps_DSO" = "1"; then ++ OMPI_BUILD_plm_alps_DSO_TRUE= ++ OMPI_BUILD_plm_alps_DSO_FALSE='#' ++else ++ OMPI_BUILD_plm_alps_DSO_TRUE='#' ++ OMPI_BUILD_plm_alps_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component plm:lsf (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=plm ++ component=lsf ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=plm ++ component=lsf ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_plm" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-lsf was given. ++if test "${with_lsf+set}" = set; then ++ withval=$with_lsf; ++fi ++ ++ ++# Check whether --with-lsf-libdir was given. ++if test "${with_lsf_libdir+set}" = set; then ++ withval=$with_lsf_libdir; ++fi ++ ++ ++ # Defaults ++ ompi_check_lsf_dir_msg="compiler default" ++ ompi_check_lsf_libdir_msg="linker default" ++ ++ # Save directory names if supplied ++ if test ! -z "$with_lsf" -a "$with_lsf" != "yes"; then ++ ompi_check_lsf_dir="$with_lsf" ++ ompi_check_lsf_dir_msg="$ompi_check_lsf_dir (from --with-lsf)" ++fi ++ ++ if test ! -z "$with_lsf_libdir" -a "$with_lsf_libdir" != "yes"; then ++ ompi_check_lsf_libdir="$with_lsf_libdir" ++ ompi_check_lsf_libdir_msg="$ompi_check_lsf_libdir (from --with-lsf-libdir)" ++fi ++ ++ ++ # If no directories were specified, look for LSF_LIBDIR, ++ # LSF_INCLUDEDIR, and/or LSF_ENVDIR. ++ if test -z "$ompi_check_lsf_dir" -a -z "$ompi_check_lsf_libdir"; then ++ if test ! -z "$LSF_ENVDIR" -a -z "$LSF_LIBDIR" -a -f "$LSF_ENVDIR/lsf.conf"; then ++ LSF_LIBDIR=`egrep ^LSF_LIBDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-` ++fi ++ ++ if test ! -z "$LSF_ENVDIR" -a -z "$LSF_INCLUDEDIR" -a -f "$LSF_ENVDIR/lsf.conf"; then ++ LSF_INCLUDEDIR=`egrep ^LSF_INCLUDEDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-` ++fi ++ ++ if test ! -z "$LSF_LIBDIR"; then ++ ompi_check_lsf_libdir=$LSF_LIBDIR ++ ompi_check_lsf_libdir_msg="$LSF_LIBDIR (from \$LSF_LIBDIR)" ++fi ++ ++ if test ! -z "$LSF_INCLUDEDIR"; then ++ ompi_check_lsf_dir=`dirname $LSF_INCLUDEDIR` ++ ompi_check_lsf_dir_msg="$ompi_check_lsf_dir (from \$LSF_INCLUDEDIR)" ++fi ++ ++fi ++ ++ ++ if test "$with_lsf" = "no"; then ++ ompi_check_lsf_happy="no" ++else ++ ompi_check_lsf_happy="yes" ++fi ++ ++ ++ ompi_check_lsf_plm_lsf_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_lsf_plm_lsf_save_LDFLAGS="$LDFLAGS" ++ ompi_check_lsf_plm_lsf_save_LIBS="$LIBS" ++ ++ if test "$ompi_check_lsf_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for LSF dir" >&5 ++echo $ECHO_N "checking for LSF dir... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $ompi_check_lsf_dir_msg" >&5 ++echo "${ECHO_T}$ompi_check_lsf_dir_msg" >&6; } ++ { echo "$as_me:$LINENO: checking for LSF library dir" >&5 ++echo $ECHO_N "checking for LSF library dir... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $ompi_check_lsf_libdir_msg" >&5 ++echo "${ECHO_T}$ompi_check_lsf_libdir_msg" >&6; } ++ ++ ompi_check_package_plm_lsf_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_plm_lsf_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_plm_lsf_save_LIBS="$LIBS" ++ ++ ompi_check_package_plm_lsf_orig_CPPFLAGS="$plm_lsf_CPPFLAGS" ++ ompi_check_package_plm_lsf_orig_LDFLAGS="$plm_lsf_LDFLAGS" ++ ompi_check_package_plm_lsf_orig_LIBS="$plm_lsf_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_lsf_lsbatch_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_lsf_dir" = "/usr" -o "$ompi_check_lsf_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5 ++echo $ECHO_N "checking for lsf/lsbatch.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5 ++echo "${ECHO_T}$ac_cv_header_lsf_lsbatch_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking lsf/lsbatch.h usability" >&5 ++echo $ECHO_N "checking lsf/lsbatch.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking lsf/lsbatch.h presence" >&5 ++echo $ECHO_N "checking lsf/lsbatch.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5 ++echo $ECHO_N "checking for lsf/lsbatch.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_lsf_lsbatch_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5 ++echo "${ECHO_T}$ac_cv_header_lsf_lsbatch_h" >&6; } ++ ++fi ++if test $ac_cv_header_lsf_lsbatch_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_lsf_lsbatch_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_lsf_dir" != ""; then ++ plm_lsf_CPPFLAGS="$plm_lsf_CPPFLAGS -I$ompi_check_lsf_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_lsf_dir/include" ++fi ++ ++ if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5 ++echo $ECHO_N "checking for lsf/lsbatch.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5 ++echo "${ECHO_T}$ac_cv_header_lsf_lsbatch_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking lsf/lsbatch.h usability" >&5 ++echo $ECHO_N "checking lsf/lsbatch.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking lsf/lsbatch.h presence" >&5 ++echo $ECHO_N "checking lsf/lsbatch.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5 ++echo $ECHO_N "checking for lsf/lsbatch.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_lsf_lsbatch_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5 ++echo "${ECHO_T}$ac_cv_header_lsf_lsbatch_h" >&6; } ++ ++fi ++if test $ac_cv_header_lsf_lsbatch_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_bat_lsb_launch ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_lsf_libdir" != ""; then ++ # libdir was specified - search only there ++ plm_lsf_LDFLAGS="$plm_lsf_LDFLAGS -L$ompi_check_lsf_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_lsf_libdir" ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS" ++ plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_lsf_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS" ++ plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ plm_lsf_LDFLAGS="$plm_lsf_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS" ++ plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ plm_lsf_LDFLAGS="$plm_lsf_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS" ++ plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ plm_lsf_LIBS="-lbat -llsf" ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_bat_lsb_launch ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_lsf_libdir" != ""; then ++ # libdir was specified - search only there ++ plm_lsf_LDFLAGS="$plm_lsf_LDFLAGS -L$ompi_check_lsf_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_lsf_libdir" ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS" ++ plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_lsf_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS" ++ plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ plm_lsf_LDFLAGS="$plm_lsf_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS" ++ plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ plm_lsf_LDFLAGS="$plm_lsf_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS" ++ plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ plm_lsf_LIBS="-lbat -llsf" ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ ompi_check_lsf_happy="yes" ++else ++ plm_lsf_CPPFLAGS="$ompi_check_package_plm_lsf_orig_CPPFLAGS" ++ plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS" ++ plm_lsf_LIBS="$ompi_check_package_plm_lsf_orig_LIBS" ++ ompi_check_lsf_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_plm_lsf_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS" ++ LIBS="$ompi_check_package_plm_lsf_save_LIBS" ++ ++fi ++ ++ ++ CPPFLAGS="$ompi_check_lsf_plm_lsf_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_lsf_plm_lsf_save_LDFLAGS" ++ LIBS="$ompi_check_lsf_plm_lsf_save_LIBS" ++ ++ # Reset for the next time we're called ++ ompi_check_lsf_dir= ++ ompi_check_lsf_libdir= ++ ++ if test "$ompi_check_lsf_happy" = "yes"; then ++ plm_lsf_good=1 ++else ++ if test ! -z "$with_lsf" -a "$with_lsf" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: LSF support requested (via --with-lsf) but not found." >&5 ++echo "$as_me: WARNING: LSF support requested (via --with-lsf) but not found." >&2;} ++ { { echo "$as_me:$LINENO: error: Aborting." >&5 ++echo "$as_me: error: Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ plm_lsf_good=0 ++fi ++ ++ ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ if test "$plm_lsf_good" = "1"; then ++ plm_lsf_WRAPPER_EXTRA_LDFLAGS="$plm_lsf_LDFLAGS" ++ plm_lsf_WRAPPER_EXTRA_LIBS="$plm_lsf_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # set build flags to use in makefile ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=plm ++ component=lsf ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_plm" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_plm" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component plm:lsf can compile" >&5 ++echo $ECHO_N "checking if MCA component plm:lsf can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_plm" = "lsf" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"lsf\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "lsf" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"lsf\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components lsf" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_plm_lsf_DSO=1 ++else ++ BUILD_plm_lsf_DSO=0 ++fi ++ ++ if test "$BUILD_plm_lsf_DSO" = "1"; then ++ OMPI_BUILD_plm_lsf_DSO_TRUE= ++ OMPI_BUILD_plm_lsf_DSO_FALSE='#' ++else ++ OMPI_BUILD_plm_lsf_DSO_TRUE='#' ++ OMPI_BUILD_plm_lsf_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component plm:rsh (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=plm ++ component=rsh ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=plm ++ component=rsh ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_plm" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ { echo "$as_me:$LINENO: checking for fork" >&5 ++echo $ECHO_N "checking for fork... $ECHO_C" >&6; } ++if test "${ac_cv_func_fork+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define fork to an innocuous variant, in case declares fork. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define fork innocuous_fork ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char fork (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef fork ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char fork (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_fork || defined __stub___fork ++choke me ++#endif ++ ++int ++main () ++{ ++return fork (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_fork=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_fork=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5 ++echo "${ECHO_T}$ac_cv_func_fork" >&6; } ++if test $ac_cv_func_fork = yes; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=plm ++ component=rsh ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_plm" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_plm" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component plm:rsh can compile" >&5 ++echo $ECHO_N "checking if MCA component plm:rsh can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_plm" = "rsh" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"rsh\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"rsh\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "rsh" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"rsh\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"rsh\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components rsh" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_plm_rsh_DSO=1 ++else ++ BUILD_plm_rsh_DSO=0 ++fi ++ ++ if test "$BUILD_plm_rsh_DSO" = "1"; then ++ OMPI_BUILD_plm_rsh_DSO_TRUE= ++ OMPI_BUILD_plm_rsh_DSO_FALSE='#' ++else ++ OMPI_BUILD_plm_rsh_DSO_TRUE='#' ++ OMPI_BUILD_plm_rsh_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component plm:slurm (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=plm ++ component=slurm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=plm ++ component=slurm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_plm" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-slurm was given. ++if test "${with_slurm+set}" = set; then ++ withval=$with_slurm; ++fi ++ ++ ++ if test "$with_slurm" = "no" ; then ++ ompi_check_slurm_happy="no" ++ elif test "$with_slurm" = "" ; then ++ # unless user asked, only build slurm component on linux, AIX, ++ # and OS X systems (these are the platforms that SLURM ++ # supports) ++ case $host in ++ *-linux*|*-aix*|*-apple-darwin*) ++ ompi_check_slurm_happy="yes" ++ ;; ++ *) ++ { echo "$as_me:$LINENO: checking for SLURM srun in PATH" >&5 ++echo $ECHO_N "checking for SLURM srun in PATH... $ECHO_C" >&6; } ++ ++# 1 is the variable name to do "which" on ++# 2 is the variable name to assign the return value to ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ompi_prog=srun ++ ++IFS_SAVE=$IFS ++IFS="$PATH_SEPARATOR" ++for ompi_dir in $PATH; do ++ if test -x "$ompi_dir/$ompi_prog"; then ++ OMPI_CHECK_SLURM_SRUN="$ompi_dir/$ompi_prog" ++ break ++ fi ++done ++IFS=$IFS_SAVE ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ if test "$OMPI_CHECK_SLURM_SRUN" = ""; then ++ ompi_check_slurm_happy="no" ++ else ++ ompi_check_slurm_happy="yes" ++ fi ++ { echo "$as_me:$LINENO: result: $ompi_check_slurm_happy" >&5 ++echo "${ECHO_T}$ompi_check_slurm_happy" >&6; } ++ ;; ++ esac ++ else ++ ompi_check_slurm_happy="yes" ++ fi ++ ++ if test "$ompi_check_slurm_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for fork" >&5 ++echo $ECHO_N "checking for fork... $ECHO_C" >&6; } ++if test "${ac_cv_func_fork+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define fork to an innocuous variant, in case declares fork. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define fork innocuous_fork ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char fork (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef fork ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char fork (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_fork || defined __stub___fork ++choke me ++#endif ++ ++int ++main () ++{ ++return fork (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_fork=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_fork=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5 ++echo "${ECHO_T}$ac_cv_func_fork" >&6; } ++if test $ac_cv_func_fork = yes; then ++ ompi_check_slurm_happy="yes" ++else ++ ompi_check_slurm_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_slurm_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for execve" >&5 ++echo $ECHO_N "checking for execve... $ECHO_C" >&6; } ++if test "${ac_cv_func_execve+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define execve to an innocuous variant, in case declares execve. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define execve innocuous_execve ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char execve (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef execve ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char execve (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_execve || defined __stub___execve ++choke me ++#endif ++ ++int ++main () ++{ ++return execve (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_execve=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_execve=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_execve" >&5 ++echo "${ECHO_T}$ac_cv_func_execve" >&6; } ++if test $ac_cv_func_execve = yes; then ++ ompi_check_slurm_happy="yes" ++else ++ ompi_check_slurm_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_slurm_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for setpgid" >&5 ++echo $ECHO_N "checking for setpgid... $ECHO_C" >&6; } ++if test "${ac_cv_func_setpgid+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define setpgid to an innocuous variant, in case declares setpgid. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define setpgid innocuous_setpgid ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char setpgid (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef setpgid ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char setpgid (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_setpgid || defined __stub___setpgid ++choke me ++#endif ++ ++int ++main () ++{ ++return setpgid (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_setpgid=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_setpgid=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5 ++echo "${ECHO_T}$ac_cv_func_setpgid" >&6; } ++if test $ac_cv_func_setpgid = yes; then ++ ompi_check_slurm_happy="yes" ++else ++ ompi_check_slurm_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_slurm_happy" = "yes"; then ++ plm_slurm_good=1 ++else ++ plm_slurm_good=0 ++fi ++ ++ ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ if test "$plm_slurm_good" = "1"; then ++ plm_slurm_WRAPPER_EXTRA_LDFLAGS="$plm_slurm_LDFLAGS" ++ plm_slurm_WRAPPER_EXTRA_LIBS="$plm_slurm_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # set build flags to use in makefile ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=plm ++ component=slurm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_plm" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_plm" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component plm:slurm can compile" >&5 ++echo $ECHO_N "checking if MCA component plm:slurm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_plm" = "slurm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "slurm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components slurm" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_plm_slurm_DSO=1 ++else ++ BUILD_plm_slurm_DSO=0 ++fi ++ ++ if test "$BUILD_plm_slurm_DSO" = "1"; then ++ OMPI_BUILD_plm_slurm_DSO_TRUE= ++ OMPI_BUILD_plm_slurm_DSO_FALSE='#' ++else ++ OMPI_BUILD_plm_slurm_DSO_TRUE='#' ++ OMPI_BUILD_plm_slurm_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component plm:tm (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=plm ++ component=tm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=plm ++ component=tm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_plm" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-tm was given. ++if test "${with_tm+set}" = set; then ++ withval=$with_tm; ++fi ++ ++ ++ ompi_check_tm_found=no ++ if test "$with_tm" = "no"; then ++ ompi_check_tm_happy="no" ++else ++ ompi_check_tm_happy="yes" ++ if test ! -z "$with_tm" -a "$with_tm" != "yes"; then ++ ompi_check_tm_dir="$with_tm" ++else ++ ompi_check_tm_dir="" ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_tm_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for pbs-config" >&5 ++echo $ECHO_N "checking for pbs-config... $ECHO_C" >&6; } ++ ompi_check_tm_pbs_config="not found" ++ if test "$ompi_check_tm_dir" != "" -a -d "$ompi_check_tm_dir" -a -x "$ompi_check_tm_dir/bin/pbs-config"; then ++ ompi_check_tm_pbs_config="$ompi_check_tm_dir/bin/pbs-config" ++else ++ if pbs-config --prefix >/dev/null 2>&1; then ++ ompi_check_tm_pbs_config="pbs-config" ++fi ++ ++fi ++ ++ { echo "$as_me:$LINENO: result: $ompi_check_tm_pbs_config" >&5 ++echo "${ECHO_T}$ompi_check_tm_pbs_config" >&6; } ++fi ++ ++ ++ # If we have pbs-config, get the flags we need from there and then ++ # do simplistic tests looking for the tm headers and symbols ++ ++ if test "$ompi_check_tm_happy" = "yes" -a "$ompi_check_tm_pbs_config" != "not found"; then ++ plm_tm_CPPFLAGS=`$ompi_check_tm_pbs_config --cflags` ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: plm_tm_CPPFLAGS from pbs-config: $plm_tm_CPPFLAGS" >&5 ++else ++ echo plm_tm_CPPFLAGS from pbs-config: $plm_tm_CPPFLAGS >&5 ++fi ++ ++ ++ ompi_check_tm_flags=`$ompi_check_tm_pbs_config --libs` ++ for ompi_check_tm_val in $ompi_check_tm_flags; do ++ if test "`echo $ompi_check_tm_val | cut -c1-2`" = "-l"; then ++ if test "LDFLAGS" = "LIBS"; then ++ plm_tm_LDFLAGS="$plm_tm_LDFLAGS $ompi_check_tm_val" ++ fi ++ else ++ if test "LDFLAGS" = "LDFLAGS"; then ++ plm_tm_LDFLAGS="$plm_tm_LDFLAGS $ompi_check_tm_val" ++ fi ++ fi ++ done ++ ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: plm_tm_LDFLAGS from pbs-config: $plm_tm_LDFLAGS" >&5 ++else ++ echo plm_tm_LDFLAGS from pbs-config: $plm_tm_LDFLAGS >&5 ++fi ++ ++ ++ ompi_check_tm_flags=`$ompi_check_tm_pbs_config --libs` ++ for ompi_check_tm_val in $ompi_check_tm_flags; do ++ if test "`echo $ompi_check_tm_val | cut -c1-2`" = "-l"; then ++ if test "LIBS" = "LIBS"; then ++ plm_tm_LIBS="$plm_tm_LIBS $ompi_check_tm_val" ++ fi ++ else ++ if test "LIBS" = "LDFLAGS"; then ++ plm_tm_LIBS="$plm_tm_LIBS $ompi_check_tm_val" ++ fi ++ fi ++ done ++ ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: plm_tm_LIBS from pbs-config: $plm_tm_LIBS" >&5 ++else ++ echo plm_tm_LIBS from pbs-config: $plm_tm_LIBS >&5 ++fi ++ ++ # Now that we supposedly have the right flags, try them out. ++ ++ CPPFLAGS_save="$CPPFLAGS" ++ LDFLAGS_save="$LDFLAGS" ++ LIBS_save="$LIBS" ++ ++ CPPFLAGS="$CPPFLAGS $plm_tm_CPPFLAGS" ++ LIBS="$LIBS $plm_tm_LIBS" ++ LDFLAGS="$LDFLAGS $plm_tm_LDFLAGS" ++ ++ if test "${ac_cv_header_tm_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for tm.h" >&5 ++echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_tm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_tm_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking tm.h usability" >&5 ++echo $ECHO_N "checking tm.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking tm.h presence" >&5 ++echo $ECHO_N "checking tm.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: tm.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for tm.h" >&5 ++echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_tm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_tm_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_tm_h" >&6; } ++ ++fi ++if test $ac_cv_header_tm_h = yes; then ++ { echo "$as_me:$LINENO: checking for tm_finalize" >&5 ++echo $ECHO_N "checking for tm_finalize... $ECHO_C" >&6; } ++if test "${ac_cv_func_tm_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define tm_finalize to an innocuous variant, in case declares tm_finalize. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define tm_finalize innocuous_tm_finalize ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char tm_finalize (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef tm_finalize ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_finalize (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_tm_finalize || defined __stub___tm_finalize ++choke me ++#endif ++ ++int ++main () ++{ ++return tm_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_tm_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_tm_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_tm_finalize" >&5 ++echo "${ECHO_T}$ac_cv_func_tm_finalize" >&6; } ++if test $ac_cv_func_tm_finalize = yes; then ++ ompi_check_tm_found="yes" ++fi ++ ++fi ++ ++ ++ ++ CPPFLAGS="$CPPFLAGS_save" ++ LDFLAGS="$LDFLAGS_save" ++ LIBS="$LIBS_save" ++fi ++ ++ ++ # If we don't have pbs-config, then we have to look around ++ # manually. ++ ++ # Note that Torque 2.1.0 changed the name of their back-end ++ # library to "libtorque". So we have to check for both libpbs and ++ # libtorque. First, check for libpbs. ++ ++ ompi_check_package_plm_tm_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_plm_tm_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_plm_tm_save_LIBS="$LIBS" ++ ++ ompi_check_package_plm_tm_orig_CPPFLAGS="$plm_tm_CPPFLAGS" ++ ompi_check_package_plm_tm_orig_LDFLAGS="$plm_tm_LDFLAGS" ++ ompi_check_package_plm_tm_orig_LIBS="$plm_tm_LIBS" ++ ++ if test "$ompi_check_tm_found" = "no"; then ++ if test "$ompi_check_tm_happy" = "yes"; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_tm_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_tm_dir" = "/usr" -o "$ompi_check_tm_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_tm_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for tm.h" >&5 ++echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_tm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_tm_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking tm.h usability" >&5 ++echo $ECHO_N "checking tm.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking tm.h presence" >&5 ++echo $ECHO_N "checking tm.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: tm.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for tm.h" >&5 ++echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_tm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_tm_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_tm_h" >&6; } ++ ++fi ++if test $ac_cv_header_tm_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_tm_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_tm_dir" != ""; then ++ plm_tm_CPPFLAGS="$plm_tm_CPPFLAGS -I$ompi_check_tm_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_tm_dir/include" ++fi ++ ++ if test "${ac_cv_header_tm_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for tm.h" >&5 ++echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_tm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_tm_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking tm.h usability" >&5 ++echo $ECHO_N "checking tm.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking tm.h presence" >&5 ++echo $ECHO_N "checking tm.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: tm.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for tm.h" >&5 ++echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_tm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_tm_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_tm_h" >&6; } ++ ++fi ++if test $ac_cv_header_tm_h = yes; then ++ ompi_check_tm_found="yes" ++else ++ ompi_check_tm_found="no" ++fi ++ ++ ++else ++ ompi_check_tm_found="yes" ++fi ++ ++ unset ompi_check_package_header_happy ++fi ++ ++ ++ if test "$ompi_check_tm_found" = "yes"; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_pbs_tm_init ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_tm_libdir" != ""; then ++ # libdir was specified - search only there ++ plm_tm_LDFLAGS="$plm_tm_LDFLAGS -L$ompi_check_tm_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_tm_libdir" ++ { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5 ++echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_pbs_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_pbs_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_pbs_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; } ++if test $ac_cv_lib_pbs_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS" ++ plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS" ++ unset ac_cv_lib_pbs_tm_init ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_tm_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5 ++echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_pbs_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_pbs_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_pbs_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; } ++if test $ac_cv_lib_pbs_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS" ++ plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS" ++ unset ac_cv_lib_pbs_tm_init ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ plm_tm_LDFLAGS="$plm_tm_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5 ++echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_pbs_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_pbs_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_pbs_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; } ++if test $ac_cv_lib_pbs_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS" ++ plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS" ++ unset ac_cv_lib_pbs_tm_init ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ plm_tm_LDFLAGS="$plm_tm_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5 ++echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_pbs_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_pbs_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_pbs_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; } ++if test $ac_cv_lib_pbs_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS" ++ plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS" ++ unset ac_cv_lib_pbs_tm_init ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ plm_tm_LIBS="-lpbs " ++ ompi_check_tm_found="yes" ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_torque_tm_init ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_tm_libdir" != ""; then ++ # libdir was specified - search only there ++ plm_tm_LDFLAGS="$plm_tm_LDFLAGS -L$ompi_check_tm_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_tm_libdir" ++ { echo "$as_me:$LINENO: checking for tm_init in -ltorque" >&5 ++echo $ECHO_N "checking for tm_init in -ltorque... $ECHO_C" >&6; } ++if test "${ac_cv_lib_torque_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ltorque $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_torque_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_torque_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_torque_tm_init" >&6; } ++if test $ac_cv_lib_torque_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS" ++ plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS" ++ unset ac_cv_lib_torque_tm_init ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_tm_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for tm_init in -ltorque" >&5 ++echo $ECHO_N "checking for tm_init in -ltorque... $ECHO_C" >&6; } ++if test "${ac_cv_lib_torque_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ltorque $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_torque_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_torque_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_torque_tm_init" >&6; } ++if test $ac_cv_lib_torque_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS" ++ plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS" ++ unset ac_cv_lib_torque_tm_init ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ plm_tm_LDFLAGS="$plm_tm_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for tm_init in -ltorque" >&5 ++echo $ECHO_N "checking for tm_init in -ltorque... $ECHO_C" >&6; } ++if test "${ac_cv_lib_torque_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ltorque $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_torque_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_torque_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_torque_tm_init" >&6; } ++if test $ac_cv_lib_torque_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS" ++ plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS" ++ unset ac_cv_lib_torque_tm_init ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ plm_tm_LDFLAGS="$plm_tm_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for tm_init in -ltorque" >&5 ++echo $ECHO_N "checking for tm_init in -ltorque... $ECHO_C" >&6; } ++if test "${ac_cv_lib_torque_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ltorque $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_torque_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_torque_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_torque_tm_init" >&6; } ++if test $ac_cv_lib_torque_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS" ++ plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS" ++ unset ac_cv_lib_torque_tm_init ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ plm_tm_LIBS="-ltorque " ++ ompi_check_tm_found="yes" ++else ++ ompi_check_tm_found="no" ++fi ++ ++ ++ ++fi ++ ++ ++ ++fi ++ ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_plm_tm_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS" ++ LIBS="$ompi_check_package_plm_tm_save_LIBS" ++ ++ # Did we find the right stuff? ++ if test "$ompi_check_tm_happy" = "yes" -a "$ompi_check_tm_found" = "yes"; then ++ plm_tm_good=1 ++else ++ if test ! -z "$with_tm" -a "$with_tm" != "no"; then ++ { { echo "$as_me:$LINENO: error: TM support requested but not found. Aborting" >&5 ++echo "$as_me: error: TM support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ plm_tm_good=0 ++fi ++ ++ ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ if test "$plm_tm_good" = "1"; then ++ plm_tm_WRAPPER_EXTRA_LDFLAGS="$plm_tm_LDFLAGS" ++ plm_tm_WRAPPER_EXTRA_LIBS="$plm_tm_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # set build flags to use in makefile ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=plm ++ component=tm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_plm" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_plm" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component plm:tm can compile" >&5 ++echo $ECHO_N "checking if MCA component plm:tm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_plm" = "tm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "tm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components tm" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_plm_tm_DSO=1 ++else ++ BUILD_plm_tm_DSO=0 ++fi ++ ++ if test "$BUILD_plm_tm_DSO" = "1"; then ++ OMPI_BUILD_plm_tm_DSO_TRUE= ++ OMPI_BUILD_plm_tm_DSO_FALSE='#' ++else ++ OMPI_BUILD_plm_tm_DSO_TRUE='#' ++ OMPI_BUILD_plm_tm_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component plm:xgrid (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=plm ++ component=xgrid ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=plm ++ component=xgrid ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_plm" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++ ++ ++# Check whether --with-xgrid was given. ++if test "${with_xgrid+set}" = set; then ++ withval=$with_xgrid; ++fi ++ ++ ++ if test "$with_xgrid" != "no"; then ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if C and Objective C are link compatible" >&5 ++echo $ECHO_N "checking if C and Objective C are link compatible... $ECHO_C" >&6; } ++if test "${ompi_cv_c_link_Objective_C+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ testfunc_name="testfunc" ++ ++ # Write out C part ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ rm -f conftest_c.$ac_ext ++ cat > conftest_c.$ac_ext << EOF ++int $testfunc_name(int a); ++int $testfunc_name(int a) { return a; } ++EOF ++ ++ # Now compile both parts ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext" >&5 ++$CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ac_ext=m ++ac_cpp='$OBJCPP $CPPFLAGS' ++ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_objc_compiler_gnu ++ ++ ompi_lang_link_with_c_libs="$LIBS" ++ LIBS="conftest_c.o $LIBS" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#if defined(c_plusplus) || defined(__cplusplus) ++extern "C" int testfunc(int); ++#else ++extern int testfunc(int); ++#endif ++ ++int ++main () ++{ ++return testfunc(0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_objc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_c_link_Objective_C="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_c_link_Objective_C="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LIBS="$ompi_lang_link_with_c_libs" ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++else ++ unset ompi_status ++ ompi_cv_c_link_Objective_C="no" ++fi ++ rm -f conftest_c.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_link_Objective_C" >&5 ++echo "${ECHO_T}$ompi_cv_c_link_Objective_C" >&6; } ++ ++ if test "$ompi_cv_c_link_Objective_C" = "yes"; then ++ { echo "$as_me:$LINENO: checking for XgridFoundation Framework" >&5 ++echo $ECHO_N "checking for XgridFoundation Framework... $ECHO_C" >&6; } ++if test "${ompi_cv_check_xgrid_foundation+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ ac_ext=m ++ac_cpp='$OBJCPP $CPPFLAGS' ++ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_objc_compiler_gnu ++ ++ ompi_check_xgrid_save_LDFLAGS="$LDFLAGS" ++ LDFLAGS="$LDFLAGS -framework XgridFoundation -framework Foundation" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#import ++#import ++#import ++ ++int ++main () ++{ ++NSLog(@"%@", XGConnectionKeyIsOpened); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_objc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_check_xgrid_foundation="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_check_xgrid_foundation="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LDFLAGS="$ompi_check_xgrid_save_LDFLAGS" ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_check_xgrid_foundation" >&5 ++echo "${ECHO_T}$ompi_cv_check_xgrid_foundation" >&6; } ++ if test "$ompi_cv_check_xgrid_foundation" = "yes"; then ++ ompi_check_xgrid_happy="yes" ++else ++ ompi_check_xgrid_happy="no" ++fi ++ ++else ++ ompi_check_xgrid_happy="no" ++fi ++ ++ ++else ++ ompi_check_xgrid_happy="no" ++fi ++ ++ ++ if test "$ompi_check_xgrid_happy" = "yes"; then ++ plm_xgrid_LDFLAGS="$plm_xgrid_LDFLAGS -framework XgridFoundation -framework Foundation" ++ plm_xgrid_good=1 ++else ++ plm_xgrid_good=0 ++fi ++ ++ ++ ++ # For very dumb reasons involving linking, it's near impossible ++ # to build the XGrid components as static libraries. Disable if that's ++ # the case. ++ if test "$plm_xgrid_good" = "0"; then ++ should_build=0 ++else ++ if test "$compile_mode" = "dso"; then ++ # plm_xgrid_LDFLAGS will be set by OMPI_CHECK_XGRID ++ plm_xgrid_WRAPPER_EXTRA_LDFLAGS="$plm_xgrid_LDFLAGS" ++ should_build=1 ++else ++ { echo "$as_me:$LINENO: WARNING: XGrid components must be built as DSOs. Disabling" >&5 ++echo "$as_me: WARNING: XGrid components must be built as DSOs. Disabling" >&2;} ++ should_build=0 ++fi ++ ++fi ++ ++ ++ # set build flags to use in makefile ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=plm ++ component=xgrid ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_plm" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_plm" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component plm:xgrid can compile" >&5 ++echo $ECHO_N "checking if MCA component plm:xgrid can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_plm" = "xgrid" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"xgrid\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"xgrid\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "xgrid" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"xgrid\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"xgrid\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components xgrid" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_plm_xgrid_DSO=1 ++else ++ BUILD_plm_xgrid_DSO=0 ++fi ++ ++ if test "$BUILD_plm_xgrid_DSO" = "1"; then ++ OMPI_BUILD_plm_xgrid_DSO_TRUE= ++ OMPI_BUILD_plm_xgrid_DSO_FALSE='#' ++else ++ OMPI_BUILD_plm_xgrid_DSO_TRUE='#' ++ OMPI_BUILD_plm_xgrid_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/orte/mca/plm/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component plm:$component (need to configure)" ++ ++ ++ ++ ++ project=orte ++ framework=plm ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=plm ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_plm" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# orte/mca/plm/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="orte/mca/plm/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=plm ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_plm" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_plm" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component plm:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component plm:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_plm" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_plm_ALL_COMPONENTS="$all_components" ++ MCA_plm_STATIC_COMPONENTS="$static_components" ++ MCA_plm_DSO_COMPONENTS="$dso_components" ++ MCA_plm_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_plm_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_plm_ALL_SUBDIRS="$MCA_plm_ALL_SUBDIRS mca/plm/$item" ++ done ++ ++ ++ ++ MCA_plm_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_plm_STATIC_SUBDIRS="$MCA_plm_STATIC_SUBDIRS mca/plm/$item" ++ done ++ ++ ++ ++ MCA_plm_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_plm_DSO_SUBDIRS="$MCA_plm_DSO_SUBDIRS mca/plm/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "plm" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "ras" = "common" ; then ++ MCA_orte_FRAMEWORKS="ras $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/ras $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_ras_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_ras_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_ras_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS ras" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/ras" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ras_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ras_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ras_STATIC_SUBDIRS)" ++ fi ++ if test "ras" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/ras/libmca_ras.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_ras_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework ras" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "ras" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/ras/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework ras" >&5 ++echo $ECHO_N "checking for no configure components in framework ras... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework ras" >&5 ++echo $ECHO_N "checking for m4 configure components in framework ras... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: alps, gridengine, loadleveler, lsf, slurm, tm" >&5 ++echo "${ECHO_T}alps, gridengine, loadleveler, lsf, slurm, tm" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component ras:alps (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ras ++ component=alps ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ras ++ component=alps ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ras" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-alps was given. ++if test "${with_alps+set}" = set; then ++ withval=$with_alps; ++fi ++ ++ if test "$with_alps" = "yes" ; then ++ ompi_check_alps_happy="yes" ++ fi ++ if test "$ompi_check_alps_happy" = "yes"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ras ++ component=alps ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ras" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ras" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ras:alps can compile" >&5 ++echo $ECHO_N "checking if MCA component ras:alps can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ras" = "alps" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"alps\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "alps" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"alps\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components alps" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ras_alps_DSO=1 ++else ++ BUILD_ras_alps_DSO=0 ++fi ++ ++ if test "$BUILD_ras_alps_DSO" = "1"; then ++ OMPI_BUILD_ras_alps_DSO_TRUE= ++ OMPI_BUILD_ras_alps_DSO_FALSE='#' ++else ++ OMPI_BUILD_ras_alps_DSO_TRUE='#' ++ OMPI_BUILD_ras_alps_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component ras:gridengine (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ras ++ component=gridengine ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ras ++ component=gridengine ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ras" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-sge was given. ++if test "${with_sge+set}" = set; then ++ withval=$with_sge; ++fi ++ ++ ++ { echo "$as_me:$LINENO: checking if user requested SGE build" >&5 ++echo $ECHO_N "checking if user requested SGE build... $ECHO_C" >&6; } ++ ompi_gridengine_build= ++ if test "$with_sge" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ompi_gridengine_build=yes ++else ++ if test "$with_sge" = "no"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++else ++ { echo "$as_me:$LINENO: result: not specified; checking environment" >&5 ++echo "${ECHO_T}not specified; checking environment" >&6; } ++ # Extract the first word of "qrsh", so it can be a program name with args. ++set dummy qrsh; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_QRSH+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$QRSH"; then ++ ac_cv_prog_QRSH="$QRSH" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_QRSH="qrsh" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++QRSH=$ac_cv_prog_QRSH ++if test -n "$QRSH"; then ++ { echo "$as_me:$LINENO: result: $QRSH" >&5 ++echo "${ECHO_T}$QRSH" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ if test "$QRSH" != ""; then ++ ompi_gridengine_build=yes ++else ++ { echo "$as_me:$LINENO: checking for SGE_ROOT environment variable" >&5 ++echo $ECHO_N "checking for SGE_ROOT environment variable... $ECHO_C" >&6; } ++ if test "$SGE_ROOT" != ""; then ++ { echo "$as_me:$LINENO: result: found" >&5 ++echo "${ECHO_T}found" >&6; } ++ ompi_gridengine_build=yes ++else ++ { echo "$as_me:$LINENO: result: not found" >&5 ++echo "${ECHO_T}not found" >&6; } ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_gridengine_build" = "yes"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ras ++ component=gridengine ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ras" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ras" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ras:gridengine can compile" >&5 ++echo $ECHO_N "checking if MCA component ras:gridengine can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ras" = "gridengine" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"gridengine\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"gridengine\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "gridengine" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"gridengine\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"gridengine\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components gridengine" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ras_gridengine_DSO=1 ++else ++ BUILD_ras_gridengine_DSO=0 ++fi ++ ++ if test "$BUILD_ras_gridengine_DSO" = "1"; then ++ OMPI_BUILD_ras_gridengine_DSO_TRUE= ++ OMPI_BUILD_ras_gridengine_DSO_FALSE='#' ++else ++ OMPI_BUILD_ras_gridengine_DSO_TRUE='#' ++ OMPI_BUILD_ras_gridengine_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component ras:loadleveler (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ras ++ component=loadleveler ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ras ++ component=loadleveler ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ras" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-loadleveler was given. ++if test "${with_loadleveler+set}" = set; then ++ withval=$with_loadleveler; ++fi ++ ++ ++ if test "$with_loadleveler" = "no"; then ++ ompi_check_loadleveler_happy="no" ++else ++ ompi_check_loadleveler_happy="yes" ++ if test ! -z "$with_loadleveler" -a "$with_loadleveler" != "yes"; then ++ ompi_check_loadleveler_dir="$with_loadleveler" ++else ++ ompi_check_loadleveler_dir="" ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_loadleveler_happy" = "yes"; then ++ ++ ompi_check_package_ras_loadleveler_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_ras_loadleveler_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_ras_loadleveler_save_LIBS="$LIBS" ++ ++ ompi_check_package_ras_loadleveler_orig_CPPFLAGS="$ras_loadleveler_CPPFLAGS" ++ ompi_check_package_ras_loadleveler_orig_LDFLAGS="$ras_loadleveler_LDFLAGS" ++ ompi_check_package_ras_loadleveler_orig_LIBS="$ras_loadleveler_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_llapi_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_loadleveler_dir" = "/usr" -o "$ompi_check_loadleveler_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_llapi_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for llapi.h" >&5 ++echo $ECHO_N "checking for llapi.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_llapi_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_llapi_h" >&5 ++echo "${ECHO_T}$ac_cv_header_llapi_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking llapi.h usability" >&5 ++echo $ECHO_N "checking llapi.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking llapi.h presence" >&5 ++echo $ECHO_N "checking llapi.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: llapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: llapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: llapi.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: llapi.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: llapi.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: llapi.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: llapi.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: llapi.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: llapi.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: llapi.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: llapi.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: llapi.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: llapi.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: llapi.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: llapi.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: llapi.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for llapi.h" >&5 ++echo $ECHO_N "checking for llapi.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_llapi_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_llapi_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_llapi_h" >&5 ++echo "${ECHO_T}$ac_cv_header_llapi_h" >&6; } ++ ++fi ++if test $ac_cv_header_llapi_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_llapi_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_loadleveler_dir" != ""; then ++ ras_loadleveler_CPPFLAGS="$ras_loadleveler_CPPFLAGS -I$ompi_check_loadleveler_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_loadleveler_dir/include" ++fi ++ ++ if test "${ac_cv_header_llapi_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for llapi.h" >&5 ++echo $ECHO_N "checking for llapi.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_llapi_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_llapi_h" >&5 ++echo "${ECHO_T}$ac_cv_header_llapi_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking llapi.h usability" >&5 ++echo $ECHO_N "checking llapi.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking llapi.h presence" >&5 ++echo $ECHO_N "checking llapi.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: llapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: llapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: llapi.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: llapi.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: llapi.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: llapi.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: llapi.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: llapi.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: llapi.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: llapi.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: llapi.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: llapi.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: llapi.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: llapi.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: llapi.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: llapi.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for llapi.h" >&5 ++echo $ECHO_N "checking for llapi.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_llapi_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_llapi_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_llapi_h" >&5 ++echo "${ECHO_T}$ac_cv_header_llapi_h" >&6; } ++ ++fi ++if test $ac_cv_header_llapi_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_llapi_ll_query ++ ompi_check_package_lib_happy="no" ++ if test "" != ""; then ++ # libdir was specified - search only there ++ ras_loadleveler_LDFLAGS="$ras_loadleveler_LDFLAGS -L" ++ LDFLAGS="$LDFLAGS -L" ++ { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5 ++echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; } ++if test "${ac_cv_lib_llapi_ll_query+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lllapi $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ll_query (); ++int ++main () ++{ ++return ll_query (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_llapi_ll_query=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_llapi_ll_query=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5 ++echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; } ++if test $ac_cv_lib_llapi_ll_query = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS" ++ ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS" ++ unset ac_cv_lib_llapi_ll_query ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_loadleveler_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5 ++echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; } ++if test "${ac_cv_lib_llapi_ll_query+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lllapi $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ll_query (); ++int ++main () ++{ ++return ll_query (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_llapi_ll_query=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_llapi_ll_query=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5 ++echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; } ++if test $ac_cv_lib_llapi_ll_query = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS" ++ ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS" ++ unset ac_cv_lib_llapi_ll_query ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ras_loadleveler_LDFLAGS="$ras_loadleveler_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5 ++echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; } ++if test "${ac_cv_lib_llapi_ll_query+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lllapi $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ll_query (); ++int ++main () ++{ ++return ll_query (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_llapi_ll_query=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_llapi_ll_query=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5 ++echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; } ++if test $ac_cv_lib_llapi_ll_query = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS" ++ ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS" ++ unset ac_cv_lib_llapi_ll_query ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ras_loadleveler_LDFLAGS="$ras_loadleveler_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5 ++echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; } ++if test "${ac_cv_lib_llapi_ll_query+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lllapi $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ll_query (); ++int ++main () ++{ ++return ll_query (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_llapi_ll_query=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_llapi_ll_query=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5 ++echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; } ++if test $ac_cv_lib_llapi_ll_query = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS" ++ ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS" ++ unset ac_cv_lib_llapi_ll_query ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ ras_loadleveler_LIBS="-lllapi " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_llapi_ll_query ++ ompi_check_package_lib_happy="no" ++ if test "" != ""; then ++ # libdir was specified - search only there ++ ras_loadleveler_LDFLAGS="$ras_loadleveler_LDFLAGS -L" ++ LDFLAGS="$LDFLAGS -L" ++ { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5 ++echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; } ++if test "${ac_cv_lib_llapi_ll_query+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lllapi $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ll_query (); ++int ++main () ++{ ++return ll_query (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_llapi_ll_query=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_llapi_ll_query=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5 ++echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; } ++if test $ac_cv_lib_llapi_ll_query = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS" ++ ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS" ++ unset ac_cv_lib_llapi_ll_query ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_loadleveler_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5 ++echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; } ++if test "${ac_cv_lib_llapi_ll_query+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lllapi $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ll_query (); ++int ++main () ++{ ++return ll_query (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_llapi_ll_query=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_llapi_ll_query=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5 ++echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; } ++if test $ac_cv_lib_llapi_ll_query = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS" ++ ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS" ++ unset ac_cv_lib_llapi_ll_query ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ras_loadleveler_LDFLAGS="$ras_loadleveler_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5 ++echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; } ++if test "${ac_cv_lib_llapi_ll_query+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lllapi $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ll_query (); ++int ++main () ++{ ++return ll_query (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_llapi_ll_query=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_llapi_ll_query=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5 ++echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; } ++if test $ac_cv_lib_llapi_ll_query = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS" ++ ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS" ++ unset ac_cv_lib_llapi_ll_query ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ras_loadleveler_LDFLAGS="$ras_loadleveler_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5 ++echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; } ++if test "${ac_cv_lib_llapi_ll_query+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lllapi $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ll_query (); ++int ++main () ++{ ++return ll_query (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_llapi_ll_query=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_llapi_ll_query=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5 ++echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; } ++if test $ac_cv_lib_llapi_ll_query = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS" ++ ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS" ++ unset ac_cv_lib_llapi_ll_query ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ ras_loadleveler_LIBS="-lllapi " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ ompi_check_loadleveler_happy="yes" ++else ++ ras_loadleveler_CPPFLAGS="$ompi_check_package_ras_loadleveler_orig_CPPFLAGS" ++ ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS" ++ ras_loadleveler_LIBS="$ompi_check_package_ras_loadleveler_orig_LIBS" ++ ompi_check_loadleveler_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_ras_loadleveler_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS" ++ LIBS="$ompi_check_package_ras_loadleveler_save_LIBS" ++ ++fi ++ ++ ++ if test "$ompi_check_loadleveler_happy" = "yes"; then ++ ras_loadleveler_good=1 ++else ++ if test ! -z "$with_loadleveler" -a "$with_loadleveler" != "no"; then ++ { { echo "$as_me:$LINENO: error: LOADLEVELER support requested but not found. Aborting" >&5 ++echo "$as_me: error: LOADLEVELER support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ras_loadleveler_good=0 ++fi ++ ++ ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ if test "$ras_loadleveler_good" = "1"; then ++ ras_loadleveler_WRAPPER_EXTRA_LDFLAGS="$ras_loadleveler_LDFLAGS" ++ ras_loadleveler_WRAPPER_EXTRA_LIBS="$ras_loadleveler_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # set build flags to use in makefile ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ras ++ component=loadleveler ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ras" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ras" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ras:loadleveler can compile" >&5 ++echo $ECHO_N "checking if MCA component ras:loadleveler can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ras" = "loadleveler" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"loadleveler\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"loadleveler\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "loadleveler" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"loadleveler\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"loadleveler\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components loadleveler" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ras_loadleveler_DSO=1 ++else ++ BUILD_ras_loadleveler_DSO=0 ++fi ++ ++ if test "$BUILD_ras_loadleveler_DSO" = "1"; then ++ OMPI_BUILD_ras_loadleveler_DSO_TRUE= ++ OMPI_BUILD_ras_loadleveler_DSO_FALSE='#' ++else ++ OMPI_BUILD_ras_loadleveler_DSO_TRUE='#' ++ OMPI_BUILD_ras_loadleveler_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component ras:lsf (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ras ++ component=lsf ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ras ++ component=lsf ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ras" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-lsf was given. ++if test "${with_lsf+set}" = set; then ++ withval=$with_lsf; ++fi ++ ++ ++# Check whether --with-lsf-libdir was given. ++if test "${with_lsf_libdir+set}" = set; then ++ withval=$with_lsf_libdir; ++fi ++ ++ ++ # Defaults ++ ompi_check_lsf_dir_msg="compiler default" ++ ompi_check_lsf_libdir_msg="linker default" ++ ++ # Save directory names if supplied ++ if test ! -z "$with_lsf" -a "$with_lsf" != "yes"; then ++ ompi_check_lsf_dir="$with_lsf" ++ ompi_check_lsf_dir_msg="$ompi_check_lsf_dir (from --with-lsf)" ++fi ++ ++ if test ! -z "$with_lsf_libdir" -a "$with_lsf_libdir" != "yes"; then ++ ompi_check_lsf_libdir="$with_lsf_libdir" ++ ompi_check_lsf_libdir_msg="$ompi_check_lsf_libdir (from --with-lsf-libdir)" ++fi ++ ++ ++ # If no directories were specified, look for LSF_LIBDIR, ++ # LSF_INCLUDEDIR, and/or LSF_ENVDIR. ++ if test -z "$ompi_check_lsf_dir" -a -z "$ompi_check_lsf_libdir"; then ++ if test ! -z "$LSF_ENVDIR" -a -z "$LSF_LIBDIR" -a -f "$LSF_ENVDIR/lsf.conf"; then ++ LSF_LIBDIR=`egrep ^LSF_LIBDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-` ++fi ++ ++ if test ! -z "$LSF_ENVDIR" -a -z "$LSF_INCLUDEDIR" -a -f "$LSF_ENVDIR/lsf.conf"; then ++ LSF_INCLUDEDIR=`egrep ^LSF_INCLUDEDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-` ++fi ++ ++ if test ! -z "$LSF_LIBDIR"; then ++ ompi_check_lsf_libdir=$LSF_LIBDIR ++ ompi_check_lsf_libdir_msg="$LSF_LIBDIR (from \$LSF_LIBDIR)" ++fi ++ ++ if test ! -z "$LSF_INCLUDEDIR"; then ++ ompi_check_lsf_dir=`dirname $LSF_INCLUDEDIR` ++ ompi_check_lsf_dir_msg="$ompi_check_lsf_dir (from \$LSF_INCLUDEDIR)" ++fi ++ ++fi ++ ++ ++ if test "$with_lsf" = "no"; then ++ ompi_check_lsf_happy="no" ++else ++ ompi_check_lsf_happy="yes" ++fi ++ ++ ++ ompi_check_lsf_ras_lsf_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_lsf_ras_lsf_save_LDFLAGS="$LDFLAGS" ++ ompi_check_lsf_ras_lsf_save_LIBS="$LIBS" ++ ++ if test "$ompi_check_lsf_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for LSF dir" >&5 ++echo $ECHO_N "checking for LSF dir... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $ompi_check_lsf_dir_msg" >&5 ++echo "${ECHO_T}$ompi_check_lsf_dir_msg" >&6; } ++ { echo "$as_me:$LINENO: checking for LSF library dir" >&5 ++echo $ECHO_N "checking for LSF library dir... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $ompi_check_lsf_libdir_msg" >&5 ++echo "${ECHO_T}$ompi_check_lsf_libdir_msg" >&6; } ++ ++ ompi_check_package_ras_lsf_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_ras_lsf_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_ras_lsf_save_LIBS="$LIBS" ++ ++ ompi_check_package_ras_lsf_orig_CPPFLAGS="$ras_lsf_CPPFLAGS" ++ ompi_check_package_ras_lsf_orig_LDFLAGS="$ras_lsf_LDFLAGS" ++ ompi_check_package_ras_lsf_orig_LIBS="$ras_lsf_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_lsf_lsbatch_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_lsf_dir" = "/usr" -o "$ompi_check_lsf_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5 ++echo $ECHO_N "checking for lsf/lsbatch.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5 ++echo "${ECHO_T}$ac_cv_header_lsf_lsbatch_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking lsf/lsbatch.h usability" >&5 ++echo $ECHO_N "checking lsf/lsbatch.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking lsf/lsbatch.h presence" >&5 ++echo $ECHO_N "checking lsf/lsbatch.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5 ++echo $ECHO_N "checking for lsf/lsbatch.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_lsf_lsbatch_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5 ++echo "${ECHO_T}$ac_cv_header_lsf_lsbatch_h" >&6; } ++ ++fi ++if test $ac_cv_header_lsf_lsbatch_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_lsf_lsbatch_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_lsf_dir" != ""; then ++ ras_lsf_CPPFLAGS="$ras_lsf_CPPFLAGS -I$ompi_check_lsf_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_lsf_dir/include" ++fi ++ ++ if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5 ++echo $ECHO_N "checking for lsf/lsbatch.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5 ++echo "${ECHO_T}$ac_cv_header_lsf_lsbatch_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking lsf/lsbatch.h usability" >&5 ++echo $ECHO_N "checking lsf/lsbatch.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking lsf/lsbatch.h presence" >&5 ++echo $ECHO_N "checking lsf/lsbatch.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5 ++echo $ECHO_N "checking for lsf/lsbatch.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_lsf_lsbatch_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5 ++echo "${ECHO_T}$ac_cv_header_lsf_lsbatch_h" >&6; } ++ ++fi ++if test $ac_cv_header_lsf_lsbatch_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_bat_lsb_launch ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_lsf_libdir" != ""; then ++ # libdir was specified - search only there ++ ras_lsf_LDFLAGS="$ras_lsf_LDFLAGS -L$ompi_check_lsf_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_lsf_libdir" ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS" ++ ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_lsf_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS" ++ ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ras_lsf_LDFLAGS="$ras_lsf_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS" ++ ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ras_lsf_LDFLAGS="$ras_lsf_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS" ++ ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ ras_lsf_LIBS="-lbat -llsf" ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_bat_lsb_launch ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_lsf_libdir" != ""; then ++ # libdir was specified - search only there ++ ras_lsf_LDFLAGS="$ras_lsf_LDFLAGS -L$ompi_check_lsf_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_lsf_libdir" ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS" ++ ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_lsf_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS" ++ ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ras_lsf_LDFLAGS="$ras_lsf_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS" ++ ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ras_lsf_LDFLAGS="$ras_lsf_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS" ++ ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ ras_lsf_LIBS="-lbat -llsf" ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ ompi_check_lsf_happy="yes" ++else ++ ras_lsf_CPPFLAGS="$ompi_check_package_ras_lsf_orig_CPPFLAGS" ++ ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS" ++ ras_lsf_LIBS="$ompi_check_package_ras_lsf_orig_LIBS" ++ ompi_check_lsf_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_ras_lsf_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS" ++ LIBS="$ompi_check_package_ras_lsf_save_LIBS" ++ ++fi ++ ++ ++ CPPFLAGS="$ompi_check_lsf_ras_lsf_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_lsf_ras_lsf_save_LDFLAGS" ++ LIBS="$ompi_check_lsf_ras_lsf_save_LIBS" ++ ++ # Reset for the next time we're called ++ ompi_check_lsf_dir= ++ ompi_check_lsf_libdir= ++ ++ if test "$ompi_check_lsf_happy" = "yes"; then ++ ras_lsf_good=1 ++else ++ if test ! -z "$with_lsf" -a "$with_lsf" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: LSF support requested (via --with-lsf) but not found." >&5 ++echo "$as_me: WARNING: LSF support requested (via --with-lsf) but not found." >&2;} ++ { { echo "$as_me:$LINENO: error: Aborting." >&5 ++echo "$as_me: error: Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ras_lsf_good=0 ++fi ++ ++ ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ if test "$ras_lsf_good" = "1"; then ++ ras_lsf_WRAPPER_EXTRA_LDFLAGS="$ras_lsf_LDFLAGS" ++ ras_lsf_WRAPPER_EXTRA_LIBS="$ras_lsf_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # set build flags to use in makefile ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ras ++ component=lsf ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ras" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ras" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ras:lsf can compile" >&5 ++echo $ECHO_N "checking if MCA component ras:lsf can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ras" = "lsf" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"lsf\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "lsf" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"lsf\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components lsf" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ras_lsf_DSO=1 ++else ++ BUILD_ras_lsf_DSO=0 ++fi ++ ++ if test "$BUILD_ras_lsf_DSO" = "1"; then ++ OMPI_BUILD_ras_lsf_DSO_TRUE= ++ OMPI_BUILD_ras_lsf_DSO_FALSE='#' ++else ++ OMPI_BUILD_ras_lsf_DSO_TRUE='#' ++ OMPI_BUILD_ras_lsf_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component ras:slurm (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ras ++ component=slurm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ras ++ component=slurm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ras" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-slurm was given. ++if test "${with_slurm+set}" = set; then ++ withval=$with_slurm; ++fi ++ ++ ++ if test "$with_slurm" = "no" ; then ++ ompi_check_slurm_happy="no" ++ elif test "$with_slurm" = "" ; then ++ # unless user asked, only build slurm component on linux, AIX, ++ # and OS X systems (these are the platforms that SLURM ++ # supports) ++ case $host in ++ *-linux*|*-aix*|*-apple-darwin*) ++ ompi_check_slurm_happy="yes" ++ ;; ++ *) ++ { echo "$as_me:$LINENO: checking for SLURM srun in PATH" >&5 ++echo $ECHO_N "checking for SLURM srun in PATH... $ECHO_C" >&6; } ++ ++# 1 is the variable name to do "which" on ++# 2 is the variable name to assign the return value to ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ompi_prog=srun ++ ++IFS_SAVE=$IFS ++IFS="$PATH_SEPARATOR" ++for ompi_dir in $PATH; do ++ if test -x "$ompi_dir/$ompi_prog"; then ++ OMPI_CHECK_SLURM_SRUN="$ompi_dir/$ompi_prog" ++ break ++ fi ++done ++IFS=$IFS_SAVE ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ if test "$OMPI_CHECK_SLURM_SRUN" = ""; then ++ ompi_check_slurm_happy="no" ++ else ++ ompi_check_slurm_happy="yes" ++ fi ++ { echo "$as_me:$LINENO: result: $ompi_check_slurm_happy" >&5 ++echo "${ECHO_T}$ompi_check_slurm_happy" >&6; } ++ ;; ++ esac ++ else ++ ompi_check_slurm_happy="yes" ++ fi ++ ++ if test "$ompi_check_slurm_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for fork" >&5 ++echo $ECHO_N "checking for fork... $ECHO_C" >&6; } ++if test "${ac_cv_func_fork+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define fork to an innocuous variant, in case declares fork. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define fork innocuous_fork ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char fork (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef fork ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char fork (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_fork || defined __stub___fork ++choke me ++#endif ++ ++int ++main () ++{ ++return fork (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_fork=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_fork=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5 ++echo "${ECHO_T}$ac_cv_func_fork" >&6; } ++if test $ac_cv_func_fork = yes; then ++ ompi_check_slurm_happy="yes" ++else ++ ompi_check_slurm_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_slurm_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for execve" >&5 ++echo $ECHO_N "checking for execve... $ECHO_C" >&6; } ++if test "${ac_cv_func_execve+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define execve to an innocuous variant, in case declares execve. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define execve innocuous_execve ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char execve (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef execve ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char execve (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_execve || defined __stub___execve ++choke me ++#endif ++ ++int ++main () ++{ ++return execve (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_execve=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_execve=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_execve" >&5 ++echo "${ECHO_T}$ac_cv_func_execve" >&6; } ++if test $ac_cv_func_execve = yes; then ++ ompi_check_slurm_happy="yes" ++else ++ ompi_check_slurm_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_slurm_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for setpgid" >&5 ++echo $ECHO_N "checking for setpgid... $ECHO_C" >&6; } ++if test "${ac_cv_func_setpgid+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define setpgid to an innocuous variant, in case declares setpgid. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define setpgid innocuous_setpgid ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char setpgid (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef setpgid ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char setpgid (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_setpgid || defined __stub___setpgid ++choke me ++#endif ++ ++int ++main () ++{ ++return setpgid (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_setpgid=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_setpgid=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5 ++echo "${ECHO_T}$ac_cv_func_setpgid" >&6; } ++if test $ac_cv_func_setpgid = yes; then ++ ompi_check_slurm_happy="yes" ++else ++ ompi_check_slurm_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_slurm_happy" = "yes"; then ++ ras_slurm_good=1 ++else ++ ras_slurm_good=0 ++fi ++ ++ ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ if test "$ras_slurm_good" = "1"; then ++ ras_slurm_WRAPPER_EXTRA_LDFLAGS="$ras_slurm_LDFLAGS" ++ ras_slurm_WRAPPER_EXTRA_LIBS="$ras_slurm_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # set build flags to use in makefile ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ras ++ component=slurm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ras" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ras" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ras:slurm can compile" >&5 ++echo $ECHO_N "checking if MCA component ras:slurm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ras" = "slurm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "slurm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components slurm" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ras_slurm_DSO=1 ++else ++ BUILD_ras_slurm_DSO=0 ++fi ++ ++ if test "$BUILD_ras_slurm_DSO" = "1"; then ++ OMPI_BUILD_ras_slurm_DSO_TRUE= ++ OMPI_BUILD_ras_slurm_DSO_FALSE='#' ++else ++ OMPI_BUILD_ras_slurm_DSO_TRUE='#' ++ OMPI_BUILD_ras_slurm_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component ras:tm (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ras ++ component=tm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ras ++ component=tm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ras" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-tm was given. ++if test "${with_tm+set}" = set; then ++ withval=$with_tm; ++fi ++ ++ ++ ompi_check_tm_found=no ++ if test "$with_tm" = "no"; then ++ ompi_check_tm_happy="no" ++else ++ ompi_check_tm_happy="yes" ++ if test ! -z "$with_tm" -a "$with_tm" != "yes"; then ++ ompi_check_tm_dir="$with_tm" ++else ++ ompi_check_tm_dir="" ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_tm_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for pbs-config" >&5 ++echo $ECHO_N "checking for pbs-config... $ECHO_C" >&6; } ++ ompi_check_tm_pbs_config="not found" ++ if test "$ompi_check_tm_dir" != "" -a -d "$ompi_check_tm_dir" -a -x "$ompi_check_tm_dir/bin/pbs-config"; then ++ ompi_check_tm_pbs_config="$ompi_check_tm_dir/bin/pbs-config" ++else ++ if pbs-config --prefix >/dev/null 2>&1; then ++ ompi_check_tm_pbs_config="pbs-config" ++fi ++ ++fi ++ ++ { echo "$as_me:$LINENO: result: $ompi_check_tm_pbs_config" >&5 ++echo "${ECHO_T}$ompi_check_tm_pbs_config" >&6; } ++fi ++ ++ ++ # If we have pbs-config, get the flags we need from there and then ++ # do simplistic tests looking for the tm headers and symbols ++ ++ if test "$ompi_check_tm_happy" = "yes" -a "$ompi_check_tm_pbs_config" != "not found"; then ++ ras_tm_CPPFLAGS=`$ompi_check_tm_pbs_config --cflags` ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: ras_tm_CPPFLAGS from pbs-config: $ras_tm_CPPFLAGS" >&5 ++else ++ echo ras_tm_CPPFLAGS from pbs-config: $ras_tm_CPPFLAGS >&5 ++fi ++ ++ ++ ompi_check_tm_flags=`$ompi_check_tm_pbs_config --libs` ++ for ompi_check_tm_val in $ompi_check_tm_flags; do ++ if test "`echo $ompi_check_tm_val | cut -c1-2`" = "-l"; then ++ if test "LDFLAGS" = "LIBS"; then ++ ras_tm_LDFLAGS="$ras_tm_LDFLAGS $ompi_check_tm_val" ++ fi ++ else ++ if test "LDFLAGS" = "LDFLAGS"; then ++ ras_tm_LDFLAGS="$ras_tm_LDFLAGS $ompi_check_tm_val" ++ fi ++ fi ++ done ++ ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: ras_tm_LDFLAGS from pbs-config: $ras_tm_LDFLAGS" >&5 ++else ++ echo ras_tm_LDFLAGS from pbs-config: $ras_tm_LDFLAGS >&5 ++fi ++ ++ ++ ompi_check_tm_flags=`$ompi_check_tm_pbs_config --libs` ++ for ompi_check_tm_val in $ompi_check_tm_flags; do ++ if test "`echo $ompi_check_tm_val | cut -c1-2`" = "-l"; then ++ if test "LIBS" = "LIBS"; then ++ ras_tm_LIBS="$ras_tm_LIBS $ompi_check_tm_val" ++ fi ++ else ++ if test "LIBS" = "LDFLAGS"; then ++ ras_tm_LIBS="$ras_tm_LIBS $ompi_check_tm_val" ++ fi ++ fi ++ done ++ ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: ras_tm_LIBS from pbs-config: $ras_tm_LIBS" >&5 ++else ++ echo ras_tm_LIBS from pbs-config: $ras_tm_LIBS >&5 ++fi ++ ++ # Now that we supposedly have the right flags, try them out. ++ ++ CPPFLAGS_save="$CPPFLAGS" ++ LDFLAGS_save="$LDFLAGS" ++ LIBS_save="$LIBS" ++ ++ CPPFLAGS="$CPPFLAGS $ras_tm_CPPFLAGS" ++ LIBS="$LIBS $ras_tm_LIBS" ++ LDFLAGS="$LDFLAGS $ras_tm_LDFLAGS" ++ ++ if test "${ac_cv_header_tm_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for tm.h" >&5 ++echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_tm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_tm_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking tm.h usability" >&5 ++echo $ECHO_N "checking tm.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking tm.h presence" >&5 ++echo $ECHO_N "checking tm.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: tm.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for tm.h" >&5 ++echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_tm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_tm_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_tm_h" >&6; } ++ ++fi ++if test $ac_cv_header_tm_h = yes; then ++ { echo "$as_me:$LINENO: checking for tm_finalize" >&5 ++echo $ECHO_N "checking for tm_finalize... $ECHO_C" >&6; } ++if test "${ac_cv_func_tm_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define tm_finalize to an innocuous variant, in case declares tm_finalize. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define tm_finalize innocuous_tm_finalize ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char tm_finalize (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef tm_finalize ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_finalize (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_tm_finalize || defined __stub___tm_finalize ++choke me ++#endif ++ ++int ++main () ++{ ++return tm_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_tm_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_tm_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_tm_finalize" >&5 ++echo "${ECHO_T}$ac_cv_func_tm_finalize" >&6; } ++if test $ac_cv_func_tm_finalize = yes; then ++ ompi_check_tm_found="yes" ++fi ++ ++fi ++ ++ ++ ++ CPPFLAGS="$CPPFLAGS_save" ++ LDFLAGS="$LDFLAGS_save" ++ LIBS="$LIBS_save" ++fi ++ ++ ++ # If we don't have pbs-config, then we have to look around ++ # manually. ++ ++ # Note that Torque 2.1.0 changed the name of their back-end ++ # library to "libtorque". So we have to check for both libpbs and ++ # libtorque. First, check for libpbs. ++ ++ ompi_check_package_ras_tm_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_ras_tm_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_ras_tm_save_LIBS="$LIBS" ++ ++ ompi_check_package_ras_tm_orig_CPPFLAGS="$ras_tm_CPPFLAGS" ++ ompi_check_package_ras_tm_orig_LDFLAGS="$ras_tm_LDFLAGS" ++ ompi_check_package_ras_tm_orig_LIBS="$ras_tm_LIBS" ++ ++ if test "$ompi_check_tm_found" = "no"; then ++ if test "$ompi_check_tm_happy" = "yes"; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_tm_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_tm_dir" = "/usr" -o "$ompi_check_tm_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_tm_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for tm.h" >&5 ++echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_tm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_tm_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking tm.h usability" >&5 ++echo $ECHO_N "checking tm.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking tm.h presence" >&5 ++echo $ECHO_N "checking tm.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: tm.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for tm.h" >&5 ++echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_tm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_tm_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_tm_h" >&6; } ++ ++fi ++if test $ac_cv_header_tm_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_tm_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_tm_dir" != ""; then ++ ras_tm_CPPFLAGS="$ras_tm_CPPFLAGS -I$ompi_check_tm_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_tm_dir/include" ++fi ++ ++ if test "${ac_cv_header_tm_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for tm.h" >&5 ++echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_tm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_tm_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking tm.h usability" >&5 ++echo $ECHO_N "checking tm.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking tm.h presence" >&5 ++echo $ECHO_N "checking tm.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: tm.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for tm.h" >&5 ++echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_tm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_tm_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_tm_h" >&6; } ++ ++fi ++if test $ac_cv_header_tm_h = yes; then ++ ompi_check_tm_found="yes" ++else ++ ompi_check_tm_found="no" ++fi ++ ++ ++else ++ ompi_check_tm_found="yes" ++fi ++ ++ unset ompi_check_package_header_happy ++fi ++ ++ ++ if test "$ompi_check_tm_found" = "yes"; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_pbs_tm_init ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_tm_libdir" != ""; then ++ # libdir was specified - search only there ++ ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_tm_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_tm_libdir" ++ { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5 ++echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_pbs_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_pbs_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_pbs_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; } ++if test $ac_cv_lib_pbs_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS" ++ ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS" ++ unset ac_cv_lib_pbs_tm_init ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_tm_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5 ++echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_pbs_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_pbs_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_pbs_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; } ++if test $ac_cv_lib_pbs_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS" ++ ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS" ++ unset ac_cv_lib_pbs_tm_init ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5 ++echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_pbs_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_pbs_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_pbs_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; } ++if test $ac_cv_lib_pbs_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS" ++ ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS" ++ unset ac_cv_lib_pbs_tm_init ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5 ++echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_pbs_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_pbs_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_pbs_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; } ++if test $ac_cv_lib_pbs_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS" ++ ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS" ++ unset ac_cv_lib_pbs_tm_init ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ ras_tm_LIBS="-lpbs " ++ ompi_check_tm_found="yes" ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_torque_tm_init ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_tm_libdir" != ""; then ++ # libdir was specified - search only there ++ ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_tm_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_tm_libdir" ++ { echo "$as_me:$LINENO: checking for tm_init in -ltorque" >&5 ++echo $ECHO_N "checking for tm_init in -ltorque... $ECHO_C" >&6; } ++if test "${ac_cv_lib_torque_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ltorque $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_torque_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_torque_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_torque_tm_init" >&6; } ++if test $ac_cv_lib_torque_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS" ++ ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS" ++ unset ac_cv_lib_torque_tm_init ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_tm_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for tm_init in -ltorque" >&5 ++echo $ECHO_N "checking for tm_init in -ltorque... $ECHO_C" >&6; } ++if test "${ac_cv_lib_torque_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ltorque $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_torque_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_torque_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_torque_tm_init" >&6; } ++if test $ac_cv_lib_torque_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS" ++ ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS" ++ unset ac_cv_lib_torque_tm_init ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for tm_init in -ltorque" >&5 ++echo $ECHO_N "checking for tm_init in -ltorque... $ECHO_C" >&6; } ++if test "${ac_cv_lib_torque_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ltorque $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_torque_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_torque_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_torque_tm_init" >&6; } ++if test $ac_cv_lib_torque_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS" ++ ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS" ++ unset ac_cv_lib_torque_tm_init ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for tm_init in -ltorque" >&5 ++echo $ECHO_N "checking for tm_init in -ltorque... $ECHO_C" >&6; } ++if test "${ac_cv_lib_torque_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ltorque $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_torque_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_torque_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_torque_tm_init" >&6; } ++if test $ac_cv_lib_torque_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS" ++ ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS" ++ unset ac_cv_lib_torque_tm_init ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ ras_tm_LIBS="-ltorque " ++ ompi_check_tm_found="yes" ++else ++ ompi_check_tm_found="no" ++fi ++ ++ ++ ++fi ++ ++ ++ ++fi ++ ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_ras_tm_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS" ++ LIBS="$ompi_check_package_ras_tm_save_LIBS" ++ ++ # Did we find the right stuff? ++ if test "$ompi_check_tm_happy" = "yes" -a "$ompi_check_tm_found" = "yes"; then ++ ras_tm_good=1 ++else ++ if test ! -z "$with_tm" -a "$with_tm" != "no"; then ++ { { echo "$as_me:$LINENO: error: TM support requested but not found. Aborting" >&5 ++echo "$as_me: error: TM support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ras_tm_good=0 ++fi ++ ++ ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ if test "$ras_tm_good" = "1"; then ++ ras_tm_WRAPPER_EXTRA_LDFLAGS="$ras_tm_LDFLAGS" ++ ras_tm_WRAPPER_EXTRA_LIBS="$ras_tm_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # set build flags to use in makefile ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ras ++ component=tm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ras" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ras" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ras:tm can compile" >&5 ++echo $ECHO_N "checking if MCA component ras:tm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ras" = "tm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "tm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components tm" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ras_tm_DSO=1 ++else ++ BUILD_ras_tm_DSO=0 ++fi ++ ++ if test "$BUILD_ras_tm_DSO" = "1"; then ++ OMPI_BUILD_ras_tm_DSO_TRUE= ++ OMPI_BUILD_ras_tm_DSO_FALSE='#' ++else ++ OMPI_BUILD_ras_tm_DSO_TRUE='#' ++ OMPI_BUILD_ras_tm_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/orte/mca/ras/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component ras:$component (need to configure)" ++ ++ ++ ++ ++ project=orte ++ framework=ras ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=ras ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ras" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# orte/mca/ras/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="orte/mca/ras/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=ras ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ras" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ras" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ras:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component ras:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ras" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_ras_ALL_COMPONENTS="$all_components" ++ MCA_ras_STATIC_COMPONENTS="$static_components" ++ MCA_ras_DSO_COMPONENTS="$dso_components" ++ MCA_ras_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_ras_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_ras_ALL_SUBDIRS="$MCA_ras_ALL_SUBDIRS mca/ras/$item" ++ done ++ ++ ++ ++ MCA_ras_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_ras_STATIC_SUBDIRS="$MCA_ras_STATIC_SUBDIRS mca/ras/$item" ++ done ++ ++ ++ ++ MCA_ras_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_ras_DSO_SUBDIRS="$MCA_ras_DSO_SUBDIRS mca/ras/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "ras" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "rmaps" = "common" ; then ++ MCA_orte_FRAMEWORKS="rmaps $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/rmaps $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_rmaps_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_rmaps_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_rmaps_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS rmaps" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/rmaps" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_rmaps_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_rmaps_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_rmaps_STATIC_SUBDIRS)" ++ fi ++ if test "rmaps" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/rmaps/libmca_rmaps.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_rmaps_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework rmaps" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "rmaps" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/rmaps/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework rmaps" >&5 ++echo $ECHO_N "checking for no configure components in framework rmaps... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: rank_file, round_robin, seq" >&5 ++echo "${ECHO_T}rank_file, round_robin, seq" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework rmaps" >&5 ++echo $ECHO_N "checking for m4 configure components in framework rmaps... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component rmaps:rank_file (no configuration)" ++ ++ ++ ++ ++ project=orte ++ framework=rmaps ++ component=rank_file ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_rmaps" ; then ++ if test "$DIRECT_rmaps" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=rmaps ++ component=rank_file ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_rmaps" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=rmaps ++ component=rank_file ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_rmaps" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_rmaps" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component rmaps:rank_file can compile" >&5 ++echo $ECHO_N "checking if MCA component rmaps:rank_file can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_rmaps" = "rank_file" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"rank_file\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"rank_file\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_rmaps" ; then ++ if test "$DIRECT_rmaps" = "rank_file" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"rank_file\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"rank_file\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components rank_file" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_rmaps_rank_file_DSO=1 ++ else ++ BUILD_rmaps_rank_file_DSO=0 ++ fi ++ if test "$BUILD_rmaps_rank_file_DSO" = "1"; then ++ OMPI_BUILD_rmaps_rank_file_DSO_TRUE= ++ OMPI_BUILD_rmaps_rank_file_DSO_FALSE='#' ++else ++ OMPI_BUILD_rmaps_rank_file_DSO_TRUE='#' ++ OMPI_BUILD_rmaps_rank_file_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component rmaps:round_robin (no configuration)" ++ ++ ++ ++ ++ project=orte ++ framework=rmaps ++ component=round_robin ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_rmaps" ; then ++ if test "$DIRECT_rmaps" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=rmaps ++ component=round_robin ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_rmaps" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=rmaps ++ component=round_robin ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_rmaps" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_rmaps" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component rmaps:round_robin can compile" >&5 ++echo $ECHO_N "checking if MCA component rmaps:round_robin can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_rmaps" = "round_robin" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"round_robin\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"round_robin\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_rmaps" ; then ++ if test "$DIRECT_rmaps" = "round_robin" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"round_robin\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"round_robin\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components round_robin" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_rmaps_round_robin_DSO=1 ++ else ++ BUILD_rmaps_round_robin_DSO=0 ++ fi ++ if test "$BUILD_rmaps_round_robin_DSO" = "1"; then ++ OMPI_BUILD_rmaps_round_robin_DSO_TRUE= ++ OMPI_BUILD_rmaps_round_robin_DSO_FALSE='#' ++else ++ OMPI_BUILD_rmaps_round_robin_DSO_TRUE='#' ++ OMPI_BUILD_rmaps_round_robin_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component rmaps:seq (no configuration)" ++ ++ ++ ++ ++ project=orte ++ framework=rmaps ++ component=seq ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_rmaps" ; then ++ if test "$DIRECT_rmaps" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=rmaps ++ component=seq ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_rmaps" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=rmaps ++ component=seq ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_rmaps" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_rmaps" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component rmaps:seq can compile" >&5 ++echo $ECHO_N "checking if MCA component rmaps:seq can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_rmaps" = "seq" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"seq\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"seq\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_rmaps" ; then ++ if test "$DIRECT_rmaps" = "seq" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"seq\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"seq\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components seq" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_rmaps_seq_DSO=1 ++ else ++ BUILD_rmaps_seq_DSO=0 ++ fi ++ if test "$BUILD_rmaps_seq_DSO" = "1"; then ++ OMPI_BUILD_rmaps_seq_DSO_TRUE= ++ OMPI_BUILD_rmaps_seq_DSO_FALSE='#' ++else ++ OMPI_BUILD_rmaps_seq_DSO_TRUE='#' ++ OMPI_BUILD_rmaps_seq_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/orte/mca/rmaps/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component rmaps:$component (need to configure)" ++ ++ ++ ++ ++ project=orte ++ framework=rmaps ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_rmaps" ; then ++ if test "$DIRECT_rmaps" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=rmaps ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_rmaps" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# orte/mca/rmaps/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="orte/mca/rmaps/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=rmaps ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_rmaps" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_rmaps" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component rmaps:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component rmaps:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_rmaps" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_rmaps" ; then ++ if test "$DIRECT_rmaps" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_rmaps_ALL_COMPONENTS="$all_components" ++ MCA_rmaps_STATIC_COMPONENTS="$static_components" ++ MCA_rmaps_DSO_COMPONENTS="$dso_components" ++ MCA_rmaps_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_rmaps_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_rmaps_ALL_SUBDIRS="$MCA_rmaps_ALL_SUBDIRS mca/rmaps/$item" ++ done ++ ++ ++ ++ MCA_rmaps_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_rmaps_STATIC_SUBDIRS="$MCA_rmaps_STATIC_SUBDIRS mca/rmaps/$item" ++ done ++ ++ ++ ++ MCA_rmaps_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_rmaps_DSO_SUBDIRS="$MCA_rmaps_DSO_SUBDIRS mca/rmaps/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "rmaps" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "rml" = "common" ; then ++ MCA_orte_FRAMEWORKS="rml $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/rml $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_rml_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_rml_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_rml_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS rml" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/rml" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_rml_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_rml_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_rml_STATIC_SUBDIRS)" ++ fi ++ if test "rml" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/rml/libmca_rml.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_rml_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework rml" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "rml" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/rml/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework rml" >&5 ++echo $ECHO_N "checking for no configure components in framework rml... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: oob" >&5 ++echo "${ECHO_T}oob" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework rml" >&5 ++echo $ECHO_N "checking for m4 configure components in framework rml... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: ftrm" >&5 ++echo "${ECHO_T}ftrm" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component rml:oob (no configuration)" ++ ++ ++ ++ ++ project=orte ++ framework=rml ++ component=oob ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_rml" ; then ++ if test "$DIRECT_rml" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=rml ++ component=oob ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_rml" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=rml ++ component=oob ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_rml" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_rml" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component rml:oob can compile" >&5 ++echo $ECHO_N "checking if MCA component rml:oob can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_rml" = "oob" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"oob\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"oob\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_rml" ; then ++ if test "$DIRECT_rml" = "oob" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"oob\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"oob\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components oob" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_rml_oob_DSO=1 ++ else ++ BUILD_rml_oob_DSO=0 ++ fi ++ if test "$BUILD_rml_oob_DSO" = "1"; then ++ OMPI_BUILD_rml_oob_DSO_TRUE= ++ OMPI_BUILD_rml_oob_DSO_FALSE='#' ++else ++ OMPI_BUILD_rml_oob_DSO_TRUE='#' ++ OMPI_BUILD_rml_oob_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component rml:ftrm (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=rml ++ component=ftrm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_rml" ; then ++ if test "$DIRECT_rml" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=rml ++ component=ftrm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_rml" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ # If we don't want FT, don't compile this component ++ if test "$ompi_want_ft" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=rml ++ component=ftrm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_rml" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_rml" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component rml:ftrm can compile" >&5 ++echo $ECHO_N "checking if MCA component rml:ftrm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_rml" = "ftrm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"ftrm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"ftrm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_rml" ; then ++ if test "$DIRECT_rml" = "ftrm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"ftrm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"ftrm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components ftrm" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_rml_ftrm_DSO=1 ++else ++ BUILD_rml_ftrm_DSO=0 ++fi ++ ++ if test "$BUILD_rml_ftrm_DSO" = "1"; then ++ OMPI_BUILD_rml_ftrm_DSO_TRUE= ++ OMPI_BUILD_rml_ftrm_DSO_FALSE='#' ++else ++ OMPI_BUILD_rml_ftrm_DSO_TRUE='#' ++ OMPI_BUILD_rml_ftrm_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/orte/mca/rml/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component rml:$component (need to configure)" ++ ++ ++ ++ ++ project=orte ++ framework=rml ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_rml" ; then ++ if test "$DIRECT_rml" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=rml ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_rml" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# orte/mca/rml/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="orte/mca/rml/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=rml ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_rml" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_rml" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component rml:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component rml:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_rml" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_rml" ; then ++ if test "$DIRECT_rml" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_rml_ALL_COMPONENTS="$all_components" ++ MCA_rml_STATIC_COMPONENTS="$static_components" ++ MCA_rml_DSO_COMPONENTS="$dso_components" ++ MCA_rml_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_rml_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_rml_ALL_SUBDIRS="$MCA_rml_ALL_SUBDIRS mca/rml/$item" ++ done ++ ++ ++ ++ MCA_rml_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_rml_STATIC_SUBDIRS="$MCA_rml_STATIC_SUBDIRS mca/rml/$item" ++ done ++ ++ ++ ++ MCA_rml_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_rml_DSO_SUBDIRS="$MCA_rml_DSO_SUBDIRS mca/rml/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "rml" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "routed" = "common" ; then ++ MCA_orte_FRAMEWORKS="routed $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/routed $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_routed_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_routed_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_routed_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS routed" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/routed" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_routed_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_routed_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_routed_STATIC_SUBDIRS)" ++ fi ++ if test "routed" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/routed/libmca_routed.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_routed_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework routed" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "routed" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/routed/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework routed" >&5 ++echo $ECHO_N "checking for no configure components in framework routed... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: binomial, direct, linear" >&5 ++echo "${ECHO_T}binomial, direct, linear" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework routed" >&5 ++echo $ECHO_N "checking for m4 configure components in framework routed... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component routed:binomial (no configuration)" ++ ++ ++ ++ ++ project=orte ++ framework=routed ++ component=binomial ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_routed" ; then ++ if test "$DIRECT_routed" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=routed ++ component=binomial ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_routed" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=routed ++ component=binomial ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_routed" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_routed" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component routed:binomial can compile" >&5 ++echo $ECHO_N "checking if MCA component routed:binomial can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_routed" = "binomial" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"binomial\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"binomial\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_routed" ; then ++ if test "$DIRECT_routed" = "binomial" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"binomial\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"binomial\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components binomial" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_routed_binomial_DSO=1 ++ else ++ BUILD_routed_binomial_DSO=0 ++ fi ++ if test "$BUILD_routed_binomial_DSO" = "1"; then ++ OMPI_BUILD_routed_binomial_DSO_TRUE= ++ OMPI_BUILD_routed_binomial_DSO_FALSE='#' ++else ++ OMPI_BUILD_routed_binomial_DSO_TRUE='#' ++ OMPI_BUILD_routed_binomial_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component routed:direct (no configuration)" ++ ++ ++ ++ ++ project=orte ++ framework=routed ++ component=direct ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_routed" ; then ++ if test "$DIRECT_routed" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=routed ++ component=direct ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_routed" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=routed ++ component=direct ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_routed" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_routed" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component routed:direct can compile" >&5 ++echo $ECHO_N "checking if MCA component routed:direct can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_routed" = "direct" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"direct\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"direct\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_routed" ; then ++ if test "$DIRECT_routed" = "direct" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"direct\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"direct\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components direct" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_routed_direct_DSO=1 ++ else ++ BUILD_routed_direct_DSO=0 ++ fi ++ if test "$BUILD_routed_direct_DSO" = "1"; then ++ OMPI_BUILD_routed_direct_DSO_TRUE= ++ OMPI_BUILD_routed_direct_DSO_FALSE='#' ++else ++ OMPI_BUILD_routed_direct_DSO_TRUE='#' ++ OMPI_BUILD_routed_direct_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component routed:linear (no configuration)" ++ ++ ++ ++ ++ project=orte ++ framework=routed ++ component=linear ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_routed" ; then ++ if test "$DIRECT_routed" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=routed ++ component=linear ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_routed" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=routed ++ component=linear ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_routed" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_routed" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component routed:linear can compile" >&5 ++echo $ECHO_N "checking if MCA component routed:linear can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_routed" = "linear" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"linear\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"linear\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_routed" ; then ++ if test "$DIRECT_routed" = "linear" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"linear\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"linear\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components linear" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_routed_linear_DSO=1 ++ else ++ BUILD_routed_linear_DSO=0 ++ fi ++ if test "$BUILD_routed_linear_DSO" = "1"; then ++ OMPI_BUILD_routed_linear_DSO_TRUE= ++ OMPI_BUILD_routed_linear_DSO_FALSE='#' ++else ++ OMPI_BUILD_routed_linear_DSO_TRUE='#' ++ OMPI_BUILD_routed_linear_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/orte/mca/routed/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component routed:$component (need to configure)" ++ ++ ++ ++ ++ project=orte ++ framework=routed ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_routed" ; then ++ if test "$DIRECT_routed" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=routed ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_routed" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# orte/mca/routed/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="orte/mca/routed/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=routed ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_routed" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_routed" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component routed:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component routed:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_routed" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_routed" ; then ++ if test "$DIRECT_routed" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_routed_ALL_COMPONENTS="$all_components" ++ MCA_routed_STATIC_COMPONENTS="$static_components" ++ MCA_routed_DSO_COMPONENTS="$dso_components" ++ MCA_routed_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_routed_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_routed_ALL_SUBDIRS="$MCA_routed_ALL_SUBDIRS mca/routed/$item" ++ done ++ ++ ++ ++ MCA_routed_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_routed_STATIC_SUBDIRS="$MCA_routed_STATIC_SUBDIRS mca/routed/$item" ++ done ++ ++ ++ ++ MCA_routed_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_routed_DSO_SUBDIRS="$MCA_routed_DSO_SUBDIRS mca/routed/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "routed" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "snapc" = "common" ; then ++ MCA_orte_FRAMEWORKS="snapc $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/snapc $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_snapc_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_snapc_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_snapc_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS snapc" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/snapc" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_snapc_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_snapc_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_snapc_STATIC_SUBDIRS)" ++ fi ++ if test "snapc" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/snapc/libmca_snapc.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_snapc_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework snapc" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "snapc" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/snapc/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework snapc" >&5 ++echo $ECHO_N "checking for no configure components in framework snapc... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework snapc" >&5 ++echo $ECHO_N "checking for m4 configure components in framework snapc... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: full" >&5 ++echo "${ECHO_T}full" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component snapc:full (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=snapc ++ component=full ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_snapc" ; then ++ if test "$DIRECT_snapc" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=snapc ++ component=full ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_snapc" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ # If we don't want FT, don't compile this component ++ if test "$ompi_want_ft" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=snapc ++ component=full ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_snapc" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_snapc" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component snapc:full can compile" >&5 ++echo $ECHO_N "checking if MCA component snapc:full can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_snapc" = "full" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"full\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"full\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_snapc" ; then ++ if test "$DIRECT_snapc" = "full" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"full\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"full\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components full" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_snapc_full_DSO=1 ++else ++ BUILD_snapc_full_DSO=0 ++fi ++ ++ if test "$BUILD_snapc_full_DSO" = "1"; then ++ OMPI_BUILD_snapc_full_DSO_TRUE= ++ OMPI_BUILD_snapc_full_DSO_FALSE='#' ++else ++ OMPI_BUILD_snapc_full_DSO_TRUE='#' ++ OMPI_BUILD_snapc_full_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/orte/mca/snapc/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component snapc:$component (need to configure)" ++ ++ ++ ++ ++ project=orte ++ framework=snapc ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_snapc" ; then ++ if test "$DIRECT_snapc" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=snapc ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_snapc" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# orte/mca/snapc/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="orte/mca/snapc/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=snapc ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_snapc" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_snapc" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component snapc:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component snapc:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_snapc" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_snapc" ; then ++ if test "$DIRECT_snapc" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_snapc_ALL_COMPONENTS="$all_components" ++ MCA_snapc_STATIC_COMPONENTS="$static_components" ++ MCA_snapc_DSO_COMPONENTS="$dso_components" ++ MCA_snapc_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_snapc_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_snapc_ALL_SUBDIRS="$MCA_snapc_ALL_SUBDIRS mca/snapc/$item" ++ done ++ ++ ++ ++ MCA_snapc_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_snapc_STATIC_SUBDIRS="$MCA_snapc_STATIC_SUBDIRS mca/snapc/$item" ++ done ++ ++ ++ ++ MCA_snapc_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_snapc_DSO_SUBDIRS="$MCA_snapc_DSO_SUBDIRS mca/snapc/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "snapc" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++ ++ ++ ++ ++ ++ ++ ++ ++MCA_PROJECT_SUBDIRS="$MCA_PROJECT_SUBDIRS ompi" ++ ++ # can't use a variable rename here because these need to be evaled ++ # at auto* time. ++ ++ ompi_show_subtitle "Configuring MCA for ompi" ++ ++ { echo "$as_me:$LINENO: checking for frameworks for ompi" >&5 ++echo $ECHO_N "checking for frameworks for ompi... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: allocator, bml, btl, coll, common, crcp, dpm, io, mpool, mtl, osc, pml, pubsub, rcache, topo" >&5 ++echo "${ECHO_T}allocator, bml, btl, coll, common, crcp, dpm, io, mpool, mtl, osc, pml, pubsub, rcache, topo" >&6; } ++ ++ # iterate through the list of frameworks. There is something ++ # funky with m4 foreach if the list is defined, but empty. It ++ # will call the 3rd argument once with an empty value for the ++ # first argument. Protect against calling MCA_CONFIGURE_FRAMEWORK ++ # with an empty second argument. Grrr.... ++ # if there isn't a project list, abort ++ # ++ # Also setup two variables for Makefiles: ++ # MCA_project_FRAMEWORKS - list of frameworks in that project ++ # MCA_project_FRAMEWORK_LIBS - list of libraries (or variables pointing ++ # to more libraries) that must be included ++ # in the project's main library ++ ++ ++ MCA_ompi_FRAMEWORKS= ++ MCA_ompi_FRAMEWORKS_SUBDIRS= ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS= ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS= ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS= ++ MCA_ompi_FRAMEWORK_LIBS= ++ ++ # common has to go up front ++ if test "allocator" = "common" ; then ++ MCA_ompi_FRAMEWORKS="allocator $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/allocator $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_allocator_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_allocator_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_allocator_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS allocator" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/allocator" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_allocator_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_allocator_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_allocator_STATIC_SUBDIRS)" ++ fi ++ if test "allocator" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/allocator/libmca_allocator.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_allocator_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework allocator" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "allocator" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/allocator/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework allocator" >&5 ++echo $ECHO_N "checking for no configure components in framework allocator... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: basic, bucket" >&5 ++echo "${ECHO_T}basic, bucket" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework allocator" >&5 ++echo $ECHO_N "checking for m4 configure components in framework allocator... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component allocator:basic (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=allocator ++ component=basic ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_allocator" ; then ++ if test "$DIRECT_allocator" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=allocator ++ component=basic ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_allocator" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=allocator ++ component=basic ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_allocator" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_allocator" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component allocator:basic can compile" >&5 ++echo $ECHO_N "checking if MCA component allocator:basic can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_allocator" = "basic" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_allocator" ; then ++ if test "$DIRECT_allocator" = "basic" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components basic" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_allocator_basic_DSO=1 ++ else ++ BUILD_allocator_basic_DSO=0 ++ fi ++ if test "$BUILD_allocator_basic_DSO" = "1"; then ++ OMPI_BUILD_allocator_basic_DSO_TRUE= ++ OMPI_BUILD_allocator_basic_DSO_FALSE='#' ++else ++ OMPI_BUILD_allocator_basic_DSO_TRUE='#' ++ OMPI_BUILD_allocator_basic_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component allocator:bucket (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=allocator ++ component=bucket ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_allocator" ; then ++ if test "$DIRECT_allocator" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=allocator ++ component=bucket ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_allocator" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=allocator ++ component=bucket ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_allocator" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_allocator" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component allocator:bucket can compile" >&5 ++echo $ECHO_N "checking if MCA component allocator:bucket can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_allocator" = "bucket" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"bucket\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"bucket\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_allocator" ; then ++ if test "$DIRECT_allocator" = "bucket" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"bucket\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"bucket\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components bucket" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_allocator_bucket_DSO=1 ++ else ++ BUILD_allocator_bucket_DSO=0 ++ fi ++ if test "$BUILD_allocator_bucket_DSO" = "1"; then ++ OMPI_BUILD_allocator_bucket_DSO_TRUE= ++ OMPI_BUILD_allocator_bucket_DSO_FALSE='#' ++else ++ OMPI_BUILD_allocator_bucket_DSO_TRUE='#' ++ OMPI_BUILD_allocator_bucket_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/allocator/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component allocator:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=allocator ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_allocator" ; then ++ if test "$DIRECT_allocator" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=allocator ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_allocator" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/allocator/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/allocator/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=allocator ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_allocator" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_allocator" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component allocator:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component allocator:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_allocator" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_allocator" ; then ++ if test "$DIRECT_allocator" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_allocator_ALL_COMPONENTS="$all_components" ++ MCA_allocator_STATIC_COMPONENTS="$static_components" ++ MCA_allocator_DSO_COMPONENTS="$dso_components" ++ MCA_allocator_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_allocator_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_allocator_ALL_SUBDIRS="$MCA_allocator_ALL_SUBDIRS mca/allocator/$item" ++ done ++ ++ ++ ++ MCA_allocator_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_allocator_STATIC_SUBDIRS="$MCA_allocator_STATIC_SUBDIRS mca/allocator/$item" ++ done ++ ++ ++ ++ MCA_allocator_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_allocator_DSO_SUBDIRS="$MCA_allocator_DSO_SUBDIRS mca/allocator/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "allocator" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "bml" = "common" ; then ++ MCA_ompi_FRAMEWORKS="bml $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/bml $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_bml_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_bml_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_bml_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS bml" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/bml" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_bml_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_bml_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_bml_STATIC_SUBDIRS)" ++ fi ++ if test "bml" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/bml/libmca_bml.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_bml_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework bml" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "bml" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/bml/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework bml" >&5 ++echo $ECHO_N "checking for no configure components in framework bml... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: r2" >&5 ++echo "${ECHO_T}r2" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework bml" >&5 ++echo $ECHO_N "checking for m4 configure components in framework bml... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component bml:r2 (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=bml ++ component=r2 ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_bml" ; then ++ if test "$DIRECT_bml" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=bml ++ component=r2 ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_bml" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=bml ++ component=r2 ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_bml" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_bml" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component bml:r2 can compile" >&5 ++echo $ECHO_N "checking if MCA component bml:r2 can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_bml" = "r2" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"r2\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"r2\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_bml" ; then ++ if test "$DIRECT_bml" = "r2" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"r2\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"r2\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components r2" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_bml_r2_DSO=1 ++ else ++ BUILD_bml_r2_DSO=0 ++ fi ++ if test "$BUILD_bml_r2_DSO" = "1"; then ++ OMPI_BUILD_bml_r2_DSO_TRUE= ++ OMPI_BUILD_bml_r2_DSO_FALSE='#' ++else ++ OMPI_BUILD_bml_r2_DSO_TRUE='#' ++ OMPI_BUILD_bml_r2_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/bml/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component bml:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=bml ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_bml" ; then ++ if test "$DIRECT_bml" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=bml ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_bml" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/bml/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/bml/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=bml ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_bml" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_bml" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component bml:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component bml:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_bml" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_bml" ; then ++ if test "$DIRECT_bml" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_bml_ALL_COMPONENTS="$all_components" ++ MCA_bml_STATIC_COMPONENTS="$static_components" ++ MCA_bml_DSO_COMPONENTS="$dso_components" ++ MCA_bml_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_bml_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_bml_ALL_SUBDIRS="$MCA_bml_ALL_SUBDIRS mca/bml/$item" ++ done ++ ++ ++ ++ MCA_bml_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_bml_STATIC_SUBDIRS="$MCA_bml_STATIC_SUBDIRS mca/bml/$item" ++ done ++ ++ ++ ++ MCA_bml_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_bml_DSO_SUBDIRS="$MCA_bml_DSO_SUBDIRS mca/bml/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "bml" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "btl" = "common" ; then ++ MCA_ompi_FRAMEWORKS="btl $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/btl $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_btl_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_btl_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_btl_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS btl" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/btl" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_btl_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_btl_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_btl_STATIC_SUBDIRS)" ++ fi ++ if test "btl" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/btl/libmca_btl.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_btl_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework btl" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "btl" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/btl/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework btl" >&5 ++echo $ECHO_N "checking for no configure components in framework btl... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: self, sm" >&5 ++echo "${ECHO_T}self, sm" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework btl" >&5 ++echo $ECHO_N "checking for m4 configure components in framework btl... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: elan, gm, mx, ofud, openib, portals, tcp, udapl" >&5 ++echo "${ECHO_T}elan, gm, mx, ofud, openib, portals, tcp, udapl" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component btl:self (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=self ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=self ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=self ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_btl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_btl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component btl:self can compile" >&5 ++echo $ECHO_N "checking if MCA component btl:self can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_btl" = "self" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "self" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components self" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_btl_self_DSO=1 ++ else ++ BUILD_btl_self_DSO=0 ++ fi ++ if test "$BUILD_btl_self_DSO" = "1"; then ++ OMPI_BUILD_btl_self_DSO_TRUE= ++ OMPI_BUILD_btl_self_DSO_FALSE='#' ++else ++ OMPI_BUILD_btl_self_DSO_TRUE='#' ++ OMPI_BUILD_btl_self_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component btl:sm (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=sm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=sm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=sm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_btl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_btl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component btl:sm can compile" >&5 ++echo $ECHO_N "checking if MCA component btl:sm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_btl" = "sm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "sm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components sm" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_btl_sm_DSO=1 ++ else ++ BUILD_btl_sm_DSO=0 ++ fi ++ if test "$BUILD_btl_sm_DSO" = "1"; then ++ OMPI_BUILD_btl_sm_DSO_TRUE= ++ OMPI_BUILD_btl_sm_DSO_FALSE='#' ++else ++ OMPI_BUILD_btl_sm_DSO_TRUE='#' ++ OMPI_BUILD_btl_sm_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component btl:elan (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=elan ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=btl ++ component=elan ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-elan was given. ++if test "${with_elan+set}" = set; then ++ withval=$with_elan; ++fi ++ ++ ++# Check whether --with-elan-libdir was given. ++if test "${with_elan_libdir+set}" = set; then ++ withval=$with_elan_libdir; ++fi ++ ++ ++ if test "$with_elan" != "no"; then ++ if test ! -z "$with_elan" -a "$with_elan" != "yes"; then ++ ompi_check_elan_dir="$with_elan" ++fi ++ ++ if test ! -z "$with_elan_libdir" -a "$with_elan_libdir" != "yes"; then ++ ompi_check_elan_libdir="$with_elan_libdir" ++fi ++ ++ ++ ++ ompi_check_package_btl_elan_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_btl_elan_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_btl_elan_save_LIBS="$LIBS" ++ ++ ompi_check_package_btl_elan_orig_CPPFLAGS="$btl_elan_CPPFLAGS" ++ ompi_check_package_btl_elan_orig_LDFLAGS="$btl_elan_LDFLAGS" ++ ompi_check_package_btl_elan_orig_LIBS="$btl_elan_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_elan_elan_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_elan_dir" = "/usr" -o "$ompi_check_elan_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_elan_elan_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for elan/elan.h" >&5 ++echo $ECHO_N "checking for elan/elan.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_elan_elan_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_elan_elan_h" >&5 ++echo "${ECHO_T}$ac_cv_header_elan_elan_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking elan/elan.h usability" >&5 ++echo $ECHO_N "checking elan/elan.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking elan/elan.h presence" >&5 ++echo $ECHO_N "checking elan/elan.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: elan/elan.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: elan/elan.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: elan/elan.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: elan/elan.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: elan/elan.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: elan/elan.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: elan/elan.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: elan/elan.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for elan/elan.h" >&5 ++echo $ECHO_N "checking for elan/elan.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_elan_elan_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_elan_elan_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_elan_elan_h" >&5 ++echo "${ECHO_T}$ac_cv_header_elan_elan_h" >&6; } ++ ++fi ++if test $ac_cv_header_elan_elan_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_elan_elan_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_elan_dir" != ""; then ++ btl_elan_CPPFLAGS="$btl_elan_CPPFLAGS -I$ompi_check_elan_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_elan_dir/include" ++fi ++ ++ if test "${ac_cv_header_elan_elan_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for elan/elan.h" >&5 ++echo $ECHO_N "checking for elan/elan.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_elan_elan_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_elan_elan_h" >&5 ++echo "${ECHO_T}$ac_cv_header_elan_elan_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking elan/elan.h usability" >&5 ++echo $ECHO_N "checking elan/elan.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking elan/elan.h presence" >&5 ++echo $ECHO_N "checking elan/elan.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: elan/elan.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: elan/elan.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: elan/elan.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: elan/elan.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: elan/elan.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: elan/elan.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: elan/elan.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: elan/elan.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for elan/elan.h" >&5 ++echo $ECHO_N "checking for elan/elan.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_elan_elan_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_elan_elan_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_elan_elan_h" >&5 ++echo "${ECHO_T}$ac_cv_header_elan_elan_h" >&6; } ++ ++fi ++if test $ac_cv_header_elan_elan_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_elan_elan_init ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_elan_libdir" != ""; then ++ # libdir was specified - search only there ++ btl_elan_LDFLAGS="$btl_elan_LDFLAGS -L$ompi_check_elan_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_elan_libdir" ++ { echo "$as_me:$LINENO: checking for elan_init in -lelan" >&5 ++echo $ECHO_N "checking for elan_init in -lelan... $ECHO_C" >&6; } ++if test "${ac_cv_lib_elan_elan_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lelan $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char elan_init (); ++int ++main () ++{ ++return elan_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_elan_elan_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_elan_elan_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_elan_elan_init" >&6; } ++if test $ac_cv_lib_elan_elan_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS" ++ btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS" ++ unset ac_cv_lib_elan_elan_init ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_elan_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for elan_init in -lelan" >&5 ++echo $ECHO_N "checking for elan_init in -lelan... $ECHO_C" >&6; } ++if test "${ac_cv_lib_elan_elan_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lelan $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char elan_init (); ++int ++main () ++{ ++return elan_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_elan_elan_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_elan_elan_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_elan_elan_init" >&6; } ++if test $ac_cv_lib_elan_elan_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS" ++ btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS" ++ unset ac_cv_lib_elan_elan_init ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_elan_LDFLAGS="$btl_elan_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for elan_init in -lelan" >&5 ++echo $ECHO_N "checking for elan_init in -lelan... $ECHO_C" >&6; } ++if test "${ac_cv_lib_elan_elan_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lelan $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char elan_init (); ++int ++main () ++{ ++return elan_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_elan_elan_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_elan_elan_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_elan_elan_init" >&6; } ++if test $ac_cv_lib_elan_elan_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS" ++ btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS" ++ unset ac_cv_lib_elan_elan_init ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_elan_LDFLAGS="$btl_elan_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for elan_init in -lelan" >&5 ++echo $ECHO_N "checking for elan_init in -lelan... $ECHO_C" >&6; } ++if test "${ac_cv_lib_elan_elan_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lelan $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char elan_init (); ++int ++main () ++{ ++return elan_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_elan_elan_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_elan_elan_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_elan_elan_init" >&6; } ++if test $ac_cv_lib_elan_elan_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS" ++ btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS" ++ unset ac_cv_lib_elan_elan_init ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ btl_elan_LIBS="-lelan " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_elan_elan_init ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_elan_libdir" != ""; then ++ # libdir was specified - search only there ++ btl_elan_LDFLAGS="$btl_elan_LDFLAGS -L$ompi_check_elan_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_elan_libdir" ++ { echo "$as_me:$LINENO: checking for elan_init in -lelan" >&5 ++echo $ECHO_N "checking for elan_init in -lelan... $ECHO_C" >&6; } ++if test "${ac_cv_lib_elan_elan_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lelan $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char elan_init (); ++int ++main () ++{ ++return elan_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_elan_elan_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_elan_elan_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_elan_elan_init" >&6; } ++if test $ac_cv_lib_elan_elan_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS" ++ btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS" ++ unset ac_cv_lib_elan_elan_init ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_elan_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for elan_init in -lelan" >&5 ++echo $ECHO_N "checking for elan_init in -lelan... $ECHO_C" >&6; } ++if test "${ac_cv_lib_elan_elan_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lelan $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char elan_init (); ++int ++main () ++{ ++return elan_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_elan_elan_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_elan_elan_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_elan_elan_init" >&6; } ++if test $ac_cv_lib_elan_elan_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS" ++ btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS" ++ unset ac_cv_lib_elan_elan_init ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_elan_LDFLAGS="$btl_elan_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for elan_init in -lelan" >&5 ++echo $ECHO_N "checking for elan_init in -lelan... $ECHO_C" >&6; } ++if test "${ac_cv_lib_elan_elan_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lelan $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char elan_init (); ++int ++main () ++{ ++return elan_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_elan_elan_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_elan_elan_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_elan_elan_init" >&6; } ++if test $ac_cv_lib_elan_elan_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS" ++ btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS" ++ unset ac_cv_lib_elan_elan_init ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_elan_LDFLAGS="$btl_elan_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for elan_init in -lelan" >&5 ++echo $ECHO_N "checking for elan_init in -lelan... $ECHO_C" >&6; } ++if test "${ac_cv_lib_elan_elan_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lelan $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char elan_init (); ++int ++main () ++{ ++return elan_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_elan_elan_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_elan_elan_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_elan_elan_init" >&6; } ++if test $ac_cv_lib_elan_elan_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS" ++ btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS" ++ unset ac_cv_lib_elan_elan_init ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ btl_elan_LIBS="-lelan " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ ompi_check_elan_happy="yes" ++else ++ btl_elan_CPPFLAGS="$ompi_check_package_btl_elan_orig_CPPFLAGS" ++ btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS" ++ btl_elan_LIBS="$ompi_check_package_btl_elan_orig_LIBS" ++ ompi_check_elan_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_btl_elan_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS" ++ LIBS="$ompi_check_package_btl_elan_save_LIBS" ++ ++ ++else ++ ompi_check_elan_happy="no" ++fi ++ ++ ++ if test "$ompi_check_elan_happy" = "yes"; then ++ btl_elan_happy="yes" ++else ++ if test ! -z "$with_elan" -a "$with_elan" != "no"; then ++ { { echo "$as_me:$LINENO: error: Elan (QsNet2) support requested but not found. Aborting" >&5 ++echo "$as_me: error: Elan (QsNet2) support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ btl_elan_happy="no" ++fi ++ ++ ++ ++ if test "$btl_elan_happy" = "yes"; then ++ btl_elan_WRAPPER_EXTRA_LDFLAGS="$btl_elan_LDFLAGS" ++ btl_elan_WRAPPER_EXTRA_LIBS="$btl_elan_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # substitute in the things needed to build elan ++ ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=elan ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_btl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_btl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component btl:elan can compile" >&5 ++echo $ECHO_N "checking if MCA component btl:elan can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_btl" = "elan" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"elan\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"elan\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "elan" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"elan\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"elan\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components elan" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_btl_elan_DSO=1 ++else ++ BUILD_btl_elan_DSO=0 ++fi ++ ++ if test "$BUILD_btl_elan_DSO" = "1"; then ++ OMPI_BUILD_btl_elan_DSO_TRUE= ++ OMPI_BUILD_btl_elan_DSO_FALSE='#' ++else ++ OMPI_BUILD_btl_elan_DSO_TRUE='#' ++ OMPI_BUILD_btl_elan_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component btl:gm (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=gm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=btl ++ component=gm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-gm was given. ++if test "${with_gm+set}" = set; then ++ withval=$with_gm; ++fi ++ ++ ++# Check whether --with-gm-libdir was given. ++if test "${with_gm_libdir+set}" = set; then ++ withval=$with_gm_libdir; ++fi ++ ++ ++ if test "$with_gm" != "no"; then ++ if test ! -z "$with_gm" -a "$with_gm" != "yes"; then ++ ompi_check_gm_dir="$with_gm" ++fi ++ ++ if test ! -z "$with_gm_libdir" -a "$with_gm_libdir" != "yes"; then ++ ompi_check_gm_libdir="$with_gm_libdir" ++fi ++ ++ ++ ++ ompi_check_package_btl_gm_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_btl_gm_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_btl_gm_save_LIBS="$LIBS" ++ ++ ompi_check_package_btl_gm_orig_CPPFLAGS="$btl_gm_CPPFLAGS" ++ ompi_check_package_btl_gm_orig_LDFLAGS="$btl_gm_LDFLAGS" ++ ompi_check_package_btl_gm_orig_LIBS="$btl_gm_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_gm_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_gm_dir" = "/usr" -o "$ompi_check_gm_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_gm_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for gm.h" >&5 ++echo $ECHO_N "checking for gm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_gm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_gm_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking gm.h usability" >&5 ++echo $ECHO_N "checking gm.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking gm.h presence" >&5 ++echo $ECHO_N "checking gm.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: gm.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: gm.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: gm.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: gm.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: gm.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: gm.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: gm.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: gm.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: gm.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: gm.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: gm.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: gm.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for gm.h" >&5 ++echo $ECHO_N "checking for gm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_gm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_gm_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_gm_h" >&6; } ++ ++fi ++if test $ac_cv_header_gm_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_gm_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_gm_dir" != ""; then ++ btl_gm_CPPFLAGS="$btl_gm_CPPFLAGS -I$ompi_check_gm_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_gm_dir/include" ++fi ++ ++ if test "${ac_cv_header_gm_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for gm.h" >&5 ++echo $ECHO_N "checking for gm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_gm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_gm_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking gm.h usability" >&5 ++echo $ECHO_N "checking gm.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking gm.h presence" >&5 ++echo $ECHO_N "checking gm.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: gm.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: gm.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: gm.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: gm.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: gm.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: gm.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: gm.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: gm.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: gm.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: gm.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: gm.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: gm.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for gm.h" >&5 ++echo $ECHO_N "checking for gm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_gm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_gm_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_gm_h" >&6; } ++ ++fi ++if test $ac_cv_header_gm_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_gm_gm_init ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_gm_libdir" != ""; then ++ # libdir was specified - search only there ++ btl_gm_LDFLAGS="$btl_gm_LDFLAGS -L$ompi_check_gm_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_gm_libdir" ++ { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5 ++echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; } ++if test "${ac_cv_lib_gm_gm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lgm $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char gm_init (); ++int ++main () ++{ ++return gm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_gm_gm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_gm_gm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; } ++if test $ac_cv_lib_gm_gm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS" ++ btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS" ++ unset ac_cv_lib_gm_gm_init ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_gm_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5 ++echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; } ++if test "${ac_cv_lib_gm_gm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lgm $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char gm_init (); ++int ++main () ++{ ++return gm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_gm_gm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_gm_gm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; } ++if test $ac_cv_lib_gm_gm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS" ++ btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS" ++ unset ac_cv_lib_gm_gm_init ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_gm_LDFLAGS="$btl_gm_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5 ++echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; } ++if test "${ac_cv_lib_gm_gm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lgm $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char gm_init (); ++int ++main () ++{ ++return gm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_gm_gm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_gm_gm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; } ++if test $ac_cv_lib_gm_gm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS" ++ btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS" ++ unset ac_cv_lib_gm_gm_init ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_gm_LDFLAGS="$btl_gm_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5 ++echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; } ++if test "${ac_cv_lib_gm_gm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lgm $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char gm_init (); ++int ++main () ++{ ++return gm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_gm_gm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_gm_gm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; } ++if test $ac_cv_lib_gm_gm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS" ++ btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS" ++ unset ac_cv_lib_gm_gm_init ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ btl_gm_LIBS="-lgm " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_gm_gm_init ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_gm_libdir" != ""; then ++ # libdir was specified - search only there ++ btl_gm_LDFLAGS="$btl_gm_LDFLAGS -L$ompi_check_gm_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_gm_libdir" ++ { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5 ++echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; } ++if test "${ac_cv_lib_gm_gm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lgm $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char gm_init (); ++int ++main () ++{ ++return gm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_gm_gm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_gm_gm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; } ++if test $ac_cv_lib_gm_gm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS" ++ btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS" ++ unset ac_cv_lib_gm_gm_init ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_gm_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5 ++echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; } ++if test "${ac_cv_lib_gm_gm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lgm $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char gm_init (); ++int ++main () ++{ ++return gm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_gm_gm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_gm_gm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; } ++if test $ac_cv_lib_gm_gm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS" ++ btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS" ++ unset ac_cv_lib_gm_gm_init ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_gm_LDFLAGS="$btl_gm_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5 ++echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; } ++if test "${ac_cv_lib_gm_gm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lgm $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char gm_init (); ++int ++main () ++{ ++return gm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_gm_gm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_gm_gm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; } ++if test $ac_cv_lib_gm_gm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS" ++ btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS" ++ unset ac_cv_lib_gm_gm_init ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_gm_LDFLAGS="$btl_gm_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5 ++echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; } ++if test "${ac_cv_lib_gm_gm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lgm $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char gm_init (); ++int ++main () ++{ ++return gm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_gm_gm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_gm_gm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; } ++if test $ac_cv_lib_gm_gm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS" ++ btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS" ++ unset ac_cv_lib_gm_gm_init ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ btl_gm_LIBS="-lgm " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ ompi_check_gm_happy="yes" ++else ++ btl_gm_CPPFLAGS="$ompi_check_package_btl_gm_orig_CPPFLAGS" ++ btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS" ++ btl_gm_LIBS="$ompi_check_package_btl_gm_orig_LIBS" ++ ompi_check_gm_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_btl_gm_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS" ++ LIBS="$ompi_check_package_btl_gm_save_LIBS" ++ ++else ++ ompi_check_gm_happy="no" ++fi ++ ++ ++ if test "$ompi_check_gm_happy" = "yes"; then ++ ++ u_OMPI_CHECK_GM_CONFIG_SAVE_CPPFLAGS="$CPPFLAGS" ++ u_OMPI_CHECK_GM_CONFIG_SAVE_LDFLAGS="$LDFLAGS" ++ u_OMPI_CHECK_GM_CONFIG_SAVE_LIBS="$LIBS" ++ ++ CPPFLAGS="$CPPFLAGS $btl_gm_CPPFLAGS" ++ LDFLAGS="$LDFLAGS $btl_gm_LDFLAGS" ++ LIBS="$LIBS $btl_gm_LIBS" ++ ++ # ++ # See if we have GM_API_VERSION. If we do, use it. If not, find the ++ # highest one available. It seems that GM_API_VERSION was introduced ++ # somewhere after 1.3 but before 1.6. :-\ ++ # ++ { echo "$as_me:$LINENO: checking for GM_API_VERSION" >&5 ++echo $ECHO_N "checking for GM_API_VERSION... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++int foo = GM_API_VERSION; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ have_gm_api_ver_msg=yes gm_api_ver=GM_API_VERSION ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ have_gm_api_ver_msg=no gm_api_ver="" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ { echo "$as_me:$LINENO: result: $have_gm_api_ver_msg" >&5 ++echo "${ECHO_T}$have_gm_api_ver_msg" >&6; } ++ if test "$gm_api_ver" = ""; then ++ found=0 ++ for val in 5 4 3; do ++ if test "$found" = "0"; then ++ var="GM_API_VERSION_1_$val" ++ { echo "$as_me:$LINENO: checking for $var" >&5 ++echo $ECHO_N "checking for $var... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++int foo = $var; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ msg=yes found=1 gm_api_ver=$var ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ msg=no found=0 gm_api_ver="" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ { echo "$as_me:$LINENO: result: $msg" >&5 ++echo "${ECHO_T}$msg" >&6; } ++ fi ++ done ++ fi ++ if test "$gm_api_ver" = ""; then ++ { echo "$as_me:$LINENO: WARNING: *** Could not find a supported GM_API_VERSION" >&5 ++echo "$as_me: WARNING: *** Could not find a supported GM_API_VERSION" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_MCA_BTL_GM_API_VERSION $gm_api_ver ++_ACEOF ++ ++ unset gm_api_ver have_gm_api_ver_msg found val msg ++ ++ # ++ # Do we have gm_put()? ++ # gm_put() was introduced in gm 2.0, and is exactly identical to gm ++ # 1.6's gm_directed_send_with_callback(). The name was simply changed ++ # for consistency/symmtery with gm_get(). ++ # ++ { echo "$as_me:$LINENO: checking for gm_put()" >&5 ++echo $ECHO_N "checking for gm_put()... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++gm_put(0, 0, 0, 0, 0, 0, 0, 0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ HAVE_RDMA_PUT=1 MSG=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ HAVE_RDMA_PUT=0 MSG="no, use gm_directed_send_with_callback()" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_MCA_BTL_GM_HAVE_RDMA_PUT $HAVE_RDMA_PUT ++_ACEOF ++ ++ { echo "$as_me:$LINENO: result: $MSG" >&5 ++echo "${ECHO_T}$MSG" >&6; } ++ ++ # ++ # Do we have gm_get()? ++ # gm_get() was introduced in gm 2.0. ++ # ++ { echo "$as_me:$LINENO: checking for gm_get()" >&5 ++echo $ECHO_N "checking for gm_get()... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++gm_get(0, 0, 0, 0, 0, 0, 0, 0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ HAVE_RDMA_GET=1 MSG=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ HAVE_RDMA_GET=0 MSG=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_MCA_BTL_GM_HAVE_RDMA_GET $HAVE_RDMA_GET ++_ACEOF ++ ++ { echo "$as_me:$LINENO: result: $MSG" >&5 ++echo "${ECHO_T}$MSG" >&6; } ++ ++ # Now test to see if the targetted GM is a broken one broken gm builds ++ { echo "$as_me:$LINENO: checking for broken GM 2.x RDMA gets build" >&5 ++echo $ECHO_N "checking for broken GM 2.x RDMA gets build... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ #include ++ ++int ++main () ++{ ++ ++ #if GM_API_VERSION_2_0 && \ ++ ((GM_API_VERSION_2_1_0 && GM_API_VERSION < 0x20102) || \ ++ GM_API_VERSION < 0x2000c) ++ #error GM build is broken ++ #endif ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ mca_gm_broken=0 gm_build_broken=no ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ mca_gm_broken=1 gm_build_broken=yes ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ { echo "$as_me:$LINENO: result: $gm_build_broken " >&5 ++echo "${ECHO_T}$gm_build_broken " >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_MCA_BTL_GM_GET_BROKEN $mca_gm_broken ++_ACEOF ++ ++ unset gm_build_broken mca_gm_broken ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_MCA_BTL_GM_SUPPORT_REGISTERING 1 ++_ACEOF ++ ++ ++ CPPFLAGS="$u_OMPI_CHECK_GM_CONFIG_SAVE_CPPFLAGS" ++ LDFLAGS="$u_OMPI_CHECK_GM_CONFIG_SAVE_LDFLAGS" ++ LIBS="$u_OMPI_CHECK_GM_CONFIG_SAVE_LIBS" ++ ++ btl_gm_happy="yes" ++else ++ if test ! -z "$with_gm" -a "$with_gm" != "no"; then ++ { { echo "$as_me:$LINENO: error: GM support requested but not found. Aborting" >&5 ++echo "$as_me: error: GM support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ btl_gm_happy="no" ++fi ++ ++ ++ ++ if test "$btl_gm_happy" = "yes"; then ++ btl_gm_WRAPPER_EXTRA_LDFLAGS="$btl_gm_LDFLAGS" ++ btl_gm_WRAPPER_EXTRA_LIBS="$btl_gm_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # substitute in the things needed to build gm ++ ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=gm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_btl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_btl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component btl:gm can compile" >&5 ++echo $ECHO_N "checking if MCA component btl:gm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_btl" = "gm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"gm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"gm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "gm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"gm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"gm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components gm" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_btl_gm_DSO=1 ++else ++ BUILD_btl_gm_DSO=0 ++fi ++ ++ if test "$BUILD_btl_gm_DSO" = "1"; then ++ OMPI_BUILD_btl_gm_DSO_TRUE= ++ OMPI_BUILD_btl_gm_DSO_FALSE='#' ++else ++ OMPI_BUILD_btl_gm_DSO_TRUE='#' ++ OMPI_BUILD_btl_gm_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component btl:mx (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=mx ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=btl ++ component=mx ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-mx was given. ++if test "${with_mx+set}" = set; then ++ withval=$with_mx; ++fi ++ ++ ++# Check whether --with-mx-libdir was given. ++if test "${with_mx_libdir+set}" = set; then ++ withval=$with_mx_libdir; ++fi ++ ++ ++ ompi_check_mx_btl_mx_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_mx_btl_mx_save_LDFLAGS="$LDFLAGS" ++ ompi_check_mx_btl_mx_save_LIBS="$LIBS" ++ ++ if test "$with_mx" != "no"; then ++ if test ! -z "$with_mx" -a "$with_mx" != "yes"; then ++ ompi_check_mx_dir="$with_mx" ++fi ++ ++ if test ! -z "$with_mx_libdir" -a "$with_mx_libdir" != "yes"; then ++ ompi_check_mx_libdir="$with_mx_libdir" ++fi ++ ++ ++ ++ ompi_check_package_btl_mx_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_btl_mx_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_btl_mx_save_LIBS="$LIBS" ++ ++ ompi_check_package_btl_mx_orig_CPPFLAGS="$btl_mx_CPPFLAGS" ++ ompi_check_package_btl_mx_orig_LDFLAGS="$btl_mx_LDFLAGS" ++ ompi_check_package_btl_mx_orig_LIBS="$btl_mx_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_myriexpress_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_mx_dir" = "/usr" -o "$ompi_check_mx_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for myriexpress.h" >&5 ++echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5 ++echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking myriexpress.h usability" >&5 ++echo $ECHO_N "checking myriexpress.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking myriexpress.h presence" >&5 ++echo $ECHO_N "checking myriexpress.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: myriexpress.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: myriexpress.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: myriexpress.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: myriexpress.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for myriexpress.h" >&5 ++echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_myriexpress_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5 ++echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; } ++ ++fi ++if test $ac_cv_header_myriexpress_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_myriexpress_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_mx_dir" != ""; then ++ btl_mx_CPPFLAGS="$btl_mx_CPPFLAGS -I$ompi_check_mx_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_mx_dir/include" ++fi ++ ++ if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for myriexpress.h" >&5 ++echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5 ++echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking myriexpress.h usability" >&5 ++echo $ECHO_N "checking myriexpress.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking myriexpress.h presence" >&5 ++echo $ECHO_N "checking myriexpress.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: myriexpress.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: myriexpress.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: myriexpress.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: myriexpress.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for myriexpress.h" >&5 ++echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_myriexpress_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5 ++echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; } ++ ++fi ++if test $ac_cv_header_myriexpress_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_myriexpress_mx_finalize ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_mx_libdir" != ""; then ++ # libdir was specified - search only there ++ btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_mx_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_mx_libdir" ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS" ++ btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_mx_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS" ++ btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS" ++ btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS" ++ btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ btl_mx_LIBS="-lmyriexpress " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_myriexpress_mx_finalize ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_mx_libdir" != ""; then ++ # libdir was specified - search only there ++ btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_mx_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_mx_libdir" ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS" ++ btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_mx_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS" ++ btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS" ++ btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS" ++ btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ btl_mx_LIBS="-lmyriexpress " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ ompi_check_mx_happy="yes" ++else ++ btl_mx_CPPFLAGS="$ompi_check_package_btl_mx_orig_CPPFLAGS" ++ btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS" ++ btl_mx_LIBS="$ompi_check_package_btl_mx_orig_LIBS" ++ ompi_check_mx_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_btl_mx_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS" ++ LIBS="$ompi_check_package_btl_mx_save_LIBS" ++ ++else ++ ompi_check_mx_happy="no" ++fi ++ ++ ++ CPPFLAGS="$CPPFLAGS $btl_mx_CPPFLAGS" ++ LDFLAGS="$LDFLAGS $btl_mx_LDFLAGS" ++ LIBS="$LIBS $btl_mx_LIBS" ++ ++ # need at least version 1.0 ++ if test "ompi_check_mx_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for MX version 1.0 or later" >&5 ++echo $ECHO_N "checking for MX version 1.0 or later... $ECHO_C" >&6; } ++if test "${ompi_cv_mx_version_ok+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++ ++int ++main () ++{ ++ ++#if MX_API < 0x300 ++#error "Version less than 0x300" ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ompi_cv_mx_version_ok="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_mx_version_ok="no" ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_mx_version_ok" >&5 ++echo "${ECHO_T}$ompi_cv_mx_version_ok" >&6; } ++fi ++ ++ if test "$ompi_cv_mx_version_ok" = "no"; then ++ ompi_check_mx_happy="no" ++fi ++ ++ ++ if test "$ompi_check_mx_happy" = "yes"; then ++ ++for ac_header in mx_extensions.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++ ++for ac_func in mx_forget mx_register_unexp_handler ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ ++ { echo "$as_me:$LINENO: checking for mx_open_board" >&5 ++echo $ECHO_N "checking for mx_open_board... $ECHO_C" >&6; } ++if test "${ompi_cv_func_mx_open_board+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++ ++int ++main () ++{ ++ ++mx_open_board(0, NULL); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_mx_open_board="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_mx_open_board="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_mx_open_board" >&5 ++echo "${ECHO_T}$ompi_cv_func_mx_open_board" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for mx__get_mapper_state" >&5 ++echo $ECHO_N "checking for mx__get_mapper_state... $ECHO_C" >&6; } ++if test "${ompi_cv_func_mx__get_mapper_state+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++ ++int ++main () ++{ ++ ++mx__get_mapper_state(NULL, NULL); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_mx__get_mapper_state="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_mx__get_mapper_state="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_mx__get_mapper_state" >&5 ++echo "${ECHO_T}$ompi_cv_func_mx__get_mapper_state" >&6; } ++ ++ if test "$ompi_cv_func_mx_open_board" = "yes" -a "$ompi_cv_func_mx__get_mapper_state" = "yes"; then ++ mx_provide_mapper_state=1 ++ ++else ++ mx_provide_mapper_state=0 ++ ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MX_HAVE_MAPPER_STATE $mx_provide_mapper_state ++_ACEOF ++ ++ ++else ++ { echo "$as_me:$LINENO: WARNING: The MX support for Open MPI will be compiled without the ++MX extensions, which may result in lower performance. Please upgrade ++to at least MX 1.2.0 to enable the MX extensions." >&5 ++echo "$as_me: WARNING: The MX support for Open MPI will be compiled without the ++MX extensions, which may result in lower performance. Please upgrade ++to at least MX 1.2.0 to enable the MX extensions." >&2;} ++fi ++ ++done ++ ++fi ++ ++ ++ CPPFLAGS="$ompi_check_mx_btl_mx_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_mx_btl_mx_save_LDFLAGS" ++ LIBS="$ompi_check_mx_btl_mx_save_LIBS" ++ ++ if test "$ompi_check_mx_happy" = "yes" -a "$enable_progress_threads" = "yes"; then ++ { echo "$as_me:$LINENO: WARNING: MX driver does not currently support progress threads. Disabling BTL." >&5 ++echo "$as_me: WARNING: MX driver does not currently support progress threads. Disabling BTL." >&2;} ++ ompi_check_mx_happy="no" ++fi ++ ++ ++ if test "$ompi_check_mx_happy" = "yes"; then ++ btl_mx_happy="yes" ++else ++ if test ! -z "$with_mx" -a "$with_mx" != "no"; then ++ { { echo "$as_me:$LINENO: error: MX support requested but not found. Aborting" >&5 ++echo "$as_me: error: MX support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ btl_mx_happy="no" ++fi ++ ++ ++ ++ if test "$btl_mx_happy" = "yes"; then ++ btl_mx_WRAPPER_EXTRA_LDFLAGS="$btl_mx_LDFLAGS" ++ btl_mx_WRAPPER_EXTRA_LIBS="$btl_mx_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # substitute in the things needed to build mx ++ ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=mx ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_btl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_btl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component btl:mx can compile" >&5 ++echo $ECHO_N "checking if MCA component btl:mx can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_btl" = "mx" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"mx\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "mx" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"mx\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components mx" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_btl_mx_DSO=1 ++else ++ BUILD_btl_mx_DSO=0 ++fi ++ ++ if test "$BUILD_btl_mx_DSO" = "1"; then ++ OMPI_BUILD_btl_mx_DSO_TRUE= ++ OMPI_BUILD_btl_mx_DSO_FALSE='#' ++else ++ OMPI_BUILD_btl_mx_DSO_TRUE='#' ++ OMPI_BUILD_btl_mx_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component btl:ofud (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=ofud ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=btl ++ component=ofud ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in btl_ofud_msg; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"btl_ofud_msg\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ # ++ # Openfabrics support ++ # ++ ++# Check whether --with-openib was given. ++if test "${with_openib+set}" = set; then ++ withval=$with_openib; ++fi ++ ++ ++# Check whether --with-openib-libdir was given. ++if test "${with_openib_libdir+set}" = set; then ++ withval=$with_openib_libdir; ++fi ++ ++ ++ # ++ # ConnectX XRC support ++ # ++ # Check whether --enable-openib-connectx-xrc was given. ++if test "${enable_openib_connectx_xrc+set}" = set; then ++ enableval=$enable_openib_connectx_xrc; enable_connectx_xrc="$enableval" ++else ++ enable_connectx_xrc="yes" ++fi ++ ++ # ++ # Openfabrics IBCM ++ # ++ # Check whether --enable-openib-ibcm was given. ++if test "${enable_openib_ibcm+set}" = set; then ++ enableval=$enable_openib_ibcm; enable_openib_ibcm="$enableval" ++else ++ enable_openib_ibcm="no" ++fi ++ ++ # ++ # Openfabrics RDMACM ++ # ++ # Check whether --enable-openib-rdmacm was given. ++if test "${enable_openib_rdmacm+set}" = set; then ++ enableval=$enable_openib_rdmacm; enable_openib_rdmacm="$enableval" ++else ++ enable_openib_rdmacm="yes" ++fi ++ ++ ++ if test ! -z "$with_openib" -a "$with_openib" != "yes"; then ++ ompi_check_openib_dir="$with_openib" ++fi ++ ++ if test ! -z "$with_openib_libdir" -a "$with_openib_libdir" != "yes"; then ++ ompi_check_openib_libdir="$with_openib_libdir" ++fi ++ ++ if test "$with_openib" = "no"; then ++ ompi_check_openib_happy="no" ++else ++ ompi_check_openib_happy="yes" ++fi ++ ++ ++ ompi_check_openib_btl_ofud_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_openib_btl_ofud_save_LDFLAGS="$LDFLAGS" ++ ompi_check_openib_btl_ofud_save_LIBS="$LIBS" ++ ++ if test "$ompi_check_openib_happy" = "yes"; then ++ if test "$THREAD_TYPE" != "posix" -a "$memory_ptmalloc2_happy" = "yes"; then ++ if test "$enable_ptmalloc2_internal" = "yes"; then ++ { echo "$as_me:$LINENO: WARNING: POSIX threads are disabled, but" >&5 ++echo "$as_me: WARNING: POSIX threads are disabled, but" >&2;} ++ { echo "$as_me:$LINENO: WARNING: --enable-ptmalloc2-internal was specified. This will" >&5 ++echo "$as_me: WARNING: --enable-ptmalloc2-internal was specified. This will" >&2;} ++ { echo "$as_me:$LINENO: WARNING: cause memory corruption with OpenFabrics." >&5 ++echo "$as_me: WARNING: cause memory corruption with OpenFabrics." >&2;} ++ { echo "$as_me:$LINENO: WARNING: Not building component." >&5 ++echo "$as_me: WARNING: Not building component." >&2;} ++ ompi_check_openib_happy="no" ++else ++ { echo "$as_me:$LINENO: WARNING: POSIX threads are disabled, but the ptmalloc2 memory" >&5 ++echo "$as_me: WARNING: POSIX threads are disabled, but the ptmalloc2 memory" >&2;} ++ { echo "$as_me:$LINENO: WARNING: manager is being built. Compiling MPI applications with" >&5 ++echo "$as_me: WARNING: manager is being built. Compiling MPI applications with" >&2;} ++ { echo "$as_me:$LINENO: WARNING: -lopenmpi-malloc will result in memory corruption; Open" >&5 ++echo "$as_me: WARNING: -lopenmpi-malloc will result in memory corruption; Open" >&2;} ++ { echo "$as_me:$LINENO: WARNING: MPI will disable the openib BTL at run-time if such a" >&5 ++echo "$as_me: WARNING: MPI will disable the openib BTL at run-time if such a" >&2;} ++ { echo "$as_me:$LINENO: WARNING: combination is detected." >&5 ++echo "$as_me: WARNING: combination is detected." >&2;} ++ { echo "$as_me:$LINENO: WARNING: You have been warned." >&5 ++echo "$as_me: WARNING: You have been warned." >&2;} ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_openib_happy" = "yes"; then ++ ++ ++for ac_header in fcntl.h sys/poll.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++else ++ { echo "$as_me:$LINENO: WARNING: fcntl.h sys/poll.h not found. Can not build component." >&5 ++echo "$as_me: WARNING: fcntl.h sys/poll.h not found. Can not build component." >&2;} ++ ompi_check_openib_happy="no" ++fi ++ ++done ++ ++fi ++ ++ ++ if test "$ompi_check_openib_happy" = "yes"; then ++ ++ ompi_check_package_btl_ofud_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_btl_ofud_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_btl_ofud_save_LIBS="$LIBS" ++ ++ ompi_check_package_btl_ofud_orig_CPPFLAGS="$btl_ofud_CPPFLAGS" ++ ompi_check_package_btl_ofud_orig_LDFLAGS="$btl_ofud_LDFLAGS" ++ ompi_check_package_btl_ofud_orig_LIBS="$btl_ofud_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_infiniband_verbs_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_openib_dir" = "/usr" -o "$ompi_check_openib_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5 ++echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5 ++echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking infiniband/verbs.h usability" >&5 ++echo $ECHO_N "checking infiniband/verbs.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking infiniband/verbs.h presence" >&5 ++echo $ECHO_N "checking infiniband/verbs.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5 ++echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_infiniband_verbs_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5 ++echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6; } ++ ++fi ++if test $ac_cv_header_infiniband_verbs_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_infiniband_verbs_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_openib_dir" != ""; then ++ btl_ofud_CPPFLAGS="$btl_ofud_CPPFLAGS -I$ompi_check_openib_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_openib_dir/include" ++fi ++ ++ if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5 ++echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5 ++echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking infiniband/verbs.h usability" >&5 ++echo $ECHO_N "checking infiniband/verbs.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking infiniband/verbs.h presence" >&5 ++echo $ECHO_N "checking infiniband/verbs.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5 ++echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_infiniband_verbs_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5 ++echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6; } ++ ++fi ++if test $ac_cv_header_infiniband_verbs_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_ibverbs_ibv_open_device ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_openib_libdir" != ""; then ++ # libdir was specified - search only there ++ btl_ofud_LDFLAGS="$btl_ofud_LDFLAGS -L$ompi_check_openib_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_openib_libdir" ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS" ++ btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_openib_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS" ++ btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_ofud_LDFLAGS="$btl_ofud_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS" ++ btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_ofud_LDFLAGS="$btl_ofud_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS" ++ btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ btl_ofud_LIBS="-libverbs " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_ibverbs_ibv_open_device ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_openib_libdir" != ""; then ++ # libdir was specified - search only there ++ btl_ofud_LDFLAGS="$btl_ofud_LDFLAGS -L$ompi_check_openib_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_openib_libdir" ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS" ++ btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_openib_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS" ++ btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_ofud_LDFLAGS="$btl_ofud_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS" ++ btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_ofud_LDFLAGS="$btl_ofud_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS" ++ btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ btl_ofud_LIBS="-libverbs " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ ompi_check_openib_happy="yes" ++else ++ btl_ofud_CPPFLAGS="$ompi_check_package_btl_ofud_orig_CPPFLAGS" ++ btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS" ++ btl_ofud_LIBS="$ompi_check_package_btl_ofud_orig_LIBS" ++ ompi_check_openib_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_btl_ofud_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS" ++ LIBS="$ompi_check_package_btl_ofud_save_LIBS" ++ ++fi ++ ++ ++ CPPFLAGS="$CPPFLAGS $btl_ofud_CPPFLAGS" ++ LDFLAGS="$LDFLAGS $btl_ofud_LDFLAGS" ++ LIBS="$LIBS $btl_ofud_LIBS" ++ ++ if test "$ompi_check_openib_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking number of arguments to ibv_create_cq" >&5 ++echo $ECHO_N "checking number of arguments to ibv_create_cq... $ECHO_C" >&6; } ++if test "${ompi_cv_func_ibv_create_cq_args+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ibv_create_cq(NULL, 0, NULL, NULL, 0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_ibv_create_cq_args=5 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ibv_create_cq(NULL, 0, NULL); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_ibv_create_cq_args=3 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_ibv_create_cq_args="unknown" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_ibv_create_cq_args" >&5 ++echo "${ECHO_T}$ompi_cv_func_ibv_create_cq_args" >&6; } ++ if test "$ompi_cv_func_ibv_create_cq_args" = "unknown"; then ++ { echo "$as_me:$LINENO: WARNING: Can not determine number of args to ibv_create_cq." >&5 ++echo "$as_me: WARNING: Can not determine number of args to ibv_create_cq." >&2;} ++ { echo "$as_me:$LINENO: WARNING: Not building component." >&5 ++echo "$as_me: WARNING: Not building component." >&2;} ++ ompi_check_openib_happy="no" ++else ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_IBV_CREATE_CQ_ARGS $ompi_cv_func_ibv_create_cq_args ++_ACEOF ++ ++fi ++ ++fi ++ ++ ++ # Set these up so that we can do an AC_DEFINE below ++ # (unconditionally) ++ btl_ofud_have_xrc=0 ++ btl_ofud_have_rdmacm=0 ++ btl_ofud_have_ibcm=0 ++ ++ # If we have the openib stuff available, find out what we've got ++ if test "$ompi_check_openib_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking whether IBV_EVENT_CLIENT_REREGISTER is declared" >&5 ++echo $ECHO_N "checking whether IBV_EVENT_CLIENT_REREGISTER is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++#ifndef IBV_EVENT_CLIENT_REREGISTER ++ (void) IBV_EVENT_CLIENT_REREGISTER; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER" >&5 ++echo "${ECHO_T}$ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER" >&6; } ++if test $ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER 1 ++_ACEOF ++ ++ ++else ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER 0 ++_ACEOF ++ ++ ++fi ++ ++ ++ ++ ++for ac_func in ibv_get_device_list ibv_resize_cq ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ ++ # struct ibv_device.transport_type was added in OFED v1.2 ++ { echo "$as_me:$LINENO: checking for struct ibv_device.transport_type" >&5 ++echo $ECHO_N "checking for struct ibv_device.transport_type... $ECHO_C" >&6; } ++if test "${ac_cv_member_struct_ibv_device_transport_type+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++static struct ibv_device ac_aggr; ++if (ac_aggr.transport_type) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_struct_ibv_device_transport_type=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++static struct ibv_device ac_aggr; ++if (sizeof ac_aggr.transport_type) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_struct_ibv_device_transport_type=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_member_struct_ibv_device_transport_type=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_ibv_device_transport_type" >&5 ++echo "${ECHO_T}$ac_cv_member_struct_ibv_device_transport_type" >&6; } ++if test $ac_cv_member_struct_ibv_device_transport_type = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_STRUCT_IBV_DEVICE_TRANSPORT_TYPE 1 ++_ACEOF ++ ++ ++fi ++ ++ ++ # ibv_create_xrc_rcv_qp was added in OFED 1.3 ++ if test "$enable_connectx_xrc" = "yes"; then ++ ++for ac_func in ibv_create_xrc_rcv_qp ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ btl_ofud_have_xrc=1 ++fi ++done ++ ++ fi ++ ++ # Do we have a recent enough RDMA CM? Need to have the ++ # rdma_get_peer_addr (inline) function (originally appeared ++ # in OFED v1.3). ++ if test "$enable_openib_rdmacm" = "yes"; then ++ ++for ac_header in rdma/rdma_cma.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ { echo "$as_me:$LINENO: checking for rdma_create_id in -lrdmacm" >&5 ++echo $ECHO_N "checking for rdma_create_id in -lrdmacm... $ECHO_C" >&6; } ++if test "${ac_cv_lib_rdmacm_rdma_create_id+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lrdmacm $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char rdma_create_id (); ++int ++main () ++{ ++return rdma_create_id (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_rdmacm_rdma_create_id=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_rdmacm_rdma_create_id=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_rdmacm_rdma_create_id" >&5 ++echo "${ECHO_T}$ac_cv_lib_rdmacm_rdma_create_id" >&6; } ++if test $ac_cv_lib_rdmacm_rdma_create_id = yes; then ++ { echo "$as_me:$LINENO: checking for rdma_get_peer_addr" >&5 ++echo $ECHO_N "checking for rdma_get_peer_addr... $ECHO_C" >&6; } ++ btl_ofud_msg=no ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include "rdma/rdma_cma.h" ++ ++int ++main () ++{ ++void *ret = (void*) rdma_get_peer_addr((struct rdma_cm_id*)0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ btl_ofud_have_rdmacm=1 ++ btl_ofud_msg=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ { echo "$as_me:$LINENO: result: $btl_ofud_msg" >&5 ++echo "${ECHO_T}$btl_ofud_msg" >&6; } ++fi ++ ++fi ++ ++done ++ ++ ++ if test "1" = "$btl_ofud_have_rdmacm"; then ++ btl_ofud_LIBS="-lrdmacm $btl_ofud_LIBS" ++ fi ++ fi ++ ++ # Do we have IB CM? (note that OFED IB CM depends on RDMA ++ # CM, so no need to add it into the other-libraries ++ # argument to AC_CHECK_ LIB). Note that we only want IBCM ++ # starting with OFED 1.2 or so, so check for ++ # ib_cm_open_device (introduced in libibcm 1.0/OFED 1.2). ++ if test "$enable_openib_ibcm" = "yes"; then ++ ++for ac_header in infiniband/cm.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ { echo "$as_me:$LINENO: checking for ib_cm_open_device in -libcm" >&5 ++echo $ECHO_N "checking for ib_cm_open_device in -libcm... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibcm_ib_cm_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libcm $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ib_cm_open_device (); ++int ++main () ++{ ++return ib_cm_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibcm_ib_cm_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibcm_ib_cm_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibcm_ib_cm_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibcm_ib_cm_open_device" >&6; } ++if test $ac_cv_lib_ibcm_ib_cm_open_device = yes; then ++ btl_ofud_have_ibcm=1 ++ btl_ofud_LIBS="-libcm $btl_ofud_LIBS" ++fi ++ ++fi ++ ++done ++ ++ fi ++ ++fi ++ ++ ++ # Check to see if works. It is known to ++ # create problems on some platforms with some compilers (e.g., ++ # RHEL4U3 with the PGI 32 bit compiler). Use undocumented (in AC ++ # 2.63) feature of AC_CHECK_HEADERS: if you explicitly pass in ++ # AC_INCLUDES_DEFAULT as the 4th arg to AC_CHECK_HEADERS, the test ++ # will fail if the header is present but not compilable, *but it ++ # will not print the big scary warning*. See ++ # http://lists.gnu.org/archive/html/autoconf/2008-10/msg00143.html. ++ if test "$ompi_check_openib_happy" = "yes"; then ++ ++for ac_header in infiniband/driver.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ eval "$as_ac_Header=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_Header=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++fi ++ ++ ++ { echo "$as_me:$LINENO: checking if ConnectX XRC support is enabled" >&5 ++echo $ECHO_N "checking if ConnectX XRC support is enabled... $ECHO_C" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_CONNECTX_XRC $btl_ofud_have_xrc ++_ACEOF ++ ++ if test "1" = "$btl_ofud_have_xrc"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ { echo "$as_me:$LINENO: checking if OpenFabrics RDMACM support is enabled" >&5 ++echo $ECHO_N "checking if OpenFabrics RDMACM support is enabled... $ECHO_C" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_RDMACM $btl_ofud_have_rdmacm ++_ACEOF ++ ++ if test "1" = "$btl_ofud_have_rdmacm"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ { echo "$as_me:$LINENO: checking if OpenFabrics IBCM support is enabled" >&5 ++echo $ECHO_N "checking if OpenFabrics IBCM support is enabled... $ECHO_C" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_IBCM $btl_ofud_have_ibcm ++_ACEOF ++ ++ if test "1" = "$btl_ofud_have_ibcm"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ CPPFLAGS="$ompi_check_openib_btl_ofud_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_openib_btl_ofud_save_LDFLAGS" ++ LIBS="$ompi_check_openib_btl_ofud_save_LIBS" ++ ++ if test "$ompi_check_openib_happy" = "yes"; then ++ btl_ofud_happy="yes" ++else ++ if test ! -z "$with_openib" -a "$with_openib" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: OpenFabrics support requested (via --with-openib) but not found." >&5 ++echo "$as_me: WARNING: OpenFabrics support requested (via --with-openib) but not found." >&2;} ++ { echo "$as_me:$LINENO: WARNING: If you are using libibverbs v1.0 (i.e., OFED v1.0 or v1.1), you *MUST* have both the libsysfs headers and libraries installed. Later versions of libibverbs do not require libsysfs." >&5 ++echo "$as_me: WARNING: If you are using libibverbs v1.0 (i.e., OFED v1.0 or v1.1), you *MUST* have both the libsysfs headers and libraries installed. Later versions of libibverbs do not require libsysfs." >&2;} ++ { { echo "$as_me:$LINENO: error: Aborting." >&5 ++echo "$as_me: error: Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ btl_ofud_happy="no" ++fi ++ ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ if test "$btl_ofud_happy" = "yes"; then ++ btl_ofud_WRAPPER_EXTRA_LDFLAGS="$btl_ofud_LDFLAGS" ++ btl_ofud_WRAPPER_EXTRA_LIBS="$btl_ofud_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ # substitute in the things needed to build OFUD ++ ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=ofud ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_btl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_btl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component btl:ofud can compile" >&5 ++echo $ECHO_N "checking if MCA component btl:ofud can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_btl" = "ofud" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"ofud\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"ofud\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "ofud" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"ofud\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"ofud\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components ofud" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_btl_ofud_DSO=1 ++else ++ BUILD_btl_ofud_DSO=0 ++fi ++ ++ if test "$BUILD_btl_ofud_DSO" = "1"; then ++ OMPI_BUILD_btl_ofud_DSO_TRUE= ++ OMPI_BUILD_btl_ofud_DSO_FALSE='#' ++else ++ OMPI_BUILD_btl_ofud_DSO_TRUE='#' ++ OMPI_BUILD_btl_ofud_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component btl:openib (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=openib ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=btl ++ component=openib ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in cpcs have_threads; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"cpcs have_threads\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ cpcs="oob" ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in btl_openib_msg; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"btl_openib_msg\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ # ++ # Openfabrics support ++ # ++ ++# Check whether --with-openib was given. ++if test "${with_openib+set}" = set; then ++ withval=$with_openib; ++fi ++ ++ ++# Check whether --with-openib-libdir was given. ++if test "${with_openib_libdir+set}" = set; then ++ withval=$with_openib_libdir; ++fi ++ ++ ++ # ++ # ConnectX XRC support ++ # ++ # Check whether --enable-openib-connectx-xrc was given. ++if test "${enable_openib_connectx_xrc+set}" = set; then ++ enableval=$enable_openib_connectx_xrc; enable_connectx_xrc="$enableval" ++else ++ enable_connectx_xrc="yes" ++fi ++ ++ # ++ # Openfabrics IBCM ++ # ++ # Check whether --enable-openib-ibcm was given. ++if test "${enable_openib_ibcm+set}" = set; then ++ enableval=$enable_openib_ibcm; enable_openib_ibcm="$enableval" ++else ++ enable_openib_ibcm="no" ++fi ++ ++ # ++ # Openfabrics RDMACM ++ # ++ # Check whether --enable-openib-rdmacm was given. ++if test "${enable_openib_rdmacm+set}" = set; then ++ enableval=$enable_openib_rdmacm; enable_openib_rdmacm="$enableval" ++else ++ enable_openib_rdmacm="yes" ++fi ++ ++ ++ if test ! -z "$with_openib" -a "$with_openib" != "yes"; then ++ ompi_check_openib_dir="$with_openib" ++fi ++ ++ if test ! -z "$with_openib_libdir" -a "$with_openib_libdir" != "yes"; then ++ ompi_check_openib_libdir="$with_openib_libdir" ++fi ++ ++ if test "$with_openib" = "no"; then ++ ompi_check_openib_happy="no" ++else ++ ompi_check_openib_happy="yes" ++fi ++ ++ ++ ompi_check_openib_btl_openib_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_openib_btl_openib_save_LDFLAGS="$LDFLAGS" ++ ompi_check_openib_btl_openib_save_LIBS="$LIBS" ++ ++ if test "$ompi_check_openib_happy" = "yes"; then ++ if test "$THREAD_TYPE" != "posix" -a "$memory_ptmalloc2_happy" = "yes"; then ++ if test "$enable_ptmalloc2_internal" = "yes"; then ++ { echo "$as_me:$LINENO: WARNING: POSIX threads are disabled, but" >&5 ++echo "$as_me: WARNING: POSIX threads are disabled, but" >&2;} ++ { echo "$as_me:$LINENO: WARNING: --enable-ptmalloc2-internal was specified. This will" >&5 ++echo "$as_me: WARNING: --enable-ptmalloc2-internal was specified. This will" >&2;} ++ { echo "$as_me:$LINENO: WARNING: cause memory corruption with OpenFabrics." >&5 ++echo "$as_me: WARNING: cause memory corruption with OpenFabrics." >&2;} ++ { echo "$as_me:$LINENO: WARNING: Not building component." >&5 ++echo "$as_me: WARNING: Not building component." >&2;} ++ ompi_check_openib_happy="no" ++else ++ { echo "$as_me:$LINENO: WARNING: POSIX threads are disabled, but the ptmalloc2 memory" >&5 ++echo "$as_me: WARNING: POSIX threads are disabled, but the ptmalloc2 memory" >&2;} ++ { echo "$as_me:$LINENO: WARNING: manager is being built. Compiling MPI applications with" >&5 ++echo "$as_me: WARNING: manager is being built. Compiling MPI applications with" >&2;} ++ { echo "$as_me:$LINENO: WARNING: -lopenmpi-malloc will result in memory corruption; Open" >&5 ++echo "$as_me: WARNING: -lopenmpi-malloc will result in memory corruption; Open" >&2;} ++ { echo "$as_me:$LINENO: WARNING: MPI will disable the openib BTL at run-time if such a" >&5 ++echo "$as_me: WARNING: MPI will disable the openib BTL at run-time if such a" >&2;} ++ { echo "$as_me:$LINENO: WARNING: combination is detected." >&5 ++echo "$as_me: WARNING: combination is detected." >&2;} ++ { echo "$as_me:$LINENO: WARNING: You have been warned." >&5 ++echo "$as_me: WARNING: You have been warned." >&2;} ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_openib_happy" = "yes"; then ++ ++ ++for ac_header in fcntl.h sys/poll.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++else ++ { echo "$as_me:$LINENO: WARNING: fcntl.h sys/poll.h not found. Can not build component." >&5 ++echo "$as_me: WARNING: fcntl.h sys/poll.h not found. Can not build component." >&2;} ++ ompi_check_openib_happy="no" ++fi ++ ++done ++ ++fi ++ ++ ++ if test "$ompi_check_openib_happy" = "yes"; then ++ ++ ompi_check_package_btl_openib_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_btl_openib_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_btl_openib_save_LIBS="$LIBS" ++ ++ ompi_check_package_btl_openib_orig_CPPFLAGS="$btl_openib_CPPFLAGS" ++ ompi_check_package_btl_openib_orig_LDFLAGS="$btl_openib_LDFLAGS" ++ ompi_check_package_btl_openib_orig_LIBS="$btl_openib_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_infiniband_verbs_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_openib_dir" = "/usr" -o "$ompi_check_openib_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5 ++echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5 ++echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking infiniband/verbs.h usability" >&5 ++echo $ECHO_N "checking infiniband/verbs.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking infiniband/verbs.h presence" >&5 ++echo $ECHO_N "checking infiniband/verbs.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5 ++echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_infiniband_verbs_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5 ++echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6; } ++ ++fi ++if test $ac_cv_header_infiniband_verbs_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_infiniband_verbs_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_openib_dir" != ""; then ++ btl_openib_CPPFLAGS="$btl_openib_CPPFLAGS -I$ompi_check_openib_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_openib_dir/include" ++fi ++ ++ if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5 ++echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5 ++echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking infiniband/verbs.h usability" >&5 ++echo $ECHO_N "checking infiniband/verbs.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking infiniband/verbs.h presence" >&5 ++echo $ECHO_N "checking infiniband/verbs.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5 ++echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_infiniband_verbs_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5 ++echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6; } ++ ++fi ++if test $ac_cv_header_infiniband_verbs_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_ibverbs_ibv_open_device ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_openib_libdir" != ""; then ++ # libdir was specified - search only there ++ btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_openib_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_openib_libdir" ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS" ++ btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_openib_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS" ++ btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS" ++ btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS" ++ btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ btl_openib_LIBS="-libverbs " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_ibverbs_ibv_open_device ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_openib_libdir" != ""; then ++ # libdir was specified - search only there ++ btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_openib_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_openib_libdir" ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS" ++ btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_openib_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS" ++ btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS" ++ btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS" ++ btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ btl_openib_LIBS="-libverbs " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ ompi_check_openib_happy="yes" ++else ++ btl_openib_CPPFLAGS="$ompi_check_package_btl_openib_orig_CPPFLAGS" ++ btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS" ++ btl_openib_LIBS="$ompi_check_package_btl_openib_orig_LIBS" ++ ompi_check_openib_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_btl_openib_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS" ++ LIBS="$ompi_check_package_btl_openib_save_LIBS" ++ ++fi ++ ++ ++ CPPFLAGS="$CPPFLAGS $btl_openib_CPPFLAGS" ++ LDFLAGS="$LDFLAGS $btl_openib_LDFLAGS" ++ LIBS="$LIBS $btl_openib_LIBS" ++ ++ if test "$ompi_check_openib_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking number of arguments to ibv_create_cq" >&5 ++echo $ECHO_N "checking number of arguments to ibv_create_cq... $ECHO_C" >&6; } ++if test "${ompi_cv_func_ibv_create_cq_args+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ibv_create_cq(NULL, 0, NULL, NULL, 0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_ibv_create_cq_args=5 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ibv_create_cq(NULL, 0, NULL); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_ibv_create_cq_args=3 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_ibv_create_cq_args="unknown" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_ibv_create_cq_args" >&5 ++echo "${ECHO_T}$ompi_cv_func_ibv_create_cq_args" >&6; } ++ if test "$ompi_cv_func_ibv_create_cq_args" = "unknown"; then ++ { echo "$as_me:$LINENO: WARNING: Can not determine number of args to ibv_create_cq." >&5 ++echo "$as_me: WARNING: Can not determine number of args to ibv_create_cq." >&2;} ++ { echo "$as_me:$LINENO: WARNING: Not building component." >&5 ++echo "$as_me: WARNING: Not building component." >&2;} ++ ompi_check_openib_happy="no" ++else ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_IBV_CREATE_CQ_ARGS $ompi_cv_func_ibv_create_cq_args ++_ACEOF ++ ++fi ++ ++fi ++ ++ ++ # Set these up so that we can do an AC_DEFINE below ++ # (unconditionally) ++ btl_openib_have_xrc=0 ++ btl_openib_have_rdmacm=0 ++ btl_openib_have_ibcm=0 ++ ++ # If we have the openib stuff available, find out what we've got ++ if test "$ompi_check_openib_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking whether IBV_EVENT_CLIENT_REREGISTER is declared" >&5 ++echo $ECHO_N "checking whether IBV_EVENT_CLIENT_REREGISTER is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++#ifndef IBV_EVENT_CLIENT_REREGISTER ++ (void) IBV_EVENT_CLIENT_REREGISTER; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER" >&5 ++echo "${ECHO_T}$ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER" >&6; } ++if test $ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER 1 ++_ACEOF ++ ++ ++else ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER 0 ++_ACEOF ++ ++ ++fi ++ ++ ++ ++ ++for ac_func in ibv_get_device_list ibv_resize_cq ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ ++ # struct ibv_device.transport_type was added in OFED v1.2 ++ { echo "$as_me:$LINENO: checking for struct ibv_device.transport_type" >&5 ++echo $ECHO_N "checking for struct ibv_device.transport_type... $ECHO_C" >&6; } ++if test "${ac_cv_member_struct_ibv_device_transport_type+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++static struct ibv_device ac_aggr; ++if (ac_aggr.transport_type) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_struct_ibv_device_transport_type=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++static struct ibv_device ac_aggr; ++if (sizeof ac_aggr.transport_type) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_struct_ibv_device_transport_type=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_member_struct_ibv_device_transport_type=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_ibv_device_transport_type" >&5 ++echo "${ECHO_T}$ac_cv_member_struct_ibv_device_transport_type" >&6; } ++if test $ac_cv_member_struct_ibv_device_transport_type = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_STRUCT_IBV_DEVICE_TRANSPORT_TYPE 1 ++_ACEOF ++ ++ ++fi ++ ++ ++ # ibv_create_xrc_rcv_qp was added in OFED 1.3 ++ if test "$enable_connectx_xrc" = "yes"; then ++ ++for ac_func in ibv_create_xrc_rcv_qp ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ btl_openib_have_xrc=1 ++fi ++done ++ ++ fi ++ ++ # Do we have a recent enough RDMA CM? Need to have the ++ # rdma_get_peer_addr (inline) function (originally appeared ++ # in OFED v1.3). ++ if test "$enable_openib_rdmacm" = "yes"; then ++ ++for ac_header in rdma/rdma_cma.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ { echo "$as_me:$LINENO: checking for rdma_create_id in -lrdmacm" >&5 ++echo $ECHO_N "checking for rdma_create_id in -lrdmacm... $ECHO_C" >&6; } ++if test "${ac_cv_lib_rdmacm_rdma_create_id+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lrdmacm $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char rdma_create_id (); ++int ++main () ++{ ++return rdma_create_id (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_rdmacm_rdma_create_id=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_rdmacm_rdma_create_id=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_rdmacm_rdma_create_id" >&5 ++echo "${ECHO_T}$ac_cv_lib_rdmacm_rdma_create_id" >&6; } ++if test $ac_cv_lib_rdmacm_rdma_create_id = yes; then ++ { echo "$as_me:$LINENO: checking for rdma_get_peer_addr" >&5 ++echo $ECHO_N "checking for rdma_get_peer_addr... $ECHO_C" >&6; } ++ btl_openib_msg=no ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include "rdma/rdma_cma.h" ++ ++int ++main () ++{ ++void *ret = (void*) rdma_get_peer_addr((struct rdma_cm_id*)0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ btl_openib_have_rdmacm=1 ++ btl_openib_msg=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ { echo "$as_me:$LINENO: result: $btl_openib_msg" >&5 ++echo "${ECHO_T}$btl_openib_msg" >&6; } ++fi ++ ++fi ++ ++done ++ ++ ++ if test "1" = "$btl_openib_have_rdmacm"; then ++ btl_openib_LIBS="-lrdmacm $btl_openib_LIBS" ++ fi ++ fi ++ ++ # Do we have IB CM? (note that OFED IB CM depends on RDMA ++ # CM, so no need to add it into the other-libraries ++ # argument to AC_CHECK_ LIB). Note that we only want IBCM ++ # starting with OFED 1.2 or so, so check for ++ # ib_cm_open_device (introduced in libibcm 1.0/OFED 1.2). ++ if test "$enable_openib_ibcm" = "yes"; then ++ ++for ac_header in infiniband/cm.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ { echo "$as_me:$LINENO: checking for ib_cm_open_device in -libcm" >&5 ++echo $ECHO_N "checking for ib_cm_open_device in -libcm... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibcm_ib_cm_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libcm $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ib_cm_open_device (); ++int ++main () ++{ ++return ib_cm_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibcm_ib_cm_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibcm_ib_cm_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibcm_ib_cm_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibcm_ib_cm_open_device" >&6; } ++if test $ac_cv_lib_ibcm_ib_cm_open_device = yes; then ++ btl_openib_have_ibcm=1 ++ btl_openib_LIBS="-libcm $btl_openib_LIBS" ++fi ++ ++fi ++ ++done ++ ++ fi ++ ++fi ++ ++ ++ # Check to see if works. It is known to ++ # create problems on some platforms with some compilers (e.g., ++ # RHEL4U3 with the PGI 32 bit compiler). Use undocumented (in AC ++ # 2.63) feature of AC_CHECK_HEADERS: if you explicitly pass in ++ # AC_INCLUDES_DEFAULT as the 4th arg to AC_CHECK_HEADERS, the test ++ # will fail if the header is present but not compilable, *but it ++ # will not print the big scary warning*. See ++ # http://lists.gnu.org/archive/html/autoconf/2008-10/msg00143.html. ++ if test "$ompi_check_openib_happy" = "yes"; then ++ ++for ac_header in infiniband/driver.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ eval "$as_ac_Header=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_Header=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++fi ++ ++ ++ { echo "$as_me:$LINENO: checking if ConnectX XRC support is enabled" >&5 ++echo $ECHO_N "checking if ConnectX XRC support is enabled... $ECHO_C" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_CONNECTX_XRC $btl_openib_have_xrc ++_ACEOF ++ ++ if test "1" = "$btl_openib_have_xrc"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ { echo "$as_me:$LINENO: checking if OpenFabrics RDMACM support is enabled" >&5 ++echo $ECHO_N "checking if OpenFabrics RDMACM support is enabled... $ECHO_C" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_RDMACM $btl_openib_have_rdmacm ++_ACEOF ++ ++ if test "1" = "$btl_openib_have_rdmacm"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ { echo "$as_me:$LINENO: checking if OpenFabrics IBCM support is enabled" >&5 ++echo $ECHO_N "checking if OpenFabrics IBCM support is enabled... $ECHO_C" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_IBCM $btl_openib_have_ibcm ++_ACEOF ++ ++ if test "1" = "$btl_openib_have_ibcm"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ CPPFLAGS="$ompi_check_openib_btl_openib_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_openib_btl_openib_save_LDFLAGS" ++ LIBS="$ompi_check_openib_btl_openib_save_LIBS" ++ ++ if test "$ompi_check_openib_happy" = "yes"; then ++ btl_openib_happy="yes" ++else ++ if test ! -z "$with_openib" -a "$with_openib" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: OpenFabrics support requested (via --with-openib) but not found." >&5 ++echo "$as_me: WARNING: OpenFabrics support requested (via --with-openib) but not found." >&2;} ++ { echo "$as_me:$LINENO: WARNING: If you are using libibverbs v1.0 (i.e., OFED v1.0 or v1.1), you *MUST* have both the libsysfs headers and libraries installed. Later versions of libibverbs do not require libsysfs." >&5 ++echo "$as_me: WARNING: If you are using libibverbs v1.0 (i.e., OFED v1.0 or v1.1), you *MUST* have both the libsysfs headers and libraries installed. Later versions of libibverbs do not require libsysfs." >&2;} ++ { { echo "$as_me:$LINENO: error: Aborting." >&5 ++echo "$as_me: error: Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ btl_openib_happy="no" ++fi ++ ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ if test "$btl_openib_happy" = "yes"; then ++ btl_openib_WRAPPER_EXTRA_LDFLAGS="$btl_openib_LDFLAGS" ++ btl_openib_WRAPPER_EXTRA_LIBS="$btl_openib_LIBS" ++ ++ # With the new openib flags, look for ibv_fork_init ++ LDFLAGS_save="$LDFLAGS" ++ LIBS_save="$LIBS" ++ LDFLAGS="$LDFLAGS $btl_openib_LDFLAGS" ++ LIBS="$LIBS $btl_openib_LIBS" ++ ++for ac_func in ibv_fork_init ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ LDFLAGS="$LDFLAGS_save" ++ LIBS="$LIBS_save" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ { echo "$as_me:$LINENO: checking for thread support (needed for ibcm/rdmacm)" >&5 ++echo $ECHO_N "checking for thread support (needed for ibcm/rdmacm)... $ECHO_C" >&6; } ++ have_threads=`echo $THREAD_TYPE | awk '{ print $1 }'` ++ if test "x$have_threads" = "x"; then ++ have_threads=none ++ fi ++ { echo "$as_me:$LINENO: result: $have_threads" >&5 ++echo "${ECHO_T}$have_threads" >&6; } ++ ++ if test "$btl_openib_happy" = "yes"; then ++ if test "x$btl_openib_have_xrc" = "x1"; then ++ cpcs="$cpcs xoob" ++ fi ++ if test "x$btl_openib_have_rdmacm" = "x1" -a \ ++ "$have_threads" != "none"; then ++ cpcs="$cpcs rdmacm" ++ fi ++ if test "x$btl_openib_have_ibcm" = "x1" -a \ ++ "$have_threads" != "none"; then ++ cpcs="$cpcs ibcm" ++ fi ++ { echo "$as_me:$LINENO: checking which openib btl cpcs will be built" >&5 ++echo $ECHO_N "checking which openib btl cpcs will be built... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $cpcs" >&5 ++echo "${ECHO_T}$cpcs" >&6; } ++fi ++ ++ ++ # substitute in the things needed to build openib ++ ++ ++ ++ ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=openib ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_btl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_btl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component btl:openib can compile" >&5 ++echo $ECHO_N "checking if MCA component btl:openib can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_btl" = "openib" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"openib\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"openib\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "openib" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"openib\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"openib\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components openib" ++fi ++ ++ ++ ++ if test $should_build -eq 1 -a "x$btl_openib_have_xrc" = "x1"; then ++ MCA_btl_openib_have_xrc_TRUE= ++ MCA_btl_openib_have_xrc_FALSE='#' ++else ++ MCA_btl_openib_have_xrc_TRUE='#' ++ MCA_btl_openib_have_xrc_FALSE= ++fi ++ ++ if test $should_build -eq 1 -a "x$btl_openib_have_rdmacm" = "x1"; then ++ MCA_btl_openib_have_rdmacm_TRUE= ++ MCA_btl_openib_have_rdmacm_FALSE='#' ++else ++ MCA_btl_openib_have_rdmacm_TRUE='#' ++ MCA_btl_openib_have_rdmacm_FALSE= ++fi ++ ++ if test $should_build -eq 1 -a "x$btl_openib_have_ibcm" = "x1"; then ++ MCA_btl_openib_have_ibcm_TRUE= ++ MCA_btl_openib_have_ibcm_FALSE='#' ++else ++ MCA_btl_openib_have_ibcm_TRUE='#' ++ MCA_btl_openib_have_ibcm_FALSE= ++fi ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_btl_openib_DSO=1 ++else ++ BUILD_btl_openib_DSO=0 ++fi ++ ++ if test "$BUILD_btl_openib_DSO" = "1"; then ++ OMPI_BUILD_btl_openib_DSO_TRUE= ++ OMPI_BUILD_btl_openib_DSO_FALSE='#' ++else ++ OMPI_BUILD_btl_openib_DSO_TRUE='#' ++ OMPI_BUILD_btl_openib_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component btl:portals (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=portals ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=btl ++ component=portals ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ # save compiler flags so that we don't alter them for later ++ # components. ++ check_portals_save_CPPFLAGS="$CPPFLAGS" ++ check_portals_save_LDFLAGS="$LDFLAGS" ++ check_portals_save_LIBS="$LIBS" ++ ++ check_portals_CPPFLAGS= ++ check_portals_LDFLAGS= ++ check_portals_LIBS= ++ ++ check_portals_configuration="none" ++ ompi_check_portals_happy="yes" ++ ++ # Get some configuration information ++ ++# Check whether --with-portals was given. ++if test "${with_portals+set}" = set; then ++ withval=$with_portals; ++fi ++ ++ ++# Check whether --with-portals-config was given. ++if test "${with_portals_config+set}" = set; then ++ withval=$with_portals_config; ++fi ++ ++ ++# Check whether --with-portals-libs was given. ++if test "${with_portals_libs+set}" = set; then ++ withval=$with_portals_libs; ++fi ++ ++ ++ { echo "$as_me:$LINENO: checking for Portals configuration" >&5 ++echo $ECHO_N "checking for Portals configuration... $ECHO_C" >&6; } ++ if test "$with_portals_config" = "" ; then ++ with_portals_config="utcp" ++ elif test "$with_portals_config" = "redstorm" ; then ++ with_portals_config="xt3" ++ elif test "$with_portals_config" = "cnl_modex" ; then ++ with_portals_config="xt3-modex" ++ fi ++ OMPI_PORTALS_UTCP=0 ++ OMPI_PORTALS_CRAYXT3=0 ++ OMPI_PORTALS_CRAYXT3_MODEX=0 ++ case "$with_portals_config" in ++ "utcp") ++ OMPI_PORTALS_UTCP=1 ++ OMPI_PORTALS_HAVE_EVENT_UNLINK=1 ++ check_portals_LIBS="-lp3utcp -lp3api -lp3lib -lp3rt -lp3utcp" ++ check_portals_header_prefix= ++ { echo "$as_me:$LINENO: result: utcp" >&5 ++echo "${ECHO_T}utcp" >&6; } ++ ;; ++ "xt3") ++ OMPI_PORTALS_CRAYXT3=1 ++ OMPI_PORTALS_HAVE_EVENT_UNLINK=0 ++ check_portals_LIBS= ++ check_portals_header_prefix="portals/" ++ { echo "$as_me:$LINENO: result: Cray XT3" >&5 ++echo "${ECHO_T}Cray XT3" >&6; } ++ ;; ++ "xt3-modex") ++ OMPI_PORTALS_CRAYXT3_MODEX=1 ++ OMPI_PORTALS_HAVE_EVENT_UNLINK=0 ++ check_portals_LIBS= ++ check_portals_header_prefix="portals/" ++ { echo "$as_me:$LINENO: result: Cray XT3 - Modex" >&5 ++echo "${ECHO_T}Cray XT3 - Modex" >&6; } ++ ;; ++ *) ++ # ok to call ERROR here - the user specified something invalid. ++ # that should be brought to his attention ++ { { echo "$as_me:$LINENO: error: unknown Portals configuration. Can not continue" >&5 ++echo "$as_me: error: unknown Portals configuration. Can not continue" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PORTALS_HAVE_EVENT_UNLINK $OMPI_PORTALS_HAVE_EVENT_UNLINK ++_ACEOF ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PORTALS_UTCP $OMPI_PORTALS_UTCP ++_ACEOF ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PORTALS_CRAYXT3 $OMPI_PORTALS_CRAYXT3 ++_ACEOF ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PORTALS_CRAYXT3_MODEX $OMPI_PORTALS_CRAYXT3_MODEX ++_ACEOF ++ ++ ++ # Add correct -I and -L flags ++ if test -n "$with_portals"; then ++ if test -d "$with_portals/include"; then ++ check_portals_CPPFLAGS="-I$with_portals/include" ++ CPPFLAGS="$CPPFLAGS $check_portals_CPPFLAGS" ++fi ++ ++ if test -d "$with_portals/lib"; then ++ check_portals_LDFLAGS="-L$with_portals/lib" ++ LDFLAGS="$LDFLAGS $check_portals_LDFLAGS" ++fi ++ ++fi ++ ++ ++ # Try to find all the portals libraries (this is not fun!) ++ if test -n "$with_portals_libs" ; then ++ check_portals_LIBS="" ++ for lib in $with_portals_libs ; do ++ check_portals_LIBS="$check_portals_LIBS -l$lib" ++ done ++ fi ++ ++ # check for portals ++ LIBS="$LIBS $check_portals_LIBS" ++ ++for ac_header in ${check_portals_header_prefix}portals3.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ { echo "$as_me:$LINENO: checking if possible to link Portals application" >&5 ++echo $ECHO_N "checking if possible to link Portals application... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include <${check_portals_header_prefix}portals3.h> ++int ++main () ++{ ++int i; PtlInit(&i); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ompi_check_portals_happy="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ompi_check_portals_happy="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++else ++ ompi_check_portals_happy="no" ++fi ++ ++done ++ ++ ++ # Deal with static-only Portals UTCP libs. See note in ++ # ompi/mca/common/portals/configure.m4. Then possibly cry. ++ if test "$with_portals_config" = "utcp" ; then ++ if test "btl_portals" != "common_portals" ; then ++ check_portals_LIBS= ++ fi ++ fi ++ ++ # reset the flags for the next test ++ CPPFLAGS="$check_portals_save_CPPFLAGS" ++ LDFLAGS="$check_portals_save_LDFLAGS" ++ LIBS="$check_portals_save_LIBS" ++ ++ btl_portals_CPPFLAGS="$check_portals_CPPFLAGS" ++ btl_portals_LDFLAGS="$check_portals_LDFLAGS" ++ btl_portals_LIBS="$check_portals_LIBS" ++ ++ if test "$ompi_check_portals_happy" = "yes"; then ++ btl_portals_happy="yes" ++else ++ if test ! -z "$with_portals" -a "$with_portals" != "no"; then ++ { { echo "$as_me:$LINENO: error: Portals support requested but not found. Aborting" >&5 ++echo "$as_me: error: Portals support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ btl_portals_happy="no" ++fi ++ ++ ++ ++ if test "$btl_portals_happy" = "yes"; then ++ btl_portals_WRAPPER_EXTRA_LDFLAGS="$btl_portals_LDFLAGS" ++ btl_portals_WRAPPER_EXTRA_LIBS="$btl_portals_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # substitute in the things needed to build portals ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=portals ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_btl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_btl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component btl:portals can compile" >&5 ++echo $ECHO_N "checking if MCA component btl:portals can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_btl" = "portals" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"portals\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "portals" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"portals\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components portals" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_btl_portals_DSO=1 ++else ++ BUILD_btl_portals_DSO=0 ++fi ++ ++ if test "$BUILD_btl_portals_DSO" = "1"; then ++ OMPI_BUILD_btl_portals_DSO_TRUE= ++ OMPI_BUILD_btl_portals_DSO_FALSE='#' ++else ++ OMPI_BUILD_btl_portals_DSO_TRUE='#' ++ OMPI_BUILD_btl_portals_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component btl:tcp (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=tcp ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=btl ++ component=tcp ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ # check for sockaddr_in (a good sign we have TCP) ++ { echo "$as_me:$LINENO: checking for struct sockaddr_in" >&5 ++echo $ECHO_N "checking for struct sockaddr_in... $ECHO_C" >&6; } ++if test "${ac_cv_type_struct_sockaddr_in+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifdef HAVE_NETINET_IN_H ++#include ++#endif ++ ++typedef struct sockaddr_in ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_struct_sockaddr_in=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_struct_sockaddr_in=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in" >&5 ++echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in" >&6; } ++if test $ac_cv_type_struct_sockaddr_in = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_STRUCT_SOCKADDR_IN 1 ++_ACEOF ++ ++should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=tcp ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_btl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_btl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component btl:tcp can compile" >&5 ++echo $ECHO_N "checking if MCA component btl:tcp can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_btl" = "tcp" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tcp\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "tcp" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tcp\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components tcp" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_btl_tcp_DSO=1 ++else ++ BUILD_btl_tcp_DSO=0 ++fi ++ ++ if test "$BUILD_btl_tcp_DSO" = "1"; then ++ OMPI_BUILD_btl_tcp_DSO_TRUE= ++ OMPI_BUILD_btl_tcp_DSO_FALSE='#' ++else ++ OMPI_BUILD_btl_tcp_DSO_TRUE='#' ++ OMPI_BUILD_btl_tcp_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component btl:udapl (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=udapl ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=btl ++ component=udapl ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-udapl was given. ++if test "${with_udapl+set}" = set; then ++ withval=$with_udapl; ++fi ++ ++ ++# Check whether --with-udapl-libdir was given. ++if test "${with_udapl_libdir+set}" = set; then ++ withval=$with_udapl_libdir; ++fi ++ ++ ++ # Special case for OFED/Linux: the default /etc/dat.conf that ++ # ships with OFED is broken in that it includes DAT providers that ++ # are not guarnateed to work (e.g., it includes providers for ib0, ++ # ib1, ib2, ib3, and bond0). Usually, a sysadmin will need to ++ # edit this file to configure it for the specific environment in ++ # which it will be used. Hence, if you run the udapl BTL on ++ # Linux/OFED, you'll get a bunch of warning messages about the ++ # providers that don't work. However, on Linux/OFED, you don't ++ # really want to use udapl anyway; you likely really want to use ++ # the openib BTL (i.e., native verbs, not udapl). ++ ++ # So after exploring many different scenarios, the least evil ++ # solution seemed to be to disable building the udapl BTL on ++ # Linux/OFED *unless the user specifically asks for it.* To be ++ # specific: on Linux/OFED, if you do not specify ++ # --with-udapl(=DIR), the udapl BTL will not be built. ++ if test -z "$with_udapl"; then ++ case $host in ++ *linux*) ++ { echo "$as_me:$LINENO: WARNING: On Linux and --with-udapl was not specified" >&5 ++echo "$as_me: WARNING: On Linux and --with-udapl was not specified" >&2;} ++ { echo "$as_me:$LINENO: WARNING: Not building the udapl BTL" >&5 ++echo "$as_me: WARNING: Not building the udapl BTL" >&2;} ++ with_udapl=no ++ ;; ++ esac ++fi ++ ++ ++ if test ! -z "$with_udapl" -a "$with_udapl" != "yes"; then ++ ompi_check_udapl_dir="$with_udapl" ++fi ++ ++ if test ! -z "$with_udapl_libdir" -a "$with_udapl_libdir" != "yes"; then ++ ompi_check_udapl_libdir="$with_udapl_libdir" ++fi ++ ++ if test "$with_udapl" = "no"; then ++ ompi_check_udapl_happy="no" ++else ++ ompi_check_udapl_happy="yes" ++fi ++ ++ ++ ++ ompi_check_package_btl_udapl_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_btl_udapl_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_btl_udapl_save_LIBS="$LIBS" ++ ++ ompi_check_package_btl_udapl_orig_CPPFLAGS="$btl_udapl_CPPFLAGS" ++ ompi_check_package_btl_udapl_orig_LDFLAGS="$btl_udapl_LDFLAGS" ++ ompi_check_package_btl_udapl_orig_LIBS="$btl_udapl_LIBS" ++ ++ if test "$ompi_check_udapl_happy" = "yes"; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_dat_udat_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_udapl_dir" = "/usr" -o "$ompi_check_udapl_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_dat_udat_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for dat/udat.h" >&5 ++echo $ECHO_N "checking for dat/udat.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_dat_udat_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_dat_udat_h" >&5 ++echo "${ECHO_T}$ac_cv_header_dat_udat_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking dat/udat.h usability" >&5 ++echo $ECHO_N "checking dat/udat.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking dat/udat.h presence" >&5 ++echo $ECHO_N "checking dat/udat.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: dat/udat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: dat/udat.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: dat/udat.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: dat/udat.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: dat/udat.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: dat/udat.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: dat/udat.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: dat/udat.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for dat/udat.h" >&5 ++echo $ECHO_N "checking for dat/udat.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_dat_udat_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_dat_udat_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_dat_udat_h" >&5 ++echo "${ECHO_T}$ac_cv_header_dat_udat_h" >&6; } ++ ++fi ++if test $ac_cv_header_dat_udat_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_dat_udat_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_udapl_dir" != ""; then ++ btl_udapl_CPPFLAGS="$btl_udapl_CPPFLAGS -I$ompi_check_udapl_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_udapl_dir/include" ++fi ++ ++ if test "${ac_cv_header_dat_udat_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for dat/udat.h" >&5 ++echo $ECHO_N "checking for dat/udat.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_dat_udat_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_dat_udat_h" >&5 ++echo "${ECHO_T}$ac_cv_header_dat_udat_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking dat/udat.h usability" >&5 ++echo $ECHO_N "checking dat/udat.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking dat/udat.h presence" >&5 ++echo $ECHO_N "checking dat/udat.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: dat/udat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: dat/udat.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: dat/udat.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: dat/udat.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: dat/udat.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: dat/udat.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: dat/udat.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: dat/udat.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for dat/udat.h" >&5 ++echo $ECHO_N "checking for dat/udat.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_dat_udat_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_dat_udat_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_dat_udat_h" >&5 ++echo "${ECHO_T}$ac_cv_header_dat_udat_h" >&6; } ++ ++fi ++if test $ac_cv_header_dat_udat_h = yes; then ++ ompi_check_udapl_happy="yes" ++else ++ ompi_check_udapl_happy="no" ++fi ++ ++ ++else ++ ompi_check_udapl_happy="yes" ++fi ++ ++ unset ompi_check_package_header_happy ++fi ++ ++ ++ if test "$ompi_check_udapl_happy" = "yes"; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_dat_dat_registry_list_providers ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_udapl_libdir" != ""; then ++ # libdir was specified - search only there ++ btl_udapl_LDFLAGS="$btl_udapl_LDFLAGS -L$ompi_check_udapl_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_udapl_libdir" ++ { echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5 ++echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldat $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dat_registry_list_providers (); ++int ++main () ++{ ++return dat_registry_list_providers (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dat_dat_registry_list_providers=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dat_dat_registry_list_providers=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5 ++echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; } ++if test $ac_cv_lib_dat_dat_registry_list_providers = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS" ++ btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS" ++ unset ac_cv_lib_dat_dat_registry_list_providers ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_udapl_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5 ++echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldat $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dat_registry_list_providers (); ++int ++main () ++{ ++return dat_registry_list_providers (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dat_dat_registry_list_providers=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dat_dat_registry_list_providers=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5 ++echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; } ++if test $ac_cv_lib_dat_dat_registry_list_providers = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS" ++ btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS" ++ unset ac_cv_lib_dat_dat_registry_list_providers ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_udapl_LDFLAGS="$btl_udapl_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5 ++echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldat $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dat_registry_list_providers (); ++int ++main () ++{ ++return dat_registry_list_providers (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dat_dat_registry_list_providers=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dat_dat_registry_list_providers=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5 ++echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; } ++if test $ac_cv_lib_dat_dat_registry_list_providers = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS" ++ btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS" ++ unset ac_cv_lib_dat_dat_registry_list_providers ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_udapl_LDFLAGS="$btl_udapl_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5 ++echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldat $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dat_registry_list_providers (); ++int ++main () ++{ ++return dat_registry_list_providers (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dat_dat_registry_list_providers=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dat_dat_registry_list_providers=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5 ++echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; } ++if test $ac_cv_lib_dat_dat_registry_list_providers = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS" ++ btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS" ++ unset ac_cv_lib_dat_dat_registry_list_providers ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ btl_udapl_LIBS="-ldat " ++ ompi_check_udapl_happy="yes" ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_dat_dat_registry_list_providers ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_udapl_libdir" != ""; then ++ # libdir was specified - search only there ++ btl_udapl_LDFLAGS="$btl_udapl_LDFLAGS -L$ompi_check_udapl_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_udapl_libdir" ++ { echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5 ++echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldat -ldapl $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dat_registry_list_providers (); ++int ++main () ++{ ++return dat_registry_list_providers (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dat_dat_registry_list_providers=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dat_dat_registry_list_providers=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5 ++echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; } ++if test $ac_cv_lib_dat_dat_registry_list_providers = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS" ++ btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS" ++ unset ac_cv_lib_dat_dat_registry_list_providers ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_udapl_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5 ++echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldat -ldapl $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dat_registry_list_providers (); ++int ++main () ++{ ++return dat_registry_list_providers (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dat_dat_registry_list_providers=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dat_dat_registry_list_providers=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5 ++echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; } ++if test $ac_cv_lib_dat_dat_registry_list_providers = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS" ++ btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS" ++ unset ac_cv_lib_dat_dat_registry_list_providers ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_udapl_LDFLAGS="$btl_udapl_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5 ++echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldat -ldapl $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dat_registry_list_providers (); ++int ++main () ++{ ++return dat_registry_list_providers (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dat_dat_registry_list_providers=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dat_dat_registry_list_providers=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5 ++echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; } ++if test $ac_cv_lib_dat_dat_registry_list_providers = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS" ++ btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS" ++ unset ac_cv_lib_dat_dat_registry_list_providers ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_udapl_LDFLAGS="$btl_udapl_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5 ++echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldat -ldapl $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dat_registry_list_providers (); ++int ++main () ++{ ++return dat_registry_list_providers (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dat_dat_registry_list_providers=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dat_dat_registry_list_providers=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5 ++echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; } ++if test $ac_cv_lib_dat_dat_registry_list_providers = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS" ++ btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS" ++ unset ac_cv_lib_dat_dat_registry_list_providers ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ btl_udapl_LIBS="-ldat -ldapl" ++ ompi_check_udapl_happy="yes" ++else ++ ompi_check_udapl_happy="no" ++fi ++ ++ ++ ++fi ++ ++ ++ ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_btl_udapl_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS" ++ LIBS="$ompi_check_package_btl_udapl_save_LIBS" ++ ++ if test "$ompi_check_udapl_happy" = "yes"; then ++ btl_udapl_happy="yes" ++else ++ if test ! -z "$with_udapl" -a "$with_udapl" != "no"; then ++ { { echo "$as_me:$LINENO: error: uDAPL support requested but not found. Aborting" >&5 ++echo "$as_me: error: uDAPL support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ btl_udapl_happy="no" ++fi ++ ++ ++ ++ if test "$btl_udapl_happy" = "yes"; then ++ btl_udapl_WRAPPER_EXTRA_LDFLAGS="$btl_udapl_LDFLAGS" ++ btl_udapl_WRAPPER_EXTRA_LIBS="$btl_udapl_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # Borrowed from MVAPI BTL - a data structure in the uDAPL headers ++ # is not fully ISO C. Remove -pedantic to silence a warning. ++ btl_udapl_CFLAGS="`echo $CFLAGS | sed 's/-pedantic//g'`" ++ if test "$btl_udapl_CFLAGS" != "$CFLAGS" -a "$btl_udapl_happy" = "yes"; then ++ { echo "$as_me:$LINENO: WARNING: Removed -pedantic from CFLAGS for ++uDAPL component because the uDAPL headers are not fully ISO C" >&5 ++echo "$as_me: WARNING: Removed -pedantic from CFLAGS for ++uDAPL component because the uDAPL headers are not fully ISO C" >&2;} ++fi ++ ++ ++ # substitute in the things needed to build udapl ++ ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=udapl ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_btl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_btl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component btl:udapl can compile" >&5 ++echo $ECHO_N "checking if MCA component btl:udapl can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_btl" = "udapl" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"udapl\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"udapl\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "udapl" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"udapl\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"udapl\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components udapl" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_btl_udapl_DSO=1 ++else ++ BUILD_btl_udapl_DSO=0 ++fi ++ ++ if test "$BUILD_btl_udapl_DSO" = "1"; then ++ OMPI_BUILD_btl_udapl_DSO_TRUE= ++ OMPI_BUILD_btl_udapl_DSO_FALSE='#' ++else ++ OMPI_BUILD_btl_udapl_DSO_TRUE='#' ++ OMPI_BUILD_btl_udapl_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/btl/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component btl:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/btl/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/btl/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_btl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_btl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component btl:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component btl:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_btl_ALL_COMPONENTS="$all_components" ++ MCA_btl_STATIC_COMPONENTS="$static_components" ++ MCA_btl_DSO_COMPONENTS="$dso_components" ++ MCA_btl_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_btl_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_btl_ALL_SUBDIRS="$MCA_btl_ALL_SUBDIRS mca/btl/$item" ++ done ++ ++ ++ ++ MCA_btl_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_btl_STATIC_SUBDIRS="$MCA_btl_STATIC_SUBDIRS mca/btl/$item" ++ done ++ ++ ++ ++ MCA_btl_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_btl_DSO_SUBDIRS="$MCA_btl_DSO_SUBDIRS mca/btl/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "btl" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "coll" = "common" ; then ++ MCA_ompi_FRAMEWORKS="coll $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/coll $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_coll_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_coll_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_coll_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS coll" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/coll" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_coll_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_coll_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_coll_STATIC_SUBDIRS)" ++ fi ++ if test "coll" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/coll/libmca_coll.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_coll_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework coll" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "coll" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/coll/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework coll" >&5 ++echo $ECHO_N "checking for no configure components in framework coll... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: basic, hierarch, inter, self, sm, tuned" >&5 ++echo "${ECHO_T}basic, hierarch, inter, self, sm, tuned" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework coll" >&5 ++echo $ECHO_N "checking for m4 configure components in framework coll... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component coll:basic (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=basic ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=basic ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_coll" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=basic ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_coll" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_coll" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component coll:basic can compile" >&5 ++echo $ECHO_N "checking if MCA component coll:basic can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_coll" = "basic" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "basic" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components basic" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_coll_basic_DSO=1 ++ else ++ BUILD_coll_basic_DSO=0 ++ fi ++ if test "$BUILD_coll_basic_DSO" = "1"; then ++ OMPI_BUILD_coll_basic_DSO_TRUE= ++ OMPI_BUILD_coll_basic_DSO_FALSE='#' ++else ++ OMPI_BUILD_coll_basic_DSO_TRUE='#' ++ OMPI_BUILD_coll_basic_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component coll:hierarch (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=hierarch ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=hierarch ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_coll" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=hierarch ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_coll" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_coll" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component coll:hierarch can compile" >&5 ++echo $ECHO_N "checking if MCA component coll:hierarch can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_coll" = "hierarch" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"hierarch\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"hierarch\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "hierarch" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"hierarch\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"hierarch\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components hierarch" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_coll_hierarch_DSO=1 ++ else ++ BUILD_coll_hierarch_DSO=0 ++ fi ++ if test "$BUILD_coll_hierarch_DSO" = "1"; then ++ OMPI_BUILD_coll_hierarch_DSO_TRUE= ++ OMPI_BUILD_coll_hierarch_DSO_FALSE='#' ++else ++ OMPI_BUILD_coll_hierarch_DSO_TRUE='#' ++ OMPI_BUILD_coll_hierarch_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component coll:inter (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=inter ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=inter ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_coll" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=inter ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_coll" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_coll" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component coll:inter can compile" >&5 ++echo $ECHO_N "checking if MCA component coll:inter can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_coll" = "inter" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"inter\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"inter\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "inter" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"inter\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"inter\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components inter" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_coll_inter_DSO=1 ++ else ++ BUILD_coll_inter_DSO=0 ++ fi ++ if test "$BUILD_coll_inter_DSO" = "1"; then ++ OMPI_BUILD_coll_inter_DSO_TRUE= ++ OMPI_BUILD_coll_inter_DSO_FALSE='#' ++else ++ OMPI_BUILD_coll_inter_DSO_TRUE='#' ++ OMPI_BUILD_coll_inter_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component coll:self (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=self ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=self ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_coll" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=self ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_coll" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_coll" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component coll:self can compile" >&5 ++echo $ECHO_N "checking if MCA component coll:self can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_coll" = "self" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "self" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components self" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_coll_self_DSO=1 ++ else ++ BUILD_coll_self_DSO=0 ++ fi ++ if test "$BUILD_coll_self_DSO" = "1"; then ++ OMPI_BUILD_coll_self_DSO_TRUE= ++ OMPI_BUILD_coll_self_DSO_FALSE='#' ++else ++ OMPI_BUILD_coll_self_DSO_TRUE='#' ++ OMPI_BUILD_coll_self_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component coll:sm (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=sm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=sm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_coll" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=sm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_coll" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_coll" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component coll:sm can compile" >&5 ++echo $ECHO_N "checking if MCA component coll:sm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_coll" = "sm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "sm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components sm" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_coll_sm_DSO=1 ++ else ++ BUILD_coll_sm_DSO=0 ++ fi ++ if test "$BUILD_coll_sm_DSO" = "1"; then ++ OMPI_BUILD_coll_sm_DSO_TRUE= ++ OMPI_BUILD_coll_sm_DSO_FALSE='#' ++else ++ OMPI_BUILD_coll_sm_DSO_TRUE='#' ++ OMPI_BUILD_coll_sm_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component coll:tuned (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=tuned ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=tuned ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_coll" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=tuned ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_coll" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_coll" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component coll:tuned can compile" >&5 ++echo $ECHO_N "checking if MCA component coll:tuned can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_coll" = "tuned" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tuned\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tuned\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "tuned" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tuned\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tuned\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components tuned" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_coll_tuned_DSO=1 ++ else ++ BUILD_coll_tuned_DSO=0 ++ fi ++ if test "$BUILD_coll_tuned_DSO" = "1"; then ++ OMPI_BUILD_coll_tuned_DSO_TRUE= ++ OMPI_BUILD_coll_tuned_DSO_FALSE='#' ++else ++ OMPI_BUILD_coll_tuned_DSO_TRUE='#' ++ OMPI_BUILD_coll_tuned_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/coll/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component coll:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_coll" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/coll/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/coll/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_coll" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_coll" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component coll:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component coll:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_coll" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_coll_ALL_COMPONENTS="$all_components" ++ MCA_coll_STATIC_COMPONENTS="$static_components" ++ MCA_coll_DSO_COMPONENTS="$dso_components" ++ MCA_coll_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_coll_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_coll_ALL_SUBDIRS="$MCA_coll_ALL_SUBDIRS mca/coll/$item" ++ done ++ ++ ++ ++ MCA_coll_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_coll_STATIC_SUBDIRS="$MCA_coll_STATIC_SUBDIRS mca/coll/$item" ++ done ++ ++ ++ ++ MCA_coll_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_coll_DSO_SUBDIRS="$MCA_coll_DSO_SUBDIRS mca/coll/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "coll" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "common" = "common" ; then ++ MCA_ompi_FRAMEWORKS="common $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/common $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_common_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_common_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_common_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS common" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/common" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_common_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_common_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_common_STATIC_SUBDIRS)" ++ fi ++ if test "common" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/common/libmca_common.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_common_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework common" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "common" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/common/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework common" >&5 ++echo $ECHO_N "checking for no configure components in framework common... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: sm" >&5 ++echo "${ECHO_T}sm" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework common" >&5 ++echo $ECHO_N "checking for m4 configure components in framework common... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: mx, portals" >&5 ++echo "${ECHO_T}mx, portals" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component common:sm (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=common ++ component=sm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_common" ; then ++ if test "$DIRECT_common" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=common ++ component=sm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_common" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=common ++ component=sm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_common" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_common" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component common:sm can compile" >&5 ++echo $ECHO_N "checking if MCA component common:sm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_common" = "sm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_common" ; then ++ if test "$DIRECT_common" = "sm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components sm" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_common_sm_DSO=1 ++ else ++ BUILD_common_sm_DSO=0 ++ fi ++ if test "$BUILD_common_sm_DSO" = "1"; then ++ OMPI_BUILD_common_sm_DSO_TRUE= ++ OMPI_BUILD_common_sm_DSO_FALSE='#' ++else ++ OMPI_BUILD_common_sm_DSO_TRUE='#' ++ OMPI_BUILD_common_sm_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component common:mx (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=common ++ component=mx ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_common" ; then ++ if test "$DIRECT_common" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=common ++ component=mx ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_common" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-mx was given. ++if test "${with_mx+set}" = set; then ++ withval=$with_mx; ++fi ++ ++ ++# Check whether --with-mx-libdir was given. ++if test "${with_mx_libdir+set}" = set; then ++ withval=$with_mx_libdir; ++fi ++ ++ ++ ompi_check_mx_common_mx_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_mx_common_mx_save_LDFLAGS="$LDFLAGS" ++ ompi_check_mx_common_mx_save_LIBS="$LIBS" ++ ++ if test "$with_mx" != "no"; then ++ if test ! -z "$with_mx" -a "$with_mx" != "yes"; then ++ ompi_check_mx_dir="$with_mx" ++fi ++ ++ if test ! -z "$with_mx_libdir" -a "$with_mx_libdir" != "yes"; then ++ ompi_check_mx_libdir="$with_mx_libdir" ++fi ++ ++ ++ ++ ompi_check_package_common_mx_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_common_mx_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_common_mx_save_LIBS="$LIBS" ++ ++ ompi_check_package_common_mx_orig_CPPFLAGS="$common_mx_CPPFLAGS" ++ ompi_check_package_common_mx_orig_LDFLAGS="$common_mx_LDFLAGS" ++ ompi_check_package_common_mx_orig_LIBS="$common_mx_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_myriexpress_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_mx_dir" = "/usr" -o "$ompi_check_mx_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for myriexpress.h" >&5 ++echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5 ++echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking myriexpress.h usability" >&5 ++echo $ECHO_N "checking myriexpress.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking myriexpress.h presence" >&5 ++echo $ECHO_N "checking myriexpress.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: myriexpress.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: myriexpress.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: myriexpress.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: myriexpress.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for myriexpress.h" >&5 ++echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_myriexpress_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5 ++echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; } ++ ++fi ++if test $ac_cv_header_myriexpress_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_myriexpress_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_mx_dir" != ""; then ++ common_mx_CPPFLAGS="$common_mx_CPPFLAGS -I$ompi_check_mx_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_mx_dir/include" ++fi ++ ++ if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for myriexpress.h" >&5 ++echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5 ++echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking myriexpress.h usability" >&5 ++echo $ECHO_N "checking myriexpress.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking myriexpress.h presence" >&5 ++echo $ECHO_N "checking myriexpress.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: myriexpress.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: myriexpress.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: myriexpress.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: myriexpress.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for myriexpress.h" >&5 ++echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_myriexpress_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5 ++echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; } ++ ++fi ++if test $ac_cv_header_myriexpress_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_myriexpress_mx_finalize ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_mx_libdir" != ""; then ++ # libdir was specified - search only there ++ common_mx_LDFLAGS="$common_mx_LDFLAGS -L$ompi_check_mx_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_mx_libdir" ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS" ++ common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_mx_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS" ++ common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ common_mx_LDFLAGS="$common_mx_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS" ++ common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ common_mx_LDFLAGS="$common_mx_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS" ++ common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ common_mx_LIBS="-lmyriexpress " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_myriexpress_mx_finalize ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_mx_libdir" != ""; then ++ # libdir was specified - search only there ++ common_mx_LDFLAGS="$common_mx_LDFLAGS -L$ompi_check_mx_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_mx_libdir" ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS" ++ common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_mx_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS" ++ common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ common_mx_LDFLAGS="$common_mx_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS" ++ common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ common_mx_LDFLAGS="$common_mx_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS" ++ common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ common_mx_LIBS="-lmyriexpress " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ ompi_check_mx_happy="yes" ++else ++ common_mx_CPPFLAGS="$ompi_check_package_common_mx_orig_CPPFLAGS" ++ common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS" ++ common_mx_LIBS="$ompi_check_package_common_mx_orig_LIBS" ++ ompi_check_mx_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_common_mx_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS" ++ LIBS="$ompi_check_package_common_mx_save_LIBS" ++ ++else ++ ompi_check_mx_happy="no" ++fi ++ ++ ++ CPPFLAGS="$CPPFLAGS $common_mx_CPPFLAGS" ++ LDFLAGS="$LDFLAGS $common_mx_LDFLAGS" ++ LIBS="$LIBS $common_mx_LIBS" ++ ++ # need at least version 1.0 ++ if test "ompi_check_mx_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for MX version 1.0 or later" >&5 ++echo $ECHO_N "checking for MX version 1.0 or later... $ECHO_C" >&6; } ++if test "${ompi_cv_mx_version_ok+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++ ++int ++main () ++{ ++ ++#if MX_API < 0x300 ++#error "Version less than 0x300" ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ompi_cv_mx_version_ok="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_mx_version_ok="no" ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_mx_version_ok" >&5 ++echo "${ECHO_T}$ompi_cv_mx_version_ok" >&6; } ++fi ++ ++ if test "$ompi_cv_mx_version_ok" = "no"; then ++ ompi_check_mx_happy="no" ++fi ++ ++ ++ if test "$ompi_check_mx_happy" = "yes"; then ++ ++for ac_header in mx_extensions.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++ ++for ac_func in mx_forget mx_register_unexp_handler ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ ++ { echo "$as_me:$LINENO: checking for mx_open_board" >&5 ++echo $ECHO_N "checking for mx_open_board... $ECHO_C" >&6; } ++if test "${ompi_cv_func_mx_open_board+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++ ++int ++main () ++{ ++ ++mx_open_board(0, NULL); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_mx_open_board="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_mx_open_board="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_mx_open_board" >&5 ++echo "${ECHO_T}$ompi_cv_func_mx_open_board" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for mx__get_mapper_state" >&5 ++echo $ECHO_N "checking for mx__get_mapper_state... $ECHO_C" >&6; } ++if test "${ompi_cv_func_mx__get_mapper_state+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++ ++int ++main () ++{ ++ ++mx__get_mapper_state(NULL, NULL); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_mx__get_mapper_state="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_mx__get_mapper_state="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_mx__get_mapper_state" >&5 ++echo "${ECHO_T}$ompi_cv_func_mx__get_mapper_state" >&6; } ++ ++ if test "$ompi_cv_func_mx_open_board" = "yes" -a "$ompi_cv_func_mx__get_mapper_state" = "yes"; then ++ mx_provide_mapper_state=1 ++ ++else ++ mx_provide_mapper_state=0 ++ ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MX_HAVE_MAPPER_STATE $mx_provide_mapper_state ++_ACEOF ++ ++ ++else ++ { echo "$as_me:$LINENO: WARNING: The MX support for Open MPI will be compiled without the ++MX extensions, which may result in lower performance. Please upgrade ++to at least MX 1.2.0 to enable the MX extensions." >&5 ++echo "$as_me: WARNING: The MX support for Open MPI will be compiled without the ++MX extensions, which may result in lower performance. Please upgrade ++to at least MX 1.2.0 to enable the MX extensions." >&2;} ++fi ++ ++done ++ ++fi ++ ++ ++ CPPFLAGS="$ompi_check_mx_common_mx_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_mx_common_mx_save_LDFLAGS" ++ LIBS="$ompi_check_mx_common_mx_save_LIBS" ++ ++ if test "$ompi_check_mx_happy" = "yes" -a "$enable_progress_threads" = "yes"; then ++ { echo "$as_me:$LINENO: WARNING: MX driver does not currently support progress threads. Disabling BTL." >&5 ++echo "$as_me: WARNING: MX driver does not currently support progress threads. Disabling BTL." >&2;} ++ ompi_check_mx_happy="no" ++fi ++ ++ ++ if test "$ompi_check_mx_happy" = "yes"; then ++ common_mx_happy="yes" ++else ++ if test ! -z "$with_mx" -a "$with_mx" != "no"; then ++ { { echo "$as_me:$LINENO: error: MX support requested but not found. Aborting" >&5 ++echo "$as_me: error: MX support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ common_mx_happy="no" ++fi ++ ++ ++ ++ if test "$common_mx_happy" = "yes"; then ++ common_mx_WRAPPER_EXTRA_LDFLAGS="$common_mx_LDFLAGS" ++ common_mx_WRAPPER_EXTRA_LIBS="$common_mx_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # substitute in the things needed to build mx ++ ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=common ++ component=mx ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_common" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_common" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component common:mx can compile" >&5 ++echo $ECHO_N "checking if MCA component common:mx can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_common" = "mx" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"mx\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_common" ; then ++ if test "$DIRECT_common" = "mx" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"mx\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components mx" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_common_mx_DSO=1 ++else ++ BUILD_common_mx_DSO=0 ++fi ++ ++ if test "$BUILD_common_mx_DSO" = "1"; then ++ OMPI_BUILD_common_mx_DSO_TRUE= ++ OMPI_BUILD_common_mx_DSO_FALSE='#' ++else ++ OMPI_BUILD_common_mx_DSO_TRUE='#' ++ OMPI_BUILD_common_mx_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component common:portals (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=common ++ component=portals ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_common" ; then ++ if test "$DIRECT_common" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=common ++ component=portals ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_common" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ # save compiler flags so that we don't alter them for later ++ # components. ++ check_portals_save_CPPFLAGS="$CPPFLAGS" ++ check_portals_save_LDFLAGS="$LDFLAGS" ++ check_portals_save_LIBS="$LIBS" ++ ++ check_portals_CPPFLAGS= ++ check_portals_LDFLAGS= ++ check_portals_LIBS= ++ ++ check_portals_configuration="none" ++ ompi_check_portals_happy="yes" ++ ++ # Get some configuration information ++ ++# Check whether --with-portals was given. ++if test "${with_portals+set}" = set; then ++ withval=$with_portals; ++fi ++ ++ ++# Check whether --with-portals-config was given. ++if test "${with_portals_config+set}" = set; then ++ withval=$with_portals_config; ++fi ++ ++ ++# Check whether --with-portals-libs was given. ++if test "${with_portals_libs+set}" = set; then ++ withval=$with_portals_libs; ++fi ++ ++ ++ { echo "$as_me:$LINENO: checking for Portals configuration" >&5 ++echo $ECHO_N "checking for Portals configuration... $ECHO_C" >&6; } ++ if test "$with_portals_config" = "" ; then ++ with_portals_config="utcp" ++ elif test "$with_portals_config" = "redstorm" ; then ++ with_portals_config="xt3" ++ elif test "$with_portals_config" = "cnl_modex" ; then ++ with_portals_config="xt3-modex" ++ fi ++ OMPI_PORTALS_UTCP=0 ++ OMPI_PORTALS_CRAYXT3=0 ++ OMPI_PORTALS_CRAYXT3_MODEX=0 ++ case "$with_portals_config" in ++ "utcp") ++ OMPI_PORTALS_UTCP=1 ++ OMPI_PORTALS_HAVE_EVENT_UNLINK=1 ++ check_portals_LIBS="-lp3utcp -lp3api -lp3lib -lp3rt -lp3utcp" ++ check_portals_header_prefix= ++ { echo "$as_me:$LINENO: result: utcp" >&5 ++echo "${ECHO_T}utcp" >&6; } ++ ;; ++ "xt3") ++ OMPI_PORTALS_CRAYXT3=1 ++ OMPI_PORTALS_HAVE_EVENT_UNLINK=0 ++ check_portals_LIBS= ++ check_portals_header_prefix="portals/" ++ { echo "$as_me:$LINENO: result: Cray XT3" >&5 ++echo "${ECHO_T}Cray XT3" >&6; } ++ ;; ++ "xt3-modex") ++ OMPI_PORTALS_CRAYXT3_MODEX=1 ++ OMPI_PORTALS_HAVE_EVENT_UNLINK=0 ++ check_portals_LIBS= ++ check_portals_header_prefix="portals/" ++ { echo "$as_me:$LINENO: result: Cray XT3 - Modex" >&5 ++echo "${ECHO_T}Cray XT3 - Modex" >&6; } ++ ;; ++ *) ++ # ok to call ERROR here - the user specified something invalid. ++ # that should be brought to his attention ++ { { echo "$as_me:$LINENO: error: unknown Portals configuration. Can not continue" >&5 ++echo "$as_me: error: unknown Portals configuration. Can not continue" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PORTALS_HAVE_EVENT_UNLINK $OMPI_PORTALS_HAVE_EVENT_UNLINK ++_ACEOF ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PORTALS_UTCP $OMPI_PORTALS_UTCP ++_ACEOF ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PORTALS_CRAYXT3 $OMPI_PORTALS_CRAYXT3 ++_ACEOF ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PORTALS_CRAYXT3_MODEX $OMPI_PORTALS_CRAYXT3_MODEX ++_ACEOF ++ ++ ++ # Add correct -I and -L flags ++ if test -n "$with_portals"; then ++ if test -d "$with_portals/include"; then ++ check_portals_CPPFLAGS="-I$with_portals/include" ++ CPPFLAGS="$CPPFLAGS $check_portals_CPPFLAGS" ++fi ++ ++ if test -d "$with_portals/lib"; then ++ check_portals_LDFLAGS="-L$with_portals/lib" ++ LDFLAGS="$LDFLAGS $check_portals_LDFLAGS" ++fi ++ ++fi ++ ++ ++ # Try to find all the portals libraries (this is not fun!) ++ if test -n "$with_portals_libs" ; then ++ check_portals_LIBS="" ++ for lib in $with_portals_libs ; do ++ check_portals_LIBS="$check_portals_LIBS -l$lib" ++ done ++ fi ++ ++ # check for portals ++ LIBS="$LIBS $check_portals_LIBS" ++ ++for ac_header in ${check_portals_header_prefix}portals3.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ { echo "$as_me:$LINENO: checking if possible to link Portals application" >&5 ++echo $ECHO_N "checking if possible to link Portals application... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include <${check_portals_header_prefix}portals3.h> ++int ++main () ++{ ++int i; PtlInit(&i); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ompi_check_portals_happy="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ompi_check_portals_happy="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++else ++ ompi_check_portals_happy="no" ++fi ++ ++done ++ ++ ++ # Deal with static-only Portals UTCP libs. See note in ++ # ompi/mca/common/portals/configure.m4. Then possibly cry. ++ if test "$with_portals_config" = "utcp" ; then ++ if test "common_portals" != "common_portals" ; then ++ check_portals_LIBS= ++ fi ++ fi ++ ++ # reset the flags for the next test ++ CPPFLAGS="$check_portals_save_CPPFLAGS" ++ LDFLAGS="$check_portals_save_LDFLAGS" ++ LIBS="$check_portals_save_LIBS" ++ ++ common_portals_CPPFLAGS="$check_portals_CPPFLAGS" ++ common_portals_LDFLAGS="$check_portals_LDFLAGS" ++ common_portals_LIBS="$check_portals_LIBS" ++ ++ if test "$ompi_check_portals_happy" = "yes"; then ++ common_portals_happy="yes" ++else ++ if test ! -z "$with_portals" -a "$with_portals" != "no"; then ++ { { echo "$as_me:$LINENO: error: Portals support requested but not found. Aborting" >&5 ++echo "$as_me: error: Portals support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ common_portals_happy="no" ++fi ++ ++ ++ ++ if test "$common_portals_happy" = "yes" -a "$with_portals_config" = "utcp" ; then ++ # Portals interface ++ symbols="PtlInit PtlFini PtlNIInit" ++ symbols="$symbols PtlNIFini PtlNIStatus PtlNIDist PtlNIHandle" ++ symbols="$symbols PtlGetUid PtlGetId PtlGetJid " ++ symbols="$symbols PtlMEAttach PtlMEAttachAny PtlMEInsert PtlMEUnlink" ++ symbols="$symbols PtlMDAttach PtlMDBind PtlMDUnlink PtlMDUpdate" ++ symbols="$symbols PtlEQAlloc PtlEQFree PtlEQGet PtlEQWait" ++ symbols="$symbols PtlEQPoll PtlACEntry" ++ symbols="$symbols PtlPut PtlPutRegion PtlGet PtlGetRegon PtlGetPut" ++ ++ # Portals reference implementation debugging stuff ++ symbols="$symbols PtlMEDump PtlNIEqDump PtlTblDump PtlNIDebug" ++ symbols="$symbols PtlErrorStr PtlEventKindStr PtlNIFailStr" ++ ++ # Portals reference implementation RTE interface ++ symbols="$symbols PtlGetNIDMap PtlGetPIDMap PtlGetRank PtlGetRankId" ++ symbols="$symbols PtlSetJID PtlSetNIDMap PtlSetPIDMap PtlSetRank" ++ ++ flags= ++ for symbol in $symbols ; do ++ case $host in ++ *-darwin*) ++ flags="$flags -Wl,-u,=_$symbol" ++ ;; ++ *-linux*) ++ flags="$flags -Wl,-undefined=$symbol" ++ ;; ++ esac ++ done ++ ++ OMPI_LIBMPI_EXTRA_LDFLAGS="$common_portals_LDFLAGS $flags" ++ OMPI_LIBMPI_EXTRA_LIBS="$common_portals_LIBS" ++ ++ commmon_portals_LIBS= ++ fi ++ ++ if test "$common_portals_happy" = "yes"; then ++ common_portals_WRAPPER_EXTRA_LDFLAGS="$common_portals_LDFLAGS" ++ common_portals_WRAPPER_EXTRA_LIBS="$common_portals_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # substitute in the things needed to build portals ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=common ++ component=portals ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_common" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_common" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component common:portals can compile" >&5 ++echo $ECHO_N "checking if MCA component common:portals can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_common" = "portals" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"portals\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_common" ; then ++ if test "$DIRECT_common" = "portals" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"portals\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components portals" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_common_portals_DSO=1 ++else ++ BUILD_common_portals_DSO=0 ++fi ++ ++ if test "$BUILD_common_portals_DSO" = "1"; then ++ OMPI_BUILD_common_portals_DSO_TRUE= ++ OMPI_BUILD_common_portals_DSO_FALSE='#' ++else ++ OMPI_BUILD_common_portals_DSO_TRUE='#' ++ OMPI_BUILD_common_portals_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/common/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component common:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=common ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_common" ; then ++ if test "$DIRECT_common" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=common ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_common" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/common/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/common/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=common ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_common" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_common" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component common:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component common:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_common" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_common" ; then ++ if test "$DIRECT_common" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_common_ALL_COMPONENTS="$all_components" ++ MCA_common_STATIC_COMPONENTS="$static_components" ++ MCA_common_DSO_COMPONENTS="$dso_components" ++ MCA_common_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_common_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_common_ALL_SUBDIRS="$MCA_common_ALL_SUBDIRS mca/common/$item" ++ done ++ ++ ++ ++ MCA_common_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_common_STATIC_SUBDIRS="$MCA_common_STATIC_SUBDIRS mca/common/$item" ++ done ++ ++ ++ ++ MCA_common_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_common_DSO_SUBDIRS="$MCA_common_DSO_SUBDIRS mca/common/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "common" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "crcp" = "common" ; then ++ MCA_ompi_FRAMEWORKS="crcp $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/crcp $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_crcp_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_crcp_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_crcp_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS crcp" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/crcp" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_crcp_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_crcp_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_crcp_STATIC_SUBDIRS)" ++ fi ++ if test "crcp" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/crcp/libmca_crcp.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_crcp_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework crcp" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "crcp" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/crcp/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework crcp" >&5 ++echo $ECHO_N "checking for no configure components in framework crcp... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework crcp" >&5 ++echo $ECHO_N "checking for m4 configure components in framework crcp... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: bkmrk" >&5 ++echo "${ECHO_T}bkmrk" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component crcp:bkmrk (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=crcp ++ component=bkmrk ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_crcp" ; then ++ if test "$DIRECT_crcp" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=crcp ++ component=bkmrk ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_crcp" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ # If we don't want FT, don't compile this component ++ if test "$ompi_want_ft" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=crcp ++ component=bkmrk ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_crcp" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_crcp" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component crcp:bkmrk can compile" >&5 ++echo $ECHO_N "checking if MCA component crcp:bkmrk can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_crcp" = "bkmrk" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"bkmrk\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"bkmrk\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_crcp" ; then ++ if test "$DIRECT_crcp" = "bkmrk" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"bkmrk\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"bkmrk\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components bkmrk" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_crcp_bkmrk_DSO=1 ++else ++ BUILD_crcp_bkmrk_DSO=0 ++fi ++ ++ if test "$BUILD_crcp_bkmrk_DSO" = "1"; then ++ OMPI_BUILD_crcp_bkmrk_DSO_TRUE= ++ OMPI_BUILD_crcp_bkmrk_DSO_FALSE='#' ++else ++ OMPI_BUILD_crcp_bkmrk_DSO_TRUE='#' ++ OMPI_BUILD_crcp_bkmrk_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/crcp/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component crcp:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=crcp ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_crcp" ; then ++ if test "$DIRECT_crcp" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=crcp ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_crcp" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/crcp/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/crcp/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=crcp ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_crcp" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_crcp" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component crcp:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component crcp:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_crcp" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_crcp" ; then ++ if test "$DIRECT_crcp" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_crcp_ALL_COMPONENTS="$all_components" ++ MCA_crcp_STATIC_COMPONENTS="$static_components" ++ MCA_crcp_DSO_COMPONENTS="$dso_components" ++ MCA_crcp_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_crcp_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_crcp_ALL_SUBDIRS="$MCA_crcp_ALL_SUBDIRS mca/crcp/$item" ++ done ++ ++ ++ ++ MCA_crcp_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_crcp_STATIC_SUBDIRS="$MCA_crcp_STATIC_SUBDIRS mca/crcp/$item" ++ done ++ ++ ++ ++ MCA_crcp_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_crcp_DSO_SUBDIRS="$MCA_crcp_DSO_SUBDIRS mca/crcp/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "crcp" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "dpm" = "common" ; then ++ MCA_ompi_FRAMEWORKS="dpm $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/dpm $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_dpm_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_dpm_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_dpm_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS dpm" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/dpm" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_dpm_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_dpm_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_dpm_STATIC_SUBDIRS)" ++ fi ++ if test "dpm" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/dpm/libmca_dpm.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_dpm_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework dpm" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "dpm" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/dpm/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework dpm" >&5 ++echo $ECHO_N "checking for no configure components in framework dpm... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: orte" >&5 ++echo "${ECHO_T}orte" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework dpm" >&5 ++echo $ECHO_N "checking for m4 configure components in framework dpm... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component dpm:orte (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=dpm ++ component=orte ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_dpm" ; then ++ if test "$DIRECT_dpm" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=dpm ++ component=orte ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_dpm" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=dpm ++ component=orte ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_dpm" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_dpm" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component dpm:orte can compile" >&5 ++echo $ECHO_N "checking if MCA component dpm:orte can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_dpm" = "orte" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"orte\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"orte\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_dpm" ; then ++ if test "$DIRECT_dpm" = "orte" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"orte\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"orte\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components orte" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_dpm_orte_DSO=1 ++ else ++ BUILD_dpm_orte_DSO=0 ++ fi ++ if test "$BUILD_dpm_orte_DSO" = "1"; then ++ OMPI_BUILD_dpm_orte_DSO_TRUE= ++ OMPI_BUILD_dpm_orte_DSO_FALSE='#' ++else ++ OMPI_BUILD_dpm_orte_DSO_TRUE='#' ++ OMPI_BUILD_dpm_orte_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/dpm/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component dpm:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=dpm ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_dpm" ; then ++ if test "$DIRECT_dpm" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=dpm ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_dpm" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/dpm/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/dpm/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=dpm ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_dpm" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_dpm" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component dpm:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component dpm:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_dpm" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_dpm" ; then ++ if test "$DIRECT_dpm" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_dpm_ALL_COMPONENTS="$all_components" ++ MCA_dpm_STATIC_COMPONENTS="$static_components" ++ MCA_dpm_DSO_COMPONENTS="$dso_components" ++ MCA_dpm_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_dpm_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_dpm_ALL_SUBDIRS="$MCA_dpm_ALL_SUBDIRS mca/dpm/$item" ++ done ++ ++ ++ ++ MCA_dpm_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_dpm_STATIC_SUBDIRS="$MCA_dpm_STATIC_SUBDIRS mca/dpm/$item" ++ done ++ ++ ++ ++ MCA_dpm_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_dpm_DSO_SUBDIRS="$MCA_dpm_DSO_SUBDIRS mca/dpm/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "dpm" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "io" = "common" ; then ++ MCA_ompi_FRAMEWORKS="io $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/io $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_io_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_io_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_io_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS io" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/io" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_io_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_io_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_io_STATIC_SUBDIRS)" ++ fi ++ if test "io" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/io/libmca_io.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_io_STATIC_LTLIBS)" ++ ++ # Check whether --enable-mpi-io was given. ++if test "${enable_mpi_io+set}" = set; then ++ enableval=$enable_mpi_io; ++fi ++ ++ ++ if test "$enable_mpi_io" != "no"; then ++ define_mpi_io=1 ++ OMPI_MPIF_MPI_IO_INCLUDE="include \"mpif-mpi-io.h\"" ++else ++ define_mpi_io=0 ++ OMPI_MPIF_MPI_IO_INCLUDE="" ++fi ++ ++ ++ ++ ompi_show_subsubtitle "Configuring MCA framework io" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "io" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/io/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework io" >&5 ++echo $ECHO_N "checking for no configure components in framework io... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework io" >&5 ++echo $ECHO_N "checking for m4 configure components in framework io... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: romio" >&5 ++echo "${ECHO_T}romio" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=$define_mpi_io ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component io:romio (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=io ++ component=romio ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_io" ; then ++ if test "$DIRECT_io" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=io ++ component=romio ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_io" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in io_romio_flags io_romio_flags_define io_romio_happy io_romio_save_LIBS; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"io_romio_flags io_romio_flags_define io_romio_happy io_romio_save_LIBS\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ # Check whether --enable-io-romio was given. ++if test "${enable_io_romio+set}" = set; then ++ enableval=$enable_io_romio; ++fi ++ ++ ++# Check whether --with-io-romio-flags was given. ++if test "${with_io_romio_flags+set}" = set; then ++ withval=$with_io_romio_flags; ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MCA_io_romio_USER_CONFIGURE_FLAGS "$with_io_romio_flags" ++_ACEOF ++ ++ { echo "$as_me:$LINENO: checking if want ROMIO component" >&5 ++echo $ECHO_N "checking if want ROMIO component... $ECHO_C" >&6; } ++ if test "$enable_io_romio" = "no"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ should_build=0 ++else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ { echo "$as_me:$LINENO: checking if MPI profiling is enabled" >&5 ++echo $ECHO_N "checking if MPI profiling is enabled... $ECHO_C" >&6; } ++ if test "$enable_mpi_profile" = "no"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** The ROMIO io component requires the MPI profiling layer" >&5 ++echo "$as_me: WARNING: *** The ROMIO io component requires the MPI profiling layer" >&2;} ++ if test "$enable_io_romio" = "yes"; then ++ { { echo "$as_me:$LINENO: error: *** ROMIO requested but not available. Aborting" >&5 ++echo "$as_me: error: *** ROMIO requested but not available. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ should_build=0 ++else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ if test -n "$with_io_romio_flags" -a "$with_io_romio_flags" != "no"; then ++ io_romio_flags="$with_io_romio_flags $io_romio_flags" ++else ++ io_romio_flags= ++fi ++ ++ # If ROMIO is going to end up in a DSO, all we need is ++ # shared library-ized objects, as we're only building a ++ # DSO (which is always shared). Otherwise, build with ++ # same flags as OMPI, as we might need any combination of ++ # shared and static-ized objects... ++ if test "$compile_mode" = "dso"; then ++ io_romio_shared=enable ++ io_romio_static=disable ++else ++ if test "$enable_shared" = "yes"; then ++ io_romio_shared=enable ++else ++ io_romio_shared=disable ++fi ++ ++ if test "$enable_static" = "yes"; then ++ io_romio_static=enable ++else ++ io_romio_static=disable ++fi ++ ++fi ++ ++ if test -n "$prefix" -a "$prefix" != "NONE"; then ++ io_romio_prefix_arg="--prefix=$prefix" ++else ++ io_romio_prefix_arg= ++fi ++ ++ ++ if test "$cross_compiling" = "yes"; then ++ if test ! -z $build; then ++ io_romio_flags="$io_romio_flags --build=$build" ++fi ++ ++ if test ! -z $host; then ++ io_romio_flags="$io_romio_flags --host=$host" ++fi ++ ++ if test ! -z $target; then ++ io_romio_flags="$io_romio_flags --target=$target" ++fi ++ ++fi ++ ++ io_romio_flags_define="$io_romio_flags CFLAGS='$CFLAGS' CPPFLAGS='$CPPFLAGS' FFLAGS='$FFLAGS' LDFLAGS='$LDFLAGS' --$io_romio_shared-shared --$io_romio_static-static $io_romio_flags $io_romio_prefix_arg --with-mpi=open_mpi --disable-aio" ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MCA_io_romio_COMPLETE_CONFIGURE_FLAGS "$io_romio_flags_define" ++_ACEOF ++ ++ ++ io_romio_flags="$io_romio_flags CFLAGS="'"'"$CFLAGS"'"'" CPPFLAGS="'"'"$CPPFLAGS"'"'" FFLAGS="'"'"$FFLAGS"'"'" LDFLAGS="'"'"$LDFLAGS"'"'" --$io_romio_shared-shared --$io_romio_static-static $io_romio_flags $io_romio_prefix_arg --with-mpi=open_mpi --disable-aio" ++ ++ ompi_show_subtitle "Configuring ROMIO distribution" ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/io/romio/romio is the directory to invoke in ++# $io_romio_flags is the list of arguments to pass ++# io_romio_happy=1 is actions to execute upon success ++# io_romio_happy=0 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/io/romio/romio" ++subdir_args="$io_romio_flags" ++subdir_success="io_romio_happy=1" ++subdir_failure="io_romio_happy=0" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ ++ if test "$io_romio_happy" = "1"; then ++ # grab the libraries list from ROMIO. We don't ++ # need this for building the component, as libtool ++ # will figure that part out. But we do need it for ++ # the wrapper settings ++ io_romio_save_LIBS="$LIBS" ++ LIBS= ++ . ompi/mca/io/romio/romio/localdefs ++ io_romio_LIBS="$LIBS" ++ LIBS="$io_romio_save_LIBS" ++ ++ echo "ROMIO distribution configured successfully" ++ io_romio_WRAPPER_EXTRA_LIBS="$io_romio_LIBS" ++ should_build=1 ++else ++ if test "$enable_io_romio" = "yes"; then ++ { { echo "$as_me:$LINENO: error: ROMIO distribution did not configure successfully" >&5 ++echo "$as_me: error: ROMIO distribution did not configure successfully" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ { echo "$as_me:$LINENO: WARNING: ROMIO distribution did not configure successfully" >&5 ++echo "$as_me: WARNING: ROMIO distribution did not configure successfully" >&2;} ++fi ++ ++ should_build=0 ++fi ++ ++fi ++ ++fi ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=io ++ component=romio ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_io" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_io" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component io:romio can compile" >&5 ++echo $ECHO_N "checking if MCA component io:romio can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_io" = "romio" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"romio\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"romio\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_io" ; then ++ if test "$DIRECT_io" = "romio" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"romio\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"romio\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components romio" ++fi ++ ++ ++ ++ if test $should_build -eq 0 -a "$enable_dist" = "yes"; then ++ { { echo "$as_me:$LINENO: error: ROMIO disabled but --enable-dist specifed. This will result in a bad tarball. Aborting configure." >&5 ++echo "$as_me: error: ROMIO disabled but --enable-dist specifed. This will result in a bad tarball. Aborting configure." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ if test $should_build -eq 1; then ++ MCA_io_romio_SHOULD_BUILD_TRUE= ++ MCA_io_romio_SHOULD_BUILD_FALSE='#' ++else ++ MCA_io_romio_SHOULD_BUILD_TRUE='#' ++ MCA_io_romio_SHOULD_BUILD_FALSE= ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_io_romio_DSO=1 ++else ++ BUILD_io_romio_DSO=0 ++fi ++ ++ if test "$BUILD_io_romio_DSO" = "1"; then ++ OMPI_BUILD_io_romio_DSO_TRUE= ++ OMPI_BUILD_io_romio_DSO_FALSE='#' ++else ++ OMPI_BUILD_io_romio_DSO_TRUE='#' ++ OMPI_BUILD_io_romio_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "$define_mpi_io" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/io/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component io:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=io ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_io" ; then ++ if test "$DIRECT_io" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=io ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_io" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/io/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/io/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=io ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_io" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_io" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component io:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component io:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_io" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_io" ; then ++ if test "$DIRECT_io" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_io_ALL_COMPONENTS="$all_components" ++ MCA_io_STATIC_COMPONENTS="$static_components" ++ MCA_io_DSO_COMPONENTS="$dso_components" ++ MCA_io_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_io_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_io_ALL_SUBDIRS="$MCA_io_ALL_SUBDIRS mca/io/$item" ++ done ++ ++ ++ ++ MCA_io_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_io_STATIC_SUBDIRS="$MCA_io_STATIC_SUBDIRS mca/io/$item" ++ done ++ ++ ++ ++ MCA_io_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_io_DSO_SUBDIRS="$MCA_io_DSO_SUBDIRS mca/io/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "io" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PROVIDE_MPI_FILE_INTERFACE $define_mpi_io ++_ACEOF ++ ++ if test "$define_mpi_io" = "1"; then ++ OMPI_PROVIDE_MPI_FILE_INTERFACE_TRUE= ++ OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE='#' ++else ++ OMPI_PROVIDE_MPI_FILE_INTERFACE_TRUE='#' ++ OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE= ++fi ++ ++ ++# common has to go up front ++ if test "mpool" = "common" ; then ++ MCA_ompi_FRAMEWORKS="mpool $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/mpool $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_mpool_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_mpool_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_mpool_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS mpool" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/mpool" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_mpool_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_mpool_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_mpool_STATIC_SUBDIRS)" ++ fi ++ if test "mpool" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/mpool/libmca_mpool.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_mpool_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework mpool" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "mpool" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/mpool/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework mpool" >&5 ++echo $ECHO_N "checking for no configure components in framework mpool... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: fake, rdma, sm" >&5 ++echo "${ECHO_T}fake, rdma, sm" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework mpool" >&5 ++echo $ECHO_N "checking for m4 configure components in framework mpool... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component mpool:fake (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=mpool ++ component=fake ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_mpool" ; then ++ if test "$DIRECT_mpool" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=mpool ++ component=fake ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_mpool" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=mpool ++ component=fake ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_mpool" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_mpool" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component mpool:fake can compile" >&5 ++echo $ECHO_N "checking if MCA component mpool:fake can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_mpool" = "fake" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"fake\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"fake\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_mpool" ; then ++ if test "$DIRECT_mpool" = "fake" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"fake\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"fake\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components fake" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_mpool_fake_DSO=1 ++ else ++ BUILD_mpool_fake_DSO=0 ++ fi ++ if test "$BUILD_mpool_fake_DSO" = "1"; then ++ OMPI_BUILD_mpool_fake_DSO_TRUE= ++ OMPI_BUILD_mpool_fake_DSO_FALSE='#' ++else ++ OMPI_BUILD_mpool_fake_DSO_TRUE='#' ++ OMPI_BUILD_mpool_fake_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component mpool:rdma (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=mpool ++ component=rdma ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_mpool" ; then ++ if test "$DIRECT_mpool" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=mpool ++ component=rdma ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_mpool" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=mpool ++ component=rdma ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_mpool" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_mpool" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component mpool:rdma can compile" >&5 ++echo $ECHO_N "checking if MCA component mpool:rdma can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_mpool" = "rdma" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"rdma\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"rdma\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_mpool" ; then ++ if test "$DIRECT_mpool" = "rdma" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"rdma\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"rdma\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components rdma" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_mpool_rdma_DSO=1 ++ else ++ BUILD_mpool_rdma_DSO=0 ++ fi ++ if test "$BUILD_mpool_rdma_DSO" = "1"; then ++ OMPI_BUILD_mpool_rdma_DSO_TRUE= ++ OMPI_BUILD_mpool_rdma_DSO_FALSE='#' ++else ++ OMPI_BUILD_mpool_rdma_DSO_TRUE='#' ++ OMPI_BUILD_mpool_rdma_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component mpool:sm (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=mpool ++ component=sm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_mpool" ; then ++ if test "$DIRECT_mpool" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=mpool ++ component=sm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_mpool" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=mpool ++ component=sm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_mpool" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_mpool" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component mpool:sm can compile" >&5 ++echo $ECHO_N "checking if MCA component mpool:sm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_mpool" = "sm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_mpool" ; then ++ if test "$DIRECT_mpool" = "sm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components sm" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_mpool_sm_DSO=1 ++ else ++ BUILD_mpool_sm_DSO=0 ++ fi ++ if test "$BUILD_mpool_sm_DSO" = "1"; then ++ OMPI_BUILD_mpool_sm_DSO_TRUE= ++ OMPI_BUILD_mpool_sm_DSO_FALSE='#' ++else ++ OMPI_BUILD_mpool_sm_DSO_TRUE='#' ++ OMPI_BUILD_mpool_sm_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/mpool/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component mpool:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=mpool ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_mpool" ; then ++ if test "$DIRECT_mpool" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=mpool ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_mpool" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/mpool/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/mpool/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=mpool ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_mpool" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_mpool" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component mpool:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component mpool:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_mpool" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_mpool" ; then ++ if test "$DIRECT_mpool" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_mpool_ALL_COMPONENTS="$all_components" ++ MCA_mpool_STATIC_COMPONENTS="$static_components" ++ MCA_mpool_DSO_COMPONENTS="$dso_components" ++ MCA_mpool_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_mpool_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_mpool_ALL_SUBDIRS="$MCA_mpool_ALL_SUBDIRS mca/mpool/$item" ++ done ++ ++ ++ ++ MCA_mpool_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_mpool_STATIC_SUBDIRS="$MCA_mpool_STATIC_SUBDIRS mca/mpool/$item" ++ done ++ ++ ++ ++ MCA_mpool_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_mpool_DSO_SUBDIRS="$MCA_mpool_DSO_SUBDIRS mca/mpool/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "mpool" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "mtl" = "common" ; then ++ MCA_ompi_FRAMEWORKS="mtl $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/mtl $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_mtl_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_mtl_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_mtl_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS mtl" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/mtl" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_mtl_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_mtl_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_mtl_STATIC_SUBDIRS)" ++ fi ++ if test "mtl" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/mtl/libmca_mtl.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_mtl_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework mtl" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "mtl" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/mtl/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework mtl" >&5 ++echo $ECHO_N "checking for no configure components in framework mtl... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework mtl" >&5 ++echo $ECHO_N "checking for m4 configure components in framework mtl... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: mx, portals, psm" >&5 ++echo "${ECHO_T}mx, portals, psm" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component mtl:mx (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=mtl ++ component=mx ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_mtl" ; then ++ if test "$DIRECT_mtl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=mtl ++ component=mx ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_mtl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-mx was given. ++if test "${with_mx+set}" = set; then ++ withval=$with_mx; ++fi ++ ++ ++# Check whether --with-mx-libdir was given. ++if test "${with_mx_libdir+set}" = set; then ++ withval=$with_mx_libdir; ++fi ++ ++ ++ ompi_check_mx_mtl_mx_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_mx_mtl_mx_save_LDFLAGS="$LDFLAGS" ++ ompi_check_mx_mtl_mx_save_LIBS="$LIBS" ++ ++ if test "$with_mx" != "no"; then ++ if test ! -z "$with_mx" -a "$with_mx" != "yes"; then ++ ompi_check_mx_dir="$with_mx" ++fi ++ ++ if test ! -z "$with_mx_libdir" -a "$with_mx_libdir" != "yes"; then ++ ompi_check_mx_libdir="$with_mx_libdir" ++fi ++ ++ ++ ++ ompi_check_package_mtl_mx_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_mtl_mx_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_mtl_mx_save_LIBS="$LIBS" ++ ++ ompi_check_package_mtl_mx_orig_CPPFLAGS="$mtl_mx_CPPFLAGS" ++ ompi_check_package_mtl_mx_orig_LDFLAGS="$mtl_mx_LDFLAGS" ++ ompi_check_package_mtl_mx_orig_LIBS="$mtl_mx_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_myriexpress_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_mx_dir" = "/usr" -o "$ompi_check_mx_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for myriexpress.h" >&5 ++echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5 ++echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking myriexpress.h usability" >&5 ++echo $ECHO_N "checking myriexpress.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking myriexpress.h presence" >&5 ++echo $ECHO_N "checking myriexpress.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: myriexpress.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: myriexpress.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: myriexpress.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: myriexpress.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for myriexpress.h" >&5 ++echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_myriexpress_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5 ++echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; } ++ ++fi ++if test $ac_cv_header_myriexpress_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_myriexpress_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_mx_dir" != ""; then ++ mtl_mx_CPPFLAGS="$mtl_mx_CPPFLAGS -I$ompi_check_mx_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_mx_dir/include" ++fi ++ ++ if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for myriexpress.h" >&5 ++echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5 ++echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking myriexpress.h usability" >&5 ++echo $ECHO_N "checking myriexpress.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking myriexpress.h presence" >&5 ++echo $ECHO_N "checking myriexpress.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: myriexpress.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: myriexpress.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: myriexpress.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: myriexpress.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for myriexpress.h" >&5 ++echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_myriexpress_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5 ++echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; } ++ ++fi ++if test $ac_cv_header_myriexpress_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_myriexpress_mx_finalize ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_mx_libdir" != ""; then ++ # libdir was specified - search only there ++ mtl_mx_LDFLAGS="$mtl_mx_LDFLAGS -L$ompi_check_mx_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_mx_libdir" ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS" ++ mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_mx_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS" ++ mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ mtl_mx_LDFLAGS="$mtl_mx_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS" ++ mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ mtl_mx_LDFLAGS="$mtl_mx_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS" ++ mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ mtl_mx_LIBS="-lmyriexpress " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_myriexpress_mx_finalize ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_mx_libdir" != ""; then ++ # libdir was specified - search only there ++ mtl_mx_LDFLAGS="$mtl_mx_LDFLAGS -L$ompi_check_mx_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_mx_libdir" ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS" ++ mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_mx_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS" ++ mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ mtl_mx_LDFLAGS="$mtl_mx_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS" ++ mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ mtl_mx_LDFLAGS="$mtl_mx_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS" ++ mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ mtl_mx_LIBS="-lmyriexpress " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ ompi_check_mx_happy="yes" ++else ++ mtl_mx_CPPFLAGS="$ompi_check_package_mtl_mx_orig_CPPFLAGS" ++ mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS" ++ mtl_mx_LIBS="$ompi_check_package_mtl_mx_orig_LIBS" ++ ompi_check_mx_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_mtl_mx_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS" ++ LIBS="$ompi_check_package_mtl_mx_save_LIBS" ++ ++else ++ ompi_check_mx_happy="no" ++fi ++ ++ ++ CPPFLAGS="$CPPFLAGS $mtl_mx_CPPFLAGS" ++ LDFLAGS="$LDFLAGS $mtl_mx_LDFLAGS" ++ LIBS="$LIBS $mtl_mx_LIBS" ++ ++ # need at least version 1.0 ++ if test "ompi_check_mx_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for MX version 1.0 or later" >&5 ++echo $ECHO_N "checking for MX version 1.0 or later... $ECHO_C" >&6; } ++if test "${ompi_cv_mx_version_ok+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++ ++int ++main () ++{ ++ ++#if MX_API < 0x300 ++#error "Version less than 0x300" ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ompi_cv_mx_version_ok="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_mx_version_ok="no" ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_mx_version_ok" >&5 ++echo "${ECHO_T}$ompi_cv_mx_version_ok" >&6; } ++fi ++ ++ if test "$ompi_cv_mx_version_ok" = "no"; then ++ ompi_check_mx_happy="no" ++fi ++ ++ ++ if test "$ompi_check_mx_happy" = "yes"; then ++ ++for ac_header in mx_extensions.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++ ++for ac_func in mx_forget mx_register_unexp_handler ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ ++ { echo "$as_me:$LINENO: checking for mx_open_board" >&5 ++echo $ECHO_N "checking for mx_open_board... $ECHO_C" >&6; } ++if test "${ompi_cv_func_mx_open_board+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++ ++int ++main () ++{ ++ ++mx_open_board(0, NULL); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_mx_open_board="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_mx_open_board="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_mx_open_board" >&5 ++echo "${ECHO_T}$ompi_cv_func_mx_open_board" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for mx__get_mapper_state" >&5 ++echo $ECHO_N "checking for mx__get_mapper_state... $ECHO_C" >&6; } ++if test "${ompi_cv_func_mx__get_mapper_state+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++ ++int ++main () ++{ ++ ++mx__get_mapper_state(NULL, NULL); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_mx__get_mapper_state="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_mx__get_mapper_state="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_mx__get_mapper_state" >&5 ++echo "${ECHO_T}$ompi_cv_func_mx__get_mapper_state" >&6; } ++ ++ if test "$ompi_cv_func_mx_open_board" = "yes" -a "$ompi_cv_func_mx__get_mapper_state" = "yes"; then ++ mx_provide_mapper_state=1 ++ ++else ++ mx_provide_mapper_state=0 ++ ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MX_HAVE_MAPPER_STATE $mx_provide_mapper_state ++_ACEOF ++ ++ ++else ++ { echo "$as_me:$LINENO: WARNING: The MX support for Open MPI will be compiled without the ++MX extensions, which may result in lower performance. Please upgrade ++to at least MX 1.2.0 to enable the MX extensions." >&5 ++echo "$as_me: WARNING: The MX support for Open MPI will be compiled without the ++MX extensions, which may result in lower performance. Please upgrade ++to at least MX 1.2.0 to enable the MX extensions." >&2;} ++fi ++ ++done ++ ++fi ++ ++ ++ CPPFLAGS="$ompi_check_mx_mtl_mx_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_mx_mtl_mx_save_LDFLAGS" ++ LIBS="$ompi_check_mx_mtl_mx_save_LIBS" ++ ++ if test "$ompi_check_mx_happy" = "yes" -a "$enable_progress_threads" = "yes"; then ++ { echo "$as_me:$LINENO: WARNING: MX driver does not currently support progress threads. Disabling BTL." >&5 ++echo "$as_me: WARNING: MX driver does not currently support progress threads. Disabling BTL." >&2;} ++ ompi_check_mx_happy="no" ++fi ++ ++ ++ if test "$ompi_check_mx_happy" = "yes"; then ++ mtl_mx_happy="yes" ++else ++ if test ! -z "$with_mx" -a "$with_mx" != "no"; then ++ { { echo "$as_me:$LINENO: error: MX support requested but not found. Aborting" >&5 ++echo "$as_me: error: MX support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ mtl_mx_happy="no" ++fi ++ ++ ++ ++ if test "$mtl_mx_happy" = "yes"; then ++ mtl_mx_WRAPPER_EXTRA_LDFLAGS="$mtl_mx_LDFLAGS" ++ mtl_mx_WRAPPER_EXTRA_LIBS="$mtl_mx_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # substitute in the things needed to build mx ++ ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=mtl ++ component=mx ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_mtl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_mtl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component mtl:mx can compile" >&5 ++echo $ECHO_N "checking if MCA component mtl:mx can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_mtl" = "mx" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"mx\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_mtl" ; then ++ if test "$DIRECT_mtl" = "mx" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"mx\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components mx" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_mtl_mx_DSO=1 ++else ++ BUILD_mtl_mx_DSO=0 ++fi ++ ++ if test "$BUILD_mtl_mx_DSO" = "1"; then ++ OMPI_BUILD_mtl_mx_DSO_TRUE= ++ OMPI_BUILD_mtl_mx_DSO_FALSE='#' ++else ++ OMPI_BUILD_mtl_mx_DSO_TRUE='#' ++ OMPI_BUILD_mtl_mx_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component mtl:portals (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=mtl ++ component=portals ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_mtl" ; then ++ if test "$DIRECT_mtl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=mtl ++ component=portals ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_mtl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ # save compiler flags so that we don't alter them for later ++ # components. ++ check_portals_save_CPPFLAGS="$CPPFLAGS" ++ check_portals_save_LDFLAGS="$LDFLAGS" ++ check_portals_save_LIBS="$LIBS" ++ ++ check_portals_CPPFLAGS= ++ check_portals_LDFLAGS= ++ check_portals_LIBS= ++ ++ check_portals_configuration="none" ++ ompi_check_portals_happy="yes" ++ ++ # Get some configuration information ++ ++# Check whether --with-portals was given. ++if test "${with_portals+set}" = set; then ++ withval=$with_portals; ++fi ++ ++ ++# Check whether --with-portals-config was given. ++if test "${with_portals_config+set}" = set; then ++ withval=$with_portals_config; ++fi ++ ++ ++# Check whether --with-portals-libs was given. ++if test "${with_portals_libs+set}" = set; then ++ withval=$with_portals_libs; ++fi ++ ++ ++ { echo "$as_me:$LINENO: checking for Portals configuration" >&5 ++echo $ECHO_N "checking for Portals configuration... $ECHO_C" >&6; } ++ if test "$with_portals_config" = "" ; then ++ with_portals_config="utcp" ++ elif test "$with_portals_config" = "redstorm" ; then ++ with_portals_config="xt3" ++ elif test "$with_portals_config" = "cnl_modex" ; then ++ with_portals_config="xt3-modex" ++ fi ++ OMPI_PORTALS_UTCP=0 ++ OMPI_PORTALS_CRAYXT3=0 ++ OMPI_PORTALS_CRAYXT3_MODEX=0 ++ case "$with_portals_config" in ++ "utcp") ++ OMPI_PORTALS_UTCP=1 ++ OMPI_PORTALS_HAVE_EVENT_UNLINK=1 ++ check_portals_LIBS="-lp3utcp -lp3api -lp3lib -lp3rt -lp3utcp" ++ check_portals_header_prefix= ++ { echo "$as_me:$LINENO: result: utcp" >&5 ++echo "${ECHO_T}utcp" >&6; } ++ ;; ++ "xt3") ++ OMPI_PORTALS_CRAYXT3=1 ++ OMPI_PORTALS_HAVE_EVENT_UNLINK=0 ++ check_portals_LIBS= ++ check_portals_header_prefix="portals/" ++ { echo "$as_me:$LINENO: result: Cray XT3" >&5 ++echo "${ECHO_T}Cray XT3" >&6; } ++ ;; ++ "xt3-modex") ++ OMPI_PORTALS_CRAYXT3_MODEX=1 ++ OMPI_PORTALS_HAVE_EVENT_UNLINK=0 ++ check_portals_LIBS= ++ check_portals_header_prefix="portals/" ++ { echo "$as_me:$LINENO: result: Cray XT3 - Modex" >&5 ++echo "${ECHO_T}Cray XT3 - Modex" >&6; } ++ ;; ++ *) ++ # ok to call ERROR here - the user specified something invalid. ++ # that should be brought to his attention ++ { { echo "$as_me:$LINENO: error: unknown Portals configuration. Can not continue" >&5 ++echo "$as_me: error: unknown Portals configuration. Can not continue" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PORTALS_HAVE_EVENT_UNLINK $OMPI_PORTALS_HAVE_EVENT_UNLINK ++_ACEOF ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PORTALS_UTCP $OMPI_PORTALS_UTCP ++_ACEOF ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PORTALS_CRAYXT3 $OMPI_PORTALS_CRAYXT3 ++_ACEOF ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PORTALS_CRAYXT3_MODEX $OMPI_PORTALS_CRAYXT3_MODEX ++_ACEOF ++ ++ ++ # Add correct -I and -L flags ++ if test -n "$with_portals"; then ++ if test -d "$with_portals/include"; then ++ check_portals_CPPFLAGS="-I$with_portals/include" ++ CPPFLAGS="$CPPFLAGS $check_portals_CPPFLAGS" ++fi ++ ++ if test -d "$with_portals/lib"; then ++ check_portals_LDFLAGS="-L$with_portals/lib" ++ LDFLAGS="$LDFLAGS $check_portals_LDFLAGS" ++fi ++ ++fi ++ ++ ++ # Try to find all the portals libraries (this is not fun!) ++ if test -n "$with_portals_libs" ; then ++ check_portals_LIBS="" ++ for lib in $with_portals_libs ; do ++ check_portals_LIBS="$check_portals_LIBS -l$lib" ++ done ++ fi ++ ++ # check for portals ++ LIBS="$LIBS $check_portals_LIBS" ++ ++for ac_header in ${check_portals_header_prefix}portals3.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ { echo "$as_me:$LINENO: checking if possible to link Portals application" >&5 ++echo $ECHO_N "checking if possible to link Portals application... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include <${check_portals_header_prefix}portals3.h> ++int ++main () ++{ ++int i; PtlInit(&i); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ompi_check_portals_happy="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ompi_check_portals_happy="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++else ++ ompi_check_portals_happy="no" ++fi ++ ++done ++ ++ ++ # Deal with static-only Portals UTCP libs. See note in ++ # ompi/mca/common/portals/configure.m4. Then possibly cry. ++ if test "$with_portals_config" = "utcp" ; then ++ if test "mtl_portals" != "common_portals" ; then ++ check_portals_LIBS= ++ fi ++ fi ++ ++ # reset the flags for the next test ++ CPPFLAGS="$check_portals_save_CPPFLAGS" ++ LDFLAGS="$check_portals_save_LDFLAGS" ++ LIBS="$check_portals_save_LIBS" ++ ++ mtl_portals_CPPFLAGS="$check_portals_CPPFLAGS" ++ mtl_portals_LDFLAGS="$check_portals_LDFLAGS" ++ mtl_portals_LIBS="$check_portals_LIBS" ++ ++ if test "$ompi_check_portals_happy" = "yes"; then ++ mtl_portals_happy="yes" ++else ++ if test ! -z "$with_portals" -a "$with_portals" != "no"; then ++ { { echo "$as_me:$LINENO: error: Portals support requested but not found. Aborting" >&5 ++echo "$as_me: error: Portals support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ mtl_portals_happy="no" ++fi ++ ++ ++ ++ if test "$mtl_portals_happy" = "yes"; then ++ mtl_portals_WRAPPER_EXTRA_LDFLAGS="$mtl_portals_LDFLAGS" ++ mtl_portals_WRAPPER_EXTRA_LIBS="$mtl_portals_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # substitute in the things needed to build portals ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=mtl ++ component=portals ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_mtl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_mtl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component mtl:portals can compile" >&5 ++echo $ECHO_N "checking if MCA component mtl:portals can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_mtl" = "portals" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"portals\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_mtl" ; then ++ if test "$DIRECT_mtl" = "portals" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"portals\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components portals" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_mtl_portals_DSO=1 ++else ++ BUILD_mtl_portals_DSO=0 ++fi ++ ++ if test "$BUILD_mtl_portals_DSO" = "1"; then ++ OMPI_BUILD_mtl_portals_DSO_TRUE= ++ OMPI_BUILD_mtl_portals_DSO_FALSE='#' ++else ++ OMPI_BUILD_mtl_portals_DSO_TRUE='#' ++ OMPI_BUILD_mtl_portals_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component mtl:psm (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=mtl ++ component=psm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_mtl" ; then ++ if test "$DIRECT_mtl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=mtl ++ component=psm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_mtl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-psm was given. ++if test "${with_psm+set}" = set; then ++ withval=$with_psm; ++fi ++ ++ ++# Check whether --with-psm-libdir was given. ++if test "${with_psm_libdir+set}" = set; then ++ withval=$with_psm_libdir; ++fi ++ ++ ++ ompi_check_psm_mtl_psm_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_psm_mtl_psm_save_LDFLAGS="$LDFLAGS" ++ ompi_check_psm_mtl_psm_save_LIBS="$LIBS" ++ ++ if test "$with_psm" != "no"; then ++ if test ! -z "$with_psm" -a "$with_psm" != "yes"; then ++ ompi_check_psm_dir="$with_psm" ++fi ++ ++ if test ! -z "$with_psm_libdir" -a "$with_psm_libdir" != "yes"; then ++ ompi_check_psm_libdir="$with_psm_libdir" ++fi ++ ++ ++ ++ ompi_check_package_mtl_psm_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_mtl_psm_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_mtl_psm_save_LIBS="$LIBS" ++ ++ ompi_check_package_mtl_psm_orig_CPPFLAGS="$mtl_psm_CPPFLAGS" ++ ompi_check_package_mtl_psm_orig_LDFLAGS="$mtl_psm_LDFLAGS" ++ ompi_check_package_mtl_psm_orig_LIBS="$mtl_psm_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_psm_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_psm_dir" = "/usr" -o "$ompi_check_psm_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_psm_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for psm.h" >&5 ++echo $ECHO_N "checking for psm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_psm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_psm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_psm_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking psm.h usability" >&5 ++echo $ECHO_N "checking psm.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking psm.h presence" >&5 ++echo $ECHO_N "checking psm.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: psm.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: psm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: psm.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: psm.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: psm.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: psm.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: psm.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: psm.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: psm.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: psm.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: psm.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: psm.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: psm.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: psm.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: psm.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: psm.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for psm.h" >&5 ++echo $ECHO_N "checking for psm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_psm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_psm_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_psm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_psm_h" >&6; } ++ ++fi ++if test $ac_cv_header_psm_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_psm_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_psm_dir" != ""; then ++ mtl_psm_CPPFLAGS="$mtl_psm_CPPFLAGS -I$ompi_check_psm_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_psm_dir/include" ++fi ++ ++ if test "${ac_cv_header_psm_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for psm.h" >&5 ++echo $ECHO_N "checking for psm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_psm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_psm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_psm_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking psm.h usability" >&5 ++echo $ECHO_N "checking psm.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking psm.h presence" >&5 ++echo $ECHO_N "checking psm.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: psm.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: psm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: psm.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: psm.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: psm.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: psm.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: psm.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: psm.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: psm.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: psm.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: psm.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: psm.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: psm.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: psm.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: psm.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: psm.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for psm.h" >&5 ++echo $ECHO_N "checking for psm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_psm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_psm_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_psm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_psm_h" >&6; } ++ ++fi ++if test $ac_cv_header_psm_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_psm_infinipath_psm_finalize ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_psm_libdir" != ""; then ++ # libdir was specified - search only there ++ mtl_psm_LDFLAGS="$mtl_psm_LDFLAGS -L$ompi_check_psm_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_psm_libdir" ++ { echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5 ++echo $ECHO_N "checking for psm_finalize in -lpsm_infinipath... $ECHO_C" >&6; } ++if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpsm_infinipath $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char psm_finalize (); ++int ++main () ++{ ++return psm_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_psm_infinipath_psm_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_psm_infinipath_psm_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_psm_infinipath_psm_finalize" >&6; } ++if test $ac_cv_lib_psm_infinipath_psm_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS" ++ mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS" ++ unset ac_cv_lib_psm_infinipath_psm_finalize ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_psm_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5 ++echo $ECHO_N "checking for psm_finalize in -lpsm_infinipath... $ECHO_C" >&6; } ++if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpsm_infinipath $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char psm_finalize (); ++int ++main () ++{ ++return psm_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_psm_infinipath_psm_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_psm_infinipath_psm_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_psm_infinipath_psm_finalize" >&6; } ++if test $ac_cv_lib_psm_infinipath_psm_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS" ++ mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS" ++ unset ac_cv_lib_psm_infinipath_psm_finalize ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ mtl_psm_LDFLAGS="$mtl_psm_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5 ++echo $ECHO_N "checking for psm_finalize in -lpsm_infinipath... $ECHO_C" >&6; } ++if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpsm_infinipath $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char psm_finalize (); ++int ++main () ++{ ++return psm_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_psm_infinipath_psm_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_psm_infinipath_psm_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_psm_infinipath_psm_finalize" >&6; } ++if test $ac_cv_lib_psm_infinipath_psm_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS" ++ mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS" ++ unset ac_cv_lib_psm_infinipath_psm_finalize ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ mtl_psm_LDFLAGS="$mtl_psm_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5 ++echo $ECHO_N "checking for psm_finalize in -lpsm_infinipath... $ECHO_C" >&6; } ++if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpsm_infinipath $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char psm_finalize (); ++int ++main () ++{ ++return psm_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_psm_infinipath_psm_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_psm_infinipath_psm_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_psm_infinipath_psm_finalize" >&6; } ++if test $ac_cv_lib_psm_infinipath_psm_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS" ++ mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS" ++ unset ac_cv_lib_psm_infinipath_psm_finalize ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ mtl_psm_LIBS="-lpsm_infinipath " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_psm_infinipath_psm_finalize ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_psm_libdir" != ""; then ++ # libdir was specified - search only there ++ mtl_psm_LDFLAGS="$mtl_psm_LDFLAGS -L$ompi_check_psm_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_psm_libdir" ++ { echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5 ++echo $ECHO_N "checking for psm_finalize in -lpsm_infinipath... $ECHO_C" >&6; } ++if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpsm_infinipath $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char psm_finalize (); ++int ++main () ++{ ++return psm_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_psm_infinipath_psm_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_psm_infinipath_psm_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_psm_infinipath_psm_finalize" >&6; } ++if test $ac_cv_lib_psm_infinipath_psm_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS" ++ mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS" ++ unset ac_cv_lib_psm_infinipath_psm_finalize ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_psm_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5 ++echo $ECHO_N "checking for psm_finalize in -lpsm_infinipath... $ECHO_C" >&6; } ++if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpsm_infinipath $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char psm_finalize (); ++int ++main () ++{ ++return psm_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_psm_infinipath_psm_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_psm_infinipath_psm_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_psm_infinipath_psm_finalize" >&6; } ++if test $ac_cv_lib_psm_infinipath_psm_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS" ++ mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS" ++ unset ac_cv_lib_psm_infinipath_psm_finalize ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ mtl_psm_LDFLAGS="$mtl_psm_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5 ++echo $ECHO_N "checking for psm_finalize in -lpsm_infinipath... $ECHO_C" >&6; } ++if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpsm_infinipath $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char psm_finalize (); ++int ++main () ++{ ++return psm_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_psm_infinipath_psm_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_psm_infinipath_psm_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_psm_infinipath_psm_finalize" >&6; } ++if test $ac_cv_lib_psm_infinipath_psm_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS" ++ mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS" ++ unset ac_cv_lib_psm_infinipath_psm_finalize ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ mtl_psm_LDFLAGS="$mtl_psm_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5 ++echo $ECHO_N "checking for psm_finalize in -lpsm_infinipath... $ECHO_C" >&6; } ++if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpsm_infinipath $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char psm_finalize (); ++int ++main () ++{ ++return psm_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_psm_infinipath_psm_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_psm_infinipath_psm_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_psm_infinipath_psm_finalize" >&6; } ++if test $ac_cv_lib_psm_infinipath_psm_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS" ++ mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS" ++ unset ac_cv_lib_psm_infinipath_psm_finalize ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ mtl_psm_LIBS="-lpsm_infinipath " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ ompi_check_psm_happy="yes" ++else ++ mtl_psm_CPPFLAGS="$ompi_check_package_mtl_psm_orig_CPPFLAGS" ++ mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS" ++ mtl_psm_LIBS="$ompi_check_package_mtl_psm_orig_LIBS" ++ ompi_check_psm_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_mtl_psm_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS" ++ LIBS="$ompi_check_package_mtl_psm_save_LIBS" ++ ++else ++ ompi_check_psm_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_psm_mtl_psm_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_psm_mtl_psm_save_LDFLAGS" ++ LIBS="$ompi_check_psm_mtl_psm_save_LIBS" ++ ++ if test "$ompi_check_psm_happy" = "yes" -a "$enable_progress_threads" = "yes"; then ++ { echo "$as_me:$LINENO: WARNING: PSM driver does not currently support progress threads. Disabling BTL." >&5 ++echo "$as_me: WARNING: PSM driver does not currently support progress threads. Disabling BTL." >&2;} ++ ompi_check_psm_happy="no" ++fi ++ ++ ++ if test "$ompi_check_psm_happy" = "yes"; then ++ mtl_psm_happy="yes" ++else ++ if test ! -z "$with_psm" -a "$with_psm" != "no"; then ++ { { echo "$as_me:$LINENO: error: PSM support requested but not found. Aborting" >&5 ++echo "$as_me: error: PSM support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ mtl_psm_happy="no" ++fi ++ ++ ++ ++ if test "$mtl_psm_happy" = "yes"; then ++ mtl_psm_WRAPPER_EXTRA_LDFLAGS="$mtl_psm_LDFLAGS" ++ mtl_psm_WRAPPER_EXTRA_LIBS="$mtl_psm_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # substitute in the things needed to build psm ++ ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=mtl ++ component=psm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_mtl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_mtl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component mtl:psm can compile" >&5 ++echo $ECHO_N "checking if MCA component mtl:psm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_mtl" = "psm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"psm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"psm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_mtl" ; then ++ if test "$DIRECT_mtl" = "psm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"psm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"psm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components psm" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_mtl_psm_DSO=1 ++else ++ BUILD_mtl_psm_DSO=0 ++fi ++ ++ if test "$BUILD_mtl_psm_DSO" = "1"; then ++ OMPI_BUILD_mtl_psm_DSO_TRUE= ++ OMPI_BUILD_mtl_psm_DSO_FALSE='#' ++else ++ OMPI_BUILD_mtl_psm_DSO_TRUE='#' ++ OMPI_BUILD_mtl_psm_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/mtl/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component mtl:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=mtl ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_mtl" ; then ++ if test "$DIRECT_mtl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=mtl ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_mtl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/mtl/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/mtl/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=mtl ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_mtl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_mtl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component mtl:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component mtl:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_mtl" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_mtl" ; then ++ if test "$DIRECT_mtl" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_mtl_ALL_COMPONENTS="$all_components" ++ MCA_mtl_STATIC_COMPONENTS="$static_components" ++ MCA_mtl_DSO_COMPONENTS="$dso_components" ++ MCA_mtl_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_mtl_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_mtl_ALL_SUBDIRS="$MCA_mtl_ALL_SUBDIRS mca/mtl/$item" ++ done ++ ++ ++ ++ MCA_mtl_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_mtl_STATIC_SUBDIRS="$MCA_mtl_STATIC_SUBDIRS mca/mtl/$item" ++ done ++ ++ ++ ++ MCA_mtl_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_mtl_DSO_SUBDIRS="$MCA_mtl_DSO_SUBDIRS mca/mtl/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "mtl" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "osc" = "common" ; then ++ MCA_ompi_FRAMEWORKS="osc $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/osc $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_osc_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_osc_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_osc_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS osc" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/osc" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_osc_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_osc_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_osc_STATIC_SUBDIRS)" ++ fi ++ if test "osc" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/osc/libmca_osc.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_osc_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework osc" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "osc" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/osc/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework osc" >&5 ++echo $ECHO_N "checking for no configure components in framework osc... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: pt2pt, rdma" >&5 ++echo "${ECHO_T}pt2pt, rdma" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework osc" >&5 ++echo $ECHO_N "checking for m4 configure components in framework osc... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component osc:pt2pt (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=osc ++ component=pt2pt ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_osc" ; then ++ if test "$DIRECT_osc" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=osc ++ component=pt2pt ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_osc" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=osc ++ component=pt2pt ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_osc" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_osc" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component osc:pt2pt can compile" >&5 ++echo $ECHO_N "checking if MCA component osc:pt2pt can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_osc" = "pt2pt" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"pt2pt\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"pt2pt\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_osc" ; then ++ if test "$DIRECT_osc" = "pt2pt" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"pt2pt\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"pt2pt\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components pt2pt" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_osc_pt2pt_DSO=1 ++ else ++ BUILD_osc_pt2pt_DSO=0 ++ fi ++ if test "$BUILD_osc_pt2pt_DSO" = "1"; then ++ OMPI_BUILD_osc_pt2pt_DSO_TRUE= ++ OMPI_BUILD_osc_pt2pt_DSO_FALSE='#' ++else ++ OMPI_BUILD_osc_pt2pt_DSO_TRUE='#' ++ OMPI_BUILD_osc_pt2pt_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component osc:rdma (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=osc ++ component=rdma ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_osc" ; then ++ if test "$DIRECT_osc" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=osc ++ component=rdma ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_osc" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=osc ++ component=rdma ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_osc" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_osc" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component osc:rdma can compile" >&5 ++echo $ECHO_N "checking if MCA component osc:rdma can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_osc" = "rdma" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"rdma\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"rdma\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_osc" ; then ++ if test "$DIRECT_osc" = "rdma" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"rdma\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"rdma\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components rdma" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_osc_rdma_DSO=1 ++ else ++ BUILD_osc_rdma_DSO=0 ++ fi ++ if test "$BUILD_osc_rdma_DSO" = "1"; then ++ OMPI_BUILD_osc_rdma_DSO_TRUE= ++ OMPI_BUILD_osc_rdma_DSO_FALSE='#' ++else ++ OMPI_BUILD_osc_rdma_DSO_TRUE='#' ++ OMPI_BUILD_osc_rdma_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/osc/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component osc:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=osc ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_osc" ; then ++ if test "$DIRECT_osc" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=osc ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_osc" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/osc/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/osc/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=osc ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_osc" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_osc" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component osc:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component osc:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_osc" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_osc" ; then ++ if test "$DIRECT_osc" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_osc_ALL_COMPONENTS="$all_components" ++ MCA_osc_STATIC_COMPONENTS="$static_components" ++ MCA_osc_DSO_COMPONENTS="$dso_components" ++ MCA_osc_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_osc_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_osc_ALL_SUBDIRS="$MCA_osc_ALL_SUBDIRS mca/osc/$item" ++ done ++ ++ ++ ++ MCA_osc_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_osc_STATIC_SUBDIRS="$MCA_osc_STATIC_SUBDIRS mca/osc/$item" ++ done ++ ++ ++ ++ MCA_osc_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_osc_DSO_SUBDIRS="$MCA_osc_DSO_SUBDIRS mca/osc/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "osc" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "pml" = "common" ; then ++ MCA_ompi_FRAMEWORKS="pml $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/pml $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_pml_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_pml_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_pml_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS pml" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/pml" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pml_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pml_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pml_STATIC_SUBDIRS)" ++ fi ++ if test "pml" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/pml/libmca_pml.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_pml_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework pml" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "pml" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/pml/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework pml" >&5 ++echo $ECHO_N "checking for no configure components in framework pml... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: cm, ob1" >&5 ++echo "${ECHO_T}cm, ob1" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework pml" >&5 ++echo $ECHO_N "checking for m4 configure components in framework pml... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: crcpw, v" >&5 ++echo "${ECHO_T}crcpw, v" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component pml:cm (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=pml ++ component=cm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_pml" ; then ++ if test "$DIRECT_pml" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=pml ++ component=cm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_pml" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=pml ++ component=cm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_pml" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_pml" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component pml:cm can compile" >&5 ++echo $ECHO_N "checking if MCA component pml:cm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_pml" = "cm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"cm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"cm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_pml" ; then ++ if test "$DIRECT_pml" = "cm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"cm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"cm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components cm" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_pml_cm_DSO=1 ++ else ++ BUILD_pml_cm_DSO=0 ++ fi ++ if test "$BUILD_pml_cm_DSO" = "1"; then ++ OMPI_BUILD_pml_cm_DSO_TRUE= ++ OMPI_BUILD_pml_cm_DSO_FALSE='#' ++else ++ OMPI_BUILD_pml_cm_DSO_TRUE='#' ++ OMPI_BUILD_pml_cm_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component pml:ob1 (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=pml ++ component=ob1 ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_pml" ; then ++ if test "$DIRECT_pml" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=pml ++ component=ob1 ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_pml" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=pml ++ component=ob1 ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_pml" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_pml" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component pml:ob1 can compile" >&5 ++echo $ECHO_N "checking if MCA component pml:ob1 can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_pml" = "ob1" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"ob1\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"ob1\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_pml" ; then ++ if test "$DIRECT_pml" = "ob1" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"ob1\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"ob1\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components ob1" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_pml_ob1_DSO=1 ++ else ++ BUILD_pml_ob1_DSO=0 ++ fi ++ if test "$BUILD_pml_ob1_DSO" = "1"; then ++ OMPI_BUILD_pml_ob1_DSO_TRUE= ++ OMPI_BUILD_pml_ob1_DSO_FALSE='#' ++else ++ OMPI_BUILD_pml_ob1_DSO_TRUE='#' ++ OMPI_BUILD_pml_ob1_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component pml:crcpw (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=pml ++ component=crcpw ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_pml" ; then ++ if test "$DIRECT_pml" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=pml ++ component=crcpw ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_pml" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ # If we don't want FT, don't compile this component ++ if test "$ompi_want_ft" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=pml ++ component=crcpw ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_pml" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_pml" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component pml:crcpw can compile" >&5 ++echo $ECHO_N "checking if MCA component pml:crcpw can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_pml" = "crcpw" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"crcpw\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"crcpw\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_pml" ; then ++ if test "$DIRECT_pml" = "crcpw" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"crcpw\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"crcpw\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components crcpw" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_pml_crcpw_DSO=1 ++else ++ BUILD_pml_crcpw_DSO=0 ++fi ++ ++ if test "$BUILD_pml_crcpw_DSO" = "1"; then ++ OMPI_BUILD_pml_crcpw_DSO_TRUE= ++ OMPI_BUILD_pml_crcpw_DSO_FALSE='#' ++else ++ OMPI_BUILD_pml_crcpw_DSO_TRUE='#' ++ OMPI_BUILD_pml_crcpw_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component pml:v (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=pml ++ component=v ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_pml" ; then ++ if test "$DIRECT_pml" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=pml ++ component=v ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_pml" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ # This unmatched fi allows for recursing in the vprotocols, even if ++ # pml v is disabled by configure ++ eval ++ fi ++ ++ # We are going to make recursive call in shell, nothing is impossible ++ # Still, we need to be extra careful ++ ( ++ vprotocol_parent_component=$component ++ # Move the root of our project to the current component ++ srcdir=`cd $srcdir && pwd`/$project/mca/$framework ++ cd "$project/mca/$framework" ++ ++ ++ ompi_show_subsubtitle "Configuring MCA framework vprotocol" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "vprotocol" = "common" ; then ++ outdir=$vprotocol_parent_component/mca/common ++ else ++ outdir=$vprotocol_parent_component/mca/vprotocol/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework vprotocol" >&5 ++echo $ECHO_N "checking for no configure components in framework vprotocol... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: pessimist" >&5 ++echo "${ECHO_T}pessimist" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework vprotocol" >&5 ++echo $ECHO_N "checking for m4 configure components in framework vprotocol... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component vprotocol:pessimist (no configuration)" ++ ++ ++ ++ ++ project=$vprotocol_parent_component ++ framework=vprotocol ++ component=pessimist ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_vprotocol" ; then ++ if test "$DIRECT_vprotocol" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$should_build ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=$vprotocol_parent_component ++ framework=vprotocol ++ component=pessimist ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_vprotocol" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=$vprotocol_parent_component ++ framework=vprotocol ++ component=pessimist ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ $vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS="$$vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ $vprotocol_parent_component_WRAPPER_EXTRA_LIBS="$$vprotocol_parent_component_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_vprotocol" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_vprotocol" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ $vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS="$$vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ $vprotocol_parent_component_WRAPPER_EXTRA_LIBS="$$vprotocol_parent_component_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component vprotocol:pessimist can compile" >&5 ++echo $ECHO_N "checking if MCA component vprotocol:pessimist can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_vprotocol" = "pessimist" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"pessimist\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"pessimist\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_vprotocol" ; then ++ if test "$DIRECT_vprotocol" = "pessimist" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"pessimist\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"pessimist\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components pessimist" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_vprotocol_pessimist_DSO=1 ++ else ++ BUILD_vprotocol_pessimist_DSO=0 ++ fi ++ if test "$BUILD_vprotocol_pessimist_DSO" = "1"; then ++ OMPI_BUILD_vprotocol_pessimist_DSO_TRUE= ++ OMPI_BUILD_vprotocol_pessimist_DSO_FALSE='#' ++else ++ OMPI_BUILD_vprotocol_pessimist_DSO_TRUE='#' ++ OMPI_BUILD_vprotocol_pessimist_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=$should_build ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "$should_build" != "0"; then ++ ++ for component_path in $srcdir/$vprotocol_parent_component/mca/vprotocol/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component vprotocol:$component (need to configure)" ++ ++ ++ ++ ++ project=$vprotocol_parent_component ++ framework=vprotocol ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_vprotocol" ; then ++ if test "$DIRECT_vprotocol" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=$vprotocol_parent_component ++ framework=vprotocol ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_vprotocol" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# $vprotocol_parent_component/mca/vprotocol/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="$vprotocol_parent_component/mca/vprotocol/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=$vprotocol_parent_component ++ framework=vprotocol ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ $vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS="$$vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ $vprotocol_parent_component_WRAPPER_EXTRA_LIBS="$$vprotocol_parent_component_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_vprotocol" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_vprotocol" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ $vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS="$$vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ $vprotocol_parent_component_WRAPPER_EXTRA_LIBS="$$vprotocol_parent_component_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component vprotocol:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component vprotocol:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_vprotocol" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_vprotocol" ; then ++ if test "$DIRECT_vprotocol" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_vprotocol_ALL_COMPONENTS="$all_components" ++ MCA_vprotocol_STATIC_COMPONENTS="$static_components" ++ MCA_vprotocol_DSO_COMPONENTS="$dso_components" ++ MCA_vprotocol_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_vprotocol_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_vprotocol_ALL_SUBDIRS="$MCA_vprotocol_ALL_SUBDIRS mca/vprotocol/$item" ++ done ++ ++ ++ ++ MCA_vprotocol_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_vprotocol_STATIC_SUBDIRS="$MCA_vprotocol_STATIC_SUBDIRS mca/vprotocol/$item" ++ done ++ ++ ++ ++ MCA_vprotocol_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_vprotocol_DSO_SUBDIRS="$MCA_vprotocol_DSO_SUBDIRS mca/vprotocol/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "vprotocol" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++ ++ ++ # Save results ++ cat >$vprotocol_parent_component/mca_vprotocol_config_output <> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_pml" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_pml" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component pml:v can compile" >&5 ++echo $ECHO_N "checking if MCA component pml:v can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_pml" = "v" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"v\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"v\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_pml" ; then ++ if test "$DIRECT_pml" = "v" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"v\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"v\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components v" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_pml_v_DSO=1 ++else ++ BUILD_pml_v_DSO=0 ++fi ++ ++ if test "$BUILD_pml_v_DSO" = "1"; then ++ OMPI_BUILD_pml_v_DSO_TRUE= ++ OMPI_BUILD_pml_v_DSO_FALSE='#' ++else ++ OMPI_BUILD_pml_v_DSO_TRUE='#' ++ OMPI_BUILD_pml_v_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/pml/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component pml:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=pml ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_pml" ; then ++ if test "$DIRECT_pml" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=pml ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_pml" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/pml/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/pml/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=pml ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_pml" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_pml" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component pml:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component pml:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_pml" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_pml" ; then ++ if test "$DIRECT_pml" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_pml_ALL_COMPONENTS="$all_components" ++ MCA_pml_STATIC_COMPONENTS="$static_components" ++ MCA_pml_DSO_COMPONENTS="$dso_components" ++ MCA_pml_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_pml_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_pml_ALL_SUBDIRS="$MCA_pml_ALL_SUBDIRS mca/pml/$item" ++ done ++ ++ ++ ++ MCA_pml_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_pml_STATIC_SUBDIRS="$MCA_pml_STATIC_SUBDIRS mca/pml/$item" ++ done ++ ++ ++ ++ MCA_pml_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_pml_DSO_SUBDIRS="$MCA_pml_DSO_SUBDIRS mca/pml/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "pml" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "pubsub" = "common" ; then ++ MCA_ompi_FRAMEWORKS="pubsub $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/pubsub $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_pubsub_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_pubsub_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_pubsub_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS pubsub" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/pubsub" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pubsub_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pubsub_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pubsub_STATIC_SUBDIRS)" ++ fi ++ if test "pubsub" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/pubsub/libmca_pubsub.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_pubsub_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework pubsub" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "pubsub" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/pubsub/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework pubsub" >&5 ++echo $ECHO_N "checking for no configure components in framework pubsub... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: orte" >&5 ++echo "${ECHO_T}orte" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework pubsub" >&5 ++echo $ECHO_N "checking for m4 configure components in framework pubsub... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component pubsub:orte (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=pubsub ++ component=orte ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_pubsub" ; then ++ if test "$DIRECT_pubsub" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=pubsub ++ component=orte ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_pubsub" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=pubsub ++ component=orte ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_pubsub" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_pubsub" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component pubsub:orte can compile" >&5 ++echo $ECHO_N "checking if MCA component pubsub:orte can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_pubsub" = "orte" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"orte\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"orte\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_pubsub" ; then ++ if test "$DIRECT_pubsub" = "orte" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"orte\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"orte\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components orte" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_pubsub_orte_DSO=1 ++ else ++ BUILD_pubsub_orte_DSO=0 ++ fi ++ if test "$BUILD_pubsub_orte_DSO" = "1"; then ++ OMPI_BUILD_pubsub_orte_DSO_TRUE= ++ OMPI_BUILD_pubsub_orte_DSO_FALSE='#' ++else ++ OMPI_BUILD_pubsub_orte_DSO_TRUE='#' ++ OMPI_BUILD_pubsub_orte_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/pubsub/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component pubsub:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=pubsub ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_pubsub" ; then ++ if test "$DIRECT_pubsub" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=pubsub ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_pubsub" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/pubsub/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/pubsub/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=pubsub ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_pubsub" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_pubsub" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component pubsub:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component pubsub:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_pubsub" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_pubsub" ; then ++ if test "$DIRECT_pubsub" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_pubsub_ALL_COMPONENTS="$all_components" ++ MCA_pubsub_STATIC_COMPONENTS="$static_components" ++ MCA_pubsub_DSO_COMPONENTS="$dso_components" ++ MCA_pubsub_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_pubsub_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_pubsub_ALL_SUBDIRS="$MCA_pubsub_ALL_SUBDIRS mca/pubsub/$item" ++ done ++ ++ ++ ++ MCA_pubsub_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_pubsub_STATIC_SUBDIRS="$MCA_pubsub_STATIC_SUBDIRS mca/pubsub/$item" ++ done ++ ++ ++ ++ MCA_pubsub_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_pubsub_DSO_SUBDIRS="$MCA_pubsub_DSO_SUBDIRS mca/pubsub/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "pubsub" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "rcache" = "common" ; then ++ MCA_ompi_FRAMEWORKS="rcache $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/rcache $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_rcache_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_rcache_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_rcache_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS rcache" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/rcache" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_rcache_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_rcache_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_rcache_STATIC_SUBDIRS)" ++ fi ++ if test "rcache" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/rcache/libmca_rcache.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_rcache_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework rcache" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "rcache" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/rcache/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework rcache" >&5 ++echo $ECHO_N "checking for no configure components in framework rcache... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: vma" >&5 ++echo "${ECHO_T}vma" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework rcache" >&5 ++echo $ECHO_N "checking for m4 configure components in framework rcache... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component rcache:vma (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=rcache ++ component=vma ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_rcache" ; then ++ if test "$DIRECT_rcache" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=rcache ++ component=vma ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_rcache" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=rcache ++ component=vma ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_rcache" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_rcache" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component rcache:vma can compile" >&5 ++echo $ECHO_N "checking if MCA component rcache:vma can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_rcache" = "vma" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"vma\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"vma\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_rcache" ; then ++ if test "$DIRECT_rcache" = "vma" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"vma\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"vma\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components vma" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_rcache_vma_DSO=1 ++ else ++ BUILD_rcache_vma_DSO=0 ++ fi ++ if test "$BUILD_rcache_vma_DSO" = "1"; then ++ OMPI_BUILD_rcache_vma_DSO_TRUE= ++ OMPI_BUILD_rcache_vma_DSO_FALSE='#' ++else ++ OMPI_BUILD_rcache_vma_DSO_TRUE='#' ++ OMPI_BUILD_rcache_vma_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/rcache/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component rcache:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=rcache ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_rcache" ; then ++ if test "$DIRECT_rcache" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=rcache ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_rcache" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/rcache/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/rcache/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=rcache ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_rcache" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_rcache" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component rcache:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component rcache:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_rcache" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_rcache" ; then ++ if test "$DIRECT_rcache" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_rcache_ALL_COMPONENTS="$all_components" ++ MCA_rcache_STATIC_COMPONENTS="$static_components" ++ MCA_rcache_DSO_COMPONENTS="$dso_components" ++ MCA_rcache_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_rcache_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_rcache_ALL_SUBDIRS="$MCA_rcache_ALL_SUBDIRS mca/rcache/$item" ++ done ++ ++ ++ ++ MCA_rcache_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_rcache_STATIC_SUBDIRS="$MCA_rcache_STATIC_SUBDIRS mca/rcache/$item" ++ done ++ ++ ++ ++ MCA_rcache_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_rcache_DSO_SUBDIRS="$MCA_rcache_DSO_SUBDIRS mca/rcache/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "rcache" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "topo" = "common" ; then ++ MCA_ompi_FRAMEWORKS="topo $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/topo $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_topo_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_topo_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_topo_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS topo" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/topo" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_topo_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_topo_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_topo_STATIC_SUBDIRS)" ++ fi ++ if test "topo" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/topo/libmca_topo.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_topo_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework topo" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "topo" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/topo/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework topo" >&5 ++echo $ECHO_N "checking for no configure components in framework topo... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: unity" >&5 ++echo "${ECHO_T}unity" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework topo" >&5 ++echo $ECHO_N "checking for m4 configure components in framework topo... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component topo:unity (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=topo ++ component=unity ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_topo" ; then ++ if test "$DIRECT_topo" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=topo ++ component=unity ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_topo" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=topo ++ component=unity ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_topo" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_topo" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component topo:unity can compile" >&5 ++echo $ECHO_N "checking if MCA component topo:unity can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_topo" = "unity" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"unity\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"unity\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_topo" ; then ++ if test "$DIRECT_topo" = "unity" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"unity\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"unity\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components unity" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_topo_unity_DSO=1 ++ else ++ BUILD_topo_unity_DSO=0 ++ fi ++ if test "$BUILD_topo_unity_DSO" = "1"; then ++ OMPI_BUILD_topo_unity_DSO_TRUE= ++ OMPI_BUILD_topo_unity_DSO_FALSE='#' ++else ++ OMPI_BUILD_topo_unity_DSO_TRUE='#' ++ OMPI_BUILD_topo_unity_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/topo/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component topo:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=topo ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_topo" ; then ++ if test "$DIRECT_topo" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=topo ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_topo" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/topo/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/topo/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=topo ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_topo" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_topo" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component topo:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component topo:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_topo" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_topo" ; then ++ if test "$DIRECT_topo" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_topo_ALL_COMPONENTS="$all_components" ++ MCA_topo_STATIC_COMPONENTS="$static_components" ++ MCA_topo_DSO_COMPONENTS="$dso_components" ++ MCA_topo_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_topo_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_topo_ALL_SUBDIRS="$MCA_topo_ALL_SUBDIRS mca/topo/$item" ++ done ++ ++ ++ ++ MCA_topo_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_topo_STATIC_SUBDIRS="$MCA_topo_STATIC_SUBDIRS mca/topo/$item" ++ done ++ ++ ++ ++ MCA_topo_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_topo_DSO_SUBDIRS="$MCA_topo_DSO_SUBDIRS mca/topo/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "topo" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ # BWB - fix me... need to automate this somehow ++ ++ if test ! -z "$DIRECT_pml" ; then ++ MCA_pml_DIRECT_CALL_COMPONENT=$DIRECT_pml ++ MCA_pml_DIRECT_CALL=1 ++ else ++ MCA_pml_DIRECT_CALL_COMPONENT= ++ MCA_pml_DIRECT_CALL=0 ++ fi ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MCA_pml_DIRECT_CALL $MCA_pml_DIRECT_CALL ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MCA_pml_DIRECT_CALL_COMPONENT $MCA_pml_DIRECT_CALL_COMPONENT ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MCA_pml_DIRECT_CALL_HEADER "$MCA_pml_DIRECT_CALL_HEADER" ++_ACEOF ++ ++ ++ ++ if test ! -z "$DIRECT_mtl" ; then ++ MCA_mtl_DIRECT_CALL_COMPONENT=$DIRECT_mtl ++ MCA_mtl_DIRECT_CALL=1 ++ else ++ MCA_mtl_DIRECT_CALL_COMPONENT= ++ MCA_mtl_DIRECT_CALL=0 ++ fi ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MCA_mtl_DIRECT_CALL $MCA_mtl_DIRECT_CALL ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MCA_mtl_DIRECT_CALL_COMPONENT $MCA_mtl_DIRECT_CALL_COMPONENT ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MCA_mtl_DIRECT_CALL_HEADER "$MCA_mtl_DIRECT_CALL_HEADER" ++_ACEOF ++ ++ ++ ++ # make all the config output statements for the no configure ++ # components ++ ++ ++ac_config_files="$ac_config_files opal/mca/backtrace/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/backtrace/darwin/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/backtrace/execinfo/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/backtrace/none/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/backtrace/printstack/Makefile" ++ ++ac_config_files="$ac_config_files opal/mca/carto/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/carto/auto_detect/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/carto/file/Makefile" ++ ++ac_config_files="$ac_config_files opal/mca/crs/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/crs/blcr/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/crs/none/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/crs/self/Makefile" ++ ++ac_config_files="$ac_config_files opal/mca/installdirs/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/installdirs/config/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/installdirs/env/Makefile" ++ ++ac_config_files="$ac_config_files opal/mca/maffinity/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/maffinity/first_use/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/maffinity/libnuma/Makefile" ++ ++ac_config_files="$ac_config_files opal/mca/memchecker/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/memchecker/valgrind/Makefile" ++ ++ac_config_files="$ac_config_files opal/mca/memcpy/Makefile" ++ ++ac_config_files="$ac_config_files opal/mca/memory/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/memory/malloc_solaris/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/memory/mallopt/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/memory/ptmalloc2/Makefile" ++ ++ac_config_files="$ac_config_files opal/mca/paffinity/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/paffinity/darwin/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/paffinity/linux/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/paffinity/posix/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/paffinity/solaris/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/paffinity/windows/Makefile" ++ ++ac_config_files="$ac_config_files opal/mca/timer/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/timer/aix/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/timer/altix/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/timer/catamount/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/timer/darwin/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/timer/linux/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/timer/solaris/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/timer/windows/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/errmgr/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/errmgr/default/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/ess/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ess/alps/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ess/cnos/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ess/env/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ess/hnp/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ess/lsf/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ess/portals_utcp/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ess/singleton/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ess/slurm/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ess/tool/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/filem/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/filem/rsh/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/grpcomm/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/grpcomm/bad/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/grpcomm/basic/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/grpcomm/cnos/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/iof/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/iof/hnp/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/iof/orted/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/iof/tool/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/notifier/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/notifier/syslog/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/odls/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/odls/default/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/oob/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/oob/tcp/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/plm/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/plm/alps/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/plm/lsf/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/plm/rsh/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/plm/slurm/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/plm/tm/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/plm/xgrid/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/ras/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ras/alps/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ras/gridengine/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ras/loadleveler/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ras/lsf/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ras/slurm/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ras/tm/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/rmaps/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/rmaps/rank_file/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/rmaps/round_robin/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/rmaps/seq/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/rml/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/rml/ftrm/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/rml/oob/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/routed/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/routed/binomial/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/routed/direct/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/routed/linear/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/snapc/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/snapc/full/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/allocator/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/allocator/basic/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/allocator/bucket/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/bml/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/bml/r2/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/btl/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/btl/elan/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/btl/gm/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/btl/mx/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/btl/ofud/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/btl/openib/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/btl/portals/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/btl/self/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/btl/sm/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/btl/tcp/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/btl/udapl/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/coll/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/coll/basic/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/coll/hierarch/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/coll/inter/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/coll/self/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/coll/sm/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/coll/tuned/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/common/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/common/mx/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/common/portals/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/common/sm/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/crcp/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/crcp/bkmrk/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/dpm/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/dpm/orte/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/io/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/io/romio/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/mpool/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/mpool/fake/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/mpool/rdma/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/mpool/sm/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/mtl/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/mtl/mx/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/mtl/portals/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/mtl/psm/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/osc/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/osc/pt2pt/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/osc/rdma/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/pml/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/pml/cm/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/pml/crcpw/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/pml/ob1/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/pml/v/mca/vprotocol/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/pml/v/mca/vprotocol/pessimist/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/pml/v/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/pubsub/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/pubsub/orte/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/rcache/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/rcache/vma/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/topo/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/topo/unity/Makefile" ++ ++ ++ ++ ++ ++ ++# checkpoint results ++cat >confcache <<\_ACEOF ++# This file is a shell script that caches the results of configure ++# tests run on this system so they can be shared between configure ++# scripts and configure runs, see configure's option --config-cache. ++# It is not useful on other systems. If it contains results you don't ++# want to keep, you may remove or edit it. ++# ++# config.status only pays attention to the cache file if you give it ++# the --recheck option to rerun configure. ++# ++# `ac_cv_env_foo' variables (set or unset) will be overridden when ++# loading this file, other *unset* `ac_cv_foo' will be assigned the ++# following values. ++ ++_ACEOF ++ ++# The following way of writing the cache mishandles newlines in values, ++# but we know of no workaround that is simple, portable, and efficient. ++# So, we kill variables containing newlines. ++# Ultrix sh set writes to stderr and can't be redirected directly, ++# and sets the high bit in the cache file unless we assign to the vars. ++( ++ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do ++ eval ac_val=\$$ac_var ++ case $ac_val in #( ++ *${as_nl}*) ++ case $ac_var in #( ++ *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 ++echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; ++ esac ++ case $ac_var in #( ++ _ | IFS | as_nl) ;; #( ++ *) $as_unset $ac_var ;; ++ esac ;; ++ esac ++ done ++ ++ (set) 2>&1 | ++ case $as_nl`(ac_space=' '; set) 2>&1` in #( ++ *${as_nl}ac_space=\ *) ++ # `set' does not quote correctly, so add quotes (double-quote ++ # substitution turns \\\\ into \\, and sed turns \\ into \). ++ sed -n \ ++ "s/'/'\\\\''/g; ++ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ++ ;; #( ++ *) ++ # `set' quotes correctly as required by POSIX, so do not add quotes. ++ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ++ ;; ++ esac | ++ sort ++) | ++ sed ' ++ /^ac_cv_env_/b end ++ t clear ++ :clear ++ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ ++ t end ++ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ ++ :end' >>confcache ++if diff "$cache_file" confcache >/dev/null 2>&1; then :; else ++ if test -w "$cache_file"; then ++ test "x$cache_file" != "x/dev/null" && ++ { echo "$as_me:$LINENO: updating cache $cache_file" >&5 ++echo "$as_me: updating cache $cache_file" >&6;} ++ cat confcache >$cache_file ++ else ++ { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 ++echo "$as_me: not updating unwritable cache $cache_file" >&6;} ++ fi ++fi ++rm -f confcache ++ ++################################## ++# visibility ++################################## ++ ++# check the visbility stuff at the end to avoid problem with ++# the previous tests that are not necessarily prepeare for ++# the visibility feature. ++ompi_show_title "Symbol Visibility Feature" ++ ++ ++ ++ ++ # Check if the compiler has support for visibility, like some versions of gcc, icc. ++ # Check whether --enable-visibility was given. ++if test "${enable_visibility+set}" = set; then ++ enableval=$enable_visibility; ++fi ++ ++ if test "$enable_visibility" = "no"; then ++ { echo "$as_me:$LINENO: checking enable symbol visibility" >&5 ++echo $ECHO_N "checking enable symbol visibility... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ have_visibility=0 ++ else ++ CFLAGS_orig="$CFLAGS" ++ CFLAGS="$CFLAGS_orig -fvisibility=hidden" ++ add= ++ { echo "$as_me:$LINENO: checking if $CC supports -fvisibility" >&5 ++echo $ECHO_N "checking if $CC supports -fvisibility... $ECHO_C" >&6; } ++if test "${ompi_cv_cc_fvisibility+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ #include ++ __attribute__((visibility("default"))) int foo; ++ void bar(void) { fprintf(stderr, "bar\n"); }; ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ if test -s conftest.err ; then ++ $GREP -iq "visibility" conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv_cc_fvisibility="no" ++ else ++ ompi_cv_cc_fvisibility="yes" ++ fi ++ else ++ ompi_cv_cc_fvisibility="yes" ++ fi ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cc_fvisibility="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cc_fvisibility" >&5 ++echo "${ECHO_T}$ompi_cv_cc_fvisibility" >&6; } ++ ++ if test "$ompi_cv_cc_fvisibility" = "yes" ; then ++ add=" -fvisibility=hidden" ++ have_visibility=1 ++ { echo "$as_me:$LINENO: checking enable symbol visibility" >&5 ++echo $ECHO_N "checking enable symbol visibility... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ { echo "$as_me:$LINENO: WARNING: $add has been added to CFLAGS" >&5 ++echo "$as_me: WARNING: $add has been added to CFLAGS" >&2;} ++ elif test "$enable_visibility" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Symbol visibility support requested but compiler does not seem to support it. Aborting" >&5 ++echo "$as_me: error: Symbol visibility support requested but compiler does not seem to support it. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: checking enable symbol visibility" >&5 ++echo $ECHO_N "checking enable symbol visibility... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ have_visibility=0 ++ fi ++ CFLAGS="$CFLAGS_orig$add" ++ unset add ++ fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_C_HAVE_VISIBILITY $have_visibility ++_ACEOF ++ ++ ++ ++ ++################################## ++# Contributed software ++################################## ++ ++ompi_show_title "Contributed software setup" ++ ++ ++ ++ ++ # Option to not build some of the contributed software packages ++ # Check whether --enable-contrib-no-build was given. ++if test "${enable_contrib_no_build+set}" = set; then ++ enableval=$enable_contrib_no_build; ++fi ++ ++ ++ # Parse the list to see what we should not build ++ ompi_show_subtitle "Configuring contributed software packages" ++ { echo "$as_me:$LINENO: checking which contributed software packages should be disabled" >&5 ++echo $ECHO_N "checking which contributed software packages should be disabled... $ECHO_C" >&6; } ++ if test "$enable_contrib_no_build" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ { { echo "$as_me:$LINENO: error: *** The enable-contrib-no-build flag requires an explicit list ++*** of packages to not build. For example, --enable-contrib-no-build=vt" >&5 ++echo "$as_me: error: *** The enable-contrib-no-build flag requires an explicit list ++*** of packages to not build. For example, --enable-contrib-no-build=vt" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ ifs_save="$IFS" ++ IFS="${IFS}$PATH_SEPARATOR," ++ msg= ++ for item in $enable_contrib_no_build; do ++ str="`echo DISABLE_contrib_${item}=1 | sed s/-/_/g`" ++ eval $str ++ msg="$item $msg" ++ done ++ IFS="$ifs_save" ++ fi ++ { echo "$as_me:$LINENO: result: $msg" >&5 ++echo "${ECHO_T}$msg" >&6; } ++ unset msg ++ ++ # List of contrib subdirs to traverse into ++ OMPI_CONTRIB_SUBDIRS= ++ OMPI_CONTRIB_DIST_SUBDIRS= ++ ++ # Cycle through each of the hard-coded software packages and ++ # configure them if not disabled. May someday be expanded to have ++ # autogen find the packages instead of this hard-coded list ++ # (https://svn.open-mpi.org/trac/ompi/ticket/1162). ++ # m4_define([contrib_software_list], [libnbc, vt]) ++ ++ # -*- shell-script -*- ++# ++# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana ++# University Research and Technology ++# Corporation. All rights reserved. ++# Copyright (c) 2004-2005 The University of Tennessee and The University ++# of Tennessee Research Foundation. All rights ++# reserved. ++# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, ++# University of Stuttgart. All rights reserved. ++# Copyright (c) 2004-2005 The Regents of the University of California. ++# All rights reserved. ++# Copyright (c) 2007 Cisco, Inc. All rights reserved. ++# $COPYRIGHT$ ++# ++# Additional copyrights may follow ++# ++# $HEADER$ ++# ++ ++# OMPI_contrib_vt_CONFIG([action-if-can-compile], ++# [action-if-cant-compile]) ++# ------------------------------------------------ ++ ++ ++ ++ ompi_show_subsubsubtitle "vt (m4 configuration macro)" ++ ++ OMPI_CONTRIB_HAPPY=0 ++ if test "$DISABLE_contrib_vt" = "" -a "$DISABLE_contrib_all" = ""; then ++ ++ contrib_vt_args="--disable-option-checking 'MPICC=$CC' --with-openmpi '--with-mpi-inc-dir=$top_ompi_builddir/ompi/include' --with-mpi-status-size=5 --disable-config-titles --disable-config-summary" ++ ++ contrib_vt_skip=no ++ eval "set x $ac_configure_args"; shift ++ for contrib_vt_arg ++ do ++ if test "$contrib_vt_skip" = "yes"; then ++ contrib_vt_skip=no ++ else ++ case $contrib_vt_arg in ++ -with-contrib-vt-flags | --with-contrib-vt-flags) ++ contrib_vt_skip=yes ++ ;; ++ -with-contrib-vt-flags=* | --with-contrib-vt-flags=*) ++ ;; ++ -with-platform | --with-platform) ++ contrib_vt_skip=yes ++ ;; ++ -with-platform=* | --with-platform=*) ++ ;; ++ *) ++ case $contrib_vt_arg in ++ *\'*) contrib_vt_arg=`echo "$contrib_vt_arg" | sed "s/'/'\\\\\\\\''/g"` ;; ++ esac ++ contrib_vt_args="$contrib_vt_args '$contrib_vt_arg'" ++ ;; ++ esac ++ fi ++ done ++ ++ ++# Check whether --with-contrib-vt-flags was given. ++if test "${with_contrib_vt_flags+set}" = set; then ++ withval=$with_contrib_vt_flags; ++fi ++ ++ if test "$with_contrib_vt_flags" != "yes" -a "$with_contrib_vt_flags" != "no"; then ++ contrib_vt_args="$contrib_vt_args $with_contrib_vt_flags" ++fi ++ ++ ++ # Run VampirTrace's configure and see if it succeeded ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/contrib/vt/vt is the directory to invoke in ++# $contrib_vt_args is the list of arguments to pass ++# contrib_vt_happy=1 is actions to execute upon success ++# contrib_vt_happy=0 is actions to execute upon failure ++# ++subdir_dir="ompi/contrib/vt/vt" ++subdir_args="$contrib_vt_args" ++subdir_success="contrib_vt_happy=1" ++subdir_failure="contrib_vt_happy=0" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ ++ # If VampirTrace configured itself successfully, setup OMPI-specific ++ # VampirTrace glue code to build. ++ if test "$contrib_vt_happy" = "1"; then ++ OMPI_CONTRIB_HAPPY=1 ++ ac_config_files="$ac_config_files ompi/contrib/vt/Makefile ompi/contrib/vt/wrappers/Makefile ompi/contrib/vt/wrappers/mpicc-vt-wrapper-data.txt ompi/contrib/vt/wrappers/mpic++-vt-wrapper-data.txt ompi/contrib/vt/wrappers/mpif77-vt-wrapper-data.txt ompi/contrib/vt/wrappers/mpif90-vt-wrapper-data.txt" ++ ++fi ++ ++ ++ { echo "$as_me:$LINENO: checking if contributed component vt can compile" >&5 ++echo $ECHO_N "checking if contributed component vt can compile... $ECHO_C" >&6; } ++ if test "$OMPI_CONTRIB_HAPPY" = "1"; then ++ OMPI_CONTRIB_SUBDIRS="$OMPI_CONTRIB_SUBDIRS contrib/vt" ++ OMPI_CONTRIB_DIST_SUBDIRS="$OMPI_CONTRIB_DIST_SUBDIRS contrib/vt" ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ else ++ { echo "$as_me:$LINENO: disabled via command line switch" >&5 ++echo "$as_me: disabled via command line switch" >&6;} ++ fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ENABLE_CONTRIB_vt $OMPI_CONTRIB_HAPPY ++_ACEOF ++ ++ unset OMPI_CONTRIB_HAPPY ++ ++ ++ # Setup the top-level glue ++ ++ ++ ++ ++# checkpoint results ++cat >confcache <<\_ACEOF ++# This file is a shell script that caches the results of configure ++# tests run on this system so they can be shared between configure ++# scripts and configure runs, see configure's option --config-cache. ++# It is not useful on other systems. If it contains results you don't ++# want to keep, you may remove or edit it. ++# ++# config.status only pays attention to the cache file if you give it ++# the --recheck option to rerun configure. ++# ++# `ac_cv_env_foo' variables (set or unset) will be overridden when ++# loading this file, other *unset* `ac_cv_foo' will be assigned the ++# following values. ++ ++_ACEOF ++ ++# The following way of writing the cache mishandles newlines in values, ++# but we know of no workaround that is simple, portable, and efficient. ++# So, we kill variables containing newlines. ++# Ultrix sh set writes to stderr and can't be redirected directly, ++# and sets the high bit in the cache file unless we assign to the vars. ++( ++ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do ++ eval ac_val=\$$ac_var ++ case $ac_val in #( ++ *${as_nl}*) ++ case $ac_var in #( ++ *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 ++echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; ++ esac ++ case $ac_var in #( ++ _ | IFS | as_nl) ;; #( ++ *) $as_unset $ac_var ;; ++ esac ;; ++ esac ++ done ++ ++ (set) 2>&1 | ++ case $as_nl`(ac_space=' '; set) 2>&1` in #( ++ *${as_nl}ac_space=\ *) ++ # `set' does not quote correctly, so add quotes (double-quote ++ # substitution turns \\\\ into \\, and sed turns \\ into \). ++ sed -n \ ++ "s/'/'\\\\''/g; ++ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ++ ;; #( ++ *) ++ # `set' quotes correctly as required by POSIX, so do not add quotes. ++ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ++ ;; ++ esac | ++ sort ++) | ++ sed ' ++ /^ac_cv_env_/b end ++ t clear ++ :clear ++ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ ++ t end ++ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ ++ :end' >>confcache ++if diff "$cache_file" confcache >/dev/null 2>&1; then :; else ++ if test -w "$cache_file"; then ++ test "x$cache_file" != "x/dev/null" && ++ { echo "$as_me:$LINENO: updating cache $cache_file" >&5 ++echo "$as_me: updating cache $cache_file" >&6;} ++ cat confcache >$cache_file ++ else ++ { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 ++echo "$as_me: not updating unwritable cache $cache_file" >&6;} ++ fi ++fi ++rm -f confcache ++ ++ ++############################################################################ ++# Final top-level OMPI configuration ++############################################################################ ++ ++ompi_show_title "Final top-level OMPI configuration" ++ ++############################################################################ ++# Libevent setup ++############################################################################ ++ ++ompi_show_subtitle "Libevent 3rd party event handler" ++CFLAGS_save="$CFLAGS" ++CFLAGS="$OMPI_CFLAGS_BEFORE_PICKY" ++ ++ ++sources= ++ ++ ++# Check whether --with-event-rtsig was given. ++if test "${with_event_rtsig+set}" = set; then ++ withval=$with_event_rtsig; usertsig=yes ++else ++ usertsig=no ++fi ++ ++ ++ ++{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 ++echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } ++if test "${ac_cv_header_stdc+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++#include ++#include ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_header_stdc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_header_stdc=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++if test $ac_cv_header_stdc = yes; then ++ # SunOS 4.x string.h does not declare mem*, contrary to ANSI. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++_ACEOF ++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ++ $EGREP "memchr" >/dev/null 2>&1; then ++ : ++else ++ ac_cv_header_stdc=no ++fi ++rm -f conftest* ++ ++fi ++ ++if test $ac_cv_header_stdc = yes; then ++ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++_ACEOF ++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ++ $EGREP "free" >/dev/null 2>&1; then ++ : ++else ++ ac_cv_header_stdc=no ++fi ++rm -f conftest* ++ ++fi ++ ++if test $ac_cv_header_stdc = yes; then ++ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. ++ if test "$cross_compiling" = yes; then ++ : ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++#if ((' ' & 0x0FF) == 0x020) ++# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') ++# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) ++#else ++# define ISLOWER(c) \ ++ (('a' <= (c) && (c) <= 'i') \ ++ || ('j' <= (c) && (c) <= 'r') \ ++ || ('s' <= (c) && (c) <= 'z')) ++# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) ++#endif ++ ++#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) ++int ++main () ++{ ++ int i; ++ for (i = 0; i < 256; i++) ++ if (XOR (islower (i), ISLOWER (i)) ++ || toupper (i) != TOUPPER (i)) ++ return 2; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ : ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++ac_cv_header_stdc=no ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 ++echo "${ECHO_T}$ac_cv_header_stdc" >&6; } ++if test $ac_cv_header_stdc = yes; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define STDC_HEADERS 1 ++_ACEOF ++ ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++for ac_header in fcntl.h stdarg.h inttypes.h stdint.h poll.h signal.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h sys/ioctl.h sys/devpoll.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++if test "x$ac_cv_header_sys_queue_h" = "xyes"; then ++ { echo "$as_me:$LINENO: checking for TAILQ_FOREACH in sys/queue.h" >&5 ++echo $ECHO_N "checking for TAILQ_FOREACH in sys/queue.h... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#ifdef TAILQ_FOREACH ++ yes ++#endif ++ ++_ACEOF ++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ++ $EGREP "yes" >/dev/null 2>&1; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define HAVE_TAILQFOREACH 1 ++_ACEOF ++ ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++fi ++rm -f conftest* ++ ++fi ++ ++if test "x$ac_cv_header_sys_time_h" = "xyes"; then ++ { echo "$as_me:$LINENO: checking for timeradd in sys/time.h" >&5 ++echo $ECHO_N "checking for timeradd in sys/time.h... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#ifdef timeradd ++ yes ++#endif ++ ++_ACEOF ++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ++ $EGREP "yes" >/dev/null 2>&1; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define HAVE_TIMERADD 1 ++_ACEOF ++ ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++fi ++rm -f conftest* ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 ++echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } ++if test "${ac_cv_header_time+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++#include ++ ++int ++main () ++{ ++if ((struct tm *) 0) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_header_time=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_header_time=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 ++echo "${ECHO_T}$ac_cv_header_time" >&6; } ++if test $ac_cv_header_time = yes; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define TIME_WITH_SYS_TIME 1 ++_ACEOF ++ ++fi ++ ++ ++ ++ ++ ++for ac_func in gettimeofday vasprintf fcntl ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ ++{ echo "$as_me:$LINENO: checking for F_SETFD in fcntl.h" >&5 ++echo $ECHO_N "checking for F_SETFD in fcntl.h... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#define _GNU_SOURCE ++#include ++#ifdef F_SETFD ++yes ++#endif ++ ++_ACEOF ++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ++ $EGREP "yes" >/dev/null 2>&1; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define HAVE_SETFD 1 ++_ACEOF ++ ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++rm -f conftest* ++ ++ ++needsignal=no ++haveselect=no ++ ++for ac_func in select ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ haveselect=yes ++fi ++done ++ ++if test "x$haveselect" = "xyes" ; then ++ # OMPI: Don't use AC_LIBOBJ ++ sources="select.c $sources" ++ needsignal=yes ++fi ++ ++havepoll=no ++havertsig=no ++ ++for ac_func in poll ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ havepoll=yes ++fi ++done ++ ++case "$host" in ++ *apple-darwin*) ++ haveworkingpoll=0 ++ ;; ++ *) ++ if test "$havepoll" = "yes" ; then ++ haveworkingpoll=1 ++ else ++ haveworkingpoll=0 ++ fi ++ ;; ++esac ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_WORKING_POLL $haveworkingpoll ++_ACEOF ++ ++if test "x$havepoll" = "xyes" -a "$haveworkingpoll" = "1" ; then ++ # OMPI: Don't use AC_LIBOBJ ++ sources="poll.c $sources" ++ needsignal=yes ++ ++ if test "x$usertsig" = "xyes" ; then ++ ++for ac_func in sigtimedwait ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ havertsig=yes ++fi ++done ++ ++ fi ++fi ++if test "x$havertsig" = "xyes" ; then ++ { echo "$as_me:$LINENO: checking for F_SETSIG in fcntl.h" >&5 ++echo $ECHO_N "checking for F_SETSIG in fcntl.h... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#define _GNU_SOURCE ++#include ++#ifdef F_SETSIG ++yes ++#endif ++ ++_ACEOF ++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ++ $EGREP "yes" >/dev/null 2>&1; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; }; havertsig=no ++fi ++rm -f conftest* ++ ++fi ++if test "x$havertsig" = "xyes" ; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define HAVE_RTSIG 1 ++_ACEOF ++ ++ # OMPI: Don't use AC_LIBOBJ ++ sources="rtsig.c $sources" ++ { echo "$as_me:$LINENO: checking for working rtsig on pipes" >&5 ++echo $ECHO_N "checking for working rtsig on pipes... $ECHO_C" >&6; } ++ if test "$cross_compiling" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot run test program while cross compiling ++See \`config.log' for more details." >&2;} ++ { (exit 1); exit 1; }; } ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#define _GNU_SOURCE ++#include ++#include ++#include ++#include ++ ++int sigio() ++{ ++ exit(0); ++} ++ ++int main() ++{ ++ int fd[2]; ++ ++ pipe(fd); ++ signal(SIGIO, sigio); ++ fcntl(fd[0], F_SETOWN, getpid()); ++ fcntl(fd[0], F_SETSIG, SIGIO); ++ fcntl(fd[0], F_SETFL, fcntl(fd[0], F_GETFL) | O_ASYNC); ++ write(fd[1], "", 1); ++ return 1; ++} ++ ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define HAVE_WORKING_RTSIG 1 ++_ACEOF ++ ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++ ++haveepoll=no ++ ++for ac_func in epoll_ctl ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ haveepoll=yes ++fi ++done ++ ++if test "x$haveepoll" = "xyes" -a "$cross_compiling" != "yes" ; then ++ ++ # OMPI: Unfortunately, this test is not sufficient on some ++ # Linux distros (e.g., RH 9), where the function is defined ++ # and you can link against it, but it's hardwired to return ++ # ENOSYS -- and /usr/include/gnu/stubs.h fails to define ++ # __stub_epoll_ctl (the usual mechanism in glibc to indicate ++ # that a function is a stub and isn't really implemented). ++ # Hence, the test succeeds because it thinks it can use ++ # epoll_ctl (and friends). So we have to do a better test ++ # after we determine that epoll_ctl is linkable. Grumble. ++ # If we are cross compiling, just trust AC_CHECK_FUNCS ++ ++ # OMPI: Unfortunately, this test is not sufficient for another ++ # reason. The event_poll struct is defined in the sys/epoll.h ++ # file. The structure is the interface between the application ++ # and the kernel and is therefore compiled into both. The ++ # event_poll struct is defined with a compiler directive ++ # __attribute__ ((__packed__). It turns out that there is ++ # at least one compiler (Sun Studio) that does not currently ++ # recognize this directive. This means that the event_poll ++ # struct may be packed in the kernel, but not in the OMPI ++ # library. Badness ensues. Therefore, check to see that ++ # this struct gets correctly passed between OMPI and the ++ # kernel. ++ ++ haveepoll=no ++ { echo "$as_me:$LINENO: checking for working epoll library interface" >&5 ++echo $ECHO_N "checking for working epoll library interface... $ECHO_C" >&6; } ++ if test "$cross_compiling" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot run test program while cross compiling ++See \`config.log' for more details." >&2;} ++ { (exit 1); exit 1; }; } ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++$ac_includes_default ++#include ++int ++main () ++{ ++ ++ struct epoll_event epevin; ++ struct epoll_event epevout; ++ int res; ++ int epfd; ++ int fildes[2]; ++ ++ if ((epfd = epoll_create(1)) == -1) ++ exit(1); ++ if (pipe(&fildes[0]) < 0) ++ exit(1); ++ memset(&epevin, 0, sizeof(epevin)); ++ memset(&epevout, 0, sizeof(epevout)); ++ memset(&epevin.data.ptr, 5, sizeof(epevin.data.ptr)); ++ epevin.events = EPOLLIN | EPOLLOUT; ++ ++ if (epoll_ctl(epfd, EPOLL_CTL_ADD, fildes[0], &epevin) == -1) ++ exit(1); ++ ++ res = epoll_wait(epfd, &epevout, 1, 0); ++ if (res != 1) { ++ exit(1); ++ } else { ++ if (epevout.data.ptr != epevin.data.ptr) { ++ exit(1); ++ } ++ } ++ /* SUCCESS */ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ haveepoll=yes ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define HAVE_EPOLL 1 ++_ACEOF ++ ++ # OMPI: Don't use AC_LIBOBJ ++ sources="epoll.c $sources" ++ needsignal=yes ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ { echo "$as_me:$LINENO: result: $haveepoll" >&5 ++echo "${ECHO_T}$haveepoll" >&6; } ++fi ++ ++haveepollsyscall=no ++if test "x$ac_cv_header_sys_epoll_h" = "xyes" -a "x$haveepoll" = "xno" -a "$cross_compiling" != "yes"; then ++ # OMPI: See comment above. This test uses the epoll system call ++ # interface instead of the library interface. ++ { echo "$as_me:$LINENO: checking for working epoll system call" >&5 ++echo $ECHO_N "checking for working epoll system call... $ECHO_C" >&6; } ++ if test "$cross_compiling" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot run test program while cross compiling ++See \`config.log' for more details." >&2;} ++ { (exit 1); exit 1; }; } ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++$ac_includes_default ++#include ++#include ++int ++main () ++{ ++ ++ struct epoll_event epevin; ++ struct epoll_event epevout; ++ int res; ++ int epfd; ++ int fildes[2]; ++ ++ if ((epfd = syscall(__NR_epoll_create, 1)) == -1) ++ exit(1); ++ if (pipe(&fildes[0]) < 0) ++ exit(1); ++ memset(&epevin, 0, sizeof(epevin)); ++ memset(&epevout, 0, sizeof(epevout)); ++ memset(&epevin.data.ptr, 5, sizeof(epevin.data.ptr)); ++ epevin.events = EPOLLIN | EPOLLOUT; ++ ++ if (syscall(__NR_epoll_ctl, epfd, ++ EPOLL_CTL_ADD, fildes[0], &epevin) == -1) ++ exit(1); ++ ++ res = syscall(__NR_epoll_wait, epfd, &epevout, 1, 0); ++ if (res != 1) { ++ exit(1); ++ } else { ++ if (epevout.data.ptr != epevin.data.ptr) { ++ exit(1); ++ } ++ } ++ /* SUCCESS */ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ haveepollsyscall=yes ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define HAVE_EPOLL 1 ++_ACEOF ++ ++ # OMPI: don't use AC_LIBOBJ ++ sources="epoll_sub.c epoll.c $sources" ++ needsignal=yes ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ { echo "$as_me:$LINENO: result: $haveepollsyscall" >&5 ++echo "${ECHO_T}$haveepollsyscall" >&6; } ++fi ++ ++havedevpoll=no ++if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define HAVE_DEVPOLL 1 ++_ACEOF ++ ++ # OMPI: Don't use AC_LIBOBJ(devpoll) ++ sources="devpoll.c $sources" ++ needsignal=yes ++fi ++ ++havekqueue=no ++if test "x$ac_cv_header_sys_event_h" = "xyes"; then ++ # All versions of MAC OS X before at least 10.5.2 are ++ # completely broken when kqueue is used with pty. So, until ++ # they get fixed, completely disable kqueue on MAC OS X. ++ case "$host" in ++ *apple-darwin*) ++ { echo "$as_me:$LINENO: checking for working kqueue" >&5 ++echo $ECHO_N "checking for working kqueue... $ECHO_C" >&6; } ++ havekqueue="no" ++ { echo "$as_me:$LINENO: result: no (MAC OS X)" >&5 ++echo "${ECHO_T}no (MAC OS X)" >&6; } ++ ;; ++ *) ++ ++for ac_func in kqueue ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ havekqueue=yes ++fi ++done ++ ++ ;; ++ esac ++ if test "x$havekqueue" = "xyes" ; then ++ { echo "$as_me:$LINENO: checking for working kqueue" >&5 ++echo $ECHO_N "checking for working kqueue... $ECHO_C" >&6; } ++ if test "$cross_compiling" = yes; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++ ++int ++main() ++{ ++ int kq; ++ int n; ++ int fd[2]; ++ struct kevent ev; ++ struct timespec ts; ++ char buf[8000]; ++ ++ if (pipe(fd) == -1) ++ exit(1); ++ if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1) ++ exit(1); ++ ++ while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf)) ++ ; ++ ++ if ((kq = kqueue()) == -1) ++ exit(1); ++ ++ ev.ident = fd[1]; ++ ev.filter = EVFILT_WRITE; ++ ev.flags = EV_ADD | EV_ENABLE; ++ n = kevent(kq, &ev, 1, NULL, 0, NULL); ++ if (n == -1) ++ exit(1); ++ ++ read(fd[0], buf, sizeof(buf)); ++ ++ ts.tv_sec = 0; ++ ts.tv_nsec = 0; ++ n = kevent(kq, NULL, 0, &ev, 1, &ts); ++ if (n == -1 || n == 0) ++ exit(1); ++ ++ exit(0); ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define HAVE_WORKING_KQUEUE 1 ++_ACEOF ++ ++ sources="kqueue.c $sources" ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # OMPI: don't use AC_LIBOBJ ++ fi ++fi ++ ++haveeventports=no ++ ++for ac_func in port_create ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ haveeventports=yes ++fi ++done ++ ++# JMS Per #1273, Solaris event ports are temporarily disabled. ++haveeventports=no ++if test "x$haveeventports" = "xyes" ; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define HAVE_EVENT_PORTS 1 ++_ACEOF ++ ++ sources="evport.c $sources" ++ needsignal=yes ++fi ++ ++if test "x$needsignal" = "xyes" ; then ++ # OMPI: don't use AC_LIBOBJ ++ sources="signal.c $sources" ++fi ++ ++# OMPI: AC_REPLACE_FUNCS doesn't have much meaning here because it ++# uses AC_LIBOBJ; use our own test ++#AC_REPLACE_FUNCS(err) ++ ++{ echo "$as_me:$LINENO: checking for pid_t" >&5 ++echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_pid_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef pid_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_pid_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_pid_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 ++echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } ++if test $ac_cv_type_pid_t = yes; then ++ : ++else ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define pid_t int ++_ACEOF ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for size_t" >&5 ++echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_size_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef size_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_size_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_size_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 ++echo "${ECHO_T}$ac_cv_type_size_t" >&6; } ++if test $ac_cv_type_size_t = yes; then ++ : ++else ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define size_t unsigned int ++_ACEOF ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for u_int64_t" >&5 ++echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_u_int64_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef u_int64_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_u_int64_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_u_int64_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 ++echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } ++if test $ac_cv_type_u_int64_t = yes; then ++ : ++else ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define u_int64_t unsigned long long ++_ACEOF ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for u_int32_t" >&5 ++echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_u_int32_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef u_int32_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_u_int32_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_u_int32_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 ++echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; } ++if test $ac_cv_type_u_int32_t = yes; then ++ : ++else ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define u_int32_t unsigned int ++_ACEOF ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for u_int16_t" >&5 ++echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_u_int16_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef u_int16_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_u_int16_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_u_int16_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 ++echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; } ++if test $ac_cv_type_u_int16_t = yes; then ++ : ++else ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define u_int16_t unsigned short ++_ACEOF ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for u_int8_t" >&5 ++echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_u_int8_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef u_int8_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_u_int8_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_u_int8_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5 ++echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; } ++if test $ac_cv_type_u_int8_t = yes; then ++ : ++else ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define u_int8_t unsigned char ++_ACEOF ++ ++fi ++ ++ ++ ++# OMPI: Save the libobj sources ++OMPI_LIBEVENT_SOURCES="$sources" ++ ++ ++# OMPI: All done ++unset sources ++CFLAGS="$CFLAGS_save" ++ ++ ++############################################################################ ++# Libtool: part two ++# (after C compiler setup = no compiler/linker tests after this) ++############################################################################ ++ ++ompi_show_subtitle "Libtool configuration" ++ ++# Use the undocumented solaris_use_stlport4 libtool variable to turn off any ++# Cstd/stlport4 linkage. This allows Open MPI to be C++ STL agnostic. ++if test "x$ompi_cv_c_compiler_vendor" = "xsun"; then ++ solaris_use_stlport4="yes" ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++case $enable_ltdl_convenience in ++ no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5 ++echo "$as_me: error: this package needs a convenience libltdl" >&2;} ++ { (exit 1); exit 1; }; } ;; ++ "") enable_ltdl_convenience=yes ++ ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; ++esac ++LIBLTDL='${top_builddir}/'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" ++LTDLDEPS=$LIBLTDL ++LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" ++ ++ ++ ++ ++ ++# For backwards non-gettext consistent compatibility... ++INCLTDL="$LTDLINCL" ++ ++ ++ ++case `pwd` in ++ *\ * | *\ *) ++ { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 ++echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; ++esac ++ ++ ++ ++macro_version='2.2.6' ++macro_revision='1.3012' ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ltmain="$ac_aux_dir/ltmain.sh" ++ ++{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 ++echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } ++if test "${ac_cv_path_SED+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ ++ for ac_i in 1 2 3 4 5 6 7; do ++ ac_script="$ac_script$as_nl$ac_script" ++ done ++ echo "$ac_script" | sed 99q >conftest.sed ++ $as_unset ac_script || ac_script= ++ # Extract the first word of "sed gsed" to use in msg output ++if test -z "$SED"; then ++set dummy sed gsed; ac_prog_name=$2 ++if test "${ac_cv_path_SED+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_path_SED_found=false ++# Loop through the user's path and test for each of PROGNAME-LIST ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_prog in sed gsed; do ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" ++ { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue ++ # Check for GNU ac_path_SED and select it if it is found. ++ # Check for GNU $ac_path_SED ++case `"$ac_path_SED" --version 2>&1` in ++*GNU*) ++ ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; ++*) ++ ac_count=0 ++ echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" ++ while : ++ do ++ cat "conftest.in" "conftest.in" >"conftest.tmp" ++ mv "conftest.tmp" "conftest.in" ++ cp "conftest.in" "conftest.nl" ++ echo '' >> "conftest.nl" ++ "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break ++ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ++ ac_count=`expr $ac_count + 1` ++ if test $ac_count -gt ${ac_path_SED_max-0}; then ++ # Best one so far, save it but keep looking for a better one ++ ac_cv_path_SED="$ac_path_SED" ++ ac_path_SED_max=$ac_count ++ fi ++ # 10*(2^10) chars as input seems more than enough ++ test $ac_count -gt 10 && break ++ done ++ rm -f conftest.in conftest.tmp conftest.nl conftest.out;; ++esac ++ ++ ++ $ac_path_SED_found && break 3 ++ done ++done ++ ++done ++IFS=$as_save_IFS ++ ++ ++fi ++ ++SED="$ac_cv_path_SED" ++if test -z "$SED"; then ++ { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 ++echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ ac_cv_path_SED=$SED ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 ++echo "${ECHO_T}$ac_cv_path_SED" >&6; } ++ SED="$ac_cv_path_SED" ++ rm -f conftest.sed ++ ++test -z "$SED" && SED=sed ++Xsed="$SED -e 1s/^X//" ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++test -z "$GREP" && GREP=grep ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++# Check whether --with-gnu-ld was given. ++if test "${with_gnu_ld+set}" = set; then ++ withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes ++else ++ with_gnu_ld=no ++fi ++ ++ac_prog=ld ++if test "$GCC" = yes; then ++ # Check if gcc -print-prog-name=ld gives a path. ++ { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 ++echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } ++ case $host in ++ *-*-mingw*) ++ # gcc leaves a trailing carriage return which upsets mingw ++ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; ++ *) ++ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; ++ esac ++ case $ac_prog in ++ # Accept absolute paths. ++ [\\/]* | ?:[\\/]*) ++ re_direlt='/[^/][^/]*/\.\./' ++ # Canonicalize the pathname of ld ++ ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` ++ while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ++ ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` ++ done ++ test -z "$LD" && LD="$ac_prog" ++ ;; ++ "") ++ # If it fails, then pretend we aren't using GCC. ++ ac_prog=ld ++ ;; ++ *) ++ # If it is relative, then search for the first ld in PATH. ++ with_gnu_ld=unknown ++ ;; ++ esac ++elif test "$with_gnu_ld" = yes; then ++ { echo "$as_me:$LINENO: checking for GNU ld" >&5 ++echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } ++else ++ { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 ++echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } ++fi ++if test "${lt_cv_path_LD+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -z "$LD"; then ++ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ++ for ac_dir in $PATH; do ++ IFS="$lt_save_ifs" ++ test -z "$ac_dir" && ac_dir=. ++ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then ++ lt_cv_path_LD="$ac_dir/$ac_prog" ++ # Check to see if the program is GNU ld. I'd rather use --version, ++ # but apparently some variants of GNU ld only accept -v. ++ # Break only if it was the GNU/non-GNU ld that we prefer. ++ case `"$lt_cv_path_LD" -v 2>&1 &5 ++echo "${ECHO_T}$LD" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 ++echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} ++ { (exit 1); exit 1; }; } ++{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 ++echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } ++if test "${lt_cv_prog_gnu_ld+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # I'd rather use --version here, but apparently some GNU lds only accept -v. ++case `$LD -v 2>&1 &5 ++echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } ++with_gnu_ld=$lt_cv_prog_gnu_ld ++ ++ ++ ++ ++ ++ ++ ++ ++ ++# find the maximum length of command line arguments ++{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 ++echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } ++if test "${lt_cv_sys_max_cmd_len+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ i=0 ++ teststring="ABCD" ++ ++ case $build_os in ++ msdosdjgpp*) ++ # On DJGPP, this test can blow up pretty badly due to problems in libc ++ # (any single argument exceeding 2000 bytes causes a buffer overrun ++ # during glob expansion). Even if it were fixed, the result of this ++ # check would be larger than it should be. ++ lt_cv_sys_max_cmd_len=12288; # 12K is about right ++ ;; ++ ++ gnu*) ++ # Under GNU Hurd, this test is not required because there is ++ # no limit to the length of command line arguments. ++ # Libtool will interpret -1 as no limit whatsoever ++ lt_cv_sys_max_cmd_len=-1; ++ ;; ++ ++ cygwin* | mingw* | cegcc*) ++ # On Win9x/ME, this test blows up -- it succeeds, but takes ++ # about 5 minutes as the teststring grows exponentially. ++ # Worse, since 9x/ME are not pre-emptively multitasking, ++ # you end up with a "frozen" computer, even though with patience ++ # the test eventually succeeds (with a max line length of 256k). ++ # Instead, let's just punt: use the minimum linelength reported by ++ # all of the supported platforms: 8192 (on NT/2K/XP). ++ lt_cv_sys_max_cmd_len=8192; ++ ;; ++ ++ amigaos*) ++ # On AmigaOS with pdksh, this test takes hours, literally. ++ # So we just punt and use a minimum line length of 8192. ++ lt_cv_sys_max_cmd_len=8192; ++ ;; ++ ++ netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) ++ # This has been around since 386BSD, at least. Likely further. ++ if test -x /sbin/sysctl; then ++ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` ++ elif test -x /usr/sbin/sysctl; then ++ lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` ++ else ++ lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs ++ fi ++ # And add a safety zone ++ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` ++ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ++ ;; ++ ++ interix*) ++ # We know the value 262144 and hardcode it with a safety zone (like BSD) ++ lt_cv_sys_max_cmd_len=196608 ++ ;; ++ ++ osf*) ++ # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure ++ # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not ++ # nice to cause kernel panics so lets avoid the loop below. ++ # First set a reasonable default. ++ lt_cv_sys_max_cmd_len=16384 ++ # ++ if test -x /sbin/sysconfig; then ++ case `/sbin/sysconfig -q proc exec_disable_arg_limit` in ++ *1*) lt_cv_sys_max_cmd_len=-1 ;; ++ esac ++ fi ++ ;; ++ sco3.2v5*) ++ lt_cv_sys_max_cmd_len=102400 ++ ;; ++ sysv5* | sco5v6* | sysv4.2uw2*) ++ kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` ++ if test -n "$kargmax"; then ++ lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` ++ else ++ lt_cv_sys_max_cmd_len=32768 ++ fi ++ ;; ++ *) ++ lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` ++ if test -n "$lt_cv_sys_max_cmd_len"; then ++ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` ++ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ++ else ++ # Make teststring a little bigger before we do anything with it. ++ # a 1K string should be a reasonable start. ++ for i in 1 2 3 4 5 6 7 8 ; do ++ teststring=$teststring$teststring ++ done ++ SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} ++ # If test is not a shell built-in, we'll probably end up computing a ++ # maximum length that is only half of the actual maximum length, but ++ # we can't tell. ++ while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ ++ = "XX$teststring$teststring"; } >/dev/null 2>&1 && ++ test $i != 17 # 1/2 MB should be enough ++ do ++ i=`expr $i + 1` ++ teststring=$teststring$teststring ++ done ++ # Only check the string length outside the loop. ++ lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` ++ teststring= ++ # Add a significant safety factor because C++ compilers can tack on ++ # massive amounts of additional arguments before passing them to the ++ # linker. It appears as though 1/2 is a usable value. ++ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` ++ fi ++ ;; ++ esac ++ ++fi ++ ++if test -n $lt_cv_sys_max_cmd_len ; then ++ { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 ++echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } ++else ++ { echo "$as_me:$LINENO: result: none" >&5 ++echo "${ECHO_T}none" >&6; } ++fi ++max_cmd_len=$lt_cv_sys_max_cmd_len ++ ++ ++ ++ ++ ++ ++: ${CP="cp -f"} ++: ${MV="mv -f"} ++: ${RM="rm -f"} ++ ++{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 ++echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; } ++# Try some XSI features ++xsi_shell=no ++( _lt_dummy="a/b/c" ++ test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ ++ = c,a/b,, \ ++ && eval 'test $(( 1 + 1 )) -eq 2 \ ++ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ ++ && xsi_shell=yes ++{ echo "$as_me:$LINENO: result: $xsi_shell" >&5 ++echo "${ECHO_T}$xsi_shell" >&6; } ++ ++ ++{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 ++echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; } ++lt_shell_append=no ++( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ ++ >/dev/null 2>&1 \ ++ && lt_shell_append=yes ++{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5 ++echo "${ECHO_T}$lt_shell_append" >&6; } ++ ++ ++if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then ++ lt_unset=unset ++else ++ lt_unset=false ++fi ++ ++ ++ ++ ++ ++# test EBCDIC or ASCII ++case `echo X|tr X '\101'` in ++ A) # ASCII based system ++ # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr ++ lt_SP2NL='tr \040 \012' ++ lt_NL2SP='tr \015\012 \040\040' ++ ;; ++ *) # EBCDIC based system ++ lt_SP2NL='tr \100 \n' ++ lt_NL2SP='tr \r\n \100\100' ++ ;; ++esac ++ ++ ++ ++ ++ ++ ++ ++ ++ ++{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 ++echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } ++if test "${lt_cv_ld_reload_flag+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_ld_reload_flag='-r' ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 ++echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } ++reload_flag=$lt_cv_ld_reload_flag ++case $reload_flag in ++"" | " "*) ;; ++*) reload_flag=" $reload_flag" ;; ++esac ++reload_cmds='$LD$reload_flag -o $output$reload_objs' ++case $host_os in ++ darwin*) ++ if test "$GCC" = yes; then ++ reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' ++ else ++ reload_cmds='$LD$reload_flag -o $output$reload_objs' ++ fi ++ ;; ++esac ++ ++ ++ ++ ++ ++ ++ ++ ++ ++if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. ++set dummy ${ac_tool_prefix}objdump; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_OBJDUMP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$OBJDUMP"; then ++ ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++OBJDUMP=$ac_cv_prog_OBJDUMP ++if test -n "$OBJDUMP"; then ++ { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 ++echo "${ECHO_T}$OBJDUMP" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_OBJDUMP"; then ++ ac_ct_OBJDUMP=$OBJDUMP ++ # Extract the first word of "objdump", so it can be a program name with args. ++set dummy objdump; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_OBJDUMP"; then ++ ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_OBJDUMP="objdump" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP ++if test -n "$ac_ct_OBJDUMP"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 ++echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_OBJDUMP" = x; then ++ OBJDUMP="false" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ OBJDUMP=$ac_ct_OBJDUMP ++ fi ++else ++ OBJDUMP="$ac_cv_prog_OBJDUMP" ++fi ++ ++test -z "$OBJDUMP" && OBJDUMP=objdump ++ ++ ++ ++ ++ ++ ++{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 ++echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } ++if test "${lt_cv_deplibs_check_method+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_file_magic_cmd='$MAGIC_CMD' ++lt_cv_file_magic_test_file= ++lt_cv_deplibs_check_method='unknown' ++# Need to set the preceding variable on all platforms that support ++# interlibrary dependencies. ++# 'none' -- dependencies not supported. ++# `unknown' -- same as none, but documents that we really don't know. ++# 'pass_all' -- all dependencies passed with no checks. ++# 'test_compile' -- check by making test program. ++# 'file_magic [[regex]]' -- check by looking for files in library path ++# which responds to the $file_magic_cmd with a given extended regex. ++# If you have `file' or equivalent on your system and you're not sure ++# whether `pass_all' will *always* work, you probably want this one. ++ ++case $host_os in ++aix[4-9]*) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ ++beos*) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ ++bsdi[45]*) ++ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' ++ lt_cv_file_magic_cmd='/usr/bin/file -L' ++ lt_cv_file_magic_test_file=/shlib/libc.so ++ ;; ++ ++cygwin*) ++ # func_win32_libid is a shell function defined in ltmain.sh ++ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' ++ lt_cv_file_magic_cmd='func_win32_libid' ++ ;; ++ ++mingw* | pw32*) ++ # Base MSYS/MinGW do not provide the 'file' command needed by ++ # func_win32_libid shell function, so use a weaker test based on 'objdump', ++ # unless we find 'file', for example because we are cross-compiling. ++ if ( file / ) >/dev/null 2>&1; then ++ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' ++ lt_cv_file_magic_cmd='func_win32_libid' ++ else ++ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' ++ lt_cv_file_magic_cmd='$OBJDUMP -f' ++ fi ++ ;; ++ ++cegcc) ++ # use the weaker test based on 'objdump'. See mingw*. ++ lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' ++ lt_cv_file_magic_cmd='$OBJDUMP -f' ++ ;; ++ ++darwin* | rhapsody*) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ ++freebsd* | dragonfly*) ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then ++ case $host_cpu in ++ i*86 ) ++ # Not sure whether the presence of OpenBSD here was a mistake. ++ # Let's accept both of them until this is cleared up. ++ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' ++ lt_cv_file_magic_cmd=/usr/bin/file ++ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ++ ;; ++ esac ++ else ++ lt_cv_deplibs_check_method=pass_all ++ fi ++ ;; ++ ++gnu*) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ ++hpux10.20* | hpux11*) ++ lt_cv_file_magic_cmd=/usr/bin/file ++ case $host_cpu in ++ ia64*) ++ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' ++ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ++ ;; ++ hppa*64*) ++ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' ++ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ++ ;; ++ *) ++ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' ++ lt_cv_file_magic_test_file=/usr/lib/libc.sl ++ ;; ++ esac ++ ;; ++ ++interix[3-9]*) ++ # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here ++ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ++ ;; ++ ++irix5* | irix6* | nonstopux*) ++ case $LD in ++ *-32|*"-32 ") libmagic=32-bit;; ++ *-n32|*"-n32 ") libmagic=N32;; ++ *-64|*"-64 ") libmagic=64-bit;; ++ *) libmagic=never-match;; ++ esac ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ ++# This must be Linux ELF. ++linux* | k*bsd*-gnu) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ ++netbsd*) ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then ++ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' ++ else ++ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' ++ fi ++ ;; ++ ++newos6*) ++ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' ++ lt_cv_file_magic_cmd=/usr/bin/file ++ lt_cv_file_magic_test_file=/usr/lib/libnls.so ++ ;; ++ ++*nto* | *qnx*) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ ++openbsd*) ++ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ++ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' ++ else ++ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' ++ fi ++ ;; ++ ++osf3* | osf4* | osf5*) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ ++rdos*) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ ++solaris*) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ ++sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ ++sysv4 | sysv4.3*) ++ case $host_vendor in ++ motorola) ++ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' ++ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ++ ;; ++ ncr) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ sequent) ++ lt_cv_file_magic_cmd='/bin/file' ++ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ++ ;; ++ sni) ++ lt_cv_file_magic_cmd='/bin/file' ++ lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" ++ lt_cv_file_magic_test_file=/lib/libc.so ++ ;; ++ siemens) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ pc) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ esac ++ ;; ++ ++tpf*) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++esac ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 ++echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } ++file_magic_cmd=$lt_cv_file_magic_cmd ++deplibs_check_method=$lt_cv_deplibs_check_method ++test -z "$deplibs_check_method" && deplibs_check_method=unknown ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. ++set dummy ${ac_tool_prefix}ar; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_AR+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$AR"; then ++ ac_cv_prog_AR="$AR" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_AR="${ac_tool_prefix}ar" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++AR=$ac_cv_prog_AR ++if test -n "$AR"; then ++ { echo "$as_me:$LINENO: result: $AR" >&5 ++echo "${ECHO_T}$AR" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_AR"; then ++ ac_ct_AR=$AR ++ # Extract the first word of "ar", so it can be a program name with args. ++set dummy ar; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_AR+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_AR"; then ++ ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_AR="ar" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_AR=$ac_cv_prog_ac_ct_AR ++if test -n "$ac_ct_AR"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 ++echo "${ECHO_T}$ac_ct_AR" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_AR" = x; then ++ AR="false" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ AR=$ac_ct_AR ++ fi ++else ++ AR="$ac_cv_prog_AR" ++fi ++ ++test -z "$AR" && AR=ar ++test -z "$AR_FLAGS" && AR_FLAGS=cru ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. ++set dummy ${ac_tool_prefix}strip; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_STRIP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$STRIP"; then ++ ac_cv_prog_STRIP="$STRIP" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_STRIP="${ac_tool_prefix}strip" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++STRIP=$ac_cv_prog_STRIP ++if test -n "$STRIP"; then ++ { echo "$as_me:$LINENO: result: $STRIP" >&5 ++echo "${ECHO_T}$STRIP" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_STRIP"; then ++ ac_ct_STRIP=$STRIP ++ # Extract the first word of "strip", so it can be a program name with args. ++set dummy strip; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_STRIP"; then ++ ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_STRIP="strip" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP ++if test -n "$ac_ct_STRIP"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 ++echo "${ECHO_T}$ac_ct_STRIP" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_STRIP" = x; then ++ STRIP=":" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ STRIP=$ac_ct_STRIP ++ fi ++else ++ STRIP="$ac_cv_prog_STRIP" ++fi ++ ++test -z "$STRIP" && STRIP=: ++ ++ ++ ++ ++ ++ ++if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. ++set dummy ${ac_tool_prefix}ranlib; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_RANLIB+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$RANLIB"; then ++ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++RANLIB=$ac_cv_prog_RANLIB ++if test -n "$RANLIB"; then ++ { echo "$as_me:$LINENO: result: $RANLIB" >&5 ++echo "${ECHO_T}$RANLIB" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_RANLIB"; then ++ ac_ct_RANLIB=$RANLIB ++ # Extract the first word of "ranlib", so it can be a program name with args. ++set dummy ranlib; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_RANLIB"; then ++ ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_RANLIB="ranlib" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB ++if test -n "$ac_ct_RANLIB"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 ++echo "${ECHO_T}$ac_ct_RANLIB" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_RANLIB" = x; then ++ RANLIB=":" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ RANLIB=$ac_ct_RANLIB ++ fi ++else ++ RANLIB="$ac_cv_prog_RANLIB" ++fi ++ ++test -z "$RANLIB" && RANLIB=: ++ ++ ++ ++ ++ ++ ++# Determine commands to create old-style static archives. ++old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' ++old_postinstall_cmds='chmod 644 $oldlib' ++old_postuninstall_cmds= ++ ++if test -n "$RANLIB"; then ++ case $host_os in ++ openbsd*) ++ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ++ ;; ++ *) ++ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ++ ;; ++ esac ++ old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++# If no C compiler was specified, use CC. ++LTCC=${LTCC-"$CC"} ++ ++# If no C compiler flags were specified, use CFLAGS. ++LTCFLAGS=${LTCFLAGS-"$CFLAGS"} ++ ++# Allow CC to be a program name with arguments. ++compiler=$CC ++ ++ ++# Check for command to grab the raw symbol name followed by C symbol from nm. ++{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 ++echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } ++if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++# These are sane defaults that work on at least a few old systems. ++# [They come from Ultrix. What could be older than Ultrix?!! ;)] ++ ++# Character class describing NM global symbol codes. ++symcode='[BCDEGRST]' ++ ++# Regexp to match symbols that can be accessed directly from C. ++sympat='\([_A-Za-z][_A-Za-z0-9]*\)' ++ ++# Define system-specific variables. ++case $host_os in ++aix*) ++ symcode='[BCDT]' ++ ;; ++cygwin* | mingw* | pw32* | cegcc*) ++ symcode='[ABCDGISTW]' ++ ;; ++hpux*) ++ if test "$host_cpu" = ia64; then ++ symcode='[ABCDEGRST]' ++ fi ++ ;; ++irix* | nonstopux*) ++ symcode='[BCDEGRST]' ++ ;; ++osf*) ++ symcode='[BCDEGQRST]' ++ ;; ++solaris*) ++ symcode='[BDRT]' ++ ;; ++sco3.2v5*) ++ symcode='[DT]' ++ ;; ++sysv4.2uw2*) ++ symcode='[DT]' ++ ;; ++sysv5* | sco5v6* | unixware* | OpenUNIX*) ++ symcode='[ABDT]' ++ ;; ++sysv4) ++ symcode='[DFNSTU]' ++ ;; ++esac ++ ++# If we're using GNU nm, then use its standard symbol codes. ++case `$NM -V 2>&1` in ++*GNU* | *'with BFD'*) ++ symcode='[ABCDGIRSTW]' ;; ++esac ++ ++# Transform an extracted symbol line into a proper C declaration. ++# Some systems (esp. on ia64) link data and code symbols differently, ++# so use this general approach. ++lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" ++ ++# Transform an extracted symbol line into symbol name and symbol address ++lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" ++lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" ++ ++# Handle CRLF in mingw tool chain ++opt_cr= ++case $build_os in ++mingw*) ++ opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ++ ;; ++esac ++ ++# Try without a prefix underscore, then with it. ++for ac_symprfx in "" "_"; do ++ ++ # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. ++ symxfrm="\\1 $ac_symprfx\\2 \\2" ++ ++ # Write the raw and C identifiers. ++ if test "$lt_cv_nm_interface" = "MS dumpbin"; then ++ # Fake it for dumpbin and say T for any non-static function ++ # and D for any global variable. ++ # Also find C++ and __fastcall symbols from MSVC++, ++ # which start with @ or ?. ++ lt_cv_sys_global_symbol_pipe="$AWK '"\ ++" {last_section=section; section=\$ 3};"\ ++" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ ++" \$ 0!~/External *\|/{next};"\ ++" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ ++" {if(hide[section]) next};"\ ++" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ ++" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ ++" s[1]~/^[@?]/{print s[1], s[1]; next};"\ ++" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ ++" ' prfx=^$ac_symprfx" ++ else ++ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" ++ fi ++ ++ # Check to see that the pipe works correctly. ++ pipe_works=no ++ ++ rm -f conftest* ++ cat > conftest.$ac_ext <<_LT_EOF ++#ifdef __cplusplus ++extern "C" { ++#endif ++char nm_test_var; ++void nm_test_func(void); ++void nm_test_func(void){} ++#ifdef __cplusplus ++} ++#endif ++int main(){nm_test_var='a';nm_test_func();return(0);} ++_LT_EOF ++ ++ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # Now try to grab the symbols. ++ nlist=conftest.nm ++ if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 ++ (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && test -s "$nlist"; then ++ # Try sorting and uniquifying the output. ++ if sort "$nlist" | uniq > "$nlist"T; then ++ mv -f "$nlist"T "$nlist" ++ else ++ rm -f "$nlist"T ++ fi ++ ++ # Make sure that we snagged all the symbols we need. ++ if $GREP ' nm_test_var$' "$nlist" >/dev/null; then ++ if $GREP ' nm_test_func$' "$nlist" >/dev/null; then ++ cat <<_LT_EOF > conftest.$ac_ext ++#ifdef __cplusplus ++extern "C" { ++#endif ++ ++_LT_EOF ++ # Now generate the symbol file. ++ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' ++ ++ cat <<_LT_EOF >> conftest.$ac_ext ++ ++/* The mapping between symbol names and symbols. */ ++const struct { ++ const char *name; ++ void *address; ++} ++lt__PROGRAM__LTX_preloaded_symbols[] = ++{ ++ { "@PROGRAM@", (void *) 0 }, ++_LT_EOF ++ $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext ++ cat <<\_LT_EOF >> conftest.$ac_ext ++ {0, (void *) 0} ++}; ++ ++/* This works around a problem in FreeBSD linker */ ++#ifdef FREEBSD_WORKAROUND ++static const void *lt_preloaded_setup() { ++ return lt__PROGRAM__LTX_preloaded_symbols; ++} ++#endif ++ ++#ifdef __cplusplus ++} ++#endif ++_LT_EOF ++ # Now try linking the two files. ++ mv conftest.$ac_objext conftstm.$ac_objext ++ lt_save_LIBS="$LIBS" ++ lt_save_CFLAGS="$CFLAGS" ++ LIBS="conftstm.$ac_objext" ++ CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" ++ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ++ (eval $ac_link) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && test -s conftest${ac_exeext}; then ++ pipe_works=yes ++ fi ++ LIBS="$lt_save_LIBS" ++ CFLAGS="$lt_save_CFLAGS" ++ else ++ echo "cannot find nm_test_func in $nlist" >&5 ++ fi ++ else ++ echo "cannot find nm_test_var in $nlist" >&5 ++ fi ++ else ++ echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 ++ fi ++ else ++ echo "$progname: failed program was:" >&5 ++ cat conftest.$ac_ext >&5 ++ fi ++ rm -rf conftest* conftst* ++ ++ # Do not use the global_symbol_pipe unless it works. ++ if test "$pipe_works" = yes; then ++ break ++ else ++ lt_cv_sys_global_symbol_pipe= ++ fi ++done ++ ++fi ++ ++if test -z "$lt_cv_sys_global_symbol_pipe"; then ++ lt_cv_sys_global_symbol_to_cdecl= ++fi ++if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then ++ { echo "$as_me:$LINENO: result: failed" >&5 ++echo "${ECHO_T}failed" >&6; } ++else ++ { echo "$as_me:$LINENO: result: ok" >&5 ++echo "${ECHO_T}ok" >&6; } ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++# Check whether --enable-libtool-lock was given. ++if test "${enable_libtool_lock+set}" = set; then ++ enableval=$enable_libtool_lock; ++fi ++ ++test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes ++ ++# Some flags need to be propagated to the compiler or linker for good ++# libtool support. ++case $host in ++ia64-*-hpux*) ++ # Find out which ABI we are using. ++ echo 'int i;' > conftest.$ac_ext ++ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ case `/usr/bin/file conftest.$ac_objext` in ++ *ELF-32*) ++ HPUX_IA64_MODE="32" ++ ;; ++ *ELF-64*) ++ HPUX_IA64_MODE="64" ++ ;; ++ esac ++ fi ++ rm -rf conftest* ++ ;; ++*-*-irix6*) ++ # Find out which ABI we are using. ++ echo '#line __oline__ "configure"' > conftest.$ac_ext ++ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ if test "$lt_cv_prog_gnu_ld" = yes; then ++ case `/usr/bin/file conftest.$ac_objext` in ++ *32-bit*) ++ LD="${LD-ld} -melf32bsmip" ++ ;; ++ *N32*) ++ LD="${LD-ld} -melf32bmipn32" ++ ;; ++ *64-bit*) ++ LD="${LD-ld} -melf64bmip" ++ ;; ++ esac ++ else ++ case `/usr/bin/file conftest.$ac_objext` in ++ *32-bit*) ++ LD="${LD-ld} -32" ++ ;; ++ *N32*) ++ LD="${LD-ld} -n32" ++ ;; ++ *64-bit*) ++ LD="${LD-ld} -64" ++ ;; ++ esac ++ fi ++ fi ++ rm -rf conftest* ++ ;; ++ ++x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ ++s390*-*linux*|s390*-*tpf*|sparc*-*linux*) ++ # Find out which ABI we are using. ++ echo 'int i;' > conftest.$ac_ext ++ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ case `/usr/bin/file conftest.o` in ++ *32-bit*) ++ case $host in ++ x86_64-*kfreebsd*-gnu) ++ LD="${LD-ld} -m elf_i386_fbsd" ++ ;; ++ x86_64-*linux*) ++ LD="${LD-ld} -m elf_i386" ++ ;; ++ ppc64-*linux*|powerpc64-*linux*) ++ LD="${LD-ld} -m elf32ppclinux" ++ ;; ++ s390x-*linux*) ++ LD="${LD-ld} -m elf_s390" ++ ;; ++ sparc64-*linux*) ++ LD="${LD-ld} -m elf32_sparc" ++ ;; ++ esac ++ ;; ++ *64-bit*) ++ case $host in ++ x86_64-*kfreebsd*-gnu) ++ LD="${LD-ld} -m elf_x86_64_fbsd" ++ ;; ++ x86_64-*linux*) ++ LD="${LD-ld} -m elf_x86_64" ++ ;; ++ ppc*-*linux*|powerpc*-*linux*) ++ LD="${LD-ld} -m elf64ppc" ++ ;; ++ s390*-*linux*|s390*-*tpf*) ++ LD="${LD-ld} -m elf64_s390" ++ ;; ++ sparc*-*linux*) ++ LD="${LD-ld} -m elf64_sparc" ++ ;; ++ esac ++ ;; ++ esac ++ fi ++ rm -rf conftest* ++ ;; ++ ++*-*-sco3.2v5*) ++ # On SCO OpenServer 5, we need -belf to get full-featured binaries. ++ SAVE_CFLAGS="$CFLAGS" ++ CFLAGS="$CFLAGS -belf" ++ { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 ++echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } ++if test "${lt_cv_cc_needs_belf+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ lt_cv_cc_needs_belf=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ lt_cv_cc_needs_belf=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 ++echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } ++ if test x"$lt_cv_cc_needs_belf" != x"yes"; then ++ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf ++ CFLAGS="$SAVE_CFLAGS" ++ fi ++ ;; ++sparc*-*solaris*) ++ # Find out which ABI we are using. ++ echo 'int i;' > conftest.$ac_ext ++ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ case `/usr/bin/file conftest.o` in ++ *64-bit*) ++ case $lt_cv_prog_gnu_ld in ++ yes*) LD="${LD-ld} -m elf64_sparc" ;; ++ *) ++ if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then ++ LD="${LD-ld} -64" ++ fi ++ ;; ++ esac ++ ;; ++ esac ++ fi ++ rm -rf conftest* ++ ;; ++esac ++ ++need_locks="$enable_libtool_lock" ++ ++ ++ case $host_os in ++ rhapsody* | darwin*) ++ if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. ++set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_DSYMUTIL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$DSYMUTIL"; then ++ ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++DSYMUTIL=$ac_cv_prog_DSYMUTIL ++if test -n "$DSYMUTIL"; then ++ { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 ++echo "${ECHO_T}$DSYMUTIL" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_DSYMUTIL"; then ++ ac_ct_DSYMUTIL=$DSYMUTIL ++ # Extract the first word of "dsymutil", so it can be a program name with args. ++set dummy dsymutil; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_DSYMUTIL"; then ++ ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL ++if test -n "$ac_ct_DSYMUTIL"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 ++echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_DSYMUTIL" = x; then ++ DSYMUTIL=":" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ DSYMUTIL=$ac_ct_DSYMUTIL ++ fi ++else ++ DSYMUTIL="$ac_cv_prog_DSYMUTIL" ++fi ++ ++ if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. ++set dummy ${ac_tool_prefix}nmedit; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_NMEDIT+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$NMEDIT"; then ++ ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++NMEDIT=$ac_cv_prog_NMEDIT ++if test -n "$NMEDIT"; then ++ { echo "$as_me:$LINENO: result: $NMEDIT" >&5 ++echo "${ECHO_T}$NMEDIT" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_NMEDIT"; then ++ ac_ct_NMEDIT=$NMEDIT ++ # Extract the first word of "nmedit", so it can be a program name with args. ++set dummy nmedit; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_NMEDIT"; then ++ ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_NMEDIT="nmedit" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT ++if test -n "$ac_ct_NMEDIT"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 ++echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_NMEDIT" = x; then ++ NMEDIT=":" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ NMEDIT=$ac_ct_NMEDIT ++ fi ++else ++ NMEDIT="$ac_cv_prog_NMEDIT" ++fi ++ ++ if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. ++set dummy ${ac_tool_prefix}lipo; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_LIPO+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$LIPO"; then ++ ac_cv_prog_LIPO="$LIPO" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_LIPO="${ac_tool_prefix}lipo" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++LIPO=$ac_cv_prog_LIPO ++if test -n "$LIPO"; then ++ { echo "$as_me:$LINENO: result: $LIPO" >&5 ++echo "${ECHO_T}$LIPO" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_LIPO"; then ++ ac_ct_LIPO=$LIPO ++ # Extract the first word of "lipo", so it can be a program name with args. ++set dummy lipo; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_LIPO"; then ++ ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_LIPO="lipo" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO ++if test -n "$ac_ct_LIPO"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 ++echo "${ECHO_T}$ac_ct_LIPO" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_LIPO" = x; then ++ LIPO=":" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ LIPO=$ac_ct_LIPO ++ fi ++else ++ LIPO="$ac_cv_prog_LIPO" ++fi ++ ++ if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. ++set dummy ${ac_tool_prefix}otool; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_OTOOL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$OTOOL"; then ++ ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_OTOOL="${ac_tool_prefix}otool" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++OTOOL=$ac_cv_prog_OTOOL ++if test -n "$OTOOL"; then ++ { echo "$as_me:$LINENO: result: $OTOOL" >&5 ++echo "${ECHO_T}$OTOOL" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_OTOOL"; then ++ ac_ct_OTOOL=$OTOOL ++ # Extract the first word of "otool", so it can be a program name with args. ++set dummy otool; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_OTOOL"; then ++ ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_OTOOL="otool" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL ++if test -n "$ac_ct_OTOOL"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 ++echo "${ECHO_T}$ac_ct_OTOOL" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_OTOOL" = x; then ++ OTOOL=":" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ OTOOL=$ac_ct_OTOOL ++ fi ++else ++ OTOOL="$ac_cv_prog_OTOOL" ++fi ++ ++ if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. ++set dummy ${ac_tool_prefix}otool64; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_OTOOL64+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$OTOOL64"; then ++ ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++OTOOL64=$ac_cv_prog_OTOOL64 ++if test -n "$OTOOL64"; then ++ { echo "$as_me:$LINENO: result: $OTOOL64" >&5 ++echo "${ECHO_T}$OTOOL64" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_OTOOL64"; then ++ ac_ct_OTOOL64=$OTOOL64 ++ # Extract the first word of "otool64", so it can be a program name with args. ++set dummy otool64; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_OTOOL64"; then ++ ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_OTOOL64="otool64" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 ++if test -n "$ac_ct_OTOOL64"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 ++echo "${ECHO_T}$ac_ct_OTOOL64" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_OTOOL64" = x; then ++ OTOOL64=":" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ OTOOL64=$ac_ct_OTOOL64 ++ fi ++else ++ OTOOL64="$ac_cv_prog_OTOOL64" ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 ++echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } ++if test "${lt_cv_apple_cc_single_mod+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_apple_cc_single_mod=no ++ if test -z "${LT_MULTI_MODULE}"; then ++ # By default we will add the -single_module flag. You can override ++ # by either setting the environment variable LT_MULTI_MODULE ++ # non-empty at configure time, or by adding -multi_module to the ++ # link flags. ++ rm -rf libconftest.dylib* ++ echo "int foo(void){return 1;}" > conftest.c ++ echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ ++-dynamiclib -Wl,-single_module conftest.c" >&5 ++ $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ ++ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err ++ _lt_result=$? ++ if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then ++ lt_cv_apple_cc_single_mod=yes ++ else ++ cat conftest.err >&5 ++ fi ++ rm -rf libconftest.dylib* ++ rm -f conftest.* ++ fi ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 ++echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } ++ { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 ++echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } ++if test "${lt_cv_ld_exported_symbols_list+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_ld_exported_symbols_list=no ++ save_LDFLAGS=$LDFLAGS ++ echo "_main" > conftest.sym ++ LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ lt_cv_ld_exported_symbols_list=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ lt_cv_ld_exported_symbols_list=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LDFLAGS="$save_LDFLAGS" ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 ++echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } ++ case $host_os in ++ rhapsody* | darwin1.[012]) ++ _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; ++ darwin1.*) ++ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; ++ darwin*) # darwin 5.x on ++ # if running on 10.5 or later, the deployment target defaults ++ # to the OS version, if on x86, and 10.4, the deployment ++ # target defaults to 10.4. Don't you love it? ++ case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in ++ 10.0,*86*-darwin8*|10.0,*-darwin[91]*) ++ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; ++ 10.[012]*) ++ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; ++ 10.*) ++ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; ++ esac ++ ;; ++ esac ++ if test "$lt_cv_apple_cc_single_mod" = "yes"; then ++ _lt_dar_single_mod='$single_module' ++ fi ++ if test "$lt_cv_ld_exported_symbols_list" = "yes"; then ++ _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' ++ else ++ _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' ++ fi ++ if test "$DSYMUTIL" != ":"; then ++ _lt_dsymutil='~$DSYMUTIL $lib || :' ++ else ++ _lt_dsymutil= ++ fi ++ ;; ++ esac ++ ++ ++for ac_header in dlfcn.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ eval "$as_ac_Header=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_Header=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++ ++ ++ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++if test -z "$CXX"; then ++ if test -n "$CCC"; then ++ CXX=$CCC ++ else ++ if test -n "$ac_tool_prefix"; then ++ for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC ++ do ++ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ++set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_CXX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$CXX"; then ++ ac_cv_prog_CXX="$CXX" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++CXX=$ac_cv_prog_CXX ++if test -n "$CXX"; then ++ { echo "$as_me:$LINENO: result: $CXX" >&5 ++echo "${ECHO_T}$CXX" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$CXX" && break ++ done ++fi ++if test -z "$CXX"; then ++ ac_ct_CXX=$CXX ++ for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_CXX"; then ++ ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_CXX="$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_CXX=$ac_cv_prog_ac_ct_CXX ++if test -n "$ac_ct_CXX"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 ++echo "${ECHO_T}$ac_ct_CXX" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$ac_ct_CXX" && break ++done ++ ++ if test "x$ac_ct_CXX" = x; then ++ CXX="g++" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ CXX=$ac_ct_CXX ++ fi ++fi ++ ++ fi ++fi ++# Provide some information about the compiler. ++echo "$as_me:$LINENO: checking for C++ compiler version" >&5 ++ac_compiler=`set X $ac_compile; echo $2` ++{ (ac_try="$ac_compiler --version >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler --version >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -v >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -v >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -V >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -V >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++ ++{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 ++echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } ++if test "${ac_cv_cxx_compiler_gnu+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++#ifndef __GNUC__ ++ choke me ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_compiler_gnu=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_compiler_gnu=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ac_cv_cxx_compiler_gnu=$ac_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 ++echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } ++GXX=`test $ac_compiler_gnu = yes && echo yes` ++ac_test_CXXFLAGS=${CXXFLAGS+set} ++ac_save_CXXFLAGS=$CXXFLAGS ++{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 ++echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } ++if test "${ac_cv_prog_cxx_g+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_save_cxx_werror_flag=$ac_cxx_werror_flag ++ ac_cxx_werror_flag=yes ++ ac_cv_prog_cxx_g=no ++ CXXFLAGS="-g" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_cxx_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ CXXFLAGS="" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ : ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cxx_werror_flag=$ac_save_cxx_werror_flag ++ CXXFLAGS="-g" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_cxx_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_cxx_werror_flag=$ac_save_cxx_werror_flag ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 ++echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } ++if test "$ac_test_CXXFLAGS" = set; then ++ CXXFLAGS=$ac_save_CXXFLAGS ++elif test $ac_cv_prog_cxx_g = yes; then ++ if test "$GXX" = yes; then ++ CXXFLAGS="-g -O2" ++ else ++ CXXFLAGS="-g" ++ fi ++else ++ if test "$GXX" = yes; then ++ CXXFLAGS="-O2" ++ else ++ CXXFLAGS= ++ fi ++fi ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++depcc="$CXX" am_compiler_list= ++ ++{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 ++echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } ++if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then ++ # We make a subdir and do the tests there. Otherwise we can end up ++ # making bogus files that we don't know about and never remove. For ++ # instance it was reported that on HP-UX the gcc test will end up ++ # making a dummy file named `D' -- because `-MD' means `put the output ++ # in D'. ++ mkdir conftest.dir ++ # Copy depcomp to subdir because otherwise we won't find it if we're ++ # using a relative directory. ++ cp "$am_depcomp" conftest.dir ++ cd conftest.dir ++ # We will build objects and dependencies in a subdirectory because ++ # it helps to detect inapplicable dependency modes. For instance ++ # both Tru64's cc and ICC support -MD to output dependencies as a ++ # side effect of compilation, but ICC will put the dependencies in ++ # the current directory while Tru64 will put them in the object ++ # directory. ++ mkdir sub ++ ++ am_cv_CXX_dependencies_compiler_type=none ++ if test "$am_compiler_list" = ""; then ++ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` ++ fi ++ for depmode in $am_compiler_list; do ++ # Setup a source with many dependencies, because some compilers ++ # like to wrap large dependency lists on column 80 (with \), and ++ # we should not choose a depcomp mode which is confused by this. ++ # ++ # We need to recreate these files for each test, as the compiler may ++ # overwrite some of them when testing with obscure command lines. ++ # This happens at least with the AIX C compiler. ++ : > sub/conftest.c ++ for i in 1 2 3 4 5 6; do ++ echo '#include "conftst'$i'.h"' >> sub/conftest.c ++ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with ++ # Solaris 8's {/usr,}/bin/sh. ++ touch sub/conftst$i.h ++ done ++ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf ++ ++ case $depmode in ++ nosideeffect) ++ # after this tag, mechanisms are not by side-effect, so they'll ++ # only be used when explicitly requested ++ if test "x$enable_dependency_tracking" = xyes; then ++ continue ++ else ++ break ++ fi ++ ;; ++ none) break ;; ++ esac ++ # We check with `-c' and `-o' for the sake of the "dashmstdout" ++ # mode. It turns out that the SunPro C++ compiler does not properly ++ # handle `-M -o', and we need to detect this. ++ if depmode=$depmode \ ++ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ ++ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ ++ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ ++ >/dev/null 2>conftest.err && ++ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ++ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then ++ # icc doesn't choke on unknown options, it will just issue warnings ++ # or remarks (even with -Werror). So we grep stderr for any message ++ # that says an option was ignored or not supported. ++ # When given -MP, icc 7.0 and 7.1 complain thusly: ++ # icc: Command line warning: ignoring option '-M'; no argument required ++ # The diagnosis changed in icc 8.0: ++ # icc: Command line remark: option '-MP' not supported ++ if (grep 'ignoring option' conftest.err || ++ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else ++ am_cv_CXX_dependencies_compiler_type=$depmode ++ break ++ fi ++ fi ++ done ++ ++ cd .. ++ rm -rf conftest.dir ++else ++ am_cv_CXX_dependencies_compiler_type=none ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 ++echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } ++CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type ++ ++ if ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then ++ am__fastdepCXX_TRUE= ++ am__fastdepCXX_FALSE='#' ++else ++ am__fastdepCXX_TRUE='#' ++ am__fastdepCXX_FALSE= ++fi ++ ++ ++if test -n "$CXX" && ( test "X$CXX" != "Xno" && ++ ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || ++ (test "X$CXX" != "Xg++"))) ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 ++echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } ++if test -z "$CXXCPP"; then ++ if test "${ac_cv_prog_CXXCPP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Double quotes because CXXCPP needs to be expanded ++ for CXXCPP in "$CXX -E" "/lib/cpp" ++ do ++ ac_preproc_ok=false ++for ac_cxx_preproc_warn_flag in '' yes ++do ++ # Use a header file that comes with gcc, so configuring glibc ++ # with a fresh cross-compiler works. ++ # Prefer to if __STDC__ is defined, since ++ # exists even on freestanding compilers. ++ # On the NeXT, cc -E runs the code through the compiler's parser, ++ # not just through cpp. "Syntax error" is here to catch this case. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@ifdef __STDC__ ++@%:@ include ++@%:@else ++@%:@ include ++@%:@endif ++ Syntax error ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ : ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # Broken: fails on valid input. ++continue ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++ ++ # OK, works on sane cases. Now check whether nonexistent headers ++ # can be detected and how. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ # Broken: success on invalid input. ++continue ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # Passes both tests. ++ac_preproc_ok=: ++break ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++ ++done ++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ++rm -f conftest.err conftest.$ac_ext ++if $ac_preproc_ok; then ++ break ++fi ++ ++ done ++ ac_cv_prog_CXXCPP=$CXXCPP ++ ++fi ++ CXXCPP=$ac_cv_prog_CXXCPP ++else ++ ac_cv_prog_CXXCPP=$CXXCPP ++fi ++{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 ++echo "${ECHO_T}$CXXCPP" >&6; } ++ac_preproc_ok=false ++for ac_cxx_preproc_warn_flag in '' yes ++do ++ # Use a header file that comes with gcc, so configuring glibc ++ # with a fresh cross-compiler works. ++ # Prefer to if __STDC__ is defined, since ++ # exists even on freestanding compilers. ++ # On the NeXT, cc -E runs the code through the compiler's parser, ++ # not just through cpp. "Syntax error" is here to catch this case. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@ifdef __STDC__ ++@%:@ include ++@%:@else ++@%:@ include ++@%:@endif ++ Syntax error ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ : ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # Broken: fails on valid input. ++continue ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++ ++ # OK, works on sane cases. Now check whether nonexistent headers ++ # can be detected and how. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ # Broken: success on invalid input. ++continue ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # Passes both tests. ++ac_preproc_ok=: ++break ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++ ++done ++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ++rm -f conftest.err conftest.$ac_ext ++if $ac_preproc_ok; then ++ : ++else ++ _lt_caught_CXX_error=yes ++fi ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++else ++ _lt_caught_CXX_error=yes ++fi ++ ++ ++ ++ ++ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++if test -n "$ac_tool_prefix"; then ++ for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn ++ do ++ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ++set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_F77+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$F77"; then ++ ac_cv_prog_F77="$F77" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_F77="$ac_tool_prefix$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++F77=$ac_cv_prog_F77 ++if test -n "$F77"; then ++ { echo "$as_me:$LINENO: result: $F77" >&5 ++echo "${ECHO_T}$F77" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$F77" && break ++ done ++fi ++if test -z "$F77"; then ++ ac_ct_F77=$F77 ++ for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_F77+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_F77"; then ++ ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_F77="$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_F77=$ac_cv_prog_ac_ct_F77 ++if test -n "$ac_ct_F77"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 ++echo "${ECHO_T}$ac_ct_F77" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$ac_ct_F77" && break ++done ++ ++ if test "x$ac_ct_F77" = x; then ++ F77="" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ F77=$ac_ct_F77 ++ fi ++fi ++ ++ ++# Provide some information about the compiler. ++echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 ++ac_compiler=`set X $ac_compile; echo $2` ++{ (ac_try="$ac_compiler --version >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler --version >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -v >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -v >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -V >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -V >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++rm -f a.out ++ ++# If we don't use `.F' as extension, the preprocessor is not run on the ++# input file. (Note that this only needs to work for GNU compilers.) ++ac_save_ext=$ac_ext ++ac_ext=F ++{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 ++echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } ++if test "${ac_cv_f77_compiler_gnu+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++#ifndef __GNUC__ ++ choke me ++#endif ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_compiler_gnu=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_compiler_gnu=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ac_cv_f77_compiler_gnu=$ac_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 ++echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } ++ac_ext=$ac_save_ext ++ac_test_FFLAGS=${FFLAGS+set} ++ac_save_FFLAGS=$FFLAGS ++FFLAGS= ++{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 ++echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } ++if test "${ac_cv_prog_f77_g+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ FFLAGS=-g ++cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_f77_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_prog_f77_g=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 ++echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } ++if test "$ac_test_FFLAGS" = set; then ++ FFLAGS=$ac_save_FFLAGS ++elif test $ac_cv_prog_f77_g = yes; then ++ if test "x$ac_cv_f77_compiler_gnu" = xyes; then ++ FFLAGS="-g -O2" ++ else ++ FFLAGS="-g" ++ fi ++else ++ if test "x$ac_cv_f77_compiler_gnu" = xyes; then ++ FFLAGS="-O2" ++ else ++ FFLAGS= ++ fi ++fi ++ ++G77=`test $ac_compiler_gnu = yes && echo yes` ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++if test -z "$F77" || test "X$F77" = "Xno"; then ++ _lt_disable_F77=yes ++fi ++ ++ ++ ++ ++ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++if test -n "$ac_tool_prefix"; then ++ for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 ++ do ++ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ++set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_FC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$FC"; then ++ ac_cv_prog_FC="$FC" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_FC="$ac_tool_prefix$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++FC=$ac_cv_prog_FC ++if test -n "$FC"; then ++ { echo "$as_me:$LINENO: result: $FC" >&5 ++echo "${ECHO_T}$FC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$FC" && break ++ done ++fi ++if test -z "$FC"; then ++ ac_ct_FC=$FC ++ for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_FC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_FC"; then ++ ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_FC="$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_FC=$ac_cv_prog_ac_ct_FC ++if test -n "$ac_ct_FC"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 ++echo "${ECHO_T}$ac_ct_FC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$ac_ct_FC" && break ++done ++ ++ if test "x$ac_ct_FC" = x; then ++ FC="" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ FC=$ac_ct_FC ++ fi ++fi ++ ++ ++# Provide some information about the compiler. ++echo "$as_me:$LINENO: checking for Fortran compiler version" >&5 ++ac_compiler=`set X $ac_compile; echo $2` ++{ (ac_try="$ac_compiler --version >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler --version >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -v >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -v >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -V >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -V >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++rm -f a.out ++ ++# If we don't use `.F' as extension, the preprocessor is not run on the ++# input file. (Note that this only needs to work for GNU compilers.) ++ac_save_ext=$ac_ext ++ac_ext=F ++{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 ++echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6; } ++if test "${ac_cv_fc_compiler_gnu+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++#ifndef __GNUC__ ++ choke me ++#endif ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_compiler_gnu=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_compiler_gnu=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ac_cv_fc_compiler_gnu=$ac_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 ++echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6; } ++ac_ext=$ac_save_ext ++ac_test_FFLAGS=${FCFLAGS+set} ++ac_save_FFLAGS=$FCFLAGS ++FCFLAGS= ++{ echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 ++echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6; } ++if test "${ac_cv_prog_fc_g+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ FCFLAGS=-g ++cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_fc_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_prog_fc_g=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 ++echo "${ECHO_T}$ac_cv_prog_fc_g" >&6; } ++if test "$ac_test_FFLAGS" = set; then ++ FCFLAGS=$ac_save_FFLAGS ++elif test $ac_cv_prog_fc_g = yes; then ++ if test "x$ac_cv_fc_compiler_gnu" = xyes; then ++ FCFLAGS="-g -O2" ++ else ++ FCFLAGS="-g" ++ fi ++else ++ if test "x$ac_cv_fc_compiler_gnu" = xyes; then ++ FCFLAGS="-O2" ++ else ++ FCFLAGS= ++ fi ++fi ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++if test -z "$FC" || test "X$FC" = "Xno"; then ++ _lt_disable_FC=yes ++fi ++ ++ ++ ++ ++# Set options ++enable_dlopen=yes ++enable_win32_dll=yes ++ ++case $host in ++*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) ++ if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. ++set dummy ${ac_tool_prefix}as; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_AS+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$AS"; then ++ ac_cv_prog_AS="$AS" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_AS="${ac_tool_prefix}as" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++AS=$ac_cv_prog_AS ++if test -n "$AS"; then ++ { echo "$as_me:$LINENO: result: $AS" >&5 ++echo "${ECHO_T}$AS" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_AS"; then ++ ac_ct_AS=$AS ++ # Extract the first word of "as", so it can be a program name with args. ++set dummy as; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_AS+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_AS"; then ++ ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_AS="as" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_AS=$ac_cv_prog_ac_ct_AS ++if test -n "$ac_ct_AS"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 ++echo "${ECHO_T}$ac_ct_AS" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_AS" = x; then ++ AS="false" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ AS=$ac_ct_AS ++ fi ++else ++ AS="$ac_cv_prog_AS" ++fi ++ ++ if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. ++set dummy ${ac_tool_prefix}dlltool; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_DLLTOOL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$DLLTOOL"; then ++ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++DLLTOOL=$ac_cv_prog_DLLTOOL ++if test -n "$DLLTOOL"; then ++ { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 ++echo "${ECHO_T}$DLLTOOL" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_DLLTOOL"; then ++ ac_ct_DLLTOOL=$DLLTOOL ++ # Extract the first word of "dlltool", so it can be a program name with args. ++set dummy dlltool; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_DLLTOOL"; then ++ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_DLLTOOL="dlltool" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL ++if test -n "$ac_ct_DLLTOOL"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 ++echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_DLLTOOL" = x; then ++ DLLTOOL="false" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ DLLTOOL=$ac_ct_DLLTOOL ++ fi ++else ++ DLLTOOL="$ac_cv_prog_DLLTOOL" ++fi ++ ++ if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. ++set dummy ${ac_tool_prefix}objdump; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_OBJDUMP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$OBJDUMP"; then ++ ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++OBJDUMP=$ac_cv_prog_OBJDUMP ++if test -n "$OBJDUMP"; then ++ { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 ++echo "${ECHO_T}$OBJDUMP" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_OBJDUMP"; then ++ ac_ct_OBJDUMP=$OBJDUMP ++ # Extract the first word of "objdump", so it can be a program name with args. ++set dummy objdump; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_OBJDUMP"; then ++ ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_OBJDUMP="objdump" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP ++if test -n "$ac_ct_OBJDUMP"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 ++echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_OBJDUMP" = x; then ++ OBJDUMP="false" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ OBJDUMP=$ac_ct_OBJDUMP ++ fi ++else ++ OBJDUMP="$ac_cv_prog_OBJDUMP" ++fi ++ ++ ;; ++esac ++ ++test -z "$AS" && AS=as ++ ++ ++ ++ ++ ++test -z "$DLLTOOL" && DLLTOOL=dlltool ++ ++ ++ ++ ++ ++test -z "$OBJDUMP" && OBJDUMP=objdump ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++# Check whether --with-pic was given. ++if test "${with_pic+set}" = set; then ++ withval=$with_pic; pic_mode="$withval" ++else ++ pic_mode=default ++fi ++ ++ ++test -z "$pic_mode" && pic_mode=default ++ ++ ++ ++ ++ ++ ++ ++ # Check whether --enable-fast-install was given. ++if test "${enable_fast_install+set}" = set; then ++ enableval=$enable_fast_install; p=${PACKAGE-default} ++ case $enableval in ++ yes) enable_fast_install=yes ;; ++ no) enable_fast_install=no ;; ++ *) ++ enable_fast_install=no ++ # Look at the argument we got. We use all the common list separators. ++ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," ++ for pkg in $enableval; do ++ IFS="$lt_save_ifs" ++ if test "X$pkg" = "X$p"; then ++ enable_fast_install=yes ++ fi ++ done ++ IFS="$lt_save_ifs" ++ ;; ++ esac ++else ++ enable_fast_install=yes ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++# This can be used to rebuild libtool when needed ++LIBTOOL_DEPS="$ltmain" ++ ++# Always use our own libtool. ++LIBTOOL='$(SHELL) $(top_builddir)/libtool' ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++test -z "$LN_S" && LN_S="ln -s" ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++if test -n "${ZSH_VERSION+set}" ; then ++ setopt NO_GLOB_SUBST ++fi ++ ++{ echo "$as_me:$LINENO: checking for objdir" >&5 ++echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } ++if test "${lt_cv_objdir+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ rm -f .libs 2>/dev/null ++mkdir .libs 2>/dev/null ++if test -d .libs; then ++ lt_cv_objdir=.libs ++else ++ # MS-DOS does not allow filenames that begin with a dot. ++ lt_cv_objdir=_libs ++fi ++rmdir .libs 2>/dev/null ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 ++echo "${ECHO_T}$lt_cv_objdir" >&6; } ++objdir=$lt_cv_objdir ++ ++ ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define LT_OBJDIR "$lt_cv_objdir/" ++_ACEOF ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++case $host_os in ++aix3*) ++ # AIX sometimes has problems with the GCC collect2 program. For some ++ # reason, if we set the COLLECT_NAMES environment variable, the problems ++ # vanish in a puff of smoke. ++ if test "X${COLLECT_NAMES+set}" != Xset; then ++ COLLECT_NAMES= ++ export COLLECT_NAMES ++ fi ++ ;; ++esac ++ ++# Sed substitution that helps us do robust quoting. It backslashifies ++# metacharacters that are still active within double-quoted strings. ++sed_quote_subst='s/\(["`$\\]\)/\\\1/g' ++ ++# Same as above, but do not quote variable references. ++double_quote_subst='s/\(["`\\]\)/\\\1/g' ++ ++# Sed substitution to delay expansion of an escaped shell variable in a ++# double_quote_subst'ed string. ++delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' ++ ++# Sed substitution to delay expansion of an escaped single quote. ++delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' ++ ++# Sed substitution to avoid accidental globbing in evaled expressions ++no_glob_subst='s/\*/\\\*/g' ++ ++# Global variables: ++ofile=libtool ++can_build_shared=yes ++ ++# All known linkers require a `.a' archive for static linking (except MSVC, ++# which needs '.lib'). ++libext=a ++ ++with_gnu_ld="$lt_cv_prog_gnu_ld" ++ ++old_CC="$CC" ++old_CFLAGS="$CFLAGS" ++ ++# Set sane defaults for various variables ++test -z "$CC" && CC=cc ++test -z "$LTCC" && LTCC=$CC ++test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS ++test -z "$LD" && LD=ld ++test -z "$ac_objext" && ac_objext=o ++ ++for cc_temp in $compiler""; do ++ case $cc_temp in ++ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; ++ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; ++ \-*) ;; ++ *) break;; ++ esac ++done ++cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` ++ ++ ++# Only perform the check for file, if the check method requires it ++test -z "$MAGIC_CMD" && MAGIC_CMD=file ++case $deplibs_check_method in ++file_magic*) ++ if test "$file_magic_cmd" = '$MAGIC_CMD'; then ++ { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 ++echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } ++if test "${lt_cv_path_MAGIC_CMD+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ case $MAGIC_CMD in ++[\\/*] | ?:[\\/]*) ++ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ++ ;; ++*) ++ lt_save_MAGIC_CMD="$MAGIC_CMD" ++ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ++ ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" ++ for ac_dir in $ac_dummy; do ++ IFS="$lt_save_ifs" ++ test -z "$ac_dir" && ac_dir=. ++ if test -f $ac_dir/${ac_tool_prefix}file; then ++ lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" ++ if test -n "$file_magic_test_file"; then ++ case $deplibs_check_method in ++ "file_magic "*) ++ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` ++ MAGIC_CMD="$lt_cv_path_MAGIC_CMD" ++ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | ++ $EGREP "$file_magic_regex" > /dev/null; then ++ : ++ else ++ cat <<_LT_EOF 1>&2 ++ ++*** Warning: the command libtool uses to detect shared libraries, ++*** $file_magic_cmd, produces output that libtool cannot recognize. ++*** The result is that libtool may fail to recognize shared libraries ++*** as such. This will affect the creation of libtool libraries that ++*** depend on shared libraries, but programs linked with such libtool ++*** libraries will work regardless of this problem. Nevertheless, you ++*** may want to report the problem to your system manager and/or to ++*** bug-libtool@gnu.org ++ ++_LT_EOF ++ fi ;; ++ esac ++ fi ++ break ++ fi ++ done ++ IFS="$lt_save_ifs" ++ MAGIC_CMD="$lt_save_MAGIC_CMD" ++ ;; ++esac ++fi ++ ++MAGIC_CMD="$lt_cv_path_MAGIC_CMD" ++if test -n "$MAGIC_CMD"; then ++ { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 ++echo "${ECHO_T}$MAGIC_CMD" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ ++ ++ ++if test -z "$lt_cv_path_MAGIC_CMD"; then ++ if test -n "$ac_tool_prefix"; then ++ { echo "$as_me:$LINENO: checking for file" >&5 ++echo $ECHO_N "checking for file... $ECHO_C" >&6; } ++if test "${lt_cv_path_MAGIC_CMD+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ case $MAGIC_CMD in ++[\\/*] | ?:[\\/]*) ++ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ++ ;; ++*) ++ lt_save_MAGIC_CMD="$MAGIC_CMD" ++ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ++ ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" ++ for ac_dir in $ac_dummy; do ++ IFS="$lt_save_ifs" ++ test -z "$ac_dir" && ac_dir=. ++ if test -f $ac_dir/file; then ++ lt_cv_path_MAGIC_CMD="$ac_dir/file" ++ if test -n "$file_magic_test_file"; then ++ case $deplibs_check_method in ++ "file_magic "*) ++ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` ++ MAGIC_CMD="$lt_cv_path_MAGIC_CMD" ++ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | ++ $EGREP "$file_magic_regex" > /dev/null; then ++ : ++ else ++ cat <<_LT_EOF 1>&2 ++ ++*** Warning: the command libtool uses to detect shared libraries, ++*** $file_magic_cmd, produces output that libtool cannot recognize. ++*** The result is that libtool may fail to recognize shared libraries ++*** as such. This will affect the creation of libtool libraries that ++*** depend on shared libraries, but programs linked with such libtool ++*** libraries will work regardless of this problem. Nevertheless, you ++*** may want to report the problem to your system manager and/or to ++*** bug-libtool@gnu.org ++ ++_LT_EOF ++ fi ;; ++ esac ++ fi ++ break ++ fi ++ done ++ IFS="$lt_save_ifs" ++ MAGIC_CMD="$lt_save_MAGIC_CMD" ++ ;; ++esac ++fi ++ ++MAGIC_CMD="$lt_cv_path_MAGIC_CMD" ++if test -n "$MAGIC_CMD"; then ++ { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 ++echo "${ECHO_T}$MAGIC_CMD" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ else ++ MAGIC_CMD=: ++ fi ++fi ++ ++ fi ++ ;; ++esac ++ ++# Use C for the default configuration in the libtool script ++ ++lt_save_CC="$CC" ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++# Source file extension for C test sources. ++ac_ext=c ++ ++# Object file extension for compiled C test sources. ++objext=o ++objext=$objext ++ ++# Code to be used in simple compile tests ++lt_simple_compile_test_code="int some_variable = 0;" ++ ++# Code to be used in simple link tests ++lt_simple_link_test_code='int main(){return(0);}' ++ ++ ++ ++ ++ ++ ++ ++# If no C compiler was specified, use CC. ++LTCC=${LTCC-"$CC"} ++ ++# If no C compiler flags were specified, use CFLAGS. ++LTCFLAGS=${LTCFLAGS-"$CFLAGS"} ++ ++# Allow CC to be a program name with arguments. ++compiler=$CC ++ ++# Save the default compiler, since it gets overwritten when the other ++# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. ++compiler_DEFAULT=$CC ++ ++# save warnings/boilerplate of simple test code ++ac_outfile=conftest.$ac_objext ++echo "$lt_simple_compile_test_code" >conftest.$ac_ext ++eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err ++_lt_compiler_boilerplate=`cat conftest.err` ++$RM conftest* ++ ++ac_outfile=conftest.$ac_objext ++echo "$lt_simple_link_test_code" >conftest.$ac_ext ++eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err ++_lt_linker_boilerplate=`cat conftest.err` ++$RM -r conftest* ++ ++ ++## CAVEAT EMPTOR: ++## There is no encapsulation within the following macros, do not change ++## the running order or otherwise move them around unless you know exactly ++## what you are doing... ++if test -n "$compiler"; then ++ ++lt_prog_compiler_no_builtin_flag= ++ ++if test "$GCC" = yes; then ++ lt_prog_compiler_no_builtin_flag=' -fno-builtin' ++ ++ { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 ++echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_rtti_exceptions=no ++ ac_outfile=conftest.$ac_objext ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ lt_compiler_flag="-fno-rtti -fno-exceptions" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ # The option is referenced via a variable to avoid confusing sed. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>conftest.err) ++ ac_status=$? ++ cat conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s "$ac_outfile"; then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings other than the usual output. ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp ++ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 ++ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_rtti_exceptions=yes ++ fi ++ fi ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } ++ ++if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then ++ lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" ++else ++ : ++fi ++ ++fi ++ ++ ++ ++ ++ ++ ++ lt_prog_compiler_wl= ++lt_prog_compiler_pic= ++lt_prog_compiler_static= ++ ++{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 ++echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } ++ ++ if test "$GCC" = yes; then ++ lt_prog_compiler_wl='-Wl,' ++ lt_prog_compiler_static='-static' ++ ++ case $host_os in ++ aix*) ++ # All AIX code is PIC. ++ if test "$host_cpu" = ia64; then ++ # AIX 5 now supports IA64 processor ++ lt_prog_compiler_static='-Bstatic' ++ fi ++ ;; ++ ++ amigaos*) ++ case $host_cpu in ++ powerpc) ++ # see comment about AmigaOS4 .so support ++ lt_prog_compiler_pic='-fPIC' ++ ;; ++ m68k) ++ # FIXME: we need at least 68020 code to build shared libraries, but ++ # adding the `-m68020' flag to GCC prevents building anything better, ++ # like `-m68040'. ++ lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ++ ;; ++ esac ++ ;; ++ ++ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) ++ # PIC is the default for these OSes. ++ ;; ++ ++ mingw* | cygwin* | pw32* | os2* | cegcc*) ++ # This hack is so that the source file can tell whether it is being ++ # built for inclusion in a dll (and should export symbols for example). ++ # Although the cygwin gcc ignores -fPIC, still need this for old-style ++ # (--disable-auto-import) libraries ++ lt_prog_compiler_pic='-DDLL_EXPORT' ++ ;; ++ ++ darwin* | rhapsody*) ++ # PIC is the default on this platform ++ # Common symbols not allowed in MH_DYLIB files ++ lt_prog_compiler_pic='-fno-common' ++ ;; ++ ++ hpux*) ++ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit ++ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag ++ # sets the default TLS model and affects inlining. ++ case $host_cpu in ++ hppa*64*) ++ # +Z the default ++ ;; ++ *) ++ lt_prog_compiler_pic='-fPIC' ++ ;; ++ esac ++ ;; ++ ++ interix[3-9]*) ++ # Interix 3.x gcc -fpic/-fPIC options generate broken code. ++ # Instead, we relocate shared libraries at runtime. ++ ;; ++ ++ msdosdjgpp*) ++ # Just because we use GCC doesn't mean we suddenly get shared libraries ++ # on systems that don't support them. ++ lt_prog_compiler_can_build_shared=no ++ enable_shared=no ++ ;; ++ ++ *nto* | *qnx*) ++ # QNX uses GNU C++, but need to define -shared option too, otherwise ++ # it will coredump. ++ lt_prog_compiler_pic='-fPIC -shared' ++ ;; ++ ++ sysv4*MP*) ++ if test -d /usr/nec; then ++ lt_prog_compiler_pic=-Kconform_pic ++ fi ++ ;; ++ ++ *) ++ lt_prog_compiler_pic='-fPIC' ++ ;; ++ esac ++ else ++ # PORTME Check for flag to pass linker flags through the system compiler. ++ case $host_os in ++ aix*) ++ lt_prog_compiler_wl='-Wl,' ++ if test "$host_cpu" = ia64; then ++ # AIX 5 now supports IA64 processor ++ lt_prog_compiler_static='-Bstatic' ++ else ++ lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' ++ fi ++ ;; ++ ++ mingw* | cygwin* | pw32* | os2* | cegcc*) ++ # This hack is so that the source file can tell whether it is being ++ # built for inclusion in a dll (and should export symbols for example). ++ lt_prog_compiler_pic='-DDLL_EXPORT' ++ ;; ++ ++ hpux9* | hpux10* | hpux11*) ++ lt_prog_compiler_wl='-Wl,' ++ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but ++ # not for PA HP-UX. ++ case $host_cpu in ++ hppa*64*|ia64*) ++ # +Z the default ++ ;; ++ *) ++ lt_prog_compiler_pic='+Z' ++ ;; ++ esac ++ # Is there a better lt_prog_compiler_static that works with the bundled CC? ++ lt_prog_compiler_static='${wl}-a ${wl}archive' ++ ;; ++ ++ irix5* | irix6* | nonstopux*) ++ lt_prog_compiler_wl='-Wl,' ++ # PIC (with -KPIC) is the default. ++ lt_prog_compiler_static='-non_shared' ++ ;; ++ ++ linux* | k*bsd*-gnu) ++ case $cc_basename in ++ # old Intel for x86_64 which still supported -KPIC. ++ ecc*) ++ lt_prog_compiler_wl='-Wl,' ++ lt_prog_compiler_pic='-KPIC' ++ lt_prog_compiler_static='-static' ++ ;; ++ # icc used to be incompatible with GCC. ++ # ICC 10 doesn't accept -KPIC any more. ++ icc* | ifort*) ++ lt_prog_compiler_wl='-Wl,' ++ lt_prog_compiler_pic='-fPIC' ++ lt_prog_compiler_static='-static' ++ ;; ++ # Lahey Fortran 8.1. ++ lf95*) ++ lt_prog_compiler_wl='-Wl,' ++ lt_prog_compiler_pic='--shared' ++ lt_prog_compiler_static='--static' ++ ;; ++ pgcc* | pgf77* | pgf90* | pgf95*) ++ # Portland Group compilers (*not* the Pentium gcc compiler, ++ # which looks to be a dead project) ++ lt_prog_compiler_wl='-Wl,' ++ lt_prog_compiler_pic='-fpic' ++ lt_prog_compiler_static='-Bstatic' ++ ;; ++ ccc*) ++ lt_prog_compiler_wl='-Wl,' ++ # All Alpha code is PIC. ++ lt_prog_compiler_static='-non_shared' ++ ;; ++ xl*) ++ # IBM XL C 8.0/Fortran 10.1 on PPC ++ lt_prog_compiler_wl='-Wl,' ++ lt_prog_compiler_pic='-qpic' ++ lt_prog_compiler_static='-qstaticlink' ++ ;; ++ *) ++ case `$CC -V 2>&1 | sed 5q` in ++ *Sun\ F* | *Sun*Fortran*) ++ # Sun Fortran 8.3 passes all unrecognized flags to the linker ++ lt_prog_compiler_pic='-KPIC' ++ lt_prog_compiler_static='-Bstatic' ++ lt_prog_compiler_wl='' ++ ;; ++ *Sun\ C*) ++ # Sun C 5.9 ++ lt_prog_compiler_pic='-KPIC' ++ lt_prog_compiler_static='-Bstatic' ++ lt_prog_compiler_wl='-Wl,' ++ ;; ++ esac ++ ;; ++ esac ++ ;; ++ ++ newsos6) ++ lt_prog_compiler_pic='-KPIC' ++ lt_prog_compiler_static='-Bstatic' ++ ;; ++ ++ *nto* | *qnx*) ++ # QNX uses GNU C++, but need to define -shared option too, otherwise ++ # it will coredump. ++ lt_prog_compiler_pic='-fPIC -shared' ++ ;; ++ ++ osf3* | osf4* | osf5*) ++ lt_prog_compiler_wl='-Wl,' ++ # All OSF/1 code is PIC. ++ lt_prog_compiler_static='-non_shared' ++ ;; ++ ++ rdos*) ++ lt_prog_compiler_static='-non_shared' ++ ;; ++ ++ solaris*) ++ lt_prog_compiler_pic='-KPIC' ++ lt_prog_compiler_static='-Bstatic' ++ case $cc_basename in ++ f77* | f90* | f95*) ++ lt_prog_compiler_wl='-Qoption ld ';; ++ *) ++ lt_prog_compiler_wl='-Wl,';; ++ esac ++ ;; ++ ++ sunos4*) ++ lt_prog_compiler_wl='-Qoption ld ' ++ lt_prog_compiler_pic='-PIC' ++ lt_prog_compiler_static='-Bstatic' ++ ;; ++ ++ sysv4 | sysv4.2uw2* | sysv4.3*) ++ lt_prog_compiler_wl='-Wl,' ++ lt_prog_compiler_pic='-KPIC' ++ lt_prog_compiler_static='-Bstatic' ++ ;; ++ ++ sysv4*MP*) ++ if test -d /usr/nec ;then ++ lt_prog_compiler_pic='-Kconform_pic' ++ lt_prog_compiler_static='-Bstatic' ++ fi ++ ;; ++ ++ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) ++ lt_prog_compiler_wl='-Wl,' ++ lt_prog_compiler_pic='-KPIC' ++ lt_prog_compiler_static='-Bstatic' ++ ;; ++ ++ unicos*) ++ lt_prog_compiler_wl='-Wl,' ++ lt_prog_compiler_can_build_shared=no ++ ;; ++ ++ uts4*) ++ lt_prog_compiler_pic='-pic' ++ lt_prog_compiler_static='-Bstatic' ++ ;; ++ ++ *) ++ lt_prog_compiler_can_build_shared=no ++ ;; ++ esac ++ fi ++ ++case $host_os in ++ # For platforms which do not support PIC, -DPIC is meaningless: ++ *djgpp*) ++ lt_prog_compiler_pic= ++ ;; ++ *) ++ lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC" ++ ;; ++esac ++{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 ++echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } ++ ++ ++ ++ ++ ++ ++# ++# Check to make sure the PIC flag actually works. ++# ++if test -n "$lt_prog_compiler_pic"; then ++ { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 ++echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_pic_works+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_pic_works=no ++ ac_outfile=conftest.$ac_objext ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ # The option is referenced via a variable to avoid confusing sed. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>conftest.err) ++ ac_status=$? ++ cat conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s "$ac_outfile"; then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings other than the usual output. ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp ++ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 ++ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_pic_works=yes ++ fi ++ fi ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } ++ ++if test x"$lt_cv_prog_compiler_pic_works" = xyes; then ++ case $lt_prog_compiler_pic in ++ "" | " "*) ;; ++ *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; ++ esac ++else ++ lt_prog_compiler_pic= ++ lt_prog_compiler_can_build_shared=no ++fi ++ ++fi ++ ++ ++ ++ ++ ++ ++# ++# Check to make sure the static flag actually works. ++# ++wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" ++{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 ++echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_static_works+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_static_works=no ++ save_LDFLAGS="$LDFLAGS" ++ LDFLAGS="$LDFLAGS $lt_tmp_static_flag" ++ echo "$lt_simple_link_test_code" > conftest.$ac_ext ++ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then ++ # The linker can only warn and ignore the option if not recognized ++ # So say no if there are warnings ++ if test -s conftest.err; then ++ # Append any errors to the config.log. ++ cat conftest.err 1>&5 ++ $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp ++ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 ++ if diff conftest.exp conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_static_works=yes ++ fi ++ else ++ lt_cv_prog_compiler_static_works=yes ++ fi ++ fi ++ $RM -r conftest* ++ LDFLAGS="$save_LDFLAGS" ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } ++ ++if test x"$lt_cv_prog_compiler_static_works" = xyes; then ++ : ++else ++ lt_prog_compiler_static= ++fi ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 ++echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_c_o+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_c_o=no ++ $RM -r conftest 2>/dev/null ++ mkdir conftest ++ cd conftest ++ mkdir out ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ ++ lt_compiler_flag="-o out/conftest2.$ac_objext" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>out/conftest.err) ++ ac_status=$? ++ cat out/conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s out/conftest2.$ac_objext ++ then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp ++ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 ++ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_c_o=yes ++ fi ++ fi ++ chmod u+w . 2>&5 ++ $RM conftest* ++ # SGI C++ compiler will create directory out/ii_files/ for ++ # template instantiation ++ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files ++ $RM out/* && rmdir out ++ cd .. ++ $RM -r conftest ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 ++echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_c_o+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_c_o=no ++ $RM -r conftest 2>/dev/null ++ mkdir conftest ++ cd conftest ++ mkdir out ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ ++ lt_compiler_flag="-o out/conftest2.$ac_objext" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>out/conftest.err) ++ ac_status=$? ++ cat out/conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s out/conftest2.$ac_objext ++ then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp ++ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 ++ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_c_o=yes ++ fi ++ fi ++ chmod u+w . 2>&5 ++ $RM conftest* ++ # SGI C++ compiler will create directory out/ii_files/ for ++ # template instantiation ++ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files ++ $RM out/* && rmdir out ++ cd .. ++ $RM -r conftest ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } ++ ++ ++ ++ ++hard_links="nottested" ++if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then ++ # do not overwrite the value of need_locks provided by the user ++ { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 ++echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } ++ hard_links=yes ++ $RM conftest* ++ ln conftest.a conftest.b 2>/dev/null && hard_links=no ++ touch conftest.a ++ ln conftest.a conftest.b 2>&5 || hard_links=no ++ ln conftest.a conftest.b 2>/dev/null && hard_links=no ++ { echo "$as_me:$LINENO: result: $hard_links" >&5 ++echo "${ECHO_T}$hard_links" >&6; } ++ if test "$hard_links" = no; then ++ { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 ++echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} ++ need_locks=warn ++ fi ++else ++ need_locks=no ++fi ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 ++echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } ++ ++ runpath_var= ++ allow_undefined_flag= ++ always_export_symbols=no ++ archive_cmds= ++ archive_expsym_cmds= ++ compiler_needs_object=no ++ enable_shared_with_static_runtimes=no ++ export_dynamic_flag_spec= ++ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ++ hardcode_automatic=no ++ hardcode_direct=no ++ hardcode_direct_absolute=no ++ hardcode_libdir_flag_spec= ++ hardcode_libdir_flag_spec_ld= ++ hardcode_libdir_separator= ++ hardcode_minus_L=no ++ hardcode_shlibpath_var=unsupported ++ inherit_rpath=no ++ link_all_deplibs=unknown ++ module_cmds= ++ module_expsym_cmds= ++ old_archive_from_new_cmds= ++ old_archive_from_expsyms_cmds= ++ thread_safe_flag_spec= ++ whole_archive_flag_spec= ++ # include_expsyms should be a list of space-separated symbols to be *always* ++ # included in the symbol list ++ include_expsyms= ++ # exclude_expsyms can be an extended regexp of symbols to exclude ++ # it will be wrapped by ` (' and `)$', so one must not match beginning or ++ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', ++ # as well as any symbol that contains `d'. ++ exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' ++ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out ++ # platforms (ab)use it in PIC code, but their linkers get confused if ++ # the symbol is explicitly referenced. Since portable code cannot ++ # rely on this symbol name, it's probably fine to never include it in ++ # preloaded symbol tables. ++ # Exclude shared library initialization/finalization symbols. ++ extract_expsyms_cmds= ++ ++ case $host_os in ++ cygwin* | mingw* | pw32* | cegcc*) ++ # FIXME: the MSVC++ port hasn't been tested in a loooong time ++ # When not using gcc, we currently assume that we are using ++ # Microsoft Visual C++. ++ if test "$GCC" != yes; then ++ with_gnu_ld=no ++ fi ++ ;; ++ interix*) ++ # we just hope/assume this is gcc and not c89 (= MSVC++) ++ with_gnu_ld=yes ++ ;; ++ openbsd*) ++ with_gnu_ld=no ++ ;; ++ esac ++ ++ ld_shlibs=yes ++ if test "$with_gnu_ld" = yes; then ++ # If archive_cmds runs LD, not CC, wlarc should be empty ++ wlarc='${wl}' ++ ++ # Set some defaults for GNU ld with shared library support. These ++ # are reset later if shared libraries are not supported. Putting them ++ # here allows them to be overridden if necessary. ++ runpath_var=LD_RUN_PATH ++ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' ++ export_dynamic_flag_spec='${wl}--export-dynamic' ++ # ancient GNU ld didn't support --whole-archive et. al. ++ if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then ++ whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' ++ else ++ whole_archive_flag_spec= ++ fi ++ supports_anon_versioning=no ++ case `$LD -v 2>&1` in ++ *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 ++ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... ++ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... ++ *\ 2.11.*) ;; # other 2.11 versions ++ *) supports_anon_versioning=yes ;; ++ esac ++ ++ # See if GNU ld supports shared libraries. ++ case $host_os in ++ aix[3-9]*) ++ # On AIX/PPC, the GNU linker is very broken ++ if test "$host_cpu" != ia64; then ++ ld_shlibs=no ++ cat <<_LT_EOF 1>&2 ++ ++*** Warning: the GNU linker, at least up to release 2.9.1, is reported ++*** to be unable to reliably create shared libraries on AIX. ++*** Therefore, libtool is disabling shared libraries support. If you ++*** really care for shared libraries, you may want to modify your PATH ++*** so that a non-GNU linker is found, and then restart. ++ ++_LT_EOF ++ fi ++ ;; ++ ++ amigaos*) ++ case $host_cpu in ++ powerpc) ++ # see comment about AmigaOS4 .so support ++ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds='' ++ ;; ++ m68k) ++ archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' ++ hardcode_libdir_flag_spec='-L$libdir' ++ hardcode_minus_L=yes ++ ;; ++ esac ++ ;; ++ ++ beos*) ++ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ allow_undefined_flag=unsupported ++ # Joseph Beckenbach says some releases of gcc ++ # support --undefined. This deserves some investigation. FIXME ++ archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ else ++ ld_shlibs=no ++ fi ++ ;; ++ ++ cygwin* | mingw* | pw32* | cegcc*) ++ # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, ++ # as there is no search path for DLLs. ++ hardcode_libdir_flag_spec='-L$libdir' ++ allow_undefined_flag=unsupported ++ always_export_symbols=no ++ enable_shared_with_static_runtimes=yes ++ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' ++ ++ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then ++ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' ++ # If the export-symbols file already is a .def file (1st line ++ # is EXPORTS), use it as is; otherwise, prepend... ++ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then ++ cp $export_symbols $output_objdir/$soname.def; ++ else ++ echo EXPORTS > $output_objdir/$soname.def; ++ cat $export_symbols >> $output_objdir/$soname.def; ++ fi~ ++ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' ++ else ++ ld_shlibs=no ++ fi ++ ;; ++ ++ interix[3-9]*) ++ hardcode_direct=no ++ hardcode_shlibpath_var=no ++ hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ++ export_dynamic_flag_spec='${wl}-E' ++ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. ++ # Instead, shared libraries are loaded at an image base (0x10000000 by ++ # default) and relocated if they conflict, which is a slow very memory ++ # consuming and fragmenting process. To avoid this, we pick a random, ++ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link ++ # time. Moving up from 0x10000000 also allows more sbrk(2) space. ++ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ++ archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ++ ;; ++ ++ gnu* | linux* | tpf* | k*bsd*-gnu) ++ tmp_diet=no ++ if test "$host_os" = linux-dietlibc; then ++ case $cc_basename in ++ diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) ++ esac ++ fi ++ if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ ++ && test "$tmp_diet" = no ++ then ++ tmp_addflag= ++ tmp_sharedflag='-shared' ++ case $cc_basename,$host_cpu in ++ pgcc*) # Portland Group C compiler ++ whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ++ tmp_addflag=' $pic_flag' ++ ;; ++ pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers ++ whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ++ tmp_addflag=' $pic_flag -Mnomain' ;; ++ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 ++ tmp_addflag=' -i_dynamic' ;; ++ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 ++ tmp_addflag=' -i_dynamic -nofor_main' ;; ++ ifc* | ifort*) # Intel Fortran compiler ++ tmp_addflag=' -nofor_main' ;; ++ lf95*) # Lahey Fortran 8.1 ++ whole_archive_flag_spec= ++ tmp_sharedflag='--shared' ;; ++ xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) ++ tmp_sharedflag='-qmkshrobj' ++ tmp_addflag= ;; ++ esac ++ case `$CC -V 2>&1 | sed 5q` in ++ *Sun\ C*) # Sun C 5.9 ++ whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ++ compiler_needs_object=yes ++ tmp_sharedflag='-G' ;; ++ *Sun\ F*) # Sun Fortran 8.3 ++ tmp_sharedflag='-G' ;; ++ esac ++ archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ ++ if test "x$supports_anon_versioning" = xyes; then ++ archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ ++ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ ++ echo "local: *; };" >> $output_objdir/$libname.ver~ ++ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' ++ fi ++ ++ case $cc_basename in ++ xlf*) ++ # IBM XL Fortran 10.1 on PPC cannot create shared libs itself ++ whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' ++ hardcode_libdir_flag_spec= ++ hardcode_libdir_flag_spec_ld='-rpath $libdir' ++ archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' ++ if test "x$supports_anon_versioning" = xyes; then ++ archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ ++ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ ++ echo "local: *; };" >> $output_objdir/$libname.ver~ ++ $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' ++ fi ++ ;; ++ esac ++ else ++ ld_shlibs=no ++ fi ++ ;; ++ ++ netbsd*) ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then ++ archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' ++ wlarc= ++ else ++ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ fi ++ ;; ++ ++ solaris*) ++ if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ++ ld_shlibs=no ++ cat <<_LT_EOF 1>&2 ++ ++*** Warning: The releases 2.8.* of the GNU linker cannot reliably ++*** create shared libraries on Solaris systems. Therefore, libtool ++*** is disabling shared libraries support. We urge you to upgrade GNU ++*** binutils to release 2.9.1 or newer. Another option is to modify ++*** your PATH or compiler configuration so that the native linker is ++*** used, and then restart. ++ ++_LT_EOF ++ elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ else ++ ld_shlibs=no ++ fi ++ ;; ++ ++ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) ++ case `$LD -v 2>&1` in ++ *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ++ ld_shlibs=no ++ cat <<_LT_EOF 1>&2 ++ ++*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not ++*** reliably create shared libraries on SCO systems. Therefore, libtool ++*** is disabling shared libraries support. We urge you to upgrade GNU ++*** binutils to release 2.16.91.0.3 or newer. Another option is to modify ++*** your PATH or compiler configuration so that the native linker is ++*** used, and then restart. ++ ++_LT_EOF ++ ;; ++ *) ++ # For security reasons, it is highly recommended that you always ++ # use absolute paths for naming shared libraries, and exclude the ++ # DT_RUNPATH tag from executables and libraries. But doing so ++ # requires that you compile everything twice, which is a pain. ++ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' ++ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ else ++ ld_shlibs=no ++ fi ++ ;; ++ esac ++ ;; ++ ++ sunos4*) ++ archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' ++ wlarc= ++ hardcode_direct=yes ++ hardcode_shlibpath_var=no ++ ;; ++ ++ *) ++ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ else ++ ld_shlibs=no ++ fi ++ ;; ++ esac ++ ++ if test "$ld_shlibs" = no; then ++ runpath_var= ++ hardcode_libdir_flag_spec= ++ export_dynamic_flag_spec= ++ whole_archive_flag_spec= ++ fi ++ else ++ # PORTME fill in a description of your system's linker (not GNU ld) ++ case $host_os in ++ aix3*) ++ allow_undefined_flag=unsupported ++ always_export_symbols=yes ++ archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' ++ # Note: this linker hardcodes the directories in LIBPATH if there ++ # are no directories specified by -L. ++ hardcode_minus_L=yes ++ if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then ++ # Neither direct hardcoding nor static linking is supported with a ++ # broken collect2. ++ hardcode_direct=unsupported ++ fi ++ ;; ++ ++ aix[4-9]*) ++ if test "$host_cpu" = ia64; then ++ # On IA64, the linker does run time linking by default, so we don't ++ # have to do anything special. ++ aix_use_runtimelinking=no ++ exp_sym_flag='-Bexport' ++ no_entry_flag="" ++ else ++ # If we're using GNU nm, then we don't want the "-C" option. ++ # -C means demangle to AIX nm, but means don't demangle with GNU nm ++ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then ++ export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' ++ else ++ export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' ++ fi ++ aix_use_runtimelinking=no ++ ++ # Test if we are trying to use run time linking or normal ++ # AIX style linking. If -brtl is somewhere in LDFLAGS, we ++ # need to do runtime linking. ++ case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) ++ for ld_flag in $LDFLAGS; do ++ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then ++ aix_use_runtimelinking=yes ++ break ++ fi ++ done ++ ;; ++ esac ++ ++ exp_sym_flag='-bexport' ++ no_entry_flag='-bnoentry' ++ fi ++ ++ # When large executables or shared objects are built, AIX ld can ++ # have problems creating the table of contents. If linking a library ++ # or program results in "error TOC overflow" add -mminimal-toc to ++ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not ++ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. ++ ++ archive_cmds='' ++ hardcode_direct=yes ++ hardcode_direct_absolute=yes ++ hardcode_libdir_separator=':' ++ link_all_deplibs=yes ++ file_list_spec='${wl}-f,' ++ ++ if test "$GCC" = yes; then ++ case $host_os in aix4.[012]|aix4.[012].*) ++ # We only want to do this on AIX 4.2 and lower, the check ++ # below for broken collect2 doesn't work under 4.3+ ++ collect2name=`${CC} -print-prog-name=collect2` ++ if test -f "$collect2name" && ++ strings "$collect2name" | $GREP resolve_lib_name >/dev/null ++ then ++ # We have reworked collect2 ++ : ++ else ++ # We have old collect2 ++ hardcode_direct=unsupported ++ # It fails to find uninstalled libraries when the uninstalled ++ # path is not listed in the libpath. Setting hardcode_minus_L ++ # to unsupported forces relinking ++ hardcode_minus_L=yes ++ hardcode_libdir_flag_spec='-L$libdir' ++ hardcode_libdir_separator= ++ fi ++ ;; ++ esac ++ shared_flag='-shared' ++ if test "$aix_use_runtimelinking" = yes; then ++ shared_flag="$shared_flag "'${wl}-G' ++ fi ++ else ++ # not using gcc ++ if test "$host_cpu" = ia64; then ++ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release ++ # chokes on -Wl,-G. The following line is correct: ++ shared_flag='-G' ++ else ++ if test "$aix_use_runtimelinking" = yes; then ++ shared_flag='${wl}-G' ++ else ++ shared_flag='${wl}-bM:SRE' ++ fi ++ fi ++ fi ++ ++ export_dynamic_flag_spec='${wl}-bexpall' ++ # It seems that -bexpall does not export symbols beginning with ++ # underscore (_), so it is better to generate a list of symbols to export. ++ always_export_symbols=yes ++ if test "$aix_use_runtimelinking" = yes; then ++ # Warning - without using the other runtime loading flags (-brtl), ++ # -berok will link without error, but may produce a broken library. ++ allow_undefined_flag='-berok' ++ # Determine the default libpath from the value encoded in an ++ # empty executable. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ++lt_aix_libpath_sed=' ++ /Import File Strings/,/^$/ { ++ /^0/ { ++ s/^0 *\(.*\)$/\1/ ++ p ++ } ++ }' ++aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++# Check for a 64-bit object if we didn't find anything. ++if test -z "$aix_libpath"; then ++ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++fi ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ++ ++ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" ++ archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" ++ else ++ if test "$host_cpu" = ia64; then ++ hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' ++ allow_undefined_flag="-z nodefs" ++ archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" ++ else ++ # Determine the default libpath from the value encoded in an ++ # empty executable. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ++lt_aix_libpath_sed=' ++ /Import File Strings/,/^$/ { ++ /^0/ { ++ s/^0 *\(.*\)$/\1/ ++ p ++ } ++ }' ++aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++# Check for a 64-bit object if we didn't find anything. ++if test -z "$aix_libpath"; then ++ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++fi ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ++ ++ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" ++ # Warning - without using the other run time loading flags, ++ # -berok will link without error, but may produce a broken library. ++ no_undefined_flag=' ${wl}-bernotok' ++ allow_undefined_flag=' ${wl}-berok' ++ # Exported symbols can be pulled into shared objects from archives ++ whole_archive_flag_spec='$convenience' ++ archive_cmds_need_lc=yes ++ # This is similar to how AIX traditionally builds its shared libraries. ++ archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' ++ fi ++ fi ++ ;; ++ ++ amigaos*) ++ case $host_cpu in ++ powerpc) ++ # see comment about AmigaOS4 .so support ++ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds='' ++ ;; ++ m68k) ++ archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' ++ hardcode_libdir_flag_spec='-L$libdir' ++ hardcode_minus_L=yes ++ ;; ++ esac ++ ;; ++ ++ bsdi[45]*) ++ export_dynamic_flag_spec=-rdynamic ++ ;; ++ ++ cygwin* | mingw* | pw32* | cegcc*) ++ # When not using gcc, we currently assume that we are using ++ # Microsoft Visual C++. ++ # hardcode_libdir_flag_spec is actually meaningless, as there is ++ # no search path for DLLs. ++ hardcode_libdir_flag_spec=' ' ++ allow_undefined_flag=unsupported ++ # Tell ltmain to make .lib files, not .a files. ++ libext=lib ++ # Tell ltmain to make .dll files, not .so files. ++ shrext_cmds=".dll" ++ # FIXME: Setting linknames here is a bad hack. ++ archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' ++ # The linker will automatically build a .lib file if we build a DLL. ++ old_archive_from_new_cmds='true' ++ # FIXME: Should let the user specify the lib program. ++ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' ++ fix_srcfile_path='`cygpath -w "$srcfile"`' ++ enable_shared_with_static_runtimes=yes ++ ;; ++ ++ darwin* | rhapsody*) ++ ++ ++ archive_cmds_need_lc=no ++ hardcode_direct=no ++ hardcode_automatic=yes ++ hardcode_shlibpath_var=unsupported ++ whole_archive_flag_spec='' ++ link_all_deplibs=yes ++ allow_undefined_flag="$_lt_dar_allow_undefined" ++ case $cc_basename in ++ ifort*) _lt_dar_can_shared=yes ;; ++ *) _lt_dar_can_shared=$GCC ;; ++ esac ++ if test "$_lt_dar_can_shared" = "yes"; then ++ output_verbose_link_cmd=echo ++ archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" ++ module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" ++ archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" ++ module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" ++ ++ else ++ ld_shlibs=no ++ fi ++ ++ ;; ++ ++ dgux*) ++ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_libdir_flag_spec='-L$libdir' ++ hardcode_shlibpath_var=no ++ ;; ++ ++ freebsd1*) ++ ld_shlibs=no ++ ;; ++ ++ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor ++ # support. Future versions do this automatically, but an explicit c++rt0.o ++ # does not break anything, and helps significantly (at the cost of a little ++ # extra space). ++ freebsd2.2*) ++ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' ++ hardcode_libdir_flag_spec='-R$libdir' ++ hardcode_direct=yes ++ hardcode_shlibpath_var=no ++ ;; ++ ++ # Unfortunately, older versions of FreeBSD 2 do not have this feature. ++ freebsd2*) ++ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_direct=yes ++ hardcode_minus_L=yes ++ hardcode_shlibpath_var=no ++ ;; ++ ++ # FreeBSD 3 and greater uses gcc -shared to do shared libraries. ++ freebsd* | dragonfly*) ++ archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' ++ hardcode_libdir_flag_spec='-R$libdir' ++ hardcode_direct=yes ++ hardcode_shlibpath_var=no ++ ;; ++ ++ hpux9*) ++ if test "$GCC" = yes; then ++ archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ++ else ++ archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ++ fi ++ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' ++ hardcode_libdir_separator=: ++ hardcode_direct=yes ++ ++ # hardcode_minus_L: Not really in the search PATH, ++ # but as the default location of the library. ++ hardcode_minus_L=yes ++ export_dynamic_flag_spec='${wl}-E' ++ ;; ++ ++ hpux10*) ++ if test "$GCC" = yes -a "$with_gnu_ld" = no; then ++ archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ++ else ++ archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ++ fi ++ if test "$with_gnu_ld" = no; then ++ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' ++ hardcode_libdir_flag_spec_ld='+b $libdir' ++ hardcode_libdir_separator=: ++ hardcode_direct=yes ++ hardcode_direct_absolute=yes ++ export_dynamic_flag_spec='${wl}-E' ++ # hardcode_minus_L: Not really in the search PATH, ++ # but as the default location of the library. ++ hardcode_minus_L=yes ++ fi ++ ;; ++ ++ hpux11*) ++ if test "$GCC" = yes -a "$with_gnu_ld" = no; then ++ case $host_cpu in ++ hppa*64*) ++ archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ ia64*) ++ archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ *) ++ archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ esac ++ else ++ case $host_cpu in ++ hppa*64*) ++ archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ ia64*) ++ archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ *) ++ archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ esac ++ fi ++ if test "$with_gnu_ld" = no; then ++ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' ++ hardcode_libdir_separator=: ++ ++ case $host_cpu in ++ hppa*64*|ia64*) ++ hardcode_direct=no ++ hardcode_shlibpath_var=no ++ ;; ++ *) ++ hardcode_direct=yes ++ hardcode_direct_absolute=yes ++ export_dynamic_flag_spec='${wl}-E' ++ ++ # hardcode_minus_L: Not really in the search PATH, ++ # but as the default location of the library. ++ hardcode_minus_L=yes ++ ;; ++ esac ++ fi ++ ;; ++ ++ irix5* | irix6* | nonstopux*) ++ if test "$GCC" = yes; then ++ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ++ # Try to use the -exported_symbol ld option, if it does not ++ # work, assume that -exports_file does not work either and ++ # implicitly export all symbols. ++ save_LDFLAGS="$LDFLAGS" ++ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" ++ cat >conftest.$ac_ext <<_ACEOF ++int foo(void) {} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LDFLAGS="$save_LDFLAGS" ++ else ++ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' ++ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' ++ fi ++ archive_cmds_need_lc='no' ++ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' ++ hardcode_libdir_separator=: ++ inherit_rpath=yes ++ link_all_deplibs=yes ++ ;; ++ ++ netbsd*) ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then ++ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out ++ else ++ archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF ++ fi ++ hardcode_libdir_flag_spec='-R$libdir' ++ hardcode_direct=yes ++ hardcode_shlibpath_var=no ++ ;; ++ ++ newsos6) ++ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_direct=yes ++ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' ++ hardcode_libdir_separator=: ++ hardcode_shlibpath_var=no ++ ;; ++ ++ *nto* | *qnx*) ++ ;; ++ ++ openbsd*) ++ if test -f /usr/libexec/ld.so; then ++ hardcode_direct=yes ++ hardcode_shlibpath_var=no ++ hardcode_direct_absolute=yes ++ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ++ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' ++ hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ++ export_dynamic_flag_spec='${wl}-E' ++ else ++ case $host_os in ++ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) ++ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_libdir_flag_spec='-R$libdir' ++ ;; ++ *) ++ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ++ hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ++ ;; ++ esac ++ fi ++ else ++ ld_shlibs=no ++ fi ++ ;; ++ ++ os2*) ++ hardcode_libdir_flag_spec='-L$libdir' ++ hardcode_minus_L=yes ++ allow_undefined_flag=unsupported ++ archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' ++ old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ++ ;; ++ ++ osf3*) ++ if test "$GCC" = yes; then ++ allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' ++ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ++ else ++ allow_undefined_flag=' -expect_unresolved \*' ++ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' ++ fi ++ archive_cmds_need_lc='no' ++ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' ++ hardcode_libdir_separator=: ++ ;; ++ ++ osf4* | osf5*) # as osf3* with the addition of -msym flag ++ if test "$GCC" = yes; then ++ allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' ++ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ++ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' ++ else ++ allow_undefined_flag=' -expect_unresolved \*' ++ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' ++ archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ ++ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' ++ ++ # Both c and cxx compiler support -rpath directly ++ hardcode_libdir_flag_spec='-rpath $libdir' ++ fi ++ archive_cmds_need_lc='no' ++ hardcode_libdir_separator=: ++ ;; ++ ++ solaris*) ++ no_undefined_flag=' -z defs' ++ if test "$GCC" = yes; then ++ wlarc='${wl}' ++ archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ ++ $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ++ else ++ case `$CC -V 2>&1` in ++ *"Compilers 5.0"*) ++ wlarc='' ++ archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ ++ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ++ ;; ++ *) ++ wlarc='${wl}' ++ archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ ++ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ++ ;; ++ esac ++ fi ++ hardcode_libdir_flag_spec='-R$libdir' ++ hardcode_shlibpath_var=no ++ case $host_os in ++ solaris2.[0-5] | solaris2.[0-5].*) ;; ++ *) ++ # The compiler driver will combine and reorder linker options, ++ # but understands `-z linker_flag'. GCC discards it without `$wl', ++ # but is careful enough not to reorder. ++ # Supported since Solaris 2.6 (maybe 2.5.1?) ++ if test "$GCC" = yes; then ++ whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ++ else ++ whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ++ fi ++ ;; ++ esac ++ link_all_deplibs=yes ++ ;; ++ ++ sunos4*) ++ if test "x$host_vendor" = xsequent; then ++ # Use $CC to link under sequent, because it throws in some extra .o ++ # files that make .init and .fini sections work. ++ archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' ++ else ++ archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' ++ fi ++ hardcode_libdir_flag_spec='-L$libdir' ++ hardcode_direct=yes ++ hardcode_minus_L=yes ++ hardcode_shlibpath_var=no ++ ;; ++ ++ sysv4) ++ case $host_vendor in ++ sni) ++ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_direct=yes # is this really true??? ++ ;; ++ siemens) ++ ## LD is ld it makes a PLAMLIB ++ ## CC just makes a GrossModule. ++ archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' ++ reload_cmds='$CC -r -o $output$reload_objs' ++ hardcode_direct=no ++ ;; ++ motorola) ++ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_direct=no #Motorola manual says yes, but my tests say they lie ++ ;; ++ esac ++ runpath_var='LD_RUN_PATH' ++ hardcode_shlibpath_var=no ++ ;; ++ ++ sysv4.3*) ++ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_shlibpath_var=no ++ export_dynamic_flag_spec='-Bexport' ++ ;; ++ ++ sysv4*MP*) ++ if test -d /usr/nec; then ++ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_shlibpath_var=no ++ runpath_var=LD_RUN_PATH ++ hardcode_runpath_var=yes ++ ld_shlibs=yes ++ fi ++ ;; ++ ++ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) ++ no_undefined_flag='${wl}-z,text' ++ archive_cmds_need_lc=no ++ hardcode_shlibpath_var=no ++ runpath_var='LD_RUN_PATH' ++ ++ if test "$GCC" = yes; then ++ archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ else ++ archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ fi ++ ;; ++ ++ sysv5* | sco3.2v5* | sco5v6*) ++ # Note: We can NOT use -z defs as we might desire, because we do not ++ # link with -lc, and that would cause any symbols used from libc to ++ # always be unresolved, which means just about no library would ++ # ever link correctly. If we're not using GNU ld we use -z text ++ # though, which does catch some bad symbols but isn't as heavy-handed ++ # as -z defs. ++ no_undefined_flag='${wl}-z,text' ++ allow_undefined_flag='${wl}-z,nodefs' ++ archive_cmds_need_lc=no ++ hardcode_shlibpath_var=no ++ hardcode_libdir_flag_spec='${wl}-R,$libdir' ++ hardcode_libdir_separator=':' ++ link_all_deplibs=yes ++ export_dynamic_flag_spec='${wl}-Bexport' ++ runpath_var='LD_RUN_PATH' ++ ++ if test "$GCC" = yes; then ++ archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ else ++ archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ fi ++ ;; ++ ++ uts4*) ++ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_libdir_flag_spec='-L$libdir' ++ hardcode_shlibpath_var=no ++ ;; ++ ++ *) ++ ld_shlibs=no ++ ;; ++ esac ++ ++ if test x$host_vendor = xsni; then ++ case $host in ++ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ++ export_dynamic_flag_spec='${wl}-Blargedynsym' ++ ;; ++ esac ++ fi ++ fi ++ ++{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 ++echo "${ECHO_T}$ld_shlibs" >&6; } ++test "$ld_shlibs" = no && can_build_shared=no ++ ++with_gnu_ld=$with_gnu_ld ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++# ++# Do we need to explicitly link libc? ++# ++case "x$archive_cmds_need_lc" in ++x|xyes) ++ # Assume -lc should be added ++ archive_cmds_need_lc=yes ++ ++ if test "$enable_shared" = yes && test "$GCC" = yes; then ++ case $archive_cmds in ++ *'~'*) ++ # FIXME: we may have to deal with multi-command sequences. ++ ;; ++ '$CC '*) ++ # Test whether the compiler implicitly links with -lc since on some ++ # systems, -lgcc has to come before -lc. If gcc already passes -lc ++ # to ld, don't add -lc before -lgcc. ++ { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 ++echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } ++ $RM conftest* ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ ++ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } 2>conftest.err; then ++ soname=conftest ++ lib=conftest ++ libobjs=conftest.$ac_objext ++ deplibs= ++ wl=$lt_prog_compiler_wl ++ pic_flag=$lt_prog_compiler_pic ++ compiler_flags=-v ++ linker_flags=-v ++ verstring= ++ output_objdir=. ++ libname=conftest ++ lt_save_allow_undefined_flag=$allow_undefined_flag ++ allow_undefined_flag= ++ if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 ++ (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++ then ++ archive_cmds_need_lc=no ++ else ++ archive_cmds_need_lc=yes ++ fi ++ allow_undefined_flag=$lt_save_allow_undefined_flag ++ else ++ cat conftest.err 1>&5 ++ fi ++ $RM conftest* ++ { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 ++echo "${ECHO_T}$archive_cmds_need_lc" >&6; } ++ ;; ++ esac ++ fi ++ ;; ++esac ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 ++echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } ++ ++if test "$GCC" = yes; then ++ case $host_os in ++ darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; ++ *) lt_awk_arg="/^libraries:/" ;; ++ esac ++ lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` ++ if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then ++ # if the path contains ";" then we assume it to be the separator ++ # otherwise default to the standard path separator (i.e. ":") - it is ++ # assumed that no part of a normal pathname contains ";" but that should ++ # okay in the real world where ";" in dirpaths is itself problematic. ++ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` ++ else ++ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ++ fi ++ # Ok, now we have the path, separated by spaces, we can step through it ++ # and add multilib dir if necessary. ++ lt_tmp_lt_search_path_spec= ++ lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` ++ for lt_sys_path in $lt_search_path_spec; do ++ if test -d "$lt_sys_path/$lt_multi_os_dir"; then ++ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" ++ else ++ test -d "$lt_sys_path" && \ ++ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" ++ fi ++ done ++ lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' ++BEGIN {RS=" "; FS="/|\n";} { ++ lt_foo=""; ++ lt_count=0; ++ for (lt_i = NF; lt_i > 0; lt_i--) { ++ if ($lt_i != "" && $lt_i != ".") { ++ if ($lt_i == "..") { ++ lt_count++; ++ } else { ++ if (lt_count == 0) { ++ lt_foo="/" $lt_i lt_foo; ++ } else { ++ lt_count--; ++ } ++ } ++ } ++ } ++ if (lt_foo != "") { lt_freq[lt_foo]++; } ++ if (lt_freq[lt_foo] == 1) { print lt_foo; } ++}'` ++ sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` ++else ++ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" ++fi ++library_names_spec= ++libname_spec='lib$name' ++soname_spec= ++shrext_cmds=".so" ++postinstall_cmds= ++postuninstall_cmds= ++finish_cmds= ++finish_eval= ++shlibpath_var= ++shlibpath_overrides_runpath=unknown ++version_type=none ++dynamic_linker="$host_os ld.so" ++sys_lib_dlsearch_path_spec="/lib /usr/lib" ++need_lib_prefix=unknown ++hardcode_into_libs=no ++ ++# when you set need_version to no, make sure it does not cause -set_version ++# flags to be left without arguments ++need_version=unknown ++ ++case $host_os in ++aix3*) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' ++ shlibpath_var=LIBPATH ++ ++ # AIX 3 has no versioning support, so we append a major version to the name. ++ soname_spec='${libname}${release}${shared_ext}$major' ++ ;; ++ ++aix[4-9]*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ hardcode_into_libs=yes ++ if test "$host_cpu" = ia64; then ++ # AIX 5 supports IA64 ++ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ else ++ # With GCC up to 2.95.x, collect2 would create an import file ++ # for dependence libraries. The import file would start with ++ # the line `#! .'. This would cause the generated library to ++ # depend on `.', always an invalid library. This was fixed in ++ # development snapshots of GCC prior to 3.0. ++ case $host_os in ++ aix4 | aix4.[01] | aix4.[01].*) ++ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' ++ echo ' yes ' ++ echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then ++ : ++ else ++ can_build_shared=no ++ fi ++ ;; ++ esac ++ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct ++ # soname into executable. Probably we can add versioning support to ++ # collect2, so additional links can be useful in future. ++ if test "$aix_use_runtimelinking" = yes; then ++ # If using run time linking (on AIX 4.2 or later) use lib.so ++ # instead of lib.a to let people know that these are not ++ # typical AIX shared libraries. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ else ++ # We preserve .a as extension for shared libraries through AIX4.2 ++ # and later when we are not doing run time linking. ++ library_names_spec='${libname}${release}.a $libname.a' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ fi ++ shlibpath_var=LIBPATH ++ fi ++ ;; ++ ++amigaos*) ++ case $host_cpu in ++ powerpc) ++ # Since July 2007 AmigaOS4 officially supports .so libraries. ++ # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ ;; ++ m68k) ++ library_names_spec='$libname.ixlibrary $libname.a' ++ # Create ${libname}_ixlibrary.a entries in /sys/libs. ++ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ++ ;; ++ esac ++ ;; ++ ++beos*) ++ library_names_spec='${libname}${shared_ext}' ++ dynamic_linker="$host_os ld.so" ++ shlibpath_var=LIBRARY_PATH ++ ;; ++ ++bsdi[45]*) ++ version_type=linux ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" ++ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" ++ # the default ld.so.conf also contains /usr/contrib/lib and ++ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow ++ # libtool to hard-code these into programs ++ ;; ++ ++cygwin* | mingw* | pw32* | cegcc*) ++ version_type=windows ++ shrext_cmds=".dll" ++ need_version=no ++ need_lib_prefix=no ++ ++ case $GCC,$host_os in ++ yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ library_names_spec='$libname.dll.a' ++ # DLL is installed to $(libdir)/../bin by postinstall_cmds ++ postinstall_cmds='base_file=`basename \${file}`~ ++ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ ++ dldir=$destdir/`dirname \$dlpath`~ ++ test -d \$dldir || mkdir -p \$dldir~ ++ $install_prog $dir/$dlname \$dldir/$dlname~ ++ chmod a+x \$dldir/$dlname~ ++ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then ++ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; ++ fi' ++ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ ++ dlpath=$dir/\$dldll~ ++ $RM \$dlpath' ++ shlibpath_overrides_runpath=yes ++ ++ case $host_os in ++ cygwin*) ++ # Cygwin DLLs use 'cyg' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ++ ;; ++ mingw* | cegcc*) ++ # MinGW DLLs use traditional 'lib' prefix ++ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` ++ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then ++ # It is most probably a Windows format PATH printed by ++ # mingw gcc, but we are running on Cygwin. Gcc prints its search ++ # path with ; separators, and with drive letters. We can handle the ++ # drive letters (cygwin fileutils understands them), so leave them, ++ # especially as we might pass files found there to a mingw objdump, ++ # which wouldn't understand a cygwinified path. Ahh. ++ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` ++ else ++ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ++ fi ++ ;; ++ pw32*) ++ # pw32 DLLs use 'pw' prefix rather than 'lib' ++ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ;; ++ esac ++ ;; ++ ++ *) ++ library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ++ ;; ++ esac ++ dynamic_linker='Win32 ld.exe' ++ # FIXME: first we should search . and the directory the executable is in ++ shlibpath_var=PATH ++ ;; ++ ++darwin* | rhapsody*) ++ dynamic_linker="$host_os dyld" ++ version_type=darwin ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' ++ soname_spec='${libname}${release}${major}$shared_ext' ++ shlibpath_overrides_runpath=yes ++ shlibpath_var=DYLD_LIBRARY_PATH ++ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' ++ ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" ++ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ++ ;; ++ ++dgux*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ ;; ++ ++freebsd1*) ++ dynamic_linker=no ++ ;; ++ ++freebsd* | dragonfly*) ++ # DragonFly does not have aout. When/if they implement a new ++ # versioning mechanism, adjust this. ++ if test -x /usr/bin/objformat; then ++ objformat=`/usr/bin/objformat` ++ else ++ case $host_os in ++ freebsd[123]*) objformat=aout ;; ++ *) objformat=elf ;; ++ esac ++ fi ++ version_type=freebsd-$objformat ++ case $version_type in ++ freebsd-elf*) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' ++ need_version=no ++ need_lib_prefix=no ++ ;; ++ freebsd-*) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' ++ need_version=yes ++ ;; ++ esac ++ shlibpath_var=LD_LIBRARY_PATH ++ case $host_os in ++ freebsd2*) ++ shlibpath_overrides_runpath=yes ++ ;; ++ freebsd3.[01]* | freebsdelf3.[01]*) ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ ;; ++ freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ ++ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ ;; ++ *) # from 4.6 on, and DragonFly ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ ;; ++ esac ++ ;; ++ ++gnu*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ hardcode_into_libs=yes ++ ;; ++ ++hpux9* | hpux10* | hpux11*) ++ # Give a soname corresponding to the major version so that dld.sl refuses to ++ # link against other versions. ++ version_type=sunos ++ need_lib_prefix=no ++ need_version=no ++ case $host_cpu in ++ ia64*) ++ shrext_cmds='.so' ++ hardcode_into_libs=yes ++ dynamic_linker="$host_os dld.so" ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ if test "X$HPUX_IA64_MODE" = X32; then ++ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" ++ else ++ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" ++ fi ++ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ++ ;; ++ hppa*64*) ++ shrext_cmds='.sl' ++ hardcode_into_libs=yes ++ dynamic_linker="$host_os dld.sl" ++ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH ++ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" ++ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ++ ;; ++ *) ++ shrext_cmds='.sl' ++ dynamic_linker="$host_os dld.sl" ++ shlibpath_var=SHLIB_PATH ++ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ ;; ++ esac ++ # HP-UX runs *really* slowly unless shared libraries are mode 555. ++ postinstall_cmds='chmod 555 $lib' ++ ;; ++ ++interix[3-9]*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ ;; ++ ++irix5* | irix6* | nonstopux*) ++ case $host_os in ++ nonstopux*) version_type=nonstopux ;; ++ *) ++ if test "$lt_cv_prog_gnu_ld" = yes; then ++ version_type=linux ++ else ++ version_type=irix ++ fi ;; ++ esac ++ need_lib_prefix=no ++ need_version=no ++ soname_spec='${libname}${release}${shared_ext}$major' ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' ++ case $host_os in ++ irix5* | nonstopux*) ++ libsuff= shlibsuff= ++ ;; ++ *) ++ case $LD in # libtool.m4 will add one of these switches to LD ++ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") ++ libsuff= shlibsuff= libmagic=32-bit;; ++ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") ++ libsuff=32 shlibsuff=N32 libmagic=N32;; ++ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") ++ libsuff=64 shlibsuff=64 libmagic=64-bit;; ++ *) libsuff= shlibsuff= libmagic=never-match;; ++ esac ++ ;; ++ esac ++ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH ++ shlibpath_overrides_runpath=no ++ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" ++ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" ++ hardcode_into_libs=yes ++ ;; ++ ++# No shared lib support for Linux oldld, aout, or coff. ++linux*oldld* | linux*aout* | linux*coff*) ++ dynamic_linker=no ++ ;; ++ ++# This must be Linux ELF. ++linux* | k*bsd*-gnu) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ # Some binutils ld are patched to set DT_RUNPATH ++ save_LDFLAGS=$LDFLAGS ++ save_libdir=$libdir ++ eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ ++ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then ++ shlibpath_overrides_runpath=yes ++fi ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LDFLAGS=$save_LDFLAGS ++ libdir=$save_libdir ++ ++ # This implies no fast_install, which is unacceptable. ++ # Some rework will be needed to allow for fast_install ++ # before this can be enabled. ++ hardcode_into_libs=yes ++ ++ # Append ld.so.conf contents to the search path ++ if test -f /etc/ld.so.conf; then ++ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` ++ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" ++ fi ++ ++ # We used to test for /lib/ld.so.1 and disable shared libraries on ++ # powerpc, because MkLinux only supported shared libraries with the ++ # GNU dynamic linker. Since this was broken with cross compilers, ++ # most powerpc-linux boxes support dynamic linking these days and ++ # people can always --disable-shared, the test was removed, and we ++ # assume the GNU/Linux dynamic linker is in use. ++ dynamic_linker='GNU/Linux ld.so' ++ ;; ++ ++netbsd*) ++ version_type=sunos ++ need_lib_prefix=no ++ need_version=no ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ++ dynamic_linker='NetBSD (a.out) ld.so' ++ else ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ dynamic_linker='NetBSD ld.elf_so' ++ fi ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ ;; ++ ++newsos6) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ ;; ++ ++*nto* | *qnx*) ++ version_type=qnx ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ dynamic_linker='ldqnx.so' ++ ;; ++ ++openbsd*) ++ version_type=sunos ++ sys_lib_dlsearch_path_spec="/usr/lib" ++ need_lib_prefix=no ++ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. ++ case $host_os in ++ openbsd3.3 | openbsd3.3.*) need_version=yes ;; ++ *) need_version=no ;; ++ esac ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ++ case $host_os in ++ openbsd2.[89] | openbsd2.[89].*) ++ shlibpath_overrides_runpath=no ++ ;; ++ *) ++ shlibpath_overrides_runpath=yes ++ ;; ++ esac ++ else ++ shlibpath_overrides_runpath=yes ++ fi ++ ;; ++ ++os2*) ++ libname_spec='$name' ++ shrext_cmds=".dll" ++ need_lib_prefix=no ++ library_names_spec='$libname${shared_ext} $libname.a' ++ dynamic_linker='OS/2 ld.exe' ++ shlibpath_var=LIBPATH ++ ;; ++ ++osf3* | osf4* | osf5*) ++ version_type=osf ++ need_lib_prefix=no ++ need_version=no ++ soname_spec='${libname}${release}${shared_ext}$major' ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" ++ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ++ ;; ++ ++rdos*) ++ dynamic_linker=no ++ ;; ++ ++solaris*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ # ldd complains unless libraries are executable ++ postinstall_cmds='chmod +x $lib' ++ ;; ++ ++sunos4*) ++ version_type=sunos ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ++ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ if test "$with_gnu_ld" = yes; then ++ need_lib_prefix=no ++ fi ++ need_version=yes ++ ;; ++ ++sysv4 | sysv4.3*) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ case $host_vendor in ++ sni) ++ shlibpath_overrides_runpath=no ++ need_lib_prefix=no ++ runpath_var=LD_RUN_PATH ++ ;; ++ siemens) ++ need_lib_prefix=no ++ ;; ++ motorola) ++ need_lib_prefix=no ++ need_version=no ++ shlibpath_overrides_runpath=no ++ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ++ ;; ++ esac ++ ;; ++ ++sysv4*MP*) ++ if test -d /usr/nec ;then ++ version_type=linux ++ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' ++ soname_spec='$libname${shared_ext}.$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ fi ++ ;; ++ ++sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) ++ version_type=freebsd-elf ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ if test "$with_gnu_ld" = yes; then ++ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' ++ else ++ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' ++ case $host_os in ++ sco3.2v5*) ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ++ ;; ++ esac ++ fi ++ sys_lib_dlsearch_path_spec='/usr/lib' ++ ;; ++ ++tpf*) ++ # TPF is a cross-target only. Preferred cross-host = GNU/Linux. ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ ;; ++ ++uts4*) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ ;; ++ ++*) ++ dynamic_linker=no ++ ;; ++esac ++{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 ++echo "${ECHO_T}$dynamic_linker" >&6; } ++test "$dynamic_linker" = no && can_build_shared=no ++ ++variables_saved_for_relink="PATH $shlibpath_var $runpath_var" ++if test "$GCC" = yes; then ++ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" ++fi ++ ++if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then ++ sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" ++fi ++if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then ++ sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 ++echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } ++hardcode_action= ++if test -n "$hardcode_libdir_flag_spec" || ++ test -n "$runpath_var" || ++ test "X$hardcode_automatic" = "Xyes" ; then ++ ++ # We can hardcode non-existent directories. ++ if test "$hardcode_direct" != no && ++ # If the only mechanism to avoid hardcoding is shlibpath_var, we ++ # have to relink, otherwise we might link with an installed library ++ # when we should be linking with a yet-to-be-installed one ++ ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && ++ test "$hardcode_minus_L" != no; then ++ # Linking always hardcodes the temporary library directory. ++ hardcode_action=relink ++ else ++ # We can link without hardcoding, and we can hardcode nonexisting dirs. ++ hardcode_action=immediate ++ fi ++else ++ # We cannot hardcode anything, or else we can only hardcode existing ++ # directories. ++ hardcode_action=unsupported ++fi ++{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 ++echo "${ECHO_T}$hardcode_action" >&6; } ++ ++if test "$hardcode_action" = relink || ++ test "$inherit_rpath" = yes; then ++ # Fast installation is not supported ++ enable_fast_install=no ++elif test "$shlibpath_overrides_runpath" = yes || ++ test "$enable_shared" = no; then ++ # Fast installation is not necessary ++ enable_fast_install=needless ++fi ++ ++ ++ ++ ++ ++ ++ if test "x$enable_dlopen" != xyes; then ++ enable_dlopen=unknown ++ enable_dlopen_self=unknown ++ enable_dlopen_self_static=unknown ++else ++ lt_cv_dlopen=no ++ lt_cv_dlopen_libs= ++ ++ case $host_os in ++ beos*) ++ lt_cv_dlopen="load_add_on" ++ lt_cv_dlopen_libs= ++ lt_cv_dlopen_self=yes ++ ;; ++ ++ mingw* | pw32* | cegcc*) ++ lt_cv_dlopen="LoadLibrary" ++ lt_cv_dlopen_libs= ++ ;; ++ ++ cygwin*) ++ lt_cv_dlopen="dlopen" ++ lt_cv_dlopen_libs= ++ ;; ++ ++ darwin*) ++ # if libdl is installed we need to link against it ++ { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 ++echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dl_dlopen+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldl $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dlopen (); ++int ++main () ++{ ++return dlopen (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dl_dlopen=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dl_dlopen=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 ++echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } ++if test $ac_cv_lib_dl_dlopen = yes; then ++ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" ++else ++ ++ lt_cv_dlopen="dyld" ++ lt_cv_dlopen_libs= ++ lt_cv_dlopen_self=yes ++ ++fi ++ ++ ;; ++ ++ *) ++ { echo "$as_me:$LINENO: checking for shl_load" >&5 ++echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } ++if test "${ac_cv_func_shl_load+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define shl_load to an innocuous variant, in case declares shl_load. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define shl_load innocuous_shl_load ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char shl_load (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef shl_load ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char shl_load (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_shl_load || defined __stub___shl_load ++choke me ++#endif ++ ++int ++main () ++{ ++return shl_load (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_shl_load=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_shl_load=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 ++echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } ++if test $ac_cv_func_shl_load = yes; then ++ lt_cv_dlopen="shl_load" ++else ++ { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 ++echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dld_shl_load+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldld $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char shl_load (); ++int ++main () ++{ ++return shl_load (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dld_shl_load=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dld_shl_load=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 ++echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } ++if test $ac_cv_lib_dld_shl_load = yes; then ++ lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" ++else ++ { echo "$as_me:$LINENO: checking for dlopen" >&5 ++echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } ++if test "${ac_cv_func_dlopen+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define dlopen to an innocuous variant, in case declares dlopen. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define dlopen innocuous_dlopen ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char dlopen (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef dlopen ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dlopen (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_dlopen || defined __stub___dlopen ++choke me ++#endif ++ ++int ++main () ++{ ++return dlopen (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_dlopen=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_dlopen=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 ++echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } ++if test $ac_cv_func_dlopen = yes; then ++ lt_cv_dlopen="dlopen" ++else ++ { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 ++echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dl_dlopen+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldl $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dlopen (); ++int ++main () ++{ ++return dlopen (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dl_dlopen=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dl_dlopen=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 ++echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } ++if test $ac_cv_lib_dl_dlopen = yes; then ++ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" ++else ++ { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 ++echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } ++if test "${ac_cv_lib_svld_dlopen+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lsvld $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dlopen (); ++int ++main () ++{ ++return dlopen (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_svld_dlopen=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_svld_dlopen=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 ++echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } ++if test $ac_cv_lib_svld_dlopen = yes; then ++ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" ++else ++ { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 ++echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dld_dld_link+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldld $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dld_link (); ++int ++main () ++{ ++return dld_link (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dld_dld_link=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dld_dld_link=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 ++echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } ++if test $ac_cv_lib_dld_dld_link = yes; then ++ lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" ++fi ++ ++ ++fi ++ ++ ++fi ++ ++ ++fi ++ ++ ++fi ++ ++ ++fi ++ ++ ;; ++ esac ++ ++ if test "x$lt_cv_dlopen" != xno; then ++ enable_dlopen=yes ++ else ++ enable_dlopen=no ++ fi ++ ++ case $lt_cv_dlopen in ++ dlopen) ++ save_CPPFLAGS="$CPPFLAGS" ++ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" ++ ++ save_LDFLAGS="$LDFLAGS" ++ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" ++ ++ save_LIBS="$LIBS" ++ LIBS="$lt_cv_dlopen_libs $LIBS" ++ ++ { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 ++echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } ++if test "${lt_cv_dlopen_self+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then : ++ lt_cv_dlopen_self=cross ++else ++ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 ++ lt_status=$lt_dlunknown ++ cat > conftest.$ac_ext <<_LT_EOF ++#line __oline__ "configure" ++#include "confdefs.h" ++ ++#if HAVE_DLFCN_H ++#include ++#endif ++ ++#include ++ ++#ifdef RTLD_GLOBAL ++# define LT_DLGLOBAL RTLD_GLOBAL ++#else ++# ifdef DL_GLOBAL ++# define LT_DLGLOBAL DL_GLOBAL ++# else ++# define LT_DLGLOBAL 0 ++# endif ++#endif ++ ++/* We may have to define LT_DLLAZY_OR_NOW in the command line if we ++ find out it does not work in some platform. */ ++#ifndef LT_DLLAZY_OR_NOW ++# ifdef RTLD_LAZY ++# define LT_DLLAZY_OR_NOW RTLD_LAZY ++# else ++# ifdef DL_LAZY ++# define LT_DLLAZY_OR_NOW DL_LAZY ++# else ++# ifdef RTLD_NOW ++# define LT_DLLAZY_OR_NOW RTLD_NOW ++# else ++# ifdef DL_NOW ++# define LT_DLLAZY_OR_NOW DL_NOW ++# else ++# define LT_DLLAZY_OR_NOW 0 ++# endif ++# endif ++# endif ++# endif ++#endif ++ ++void fnord() { int i=42;} ++int main () ++{ ++ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); ++ int status = $lt_dlunknown; ++ ++ if (self) ++ { ++ if (dlsym (self,"fnord")) status = $lt_dlno_uscore; ++ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; ++ /* dlclose (self); */ ++ } ++ else ++ puts (dlerror ()); ++ ++ return status; ++} ++_LT_EOF ++ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ++ (eval $ac_link) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then ++ (./conftest; exit; ) >&5 2>/dev/null ++ lt_status=$? ++ case x$lt_status in ++ x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; ++ x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; ++ x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; ++ esac ++ else : ++ # compilation failed ++ lt_cv_dlopen_self=no ++ fi ++fi ++rm -fr conftest* ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 ++echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } ++ ++ if test "x$lt_cv_dlopen_self" = xyes; then ++ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" ++ { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 ++echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } ++if test "${lt_cv_dlopen_self_static+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then : ++ lt_cv_dlopen_self_static=cross ++else ++ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 ++ lt_status=$lt_dlunknown ++ cat > conftest.$ac_ext <<_LT_EOF ++#line __oline__ "configure" ++#include "confdefs.h" ++ ++#if HAVE_DLFCN_H ++#include ++#endif ++ ++#include ++ ++#ifdef RTLD_GLOBAL ++# define LT_DLGLOBAL RTLD_GLOBAL ++#else ++# ifdef DL_GLOBAL ++# define LT_DLGLOBAL DL_GLOBAL ++# else ++# define LT_DLGLOBAL 0 ++# endif ++#endif ++ ++/* We may have to define LT_DLLAZY_OR_NOW in the command line if we ++ find out it does not work in some platform. */ ++#ifndef LT_DLLAZY_OR_NOW ++# ifdef RTLD_LAZY ++# define LT_DLLAZY_OR_NOW RTLD_LAZY ++# else ++# ifdef DL_LAZY ++# define LT_DLLAZY_OR_NOW DL_LAZY ++# else ++# ifdef RTLD_NOW ++# define LT_DLLAZY_OR_NOW RTLD_NOW ++# else ++# ifdef DL_NOW ++# define LT_DLLAZY_OR_NOW DL_NOW ++# else ++# define LT_DLLAZY_OR_NOW 0 ++# endif ++# endif ++# endif ++# endif ++#endif ++ ++void fnord() { int i=42;} ++int main () ++{ ++ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); ++ int status = $lt_dlunknown; ++ ++ if (self) ++ { ++ if (dlsym (self,"fnord")) status = $lt_dlno_uscore; ++ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; ++ /* dlclose (self); */ ++ } ++ else ++ puts (dlerror ()); ++ ++ return status; ++} ++_LT_EOF ++ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ++ (eval $ac_link) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then ++ (./conftest; exit; ) >&5 2>/dev/null ++ lt_status=$? ++ case x$lt_status in ++ x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; ++ x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; ++ x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; ++ esac ++ else : ++ # compilation failed ++ lt_cv_dlopen_self_static=no ++ fi ++fi ++rm -fr conftest* ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 ++echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } ++ fi ++ ++ CPPFLAGS="$save_CPPFLAGS" ++ LDFLAGS="$save_LDFLAGS" ++ LIBS="$save_LIBS" ++ ;; ++ esac ++ ++ case $lt_cv_dlopen_self in ++ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; ++ *) enable_dlopen_self=unknown ;; ++ esac ++ ++ case $lt_cv_dlopen_self_static in ++ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; ++ *) enable_dlopen_self_static=unknown ;; ++ esac ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++striplib= ++old_striplib= ++{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 ++echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } ++if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then ++ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" ++ test -z "$striplib" && striplib="$STRIP --strip-unneeded" ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++# FIXME - insert some real tests, host_os isn't really good enough ++ case $host_os in ++ darwin*) ++ if test -n "$STRIP" ; then ++ striplib="$STRIP -x" ++ old_striplib="$STRIP -S" ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ;; ++ *) ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ;; ++ esac ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ # Report which library types will actually be built ++ { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 ++echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $can_build_shared" >&5 ++echo "${ECHO_T}$can_build_shared" >&6; } ++ ++ { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 ++echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } ++ test "$can_build_shared" = "no" && enable_shared=no ++ ++ # On AIX, shared libraries and static libraries use the same namespace, and ++ # are all built from PIC. ++ case $host_os in ++ aix3*) ++ test "$enable_shared" = yes && enable_static=no ++ if test -n "$RANLIB"; then ++ archive_cmds="$archive_cmds~\$RANLIB \$lib" ++ postinstall_cmds='$RANLIB $lib' ++ fi ++ ;; ++ ++ aix[4-9]*) ++ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then ++ test "$enable_shared" = yes && enable_static=no ++ fi ++ ;; ++ esac ++ { echo "$as_me:$LINENO: result: $enable_shared" >&5 ++echo "${ECHO_T}$enable_shared" >&6; } ++ ++ { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 ++echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } ++ # Make sure either enable_shared or enable_static is yes. ++ test "$enable_shared" = yes || enable_static=yes ++ { echo "$as_me:$LINENO: result: $enable_static" >&5 ++echo "${ECHO_T}$enable_static" >&6; } ++ ++ ++ ++ ++fi ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++CC="$lt_save_CC" ++ ++ ++ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++archive_cmds_need_lc_CXX=no ++allow_undefined_flag_CXX= ++always_export_symbols_CXX=no ++archive_expsym_cmds_CXX= ++compiler_needs_object_CXX=no ++export_dynamic_flag_spec_CXX= ++hardcode_direct_CXX=no ++hardcode_direct_absolute_CXX=no ++hardcode_libdir_flag_spec_CXX= ++hardcode_libdir_flag_spec_ld_CXX= ++hardcode_libdir_separator_CXX= ++hardcode_minus_L_CXX=no ++hardcode_shlibpath_var_CXX=unsupported ++hardcode_automatic_CXX=no ++inherit_rpath_CXX=no ++module_cmds_CXX= ++module_expsym_cmds_CXX= ++link_all_deplibs_CXX=unknown ++old_archive_cmds_CXX=$old_archive_cmds ++no_undefined_flag_CXX= ++whole_archive_flag_spec_CXX= ++enable_shared_with_static_runtimes_CXX=no ++ ++# Source file extension for C++ test sources. ++ac_ext=cpp ++ ++# Object file extension for compiled C++ test sources. ++objext=o ++objext_CXX=$objext ++ ++# No sense in running all these tests if we already determined that ++# the CXX compiler isn't working. Some variables (like enable_shared) ++# are currently assumed to apply to all compilers on this platform, ++# and will be corrupted by setting them based on a non-working compiler. ++if test "$_lt_caught_CXX_error" != yes; then ++ # Code to be used in simple compile tests ++ lt_simple_compile_test_code="int some_variable = 0;" ++ ++ # Code to be used in simple link tests ++ lt_simple_link_test_code='int main(int, char *[]) { return(0); }' ++ ++ # ltmain only uses $CC for tagged configurations so make sure $CC is set. ++ ++ ++ ++ ++ ++ ++# If no C compiler was specified, use CC. ++LTCC=${LTCC-"$CC"} ++ ++# If no C compiler flags were specified, use CFLAGS. ++LTCFLAGS=${LTCFLAGS-"$CFLAGS"} ++ ++# Allow CC to be a program name with arguments. ++compiler=$CC ++ ++ ++ # save warnings/boilerplate of simple test code ++ ac_outfile=conftest.$ac_objext ++echo "$lt_simple_compile_test_code" >conftest.$ac_ext ++eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err ++_lt_compiler_boilerplate=`cat conftest.err` ++$RM conftest* ++ ++ ac_outfile=conftest.$ac_objext ++echo "$lt_simple_link_test_code" >conftest.$ac_ext ++eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err ++_lt_linker_boilerplate=`cat conftest.err` ++$RM -r conftest* ++ ++ ++ # Allow CC to be a program name with arguments. ++ lt_save_CC=$CC ++ lt_save_LD=$LD ++ lt_save_GCC=$GCC ++ GCC=$GXX ++ lt_save_with_gnu_ld=$with_gnu_ld ++ lt_save_path_LD=$lt_cv_path_LD ++ if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then ++ lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx ++ else ++ $as_unset lt_cv_prog_gnu_ld ++ fi ++ if test -n "${lt_cv_path_LDCXX+set}"; then ++ lt_cv_path_LD=$lt_cv_path_LDCXX ++ else ++ $as_unset lt_cv_path_LD ++ fi ++ test -z "${LDCXX+set}" || LD=$LDCXX ++ CC=${CXX-"c++"} ++ compiler=$CC ++ compiler_CXX=$CC ++ for cc_temp in $compiler""; do ++ case $cc_temp in ++ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; ++ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; ++ \-*) ;; ++ *) break;; ++ esac ++done ++cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` ++ ++ ++ if test -n "$compiler"; then ++ # We don't want -fno-exception when compiling C++ code, so set the ++ # no_builtin_flag separately ++ if test "$GXX" = yes; then ++ lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' ++ else ++ lt_prog_compiler_no_builtin_flag_CXX= ++ fi ++ ++ if test "$GXX" = yes; then ++ # Set up default GNU C++ configuration ++ ++ ++ ++# Check whether --with-gnu-ld was given. ++if test "${with_gnu_ld+set}" = set; then ++ withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes ++else ++ with_gnu_ld=no ++fi ++ ++ac_prog=ld ++if test "$GCC" = yes; then ++ # Check if gcc -print-prog-name=ld gives a path. ++ { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 ++echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } ++ case $host in ++ *-*-mingw*) ++ # gcc leaves a trailing carriage return which upsets mingw ++ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; ++ *) ++ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; ++ esac ++ case $ac_prog in ++ # Accept absolute paths. ++ [\\/]* | ?:[\\/]*) ++ re_direlt='/[^/][^/]*/\.\./' ++ # Canonicalize the pathname of ld ++ ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` ++ while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ++ ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` ++ done ++ test -z "$LD" && LD="$ac_prog" ++ ;; ++ "") ++ # If it fails, then pretend we aren't using GCC. ++ ac_prog=ld ++ ;; ++ *) ++ # If it is relative, then search for the first ld in PATH. ++ with_gnu_ld=unknown ++ ;; ++ esac ++elif test "$with_gnu_ld" = yes; then ++ { echo "$as_me:$LINENO: checking for GNU ld" >&5 ++echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } ++else ++ { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 ++echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } ++fi ++if test "${lt_cv_path_LD+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -z "$LD"; then ++ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ++ for ac_dir in $PATH; do ++ IFS="$lt_save_ifs" ++ test -z "$ac_dir" && ac_dir=. ++ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then ++ lt_cv_path_LD="$ac_dir/$ac_prog" ++ # Check to see if the program is GNU ld. I'd rather use --version, ++ # but apparently some variants of GNU ld only accept -v. ++ # Break only if it was the GNU/non-GNU ld that we prefer. ++ case `"$lt_cv_path_LD" -v 2>&1 &5 ++echo "${ECHO_T}$LD" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 ++echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} ++ { (exit 1); exit 1; }; } ++{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 ++echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } ++if test "${lt_cv_prog_gnu_ld+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # I'd rather use --version here, but apparently some GNU lds only accept -v. ++case `$LD -v 2>&1 &5 ++echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } ++with_gnu_ld=$lt_cv_prog_gnu_ld ++ ++ ++ ++ ++ ++ ++ ++ # Check if GNU C++ uses GNU ld as the underlying linker, since the ++ # archiving commands below assume that GNU ld is being used. ++ if test "$with_gnu_ld" = yes; then ++ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ ++ hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' ++ export_dynamic_flag_spec_CXX='${wl}--export-dynamic' ++ ++ # If archive_cmds runs LD, not CC, wlarc should be empty ++ # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to ++ # investigate it a little bit more. (MM) ++ wlarc='${wl}' ++ ++ # ancient GNU ld didn't support --whole-archive et. al. ++ if eval "`$CC -print-prog-name=ld` --help 2>&1" | ++ $GREP 'no-whole-archive' > /dev/null; then ++ whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' ++ else ++ whole_archive_flag_spec_CXX= ++ fi ++ else ++ with_gnu_ld=no ++ wlarc= ++ ++ # A generic and very simple default shared library creation ++ # command for GNU C++ for the case where it uses the native ++ # linker, instead of GNU ld. If possible, this setting should ++ # overridden to take advantage of the native linker features on ++ # the platform it is being used on. ++ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' ++ fi ++ ++ # Commands to make compiler produce verbose output that lists ++ # what "hidden" libraries, object files and flags are used when ++ # linking a shared library. ++ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' ++ ++ else ++ GXX=no ++ with_gnu_ld=no ++ wlarc= ++ fi ++ ++ # PORTME: fill in a description of your system's C++ link characteristics ++ { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 ++echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } ++ ld_shlibs_CXX=yes ++ case $host_os in ++ aix3*) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ aix[4-9]*) ++ if test "$host_cpu" = ia64; then ++ # On IA64, the linker does run time linking by default, so we don't ++ # have to do anything special. ++ aix_use_runtimelinking=no ++ exp_sym_flag='-Bexport' ++ no_entry_flag="" ++ else ++ aix_use_runtimelinking=no ++ ++ # Test if we are trying to use run time linking or normal ++ # AIX style linking. If -brtl is somewhere in LDFLAGS, we ++ # need to do runtime linking. ++ case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) ++ for ld_flag in $LDFLAGS; do ++ case $ld_flag in ++ *-brtl*) ++ aix_use_runtimelinking=yes ++ break ++ ;; ++ esac ++ done ++ ;; ++ esac ++ ++ exp_sym_flag='-bexport' ++ no_entry_flag='-bnoentry' ++ fi ++ ++ # When large executables or shared objects are built, AIX ld can ++ # have problems creating the table of contents. If linking a library ++ # or program results in "error TOC overflow" add -mminimal-toc to ++ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not ++ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. ++ ++ archive_cmds_CXX='' ++ hardcode_direct_CXX=yes ++ hardcode_direct_absolute_CXX=yes ++ hardcode_libdir_separator_CXX=':' ++ link_all_deplibs_CXX=yes ++ file_list_spec_CXX='${wl}-f,' ++ ++ if test "$GXX" = yes; then ++ case $host_os in aix4.[012]|aix4.[012].*) ++ # We only want to do this on AIX 4.2 and lower, the check ++ # below for broken collect2 doesn't work under 4.3+ ++ collect2name=`${CC} -print-prog-name=collect2` ++ if test -f "$collect2name" && ++ strings "$collect2name" | $GREP resolve_lib_name >/dev/null ++ then ++ # We have reworked collect2 ++ : ++ else ++ # We have old collect2 ++ hardcode_direct_CXX=unsupported ++ # It fails to find uninstalled libraries when the uninstalled ++ # path is not listed in the libpath. Setting hardcode_minus_L ++ # to unsupported forces relinking ++ hardcode_minus_L_CXX=yes ++ hardcode_libdir_flag_spec_CXX='-L$libdir' ++ hardcode_libdir_separator_CXX= ++ fi ++ esac ++ shared_flag='-shared' ++ if test "$aix_use_runtimelinking" = yes; then ++ shared_flag="$shared_flag "'${wl}-G' ++ fi ++ else ++ # not using gcc ++ if test "$host_cpu" = ia64; then ++ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release ++ # chokes on -Wl,-G. The following line is correct: ++ shared_flag='-G' ++ else ++ if test "$aix_use_runtimelinking" = yes; then ++ shared_flag='${wl}-G' ++ else ++ shared_flag='${wl}-bM:SRE' ++ fi ++ fi ++ fi ++ ++ export_dynamic_flag_spec_CXX='${wl}-bexpall' ++ # It seems that -bexpall does not export symbols beginning with ++ # underscore (_), so it is better to generate a list of symbols to ++ # export. ++ always_export_symbols_CXX=yes ++ if test "$aix_use_runtimelinking" = yes; then ++ # Warning - without using the other runtime loading flags (-brtl), ++ # -berok will link without error, but may produce a broken library. ++ allow_undefined_flag_CXX='-berok' ++ # Determine the default libpath from the value encoded in an empty ++ # executable. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ++lt_aix_libpath_sed=' ++ /Import File Strings/,/^$/ { ++ /^0/ { ++ s/^0 *\(.*\)$/\1/ ++ p ++ } ++ }' ++aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++# Check for a 64-bit object if we didn't find anything. ++if test -z "$aix_libpath"; then ++ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++fi ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ++ ++ hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" ++ ++ archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" ++ else ++ if test "$host_cpu" = ia64; then ++ hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' ++ allow_undefined_flag_CXX="-z nodefs" ++ archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" ++ else ++ # Determine the default libpath from the value encoded in an ++ # empty executable. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ++lt_aix_libpath_sed=' ++ /Import File Strings/,/^$/ { ++ /^0/ { ++ s/^0 *\(.*\)$/\1/ ++ p ++ } ++ }' ++aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++# Check for a 64-bit object if we didn't find anything. ++if test -z "$aix_libpath"; then ++ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++fi ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ++ ++ hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" ++ # Warning - without using the other run time loading flags, ++ # -berok will link without error, but may produce a broken library. ++ no_undefined_flag_CXX=' ${wl}-bernotok' ++ allow_undefined_flag_CXX=' ${wl}-berok' ++ # Exported symbols can be pulled into shared objects from archives ++ whole_archive_flag_spec_CXX='$convenience' ++ archive_cmds_need_lc_CXX=yes ++ # This is similar to how AIX traditionally builds its shared ++ # libraries. ++ archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' ++ fi ++ fi ++ ;; ++ ++ beos*) ++ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ allow_undefined_flag_CXX=unsupported ++ # Joseph Beckenbach says some releases of gcc ++ # support --undefined. This deserves some investigation. FIXME ++ archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ else ++ ld_shlibs_CXX=no ++ fi ++ ;; ++ ++ chorus*) ++ case $cc_basename in ++ *) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ esac ++ ;; ++ ++ cygwin* | mingw* | pw32* | cegcc*) ++ # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, ++ # as there is no search path for DLLs. ++ hardcode_libdir_flag_spec_CXX='-L$libdir' ++ allow_undefined_flag_CXX=unsupported ++ always_export_symbols_CXX=no ++ enable_shared_with_static_runtimes_CXX=yes ++ ++ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then ++ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' ++ # If the export-symbols file already is a .def file (1st line ++ # is EXPORTS), use it as is; otherwise, prepend... ++ archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then ++ cp $export_symbols $output_objdir/$soname.def; ++ else ++ echo EXPORTS > $output_objdir/$soname.def; ++ cat $export_symbols >> $output_objdir/$soname.def; ++ fi~ ++ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' ++ else ++ ld_shlibs_CXX=no ++ fi ++ ;; ++ darwin* | rhapsody*) ++ ++ ++ archive_cmds_need_lc_CXX=no ++ hardcode_direct_CXX=no ++ hardcode_automatic_CXX=yes ++ hardcode_shlibpath_var_CXX=unsupported ++ whole_archive_flag_spec_CXX='' ++ link_all_deplibs_CXX=yes ++ allow_undefined_flag_CXX="$_lt_dar_allow_undefined" ++ case $cc_basename in ++ ifort*) _lt_dar_can_shared=yes ;; ++ *) _lt_dar_can_shared=$GCC ;; ++ esac ++ if test "$_lt_dar_can_shared" = "yes"; then ++ output_verbose_link_cmd=echo ++ archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" ++ module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" ++ archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" ++ module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" ++ if test "$lt_cv_apple_cc_single_mod" != "yes"; then ++ archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" ++ archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" ++ fi ++ ++ else ++ ld_shlibs_CXX=no ++ fi ++ ++ ;; ++ ++ dgux*) ++ case $cc_basename in ++ ec++*) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ ghcx*) ++ # Green Hills C++ Compiler ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ *) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ esac ++ ;; ++ ++ freebsd[12]*) ++ # C++ shared libraries reported to be fairly broken before ++ # switch to ELF ++ ld_shlibs_CXX=no ++ ;; ++ ++ freebsd-elf*) ++ archive_cmds_need_lc_CXX=no ++ ;; ++ ++ freebsd* | dragonfly*) ++ # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF ++ # conventions ++ ld_shlibs_CXX=yes ++ ;; ++ ++ gnu*) ++ ;; ++ ++ hpux9*) ++ hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' ++ hardcode_libdir_separator_CXX=: ++ export_dynamic_flag_spec_CXX='${wl}-E' ++ hardcode_direct_CXX=yes ++ hardcode_minus_L_CXX=yes # Not in the search PATH, ++ # but as the default ++ # location of the library. ++ ++ case $cc_basename in ++ CC*) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ aCC*) ++ archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ++ # Commands to make compiler produce verbose output that lists ++ # what "hidden" libraries, object files and flags are used when ++ # linking a shared library. ++ # ++ # There doesn't appear to be a way to prevent this compiler from ++ # explicitly linking system object files so we need to strip them ++ # from the output so that they don't get included in the library ++ # dependencies. ++ output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ++ ;; ++ *) ++ if test "$GXX" = yes; then ++ archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ++ else ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ fi ++ ;; ++ esac ++ ;; ++ ++ hpux10*|hpux11*) ++ if test $with_gnu_ld = no; then ++ hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' ++ hardcode_libdir_separator_CXX=: ++ ++ case $host_cpu in ++ hppa*64*|ia64*) ++ ;; ++ *) ++ export_dynamic_flag_spec_CXX='${wl}-E' ++ ;; ++ esac ++ fi ++ case $host_cpu in ++ hppa*64*|ia64*) ++ hardcode_direct_CXX=no ++ hardcode_shlibpath_var_CXX=no ++ ;; ++ *) ++ hardcode_direct_CXX=yes ++ hardcode_direct_absolute_CXX=yes ++ hardcode_minus_L_CXX=yes # Not in the search PATH, ++ # but as the default ++ # location of the library. ++ ;; ++ esac ++ ++ case $cc_basename in ++ CC*) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ aCC*) ++ case $host_cpu in ++ hppa*64*) ++ archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ++ ;; ++ ia64*) ++ archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ++ ;; ++ *) ++ archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ++ ;; ++ esac ++ # Commands to make compiler produce verbose output that lists ++ # what "hidden" libraries, object files and flags are used when ++ # linking a shared library. ++ # ++ # There doesn't appear to be a way to prevent this compiler from ++ # explicitly linking system object files so we need to strip them ++ # from the output so that they don't get included in the library ++ # dependencies. ++ output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ++ ;; ++ *) ++ if test "$GXX" = yes; then ++ if test $with_gnu_ld = no; then ++ case $host_cpu in ++ hppa*64*) ++ archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ++ ;; ++ ia64*) ++ archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ++ ;; ++ *) ++ archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ++ ;; ++ esac ++ fi ++ else ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ fi ++ ;; ++ esac ++ ;; ++ ++ interix[3-9]*) ++ hardcode_direct_CXX=no ++ hardcode_shlibpath_var_CXX=no ++ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' ++ export_dynamic_flag_spec_CXX='${wl}-E' ++ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. ++ # Instead, shared libraries are loaded at an image base (0x10000000 by ++ # default) and relocated if they conflict, which is a slow very memory ++ # consuming and fragmenting process. To avoid this, we pick a random, ++ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link ++ # time. Moving up from 0x10000000 also allows more sbrk(2) space. ++ archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ++ archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ++ ;; ++ irix5* | irix6*) ++ case $cc_basename in ++ CC*) ++ # SGI C++ ++ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' ++ ++ # Archives containing C++ object files must be created using ++ # "CC -ar", where "CC" is the IRIX C++ compiler. This is ++ # necessary to make sure instantiated templates are included ++ # in the archive. ++ old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ++ ;; ++ *) ++ if test "$GXX" = yes; then ++ if test "$with_gnu_ld" = no; then ++ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ++ else ++ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' ++ fi ++ fi ++ link_all_deplibs_CXX=yes ++ ;; ++ esac ++ hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' ++ hardcode_libdir_separator_CXX=: ++ inherit_rpath_CXX=yes ++ ;; ++ ++ linux* | k*bsd*-gnu) ++ case $cc_basename in ++ KCC*) ++ # Kuck and Associates, Inc. (KAI) C++ Compiler ++ ++ # KCC will only create a shared library if the output file ++ # ends with ".so" (or ".sl" for HP-UX), so rename the library ++ # to its proper name (with version) after linking. ++ archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' ++ archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' ++ # Commands to make compiler produce verbose output that lists ++ # what "hidden" libraries, object files and flags are used when ++ # linking a shared library. ++ # ++ # There doesn't appear to be a way to prevent this compiler from ++ # explicitly linking system object files so we need to strip them ++ # from the output so that they don't get included in the library ++ # dependencies. ++ output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ++ ++ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' ++ export_dynamic_flag_spec_CXX='${wl}--export-dynamic' ++ ++ # Archives containing C++ object files must be created using ++ # "CC -Bstatic", where "CC" is the KAI C++ compiler. ++ old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ++ ;; ++ icpc* | ecpc* ) ++ # Intel C++ ++ with_gnu_ld=yes ++ # version 8.0 and above of icpc choke on multiply defined symbols ++ # if we add $predep_objects and $postdep_objects, however 7.1 and ++ # earlier do not add the objects themselves. ++ case `$CC -V 2>&1` in ++ *"Version 7."*) ++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ ;; ++ *) # Version 8.0 or newer ++ tmp_idyn= ++ case $host_cpu in ++ ia64*) tmp_idyn=' -i_dynamic';; ++ esac ++ archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ ;; ++ esac ++ archive_cmds_need_lc_CXX=no ++ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' ++ export_dynamic_flag_spec_CXX='${wl}--export-dynamic' ++ whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ++ ;; ++ pgCC* | pgcpp*) ++ # Portland Group C++ compiler ++ case `$CC -V` in ++ *pgCC\ [1-5]* | *pgcpp\ [1-5]*) ++ prelink_cmds_CXX='tpldir=Template.dir~ ++ rm -rf $tpldir~ ++ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ ++ compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' ++ old_archive_cmds_CXX='tpldir=Template.dir~ ++ rm -rf $tpldir~ ++ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ ++ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ ++ $RANLIB $oldlib' ++ archive_cmds_CXX='tpldir=Template.dir~ ++ rm -rf $tpldir~ ++ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ ++ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' ++ archive_expsym_cmds_CXX='tpldir=Template.dir~ ++ rm -rf $tpldir~ ++ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ ++ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ++ ;; ++ *) # Version 6 will use weak symbols ++ archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' ++ archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ++ ;; ++ esac ++ ++ hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' ++ export_dynamic_flag_spec_CXX='${wl}--export-dynamic' ++ whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ++ ;; ++ cxx*) ++ # Compaq C++ ++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' ++ ++ runpath_var=LD_RUN_PATH ++ hardcode_libdir_flag_spec_CXX='-rpath $libdir' ++ hardcode_libdir_separator_CXX=: ++ ++ # Commands to make compiler produce verbose output that lists ++ # what "hidden" libraries, object files and flags are used when ++ # linking a shared library. ++ # ++ # There doesn't appear to be a way to prevent this compiler from ++ # explicitly linking system object files so we need to strip them ++ # from the output so that they don't get included in the library ++ # dependencies. ++ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ++ ;; ++ xl*) ++ # IBM XL 8.0 on PPC, with GNU ld ++ hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' ++ export_dynamic_flag_spec_CXX='${wl}--export-dynamic' ++ archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ if test "x$supports_anon_versioning" = xyes; then ++ archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ ++ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ ++ echo "local: *; };" >> $output_objdir/$libname.ver~ ++ $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' ++ fi ++ ;; ++ *) ++ case `$CC -V 2>&1 | sed 5q` in ++ *Sun\ C*) ++ # Sun C++ 5.9 ++ no_undefined_flag_CXX=' -zdefs' ++ archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ++ archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' ++ hardcode_libdir_flag_spec_CXX='-R$libdir' ++ whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ++ compiler_needs_object_CXX=yes ++ ++ # Not sure whether something based on ++ # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 ++ # would be better. ++ output_verbose_link_cmd='echo' ++ ++ # Archives containing C++ object files must be created using ++ # "CC -xar", where "CC" is the Sun C++ compiler. This is ++ # necessary to make sure instantiated templates are included ++ # in the archive. ++ old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ++ ;; ++ esac ++ ;; ++ esac ++ ;; ++ ++ lynxos*) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ ++ m88k*) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ ++ mvs*) ++ case $cc_basename in ++ cxx*) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ *) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ esac ++ ;; ++ ++ netbsd*) ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then ++ archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' ++ wlarc= ++ hardcode_libdir_flag_spec_CXX='-R$libdir' ++ hardcode_direct_CXX=yes ++ hardcode_shlibpath_var_CXX=no ++ fi ++ # Workaround some broken pre-1.5 toolchains ++ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ++ ;; ++ ++ *nto* | *qnx*) ++ ld_shlibs_CXX=yes ++ ;; ++ ++ openbsd2*) ++ # C++ shared libraries are fairly broken ++ ld_shlibs_CXX=no ++ ;; ++ ++ openbsd*) ++ if test -f /usr/libexec/ld.so; then ++ hardcode_direct_CXX=yes ++ hardcode_shlibpath_var_CXX=no ++ hardcode_direct_absolute_CXX=yes ++ archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' ++ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' ++ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ++ archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' ++ export_dynamic_flag_spec_CXX='${wl}-E' ++ whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' ++ fi ++ output_verbose_link_cmd=echo ++ else ++ ld_shlibs_CXX=no ++ fi ++ ;; ++ ++ osf3* | osf4* | osf5*) ++ case $cc_basename in ++ KCC*) ++ # Kuck and Associates, Inc. (KAI) C++ Compiler ++ ++ # KCC will only create a shared library if the output file ++ # ends with ".so" (or ".sl" for HP-UX), so rename the library ++ # to its proper name (with version) after linking. ++ archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' ++ ++ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' ++ hardcode_libdir_separator_CXX=: ++ ++ # Archives containing C++ object files must be created using ++ # the KAI C++ compiler. ++ case $host in ++ osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; ++ *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; ++ esac ++ ;; ++ RCC*) ++ # Rational C++ 2.4.1 ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ cxx*) ++ case $host in ++ osf3*) ++ allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' ++ archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' ++ hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' ++ ;; ++ *) ++ allow_undefined_flag_CXX=' -expect_unresolved \*' ++ archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' ++ archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ ++ echo "-hidden">> $lib.exp~ ++ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ ++ $RM $lib.exp' ++ hardcode_libdir_flag_spec_CXX='-rpath $libdir' ++ ;; ++ esac ++ ++ hardcode_libdir_separator_CXX=: ++ ++ # Commands to make compiler produce verbose output that lists ++ # what "hidden" libraries, object files and flags are used when ++ # linking a shared library. ++ # ++ # There doesn't appear to be a way to prevent this compiler from ++ # explicitly linking system object files so we need to strip them ++ # from the output so that they don't get included in the library ++ # dependencies. ++ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ++ ;; ++ *) ++ if test "$GXX" = yes && test "$with_gnu_ld" = no; then ++ allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' ++ case $host in ++ osf3*) ++ archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ++ ;; ++ *) ++ archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ++ ;; ++ esac ++ ++ hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' ++ hardcode_libdir_separator_CXX=: ++ ++ # Commands to make compiler produce verbose output that lists ++ # what "hidden" libraries, object files and flags are used when ++ # linking a shared library. ++ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' ++ ++ else ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ fi ++ ;; ++ esac ++ ;; ++ ++ psos*) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ ++ sunos4*) ++ case $cc_basename in ++ CC*) ++ # Sun C++ 4.x ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ lcc*) ++ # Lucid ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ *) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ esac ++ ;; ++ ++ solaris*) ++ case $cc_basename in ++ CC*) ++ # Sun C++ 4.2, 5.x and Centerline C++ ++ archive_cmds_need_lc_CXX=yes ++ no_undefined_flag_CXX=' -zdefs' ++ archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ++ archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ ++ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' ++ ++ hardcode_libdir_flag_spec_CXX='-R$libdir' ++ hardcode_shlibpath_var_CXX=no ++ case $host_os in ++ solaris2.[0-5] | solaris2.[0-5].*) ;; ++ *) ++ # The compiler driver will combine and reorder linker options, ++ # but understands `-z linker_flag'. ++ # Supported since Solaris 2.6 (maybe 2.5.1?) ++ whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' ++ ;; ++ esac ++ link_all_deplibs_CXX=yes ++ ++ output_verbose_link_cmd='echo' ++ ++ # Archives containing C++ object files must be created using ++ # "CC -xar", where "CC" is the Sun C++ compiler. This is ++ # necessary to make sure instantiated templates are included ++ # in the archive. ++ old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ++ ;; ++ gcx*) ++ # Green Hills C++ Compiler ++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' ++ ++ # The C++ compiler must be used to create the archive. ++ old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ++ ;; ++ *) ++ # GNU C++ compiler with Solaris linker ++ if test "$GXX" = yes && test "$with_gnu_ld" = no; then ++ no_undefined_flag_CXX=' ${wl}-z ${wl}defs' ++ if $CC --version | $GREP -v '^2\.7' > /dev/null; then ++ archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' ++ archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ ++ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' ++ ++ # Commands to make compiler produce verbose output that lists ++ # what "hidden" libraries, object files and flags are used when ++ # linking a shared library. ++ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' ++ else ++ # g++ 2.7 appears to require `-G' NOT `-shared' on this ++ # platform. ++ archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' ++ archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ ++ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' ++ ++ # Commands to make compiler produce verbose output that lists ++ # what "hidden" libraries, object files and flags are used when ++ # linking a shared library. ++ output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' ++ fi ++ ++ hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' ++ case $host_os in ++ solaris2.[0-5] | solaris2.[0-5].*) ;; ++ *) ++ whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ++ ;; ++ esac ++ fi ++ ;; ++ esac ++ ;; ++ ++ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) ++ no_undefined_flag_CXX='${wl}-z,text' ++ archive_cmds_need_lc_CXX=no ++ hardcode_shlibpath_var_CXX=no ++ runpath_var='LD_RUN_PATH' ++ ++ case $cc_basename in ++ CC*) ++ archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ *) ++ archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ esac ++ ;; ++ ++ sysv5* | sco3.2v5* | sco5v6*) ++ # Note: We can NOT use -z defs as we might desire, because we do not ++ # link with -lc, and that would cause any symbols used from libc to ++ # always be unresolved, which means just about no library would ++ # ever link correctly. If we're not using GNU ld we use -z text ++ # though, which does catch some bad symbols but isn't as heavy-handed ++ # as -z defs. ++ no_undefined_flag_CXX='${wl}-z,text' ++ allow_undefined_flag_CXX='${wl}-z,nodefs' ++ archive_cmds_need_lc_CXX=no ++ hardcode_shlibpath_var_CXX=no ++ hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' ++ hardcode_libdir_separator_CXX=':' ++ link_all_deplibs_CXX=yes ++ export_dynamic_flag_spec_CXX='${wl}-Bexport' ++ runpath_var='LD_RUN_PATH' ++ ++ case $cc_basename in ++ CC*) ++ archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ *) ++ archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ esac ++ ;; ++ ++ tandem*) ++ case $cc_basename in ++ NCC*) ++ # NonStop-UX NCC 3.20 ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ *) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ esac ++ ;; ++ ++ vxworks*) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ ++ *) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ esac ++ ++ { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 ++echo "${ECHO_T}$ld_shlibs_CXX" >&6; } ++ test "$ld_shlibs_CXX" = no && can_build_shared=no ++ ++ GCC_CXX="$GXX" ++ LD_CXX="$LD" ++ ++ ## CAVEAT EMPTOR: ++ ## There is no encapsulation within the following macros, do not change ++ ## the running order or otherwise move them around unless you know exactly ++ ## what you are doing... ++ # Dependencies to place before and after the object being linked: ++predep_objects_CXX= ++postdep_objects_CXX= ++predeps_CXX= ++postdeps_CXX= ++compiler_lib_search_path_CXX= ++ ++cat > conftest.$ac_ext <<_LT_EOF ++class Foo ++{ ++public: ++ Foo (void) { a = 0; } ++private: ++ int a; ++}; ++_LT_EOF ++ ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # Parse the compiler output and extract the necessary ++ # objects, libraries and library flags. ++ ++ # Sentinel used to keep track of whether or not we are before ++ # the conftest object file. ++ pre_test_object_deps_done=no ++ ++ for p in `eval "$output_verbose_link_cmd"`; do ++ case $p in ++ ++ -L* | -R* | -l*) ++ # Some compilers place space between "-{L,R}" and the path. ++ # Remove the space. ++ if test $p = "-L" || ++ test $p = "-R"; then ++ prev=$p ++ continue ++ else ++ prev= ++ fi ++ ++ if test "$pre_test_object_deps_done" = no; then ++ case $p in ++ -L* | -R*) ++ # Internal compiler library paths should come after those ++ # provided the user. The postdeps already come after the ++ # user supplied libs so there is no need to process them. ++ if test -z "$compiler_lib_search_path_CXX"; then ++ compiler_lib_search_path_CXX="${prev}${p}" ++ else ++ compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" ++ fi ++ ;; ++ # The "-l" case would never come before the object being ++ # linked, so don't bother handling this case. ++ esac ++ else ++ if test -z "$postdeps_CXX"; then ++ postdeps_CXX="${prev}${p}" ++ else ++ postdeps_CXX="${postdeps_CXX} ${prev}${p}" ++ fi ++ fi ++ ;; ++ ++ *.$objext) ++ # This assumes that the test object file only shows up ++ # once in the compiler output. ++ if test "$p" = "conftest.$objext"; then ++ pre_test_object_deps_done=yes ++ continue ++ fi ++ ++ if test "$pre_test_object_deps_done" = no; then ++ if test -z "$predep_objects_CXX"; then ++ predep_objects_CXX="$p" ++ else ++ predep_objects_CXX="$predep_objects_CXX $p" ++ fi ++ else ++ if test -z "$postdep_objects_CXX"; then ++ postdep_objects_CXX="$p" ++ else ++ postdep_objects_CXX="$postdep_objects_CXX $p" ++ fi ++ fi ++ ;; ++ ++ *) ;; # Ignore the rest. ++ ++ esac ++ done ++ ++ # Clean up. ++ rm -f a.out a.exe ++else ++ echo "libtool.m4: error: problem compiling CXX test program" ++fi ++ ++$RM -f confest.$objext ++ ++# PORTME: override above test on systems where it is broken ++case $host_os in ++interix[3-9]*) ++ # Interix 3.5 installs completely hosed .la files for C++, so rather than ++ # hack all around it, let's just trust "g++" to DTRT. ++ predep_objects_CXX= ++ postdep_objects_CXX= ++ postdeps_CXX= ++ ;; ++ ++linux*) ++ case `$CC -V 2>&1 | sed 5q` in ++ *Sun\ C*) ++ # Sun C++ 5.9 ++ ++ # The more standards-conforming stlport4 library is ++ # incompatible with the Cstd library. Avoid specifying ++ # it if it's in CXXFLAGS. Ignore libCrun as ++ # -library=stlport4 depends on it. ++ case " $CXX $CXXFLAGS " in ++ *" -library=stlport4 "*) ++ solaris_use_stlport4=yes ++ ;; ++ esac ++ ++ if test "$solaris_use_stlport4" != yes; then ++ postdeps_CXX='-library=Cstd -library=Crun' ++ fi ++ ;; ++ esac ++ ;; ++ ++solaris*) ++ case $cc_basename in ++ CC*) ++ # The more standards-conforming stlport4 library is ++ # incompatible with the Cstd library. Avoid specifying ++ # it if it's in CXXFLAGS. Ignore libCrun as ++ # -library=stlport4 depends on it. ++ case " $CXX $CXXFLAGS " in ++ *" -library=stlport4 "*) ++ solaris_use_stlport4=yes ++ ;; ++ esac ++ ++ # Adding this requires a known-good setup of shared libraries for ++ # Sun compiler versions before 5.6, else PIC objects from an old ++ # archive will be linked into the output, leading to subtle bugs. ++ if test "$solaris_use_stlport4" != yes; then ++ postdeps_CXX='-library=Cstd -library=Crun' ++ fi ++ ;; ++ esac ++ ;; ++esac ++ ++ ++case " $postdeps_CXX " in ++*" -lc "*) archive_cmds_need_lc_CXX=no ;; ++esac ++ compiler_lib_search_dirs_CXX= ++if test -n "${compiler_lib_search_path_CXX}"; then ++ compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ lt_prog_compiler_wl_CXX= ++lt_prog_compiler_pic_CXX= ++lt_prog_compiler_static_CXX= ++ ++{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 ++echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } ++ ++ # C++ specific cases for pic, static, wl, etc. ++ if test "$GXX" = yes; then ++ lt_prog_compiler_wl_CXX='-Wl,' ++ lt_prog_compiler_static_CXX='-static' ++ ++ case $host_os in ++ aix*) ++ # All AIX code is PIC. ++ if test "$host_cpu" = ia64; then ++ # AIX 5 now supports IA64 processor ++ lt_prog_compiler_static_CXX='-Bstatic' ++ fi ++ ;; ++ ++ amigaos*) ++ case $host_cpu in ++ powerpc) ++ # see comment about AmigaOS4 .so support ++ lt_prog_compiler_pic_CXX='-fPIC' ++ ;; ++ m68k) ++ # FIXME: we need at least 68020 code to build shared libraries, but ++ # adding the `-m68020' flag to GCC prevents building anything better, ++ # like `-m68040'. ++ lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' ++ ;; ++ esac ++ ;; ++ ++ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) ++ # PIC is the default for these OSes. ++ ;; ++ mingw* | cygwin* | os2* | pw32* | cegcc*) ++ # This hack is so that the source file can tell whether it is being ++ # built for inclusion in a dll (and should export symbols for example). ++ # Although the cygwin gcc ignores -fPIC, still need this for old-style ++ # (--disable-auto-import) libraries ++ lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ++ ;; ++ darwin* | rhapsody*) ++ # PIC is the default on this platform ++ # Common symbols not allowed in MH_DYLIB files ++ lt_prog_compiler_pic_CXX='-fno-common' ++ ;; ++ *djgpp*) ++ # DJGPP does not support shared libraries at all ++ lt_prog_compiler_pic_CXX= ++ ;; ++ interix[3-9]*) ++ # Interix 3.x gcc -fpic/-fPIC options generate broken code. ++ # Instead, we relocate shared libraries at runtime. ++ ;; ++ sysv4*MP*) ++ if test -d /usr/nec; then ++ lt_prog_compiler_pic_CXX=-Kconform_pic ++ fi ++ ;; ++ hpux*) ++ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit ++ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag ++ # sets the default TLS model and affects inlining. ++ case $host_cpu in ++ hppa*64*) ++ ;; ++ *) ++ lt_prog_compiler_pic_CXX='-fPIC' ++ ;; ++ esac ++ ;; ++ *qnx* | *nto*) ++ # QNX uses GNU C++, but need to define -shared option too, otherwise ++ # it will coredump. ++ lt_prog_compiler_pic_CXX='-fPIC -shared' ++ ;; ++ *) ++ lt_prog_compiler_pic_CXX='-fPIC' ++ ;; ++ esac ++ else ++ case $host_os in ++ aix[4-9]*) ++ # All AIX code is PIC. ++ if test "$host_cpu" = ia64; then ++ # AIX 5 now supports IA64 processor ++ lt_prog_compiler_static_CXX='-Bstatic' ++ else ++ lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' ++ fi ++ ;; ++ chorus*) ++ case $cc_basename in ++ cxch68*) ++ # Green Hills C++ Compiler ++ # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ++ ;; ++ esac ++ ;; ++ dgux*) ++ case $cc_basename in ++ ec++*) ++ lt_prog_compiler_pic_CXX='-KPIC' ++ ;; ++ ghcx*) ++ # Green Hills C++ Compiler ++ lt_prog_compiler_pic_CXX='-pic' ++ ;; ++ *) ++ ;; ++ esac ++ ;; ++ freebsd* | dragonfly*) ++ # FreeBSD uses GNU C++ ++ ;; ++ hpux9* | hpux10* | hpux11*) ++ case $cc_basename in ++ CC*) ++ lt_prog_compiler_wl_CXX='-Wl,' ++ lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' ++ if test "$host_cpu" != ia64; then ++ lt_prog_compiler_pic_CXX='+Z' ++ fi ++ ;; ++ aCC*) ++ lt_prog_compiler_wl_CXX='-Wl,' ++ lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' ++ case $host_cpu in ++ hppa*64*|ia64*) ++ # +Z the default ++ ;; ++ *) ++ lt_prog_compiler_pic_CXX='+Z' ++ ;; ++ esac ++ ;; ++ *) ++ ;; ++ esac ++ ;; ++ interix*) ++ # This is c89, which is MS Visual C++ (no shared libs) ++ # Anyone wants to do a port? ++ ;; ++ irix5* | irix6* | nonstopux*) ++ case $cc_basename in ++ CC*) ++ lt_prog_compiler_wl_CXX='-Wl,' ++ lt_prog_compiler_static_CXX='-non_shared' ++ # CC pic flag -KPIC is the default. ++ ;; ++ *) ++ ;; ++ esac ++ ;; ++ linux* | k*bsd*-gnu) ++ case $cc_basename in ++ KCC*) ++ # KAI C++ Compiler ++ lt_prog_compiler_wl_CXX='--backend -Wl,' ++ lt_prog_compiler_pic_CXX='-fPIC' ++ ;; ++ ecpc* ) ++ # old Intel C++ for x86_64 which still supported -KPIC. ++ lt_prog_compiler_wl_CXX='-Wl,' ++ lt_prog_compiler_pic_CXX='-KPIC' ++ lt_prog_compiler_static_CXX='-static' ++ ;; ++ icpc* ) ++ # Intel C++, used to be incompatible with GCC. ++ # ICC 10 doesn't accept -KPIC any more. ++ lt_prog_compiler_wl_CXX='-Wl,' ++ lt_prog_compiler_pic_CXX='-fPIC' ++ lt_prog_compiler_static_CXX='-static' ++ ;; ++ pgCC* | pgcpp*) ++ # Portland Group C++ compiler ++ lt_prog_compiler_wl_CXX='-Wl,' ++ lt_prog_compiler_pic_CXX='-fpic' ++ lt_prog_compiler_static_CXX='-Bstatic' ++ ;; ++ cxx*) ++ # Compaq C++ ++ # Make sure the PIC flag is empty. It appears that all Alpha ++ # Linux and Compaq Tru64 Unix objects are PIC. ++ lt_prog_compiler_pic_CXX= ++ lt_prog_compiler_static_CXX='-non_shared' ++ ;; ++ xlc* | xlC*) ++ # IBM XL 8.0 on PPC ++ lt_prog_compiler_wl_CXX='-Wl,' ++ lt_prog_compiler_pic_CXX='-qpic' ++ lt_prog_compiler_static_CXX='-qstaticlink' ++ ;; ++ *) ++ case `$CC -V 2>&1 | sed 5q` in ++ *Sun\ C*) ++ # Sun C++ 5.9 ++ lt_prog_compiler_pic_CXX='-KPIC' ++ lt_prog_compiler_static_CXX='-Bstatic' ++ lt_prog_compiler_wl_CXX='-Qoption ld ' ++ ;; ++ esac ++ ;; ++ esac ++ ;; ++ lynxos*) ++ ;; ++ m88k*) ++ ;; ++ mvs*) ++ case $cc_basename in ++ cxx*) ++ lt_prog_compiler_pic_CXX='-W c,exportall' ++ ;; ++ *) ++ ;; ++ esac ++ ;; ++ netbsd*) ++ ;; ++ *qnx* | *nto*) ++ # QNX uses GNU C++, but need to define -shared option too, otherwise ++ # it will coredump. ++ lt_prog_compiler_pic_CXX='-fPIC -shared' ++ ;; ++ osf3* | osf4* | osf5*) ++ case $cc_basename in ++ KCC*) ++ lt_prog_compiler_wl_CXX='--backend -Wl,' ++ ;; ++ RCC*) ++ # Rational C++ 2.4.1 ++ lt_prog_compiler_pic_CXX='-pic' ++ ;; ++ cxx*) ++ # Digital/Compaq C++ ++ lt_prog_compiler_wl_CXX='-Wl,' ++ # Make sure the PIC flag is empty. It appears that all Alpha ++ # Linux and Compaq Tru64 Unix objects are PIC. ++ lt_prog_compiler_pic_CXX= ++ lt_prog_compiler_static_CXX='-non_shared' ++ ;; ++ *) ++ ;; ++ esac ++ ;; ++ psos*) ++ ;; ++ solaris*) ++ case $cc_basename in ++ CC*) ++ # Sun C++ 4.2, 5.x and Centerline C++ ++ lt_prog_compiler_pic_CXX='-KPIC' ++ lt_prog_compiler_static_CXX='-Bstatic' ++ lt_prog_compiler_wl_CXX='-Qoption ld ' ++ ;; ++ gcx*) ++ # Green Hills C++ Compiler ++ lt_prog_compiler_pic_CXX='-PIC' ++ ;; ++ *) ++ ;; ++ esac ++ ;; ++ sunos4*) ++ case $cc_basename in ++ CC*) ++ # Sun C++ 4.x ++ lt_prog_compiler_pic_CXX='-pic' ++ lt_prog_compiler_static_CXX='-Bstatic' ++ ;; ++ lcc*) ++ # Lucid ++ lt_prog_compiler_pic_CXX='-pic' ++ ;; ++ *) ++ ;; ++ esac ++ ;; ++ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) ++ case $cc_basename in ++ CC*) ++ lt_prog_compiler_wl_CXX='-Wl,' ++ lt_prog_compiler_pic_CXX='-KPIC' ++ lt_prog_compiler_static_CXX='-Bstatic' ++ ;; ++ esac ++ ;; ++ tandem*) ++ case $cc_basename in ++ NCC*) ++ # NonStop-UX NCC 3.20 ++ lt_prog_compiler_pic_CXX='-KPIC' ++ ;; ++ *) ++ ;; ++ esac ++ ;; ++ vxworks*) ++ ;; ++ *) ++ lt_prog_compiler_can_build_shared_CXX=no ++ ;; ++ esac ++ fi ++ ++case $host_os in ++ # For platforms which do not support PIC, -DPIC is meaningless: ++ *djgpp*) ++ lt_prog_compiler_pic_CXX= ++ ;; ++ *) ++ lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC" ++ ;; ++esac ++{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 ++echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } ++ ++ ++ ++# ++# Check to make sure the PIC flag actually works. ++# ++if test -n "$lt_prog_compiler_pic_CXX"; then ++ { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 ++echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_pic_works_CXX=no ++ ac_outfile=conftest.$ac_objext ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ # The option is referenced via a variable to avoid confusing sed. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>conftest.err) ++ ac_status=$? ++ cat conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s "$ac_outfile"; then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings other than the usual output. ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp ++ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 ++ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_pic_works_CXX=yes ++ fi ++ fi ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; } ++ ++if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then ++ case $lt_prog_compiler_pic_CXX in ++ "" | " "*) ;; ++ *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; ++ esac ++else ++ lt_prog_compiler_pic_CXX= ++ lt_prog_compiler_can_build_shared_CXX=no ++fi ++ ++fi ++ ++ ++ ++# ++# Check to make sure the static flag actually works. ++# ++wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" ++{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 ++echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_static_works_CXX=no ++ save_LDFLAGS="$LDFLAGS" ++ LDFLAGS="$LDFLAGS $lt_tmp_static_flag" ++ echo "$lt_simple_link_test_code" > conftest.$ac_ext ++ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then ++ # The linker can only warn and ignore the option if not recognized ++ # So say no if there are warnings ++ if test -s conftest.err; then ++ # Append any errors to the config.log. ++ cat conftest.err 1>&5 ++ $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp ++ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 ++ if diff conftest.exp conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_static_works_CXX=yes ++ fi ++ else ++ lt_cv_prog_compiler_static_works_CXX=yes ++ fi ++ fi ++ $RM -r conftest* ++ LDFLAGS="$save_LDFLAGS" ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; } ++ ++if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then ++ : ++else ++ lt_prog_compiler_static_CXX= ++fi ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 ++echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_c_o_CXX=no ++ $RM -r conftest 2>/dev/null ++ mkdir conftest ++ cd conftest ++ mkdir out ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ ++ lt_compiler_flag="-o out/conftest2.$ac_objext" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>out/conftest.err) ++ ac_status=$? ++ cat out/conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s out/conftest2.$ac_objext ++ then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp ++ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 ++ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_c_o_CXX=yes ++ fi ++ fi ++ chmod u+w . 2>&5 ++ $RM conftest* ++ # SGI C++ compiler will create directory out/ii_files/ for ++ # template instantiation ++ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files ++ $RM out/* && rmdir out ++ cd .. ++ $RM -r conftest ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 ++echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_c_o_CXX=no ++ $RM -r conftest 2>/dev/null ++ mkdir conftest ++ cd conftest ++ mkdir out ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ ++ lt_compiler_flag="-o out/conftest2.$ac_objext" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>out/conftest.err) ++ ac_status=$? ++ cat out/conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s out/conftest2.$ac_objext ++ then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp ++ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 ++ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_c_o_CXX=yes ++ fi ++ fi ++ chmod u+w . 2>&5 ++ $RM conftest* ++ # SGI C++ compiler will create directory out/ii_files/ for ++ # template instantiation ++ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files ++ $RM out/* && rmdir out ++ cd .. ++ $RM -r conftest ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } ++ ++ ++ ++ ++hard_links="nottested" ++if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then ++ # do not overwrite the value of need_locks provided by the user ++ { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 ++echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } ++ hard_links=yes ++ $RM conftest* ++ ln conftest.a conftest.b 2>/dev/null && hard_links=no ++ touch conftest.a ++ ln conftest.a conftest.b 2>&5 || hard_links=no ++ ln conftest.a conftest.b 2>/dev/null && hard_links=no ++ { echo "$as_me:$LINENO: result: $hard_links" >&5 ++echo "${ECHO_T}$hard_links" >&6; } ++ if test "$hard_links" = no; then ++ { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 ++echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} ++ need_locks=warn ++ fi ++else ++ need_locks=no ++fi ++ ++ ++ ++ { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 ++echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } ++ ++ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ++ case $host_os in ++ aix[4-9]*) ++ # If we're using GNU nm, then we don't want the "-C" option. ++ # -C means demangle to AIX nm, but means don't demangle with GNU nm ++ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then ++ export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' ++ else ++ export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' ++ fi ++ ;; ++ pw32*) ++ export_symbols_cmds_CXX="$ltdll_cmds" ++ ;; ++ cygwin* | mingw* | cegcc*) ++ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' ++ ;; ++ *) ++ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ++ ;; ++ esac ++ exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' ++ ++{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 ++echo "${ECHO_T}$ld_shlibs_CXX" >&6; } ++test "$ld_shlibs_CXX" = no && can_build_shared=no ++ ++with_gnu_ld_CXX=$with_gnu_ld ++ ++ ++ ++ ++ ++ ++# ++# Do we need to explicitly link libc? ++# ++case "x$archive_cmds_need_lc_CXX" in ++x|xyes) ++ # Assume -lc should be added ++ archive_cmds_need_lc_CXX=yes ++ ++ if test "$enable_shared" = yes && test "$GCC" = yes; then ++ case $archive_cmds_CXX in ++ *'~'*) ++ # FIXME: we may have to deal with multi-command sequences. ++ ;; ++ '$CC '*) ++ # Test whether the compiler implicitly links with -lc since on some ++ # systems, -lgcc has to come before -lc. If gcc already passes -lc ++ # to ld, don't add -lc before -lgcc. ++ { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 ++echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } ++ $RM conftest* ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ ++ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } 2>conftest.err; then ++ soname=conftest ++ lib=conftest ++ libobjs=conftest.$ac_objext ++ deplibs= ++ wl=$lt_prog_compiler_wl_CXX ++ pic_flag=$lt_prog_compiler_pic_CXX ++ compiler_flags=-v ++ linker_flags=-v ++ verstring= ++ output_objdir=. ++ libname=conftest ++ lt_save_allow_undefined_flag=$allow_undefined_flag_CXX ++ allow_undefined_flag_CXX= ++ if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 ++ (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++ then ++ archive_cmds_need_lc_CXX=no ++ else ++ archive_cmds_need_lc_CXX=yes ++ fi ++ allow_undefined_flag_CXX=$lt_save_allow_undefined_flag ++ else ++ cat conftest.err 1>&5 ++ fi ++ $RM conftest* ++ { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 ++echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } ++ ;; ++ esac ++ fi ++ ;; ++esac ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 ++echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } ++ ++library_names_spec= ++libname_spec='lib$name' ++soname_spec= ++shrext_cmds=".so" ++postinstall_cmds= ++postuninstall_cmds= ++finish_cmds= ++finish_eval= ++shlibpath_var= ++shlibpath_overrides_runpath=unknown ++version_type=none ++dynamic_linker="$host_os ld.so" ++sys_lib_dlsearch_path_spec="/lib /usr/lib" ++need_lib_prefix=unknown ++hardcode_into_libs=no ++ ++# when you set need_version to no, make sure it does not cause -set_version ++# flags to be left without arguments ++need_version=unknown ++ ++case $host_os in ++aix3*) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' ++ shlibpath_var=LIBPATH ++ ++ # AIX 3 has no versioning support, so we append a major version to the name. ++ soname_spec='${libname}${release}${shared_ext}$major' ++ ;; ++ ++aix[4-9]*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ hardcode_into_libs=yes ++ if test "$host_cpu" = ia64; then ++ # AIX 5 supports IA64 ++ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ else ++ # With GCC up to 2.95.x, collect2 would create an import file ++ # for dependence libraries. The import file would start with ++ # the line `#! .'. This would cause the generated library to ++ # depend on `.', always an invalid library. This was fixed in ++ # development snapshots of GCC prior to 3.0. ++ case $host_os in ++ aix4 | aix4.[01] | aix4.[01].*) ++ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' ++ echo ' yes ' ++ echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then ++ : ++ else ++ can_build_shared=no ++ fi ++ ;; ++ esac ++ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct ++ # soname into executable. Probably we can add versioning support to ++ # collect2, so additional links can be useful in future. ++ if test "$aix_use_runtimelinking" = yes; then ++ # If using run time linking (on AIX 4.2 or later) use lib.so ++ # instead of lib.a to let people know that these are not ++ # typical AIX shared libraries. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ else ++ # We preserve .a as extension for shared libraries through AIX4.2 ++ # and later when we are not doing run time linking. ++ library_names_spec='${libname}${release}.a $libname.a' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ fi ++ shlibpath_var=LIBPATH ++ fi ++ ;; ++ ++amigaos*) ++ case $host_cpu in ++ powerpc) ++ # Since July 2007 AmigaOS4 officially supports .so libraries. ++ # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ ;; ++ m68k) ++ library_names_spec='$libname.ixlibrary $libname.a' ++ # Create ${libname}_ixlibrary.a entries in /sys/libs. ++ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ++ ;; ++ esac ++ ;; ++ ++beos*) ++ library_names_spec='${libname}${shared_ext}' ++ dynamic_linker="$host_os ld.so" ++ shlibpath_var=LIBRARY_PATH ++ ;; ++ ++bsdi[45]*) ++ version_type=linux ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" ++ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" ++ # the default ld.so.conf also contains /usr/contrib/lib and ++ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow ++ # libtool to hard-code these into programs ++ ;; ++ ++cygwin* | mingw* | pw32* | cegcc*) ++ version_type=windows ++ shrext_cmds=".dll" ++ need_version=no ++ need_lib_prefix=no ++ ++ case $GCC,$host_os in ++ yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ library_names_spec='$libname.dll.a' ++ # DLL is installed to $(libdir)/../bin by postinstall_cmds ++ postinstall_cmds='base_file=`basename \${file}`~ ++ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ ++ dldir=$destdir/`dirname \$dlpath`~ ++ test -d \$dldir || mkdir -p \$dldir~ ++ $install_prog $dir/$dlname \$dldir/$dlname~ ++ chmod a+x \$dldir/$dlname~ ++ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then ++ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; ++ fi' ++ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ ++ dlpath=$dir/\$dldll~ ++ $RM \$dlpath' ++ shlibpath_overrides_runpath=yes ++ ++ case $host_os in ++ cygwin*) ++ # Cygwin DLLs use 'cyg' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ++ ;; ++ mingw* | cegcc*) ++ # MinGW DLLs use traditional 'lib' prefix ++ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` ++ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then ++ # It is most probably a Windows format PATH printed by ++ # mingw gcc, but we are running on Cygwin. Gcc prints its search ++ # path with ; separators, and with drive letters. We can handle the ++ # drive letters (cygwin fileutils understands them), so leave them, ++ # especially as we might pass files found there to a mingw objdump, ++ # which wouldn't understand a cygwinified path. Ahh. ++ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` ++ else ++ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ++ fi ++ ;; ++ pw32*) ++ # pw32 DLLs use 'pw' prefix rather than 'lib' ++ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ;; ++ esac ++ ;; ++ ++ *) ++ library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ++ ;; ++ esac ++ dynamic_linker='Win32 ld.exe' ++ # FIXME: first we should search . and the directory the executable is in ++ shlibpath_var=PATH ++ ;; ++ ++darwin* | rhapsody*) ++ dynamic_linker="$host_os dyld" ++ version_type=darwin ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' ++ soname_spec='${libname}${release}${major}$shared_ext' ++ shlibpath_overrides_runpath=yes ++ shlibpath_var=DYLD_LIBRARY_PATH ++ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' ++ ++ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ++ ;; ++ ++dgux*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ ;; ++ ++freebsd1*) ++ dynamic_linker=no ++ ;; ++ ++freebsd* | dragonfly*) ++ # DragonFly does not have aout. When/if they implement a new ++ # versioning mechanism, adjust this. ++ if test -x /usr/bin/objformat; then ++ objformat=`/usr/bin/objformat` ++ else ++ case $host_os in ++ freebsd[123]*) objformat=aout ;; ++ *) objformat=elf ;; ++ esac ++ fi ++ version_type=freebsd-$objformat ++ case $version_type in ++ freebsd-elf*) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' ++ need_version=no ++ need_lib_prefix=no ++ ;; ++ freebsd-*) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' ++ need_version=yes ++ ;; ++ esac ++ shlibpath_var=LD_LIBRARY_PATH ++ case $host_os in ++ freebsd2*) ++ shlibpath_overrides_runpath=yes ++ ;; ++ freebsd3.[01]* | freebsdelf3.[01]*) ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ ;; ++ freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ ++ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ ;; ++ *) # from 4.6 on, and DragonFly ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ ;; ++ esac ++ ;; ++ ++gnu*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ hardcode_into_libs=yes ++ ;; ++ ++hpux9* | hpux10* | hpux11*) ++ # Give a soname corresponding to the major version so that dld.sl refuses to ++ # link against other versions. ++ version_type=sunos ++ need_lib_prefix=no ++ need_version=no ++ case $host_cpu in ++ ia64*) ++ shrext_cmds='.so' ++ hardcode_into_libs=yes ++ dynamic_linker="$host_os dld.so" ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ if test "X$HPUX_IA64_MODE" = X32; then ++ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" ++ else ++ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" ++ fi ++ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ++ ;; ++ hppa*64*) ++ shrext_cmds='.sl' ++ hardcode_into_libs=yes ++ dynamic_linker="$host_os dld.sl" ++ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH ++ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" ++ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ++ ;; ++ *) ++ shrext_cmds='.sl' ++ dynamic_linker="$host_os dld.sl" ++ shlibpath_var=SHLIB_PATH ++ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ ;; ++ esac ++ # HP-UX runs *really* slowly unless shared libraries are mode 555. ++ postinstall_cmds='chmod 555 $lib' ++ ;; ++ ++interix[3-9]*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ ;; ++ ++irix5* | irix6* | nonstopux*) ++ case $host_os in ++ nonstopux*) version_type=nonstopux ;; ++ *) ++ if test "$lt_cv_prog_gnu_ld" = yes; then ++ version_type=linux ++ else ++ version_type=irix ++ fi ;; ++ esac ++ need_lib_prefix=no ++ need_version=no ++ soname_spec='${libname}${release}${shared_ext}$major' ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' ++ case $host_os in ++ irix5* | nonstopux*) ++ libsuff= shlibsuff= ++ ;; ++ *) ++ case $LD in # libtool.m4 will add one of these switches to LD ++ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") ++ libsuff= shlibsuff= libmagic=32-bit;; ++ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") ++ libsuff=32 shlibsuff=N32 libmagic=N32;; ++ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") ++ libsuff=64 shlibsuff=64 libmagic=64-bit;; ++ *) libsuff= shlibsuff= libmagic=never-match;; ++ esac ++ ;; ++ esac ++ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH ++ shlibpath_overrides_runpath=no ++ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" ++ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" ++ hardcode_into_libs=yes ++ ;; ++ ++# No shared lib support for Linux oldld, aout, or coff. ++linux*oldld* | linux*aout* | linux*coff*) ++ dynamic_linker=no ++ ;; ++ ++# This must be Linux ELF. ++linux* | k*bsd*-gnu) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ # Some binutils ld are patched to set DT_RUNPATH ++ save_LDFLAGS=$LDFLAGS ++ save_libdir=$libdir ++ eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ ++ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then ++ shlibpath_overrides_runpath=yes ++fi ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LDFLAGS=$save_LDFLAGS ++ libdir=$save_libdir ++ ++ # This implies no fast_install, which is unacceptable. ++ # Some rework will be needed to allow for fast_install ++ # before this can be enabled. ++ hardcode_into_libs=yes ++ ++ # Append ld.so.conf contents to the search path ++ if test -f /etc/ld.so.conf; then ++ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` ++ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" ++ fi ++ ++ # We used to test for /lib/ld.so.1 and disable shared libraries on ++ # powerpc, because MkLinux only supported shared libraries with the ++ # GNU dynamic linker. Since this was broken with cross compilers, ++ # most powerpc-linux boxes support dynamic linking these days and ++ # people can always --disable-shared, the test was removed, and we ++ # assume the GNU/Linux dynamic linker is in use. ++ dynamic_linker='GNU/Linux ld.so' ++ ;; ++ ++netbsd*) ++ version_type=sunos ++ need_lib_prefix=no ++ need_version=no ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ++ dynamic_linker='NetBSD (a.out) ld.so' ++ else ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ dynamic_linker='NetBSD ld.elf_so' ++ fi ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ ;; ++ ++newsos6) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ ;; ++ ++*nto* | *qnx*) ++ version_type=qnx ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ dynamic_linker='ldqnx.so' ++ ;; ++ ++openbsd*) ++ version_type=sunos ++ sys_lib_dlsearch_path_spec="/usr/lib" ++ need_lib_prefix=no ++ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. ++ case $host_os in ++ openbsd3.3 | openbsd3.3.*) need_version=yes ;; ++ *) need_version=no ;; ++ esac ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ++ case $host_os in ++ openbsd2.[89] | openbsd2.[89].*) ++ shlibpath_overrides_runpath=no ++ ;; ++ *) ++ shlibpath_overrides_runpath=yes ++ ;; ++ esac ++ else ++ shlibpath_overrides_runpath=yes ++ fi ++ ;; ++ ++os2*) ++ libname_spec='$name' ++ shrext_cmds=".dll" ++ need_lib_prefix=no ++ library_names_spec='$libname${shared_ext} $libname.a' ++ dynamic_linker='OS/2 ld.exe' ++ shlibpath_var=LIBPATH ++ ;; ++ ++osf3* | osf4* | osf5*) ++ version_type=osf ++ need_lib_prefix=no ++ need_version=no ++ soname_spec='${libname}${release}${shared_ext}$major' ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" ++ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ++ ;; ++ ++rdos*) ++ dynamic_linker=no ++ ;; ++ ++solaris*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ # ldd complains unless libraries are executable ++ postinstall_cmds='chmod +x $lib' ++ ;; ++ ++sunos4*) ++ version_type=sunos ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ++ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ if test "$with_gnu_ld" = yes; then ++ need_lib_prefix=no ++ fi ++ need_version=yes ++ ;; ++ ++sysv4 | sysv4.3*) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ case $host_vendor in ++ sni) ++ shlibpath_overrides_runpath=no ++ need_lib_prefix=no ++ runpath_var=LD_RUN_PATH ++ ;; ++ siemens) ++ need_lib_prefix=no ++ ;; ++ motorola) ++ need_lib_prefix=no ++ need_version=no ++ shlibpath_overrides_runpath=no ++ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ++ ;; ++ esac ++ ;; ++ ++sysv4*MP*) ++ if test -d /usr/nec ;then ++ version_type=linux ++ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' ++ soname_spec='$libname${shared_ext}.$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ fi ++ ;; ++ ++sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) ++ version_type=freebsd-elf ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ if test "$with_gnu_ld" = yes; then ++ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' ++ else ++ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' ++ case $host_os in ++ sco3.2v5*) ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ++ ;; ++ esac ++ fi ++ sys_lib_dlsearch_path_spec='/usr/lib' ++ ;; ++ ++tpf*) ++ # TPF is a cross-target only. Preferred cross-host = GNU/Linux. ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ ;; ++ ++uts4*) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ ;; ++ ++*) ++ dynamic_linker=no ++ ;; ++esac ++{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 ++echo "${ECHO_T}$dynamic_linker" >&6; } ++test "$dynamic_linker" = no && can_build_shared=no ++ ++variables_saved_for_relink="PATH $shlibpath_var $runpath_var" ++if test "$GCC" = yes; then ++ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" ++fi ++ ++if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then ++ sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" ++fi ++if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then ++ sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 ++echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } ++hardcode_action_CXX= ++if test -n "$hardcode_libdir_flag_spec_CXX" || ++ test -n "$runpath_var_CXX" || ++ test "X$hardcode_automatic_CXX" = "Xyes" ; then ++ ++ # We can hardcode non-existent directories. ++ if test "$hardcode_direct_CXX" != no && ++ # If the only mechanism to avoid hardcoding is shlibpath_var, we ++ # have to relink, otherwise we might link with an installed library ++ # when we should be linking with a yet-to-be-installed one ++ ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && ++ test "$hardcode_minus_L_CXX" != no; then ++ # Linking always hardcodes the temporary library directory. ++ hardcode_action_CXX=relink ++ else ++ # We can link without hardcoding, and we can hardcode nonexisting dirs. ++ hardcode_action_CXX=immediate ++ fi ++else ++ # We cannot hardcode anything, or else we can only hardcode existing ++ # directories. ++ hardcode_action_CXX=unsupported ++fi ++{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 ++echo "${ECHO_T}$hardcode_action_CXX" >&6; } ++ ++if test "$hardcode_action_CXX" = relink || ++ test "$inherit_rpath_CXX" = yes; then ++ # Fast installation is not supported ++ enable_fast_install=no ++elif test "$shlibpath_overrides_runpath" = yes || ++ test "$enable_shared" = no; then ++ # Fast installation is not necessary ++ enable_fast_install=needless ++fi ++ ++ ++ ++ ++ ++ ++ ++ fi # test -n "$compiler" ++ ++ CC=$lt_save_CC ++ LDCXX=$LD ++ LD=$lt_save_LD ++ GCC=$lt_save_GCC ++ with_gnu_ld=$lt_save_with_gnu_ld ++ lt_cv_path_LDCXX=$lt_cv_path_LD ++ lt_cv_path_LD=$lt_save_path_LD ++ lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld ++ lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld ++fi # test "$_lt_caught_CXX_error" != yes ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ ++archive_cmds_need_lc_F77=no ++allow_undefined_flag_F77= ++always_export_symbols_F77=no ++archive_expsym_cmds_F77= ++export_dynamic_flag_spec_F77= ++hardcode_direct_F77=no ++hardcode_direct_absolute_F77=no ++hardcode_libdir_flag_spec_F77= ++hardcode_libdir_flag_spec_ld_F77= ++hardcode_libdir_separator_F77= ++hardcode_minus_L_F77=no ++hardcode_automatic_F77=no ++inherit_rpath_F77=no ++module_cmds_F77= ++module_expsym_cmds_F77= ++link_all_deplibs_F77=unknown ++old_archive_cmds_F77=$old_archive_cmds ++no_undefined_flag_F77= ++whole_archive_flag_spec_F77= ++enable_shared_with_static_runtimes_F77=no ++ ++# Source file extension for f77 test sources. ++ac_ext=f ++ ++# Object file extension for compiled f77 test sources. ++objext=o ++objext_F77=$objext ++ ++# No sense in running all these tests if we already determined that ++# the F77 compiler isn't working. Some variables (like enable_shared) ++# are currently assumed to apply to all compilers on this platform, ++# and will be corrupted by setting them based on a non-working compiler. ++if test "$_lt_disable_F77" != yes; then ++ # Code to be used in simple compile tests ++ lt_simple_compile_test_code="\ ++ subroutine t ++ return ++ end ++" ++ ++ # Code to be used in simple link tests ++ lt_simple_link_test_code="\ ++ program t ++ end ++" ++ ++ # ltmain only uses $CC for tagged configurations so make sure $CC is set. ++ ++ ++ ++ ++ ++ ++# If no C compiler was specified, use CC. ++LTCC=${LTCC-"$CC"} ++ ++# If no C compiler flags were specified, use CFLAGS. ++LTCFLAGS=${LTCFLAGS-"$CFLAGS"} ++ ++# Allow CC to be a program name with arguments. ++compiler=$CC ++ ++ ++ # save warnings/boilerplate of simple test code ++ ac_outfile=conftest.$ac_objext ++echo "$lt_simple_compile_test_code" >conftest.$ac_ext ++eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err ++_lt_compiler_boilerplate=`cat conftest.err` ++$RM conftest* ++ ++ ac_outfile=conftest.$ac_objext ++echo "$lt_simple_link_test_code" >conftest.$ac_ext ++eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err ++_lt_linker_boilerplate=`cat conftest.err` ++$RM -r conftest* ++ ++ ++ # Allow CC to be a program name with arguments. ++ lt_save_CC="$CC" ++ lt_save_GCC=$GCC ++ CC=${F77-"f77"} ++ compiler=$CC ++ compiler_F77=$CC ++ for cc_temp in $compiler""; do ++ case $cc_temp in ++ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; ++ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; ++ \-*) ;; ++ *) break;; ++ esac ++done ++cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` ++ ++ GCC=$G77 ++ if test -n "$compiler"; then ++ { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 ++echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $can_build_shared" >&5 ++echo "${ECHO_T}$can_build_shared" >&6; } ++ ++ { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 ++echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } ++ test "$can_build_shared" = "no" && enable_shared=no ++ ++ # On AIX, shared libraries and static libraries use the same namespace, and ++ # are all built from PIC. ++ case $host_os in ++ aix3*) ++ test "$enable_shared" = yes && enable_static=no ++ if test -n "$RANLIB"; then ++ archive_cmds="$archive_cmds~\$RANLIB \$lib" ++ postinstall_cmds='$RANLIB $lib' ++ fi ++ ;; ++ aix[4-9]*) ++ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then ++ test "$enable_shared" = yes && enable_static=no ++ fi ++ ;; ++ esac ++ { echo "$as_me:$LINENO: result: $enable_shared" >&5 ++echo "${ECHO_T}$enable_shared" >&6; } ++ ++ { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 ++echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } ++ # Make sure either enable_shared or enable_static is yes. ++ test "$enable_shared" = yes || enable_static=yes ++ { echo "$as_me:$LINENO: result: $enable_static" >&5 ++echo "${ECHO_T}$enable_static" >&6; } ++ ++ GCC_F77="$G77" ++ LD_F77="$LD" ++ ++ ## CAVEAT EMPTOR: ++ ## There is no encapsulation within the following macros, do not change ++ ## the running order or otherwise move them around unless you know exactly ++ ## what you are doing... ++ lt_prog_compiler_wl_F77= ++lt_prog_compiler_pic_F77= ++lt_prog_compiler_static_F77= ++ ++{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 ++echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } ++ ++ if test "$GCC" = yes; then ++ lt_prog_compiler_wl_F77='-Wl,' ++ lt_prog_compiler_static_F77='-static' ++ ++ case $host_os in ++ aix*) ++ # All AIX code is PIC. ++ if test "$host_cpu" = ia64; then ++ # AIX 5 now supports IA64 processor ++ lt_prog_compiler_static_F77='-Bstatic' ++ fi ++ ;; ++ ++ amigaos*) ++ case $host_cpu in ++ powerpc) ++ # see comment about AmigaOS4 .so support ++ lt_prog_compiler_pic_F77='-fPIC' ++ ;; ++ m68k) ++ # FIXME: we need at least 68020 code to build shared libraries, but ++ # adding the `-m68020' flag to GCC prevents building anything better, ++ # like `-m68040'. ++ lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' ++ ;; ++ esac ++ ;; ++ ++ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) ++ # PIC is the default for these OSes. ++ ;; ++ ++ mingw* | cygwin* | pw32* | os2* | cegcc*) ++ # This hack is so that the source file can tell whether it is being ++ # built for inclusion in a dll (and should export symbols for example). ++ # Although the cygwin gcc ignores -fPIC, still need this for old-style ++ # (--disable-auto-import) libraries ++ lt_prog_compiler_pic_F77='-DDLL_EXPORT' ++ ;; ++ ++ darwin* | rhapsody*) ++ # PIC is the default on this platform ++ # Common symbols not allowed in MH_DYLIB files ++ lt_prog_compiler_pic_F77='-fno-common' ++ ;; ++ ++ hpux*) ++ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit ++ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag ++ # sets the default TLS model and affects inlining. ++ case $host_cpu in ++ hppa*64*) ++ # +Z the default ++ ;; ++ *) ++ lt_prog_compiler_pic_F77='-fPIC' ++ ;; ++ esac ++ ;; ++ ++ interix[3-9]*) ++ # Interix 3.x gcc -fpic/-fPIC options generate broken code. ++ # Instead, we relocate shared libraries at runtime. ++ ;; ++ ++ msdosdjgpp*) ++ # Just because we use GCC doesn't mean we suddenly get shared libraries ++ # on systems that don't support them. ++ lt_prog_compiler_can_build_shared_F77=no ++ enable_shared=no ++ ;; ++ ++ *nto* | *qnx*) ++ # QNX uses GNU C++, but need to define -shared option too, otherwise ++ # it will coredump. ++ lt_prog_compiler_pic_F77='-fPIC -shared' ++ ;; ++ ++ sysv4*MP*) ++ if test -d /usr/nec; then ++ lt_prog_compiler_pic_F77=-Kconform_pic ++ fi ++ ;; ++ ++ *) ++ lt_prog_compiler_pic_F77='-fPIC' ++ ;; ++ esac ++ else ++ # PORTME Check for flag to pass linker flags through the system compiler. ++ case $host_os in ++ aix*) ++ lt_prog_compiler_wl_F77='-Wl,' ++ if test "$host_cpu" = ia64; then ++ # AIX 5 now supports IA64 processor ++ lt_prog_compiler_static_F77='-Bstatic' ++ else ++ lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' ++ fi ++ ;; ++ ++ mingw* | cygwin* | pw32* | os2* | cegcc*) ++ # This hack is so that the source file can tell whether it is being ++ # built for inclusion in a dll (and should export symbols for example). ++ lt_prog_compiler_pic_F77='-DDLL_EXPORT' ++ ;; ++ ++ hpux9* | hpux10* | hpux11*) ++ lt_prog_compiler_wl_F77='-Wl,' ++ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but ++ # not for PA HP-UX. ++ case $host_cpu in ++ hppa*64*|ia64*) ++ # +Z the default ++ ;; ++ *) ++ lt_prog_compiler_pic_F77='+Z' ++ ;; ++ esac ++ # Is there a better lt_prog_compiler_static that works with the bundled CC? ++ lt_prog_compiler_static_F77='${wl}-a ${wl}archive' ++ ;; ++ ++ irix5* | irix6* | nonstopux*) ++ lt_prog_compiler_wl_F77='-Wl,' ++ # PIC (with -KPIC) is the default. ++ lt_prog_compiler_static_F77='-non_shared' ++ ;; ++ ++ linux* | k*bsd*-gnu) ++ case $cc_basename in ++ # old Intel for x86_64 which still supported -KPIC. ++ ecc*) ++ lt_prog_compiler_wl_F77='-Wl,' ++ lt_prog_compiler_pic_F77='-KPIC' ++ lt_prog_compiler_static_F77='-static' ++ ;; ++ # icc used to be incompatible with GCC. ++ # ICC 10 doesn't accept -KPIC any more. ++ icc* | ifort*) ++ lt_prog_compiler_wl_F77='-Wl,' ++ lt_prog_compiler_pic_F77='-fPIC' ++ lt_prog_compiler_static_F77='-static' ++ ;; ++ # Lahey Fortran 8.1. ++ lf95*) ++ lt_prog_compiler_wl_F77='-Wl,' ++ lt_prog_compiler_pic_F77='--shared' ++ lt_prog_compiler_static_F77='--static' ++ ;; ++ pgcc* | pgf77* | pgf90* | pgf95*) ++ # Portland Group compilers (*not* the Pentium gcc compiler, ++ # which looks to be a dead project) ++ lt_prog_compiler_wl_F77='-Wl,' ++ lt_prog_compiler_pic_F77='-fpic' ++ lt_prog_compiler_static_F77='-Bstatic' ++ ;; ++ ccc*) ++ lt_prog_compiler_wl_F77='-Wl,' ++ # All Alpha code is PIC. ++ lt_prog_compiler_static_F77='-non_shared' ++ ;; ++ xl*) ++ # IBM XL C 8.0/Fortran 10.1 on PPC ++ lt_prog_compiler_wl_F77='-Wl,' ++ lt_prog_compiler_pic_F77='-qpic' ++ lt_prog_compiler_static_F77='-qstaticlink' ++ ;; ++ *) ++ case `$CC -V 2>&1 | sed 5q` in ++ *Sun\ F* | *Sun*Fortran*) ++ # Sun Fortran 8.3 passes all unrecognized flags to the linker ++ lt_prog_compiler_pic_F77='-KPIC' ++ lt_prog_compiler_static_F77='-Bstatic' ++ lt_prog_compiler_wl_F77='' ++ ;; ++ *Sun\ C*) ++ # Sun C 5.9 ++ lt_prog_compiler_pic_F77='-KPIC' ++ lt_prog_compiler_static_F77='-Bstatic' ++ lt_prog_compiler_wl_F77='-Wl,' ++ ;; ++ esac ++ ;; ++ esac ++ ;; ++ ++ newsos6) ++ lt_prog_compiler_pic_F77='-KPIC' ++ lt_prog_compiler_static_F77='-Bstatic' ++ ;; ++ ++ *nto* | *qnx*) ++ # QNX uses GNU C++, but need to define -shared option too, otherwise ++ # it will coredump. ++ lt_prog_compiler_pic_F77='-fPIC -shared' ++ ;; ++ ++ osf3* | osf4* | osf5*) ++ lt_prog_compiler_wl_F77='-Wl,' ++ # All OSF/1 code is PIC. ++ lt_prog_compiler_static_F77='-non_shared' ++ ;; ++ ++ rdos*) ++ lt_prog_compiler_static_F77='-non_shared' ++ ;; ++ ++ solaris*) ++ lt_prog_compiler_pic_F77='-KPIC' ++ lt_prog_compiler_static_F77='-Bstatic' ++ case $cc_basename in ++ f77* | f90* | f95*) ++ lt_prog_compiler_wl_F77='-Qoption ld ';; ++ *) ++ lt_prog_compiler_wl_F77='-Wl,';; ++ esac ++ ;; ++ ++ sunos4*) ++ lt_prog_compiler_wl_F77='-Qoption ld ' ++ lt_prog_compiler_pic_F77='-PIC' ++ lt_prog_compiler_static_F77='-Bstatic' ++ ;; ++ ++ sysv4 | sysv4.2uw2* | sysv4.3*) ++ lt_prog_compiler_wl_F77='-Wl,' ++ lt_prog_compiler_pic_F77='-KPIC' ++ lt_prog_compiler_static_F77='-Bstatic' ++ ;; ++ ++ sysv4*MP*) ++ if test -d /usr/nec ;then ++ lt_prog_compiler_pic_F77='-Kconform_pic' ++ lt_prog_compiler_static_F77='-Bstatic' ++ fi ++ ;; ++ ++ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) ++ lt_prog_compiler_wl_F77='-Wl,' ++ lt_prog_compiler_pic_F77='-KPIC' ++ lt_prog_compiler_static_F77='-Bstatic' ++ ;; ++ ++ unicos*) ++ lt_prog_compiler_wl_F77='-Wl,' ++ lt_prog_compiler_can_build_shared_F77=no ++ ;; ++ ++ uts4*) ++ lt_prog_compiler_pic_F77='-pic' ++ lt_prog_compiler_static_F77='-Bstatic' ++ ;; ++ ++ *) ++ lt_prog_compiler_can_build_shared_F77=no ++ ;; ++ esac ++ fi ++ ++case $host_os in ++ # For platforms which do not support PIC, -DPIC is meaningless: ++ *djgpp*) ++ lt_prog_compiler_pic_F77= ++ ;; ++ *) ++ lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77@&t@" ++ ;; ++esac ++{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 ++echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } ++ ++ ++ ++# ++# Check to make sure the PIC flag actually works. ++# ++if test -n "$lt_prog_compiler_pic_F77"; then ++ { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 ++echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_pic_works_F77=no ++ ac_outfile=conftest.$ac_objext ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ lt_compiler_flag="$lt_prog_compiler_pic_F77@&t@" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ # The option is referenced via a variable to avoid confusing sed. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>conftest.err) ++ ac_status=$? ++ cat conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s "$ac_outfile"; then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings other than the usual output. ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp ++ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 ++ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_pic_works_F77=yes ++ fi ++ fi ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; } ++ ++if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then ++ case $lt_prog_compiler_pic_F77 in ++ "" | " "*) ;; ++ *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; ++ esac ++else ++ lt_prog_compiler_pic_F77= ++ lt_prog_compiler_can_build_shared_F77=no ++fi ++ ++fi ++ ++ ++ ++# ++# Check to make sure the static flag actually works. ++# ++wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" ++{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 ++echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_static_works_F77=no ++ save_LDFLAGS="$LDFLAGS" ++ LDFLAGS="$LDFLAGS $lt_tmp_static_flag" ++ echo "$lt_simple_link_test_code" > conftest.$ac_ext ++ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then ++ # The linker can only warn and ignore the option if not recognized ++ # So say no if there are warnings ++ if test -s conftest.err; then ++ # Append any errors to the config.log. ++ cat conftest.err 1>&5 ++ $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp ++ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 ++ if diff conftest.exp conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_static_works_F77=yes ++ fi ++ else ++ lt_cv_prog_compiler_static_works_F77=yes ++ fi ++ fi ++ $RM -r conftest* ++ LDFLAGS="$save_LDFLAGS" ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; } ++ ++if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then ++ : ++else ++ lt_prog_compiler_static_F77= ++fi ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 ++echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_c_o_F77=no ++ $RM -r conftest 2>/dev/null ++ mkdir conftest ++ cd conftest ++ mkdir out ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ ++ lt_compiler_flag="-o out/conftest2.$ac_objext" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>out/conftest.err) ++ ac_status=$? ++ cat out/conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s out/conftest2.$ac_objext ++ then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp ++ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 ++ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_c_o_F77=yes ++ fi ++ fi ++ chmod u+w . 2>&5 ++ $RM conftest* ++ # SGI C++ compiler will create directory out/ii_files/ for ++ # template instantiation ++ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files ++ $RM out/* && rmdir out ++ cd .. ++ $RM -r conftest ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 ++echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_c_o_F77=no ++ $RM -r conftest 2>/dev/null ++ mkdir conftest ++ cd conftest ++ mkdir out ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ ++ lt_compiler_flag="-o out/conftest2.$ac_objext" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>out/conftest.err) ++ ac_status=$? ++ cat out/conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s out/conftest2.$ac_objext ++ then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp ++ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 ++ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_c_o_F77=yes ++ fi ++ fi ++ chmod u+w . 2>&5 ++ $RM conftest* ++ # SGI C++ compiler will create directory out/ii_files/ for ++ # template instantiation ++ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files ++ $RM out/* && rmdir out ++ cd .. ++ $RM -r conftest ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } ++ ++ ++ ++ ++hard_links="nottested" ++if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then ++ # do not overwrite the value of need_locks provided by the user ++ { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 ++echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } ++ hard_links=yes ++ $RM conftest* ++ ln conftest.a conftest.b 2>/dev/null && hard_links=no ++ touch conftest.a ++ ln conftest.a conftest.b 2>&5 || hard_links=no ++ ln conftest.a conftest.b 2>/dev/null && hard_links=no ++ { echo "$as_me:$LINENO: result: $hard_links" >&5 ++echo "${ECHO_T}$hard_links" >&6; } ++ if test "$hard_links" = no; then ++ { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 ++echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} ++ need_locks=warn ++ fi ++else ++ need_locks=no ++fi ++ ++ ++ ++ { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 ++echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } ++ ++ runpath_var= ++ allow_undefined_flag_F77= ++ always_export_symbols_F77=no ++ archive_cmds_F77= ++ archive_expsym_cmds_F77= ++ compiler_needs_object_F77=no ++ enable_shared_with_static_runtimes_F77=no ++ export_dynamic_flag_spec_F77= ++ export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ++ hardcode_automatic_F77=no ++ hardcode_direct_F77=no ++ hardcode_direct_absolute_F77=no ++ hardcode_libdir_flag_spec_F77= ++ hardcode_libdir_flag_spec_ld_F77= ++ hardcode_libdir_separator_F77= ++ hardcode_minus_L_F77=no ++ hardcode_shlibpath_var_F77=unsupported ++ inherit_rpath_F77=no ++ link_all_deplibs_F77=unknown ++ module_cmds_F77= ++ module_expsym_cmds_F77= ++ old_archive_from_new_cmds_F77= ++ old_archive_from_expsyms_cmds_F77= ++ thread_safe_flag_spec_F77= ++ whole_archive_flag_spec_F77= ++ # include_expsyms should be a list of space-separated symbols to be *always* ++ # included in the symbol list ++ include_expsyms_F77= ++ # exclude_expsyms can be an extended regexp of symbols to exclude ++ # it will be wrapped by ` (' and `)$', so one must not match beginning or ++ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', ++ # as well as any symbol that contains `d'. ++ exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' ++ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out ++ # platforms (ab)use it in PIC code, but their linkers get confused if ++ # the symbol is explicitly referenced. Since portable code cannot ++ # rely on this symbol name, it's probably fine to never include it in ++ # preloaded symbol tables. ++ # Exclude shared library initialization/finalization symbols. ++ extract_expsyms_cmds= ++ ++ case $host_os in ++ cygwin* | mingw* | pw32* | cegcc*) ++ # FIXME: the MSVC++ port hasn't been tested in a loooong time ++ # When not using gcc, we currently assume that we are using ++ # Microsoft Visual C++. ++ if test "$GCC" != yes; then ++ with_gnu_ld=no ++ fi ++ ;; ++ interix*) ++ # we just hope/assume this is gcc and not c89 (= MSVC++) ++ with_gnu_ld=yes ++ ;; ++ openbsd*) ++ with_gnu_ld=no ++ ;; ++ esac ++ ++ ld_shlibs_F77=yes ++ if test "$with_gnu_ld" = yes; then ++ # If archive_cmds runs LD, not CC, wlarc should be empty ++ wlarc='${wl}' ++ ++ # Set some defaults for GNU ld with shared library support. These ++ # are reset later if shared libraries are not supported. Putting them ++ # here allows them to be overridden if necessary. ++ runpath_var=LD_RUN_PATH ++ hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' ++ export_dynamic_flag_spec_F77='${wl}--export-dynamic' ++ # ancient GNU ld didn't support --whole-archive et. al. ++ if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then ++ whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' ++ else ++ whole_archive_flag_spec_F77= ++ fi ++ supports_anon_versioning=no ++ case `$LD -v 2>&1` in ++ *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 ++ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... ++ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... ++ *\ 2.11.*) ;; # other 2.11 versions ++ *) supports_anon_versioning=yes ;; ++ esac ++ ++ # See if GNU ld supports shared libraries. ++ case $host_os in ++ aix[3-9]*) ++ # On AIX/PPC, the GNU linker is very broken ++ if test "$host_cpu" != ia64; then ++ ld_shlibs_F77=no ++ cat <<_LT_EOF 1>&2 ++ ++*** Warning: the GNU linker, at least up to release 2.9.1, is reported ++*** to be unable to reliably create shared libraries on AIX. ++*** Therefore, libtool is disabling shared libraries support. If you ++*** really care for shared libraries, you may want to modify your PATH ++*** so that a non-GNU linker is found, and then restart. ++ ++_LT_EOF ++ fi ++ ;; ++ ++ amigaos*) ++ case $host_cpu in ++ powerpc) ++ # see comment about AmigaOS4 .so support ++ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_F77='' ++ ;; ++ m68k) ++ archive_cmds_F77='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' ++ hardcode_libdir_flag_spec_F77='-L$libdir' ++ hardcode_minus_L_F77=yes ++ ;; ++ esac ++ ;; ++ ++ beos*) ++ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ allow_undefined_flag_F77=unsupported ++ # Joseph Beckenbach says some releases of gcc ++ # support --undefined. This deserves some investigation. FIXME ++ archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ else ++ ld_shlibs_F77=no ++ fi ++ ;; ++ ++ cygwin* | mingw* | pw32* | cegcc*) ++ # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, ++ # as there is no search path for DLLs. ++ hardcode_libdir_flag_spec_F77='-L$libdir' ++ allow_undefined_flag_F77=unsupported ++ always_export_symbols_F77=no ++ enable_shared_with_static_runtimes_F77=yes ++ export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' ++ ++ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then ++ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' ++ # If the export-symbols file already is a .def file (1st line ++ # is EXPORTS), use it as is; otherwise, prepend... ++ archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then ++ cp $export_symbols $output_objdir/$soname.def; ++ else ++ echo EXPORTS > $output_objdir/$soname.def; ++ cat $export_symbols >> $output_objdir/$soname.def; ++ fi~ ++ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' ++ else ++ ld_shlibs_F77=no ++ fi ++ ;; ++ ++ interix[3-9]*) ++ hardcode_direct_F77=no ++ hardcode_shlibpath_var_F77=no ++ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' ++ export_dynamic_flag_spec_F77='${wl}-E' ++ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. ++ # Instead, shared libraries are loaded at an image base (0x10000000 by ++ # default) and relocated if they conflict, which is a slow very memory ++ # consuming and fragmenting process. To avoid this, we pick a random, ++ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link ++ # time. Moving up from 0x10000000 also allows more sbrk(2) space. ++ archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ++ archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ++ ;; ++ ++ gnu* | linux* | tpf* | k*bsd*-gnu) ++ tmp_diet=no ++ if test "$host_os" = linux-dietlibc; then ++ case $cc_basename in ++ diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) ++ esac ++ fi ++ if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ ++ && test "$tmp_diet" = no ++ then ++ tmp_addflag= ++ tmp_sharedflag='-shared' ++ case $cc_basename,$host_cpu in ++ pgcc*) # Portland Group C compiler ++ whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ++ tmp_addflag=' $pic_flag' ++ ;; ++ pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers ++ whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ++ tmp_addflag=' $pic_flag -Mnomain' ;; ++ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 ++ tmp_addflag=' -i_dynamic' ;; ++ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 ++ tmp_addflag=' -i_dynamic -nofor_main' ;; ++ ifc* | ifort*) # Intel Fortran compiler ++ tmp_addflag=' -nofor_main' ;; ++ lf95*) # Lahey Fortran 8.1 ++ whole_archive_flag_spec_F77= ++ tmp_sharedflag='--shared' ;; ++ xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) ++ tmp_sharedflag='-qmkshrobj' ++ tmp_addflag= ;; ++ esac ++ case `$CC -V 2>&1 | sed 5q` in ++ *Sun\ C*) # Sun C 5.9 ++ whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ++ compiler_needs_object_F77=yes ++ tmp_sharedflag='-G' ;; ++ *Sun\ F*) # Sun Fortran 8.3 ++ tmp_sharedflag='-G' ;; ++ esac ++ archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ ++ if test "x$supports_anon_versioning" = xyes; then ++ archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ ++ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ ++ echo "local: *; };" >> $output_objdir/$libname.ver~ ++ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' ++ fi ++ ++ case $cc_basename in ++ xlf*) ++ # IBM XL Fortran 10.1 on PPC cannot create shared libs itself ++ whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive' ++ hardcode_libdir_flag_spec_F77= ++ hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' ++ archive_cmds_F77='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' ++ if test "x$supports_anon_versioning" = xyes; then ++ archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ ++ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ ++ echo "local: *; };" >> $output_objdir/$libname.ver~ ++ $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' ++ fi ++ ;; ++ esac ++ else ++ ld_shlibs_F77=no ++ fi ++ ;; ++ ++ netbsd*) ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then ++ archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' ++ wlarc= ++ else ++ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ fi ++ ;; ++ ++ solaris*) ++ if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ++ ld_shlibs_F77=no ++ cat <<_LT_EOF 1>&2 ++ ++*** Warning: The releases 2.8.* of the GNU linker cannot reliably ++*** create shared libraries on Solaris systems. Therefore, libtool ++*** is disabling shared libraries support. We urge you to upgrade GNU ++*** binutils to release 2.9.1 or newer. Another option is to modify ++*** your PATH or compiler configuration so that the native linker is ++*** used, and then restart. ++ ++_LT_EOF ++ elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ else ++ ld_shlibs_F77=no ++ fi ++ ;; ++ ++ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) ++ case `$LD -v 2>&1` in ++ *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ++ ld_shlibs_F77=no ++ cat <<_LT_EOF 1>&2 ++ ++*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not ++*** reliably create shared libraries on SCO systems. Therefore, libtool ++*** is disabling shared libraries support. We urge you to upgrade GNU ++*** binutils to release 2.16.91.0.3 or newer. Another option is to modify ++*** your PATH or compiler configuration so that the native linker is ++*** used, and then restart. ++ ++_LT_EOF ++ ;; ++ *) ++ # For security reasons, it is highly recommended that you always ++ # use absolute paths for naming shared libraries, and exclude the ++ # DT_RUNPATH tag from executables and libraries. But doing so ++ # requires that you compile everything twice, which is a pain. ++ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' ++ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ else ++ ld_shlibs_F77=no ++ fi ++ ;; ++ esac ++ ;; ++ ++ sunos4*) ++ archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' ++ wlarc= ++ hardcode_direct_F77=yes ++ hardcode_shlibpath_var_F77=no ++ ;; ++ ++ *) ++ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ else ++ ld_shlibs_F77=no ++ fi ++ ;; ++ esac ++ ++ if test "$ld_shlibs_F77" = no; then ++ runpath_var= ++ hardcode_libdir_flag_spec_F77= ++ export_dynamic_flag_spec_F77= ++ whole_archive_flag_spec_F77= ++ fi ++ else ++ # PORTME fill in a description of your system's linker (not GNU ld) ++ case $host_os in ++ aix3*) ++ allow_undefined_flag_F77=unsupported ++ always_export_symbols_F77=yes ++ archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' ++ # Note: this linker hardcodes the directories in LIBPATH if there ++ # are no directories specified by -L. ++ hardcode_minus_L_F77=yes ++ if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then ++ # Neither direct hardcoding nor static linking is supported with a ++ # broken collect2. ++ hardcode_direct_F77=unsupported ++ fi ++ ;; ++ ++ aix[4-9]*) ++ if test "$host_cpu" = ia64; then ++ # On IA64, the linker does run time linking by default, so we don't ++ # have to do anything special. ++ aix_use_runtimelinking=no ++ exp_sym_flag='-Bexport' ++ no_entry_flag="" ++ else ++ # If we're using GNU nm, then we don't want the "-C" option. ++ # -C means demangle to AIX nm, but means don't demangle with GNU nm ++ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then ++ export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' ++ else ++ export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' ++ fi ++ aix_use_runtimelinking=no ++ ++ # Test if we are trying to use run time linking or normal ++ # AIX style linking. If -brtl is somewhere in LDFLAGS, we ++ # need to do runtime linking. ++ case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) ++ for ld_flag in $LDFLAGS; do ++ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then ++ aix_use_runtimelinking=yes ++ break ++ fi ++ done ++ ;; ++ esac ++ ++ exp_sym_flag='-bexport' ++ no_entry_flag='-bnoentry' ++ fi ++ ++ # When large executables or shared objects are built, AIX ld can ++ # have problems creating the table of contents. If linking a library ++ # or program results in "error TOC overflow" add -mminimal-toc to ++ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not ++ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. ++ ++ archive_cmds_F77='' ++ hardcode_direct_F77=yes ++ hardcode_direct_absolute_F77=yes ++ hardcode_libdir_separator_F77=':' ++ link_all_deplibs_F77=yes ++ file_list_spec_F77='${wl}-f,' ++ ++ if test "$GCC" = yes; then ++ case $host_os in aix4.[012]|aix4.[012].*) ++ # We only want to do this on AIX 4.2 and lower, the check ++ # below for broken collect2 doesn't work under 4.3+ ++ collect2name=`${CC} -print-prog-name=collect2` ++ if test -f "$collect2name" && ++ strings "$collect2name" | $GREP resolve_lib_name >/dev/null ++ then ++ # We have reworked collect2 ++ : ++ else ++ # We have old collect2 ++ hardcode_direct_F77=unsupported ++ # It fails to find uninstalled libraries when the uninstalled ++ # path is not listed in the libpath. Setting hardcode_minus_L ++ # to unsupported forces relinking ++ hardcode_minus_L_F77=yes ++ hardcode_libdir_flag_spec_F77='-L$libdir' ++ hardcode_libdir_separator_F77= ++ fi ++ ;; ++ esac ++ shared_flag='-shared' ++ if test "$aix_use_runtimelinking" = yes; then ++ shared_flag="$shared_flag "'${wl}-G' ++ fi ++ else ++ # not using gcc ++ if test "$host_cpu" = ia64; then ++ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release ++ # chokes on -Wl,-G. The following line is correct: ++ shared_flag='-G' ++ else ++ if test "$aix_use_runtimelinking" = yes; then ++ shared_flag='${wl}-G' ++ else ++ shared_flag='${wl}-bM:SRE' ++ fi ++ fi ++ fi ++ ++ export_dynamic_flag_spec_F77='${wl}-bexpall' ++ # It seems that -bexpall does not export symbols beginning with ++ # underscore (_), so it is better to generate a list of symbols to export. ++ always_export_symbols_F77=yes ++ if test "$aix_use_runtimelinking" = yes; then ++ # Warning - without using the other runtime loading flags (-brtl), ++ # -berok will link without error, but may produce a broken library. ++ allow_undefined_flag_F77='-berok' ++ # Determine the default libpath from the value encoded in an ++ # empty executable. ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ++lt_aix_libpath_sed=' ++ /Import File Strings/,/^$/ { ++ /^0/ { ++ s/^0 *\(.*\)$/\1/ ++ p ++ } ++ }' ++aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++# Check for a 64-bit object if we didn't find anything. ++if test -z "$aix_libpath"; then ++ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++fi ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ++ ++ hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" ++ archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" ++ else ++ if test "$host_cpu" = ia64; then ++ hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' ++ allow_undefined_flag_F77="-z nodefs" ++ archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" ++ else ++ # Determine the default libpath from the value encoded in an ++ # empty executable. ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ++lt_aix_libpath_sed=' ++ /Import File Strings/,/^$/ { ++ /^0/ { ++ s/^0 *\(.*\)$/\1/ ++ p ++ } ++ }' ++aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++# Check for a 64-bit object if we didn't find anything. ++if test -z "$aix_libpath"; then ++ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++fi ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ++ ++ hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" ++ # Warning - without using the other run time loading flags, ++ # -berok will link without error, but may produce a broken library. ++ no_undefined_flag_F77=' ${wl}-bernotok' ++ allow_undefined_flag_F77=' ${wl}-berok' ++ # Exported symbols can be pulled into shared objects from archives ++ whole_archive_flag_spec_F77='$convenience' ++ archive_cmds_need_lc_F77=yes ++ # This is similar to how AIX traditionally builds its shared libraries. ++ archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' ++ fi ++ fi ++ ;; ++ ++ amigaos*) ++ case $host_cpu in ++ powerpc) ++ # see comment about AmigaOS4 .so support ++ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_F77='' ++ ;; ++ m68k) ++ archive_cmds_F77='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' ++ hardcode_libdir_flag_spec_F77='-L$libdir' ++ hardcode_minus_L_F77=yes ++ ;; ++ esac ++ ;; ++ ++ bsdi[45]*) ++ export_dynamic_flag_spec_F77=-rdynamic ++ ;; ++ ++ cygwin* | mingw* | pw32* | cegcc*) ++ # When not using gcc, we currently assume that we are using ++ # Microsoft Visual C++. ++ # hardcode_libdir_flag_spec is actually meaningless, as there is ++ # no search path for DLLs. ++ hardcode_libdir_flag_spec_F77=' ' ++ allow_undefined_flag_F77=unsupported ++ # Tell ltmain to make .lib files, not .a files. ++ libext=lib ++ # Tell ltmain to make .dll files, not .so files. ++ shrext_cmds=".dll" ++ # FIXME: Setting linknames here is a bad hack. ++ archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' ++ # The linker will automatically build a .lib file if we build a DLL. ++ old_archive_from_new_cmds_F77='true' ++ # FIXME: Should let the user specify the lib program. ++ old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' ++ fix_srcfile_path_F77='`cygpath -w "$srcfile"`' ++ enable_shared_with_static_runtimes_F77=yes ++ ;; ++ ++ darwin* | rhapsody*) ++ ++ ++ archive_cmds_need_lc_F77=no ++ hardcode_direct_F77=no ++ hardcode_automatic_F77=yes ++ hardcode_shlibpath_var_F77=unsupported ++ whole_archive_flag_spec_F77='' ++ link_all_deplibs_F77=yes ++ allow_undefined_flag_F77="$_lt_dar_allow_undefined" ++ case $cc_basename in ++ ifort*) _lt_dar_can_shared=yes ;; ++ *) _lt_dar_can_shared=$GCC ;; ++ esac ++ if test "$_lt_dar_can_shared" = "yes"; then ++ output_verbose_link_cmd=echo ++ archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" ++ module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" ++ archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" ++ module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" ++ ++ else ++ ld_shlibs_F77=no ++ fi ++ ++ ;; ++ ++ dgux*) ++ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_libdir_flag_spec_F77='-L$libdir' ++ hardcode_shlibpath_var_F77=no ++ ;; ++ ++ freebsd1*) ++ ld_shlibs_F77=no ++ ;; ++ ++ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor ++ # support. Future versions do this automatically, but an explicit c++rt0.o ++ # does not break anything, and helps significantly (at the cost of a little ++ # extra space). ++ freebsd2.2*) ++ archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' ++ hardcode_libdir_flag_spec_F77='-R$libdir' ++ hardcode_direct_F77=yes ++ hardcode_shlibpath_var_F77=no ++ ;; ++ ++ # Unfortunately, older versions of FreeBSD 2 do not have this feature. ++ freebsd2*) ++ archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_direct_F77=yes ++ hardcode_minus_L_F77=yes ++ hardcode_shlibpath_var_F77=no ++ ;; ++ ++ # FreeBSD 3 and greater uses gcc -shared to do shared libraries. ++ freebsd* | dragonfly*) ++ archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' ++ hardcode_libdir_flag_spec_F77='-R$libdir' ++ hardcode_direct_F77=yes ++ hardcode_shlibpath_var_F77=no ++ ;; ++ ++ hpux9*) ++ if test "$GCC" = yes; then ++ archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ++ else ++ archive_cmds_F77='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ++ fi ++ hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' ++ hardcode_libdir_separator_F77=: ++ hardcode_direct_F77=yes ++ ++ # hardcode_minus_L: Not really in the search PATH, ++ # but as the default location of the library. ++ hardcode_minus_L_F77=yes ++ export_dynamic_flag_spec_F77='${wl}-E' ++ ;; ++ ++ hpux10*) ++ if test "$GCC" = yes -a "$with_gnu_ld" = no; then ++ archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ++ else ++ archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ++ fi ++ if test "$with_gnu_ld" = no; then ++ hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' ++ hardcode_libdir_flag_spec_ld_F77='+b $libdir' ++ hardcode_libdir_separator_F77=: ++ hardcode_direct_F77=yes ++ hardcode_direct_absolute_F77=yes ++ export_dynamic_flag_spec_F77='${wl}-E' ++ # hardcode_minus_L: Not really in the search PATH, ++ # but as the default location of the library. ++ hardcode_minus_L_F77=yes ++ fi ++ ;; ++ ++ hpux11*) ++ if test "$GCC" = yes -a "$with_gnu_ld" = no; then ++ case $host_cpu in ++ hppa*64*) ++ archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ ia64*) ++ archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ *) ++ archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ esac ++ else ++ case $host_cpu in ++ hppa*64*) ++ archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ ia64*) ++ archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ *) ++ archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ esac ++ fi ++ if test "$with_gnu_ld" = no; then ++ hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' ++ hardcode_libdir_separator_F77=: ++ ++ case $host_cpu in ++ hppa*64*|ia64*) ++ hardcode_direct_F77=no ++ hardcode_shlibpath_var_F77=no ++ ;; ++ *) ++ hardcode_direct_F77=yes ++ hardcode_direct_absolute_F77=yes ++ export_dynamic_flag_spec_F77='${wl}-E' ++ ++ # hardcode_minus_L: Not really in the search PATH, ++ # but as the default location of the library. ++ hardcode_minus_L_F77=yes ++ ;; ++ esac ++ fi ++ ;; ++ ++ irix5* | irix6* | nonstopux*) ++ if test "$GCC" = yes; then ++ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ++ # Try to use the -exported_symbol ld option, if it does not ++ # work, assume that -exports_file does not work either and ++ # implicitly export all symbols. ++ save_LDFLAGS="$LDFLAGS" ++ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" ++ cat >conftest.$ac_ext <<_ACEOF ++int foo(void) {} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LDFLAGS="$save_LDFLAGS" ++ else ++ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' ++ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' ++ fi ++ archive_cmds_need_lc_F77='no' ++ hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' ++ hardcode_libdir_separator_F77=: ++ inherit_rpath_F77=yes ++ link_all_deplibs_F77=yes ++ ;; ++ ++ netbsd*) ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then ++ archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out ++ else ++ archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF ++ fi ++ hardcode_libdir_flag_spec_F77='-R$libdir' ++ hardcode_direct_F77=yes ++ hardcode_shlibpath_var_F77=no ++ ;; ++ ++ newsos6) ++ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_direct_F77=yes ++ hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' ++ hardcode_libdir_separator_F77=: ++ hardcode_shlibpath_var_F77=no ++ ;; ++ ++ *nto* | *qnx*) ++ ;; ++ ++ openbsd*) ++ if test -f /usr/libexec/ld.so; then ++ hardcode_direct_F77=yes ++ hardcode_shlibpath_var_F77=no ++ hardcode_direct_absolute_F77=yes ++ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ++ archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' ++ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' ++ export_dynamic_flag_spec_F77='${wl}-E' ++ else ++ case $host_os in ++ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) ++ archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_libdir_flag_spec_F77='-R$libdir' ++ ;; ++ *) ++ archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ++ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' ++ ;; ++ esac ++ fi ++ else ++ ld_shlibs_F77=no ++ fi ++ ;; ++ ++ os2*) ++ hardcode_libdir_flag_spec_F77='-L$libdir' ++ hardcode_minus_L_F77=yes ++ allow_undefined_flag_F77=unsupported ++ archive_cmds_F77='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' ++ old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ++ ;; ++ ++ osf3*) ++ if test "$GCC" = yes; then ++ allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' ++ archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ++ else ++ allow_undefined_flag_F77=' -expect_unresolved \*' ++ archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' ++ fi ++ archive_cmds_need_lc_F77='no' ++ hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' ++ hardcode_libdir_separator_F77=: ++ ;; ++ ++ osf4* | osf5*) # as osf3* with the addition of -msym flag ++ if test "$GCC" = yes; then ++ allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' ++ archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ++ hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' ++ else ++ allow_undefined_flag_F77=' -expect_unresolved \*' ++ archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' ++ archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ ++ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' ++ ++ # Both c and cxx compiler support -rpath directly ++ hardcode_libdir_flag_spec_F77='-rpath $libdir' ++ fi ++ archive_cmds_need_lc_F77='no' ++ hardcode_libdir_separator_F77=: ++ ;; ++ ++ solaris*) ++ no_undefined_flag_F77=' -z defs' ++ if test "$GCC" = yes; then ++ wlarc='${wl}' ++ archive_cmds_F77='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ ++ $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ++ else ++ case `$CC -V 2>&1` in ++ *"Compilers 5.0"*) ++ wlarc='' ++ archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ ++ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ++ ;; ++ *) ++ wlarc='${wl}' ++ archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ ++ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ++ ;; ++ esac ++ fi ++ hardcode_libdir_flag_spec_F77='-R$libdir' ++ hardcode_shlibpath_var_F77=no ++ case $host_os in ++ solaris2.[0-5] | solaris2.[0-5].*) ;; ++ *) ++ # The compiler driver will combine and reorder linker options, ++ # but understands `-z linker_flag'. GCC discards it without `$wl', ++ # but is careful enough not to reorder. ++ # Supported since Solaris 2.6 (maybe 2.5.1?) ++ if test "$GCC" = yes; then ++ whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ++ else ++ whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ++ fi ++ ;; ++ esac ++ link_all_deplibs_F77=yes ++ ;; ++ ++ sunos4*) ++ if test "x$host_vendor" = xsequent; then ++ # Use $CC to link under sequent, because it throws in some extra .o ++ # files that make .init and .fini sections work. ++ archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' ++ else ++ archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' ++ fi ++ hardcode_libdir_flag_spec_F77='-L$libdir' ++ hardcode_direct_F77=yes ++ hardcode_minus_L_F77=yes ++ hardcode_shlibpath_var_F77=no ++ ;; ++ ++ sysv4) ++ case $host_vendor in ++ sni) ++ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_direct_F77=yes # is this really true??? ++ ;; ++ siemens) ++ ## LD is ld it makes a PLAMLIB ++ ## CC just makes a GrossModule. ++ archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' ++ reload_cmds_F77='$CC -r -o $output$reload_objs' ++ hardcode_direct_F77=no ++ ;; ++ motorola) ++ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie ++ ;; ++ esac ++ runpath_var='LD_RUN_PATH' ++ hardcode_shlibpath_var_F77=no ++ ;; ++ ++ sysv4.3*) ++ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_shlibpath_var_F77=no ++ export_dynamic_flag_spec_F77='-Bexport' ++ ;; ++ ++ sysv4*MP*) ++ if test -d /usr/nec; then ++ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_shlibpath_var_F77=no ++ runpath_var=LD_RUN_PATH ++ hardcode_runpath_var=yes ++ ld_shlibs_F77=yes ++ fi ++ ;; ++ ++ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) ++ no_undefined_flag_F77='${wl}-z,text' ++ archive_cmds_need_lc_F77=no ++ hardcode_shlibpath_var_F77=no ++ runpath_var='LD_RUN_PATH' ++ ++ if test "$GCC" = yes; then ++ archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ else ++ archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ fi ++ ;; ++ ++ sysv5* | sco3.2v5* | sco5v6*) ++ # Note: We can NOT use -z defs as we might desire, because we do not ++ # link with -lc, and that would cause any symbols used from libc to ++ # always be unresolved, which means just about no library would ++ # ever link correctly. If we're not using GNU ld we use -z text ++ # though, which does catch some bad symbols but isn't as heavy-handed ++ # as -z defs. ++ no_undefined_flag_F77='${wl}-z,text' ++ allow_undefined_flag_F77='${wl}-z,nodefs' ++ archive_cmds_need_lc_F77=no ++ hardcode_shlibpath_var_F77=no ++ hardcode_libdir_flag_spec_F77='${wl}-R,$libdir' ++ hardcode_libdir_separator_F77=':' ++ link_all_deplibs_F77=yes ++ export_dynamic_flag_spec_F77='${wl}-Bexport' ++ runpath_var='LD_RUN_PATH' ++ ++ if test "$GCC" = yes; then ++ archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ else ++ archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ fi ++ ;; ++ ++ uts4*) ++ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_libdir_flag_spec_F77='-L$libdir' ++ hardcode_shlibpath_var_F77=no ++ ;; ++ ++ *) ++ ld_shlibs_F77=no ++ ;; ++ esac ++ ++ if test x$host_vendor = xsni; then ++ case $host in ++ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ++ export_dynamic_flag_spec_F77='${wl}-Blargedynsym' ++ ;; ++ esac ++ fi ++ fi ++ ++{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 ++echo "${ECHO_T}$ld_shlibs_F77" >&6; } ++test "$ld_shlibs_F77" = no && can_build_shared=no ++ ++with_gnu_ld_F77=$with_gnu_ld ++ ++ ++ ++ ++ ++ ++# ++# Do we need to explicitly link libc? ++# ++case "x$archive_cmds_need_lc_F77" in ++x|xyes) ++ # Assume -lc should be added ++ archive_cmds_need_lc_F77=yes ++ ++ if test "$enable_shared" = yes && test "$GCC" = yes; then ++ case $archive_cmds_F77 in ++ *'~'*) ++ # FIXME: we may have to deal with multi-command sequences. ++ ;; ++ '$CC '*) ++ # Test whether the compiler implicitly links with -lc since on some ++ # systems, -lgcc has to come before -lc. If gcc already passes -lc ++ # to ld, don't add -lc before -lgcc. ++ { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 ++echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } ++ $RM conftest* ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ ++ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } 2>conftest.err; then ++ soname=conftest ++ lib=conftest ++ libobjs=conftest.$ac_objext ++ deplibs= ++ wl=$lt_prog_compiler_wl_F77 ++ pic_flag=$lt_prog_compiler_pic_F77 ++ compiler_flags=-v ++ linker_flags=-v ++ verstring= ++ output_objdir=. ++ libname=conftest ++ lt_save_allow_undefined_flag=$allow_undefined_flag_F77 ++ allow_undefined_flag_F77= ++ if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 ++ (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++ then ++ archive_cmds_need_lc_F77=no ++ else ++ archive_cmds_need_lc_F77=yes ++ fi ++ allow_undefined_flag_F77=$lt_save_allow_undefined_flag ++ else ++ cat conftest.err 1>&5 ++ fi ++ $RM conftest* ++ { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 ++echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } ++ ;; ++ esac ++ fi ++ ;; ++esac ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 ++echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } ++ ++library_names_spec= ++libname_spec='lib$name' ++soname_spec= ++shrext_cmds=".so" ++postinstall_cmds= ++postuninstall_cmds= ++finish_cmds= ++finish_eval= ++shlibpath_var= ++shlibpath_overrides_runpath=unknown ++version_type=none ++dynamic_linker="$host_os ld.so" ++sys_lib_dlsearch_path_spec="/lib /usr/lib" ++need_lib_prefix=unknown ++hardcode_into_libs=no ++ ++# when you set need_version to no, make sure it does not cause -set_version ++# flags to be left without arguments ++need_version=unknown ++ ++case $host_os in ++aix3*) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' ++ shlibpath_var=LIBPATH ++ ++ # AIX 3 has no versioning support, so we append a major version to the name. ++ soname_spec='${libname}${release}${shared_ext}$major' ++ ;; ++ ++aix[4-9]*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ hardcode_into_libs=yes ++ if test "$host_cpu" = ia64; then ++ # AIX 5 supports IA64 ++ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ else ++ # With GCC up to 2.95.x, collect2 would create an import file ++ # for dependence libraries. The import file would start with ++ # the line `#! .'. This would cause the generated library to ++ # depend on `.', always an invalid library. This was fixed in ++ # development snapshots of GCC prior to 3.0. ++ case $host_os in ++ aix4 | aix4.[01] | aix4.[01].*) ++ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' ++ echo ' yes ' ++ echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then ++ : ++ else ++ can_build_shared=no ++ fi ++ ;; ++ esac ++ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct ++ # soname into executable. Probably we can add versioning support to ++ # collect2, so additional links can be useful in future. ++ if test "$aix_use_runtimelinking" = yes; then ++ # If using run time linking (on AIX 4.2 or later) use lib.so ++ # instead of lib.a to let people know that these are not ++ # typical AIX shared libraries. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ else ++ # We preserve .a as extension for shared libraries through AIX4.2 ++ # and later when we are not doing run time linking. ++ library_names_spec='${libname}${release}.a $libname.a' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ fi ++ shlibpath_var=LIBPATH ++ fi ++ ;; ++ ++amigaos*) ++ case $host_cpu in ++ powerpc) ++ # Since July 2007 AmigaOS4 officially supports .so libraries. ++ # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ ;; ++ m68k) ++ library_names_spec='$libname.ixlibrary $libname.a' ++ # Create ${libname}_ixlibrary.a entries in /sys/libs. ++ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ++ ;; ++ esac ++ ;; ++ ++beos*) ++ library_names_spec='${libname}${shared_ext}' ++ dynamic_linker="$host_os ld.so" ++ shlibpath_var=LIBRARY_PATH ++ ;; ++ ++bsdi[45]*) ++ version_type=linux ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" ++ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" ++ # the default ld.so.conf also contains /usr/contrib/lib and ++ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow ++ # libtool to hard-code these into programs ++ ;; ++ ++cygwin* | mingw* | pw32* | cegcc*) ++ version_type=windows ++ shrext_cmds=".dll" ++ need_version=no ++ need_lib_prefix=no ++ ++ case $GCC,$host_os in ++ yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ library_names_spec='$libname.dll.a' ++ # DLL is installed to $(libdir)/../bin by postinstall_cmds ++ postinstall_cmds='base_file=`basename \${file}`~ ++ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ ++ dldir=$destdir/`dirname \$dlpath`~ ++ test -d \$dldir || mkdir -p \$dldir~ ++ $install_prog $dir/$dlname \$dldir/$dlname~ ++ chmod a+x \$dldir/$dlname~ ++ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then ++ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; ++ fi' ++ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ ++ dlpath=$dir/\$dldll~ ++ $RM \$dlpath' ++ shlibpath_overrides_runpath=yes ++ ++ case $host_os in ++ cygwin*) ++ # Cygwin DLLs use 'cyg' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ++ ;; ++ mingw* | cegcc*) ++ # MinGW DLLs use traditional 'lib' prefix ++ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` ++ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then ++ # It is most probably a Windows format PATH printed by ++ # mingw gcc, but we are running on Cygwin. Gcc prints its search ++ # path with ; separators, and with drive letters. We can handle the ++ # drive letters (cygwin fileutils understands them), so leave them, ++ # especially as we might pass files found there to a mingw objdump, ++ # which wouldn't understand a cygwinified path. Ahh. ++ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` ++ else ++ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ++ fi ++ ;; ++ pw32*) ++ # pw32 DLLs use 'pw' prefix rather than 'lib' ++ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ;; ++ esac ++ ;; ++ ++ *) ++ library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ++ ;; ++ esac ++ dynamic_linker='Win32 ld.exe' ++ # FIXME: first we should search . and the directory the executable is in ++ shlibpath_var=PATH ++ ;; ++ ++darwin* | rhapsody*) ++ dynamic_linker="$host_os dyld" ++ version_type=darwin ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' ++ soname_spec='${libname}${release}${major}$shared_ext' ++ shlibpath_overrides_runpath=yes ++ shlibpath_var=DYLD_LIBRARY_PATH ++ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' ++ ++ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ++ ;; ++ ++dgux*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ ;; ++ ++freebsd1*) ++ dynamic_linker=no ++ ;; ++ ++freebsd* | dragonfly*) ++ # DragonFly does not have aout. When/if they implement a new ++ # versioning mechanism, adjust this. ++ if test -x /usr/bin/objformat; then ++ objformat=`/usr/bin/objformat` ++ else ++ case $host_os in ++ freebsd[123]*) objformat=aout ;; ++ *) objformat=elf ;; ++ esac ++ fi ++ version_type=freebsd-$objformat ++ case $version_type in ++ freebsd-elf*) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' ++ need_version=no ++ need_lib_prefix=no ++ ;; ++ freebsd-*) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' ++ need_version=yes ++ ;; ++ esac ++ shlibpath_var=LD_LIBRARY_PATH ++ case $host_os in ++ freebsd2*) ++ shlibpath_overrides_runpath=yes ++ ;; ++ freebsd3.[01]* | freebsdelf3.[01]*) ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ ;; ++ freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ ++ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ ;; ++ *) # from 4.6 on, and DragonFly ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ ;; ++ esac ++ ;; ++ ++gnu*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ hardcode_into_libs=yes ++ ;; ++ ++hpux9* | hpux10* | hpux11*) ++ # Give a soname corresponding to the major version so that dld.sl refuses to ++ # link against other versions. ++ version_type=sunos ++ need_lib_prefix=no ++ need_version=no ++ case $host_cpu in ++ ia64*) ++ shrext_cmds='.so' ++ hardcode_into_libs=yes ++ dynamic_linker="$host_os dld.so" ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ if test "X$HPUX_IA64_MODE" = X32; then ++ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" ++ else ++ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" ++ fi ++ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ++ ;; ++ hppa*64*) ++ shrext_cmds='.sl' ++ hardcode_into_libs=yes ++ dynamic_linker="$host_os dld.sl" ++ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH ++ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" ++ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ++ ;; ++ *) ++ shrext_cmds='.sl' ++ dynamic_linker="$host_os dld.sl" ++ shlibpath_var=SHLIB_PATH ++ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ ;; ++ esac ++ # HP-UX runs *really* slowly unless shared libraries are mode 555. ++ postinstall_cmds='chmod 555 $lib' ++ ;; ++ ++interix[3-9]*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ ;; ++ ++irix5* | irix6* | nonstopux*) ++ case $host_os in ++ nonstopux*) version_type=nonstopux ;; ++ *) ++ if test "$lt_cv_prog_gnu_ld" = yes; then ++ version_type=linux ++ else ++ version_type=irix ++ fi ;; ++ esac ++ need_lib_prefix=no ++ need_version=no ++ soname_spec='${libname}${release}${shared_ext}$major' ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' ++ case $host_os in ++ irix5* | nonstopux*) ++ libsuff= shlibsuff= ++ ;; ++ *) ++ case $LD in # libtool.m4 will add one of these switches to LD ++ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") ++ libsuff= shlibsuff= libmagic=32-bit;; ++ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") ++ libsuff=32 shlibsuff=N32 libmagic=N32;; ++ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") ++ libsuff=64 shlibsuff=64 libmagic=64-bit;; ++ *) libsuff= shlibsuff= libmagic=never-match;; ++ esac ++ ;; ++ esac ++ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH ++ shlibpath_overrides_runpath=no ++ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" ++ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" ++ hardcode_into_libs=yes ++ ;; ++ ++# No shared lib support for Linux oldld, aout, or coff. ++linux*oldld* | linux*aout* | linux*coff*) ++ dynamic_linker=no ++ ;; ++ ++# This must be Linux ELF. ++linux* | k*bsd*-gnu) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ # Some binutils ld are patched to set DT_RUNPATH ++ save_LDFLAGS=$LDFLAGS ++ save_libdir=$libdir ++ eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \ ++ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\"" ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then ++ shlibpath_overrides_runpath=yes ++fi ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LDFLAGS=$save_LDFLAGS ++ libdir=$save_libdir ++ ++ # This implies no fast_install, which is unacceptable. ++ # Some rework will be needed to allow for fast_install ++ # before this can be enabled. ++ hardcode_into_libs=yes ++ ++ # Append ld.so.conf contents to the search path ++ if test -f /etc/ld.so.conf; then ++ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` ++ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" ++ fi ++ ++ # We used to test for /lib/ld.so.1 and disable shared libraries on ++ # powerpc, because MkLinux only supported shared libraries with the ++ # GNU dynamic linker. Since this was broken with cross compilers, ++ # most powerpc-linux boxes support dynamic linking these days and ++ # people can always --disable-shared, the test was removed, and we ++ # assume the GNU/Linux dynamic linker is in use. ++ dynamic_linker='GNU/Linux ld.so' ++ ;; ++ ++netbsd*) ++ version_type=sunos ++ need_lib_prefix=no ++ need_version=no ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ++ dynamic_linker='NetBSD (a.out) ld.so' ++ else ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ dynamic_linker='NetBSD ld.elf_so' ++ fi ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ ;; ++ ++newsos6) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ ;; ++ ++*nto* | *qnx*) ++ version_type=qnx ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ dynamic_linker='ldqnx.so' ++ ;; ++ ++openbsd*) ++ version_type=sunos ++ sys_lib_dlsearch_path_spec="/usr/lib" ++ need_lib_prefix=no ++ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. ++ case $host_os in ++ openbsd3.3 | openbsd3.3.*) need_version=yes ;; ++ *) need_version=no ;; ++ esac ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ++ case $host_os in ++ openbsd2.[89] | openbsd2.[89].*) ++ shlibpath_overrides_runpath=no ++ ;; ++ *) ++ shlibpath_overrides_runpath=yes ++ ;; ++ esac ++ else ++ shlibpath_overrides_runpath=yes ++ fi ++ ;; ++ ++os2*) ++ libname_spec='$name' ++ shrext_cmds=".dll" ++ need_lib_prefix=no ++ library_names_spec='$libname${shared_ext} $libname.a' ++ dynamic_linker='OS/2 ld.exe' ++ shlibpath_var=LIBPATH ++ ;; ++ ++osf3* | osf4* | osf5*) ++ version_type=osf ++ need_lib_prefix=no ++ need_version=no ++ soname_spec='${libname}${release}${shared_ext}$major' ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" ++ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ++ ;; ++ ++rdos*) ++ dynamic_linker=no ++ ;; ++ ++solaris*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ # ldd complains unless libraries are executable ++ postinstall_cmds='chmod +x $lib' ++ ;; ++ ++sunos4*) ++ version_type=sunos ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ++ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ if test "$with_gnu_ld" = yes; then ++ need_lib_prefix=no ++ fi ++ need_version=yes ++ ;; ++ ++sysv4 | sysv4.3*) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ case $host_vendor in ++ sni) ++ shlibpath_overrides_runpath=no ++ need_lib_prefix=no ++ runpath_var=LD_RUN_PATH ++ ;; ++ siemens) ++ need_lib_prefix=no ++ ;; ++ motorola) ++ need_lib_prefix=no ++ need_version=no ++ shlibpath_overrides_runpath=no ++ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ++ ;; ++ esac ++ ;; ++ ++sysv4*MP*) ++ if test -d /usr/nec ;then ++ version_type=linux ++ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' ++ soname_spec='$libname${shared_ext}.$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ fi ++ ;; ++ ++sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) ++ version_type=freebsd-elf ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ if test "$with_gnu_ld" = yes; then ++ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' ++ else ++ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' ++ case $host_os in ++ sco3.2v5*) ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ++ ;; ++ esac ++ fi ++ sys_lib_dlsearch_path_spec='/usr/lib' ++ ;; ++ ++tpf*) ++ # TPF is a cross-target only. Preferred cross-host = GNU/Linux. ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ ;; ++ ++uts4*) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ ;; ++ ++*) ++ dynamic_linker=no ++ ;; ++esac ++{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 ++echo "${ECHO_T}$dynamic_linker" >&6; } ++test "$dynamic_linker" = no && can_build_shared=no ++ ++variables_saved_for_relink="PATH $shlibpath_var $runpath_var" ++if test "$GCC" = yes; then ++ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" ++fi ++ ++if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then ++ sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" ++fi ++if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then ++ sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 ++echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } ++hardcode_action_F77= ++if test -n "$hardcode_libdir_flag_spec_F77" || ++ test -n "$runpath_var_F77" || ++ test "X$hardcode_automatic_F77" = "Xyes" ; then ++ ++ # We can hardcode non-existent directories. ++ if test "$hardcode_direct_F77" != no && ++ # If the only mechanism to avoid hardcoding is shlibpath_var, we ++ # have to relink, otherwise we might link with an installed library ++ # when we should be linking with a yet-to-be-installed one ++ ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no && ++ test "$hardcode_minus_L_F77" != no; then ++ # Linking always hardcodes the temporary library directory. ++ hardcode_action_F77=relink ++ else ++ # We can link without hardcoding, and we can hardcode nonexisting dirs. ++ hardcode_action_F77=immediate ++ fi ++else ++ # We cannot hardcode anything, or else we can only hardcode existing ++ # directories. ++ hardcode_action_F77=unsupported ++fi ++{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 ++echo "${ECHO_T}$hardcode_action_F77" >&6; } ++ ++if test "$hardcode_action_F77" = relink || ++ test "$inherit_rpath_F77" = yes; then ++ # Fast installation is not supported ++ enable_fast_install=no ++elif test "$shlibpath_overrides_runpath" = yes || ++ test "$enable_shared" = no; then ++ # Fast installation is not necessary ++ enable_fast_install=needless ++fi ++ ++ ++ ++ ++ ++ ++ ++ fi # test -n "$compiler" ++ ++ GCC=$lt_save_GCC ++ CC="$lt_save_CC" ++fi # test "$_lt_disable_F77" != yes ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ ++archive_cmds_need_lc_FC=no ++allow_undefined_flag_FC= ++always_export_symbols_FC=no ++archive_expsym_cmds_FC= ++export_dynamic_flag_spec_FC= ++hardcode_direct_FC=no ++hardcode_direct_absolute_FC=no ++hardcode_libdir_flag_spec_FC= ++hardcode_libdir_flag_spec_ld_FC= ++hardcode_libdir_separator_FC= ++hardcode_minus_L_FC=no ++hardcode_automatic_FC=no ++inherit_rpath_FC=no ++module_cmds_FC= ++module_expsym_cmds_FC= ++link_all_deplibs_FC=unknown ++old_archive_cmds_FC=$old_archive_cmds ++no_undefined_flag_FC= ++whole_archive_flag_spec_FC= ++enable_shared_with_static_runtimes_FC=no ++ ++# Source file extension for fc test sources. ++ac_ext=${ac_fc_srcext-f} ++ ++# Object file extension for compiled fc test sources. ++objext=o ++objext_FC=$objext ++ ++# No sense in running all these tests if we already determined that ++# the FC compiler isn't working. Some variables (like enable_shared) ++# are currently assumed to apply to all compilers on this platform, ++# and will be corrupted by setting them based on a non-working compiler. ++if test "$_lt_disable_FC" != yes; then ++ # Code to be used in simple compile tests ++ lt_simple_compile_test_code="\ ++ subroutine t ++ return ++ end ++" ++ ++ # Code to be used in simple link tests ++ lt_simple_link_test_code="\ ++ program t ++ end ++" ++ ++ # ltmain only uses $CC for tagged configurations so make sure $CC is set. ++ ++ ++ ++ ++ ++ ++# If no C compiler was specified, use CC. ++LTCC=${LTCC-"$CC"} ++ ++# If no C compiler flags were specified, use CFLAGS. ++LTCFLAGS=${LTCFLAGS-"$CFLAGS"} ++ ++# Allow CC to be a program name with arguments. ++compiler=$CC ++ ++ ++ # save warnings/boilerplate of simple test code ++ ac_outfile=conftest.$ac_objext ++echo "$lt_simple_compile_test_code" >conftest.$ac_ext ++eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err ++_lt_compiler_boilerplate=`cat conftest.err` ++$RM conftest* ++ ++ ac_outfile=conftest.$ac_objext ++echo "$lt_simple_link_test_code" >conftest.$ac_ext ++eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err ++_lt_linker_boilerplate=`cat conftest.err` ++$RM -r conftest* ++ ++ ++ # Allow CC to be a program name with arguments. ++ lt_save_CC="$CC" ++ lt_save_GCC=$GCC ++ CC=${FC-"f95"} ++ compiler=$CC ++ GCC=$ac_cv_fc_compiler_gnu ++ ++ compiler_FC=$CC ++ for cc_temp in $compiler""; do ++ case $cc_temp in ++ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; ++ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; ++ \-*) ;; ++ *) break;; ++ esac ++done ++cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` ++ ++ ++ if test -n "$compiler"; then ++ { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 ++echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $can_build_shared" >&5 ++echo "${ECHO_T}$can_build_shared" >&6; } ++ ++ { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 ++echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } ++ test "$can_build_shared" = "no" && enable_shared=no ++ ++ # On AIX, shared libraries and static libraries use the same namespace, and ++ # are all built from PIC. ++ case $host_os in ++ aix3*) ++ test "$enable_shared" = yes && enable_static=no ++ if test -n "$RANLIB"; then ++ archive_cmds="$archive_cmds~\$RANLIB \$lib" ++ postinstall_cmds='$RANLIB $lib' ++ fi ++ ;; ++ aix[4-9]*) ++ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then ++ test "$enable_shared" = yes && enable_static=no ++ fi ++ ;; ++ esac ++ { echo "$as_me:$LINENO: result: $enable_shared" >&5 ++echo "${ECHO_T}$enable_shared" >&6; } ++ ++ { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 ++echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } ++ # Make sure either enable_shared or enable_static is yes. ++ test "$enable_shared" = yes || enable_static=yes ++ { echo "$as_me:$LINENO: result: $enable_static" >&5 ++echo "${ECHO_T}$enable_static" >&6; } ++ ++ GCC_FC="$ac_cv_fc_compiler_gnu" ++ LD_FC="$LD" ++ ++ ## CAVEAT EMPTOR: ++ ## There is no encapsulation within the following macros, do not change ++ ## the running order or otherwise move them around unless you know exactly ++ ## what you are doing... ++ # Dependencies to place before and after the object being linked: ++predep_objects_FC= ++postdep_objects_FC= ++predeps_FC= ++postdeps_FC= ++compiler_lib_search_path_FC= ++ ++cat > conftest.$ac_ext <<_LT_EOF ++ subroutine foo ++ implicit none ++ integer a ++ a=0 ++ return ++ end ++_LT_EOF ++ ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # Parse the compiler output and extract the necessary ++ # objects, libraries and library flags. ++ ++ # Sentinel used to keep track of whether or not we are before ++ # the conftest object file. ++ pre_test_object_deps_done=no ++ ++ for p in `eval "$output_verbose_link_cmd"`; do ++ case $p in ++ ++ -L* | -R* | -l*) ++ # Some compilers place space between "-{L,R}" and the path. ++ # Remove the space. ++ if test $p = "-L" || ++ test $p = "-R"; then ++ prev=$p ++ continue ++ else ++ prev= ++ fi ++ ++ if test "$pre_test_object_deps_done" = no; then ++ case $p in ++ -L* | -R*) ++ # Internal compiler library paths should come after those ++ # provided the user. The postdeps already come after the ++ # user supplied libs so there is no need to process them. ++ if test -z "$compiler_lib_search_path_FC"; then ++ compiler_lib_search_path_FC="${prev}${p}" ++ else ++ compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}" ++ fi ++ ;; ++ # The "-l" case would never come before the object being ++ # linked, so don't bother handling this case. ++ esac ++ else ++ if test -z "$postdeps_FC"; then ++ postdeps_FC="${prev}${p}" ++ else ++ postdeps_FC="${postdeps_FC} ${prev}${p}" ++ fi ++ fi ++ ;; ++ ++ *.$objext) ++ # This assumes that the test object file only shows up ++ # once in the compiler output. ++ if test "$p" = "conftest.$objext"; then ++ pre_test_object_deps_done=yes ++ continue ++ fi ++ ++ if test "$pre_test_object_deps_done" = no; then ++ if test -z "$predep_objects_FC"; then ++ predep_objects_FC="$p" ++ else ++ predep_objects_FC="$predep_objects_FC $p" ++ fi ++ else ++ if test -z "$postdep_objects_FC"; then ++ postdep_objects_FC="$p" ++ else ++ postdep_objects_FC="$postdep_objects_FC $p" ++ fi ++ fi ++ ;; ++ ++ *) ;; # Ignore the rest. ++ ++ esac ++ done ++ ++ # Clean up. ++ rm -f a.out a.exe ++else ++ echo "libtool.m4: error: problem compiling FC test program" ++fi ++ ++$RM -f confest.$objext ++ ++# PORTME: override above test on systems where it is broken ++ ++ ++case " $postdeps_FC " in ++*" -lc "*) archive_cmds_need_lc_FC=no ;; ++esac ++ compiler_lib_search_dirs_FC= ++if test -n "${compiler_lib_search_path_FC}"; then ++ compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ lt_prog_compiler_wl_FC= ++lt_prog_compiler_pic_FC= ++lt_prog_compiler_static_FC= ++ ++{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 ++echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } ++ ++ if test "$GCC" = yes; then ++ lt_prog_compiler_wl_FC='-Wl,' ++ lt_prog_compiler_static_FC='-static' ++ ++ case $host_os in ++ aix*) ++ # All AIX code is PIC. ++ if test "$host_cpu" = ia64; then ++ # AIX 5 now supports IA64 processor ++ lt_prog_compiler_static_FC='-Bstatic' ++ fi ++ ;; ++ ++ amigaos*) ++ case $host_cpu in ++ powerpc) ++ # see comment about AmigaOS4 .so support ++ lt_prog_compiler_pic_FC='-fPIC' ++ ;; ++ m68k) ++ # FIXME: we need at least 68020 code to build shared libraries, but ++ # adding the `-m68020' flag to GCC prevents building anything better, ++ # like `-m68040'. ++ lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' ++ ;; ++ esac ++ ;; ++ ++ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) ++ # PIC is the default for these OSes. ++ ;; ++ ++ mingw* | cygwin* | pw32* | os2* | cegcc*) ++ # This hack is so that the source file can tell whether it is being ++ # built for inclusion in a dll (and should export symbols for example). ++ # Although the cygwin gcc ignores -fPIC, still need this for old-style ++ # (--disable-auto-import) libraries ++ lt_prog_compiler_pic_FC='-DDLL_EXPORT' ++ ;; ++ ++ darwin* | rhapsody*) ++ # PIC is the default on this platform ++ # Common symbols not allowed in MH_DYLIB files ++ lt_prog_compiler_pic_FC='-fno-common' ++ ;; ++ ++ hpux*) ++ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit ++ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag ++ # sets the default TLS model and affects inlining. ++ case $host_cpu in ++ hppa*64*) ++ # +Z the default ++ ;; ++ *) ++ lt_prog_compiler_pic_FC='-fPIC' ++ ;; ++ esac ++ ;; ++ ++ interix[3-9]*) ++ # Interix 3.x gcc -fpic/-fPIC options generate broken code. ++ # Instead, we relocate shared libraries at runtime. ++ ;; ++ ++ msdosdjgpp*) ++ # Just because we use GCC doesn't mean we suddenly get shared libraries ++ # on systems that don't support them. ++ lt_prog_compiler_can_build_shared_FC=no ++ enable_shared=no ++ ;; ++ ++ *nto* | *qnx*) ++ # QNX uses GNU C++, but need to define -shared option too, otherwise ++ # it will coredump. ++ lt_prog_compiler_pic_FC='-fPIC -shared' ++ ;; ++ ++ sysv4*MP*) ++ if test -d /usr/nec; then ++ lt_prog_compiler_pic_FC=-Kconform_pic ++ fi ++ ;; ++ ++ *) ++ lt_prog_compiler_pic_FC='-fPIC' ++ ;; ++ esac ++ else ++ # PORTME Check for flag to pass linker flags through the system compiler. ++ case $host_os in ++ aix*) ++ lt_prog_compiler_wl_FC='-Wl,' ++ if test "$host_cpu" = ia64; then ++ # AIX 5 now supports IA64 processor ++ lt_prog_compiler_static_FC='-Bstatic' ++ else ++ lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' ++ fi ++ ;; ++ ++ mingw* | cygwin* | pw32* | os2* | cegcc*) ++ # This hack is so that the source file can tell whether it is being ++ # built for inclusion in a dll (and should export symbols for example). ++ lt_prog_compiler_pic_FC='-DDLL_EXPORT' ++ ;; ++ ++ hpux9* | hpux10* | hpux11*) ++ lt_prog_compiler_wl_FC='-Wl,' ++ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but ++ # not for PA HP-UX. ++ case $host_cpu in ++ hppa*64*|ia64*) ++ # +Z the default ++ ;; ++ *) ++ lt_prog_compiler_pic_FC='+Z' ++ ;; ++ esac ++ # Is there a better lt_prog_compiler_static that works with the bundled CC? ++ lt_prog_compiler_static_FC='${wl}-a ${wl}archive' ++ ;; ++ ++ irix5* | irix6* | nonstopux*) ++ lt_prog_compiler_wl_FC='-Wl,' ++ # PIC (with -KPIC) is the default. ++ lt_prog_compiler_static_FC='-non_shared' ++ ;; ++ ++ linux* | k*bsd*-gnu) ++ case $cc_basename in ++ # old Intel for x86_64 which still supported -KPIC. ++ ecc*) ++ lt_prog_compiler_wl_FC='-Wl,' ++ lt_prog_compiler_pic_FC='-KPIC' ++ lt_prog_compiler_static_FC='-static' ++ ;; ++ # icc used to be incompatible with GCC. ++ # ICC 10 doesn't accept -KPIC any more. ++ icc* | ifort*) ++ lt_prog_compiler_wl_FC='-Wl,' ++ lt_prog_compiler_pic_FC='-fPIC' ++ lt_prog_compiler_static_FC='-static' ++ ;; ++ # Lahey Fortran 8.1. ++ lf95*) ++ lt_prog_compiler_wl_FC='-Wl,' ++ lt_prog_compiler_pic_FC='--shared' ++ lt_prog_compiler_static_FC='--static' ++ ;; ++ pgcc* | pgf77* | pgf90* | pgf95*) ++ # Portland Group compilers (*not* the Pentium gcc compiler, ++ # which looks to be a dead project) ++ lt_prog_compiler_wl_FC='-Wl,' ++ lt_prog_compiler_pic_FC='-fpic' ++ lt_prog_compiler_static_FC='-Bstatic' ++ ;; ++ ccc*) ++ lt_prog_compiler_wl_FC='-Wl,' ++ # All Alpha code is PIC. ++ lt_prog_compiler_static_FC='-non_shared' ++ ;; ++ xl*) ++ # IBM XL C 8.0/Fortran 10.1 on PPC ++ lt_prog_compiler_wl_FC='-Wl,' ++ lt_prog_compiler_pic_FC='-qpic' ++ lt_prog_compiler_static_FC='-qstaticlink' ++ ;; ++ *) ++ case `$CC -V 2>&1 | sed 5q` in ++ *Sun\ F* | *Sun*Fortran*) ++ # Sun Fortran 8.3 passes all unrecognized flags to the linker ++ lt_prog_compiler_pic_FC='-KPIC' ++ lt_prog_compiler_static_FC='-Bstatic' ++ lt_prog_compiler_wl_FC='' ++ ;; ++ *Sun\ C*) ++ # Sun C 5.9 ++ lt_prog_compiler_pic_FC='-KPIC' ++ lt_prog_compiler_static_FC='-Bstatic' ++ lt_prog_compiler_wl_FC='-Wl,' ++ ;; ++ esac ++ ;; ++ esac ++ ;; ++ ++ newsos6) ++ lt_prog_compiler_pic_FC='-KPIC' ++ lt_prog_compiler_static_FC='-Bstatic' ++ ;; ++ ++ *nto* | *qnx*) ++ # QNX uses GNU C++, but need to define -shared option too, otherwise ++ # it will coredump. ++ lt_prog_compiler_pic_FC='-fPIC -shared' ++ ;; ++ ++ osf3* | osf4* | osf5*) ++ lt_prog_compiler_wl_FC='-Wl,' ++ # All OSF/1 code is PIC. ++ lt_prog_compiler_static_FC='-non_shared' ++ ;; ++ ++ rdos*) ++ lt_prog_compiler_static_FC='-non_shared' ++ ;; ++ ++ solaris*) ++ lt_prog_compiler_pic_FC='-KPIC' ++ lt_prog_compiler_static_FC='-Bstatic' ++ case $cc_basename in ++ f77* | f90* | f95*) ++ lt_prog_compiler_wl_FC='-Qoption ld ';; ++ *) ++ lt_prog_compiler_wl_FC='-Wl,';; ++ esac ++ ;; ++ ++ sunos4*) ++ lt_prog_compiler_wl_FC='-Qoption ld ' ++ lt_prog_compiler_pic_FC='-PIC' ++ lt_prog_compiler_static_FC='-Bstatic' ++ ;; ++ ++ sysv4 | sysv4.2uw2* | sysv4.3*) ++ lt_prog_compiler_wl_FC='-Wl,' ++ lt_prog_compiler_pic_FC='-KPIC' ++ lt_prog_compiler_static_FC='-Bstatic' ++ ;; ++ ++ sysv4*MP*) ++ if test -d /usr/nec ;then ++ lt_prog_compiler_pic_FC='-Kconform_pic' ++ lt_prog_compiler_static_FC='-Bstatic' ++ fi ++ ;; ++ ++ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) ++ lt_prog_compiler_wl_FC='-Wl,' ++ lt_prog_compiler_pic_FC='-KPIC' ++ lt_prog_compiler_static_FC='-Bstatic' ++ ;; ++ ++ unicos*) ++ lt_prog_compiler_wl_FC='-Wl,' ++ lt_prog_compiler_can_build_shared_FC=no ++ ;; ++ ++ uts4*) ++ lt_prog_compiler_pic_FC='-pic' ++ lt_prog_compiler_static_FC='-Bstatic' ++ ;; ++ ++ *) ++ lt_prog_compiler_can_build_shared_FC=no ++ ;; ++ esac ++ fi ++ ++case $host_os in ++ # For platforms which do not support PIC, -DPIC is meaningless: ++ *djgpp*) ++ lt_prog_compiler_pic_FC= ++ ;; ++ *) ++ lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC@&t@" ++ ;; ++esac ++{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5 ++echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6; } ++ ++ ++ ++# ++# Check to make sure the PIC flag actually works. ++# ++if test -n "$lt_prog_compiler_pic_FC"; then ++ { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 ++echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_pic_works_FC=no ++ ac_outfile=conftest.$ac_objext ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ lt_compiler_flag="$lt_prog_compiler_pic_FC@&t@" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ # The option is referenced via a variable to avoid confusing sed. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>conftest.err) ++ ac_status=$? ++ cat conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s "$ac_outfile"; then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings other than the usual output. ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp ++ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 ++ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_pic_works_FC=yes ++ fi ++ fi ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_FC" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_FC" >&6; } ++ ++if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then ++ case $lt_prog_compiler_pic_FC in ++ "" | " "*) ;; ++ *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; ++ esac ++else ++ lt_prog_compiler_pic_FC= ++ lt_prog_compiler_can_build_shared_FC=no ++fi ++ ++fi ++ ++ ++ ++# ++# Check to make sure the static flag actually works. ++# ++wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" ++{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 ++echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_static_works_FC=no ++ save_LDFLAGS="$LDFLAGS" ++ LDFLAGS="$LDFLAGS $lt_tmp_static_flag" ++ echo "$lt_simple_link_test_code" > conftest.$ac_ext ++ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then ++ # The linker can only warn and ignore the option if not recognized ++ # So say no if there are warnings ++ if test -s conftest.err; then ++ # Append any errors to the config.log. ++ cat conftest.err 1>&5 ++ $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp ++ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 ++ if diff conftest.exp conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_static_works_FC=yes ++ fi ++ else ++ lt_cv_prog_compiler_static_works_FC=yes ++ fi ++ fi ++ $RM -r conftest* ++ LDFLAGS="$save_LDFLAGS" ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_FC" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_static_works_FC" >&6; } ++ ++if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then ++ : ++else ++ lt_prog_compiler_static_FC= ++fi ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 ++echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_c_o_FC=no ++ $RM -r conftest 2>/dev/null ++ mkdir conftest ++ cd conftest ++ mkdir out ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ ++ lt_compiler_flag="-o out/conftest2.$ac_objext" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>out/conftest.err) ++ ac_status=$? ++ cat out/conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s out/conftest2.$ac_objext ++ then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp ++ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 ++ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_c_o_FC=yes ++ fi ++ fi ++ chmod u+w . 2>&5 ++ $RM conftest* ++ # SGI C++ compiler will create directory out/ii_files/ for ++ # template instantiation ++ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files ++ $RM out/* && rmdir out ++ cd .. ++ $RM -r conftest ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6; } ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 ++echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_c_o_FC=no ++ $RM -r conftest 2>/dev/null ++ mkdir conftest ++ cd conftest ++ mkdir out ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ ++ lt_compiler_flag="-o out/conftest2.$ac_objext" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>out/conftest.err) ++ ac_status=$? ++ cat out/conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s out/conftest2.$ac_objext ++ then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp ++ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 ++ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_c_o_FC=yes ++ fi ++ fi ++ chmod u+w . 2>&5 ++ $RM conftest* ++ # SGI C++ compiler will create directory out/ii_files/ for ++ # template instantiation ++ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files ++ $RM out/* && rmdir out ++ cd .. ++ $RM -r conftest ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6; } ++ ++ ++ ++ ++hard_links="nottested" ++if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then ++ # do not overwrite the value of need_locks provided by the user ++ { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 ++echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } ++ hard_links=yes ++ $RM conftest* ++ ln conftest.a conftest.b 2>/dev/null && hard_links=no ++ touch conftest.a ++ ln conftest.a conftest.b 2>&5 || hard_links=no ++ ln conftest.a conftest.b 2>/dev/null && hard_links=no ++ { echo "$as_me:$LINENO: result: $hard_links" >&5 ++echo "${ECHO_T}$hard_links" >&6; } ++ if test "$hard_links" = no; then ++ { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 ++echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} ++ need_locks=warn ++ fi ++else ++ need_locks=no ++fi ++ ++ ++ ++ { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 ++echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } ++ ++ runpath_var= ++ allow_undefined_flag_FC= ++ always_export_symbols_FC=no ++ archive_cmds_FC= ++ archive_expsym_cmds_FC= ++ compiler_needs_object_FC=no ++ enable_shared_with_static_runtimes_FC=no ++ export_dynamic_flag_spec_FC= ++ export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ++ hardcode_automatic_FC=no ++ hardcode_direct_FC=no ++ hardcode_direct_absolute_FC=no ++ hardcode_libdir_flag_spec_FC= ++ hardcode_libdir_flag_spec_ld_FC= ++ hardcode_libdir_separator_FC= ++ hardcode_minus_L_FC=no ++ hardcode_shlibpath_var_FC=unsupported ++ inherit_rpath_FC=no ++ link_all_deplibs_FC=unknown ++ module_cmds_FC= ++ module_expsym_cmds_FC= ++ old_archive_from_new_cmds_FC= ++ old_archive_from_expsyms_cmds_FC= ++ thread_safe_flag_spec_FC= ++ whole_archive_flag_spec_FC= ++ # include_expsyms should be a list of space-separated symbols to be *always* ++ # included in the symbol list ++ include_expsyms_FC= ++ # exclude_expsyms can be an extended regexp of symbols to exclude ++ # it will be wrapped by ` (' and `)$', so one must not match beginning or ++ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', ++ # as well as any symbol that contains `d'. ++ exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' ++ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out ++ # platforms (ab)use it in PIC code, but their linkers get confused if ++ # the symbol is explicitly referenced. Since portable code cannot ++ # rely on this symbol name, it's probably fine to never include it in ++ # preloaded symbol tables. ++ # Exclude shared library initialization/finalization symbols. ++ extract_expsyms_cmds= ++ ++ case $host_os in ++ cygwin* | mingw* | pw32* | cegcc*) ++ # FIXME: the MSVC++ port hasn't been tested in a loooong time ++ # When not using gcc, we currently assume that we are using ++ # Microsoft Visual C++. ++ if test "$GCC" != yes; then ++ with_gnu_ld=no ++ fi ++ ;; ++ interix*) ++ # we just hope/assume this is gcc and not c89 (= MSVC++) ++ with_gnu_ld=yes ++ ;; ++ openbsd*) ++ with_gnu_ld=no ++ ;; ++ esac ++ ++ ld_shlibs_FC=yes ++ if test "$with_gnu_ld" = yes; then ++ # If archive_cmds runs LD, not CC, wlarc should be empty ++ wlarc='${wl}' ++ ++ # Set some defaults for GNU ld with shared library support. These ++ # are reset later if shared libraries are not supported. Putting them ++ # here allows them to be overridden if necessary. ++ runpath_var=LD_RUN_PATH ++ hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' ++ export_dynamic_flag_spec_FC='${wl}--export-dynamic' ++ # ancient GNU ld didn't support --whole-archive et. al. ++ if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then ++ whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' ++ else ++ whole_archive_flag_spec_FC= ++ fi ++ supports_anon_versioning=no ++ case `$LD -v 2>&1` in ++ *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 ++ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... ++ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... ++ *\ 2.11.*) ;; # other 2.11 versions ++ *) supports_anon_versioning=yes ;; ++ esac ++ ++ # See if GNU ld supports shared libraries. ++ case $host_os in ++ aix[3-9]*) ++ # On AIX/PPC, the GNU linker is very broken ++ if test "$host_cpu" != ia64; then ++ ld_shlibs_FC=no ++ cat <<_LT_EOF 1>&2 ++ ++*** Warning: the GNU linker, at least up to release 2.9.1, is reported ++*** to be unable to reliably create shared libraries on AIX. ++*** Therefore, libtool is disabling shared libraries support. If you ++*** really care for shared libraries, you may want to modify your PATH ++*** so that a non-GNU linker is found, and then restart. ++ ++_LT_EOF ++ fi ++ ;; ++ ++ amigaos*) ++ case $host_cpu in ++ powerpc) ++ # see comment about AmigaOS4 .so support ++ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_FC='' ++ ;; ++ m68k) ++ archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' ++ hardcode_libdir_flag_spec_FC='-L$libdir' ++ hardcode_minus_L_FC=yes ++ ;; ++ esac ++ ;; ++ ++ beos*) ++ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ allow_undefined_flag_FC=unsupported ++ # Joseph Beckenbach says some releases of gcc ++ # support --undefined. This deserves some investigation. FIXME ++ archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ else ++ ld_shlibs_FC=no ++ fi ++ ;; ++ ++ cygwin* | mingw* | pw32* | cegcc*) ++ # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, ++ # as there is no search path for DLLs. ++ hardcode_libdir_flag_spec_FC='-L$libdir' ++ allow_undefined_flag_FC=unsupported ++ always_export_symbols_FC=no ++ enable_shared_with_static_runtimes_FC=yes ++ export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' ++ ++ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then ++ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' ++ # If the export-symbols file already is a .def file (1st line ++ # is EXPORTS), use it as is; otherwise, prepend... ++ archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then ++ cp $export_symbols $output_objdir/$soname.def; ++ else ++ echo EXPORTS > $output_objdir/$soname.def; ++ cat $export_symbols >> $output_objdir/$soname.def; ++ fi~ ++ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' ++ else ++ ld_shlibs_FC=no ++ fi ++ ;; ++ ++ interix[3-9]*) ++ hardcode_direct_FC=no ++ hardcode_shlibpath_var_FC=no ++ hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' ++ export_dynamic_flag_spec_FC='${wl}-E' ++ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. ++ # Instead, shared libraries are loaded at an image base (0x10000000 by ++ # default) and relocated if they conflict, which is a slow very memory ++ # consuming and fragmenting process. To avoid this, we pick a random, ++ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link ++ # time. Moving up from 0x10000000 also allows more sbrk(2) space. ++ archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ++ archive_expsym_cmds_FC='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ++ ;; ++ ++ gnu* | linux* | tpf* | k*bsd*-gnu) ++ tmp_diet=no ++ if test "$host_os" = linux-dietlibc; then ++ case $cc_basename in ++ diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) ++ esac ++ fi ++ if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ ++ && test "$tmp_diet" = no ++ then ++ tmp_addflag= ++ tmp_sharedflag='-shared' ++ case $cc_basename,$host_cpu in ++ pgcc*) # Portland Group C compiler ++ whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ++ tmp_addflag=' $pic_flag' ++ ;; ++ pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers ++ whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ++ tmp_addflag=' $pic_flag -Mnomain' ;; ++ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 ++ tmp_addflag=' -i_dynamic' ;; ++ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 ++ tmp_addflag=' -i_dynamic -nofor_main' ;; ++ ifc* | ifort*) # Intel Fortran compiler ++ tmp_addflag=' -nofor_main' ;; ++ lf95*) # Lahey Fortran 8.1 ++ whole_archive_flag_spec_FC= ++ tmp_sharedflag='--shared' ;; ++ xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) ++ tmp_sharedflag='-qmkshrobj' ++ tmp_addflag= ;; ++ esac ++ case `$CC -V 2>&1 | sed 5q` in ++ *Sun\ C*) # Sun C 5.9 ++ whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ++ compiler_needs_object_FC=yes ++ tmp_sharedflag='-G' ;; ++ *Sun\ F*) # Sun Fortran 8.3 ++ tmp_sharedflag='-G' ;; ++ esac ++ archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ ++ if test "x$supports_anon_versioning" = xyes; then ++ archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ ++ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ ++ echo "local: *; };" >> $output_objdir/$libname.ver~ ++ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' ++ fi ++ ++ case $cc_basename in ++ xlf*) ++ # IBM XL Fortran 10.1 on PPC cannot create shared libs itself ++ whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' ++ hardcode_libdir_flag_spec_FC= ++ hardcode_libdir_flag_spec_ld_FC='-rpath $libdir' ++ archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' ++ if test "x$supports_anon_versioning" = xyes; then ++ archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ ++ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ ++ echo "local: *; };" >> $output_objdir/$libname.ver~ ++ $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' ++ fi ++ ;; ++ esac ++ else ++ ld_shlibs_FC=no ++ fi ++ ;; ++ ++ netbsd*) ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then ++ archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' ++ wlarc= ++ else ++ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ fi ++ ;; ++ ++ solaris*) ++ if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ++ ld_shlibs_FC=no ++ cat <<_LT_EOF 1>&2 ++ ++*** Warning: The releases 2.8.* of the GNU linker cannot reliably ++*** create shared libraries on Solaris systems. Therefore, libtool ++*** is disabling shared libraries support. We urge you to upgrade GNU ++*** binutils to release 2.9.1 or newer. Another option is to modify ++*** your PATH or compiler configuration so that the native linker is ++*** used, and then restart. ++ ++_LT_EOF ++ elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ else ++ ld_shlibs_FC=no ++ fi ++ ;; ++ ++ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) ++ case `$LD -v 2>&1` in ++ *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ++ ld_shlibs_FC=no ++ cat <<_LT_EOF 1>&2 ++ ++*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not ++*** reliably create shared libraries on SCO systems. Therefore, libtool ++*** is disabling shared libraries support. We urge you to upgrade GNU ++*** binutils to release 2.16.91.0.3 or newer. Another option is to modify ++*** your PATH or compiler configuration so that the native linker is ++*** used, and then restart. ++ ++_LT_EOF ++ ;; ++ *) ++ # For security reasons, it is highly recommended that you always ++ # use absolute paths for naming shared libraries, and exclude the ++ # DT_RUNPATH tag from executables and libraries. But doing so ++ # requires that you compile everything twice, which is a pain. ++ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' ++ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ else ++ ld_shlibs_FC=no ++ fi ++ ;; ++ esac ++ ;; ++ ++ sunos4*) ++ archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' ++ wlarc= ++ hardcode_direct_FC=yes ++ hardcode_shlibpath_var_FC=no ++ ;; ++ ++ *) ++ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ else ++ ld_shlibs_FC=no ++ fi ++ ;; ++ esac ++ ++ if test "$ld_shlibs_FC" = no; then ++ runpath_var= ++ hardcode_libdir_flag_spec_FC= ++ export_dynamic_flag_spec_FC= ++ whole_archive_flag_spec_FC= ++ fi ++ else ++ # PORTME fill in a description of your system's linker (not GNU ld) ++ case $host_os in ++ aix3*) ++ allow_undefined_flag_FC=unsupported ++ always_export_symbols_FC=yes ++ archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' ++ # Note: this linker hardcodes the directories in LIBPATH if there ++ # are no directories specified by -L. ++ hardcode_minus_L_FC=yes ++ if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then ++ # Neither direct hardcoding nor static linking is supported with a ++ # broken collect2. ++ hardcode_direct_FC=unsupported ++ fi ++ ;; ++ ++ aix[4-9]*) ++ if test "$host_cpu" = ia64; then ++ # On IA64, the linker does run time linking by default, so we don't ++ # have to do anything special. ++ aix_use_runtimelinking=no ++ exp_sym_flag='-Bexport' ++ no_entry_flag="" ++ else ++ # If we're using GNU nm, then we don't want the "-C" option. ++ # -C means demangle to AIX nm, but means don't demangle with GNU nm ++ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then ++ export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' ++ else ++ export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' ++ fi ++ aix_use_runtimelinking=no ++ ++ # Test if we are trying to use run time linking or normal ++ # AIX style linking. If -brtl is somewhere in LDFLAGS, we ++ # need to do runtime linking. ++ case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) ++ for ld_flag in $LDFLAGS; do ++ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then ++ aix_use_runtimelinking=yes ++ break ++ fi ++ done ++ ;; ++ esac ++ ++ exp_sym_flag='-bexport' ++ no_entry_flag='-bnoentry' ++ fi ++ ++ # When large executables or shared objects are built, AIX ld can ++ # have problems creating the table of contents. If linking a library ++ # or program results in "error TOC overflow" add -mminimal-toc to ++ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not ++ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. ++ ++ archive_cmds_FC='' ++ hardcode_direct_FC=yes ++ hardcode_direct_absolute_FC=yes ++ hardcode_libdir_separator_FC=':' ++ link_all_deplibs_FC=yes ++ file_list_spec_FC='${wl}-f,' ++ ++ if test "$GCC" = yes; then ++ case $host_os in aix4.[012]|aix4.[012].*) ++ # We only want to do this on AIX 4.2 and lower, the check ++ # below for broken collect2 doesn't work under 4.3+ ++ collect2name=`${CC} -print-prog-name=collect2` ++ if test -f "$collect2name" && ++ strings "$collect2name" | $GREP resolve_lib_name >/dev/null ++ then ++ # We have reworked collect2 ++ : ++ else ++ # We have old collect2 ++ hardcode_direct_FC=unsupported ++ # It fails to find uninstalled libraries when the uninstalled ++ # path is not listed in the libpath. Setting hardcode_minus_L ++ # to unsupported forces relinking ++ hardcode_minus_L_FC=yes ++ hardcode_libdir_flag_spec_FC='-L$libdir' ++ hardcode_libdir_separator_FC= ++ fi ++ ;; ++ esac ++ shared_flag='-shared' ++ if test "$aix_use_runtimelinking" = yes; then ++ shared_flag="$shared_flag "'${wl}-G' ++ fi ++ else ++ # not using gcc ++ if test "$host_cpu" = ia64; then ++ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release ++ # chokes on -Wl,-G. The following line is correct: ++ shared_flag='-G' ++ else ++ if test "$aix_use_runtimelinking" = yes; then ++ shared_flag='${wl}-G' ++ else ++ shared_flag='${wl}-bM:SRE' ++ fi ++ fi ++ fi ++ ++ export_dynamic_flag_spec_FC='${wl}-bexpall' ++ # It seems that -bexpall does not export symbols beginning with ++ # underscore (_), so it is better to generate a list of symbols to export. ++ always_export_symbols_FC=yes ++ if test "$aix_use_runtimelinking" = yes; then ++ # Warning - without using the other runtime loading flags (-brtl), ++ # -berok will link without error, but may produce a broken library. ++ allow_undefined_flag_FC='-berok' ++ # Determine the default libpath from the value encoded in an ++ # empty executable. ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ++lt_aix_libpath_sed=' ++ /Import File Strings/,/^$/ { ++ /^0/ { ++ s/^0 *\(.*\)$/\1/ ++ p ++ } ++ }' ++aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++# Check for a 64-bit object if we didn't find anything. ++if test -z "$aix_libpath"; then ++ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++fi ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ++ ++ hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" ++ archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" ++ else ++ if test "$host_cpu" = ia64; then ++ hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' ++ allow_undefined_flag_FC="-z nodefs" ++ archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" ++ else ++ # Determine the default libpath from the value encoded in an ++ # empty executable. ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ++lt_aix_libpath_sed=' ++ /Import File Strings/,/^$/ { ++ /^0/ { ++ s/^0 *\(.*\)$/\1/ ++ p ++ } ++ }' ++aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++# Check for a 64-bit object if we didn't find anything. ++if test -z "$aix_libpath"; then ++ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++fi ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ++ ++ hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" ++ # Warning - without using the other run time loading flags, ++ # -berok will link without error, but may produce a broken library. ++ no_undefined_flag_FC=' ${wl}-bernotok' ++ allow_undefined_flag_FC=' ${wl}-berok' ++ # Exported symbols can be pulled into shared objects from archives ++ whole_archive_flag_spec_FC='$convenience' ++ archive_cmds_need_lc_FC=yes ++ # This is similar to how AIX traditionally builds its shared libraries. ++ archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' ++ fi ++ fi ++ ;; ++ ++ amigaos*) ++ case $host_cpu in ++ powerpc) ++ # see comment about AmigaOS4 .so support ++ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_FC='' ++ ;; ++ m68k) ++ archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' ++ hardcode_libdir_flag_spec_FC='-L$libdir' ++ hardcode_minus_L_FC=yes ++ ;; ++ esac ++ ;; ++ ++ bsdi[45]*) ++ export_dynamic_flag_spec_FC=-rdynamic ++ ;; ++ ++ cygwin* | mingw* | pw32* | cegcc*) ++ # When not using gcc, we currently assume that we are using ++ # Microsoft Visual C++. ++ # hardcode_libdir_flag_spec is actually meaningless, as there is ++ # no search path for DLLs. ++ hardcode_libdir_flag_spec_FC=' ' ++ allow_undefined_flag_FC=unsupported ++ # Tell ltmain to make .lib files, not .a files. ++ libext=lib ++ # Tell ltmain to make .dll files, not .so files. ++ shrext_cmds=".dll" ++ # FIXME: Setting linknames here is a bad hack. ++ archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' ++ # The linker will automatically build a .lib file if we build a DLL. ++ old_archive_from_new_cmds_FC='true' ++ # FIXME: Should let the user specify the lib program. ++ old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' ++ fix_srcfile_path_FC='`cygpath -w "$srcfile"`' ++ enable_shared_with_static_runtimes_FC=yes ++ ;; ++ ++ darwin* | rhapsody*) ++ ++ ++ archive_cmds_need_lc_FC=no ++ hardcode_direct_FC=no ++ hardcode_automatic_FC=yes ++ hardcode_shlibpath_var_FC=unsupported ++ whole_archive_flag_spec_FC='' ++ link_all_deplibs_FC=yes ++ allow_undefined_flag_FC="$_lt_dar_allow_undefined" ++ case $cc_basename in ++ ifort*) _lt_dar_can_shared=yes ;; ++ *) _lt_dar_can_shared=$GCC ;; ++ esac ++ if test "$_lt_dar_can_shared" = "yes"; then ++ output_verbose_link_cmd=echo ++ archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" ++ module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" ++ archive_expsym_cmds_FC="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" ++ module_expsym_cmds_FC="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" ++ ++ else ++ ld_shlibs_FC=no ++ fi ++ ++ ;; ++ ++ dgux*) ++ archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_libdir_flag_spec_FC='-L$libdir' ++ hardcode_shlibpath_var_FC=no ++ ;; ++ ++ freebsd1*) ++ ld_shlibs_FC=no ++ ;; ++ ++ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor ++ # support. Future versions do this automatically, but an explicit c++rt0.o ++ # does not break anything, and helps significantly (at the cost of a little ++ # extra space). ++ freebsd2.2*) ++ archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' ++ hardcode_libdir_flag_spec_FC='-R$libdir' ++ hardcode_direct_FC=yes ++ hardcode_shlibpath_var_FC=no ++ ;; ++ ++ # Unfortunately, older versions of FreeBSD 2 do not have this feature. ++ freebsd2*) ++ archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_direct_FC=yes ++ hardcode_minus_L_FC=yes ++ hardcode_shlibpath_var_FC=no ++ ;; ++ ++ # FreeBSD 3 and greater uses gcc -shared to do shared libraries. ++ freebsd* | dragonfly*) ++ archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' ++ hardcode_libdir_flag_spec_FC='-R$libdir' ++ hardcode_direct_FC=yes ++ hardcode_shlibpath_var_FC=no ++ ;; ++ ++ hpux9*) ++ if test "$GCC" = yes; then ++ archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ++ else ++ archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ++ fi ++ hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' ++ hardcode_libdir_separator_FC=: ++ hardcode_direct_FC=yes ++ ++ # hardcode_minus_L: Not really in the search PATH, ++ # but as the default location of the library. ++ hardcode_minus_L_FC=yes ++ export_dynamic_flag_spec_FC='${wl}-E' ++ ;; ++ ++ hpux10*) ++ if test "$GCC" = yes -a "$with_gnu_ld" = no; then ++ archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ++ else ++ archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ++ fi ++ if test "$with_gnu_ld" = no; then ++ hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' ++ hardcode_libdir_flag_spec_ld_FC='+b $libdir' ++ hardcode_libdir_separator_FC=: ++ hardcode_direct_FC=yes ++ hardcode_direct_absolute_FC=yes ++ export_dynamic_flag_spec_FC='${wl}-E' ++ # hardcode_minus_L: Not really in the search PATH, ++ # but as the default location of the library. ++ hardcode_minus_L_FC=yes ++ fi ++ ;; ++ ++ hpux11*) ++ if test "$GCC" = yes -a "$with_gnu_ld" = no; then ++ case $host_cpu in ++ hppa*64*) ++ archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ ia64*) ++ archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ *) ++ archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ esac ++ else ++ case $host_cpu in ++ hppa*64*) ++ archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ ia64*) ++ archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ *) ++ archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ esac ++ fi ++ if test "$with_gnu_ld" = no; then ++ hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' ++ hardcode_libdir_separator_FC=: ++ ++ case $host_cpu in ++ hppa*64*|ia64*) ++ hardcode_direct_FC=no ++ hardcode_shlibpath_var_FC=no ++ ;; ++ *) ++ hardcode_direct_FC=yes ++ hardcode_direct_absolute_FC=yes ++ export_dynamic_flag_spec_FC='${wl}-E' ++ ++ # hardcode_minus_L: Not really in the search PATH, ++ # but as the default location of the library. ++ hardcode_minus_L_FC=yes ++ ;; ++ esac ++ fi ++ ;; ++ ++ irix5* | irix6* | nonstopux*) ++ if test "$GCC" = yes; then ++ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ++ # Try to use the -exported_symbol ld option, if it does not ++ # work, assume that -exports_file does not work either and ++ # implicitly export all symbols. ++ save_LDFLAGS="$LDFLAGS" ++ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" ++ cat >conftest.$ac_ext <<_ACEOF ++int foo(void) {} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LDFLAGS="$save_LDFLAGS" ++ else ++ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' ++ archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' ++ fi ++ archive_cmds_need_lc_FC='no' ++ hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' ++ hardcode_libdir_separator_FC=: ++ inherit_rpath_FC=yes ++ link_all_deplibs_FC=yes ++ ;; ++ ++ netbsd*) ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then ++ archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out ++ else ++ archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF ++ fi ++ hardcode_libdir_flag_spec_FC='-R$libdir' ++ hardcode_direct_FC=yes ++ hardcode_shlibpath_var_FC=no ++ ;; ++ ++ newsos6) ++ archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_direct_FC=yes ++ hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' ++ hardcode_libdir_separator_FC=: ++ hardcode_shlibpath_var_FC=no ++ ;; ++ ++ *nto* | *qnx*) ++ ;; ++ ++ openbsd*) ++ if test -f /usr/libexec/ld.so; then ++ hardcode_direct_FC=yes ++ hardcode_shlibpath_var_FC=no ++ hardcode_direct_absolute_FC=yes ++ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ++ archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' ++ hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' ++ export_dynamic_flag_spec_FC='${wl}-E' ++ else ++ case $host_os in ++ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) ++ archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_libdir_flag_spec_FC='-R$libdir' ++ ;; ++ *) ++ archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ++ hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' ++ ;; ++ esac ++ fi ++ else ++ ld_shlibs_FC=no ++ fi ++ ;; ++ ++ os2*) ++ hardcode_libdir_flag_spec_FC='-L$libdir' ++ hardcode_minus_L_FC=yes ++ allow_undefined_flag_FC=unsupported ++ archive_cmds_FC='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' ++ old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ++ ;; ++ ++ osf3*) ++ if test "$GCC" = yes; then ++ allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' ++ archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ++ else ++ allow_undefined_flag_FC=' -expect_unresolved \*' ++ archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' ++ fi ++ archive_cmds_need_lc_FC='no' ++ hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' ++ hardcode_libdir_separator_FC=: ++ ;; ++ ++ osf4* | osf5*) # as osf3* with the addition of -msym flag ++ if test "$GCC" = yes; then ++ allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' ++ archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ++ hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' ++ else ++ allow_undefined_flag_FC=' -expect_unresolved \*' ++ archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' ++ archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ ++ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' ++ ++ # Both c and cxx compiler support -rpath directly ++ hardcode_libdir_flag_spec_FC='-rpath $libdir' ++ fi ++ archive_cmds_need_lc_FC='no' ++ hardcode_libdir_separator_FC=: ++ ;; ++ ++ solaris*) ++ no_undefined_flag_FC=' -z defs' ++ if test "$GCC" = yes; then ++ wlarc='${wl}' ++ archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ ++ $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ++ else ++ case `$CC -V 2>&1` in ++ *"Compilers 5.0"*) ++ wlarc='' ++ archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ ++ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ++ ;; ++ *) ++ wlarc='${wl}' ++ archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ ++ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ++ ;; ++ esac ++ fi ++ hardcode_libdir_flag_spec_FC='-R$libdir' ++ hardcode_shlibpath_var_FC=no ++ case $host_os in ++ solaris2.[0-5] | solaris2.[0-5].*) ;; ++ *) ++ # The compiler driver will combine and reorder linker options, ++ # but understands `-z linker_flag'. GCC discards it without `$wl', ++ # but is careful enough not to reorder. ++ # Supported since Solaris 2.6 (maybe 2.5.1?) ++ if test "$GCC" = yes; then ++ whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ++ else ++ whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' ++ fi ++ ;; ++ esac ++ link_all_deplibs_FC=yes ++ ;; ++ ++ sunos4*) ++ if test "x$host_vendor" = xsequent; then ++ # Use $CC to link under sequent, because it throws in some extra .o ++ # files that make .init and .fini sections work. ++ archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' ++ else ++ archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' ++ fi ++ hardcode_libdir_flag_spec_FC='-L$libdir' ++ hardcode_direct_FC=yes ++ hardcode_minus_L_FC=yes ++ hardcode_shlibpath_var_FC=no ++ ;; ++ ++ sysv4) ++ case $host_vendor in ++ sni) ++ archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_direct_FC=yes # is this really true??? ++ ;; ++ siemens) ++ ## LD is ld it makes a PLAMLIB ++ ## CC just makes a GrossModule. ++ archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' ++ reload_cmds_FC='$CC -r -o $output$reload_objs' ++ hardcode_direct_FC=no ++ ;; ++ motorola) ++ archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie ++ ;; ++ esac ++ runpath_var='LD_RUN_PATH' ++ hardcode_shlibpath_var_FC=no ++ ;; ++ ++ sysv4.3*) ++ archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_shlibpath_var_FC=no ++ export_dynamic_flag_spec_FC='-Bexport' ++ ;; ++ ++ sysv4*MP*) ++ if test -d /usr/nec; then ++ archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_shlibpath_var_FC=no ++ runpath_var=LD_RUN_PATH ++ hardcode_runpath_var=yes ++ ld_shlibs_FC=yes ++ fi ++ ;; ++ ++ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) ++ no_undefined_flag_FC='${wl}-z,text' ++ archive_cmds_need_lc_FC=no ++ hardcode_shlibpath_var_FC=no ++ runpath_var='LD_RUN_PATH' ++ ++ if test "$GCC" = yes; then ++ archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ else ++ archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ fi ++ ;; ++ ++ sysv5* | sco3.2v5* | sco5v6*) ++ # Note: We can NOT use -z defs as we might desire, because we do not ++ # link with -lc, and that would cause any symbols used from libc to ++ # always be unresolved, which means just about no library would ++ # ever link correctly. If we're not using GNU ld we use -z text ++ # though, which does catch some bad symbols but isn't as heavy-handed ++ # as -z defs. ++ no_undefined_flag_FC='${wl}-z,text' ++ allow_undefined_flag_FC='${wl}-z,nodefs' ++ archive_cmds_need_lc_FC=no ++ hardcode_shlibpath_var_FC=no ++ hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' ++ hardcode_libdir_separator_FC=':' ++ link_all_deplibs_FC=yes ++ export_dynamic_flag_spec_FC='${wl}-Bexport' ++ runpath_var='LD_RUN_PATH' ++ ++ if test "$GCC" = yes; then ++ archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ else ++ archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ fi ++ ;; ++ ++ uts4*) ++ archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_libdir_flag_spec_FC='-L$libdir' ++ hardcode_shlibpath_var_FC=no ++ ;; ++ ++ *) ++ ld_shlibs_FC=no ++ ;; ++ esac ++ ++ if test x$host_vendor = xsni; then ++ case $host in ++ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ++ export_dynamic_flag_spec_FC='${wl}-Blargedynsym' ++ ;; ++ esac ++ fi ++ fi ++ ++{ echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5 ++echo "${ECHO_T}$ld_shlibs_FC" >&6; } ++test "$ld_shlibs_FC" = no && can_build_shared=no ++ ++with_gnu_ld_FC=$with_gnu_ld ++ ++ ++ ++ ++ ++ ++# ++# Do we need to explicitly link libc? ++# ++case "x$archive_cmds_need_lc_FC" in ++x|xyes) ++ # Assume -lc should be added ++ archive_cmds_need_lc_FC=yes ++ ++ if test "$enable_shared" = yes && test "$GCC" = yes; then ++ case $archive_cmds_FC in ++ *'~'*) ++ # FIXME: we may have to deal with multi-command sequences. ++ ;; ++ '$CC '*) ++ # Test whether the compiler implicitly links with -lc since on some ++ # systems, -lgcc has to come before -lc. If gcc already passes -lc ++ # to ld, don't add -lc before -lgcc. ++ { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 ++echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } ++ $RM conftest* ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ ++ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } 2>conftest.err; then ++ soname=conftest ++ lib=conftest ++ libobjs=conftest.$ac_objext ++ deplibs= ++ wl=$lt_prog_compiler_wl_FC ++ pic_flag=$lt_prog_compiler_pic_FC ++ compiler_flags=-v ++ linker_flags=-v ++ verstring= ++ output_objdir=. ++ libname=conftest ++ lt_save_allow_undefined_flag=$allow_undefined_flag_FC ++ allow_undefined_flag_FC= ++ if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 ++ (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++ then ++ archive_cmds_need_lc_FC=no ++ else ++ archive_cmds_need_lc_FC=yes ++ fi ++ allow_undefined_flag_FC=$lt_save_allow_undefined_flag ++ else ++ cat conftest.err 1>&5 ++ fi ++ $RM conftest* ++ { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_FC" >&5 ++echo "${ECHO_T}$archive_cmds_need_lc_FC" >&6; } ++ ;; ++ esac ++ fi ++ ;; ++esac ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 ++echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } ++ ++library_names_spec= ++libname_spec='lib$name' ++soname_spec= ++shrext_cmds=".so" ++postinstall_cmds= ++postuninstall_cmds= ++finish_cmds= ++finish_eval= ++shlibpath_var= ++shlibpath_overrides_runpath=unknown ++version_type=none ++dynamic_linker="$host_os ld.so" ++sys_lib_dlsearch_path_spec="/lib /usr/lib" ++need_lib_prefix=unknown ++hardcode_into_libs=no ++ ++# when you set need_version to no, make sure it does not cause -set_version ++# flags to be left without arguments ++need_version=unknown ++ ++case $host_os in ++aix3*) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' ++ shlibpath_var=LIBPATH ++ ++ # AIX 3 has no versioning support, so we append a major version to the name. ++ soname_spec='${libname}${release}${shared_ext}$major' ++ ;; ++ ++aix[4-9]*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ hardcode_into_libs=yes ++ if test "$host_cpu" = ia64; then ++ # AIX 5 supports IA64 ++ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ else ++ # With GCC up to 2.95.x, collect2 would create an import file ++ # for dependence libraries. The import file would start with ++ # the line `#! .'. This would cause the generated library to ++ # depend on `.', always an invalid library. This was fixed in ++ # development snapshots of GCC prior to 3.0. ++ case $host_os in ++ aix4 | aix4.[01] | aix4.[01].*) ++ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' ++ echo ' yes ' ++ echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then ++ : ++ else ++ can_build_shared=no ++ fi ++ ;; ++ esac ++ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct ++ # soname into executable. Probably we can add versioning support to ++ # collect2, so additional links can be useful in future. ++ if test "$aix_use_runtimelinking" = yes; then ++ # If using run time linking (on AIX 4.2 or later) use lib.so ++ # instead of lib.a to let people know that these are not ++ # typical AIX shared libraries. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ else ++ # We preserve .a as extension for shared libraries through AIX4.2 ++ # and later when we are not doing run time linking. ++ library_names_spec='${libname}${release}.a $libname.a' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ fi ++ shlibpath_var=LIBPATH ++ fi ++ ;; ++ ++amigaos*) ++ case $host_cpu in ++ powerpc) ++ # Since July 2007 AmigaOS4 officially supports .so libraries. ++ # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ ;; ++ m68k) ++ library_names_spec='$libname.ixlibrary $libname.a' ++ # Create ${libname}_ixlibrary.a entries in /sys/libs. ++ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ++ ;; ++ esac ++ ;; ++ ++beos*) ++ library_names_spec='${libname}${shared_ext}' ++ dynamic_linker="$host_os ld.so" ++ shlibpath_var=LIBRARY_PATH ++ ;; ++ ++bsdi[45]*) ++ version_type=linux ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" ++ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" ++ # the default ld.so.conf also contains /usr/contrib/lib and ++ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow ++ # libtool to hard-code these into programs ++ ;; ++ ++cygwin* | mingw* | pw32* | cegcc*) ++ version_type=windows ++ shrext_cmds=".dll" ++ need_version=no ++ need_lib_prefix=no ++ ++ case $GCC,$host_os in ++ yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ library_names_spec='$libname.dll.a' ++ # DLL is installed to $(libdir)/../bin by postinstall_cmds ++ postinstall_cmds='base_file=`basename \${file}`~ ++ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ ++ dldir=$destdir/`dirname \$dlpath`~ ++ test -d \$dldir || mkdir -p \$dldir~ ++ $install_prog $dir/$dlname \$dldir/$dlname~ ++ chmod a+x \$dldir/$dlname~ ++ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then ++ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; ++ fi' ++ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ ++ dlpath=$dir/\$dldll~ ++ $RM \$dlpath' ++ shlibpath_overrides_runpath=yes ++ ++ case $host_os in ++ cygwin*) ++ # Cygwin DLLs use 'cyg' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ++ ;; ++ mingw* | cegcc*) ++ # MinGW DLLs use traditional 'lib' prefix ++ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` ++ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then ++ # It is most probably a Windows format PATH printed by ++ # mingw gcc, but we are running on Cygwin. Gcc prints its search ++ # path with ; separators, and with drive letters. We can handle the ++ # drive letters (cygwin fileutils understands them), so leave them, ++ # especially as we might pass files found there to a mingw objdump, ++ # which wouldn't understand a cygwinified path. Ahh. ++ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` ++ else ++ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ++ fi ++ ;; ++ pw32*) ++ # pw32 DLLs use 'pw' prefix rather than 'lib' ++ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ;; ++ esac ++ ;; ++ ++ *) ++ library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ++ ;; ++ esac ++ dynamic_linker='Win32 ld.exe' ++ # FIXME: first we should search . and the directory the executable is in ++ shlibpath_var=PATH ++ ;; ++ ++darwin* | rhapsody*) ++ dynamic_linker="$host_os dyld" ++ version_type=darwin ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' ++ soname_spec='${libname}${release}${major}$shared_ext' ++ shlibpath_overrides_runpath=yes ++ shlibpath_var=DYLD_LIBRARY_PATH ++ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' ++ ++ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ++ ;; ++ ++dgux*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ ;; ++ ++freebsd1*) ++ dynamic_linker=no ++ ;; ++ ++freebsd* | dragonfly*) ++ # DragonFly does not have aout. When/if they implement a new ++ # versioning mechanism, adjust this. ++ if test -x /usr/bin/objformat; then ++ objformat=`/usr/bin/objformat` ++ else ++ case $host_os in ++ freebsd[123]*) objformat=aout ;; ++ *) objformat=elf ;; ++ esac ++ fi ++ version_type=freebsd-$objformat ++ case $version_type in ++ freebsd-elf*) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' ++ need_version=no ++ need_lib_prefix=no ++ ;; ++ freebsd-*) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' ++ need_version=yes ++ ;; ++ esac ++ shlibpath_var=LD_LIBRARY_PATH ++ case $host_os in ++ freebsd2*) ++ shlibpath_overrides_runpath=yes ++ ;; ++ freebsd3.[01]* | freebsdelf3.[01]*) ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ ;; ++ freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ ++ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ ;; ++ *) # from 4.6 on, and DragonFly ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ ;; ++ esac ++ ;; ++ ++gnu*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ hardcode_into_libs=yes ++ ;; ++ ++hpux9* | hpux10* | hpux11*) ++ # Give a soname corresponding to the major version so that dld.sl refuses to ++ # link against other versions. ++ version_type=sunos ++ need_lib_prefix=no ++ need_version=no ++ case $host_cpu in ++ ia64*) ++ shrext_cmds='.so' ++ hardcode_into_libs=yes ++ dynamic_linker="$host_os dld.so" ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ if test "X$HPUX_IA64_MODE" = X32; then ++ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" ++ else ++ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" ++ fi ++ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ++ ;; ++ hppa*64*) ++ shrext_cmds='.sl' ++ hardcode_into_libs=yes ++ dynamic_linker="$host_os dld.sl" ++ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH ++ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" ++ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ++ ;; ++ *) ++ shrext_cmds='.sl' ++ dynamic_linker="$host_os dld.sl" ++ shlibpath_var=SHLIB_PATH ++ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ ;; ++ esac ++ # HP-UX runs *really* slowly unless shared libraries are mode 555. ++ postinstall_cmds='chmod 555 $lib' ++ ;; ++ ++interix[3-9]*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ ;; ++ ++irix5* | irix6* | nonstopux*) ++ case $host_os in ++ nonstopux*) version_type=nonstopux ;; ++ *) ++ if test "$lt_cv_prog_gnu_ld" = yes; then ++ version_type=linux ++ else ++ version_type=irix ++ fi ;; ++ esac ++ need_lib_prefix=no ++ need_version=no ++ soname_spec='${libname}${release}${shared_ext}$major' ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' ++ case $host_os in ++ irix5* | nonstopux*) ++ libsuff= shlibsuff= ++ ;; ++ *) ++ case $LD in # libtool.m4 will add one of these switches to LD ++ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") ++ libsuff= shlibsuff= libmagic=32-bit;; ++ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") ++ libsuff=32 shlibsuff=N32 libmagic=N32;; ++ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") ++ libsuff=64 shlibsuff=64 libmagic=64-bit;; ++ *) libsuff= shlibsuff= libmagic=never-match;; ++ esac ++ ;; ++ esac ++ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH ++ shlibpath_overrides_runpath=no ++ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" ++ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" ++ hardcode_into_libs=yes ++ ;; ++ ++# No shared lib support for Linux oldld, aout, or coff. ++linux*oldld* | linux*aout* | linux*coff*) ++ dynamic_linker=no ++ ;; ++ ++# This must be Linux ELF. ++linux* | k*bsd*-gnu) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ # Some binutils ld are patched to set DT_RUNPATH ++ save_LDFLAGS=$LDFLAGS ++ save_libdir=$libdir ++ eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ ++ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then ++ shlibpath_overrides_runpath=yes ++fi ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LDFLAGS=$save_LDFLAGS ++ libdir=$save_libdir ++ ++ # This implies no fast_install, which is unacceptable. ++ # Some rework will be needed to allow for fast_install ++ # before this can be enabled. ++ hardcode_into_libs=yes ++ ++ # Append ld.so.conf contents to the search path ++ if test -f /etc/ld.so.conf; then ++ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` ++ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" ++ fi ++ ++ # We used to test for /lib/ld.so.1 and disable shared libraries on ++ # powerpc, because MkLinux only supported shared libraries with the ++ # GNU dynamic linker. Since this was broken with cross compilers, ++ # most powerpc-linux boxes support dynamic linking these days and ++ # people can always --disable-shared, the test was removed, and we ++ # assume the GNU/Linux dynamic linker is in use. ++ dynamic_linker='GNU/Linux ld.so' ++ ;; ++ ++netbsd*) ++ version_type=sunos ++ need_lib_prefix=no ++ need_version=no ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ++ dynamic_linker='NetBSD (a.out) ld.so' ++ else ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ dynamic_linker='NetBSD ld.elf_so' ++ fi ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ ;; ++ ++newsos6) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ ;; ++ ++*nto* | *qnx*) ++ version_type=qnx ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ dynamic_linker='ldqnx.so' ++ ;; ++ ++openbsd*) ++ version_type=sunos ++ sys_lib_dlsearch_path_spec="/usr/lib" ++ need_lib_prefix=no ++ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. ++ case $host_os in ++ openbsd3.3 | openbsd3.3.*) need_version=yes ;; ++ *) need_version=no ;; ++ esac ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ++ case $host_os in ++ openbsd2.[89] | openbsd2.[89].*) ++ shlibpath_overrides_runpath=no ++ ;; ++ *) ++ shlibpath_overrides_runpath=yes ++ ;; ++ esac ++ else ++ shlibpath_overrides_runpath=yes ++ fi ++ ;; ++ ++os2*) ++ libname_spec='$name' ++ shrext_cmds=".dll" ++ need_lib_prefix=no ++ library_names_spec='$libname${shared_ext} $libname.a' ++ dynamic_linker='OS/2 ld.exe' ++ shlibpath_var=LIBPATH ++ ;; ++ ++osf3* | osf4* | osf5*) ++ version_type=osf ++ need_lib_prefix=no ++ need_version=no ++ soname_spec='${libname}${release}${shared_ext}$major' ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" ++ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ++ ;; ++ ++rdos*) ++ dynamic_linker=no ++ ;; ++ ++solaris*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ # ldd complains unless libraries are executable ++ postinstall_cmds='chmod +x $lib' ++ ;; ++ ++sunos4*) ++ version_type=sunos ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ++ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ if test "$with_gnu_ld" = yes; then ++ need_lib_prefix=no ++ fi ++ need_version=yes ++ ;; ++ ++sysv4 | sysv4.3*) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ case $host_vendor in ++ sni) ++ shlibpath_overrides_runpath=no ++ need_lib_prefix=no ++ runpath_var=LD_RUN_PATH ++ ;; ++ siemens) ++ need_lib_prefix=no ++ ;; ++ motorola) ++ need_lib_prefix=no ++ need_version=no ++ shlibpath_overrides_runpath=no ++ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ++ ;; ++ esac ++ ;; ++ ++sysv4*MP*) ++ if test -d /usr/nec ;then ++ version_type=linux ++ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' ++ soname_spec='$libname${shared_ext}.$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ fi ++ ;; ++ ++sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) ++ version_type=freebsd-elf ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ if test "$with_gnu_ld" = yes; then ++ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' ++ else ++ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' ++ case $host_os in ++ sco3.2v5*) ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ++ ;; ++ esac ++ fi ++ sys_lib_dlsearch_path_spec='/usr/lib' ++ ;; ++ ++tpf*) ++ # TPF is a cross-target only. Preferred cross-host = GNU/Linux. ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ ;; ++ ++uts4*) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ ;; ++ ++*) ++ dynamic_linker=no ++ ;; ++esac ++{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 ++echo "${ECHO_T}$dynamic_linker" >&6; } ++test "$dynamic_linker" = no && can_build_shared=no ++ ++variables_saved_for_relink="PATH $shlibpath_var $runpath_var" ++if test "$GCC" = yes; then ++ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" ++fi ++ ++if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then ++ sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" ++fi ++if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then ++ sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 ++echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } ++hardcode_action_FC= ++if test -n "$hardcode_libdir_flag_spec_FC" || ++ test -n "$runpath_var_FC" || ++ test "X$hardcode_automatic_FC" = "Xyes" ; then ++ ++ # We can hardcode non-existent directories. ++ if test "$hardcode_direct_FC" != no && ++ # If the only mechanism to avoid hardcoding is shlibpath_var, we ++ # have to relink, otherwise we might link with an installed library ++ # when we should be linking with a yet-to-be-installed one ++ ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && ++ test "$hardcode_minus_L_FC" != no; then ++ # Linking always hardcodes the temporary library directory. ++ hardcode_action_FC=relink ++ else ++ # We can link without hardcoding, and we can hardcode nonexisting dirs. ++ hardcode_action_FC=immediate ++ fi ++else ++ # We cannot hardcode anything, or else we can only hardcode existing ++ # directories. ++ hardcode_action_FC=unsupported ++fi ++{ echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5 ++echo "${ECHO_T}$hardcode_action_FC" >&6; } ++ ++if test "$hardcode_action_FC" = relink || ++ test "$inherit_rpath_FC" = yes; then ++ # Fast installation is not supported ++ enable_fast_install=no ++elif test "$shlibpath_overrides_runpath" = yes || ++ test "$enable_shared" = no; then ++ # Fast installation is not necessary ++ enable_fast_install=needless ++fi ++ ++ ++ ++ ++ ++ ++ ++ fi # test -n "$compiler" ++ ++ GCC=$lt_save_GCC ++ CC="$lt_save_CC" ++fi # test "$_lt_disable_FC" != yes ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ac_config_commands="$ac_config_commands libtool" ++ ++ ++ ++ ++# Only expand once: ++ ++ ++ ++ ++ompi_show_subtitle "GNU libltdl setup" ++ ++# AC_CONFIG_SUBDIRS appears to be broken for non-gcc compilers (i.e., ++# passing precious variables down to the sub-configure). ++# ++# Note that we also did some magic scripty-foo in autogen.sh to rename ++# the output libtool library "libompi_ltdl", so add -lompi_ltdl here. ++# This is because so many systems have older versions of libltdl ++# installed very early in ld.so's search path; if we installed our own ++# libltdl in some non-standard path (e.g., $HOME/local or even ++# /usr/local), the libltdl in /usr/lib might get found first. And if ++# it's older -- or just not matching the version that we need, Bad ++# Things happen. [sigh] ++# ++# Finally, make libompi_ltdl follow the same shared/static convention ++# that was user for the main OMPI libraries. So manually examine ++# $enable_shared and $enable_static and pass down the corresponding ++# flags. ++ ++if test "$OMPI_ENABLE_DLOPEN_SUPPORT" = "1" ; then ++ ompi_subdir_args="$ompi_subdir_args --enable-ltdl-convenience --disable-ltdl-install" ++ if test "$enable_shared" = "yes"; then ++ ompi_subdir_args="$ompi_subdir_args --enable-shared" ++ else ++ ompi_subdir_args="$ompi_subdir_args --disable-shared" ++ fi ++ if test "$enable_static" = "yes"; then ++ ompi_subdir_args="$ompi_subdir_args --enable-static" ++ else ++ ompi_subdir_args="$ompi_subdir_args --disable-static" ++ fi ++ ++ CFLAGS_save="$CFLAGS" ++ CFLAGS="$OMPI_CFLAGS_BEFORE_PICKY" ++ ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# opal/libltdl is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# HAPPY=1 is actions to execute upon success ++# HAPPY=0 is actions to execute upon failure ++# ++subdir_dir="opal/libltdl" ++subdir_args="$ompi_subdir_args" ++subdir_success="HAPPY=1" ++subdir_failure="HAPPY=0" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ if test "$HAPPY" = "1"; then ++ LIBLTDL_SUBDIR=libltdl ++ ++ CPPFLAGS_save="$CPPFLAGS" ++ CPPFLAGS="-I." ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++_ACEOF ++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ++ $EGREP "lt_dladvise_init" >/dev/null 2>&1; then ++ OPAL_HAVE_LTDL_ADVISE=1 ++else ++ OPAL_HAVE_LTDL_ADVISE=0 ++fi ++rm -f conftest* ++ ++ CPPFLAGS="$CPPFLAGS_save" ++ ++ # Arrgh. This is gross. But I can't think of any other way to do ++ # it. :-( ++ ++ flags=`$EGREP ^LIBADD_DL opal/libltdl/Makefile | cut -d= -f2-` ++ ++# ++# libtool has been created by this point ++# Try to see if it will add any additional flags for dependant libraries ++# ++ ++{ echo "$as_me:$LINENO: checking for libtool-supplied linker flags" >&5 ++echo $ECHO_N "checking for libtool-supplied linker flags... $ECHO_C" >&6; } ++ ++libtool="opal/libltdl/libtool" ++extra_flags="-export-dynamic $flags" ++ ++# Get the directory where libtool lives ++ ++start="`pwd`" ++d="`dirname $libtool`" ++cd "$d" ++libtool="`pwd`/libtool" ++cd "$start" ++unset d start ++ ++# Make a playground to work in ++ ++mkdir conftest.$$ ++cd conftest.$$ ++ ++cat > foo.c <&5 ++else ++ echo $cmd >&5 ++fi ++ eval $cmd >&5 2>&5 ++ if test -n "$1"; then ++ output=`eval $cmd 2>/dev/null | head -n 1 | sed -e 's,^libtool: *,,' -e 's,^link: *,,'` ++ fi ++ status="$?" ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "yes"; then ++ echo "configure:__oline__: \$? = $status" >&5 ++else ++ echo \$? = $status >&5 ++fi ++ if test "$status" != "0"; then ++ { echo "$as_me:$LINENO: result: libtool error!" >&5 ++echo "${ECHO_T}libtool error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++} ++ ++# ++# First make a sample library with the current LDFLAGS and LIBS ++# ++ ++cmd="$libtool --mode=compile --tag=CC $CC $CFLAGS -c -o foo.o foo.c" ++ompi_check_linker_flags_work ++cmd="$libtool --mode=link --tag=CC $CC $CFLAGS foo.lo $LDFLAGS $LIBS -o libfoo.la" ++ompi_check_linker_flags_work ++ ++# ++# Now fake linking to it and capture the output from libtool ++# ++ ++cmd="$libtool --dry-run --mode=link --tag=CC $CC bar.lo libfoo.la -o bar $extra_flags" ++ompi_check_linker_flags_work yes ++ ++# eat any extra whitespace in CC, as libtool will do the same ++tmpCC=`echo $CC | sed -e 's/\//\\\\\//g'` ++output=`echo $output | sed -e "s/^$tmpCC//"` ++eval "set $output" ++extra_ldflags= ++while test -n "$1"; do ++ case "$1" in ++ *.libs/bar*) ;; ++ bar*) ;; ++ -I*) ;; ++ -L*) ;; ++ -R*) ;; ++ -lfoo) ;; ++ *.libs/libfoo.*) ;; ++ -o) ;; ++ *.so) ;; ++ *.a) ;; ++ *) ++ extra_ldflags="$extra_ldflags $1" ++ ;; ++ esac ++ shift ++done ++ ++if test -n "$extra_ldflags"; then ++ { echo "$as_me:$LINENO: result: $extra_ldflags" >&5 ++echo "${ECHO_T}$extra_ldflags" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no extra flags" >&5 ++echo "${ECHO_T}no extra flags" >&6; } ++fi ++ ++cd .. ++rm -rf conftest.$$ ++ ++ WRAPPER_EXTRA_LIBS="$WRAPPER_EXTRA_LIBS $extra_ldflags" ++ LDFLAGS="-export-dynamic $LDFLAGS" ++ else ++ { { echo "$as_me:$LINENO: error: Failed to build GNU libltdl. This usually means that something ++is incorrectly setup with your environment. There may be useful information in ++opal/libltdl/config.log. You can also disable GNU libltdl (which will disable ++dynamic shared object loading) by configuring with --disable-dlopen." >&5 ++echo "$as_me: error: Failed to build GNU libltdl. This usually means that something ++is incorrectly setup with your environment. There may be useful information in ++opal/libltdl/config.log. You can also disable GNU libltdl (which will disable ++dynamic shared object loading) by configuring with --disable-dlopen." >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ CFLAGS="$CFLAGS_save" ++else ++ { echo "$as_me:$LINENO: WARNING: libltdl support disabled (by --disable-dlopen)" >&5 ++echo "$as_me: WARNING: libltdl support disabled (by --disable-dlopen)" >&2;} ++ ++ LIBLTDL= ++ LIBLTDL_SUBDIR= ++ OPAL_HAVE_LTDL_ADVISE=0 ++ ++ # append instead of prepend, since LIBS are going to be system ++ # type things needed by everyone. Normally, libltdl will push ++ # these into LIBS, but since we've disabled libltdl, we need ++ # to do it here. ++ WRAPPER_EXTRA_LIBS="$WRAPPER_EXTRA_LIBS $LIBS" ++fi ++ ++ ++ ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_WANT_LIBLTDL $OMPI_ENABLE_DLOPEN_SUPPORT ++_ACEOF ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_HAVE_LTDL_ADVISE $OPAL_HAVE_LTDL_ADVISE ++_ACEOF ++ ++ ++############################################################################ ++# final compiler config ++############################################################################ ++ ++ompi_show_subtitle "Compiler flags" ++ ++# ++# This is needed for VPATH builds, so that it will -I the appropriate ++# include directory. We delayed doing it until now just so that ++# '-I$(top_srcdir)' doesn't show up in any of the configure output -- ++# purely aesthetic. ++# ++# Because opal_config.h, orte_config.h, and ompi_config.h are all ++# created by AC_CONFIG_HEADERS, we don't need to -I the builddir for ++# /include. If we VPATH building, we do need to include the ++# source directories, however. ++# ++if test "$OMPI_TOP_BUILDDIR" != "$OMPI_TOP_SRCDIR"; then ++ CPPFLAGS='-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/opal/include -I$(top_srcdir)/orte/include -I$(top_srcdir)/ompi/include'" $CPPFLAGS" ++ CXXCPPFLAGS='-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/opal/include -I$(top_srcdir)/orte/include -I$(top_srcdir)/ompi/include'" $CXXCPPFLAGS" ++else ++ CPPFLAGS='-I$(top_srcdir)'" $CPPFLAGS" ++ CXXCPPFLAGS='-I$(top_srcdir)'" $CXXCPPFLAGS" ++fi ++ ++# ++# Do a final process of the CFLAGS to make a WITHOUT_OPTFLAGS version. ++# We need this so that we can guarantee to build the TotalView stuff ++# with -g and nothing else. ++# ++ ++ ++ ++# Process a set of flags and remove all debugging and optimization ++# flags ++ ++s_arg="$CFLAGS" ++s_result= ++for s_word in $s_arg; do ++ # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs ++ # for an explanation of @<:@ and @:>@ -- they m4 expand to [ and ] ++ case $s_word in ++ -g) ;; ++ -g@<:@1-3@:>@) ;; ++ +K@<:@0-5@:>@) ;; ++ -O) ;; ++ -O@<:@0-9@:>@) ;; ++ -xO) ;; ++ -xO@<:@0-9@:>@) ;; ++ -fast) ;; ++ ++ # The below Sun Studio flags require or ++ # trigger -xO optimization ++ -xvector*) ;; ++ -xdepend=yes) ;; ++ ++ *) s_result="$s_result $s_word" ++ esac ++done ++ ++# Clean up ++ ++unset s_word s_arg ++CFLAGS_WITHOUT_OPTFLAGS="$s_result" ++if test "$with_tv_debug_flags" != ""; then ++ TOTALVIEW_DEBUG_FLAGS="$with_tv_debug_flags" ++else ++ # Tweak the compiler flags passed to orterun for Sun Studio SPARC ++ # https://svn.open-mpi.org/trac/ompi/ticket/1448 ++ if test "x$ompi_cv_c_compiler_vendor" = "xsun" -a -n "`echo $host | $GREP sparc`"; then ++ TOTALVIEW_DEBUG_FLAGS="-g -xO0" ++ else ++ TOTALVIEW_DEBUG_FLAGS="-g" ++ fi ++fi ++{ echo "$as_me:$LINENO: checking which of CFLAGS are ok for TotalView modules" >&5 ++echo $ECHO_N "checking which of CFLAGS are ok for TotalView modules... $ECHO_C" >&6; } ++{ echo "$as_me:$LINENO: result: $CFLAGS_WITHOUT_OPTFLAGS" >&5 ++echo "${ECHO_T}$CFLAGS_WITHOUT_OPTFLAGS" >&6; } ++{ echo "$as_me:$LINENO: checking extra CFLAGS for TotalView modules" >&5 ++echo $ECHO_N "checking extra CFLAGS for TotalView modules... $ECHO_C" >&6; } ++{ echo "$as_me:$LINENO: result: $TOTALVIEW_DEBUG_FLAGS" >&5 ++echo "${ECHO_T}$TOTALVIEW_DEBUG_FLAGS" >&6; } ++ ++ ++ ++ ++ ++# ++# Delayed the substitution of CFLAGS and CXXFLAGS until now because ++# they may have been modified throughout the course of this script. ++# ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++# ++# Aggregate MCA parameters directory ++# ++AMCA_PARAM_SETS_DIR='$(pkgdatadir)/amca-param-sets' ++ ++ ++############################################################################ ++# final wrapper compiler config ++############################################################################ ++ ++ompi_show_subtitle "Wrapper compiler flags" ++ ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=WRAPPER_EXTRA_CPPFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${WRAPPER_EXTRA_CPPFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=WRAPPER_EXTRA_CFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${WRAPPER_EXTRA_CFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=WRAPPER_EXTRA_CXXFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${WRAPPER_EXTRA_CXXFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=WRAPPER_EXTRA_FFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${WRAPPER_EXTRA_FFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=WRAPPER_EXTRA_FCFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${WRAPPER_EXTRA_FCFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=WRAPPER_EXTRA_LDFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${WRAPPER_EXTRA_LDFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++ # ++ # OPAL ++ # ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=opal_WRAPPER_EXTRA_LDFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${opal_WRAPPER_EXTRA_LDFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=opal_WRAPPER_EXTRA_LIBS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${opal_WRAPPER_EXTRA_LIBS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++ { echo "$as_me:$LINENO: checking for OPAL CPPFLAGS" >&5 ++echo $ECHO_N "checking for OPAL CPPFLAGS... $ECHO_C" >&6; } ++ OPAL_WRAPPER_EXTRA_CPPFLAGS="$WRAPPER_EXTRA_CPPFLAGS $USER_WRAPPER_EXTRA_CPPFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_CPPFLAGS" >&5 ++echo "${ECHO_T}$OPAL_WRAPPER_EXTRA_CPPFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for OPAL CFLAGS" >&5 ++echo $ECHO_N "checking for OPAL CFLAGS... $ECHO_C" >&6; } ++ OPAL_WRAPPER_EXTRA_CFLAGS="$WRAPPER_EXTRA_CFLAGS $USER_WRAPPER_EXTRA_CFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_CFLAGS" >&5 ++echo "${ECHO_T}$OPAL_WRAPPER_EXTRA_CFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for OPAL CXXFLAGS" >&5 ++echo $ECHO_N "checking for OPAL CXXFLAGS... $ECHO_C" >&6; } ++ OPAL_WRAPPER_EXTRA_CXXFLAGS="$WRAPPER_EXTRA_CXXFLAGS $USER_WRAPPER_EXTRA_CXXFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_CXXFLAGS" >&5 ++echo "${ECHO_T}$OPAL_WRAPPER_EXTRA_CXXFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for OPAL LDFLAGS" >&5 ++echo $ECHO_N "checking for OPAL LDFLAGS... $ECHO_C" >&6; } ++ OPAL_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $WRAPPER_EXTRA_LDFLAGS $USER_WRAPPER_EXTRA_LDFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_LDFLAGS" >&5 ++echo "${ECHO_T}$OPAL_WRAPPER_EXTRA_LDFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for OPAL LIBS" >&5 ++echo $ECHO_N "checking for OPAL LIBS... $ECHO_C" >&6; } ++ OPAL_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $WRAPPER_EXTRA_LIBS $USER_WRAPPER_EXTRA_LIBS" ++ ++ { echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_LIBS" >&5 ++echo "${ECHO_T}$OPAL_WRAPPER_EXTRA_LIBS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for OPAL extra include dirs" >&5 ++echo $ECHO_N "checking for OPAL extra include dirs... $ECHO_C" >&6; } ++ if test "$WANT_INSTALL_HEADERS" = "1" ; then ++ OPAL_WRAPPER_EXTRA_INCLUDES="openmpi" ++ else ++ OPAL_WRAPPER_EXTRA_INCLUDES= ++ fi ++ ++ { echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_INCLUDES" >&5 ++echo "${ECHO_T}$OPAL_WRAPPER_EXTRA_INCLUDES" >&6; } ++ ++ # ++ # ORTE ++ # ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=orte_WRAPPER_EXTRA_LDFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${orte_WRAPPER_EXTRA_LDFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=orte_WRAPPER_EXTRA_LIBS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${orte_WRAPPER_EXTRA_LIBS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++ { echo "$as_me:$LINENO: checking for ORTE CPPFLAGS" >&5 ++echo $ECHO_N "checking for ORTE CPPFLAGS... $ECHO_C" >&6; } ++ ORTE_WRAPPER_EXTRA_CPPFLAGS="$OPAL_WRAPPER_EXTRA_CPPFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_CPPFLAGS" >&5 ++echo "${ECHO_T}$ORTE_WRAPPER_EXTRA_CPPFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for ORTE CFLAGS" >&5 ++echo $ECHO_N "checking for ORTE CFLAGS... $ECHO_C" >&6; } ++ ORTE_WRAPPER_EXTRA_CFLAGS="$OPAL_WRAPPER_EXTRA_CFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_CFLAGS" >&5 ++echo "${ECHO_T}$ORTE_WRAPPER_EXTRA_CFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for ORTE CXXFLAGS" >&5 ++echo $ECHO_N "checking for ORTE CXXFLAGS... $ECHO_C" >&6; } ++ ORTE_WRAPPER_EXTRA_CXXFLAGS="$OPAL_WRAPPER_EXTRA_CXXFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_CXXFLAGS" >&5 ++echo "${ECHO_T}$ORTE_WRAPPER_EXTRA_CXXFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for ORTE LDFLAGS" >&5 ++echo $ECHO_N "checking for ORTE LDFLAGS... $ECHO_C" >&6; } ++ ORTE_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $OPAL_WRAPPER_EXTRA_LDFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_LDFLAGS" >&5 ++echo "${ECHO_T}$ORTE_WRAPPER_EXTRA_LDFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for ORTE LIBS" >&5 ++echo $ECHO_N "checking for ORTE LIBS... $ECHO_C" >&6; } ++ ORTE_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $OPAL_WRAPPER_EXTRA_LIBS" ++ ++ { echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_LIBS" >&5 ++echo "${ECHO_T}$ORTE_WRAPPER_EXTRA_LIBS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for ORTE extra include dirs" >&5 ++echo $ECHO_N "checking for ORTE extra include dirs... $ECHO_C" >&6; } ++ ORTE_WRAPPER_EXTRA_INCLUDES="$OPAL_WRAPPER_EXTRA_INCLUDES" ++ ++ { echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_INCLUDES" >&5 ++echo "${ECHO_T}$ORTE_WRAPPER_EXTRA_INCLUDES" >&6; } ++ ++ # ++ # OMPI ++ # ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=ompi_WRAPPER_EXTRA_LDFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${ompi_WRAPPER_EXTRA_LDFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=ompi_WRAPPER_EXTRA_LIBS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${ompi_WRAPPER_EXTRA_LIBS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++ { echo "$as_me:$LINENO: checking for OMPI CPPFLAGS" >&5 ++echo $ECHO_N "checking for OMPI CPPFLAGS... $ECHO_C" >&6; } ++ OMPI_WRAPPER_EXTRA_CPPFLAGS="$ORTE_WRAPPER_EXTRA_CPPFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_CPPFLAGS" >&5 ++echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_CPPFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for OMPI CFLAGS" >&5 ++echo $ECHO_N "checking for OMPI CFLAGS... $ECHO_C" >&6; } ++ OMPI_WRAPPER_EXTRA_CFLAGS="$ORTE_WRAPPER_EXTRA_CFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_CFLAGS" >&5 ++echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_CFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for OMPI CXXFLAGS" >&5 ++echo $ECHO_N "checking for OMPI CXXFLAGS... $ECHO_C" >&6; } ++ OMPI_WRAPPER_EXTRA_CXXFLAGS="$ORTE_WRAPPER_EXTRA_CXXFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_CXXFLAGS" >&5 ++echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_CXXFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for OMPI FFLAGS" >&5 ++echo $ECHO_N "checking for OMPI FFLAGS... $ECHO_C" >&6; } ++ OMPI_WRAPPER_EXTRA_FFLAGS="$WRAPPER_EXTRA_FFLAGS $USER_WRAPPER_EXTRA_FFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_FFLAGS" >&5 ++echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_FFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for OMPI FCFLAGS" >&5 ++echo $ECHO_N "checking for OMPI FCFLAGS... $ECHO_C" >&6; } ++ OMPI_WRAPPER_EXTRA_FCFLAGS="$WRAPPER_EXTRA_FCFLAGS $USER_WRAPPER_EXTRA_FCFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_FCFLAGS" >&5 ++echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_FCFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for OMPI LDFLAGS" >&5 ++echo $ECHO_N "checking for OMPI LDFLAGS... $ECHO_C" >&6; } ++ OMPI_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $ORTE_WRAPPER_EXTRA_LDFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_LDFLAGS" >&5 ++echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_LDFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for OMPI LIBS" >&5 ++echo $ECHO_N "checking for OMPI LIBS... $ECHO_C" >&6; } ++ OMPI_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $ORTE_WRAPPER_EXTRA_LIBS" ++ ++ { echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_LIBS" >&5 ++echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_LIBS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for OMPI extra include dirs" >&5 ++echo $ECHO_N "checking for OMPI extra include dirs... $ECHO_C" >&6; } ++ OMPI_WRAPPER_EXTRA_INCLUDES="$ORTE_WRAPPER_EXTRA_INCLUDES" ++ ++ { echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_INCLUDES" >&5 ++echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_INCLUDES" >&6; } ++ ++ # language binding support. C++ is a bit different, as the ++ # compiler should work even if there is no language support. ++ if test "$WANT_MPI_CXX_SUPPORT" = "1" ; then ++ OMPI_WRAPPER_CXX_LIB="-lmpi_cxx" ++ OMPI_WRAPPER_CXX_REQUIRED_FILE="" ++ else ++ OMPI_WRAPPER_CXX_LIB="" ++ OMPI_WRAPPER_CXX_REQUIRED_FILE="" ++ fi ++ ++ ++ ++ if test "$OMPI_WANT_F77_BINDINGS" = "1" ; then ++ OMPI_WRAPPER_F77_REQUIRED_FILE="" ++ else ++ OMPI_WRAPPER_F77_REQUIRED_FILE="not supported" ++ fi ++ ++ ++ if test "$OMPI_WANT_F90_BINDINGS" = "1" ; then ++ OMPI_WRAPPER_F90_REQUIRED_FILE="" ++ else ++ OMPI_WRAPPER_F90_REQUIRED_FILE="not supported" ++ fi ++ ++ ++ # For script-based wrappers that don't do relocatable binaries. ++ # Don't use if you don't have to. ++ exec_prefix_save="${exec_prefix}" ++ test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" ++ eval "OMPI_WRAPPER_INCLUDEDIR=\"${includedir}\"" ++ eval "OMPI_WRAPPER_LIBDIR=\"${libdir}\"" ++ exec_prefix="${exec_prefix_save}" ++ ++ ++ ++ # compatibility defines that will eventually go away ++ WRAPPER_EXTRA_CFLAGS="$OMPI_WRAPPER_EXTRA_CFLAGS" ++ WRAPPER_EXTRA_CXXFLAGS="$OMPI_WRAPPER_EXTRA_CXXFLAGS" ++ WRAPPER_EXTRA_FFLAGS="$OMPI_WRAPPER_EXTRA_FFLAGS" ++ WRAPPER_EXTRA_FCFLAGS="$OMPI_WRAPPER_EXTRA_FCFLAGS" ++ WRAPPER_EXTRA_LDFLAGS="$OMPI_WRAPPER_EXTRA_LDFLAGS" ++ WRAPPER_EXTRA_LIBS="$OMPI_WRAPPER_EXTRA_LIBS" ++ ++ ++ ++ ++ ++ ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define WRAPPER_EXTRA_CFLAGS "$WRAPPER_EXTRA_CFLAGS" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define WRAPPER_EXTRA_CXXFLAGS "$WRAPPER_EXTRA_CXXFLAGS" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define WRAPPER_EXTRA_FFLAGS "$WRAPPER_EXTRA_FFLAGS" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define WRAPPER_EXTRA_FCFLAGS "$WRAPPER_EXTRA_FCFLAGS" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define WRAPPER_EXTRA_LDFLAGS "$WRAPPER_EXTRA_LDFLAGS" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define WRAPPER_EXTRA_LIBS "$WRAPPER_EXTRA_LIBS" ++_ACEOF ++ ++ ++ ++# Recreate some defines prefixed with OMPI_ so that there are no bare ++# autoconf macro defines in mpi.h. Since AC sometimes changes whether ++# things are defined as null tokens or an integer result, two projects ++# with different versions of AC can cause problems. ++if test $ac_cv_header_stdc = yes; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define OMPI_STDC_HEADERS 1 ++_ACEOF ++ ++fi ++if test $ac_cv_header_sys_time_h = yes ; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define OMPI_HAVE_SYS_TIME_H 1 ++_ACEOF ++ ++fi ++if test $ac_cv_type_long_long = yes ; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define OMPI_HAVE_LONG_LONG 1 ++_ACEOF ++ fi ++if test $ac_cv_header_sys_synch_h = yes ; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define OMPI_HAVE_SYS_SYNCH_H 1 ++_ACEOF ++ ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_BOOL $ac_cv_sizeof_bool ++_ACEOF ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_INT $ac_cv_sizeof_int ++_ACEOF ++ ++############################################################################ ++# Party on ++############################################################################ ++ ++ompi_show_subtitle "Final output" ++ ++ac_config_files="$ac_config_files Makefile config/Makefile contrib/Makefile opal/Makefile opal/etc/Makefile opal/include/Makefile opal/asm/Makefile opal/event/Makefile opal/event/compat/Makefile opal/event/compat/sys/Makefile opal/util/Makefile opal/util/keyval/Makefile opal/mca/base/Makefile opal/tools/wrappers/Makefile opal/tools/wrappers/opalcc-wrapper-data.txt opal/tools/wrappers/opalc++-wrapper-data.txt opal/tools/opal-checkpoint/Makefile opal/tools/opal-restart/Makefile orte/Makefile orte/include/Makefile orte/etc/Makefile orte/tools/orted/Makefile orte/tools/orterun/Makefile orte/tools/wrappers/Makefile orte/tools/wrappers/ortecc-wrapper-data.txt orte/tools/wrappers/ortec++-wrapper-data.txt orte/tools/orte-checkpoint/Makefile orte/tools/orte-iof/Makefile orte/tools/orte-restart/Makefile orte/tools/orte-ps/Makefile orte/tools/orte-clean/Makefile ompi/Makefile ompi/etc/Makefile ompi/include/Makefile ompi/include/mpif.h ompi/include/mpif-config.h ompi/datatype/Makefile ompi/debuggers/Makefile ompi/mpi/c/Makefile ompi/mpi/c/profile/Makefile ompi/mpi/cxx/Makefile ompi/mpi/f77/Makefile ompi/mpi/f77/profile/Makefile ompi/mpi/f90/Makefile ompi/mpi/f90/fortran_kinds.sh ompi/mpi/f90/fortran_sizes.h ompi/mpi/f90/scripts/Makefile ompi/tools/ompi_info/Makefile ompi/tools/wrappers/Makefile ompi/tools/wrappers/mpicc-wrapper-data.txt ompi/tools/wrappers/mpic++-wrapper-data.txt ompi/tools/wrappers/mpif77-wrapper-data.txt ompi/tools/wrappers/mpif90-wrapper-data.txt ompi/tools/ortetools/Makefile ompi/tools/ompi-server/Makefile test/Makefile test/event/Makefile test/asm/Makefile test/class/Makefile test/support/Makefile test/threads/Makefile test/peruse/Makefile test/datatype/Makefile" ++ ++cat >confcache <<\_ACEOF ++# This file is a shell script that caches the results of configure ++# tests run on this system so they can be shared between configure ++# scripts and configure runs, see configure's option --config-cache. ++# It is not useful on other systems. If it contains results you don't ++# want to keep, you may remove or edit it. ++# ++# config.status only pays attention to the cache file if you give it ++# the --recheck option to rerun configure. ++# ++# `ac_cv_env_foo' variables (set or unset) will be overridden when ++# loading this file, other *unset* `ac_cv_foo' will be assigned the ++# following values. ++ ++_ACEOF ++ ++# The following way of writing the cache mishandles newlines in values, ++# but we know of no workaround that is simple, portable, and efficient. ++# So, we kill variables containing newlines. ++# Ultrix sh set writes to stderr and can't be redirected directly, ++# and sets the high bit in the cache file unless we assign to the vars. ++( ++ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do ++ eval ac_val=\$$ac_var ++ case $ac_val in #( ++ *${as_nl}*) ++ case $ac_var in #( ++ *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 ++echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; ++ esac ++ case $ac_var in #( ++ _ | IFS | as_nl) ;; #( ++ *) $as_unset $ac_var ;; ++ esac ;; ++ esac ++ done ++ ++ (set) 2>&1 | ++ case $as_nl`(ac_space=' '; set) 2>&1` in #( ++ *${as_nl}ac_space=\ *) ++ # `set' does not quote correctly, so add quotes (double-quote ++ # substitution turns \\\\ into \\, and sed turns \\ into \). ++ sed -n \ ++ "s/'/'\\\\''/g; ++ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ++ ;; #( ++ *) ++ # `set' quotes correctly as required by POSIX, so do not add quotes. ++ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ++ ;; ++ esac | ++ sort ++) | ++ sed ' ++ /^ac_cv_env_/b end ++ t clear ++ :clear ++ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ ++ t end ++ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ ++ :end' >>confcache ++if diff "$cache_file" confcache >/dev/null 2>&1; then :; else ++ if test -w "$cache_file"; then ++ test "x$cache_file" != "x/dev/null" && ++ { echo "$as_me:$LINENO: updating cache $cache_file" >&5 ++echo "$as_me: updating cache $cache_file" >&6;} ++ cat confcache >$cache_file ++ else ++ { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 ++echo "$as_me: not updating unwritable cache $cache_file" >&6;} ++ fi ++fi ++rm -f confcache ++ ++test "x$prefix" = xNONE && prefix=$ac_default_prefix ++# Let make expand exec_prefix. ++test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' ++ ++DEFS=-DHAVE_CONFIG_H ++ ++ac_libobjs= ++ac_ltlibobjs= ++for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue ++ # 1. Remove the extension, and $U if already installed. ++ ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ++ ac_i=`echo "$ac_i" | sed "$ac_script"` ++ # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR ++ # will be set to the directory where LIBOBJS objects are built. ++ ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" ++ ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' ++done ++LIB@&t@OBJS=$ac_libobjs ++ ++LTLIBOBJS=$ac_ltlibobjs ++ ++ ++if test -z "${OMPI_WANT_BUILD_F90_TRIVIAL_TRUE}" && test -z "${OMPI_WANT_BUILD_F90_TRIVIAL_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_BUILD_F90_TRIVIAL\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_WANT_BUILD_F90_TRIVIAL\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_WANT_BUILD_F90_SMALL_TRUE}" && test -z "${OMPI_WANT_BUILD_F90_SMALL_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_BUILD_F90_SMALL\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_WANT_BUILD_F90_SMALL\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_WANT_BUILD_F90_MEDIUM_TRUE}" && test -z "${OMPI_WANT_BUILD_F90_MEDIUM_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_BUILD_F90_MEDIUM\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_WANT_BUILD_F90_MEDIUM\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_WANT_BUILD_F90_LARGE_TRUE}" && test -z "${OMPI_WANT_BUILD_F90_LARGE_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_BUILD_F90_LARGE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_WANT_BUILD_F90_LARGE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${WANT_INSTALL_HEADERS_TRUE}" && test -z "${WANT_INSTALL_HEADERS_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"WANT_INSTALL_HEADERS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"WANT_INSTALL_HEADERS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${WANT_PERUSE_TRUE}" && test -z "${WANT_PERUSE_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"WANT_PERUSE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"WANT_PERUSE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${ORTE_DISABLE_FULL_SUPPORT_TRUE}" && test -z "${ORTE_DISABLE_FULL_SUPPORT_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"ORTE_DISABLE_FULL_SUPPORT\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"ORTE_DISABLE_FULL_SUPPORT\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${WANT_FT_TRUE}" && test -z "${WANT_FT_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"WANT_FT\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"WANT_FT\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_INSTALL_BINARIES_TRUE}" && test -z "${OMPI_INSTALL_BINARIES_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_INSTALL_BINARIES\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_INSTALL_BINARIES\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_TRUE}" && test -z "${OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_SCRIPT_WRAPPER_COMPILERS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_WANT_SCRIPT_WRAPPER_COMPILERS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"AMDEP\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE}" && test -z "${OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_NEED_WINDOWS_REPLACEMENTS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_NEED_WINDOWS_REPLACEMENTS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${WANT_MPI_BINDINGS_LAYER_TRUE}" && test -z "${WANT_MPI_BINDINGS_LAYER_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"WANT_MPI_BINDINGS_LAYER\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"WANT_MPI_BINDINGS_LAYER\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${WANT_PMPI_BINDINGS_LAYER_TRUE}" && test -z "${WANT_PMPI_BINDINGS_LAYER_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"WANT_PMPI_BINDINGS_LAYER\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"WANT_PMPI_BINDINGS_LAYER\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${COMPILE_PROFILING_SEPARATELY_TRUE}" && test -z "${COMPILE_PROFILING_SEPARATELY_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"COMPILE_PROFILING_SEPARATELY\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"COMPILE_PROFILING_SEPARATELY\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${WANT_MPI_CXX_BINDINGS_TRUE}" && test -z "${WANT_MPI_CXX_BINDINGS_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"WANT_MPI_CXX_BINDINGS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"WANT_MPI_CXX_BINDINGS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_HAVE_ASM_FILE_TRUE}" && test -z "${OMPI_HAVE_ASM_FILE_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_HAVE_ASM_FILE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_HAVE_ASM_FILE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_WANT_F77_BINDINGS_TRUE}" && test -z "${OMPI_WANT_F77_BINDINGS_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_F77_BINDINGS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_WANT_F77_BINDINGS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${WANT_MPI_F77_BINDINGS_LAYER_TRUE}" && test -z "${WANT_MPI_F77_BINDINGS_LAYER_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"WANT_MPI_F77_BINDINGS_LAYER\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"WANT_MPI_F77_BINDINGS_LAYER\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${WANT_PMPI_F77_BINDINGS_LAYER_TRUE}" && test -z "${WANT_PMPI_F77_BINDINGS_LAYER_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"WANT_PMPI_F77_BINDINGS_LAYER\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"WANT_PMPI_F77_BINDINGS_LAYER\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_WANT_F90_BINDINGS_TRUE}" && test -z "${OMPI_WANT_F90_BINDINGS_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_F90_BINDINGS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_WANT_F90_BINDINGS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_HAVE_POSIX_THREADS_TRUE}" && test -z "${OMPI_HAVE_POSIX_THREADS_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_HAVE_POSIX_THREADS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_HAVE_POSIX_THREADS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_HAVE_SOLARIS_THREADS_TRUE}" && test -z "${OMPI_HAVE_SOLARIS_THREADS_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_HAVE_SOLARIS_THREADS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_HAVE_SOLARIS_THREADS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${WANT_FT_THREAD_TRUE}" && test -z "${WANT_FT_THREAD_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"WANT_FT_THREAD\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"WANT_FT_THREAD\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${CASE_SENSITIVE_FS_TRUE}" && test -z "${CASE_SENSITIVE_FS_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"CASE_SENSITIVE_FS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"CASE_SENSITIVE_FS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_backtrace_execinfo_DSO_TRUE}" && test -z "${OMPI_BUILD_backtrace_execinfo_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_backtrace_execinfo_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_backtrace_execinfo_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_backtrace_printstack_DSO_TRUE}" && test -z "${OMPI_BUILD_backtrace_printstack_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_backtrace_printstack_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_backtrace_printstack_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_backtrace_darwin_DSO_TRUE}" && test -z "${OMPI_BUILD_backtrace_darwin_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_backtrace_darwin_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_backtrace_darwin_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_backtrace_none_DSO_TRUE}" && test -z "${OMPI_BUILD_backtrace_none_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_backtrace_none_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_backtrace_none_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_carto_auto_detect_DSO_TRUE}" && test -z "${OMPI_BUILD_carto_auto_detect_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_carto_auto_detect_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_carto_auto_detect_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_carto_file_DSO_TRUE}" && test -z "${OMPI_BUILD_carto_file_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_carto_file_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_carto_file_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_crs_none_DSO_TRUE}" && test -z "${OMPI_BUILD_crs_none_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_crs_none_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_crs_none_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_crs_blcr_DSO_TRUE}" && test -z "${OMPI_BUILD_crs_blcr_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_crs_blcr_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_crs_blcr_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_crs_self_DSO_TRUE}" && test -z "${OMPI_BUILD_crs_self_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_crs_self_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_crs_self_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_installdirs_env_DSO_TRUE}" && test -z "${OMPI_BUILD_installdirs_env_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_installdirs_env_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_installdirs_env_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_installdirs_config_DSO_TRUE}" && test -z "${OMPI_BUILD_installdirs_config_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_installdirs_config_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_installdirs_config_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_maffinity_first_use_DSO_TRUE}" && test -z "${OMPI_BUILD_maffinity_first_use_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_maffinity_first_use_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_maffinity_first_use_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_maffinity_libnuma_DSO_TRUE}" && test -z "${OMPI_BUILD_maffinity_libnuma_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_maffinity_libnuma_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_maffinity_libnuma_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_WANT_MEMCHECKER_TRUE}" && test -z "${OMPI_WANT_MEMCHECKER_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_MEMCHECKER\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_WANT_MEMCHECKER\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_memchecker_valgrind_DSO_TRUE}" && test -z "${OMPI_BUILD_memchecker_valgrind_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_memchecker_valgrind_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_memchecker_valgrind_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_WANT_EXTERNAL_PTMALLOC2_TRUE}" && test -z "${OMPI_WANT_EXTERNAL_PTMALLOC2_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_EXTERNAL_PTMALLOC2\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_WANT_EXTERNAL_PTMALLOC2\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_memory_ptmalloc2_DSO_TRUE}" && test -z "${OMPI_BUILD_memory_ptmalloc2_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_memory_ptmalloc2_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_memory_ptmalloc2_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_memory_malloc_solaris_DSO_TRUE}" && test -z "${OMPI_BUILD_memory_malloc_solaris_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_memory_malloc_solaris_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_memory_malloc_solaris_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_memory_mallopt_DSO_TRUE}" && test -z "${OMPI_BUILD_memory_mallopt_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_memory_mallopt_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_memory_mallopt_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${PLPA_BUILD_STANDALONE_TRUE}" && test -z "${PLPA_BUILD_STANDALONE_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"PLPA_BUILD_STANDALONE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"PLPA_BUILD_STANDALONE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${PLPA_BUILD_EXECUTABLES_TRUE}" && test -z "${PLPA_BUILD_EXECUTABLES_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"PLPA_BUILD_EXECUTABLES\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"PLPA_BUILD_EXECUTABLES\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${PLPA_BUILD_STANDALONE_TRUE}" && test -z "${PLPA_BUILD_STANDALONE_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"PLPA_BUILD_STANDALONE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"PLPA_BUILD_STANDALONE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${PLPA_BUILD_EXECUTABLES_TRUE}" && test -z "${PLPA_BUILD_EXECUTABLES_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"PLPA_BUILD_EXECUTABLES\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"PLPA_BUILD_EXECUTABLES\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_paffinity_linux_DSO_TRUE}" && test -z "${OMPI_BUILD_paffinity_linux_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_paffinity_linux_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_paffinity_linux_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_paffinity_solaris_DSO_TRUE}" && test -z "${OMPI_BUILD_paffinity_solaris_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_paffinity_solaris_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_paffinity_solaris_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_paffinity_windows_DSO_TRUE}" && test -z "${OMPI_BUILD_paffinity_windows_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_paffinity_windows_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_paffinity_windows_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_paffinity_darwin_DSO_TRUE}" && test -z "${OMPI_BUILD_paffinity_darwin_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_paffinity_darwin_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_paffinity_darwin_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_paffinity_posix_DSO_TRUE}" && test -z "${OMPI_BUILD_paffinity_posix_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_paffinity_posix_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_paffinity_posix_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_timer_catamount_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_catamount_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_catamount_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_timer_catamount_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_timer_aix_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_aix_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_aix_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_timer_aix_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_timer_altix_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_altix_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_altix_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_timer_altix_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_timer_darwin_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_darwin_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_darwin_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_timer_darwin_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_timer_solaris_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_solaris_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_solaris_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_timer_solaris_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_timer_windows_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_windows_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_windows_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_timer_windows_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_timer_linux_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_linux_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_linux_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_timer_linux_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_errmgr_default_DSO_TRUE}" && test -z "${OMPI_BUILD_errmgr_default_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_errmgr_default_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_errmgr_default_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ess_portals_utcp_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_portals_utcp_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_portals_utcp_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ess_portals_utcp_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ess_cnos_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_cnos_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_cnos_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ess_cnos_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ess_alps_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_alps_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_alps_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ess_alps_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ess_env_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_env_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_env_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ess_env_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ess_hnp_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_hnp_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_hnp_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ess_hnp_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ess_lsf_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_lsf_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_lsf_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ess_lsf_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ess_singleton_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_singleton_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_singleton_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ess_singleton_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ess_slurm_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_slurm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_slurm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ess_slurm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ess_tool_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_tool_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_tool_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ess_tool_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_filem_rsh_DSO_TRUE}" && test -z "${OMPI_BUILD_filem_rsh_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_filem_rsh_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_filem_rsh_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_grpcomm_cnos_DSO_TRUE}" && test -z "${OMPI_BUILD_grpcomm_cnos_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_grpcomm_cnos_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_grpcomm_cnos_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_grpcomm_bad_DSO_TRUE}" && test -z "${OMPI_BUILD_grpcomm_bad_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_grpcomm_bad_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_grpcomm_bad_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_grpcomm_basic_DSO_TRUE}" && test -z "${OMPI_BUILD_grpcomm_basic_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_grpcomm_basic_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_grpcomm_basic_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_iof_hnp_DSO_TRUE}" && test -z "${OMPI_BUILD_iof_hnp_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_iof_hnp_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_iof_hnp_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_iof_orted_DSO_TRUE}" && test -z "${OMPI_BUILD_iof_orted_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_iof_orted_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_iof_orted_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_iof_tool_DSO_TRUE}" && test -z "${OMPI_BUILD_iof_tool_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_iof_tool_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_iof_tool_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_notifier_syslog_DSO_TRUE}" && test -z "${OMPI_BUILD_notifier_syslog_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_notifier_syslog_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_notifier_syslog_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_odls_default_DSO_TRUE}" && test -z "${OMPI_BUILD_odls_default_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_odls_default_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_odls_default_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_oob_tcp_DSO_TRUE}" && test -z "${OMPI_BUILD_oob_tcp_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_oob_tcp_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_oob_tcp_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_plm_alps_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_alps_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_plm_alps_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_plm_alps_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_plm_lsf_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_lsf_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_plm_lsf_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_plm_lsf_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_plm_rsh_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_rsh_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_plm_rsh_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_plm_rsh_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_plm_slurm_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_slurm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_plm_slurm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_plm_slurm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_plm_tm_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_tm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_plm_tm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_plm_tm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_plm_xgrid_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_xgrid_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_plm_xgrid_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_plm_xgrid_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ras_alps_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_alps_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_alps_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ras_alps_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ras_gridengine_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_gridengine_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_gridengine_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ras_gridengine_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ras_loadleveler_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_loadleveler_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_loadleveler_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ras_loadleveler_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ras_lsf_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_lsf_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_lsf_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ras_lsf_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ras_slurm_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_slurm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_slurm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ras_slurm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ras_tm_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_tm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_tm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ras_tm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_rmaps_rank_file_DSO_TRUE}" && test -z "${OMPI_BUILD_rmaps_rank_file_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rmaps_rank_file_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_rmaps_rank_file_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_rmaps_round_robin_DSO_TRUE}" && test -z "${OMPI_BUILD_rmaps_round_robin_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rmaps_round_robin_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_rmaps_round_robin_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_rmaps_seq_DSO_TRUE}" && test -z "${OMPI_BUILD_rmaps_seq_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rmaps_seq_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_rmaps_seq_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_rml_oob_DSO_TRUE}" && test -z "${OMPI_BUILD_rml_oob_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rml_oob_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_rml_oob_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_rml_ftrm_DSO_TRUE}" && test -z "${OMPI_BUILD_rml_ftrm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rml_ftrm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_rml_ftrm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_routed_binomial_DSO_TRUE}" && test -z "${OMPI_BUILD_routed_binomial_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_routed_binomial_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_routed_binomial_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_routed_direct_DSO_TRUE}" && test -z "${OMPI_BUILD_routed_direct_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_routed_direct_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_routed_direct_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_routed_linear_DSO_TRUE}" && test -z "${OMPI_BUILD_routed_linear_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_routed_linear_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_routed_linear_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_snapc_full_DSO_TRUE}" && test -z "${OMPI_BUILD_snapc_full_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_snapc_full_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_snapc_full_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_allocator_basic_DSO_TRUE}" && test -z "${OMPI_BUILD_allocator_basic_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_allocator_basic_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_allocator_basic_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_allocator_bucket_DSO_TRUE}" && test -z "${OMPI_BUILD_allocator_bucket_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_allocator_bucket_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_allocator_bucket_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_bml_r2_DSO_TRUE}" && test -z "${OMPI_BUILD_bml_r2_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_bml_r2_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_bml_r2_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_btl_self_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_self_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_self_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_btl_self_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_btl_sm_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_sm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_sm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_btl_sm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_btl_elan_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_elan_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_elan_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_btl_elan_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_btl_gm_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_gm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_gm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_btl_gm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_btl_mx_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_mx_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_mx_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_btl_mx_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_btl_ofud_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_ofud_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_ofud_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_btl_ofud_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${MCA_btl_openib_have_xrc_TRUE}" && test -z "${MCA_btl_openib_have_xrc_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"MCA_btl_openib_have_xrc\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"MCA_btl_openib_have_xrc\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${MCA_btl_openib_have_rdmacm_TRUE}" && test -z "${MCA_btl_openib_have_rdmacm_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"MCA_btl_openib_have_rdmacm\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"MCA_btl_openib_have_rdmacm\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${MCA_btl_openib_have_ibcm_TRUE}" && test -z "${MCA_btl_openib_have_ibcm_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"MCA_btl_openib_have_ibcm\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"MCA_btl_openib_have_ibcm\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_btl_openib_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_openib_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_openib_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_btl_openib_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_btl_portals_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_portals_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_portals_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_btl_portals_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_btl_tcp_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_tcp_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_tcp_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_btl_tcp_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_btl_udapl_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_udapl_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_udapl_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_btl_udapl_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_coll_basic_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_basic_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_basic_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_coll_basic_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_coll_hierarch_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_hierarch_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_hierarch_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_coll_hierarch_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_coll_inter_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_inter_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_inter_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_coll_inter_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_coll_self_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_self_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_self_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_coll_self_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_coll_sm_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_sm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_sm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_coll_sm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_coll_tuned_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_tuned_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_tuned_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_coll_tuned_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_common_sm_DSO_TRUE}" && test -z "${OMPI_BUILD_common_sm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_common_sm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_common_sm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_common_mx_DSO_TRUE}" && test -z "${OMPI_BUILD_common_mx_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_common_mx_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_common_mx_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_common_portals_DSO_TRUE}" && test -z "${OMPI_BUILD_common_portals_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_common_portals_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_common_portals_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_crcp_bkmrk_DSO_TRUE}" && test -z "${OMPI_BUILD_crcp_bkmrk_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_crcp_bkmrk_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_crcp_bkmrk_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_dpm_orte_DSO_TRUE}" && test -z "${OMPI_BUILD_dpm_orte_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_dpm_orte_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_dpm_orte_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${MCA_io_romio_SHOULD_BUILD_TRUE}" && test -z "${MCA_io_romio_SHOULD_BUILD_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"MCA_io_romio_SHOULD_BUILD\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"MCA_io_romio_SHOULD_BUILD\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_io_romio_DSO_TRUE}" && test -z "${OMPI_BUILD_io_romio_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_io_romio_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_io_romio_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_PROVIDE_MPI_FILE_INTERFACE_TRUE}" && test -z "${OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_PROVIDE_MPI_FILE_INTERFACE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_PROVIDE_MPI_FILE_INTERFACE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_mpool_fake_DSO_TRUE}" && test -z "${OMPI_BUILD_mpool_fake_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mpool_fake_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_mpool_fake_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_mpool_rdma_DSO_TRUE}" && test -z "${OMPI_BUILD_mpool_rdma_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mpool_rdma_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_mpool_rdma_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_mpool_sm_DSO_TRUE}" && test -z "${OMPI_BUILD_mpool_sm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mpool_sm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_mpool_sm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_mtl_mx_DSO_TRUE}" && test -z "${OMPI_BUILD_mtl_mx_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mtl_mx_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_mtl_mx_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_mtl_portals_DSO_TRUE}" && test -z "${OMPI_BUILD_mtl_portals_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mtl_portals_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_mtl_portals_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_mtl_psm_DSO_TRUE}" && test -z "${OMPI_BUILD_mtl_psm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mtl_psm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_mtl_psm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_osc_pt2pt_DSO_TRUE}" && test -z "${OMPI_BUILD_osc_pt2pt_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_osc_pt2pt_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_osc_pt2pt_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_osc_rdma_DSO_TRUE}" && test -z "${OMPI_BUILD_osc_rdma_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_osc_rdma_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_osc_rdma_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_pml_cm_DSO_TRUE}" && test -z "${OMPI_BUILD_pml_cm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pml_cm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_pml_cm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_pml_ob1_DSO_TRUE}" && test -z "${OMPI_BUILD_pml_ob1_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pml_ob1_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_pml_ob1_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_pml_crcpw_DSO_TRUE}" && test -z "${OMPI_BUILD_pml_crcpw_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pml_crcpw_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_pml_crcpw_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_vprotocol_pessimist_DSO_TRUE}" && test -z "${OMPI_BUILD_vprotocol_pessimist_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_vprotocol_pessimist_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_vprotocol_pessimist_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_vprotocol_pessimist_DSO_TRUE}" && test -z "${OMPI_BUILD_vprotocol_pessimist_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_vprotocol_pessimist_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_vprotocol_pessimist_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_pml_v_DSO_TRUE}" && test -z "${OMPI_BUILD_pml_v_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pml_v_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_pml_v_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_pubsub_orte_DSO_TRUE}" && test -z "${OMPI_BUILD_pubsub_orte_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pubsub_orte_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_pubsub_orte_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_rcache_vma_DSO_TRUE}" && test -z "${OMPI_BUILD_rcache_vma_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rcache_vma_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_rcache_vma_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_topo_unity_DSO_TRUE}" && test -z "${OMPI_BUILD_topo_unity_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_topo_unity_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_topo_unity_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++: ${CONFIG_STATUS=./config.status} ++ac_clean_files_save=$ac_clean_files ++ac_clean_files="$ac_clean_files $CONFIG_STATUS" ++{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 ++echo "$as_me: creating $CONFIG_STATUS" >&6;} ++cat >$CONFIG_STATUS <<_ACEOF ++#! $SHELL ++# Generated by $as_me. ++# Run this file to recreate the current configuration. ++# Compiler output produced by configure, useful for debugging ++# configure, is in config.log if it exists. ++ ++debug=false ++ac_cs_recheck=false ++ac_cs_silent=false ++SHELL=\${CONFIG_SHELL-$SHELL} ++_ACEOF ++ ++cat >>$CONFIG_STATUS <<\_ACEOF ++## --------------------- ## ++## M4sh Initialization. ## ++## --------------------- ## ++ ++# Be more Bourne compatible ++DUALCASE=1; export DUALCASE # for MKS sh ++if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then ++ emulate sh ++ NULLCMD=: ++ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which ++ # is contrary to our usage. Disable this feature. ++ alias -g '${1+"$@"}'='"$@"' ++ setopt NO_GLOB_SUBST ++else ++ case `(set -o) 2>/dev/null` in ++ *posix*) set -o posix ;; ++esac ++ ++fi ++ ++ ++ ++ ++# PATH needs CR ++# Avoid depending upon Character Ranges. ++as_cr_letters='abcdefghijklmnopqrstuvwxyz' ++as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' ++as_cr_Letters=$as_cr_letters$as_cr_LETTERS ++as_cr_digits='0123456789' ++as_cr_alnum=$as_cr_Letters$as_cr_digits ++ ++# The user is always right. ++if test "${PATH_SEPARATOR+set}" != set; then ++ echo "#! /bin/sh" >conf$$.sh ++ echo "exit 0" >>conf$$.sh ++ chmod +x conf$$.sh ++ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then ++ PATH_SEPARATOR=';' ++ else ++ PATH_SEPARATOR=: ++ fi ++ rm -f conf$$.sh ++fi ++ ++# Support unset when possible. ++if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then ++ as_unset=unset ++else ++ as_unset=false ++fi ++ ++ ++# IFS ++# We need space, tab and new line, in precisely that order. Quoting is ++# there to prevent editors from complaining about space-tab. ++# (If _AS_PATH_WALK were called with IFS unset, it would disable word ++# splitting by setting IFS to empty value.) ++as_nl=' ++' ++IFS=" "" $as_nl" ++ ++# Find who we are. Look in the path if we contain no directory separator. ++case $0 in ++ *[\\/]* ) as_myself=$0 ;; ++ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break ++done ++IFS=$as_save_IFS ++ ++ ;; ++esac ++# We did not find ourselves, most probably we were run as `sh COMMAND' ++# in which case we are not to be found in the path. ++if test "x$as_myself" = x; then ++ as_myself=$0 ++fi ++if test ! -f "$as_myself"; then ++ echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 ++ { (exit 1); exit 1; } ++fi ++ ++# Work around bugs in pre-3.0 UWIN ksh. ++for as_var in ENV MAIL MAILPATH ++do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var ++done ++PS1='$ ' ++PS2='> ' ++PS4='+ ' ++ ++# NLS nuisances. ++for as_var in \ ++ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ ++ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ ++ LC_TELEPHONE LC_TIME ++do ++ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then ++ eval $as_var=C; export $as_var ++ else ++ ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var ++ fi ++done ++ ++# Required to use basename. ++if expr a : '\(a\)' >/dev/null 2>&1 && ++ test "X`expr 00001 : '.*\(...\)'`" = X001; then ++ as_expr=expr ++else ++ as_expr=false ++fi ++ ++if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then ++ as_basename=basename ++else ++ as_basename=false ++fi ++ ++ ++# Name of the executable. ++as_me=`$as_basename -- "$0" || ++$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ ++ X"$0" : 'X\(//\)$' \| \ ++ X"$0" : 'X\(/\)' \| . 2>/dev/null || ++echo X/"$0" | ++ sed '/^.*\/\([^/][^/]*\)\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\/\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\/\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ ++# CDPATH. ++$as_unset CDPATH ++ ++ ++ ++ as_lineno_1=$LINENO ++ as_lineno_2=$LINENO ++ test "x$as_lineno_1" != "x$as_lineno_2" && ++ test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { ++ ++ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO ++ # uniformly replaced by the line number. The first 'sed' inserts a ++ # line-number line after each line using $LINENO; the second 'sed' ++ # does the real work. The second script uses 'N' to pair each ++ # line-number line with the line containing $LINENO, and appends ++ # trailing '-' during substitution so that $LINENO is not a special ++ # case at line end. ++ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the ++ # scripts with optimization help from Paolo Bonzini. Blame Lee ++ # E. McMahon (1931-1989) for sed's syntax. :-) ++ sed -n ' ++ p ++ /[$]LINENO/= ++ ' <$as_myself | ++ sed ' ++ s/[$]LINENO.*/&-/ ++ t lineno ++ b ++ :lineno ++ N ++ :loop ++ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ ++ t loop ++ s/-\n.*// ++ ' >$as_me.lineno && ++ chmod +x "$as_me.lineno" || ++ { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 ++ { (exit 1); exit 1; }; } ++ ++ # Don't try to exec as it changes $[0], causing all sort of problems ++ # (the dirname of $[0] is not the place where we might find the ++ # original and so on. Autoconf is especially sensitive to this). ++ . "./$as_me.lineno" ++ # Exit status is that of the last command. ++ exit ++} ++ ++ ++if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then ++ as_dirname=dirname ++else ++ as_dirname=false ++fi ++ ++ECHO_C= ECHO_N= ECHO_T= ++case `echo -n x` in ++-n*) ++ case `echo 'x\c'` in ++ *c*) ECHO_T=' ';; # ECHO_T is single tab character. ++ *) ECHO_C='\c';; ++ esac;; ++*) ++ ECHO_N='-n';; ++esac ++ ++if expr a : '\(a\)' >/dev/null 2>&1 && ++ test "X`expr 00001 : '.*\(...\)'`" = X001; then ++ as_expr=expr ++else ++ as_expr=false ++fi ++ ++rm -f conf$$ conf$$.exe conf$$.file ++if test -d conf$$.dir; then ++ rm -f conf$$.dir/conf$$.file ++else ++ rm -f conf$$.dir ++ mkdir conf$$.dir ++fi ++echo >conf$$.file ++if ln -s conf$$.file conf$$ 2>/dev/null; then ++ as_ln_s='ln -s' ++ # ... but there are two gotchas: ++ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. ++ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. ++ # In both cases, we have to default to `cp -p'. ++ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || ++ as_ln_s='cp -p' ++elif ln conf$$.file conf$$ 2>/dev/null; then ++ as_ln_s=ln ++else ++ as_ln_s='cp -p' ++fi ++rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file ++rmdir conf$$.dir 2>/dev/null ++ ++if mkdir -p . 2>/dev/null; then ++ as_mkdir_p=: ++else ++ test -d ./-p && rmdir ./-p ++ as_mkdir_p=false ++fi ++ ++if test -x / >/dev/null 2>&1; then ++ as_test_x='test -x' ++else ++ if ls -dL / >/dev/null 2>&1; then ++ as_ls_L_option=L ++ else ++ as_ls_L_option= ++ fi ++ as_test_x=' ++ eval sh -c '\'' ++ if test -d "$1"; then ++ test -d "$1/."; ++ else ++ case $1 in ++ -*)set "./$1";; ++ esac; ++ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ++ ???[sx]*):;;*)false;;esac;fi ++ '\'' sh ++ ' ++fi ++as_executable_p=$as_test_x ++ ++# Sed expression to map a string onto a valid CPP name. ++as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" ++ ++# Sed expression to map a string onto a valid variable name. ++as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" ++ ++ ++exec 6>&1 ++ ++# Save the log message, to keep $[0] and so on meaningful, and to ++# report actual input values of CONFIG_FILES etc. instead of their ++# values after options handling. ++ac_log=" ++This file was extended by Open MPI $as_me 1.3, which was ++generated by GNU Autoconf 2.61. Invocation command line was ++ ++ CONFIG_FILES = $CONFIG_FILES ++ CONFIG_HEADERS = $CONFIG_HEADERS ++ CONFIG_LINKS = $CONFIG_LINKS ++ CONFIG_COMMANDS = $CONFIG_COMMANDS ++ $ $0 $@ ++ ++on `(hostname || uname -n) 2>/dev/null | sed 1q` ++" ++ ++_ACEOF ++ ++cat >>$CONFIG_STATUS <<_ACEOF ++# Files that config.status was made for. ++config_files="$ac_config_files" ++config_headers="$ac_config_headers" ++config_commands="$ac_config_commands" ++ ++_ACEOF ++ ++cat >>$CONFIG_STATUS <<\_ACEOF ++ac_cs_usage="\ ++\`$as_me' instantiates files from templates according to the ++current configuration. ++ ++Usage: $0 [OPTIONS] [FILE]... ++ ++ -h, --help print this help, then exit ++ -V, --version print version number and configuration settings, then exit ++ -q, --quiet do not print progress messages ++ -d, --debug don't remove temporary files ++ --recheck update $as_me by reconfiguring in the same conditions ++ --file=FILE[:TEMPLATE] ++ instantiate the configuration file FILE ++ --header=FILE[:TEMPLATE] ++ instantiate the configuration header FILE ++ ++Configuration files: ++$config_files ++ ++Configuration headers: ++$config_headers ++ ++Configuration commands: ++$config_commands ++ ++Report bugs to ." ++ ++_ACEOF ++cat >>$CONFIG_STATUS <<_ACEOF ++ac_cs_version="\\ ++Open MPI config.status 1.3 ++configured by $0, generated by GNU Autoconf 2.61, ++ with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" ++ ++Copyright (C) 2006 Free Software Foundation, Inc. ++This config.status script is free software; the Free Software Foundation ++gives unlimited permission to copy, distribute and modify it." ++ ++ac_pwd='$ac_pwd' ++srcdir='$srcdir' ++INSTALL='$INSTALL' ++MKDIR_P='$MKDIR_P' ++_ACEOF ++ ++cat >>$CONFIG_STATUS <<\_ACEOF ++# If no file are specified by the user, then we need to provide default ++# value. By we need to know if files were specified by the user. ++ac_need_defaults=: ++while test $# != 0 ++do ++ case $1 in ++ --*=*) ++ ac_option=`expr "X$1" : 'X\([^=]*\)='` ++ ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ++ ac_shift=: ++ ;; ++ *) ++ ac_option=$1 ++ ac_optarg=$2 ++ ac_shift=shift ++ ;; ++ esac ++ ++ case $ac_option in ++ # Handling of the options. ++ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ++ ac_cs_recheck=: ;; ++ --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) ++ echo "$ac_cs_version"; exit ;; ++ --debug | --debu | --deb | --de | --d | -d ) ++ debug=: ;; ++ --file | --fil | --fi | --f ) ++ $ac_shift ++ CONFIG_FILES="$CONFIG_FILES $ac_optarg" ++ ac_need_defaults=false;; ++ --header | --heade | --head | --hea ) ++ $ac_shift ++ CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ++ ac_need_defaults=false;; ++ --he | --h) ++ # Conflict between --help and --header ++ { echo "$as_me: error: ambiguous option: $1 ++Try \`$0 --help' for more information." >&2 ++ { (exit 1); exit 1; }; };; ++ --help | --hel | -h ) ++ echo "$ac_cs_usage"; exit ;; ++ -q | -quiet | --quiet | --quie | --qui | --qu | --q \ ++ | -silent | --silent | --silen | --sile | --sil | --si | --s) ++ ac_cs_silent=: ;; ++ ++ # This is an error. ++ -*) { echo "$as_me: error: unrecognized option: $1 ++Try \`$0 --help' for more information." >&2 ++ { (exit 1); exit 1; }; } ;; ++ ++ *) ac_config_targets="$ac_config_targets $1" ++ ac_need_defaults=false ;; ++ ++ esac ++ shift ++done ++ ++ac_configure_extra_args= ++ ++if $ac_cs_silent; then ++ exec 6>/dev/null ++ ac_configure_extra_args="$ac_configure_extra_args --silent" ++fi ++ ++_ACEOF ++cat >>$CONFIG_STATUS <<_ACEOF ++if \$ac_cs_recheck; then ++ echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 ++ CONFIG_SHELL=$SHELL ++ export CONFIG_SHELL ++ exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion ++fi ++ ++_ACEOF ++cat >>$CONFIG_STATUS <<\_ACEOF ++exec 5>>config.log ++{ ++ echo ++ sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX ++@%:@@%:@ Running $as_me. @%:@@%:@ ++_ASBOX ++ echo "$ac_log" ++} >&5 ++ ++_ACEOF ++cat >>$CONFIG_STATUS <<_ACEOF ++# ++# INIT-COMMANDS ++# ++AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" ++ ++ ++# The HP-UX ksh and POSIX shell print the target directory to stdout ++# if CDPATH is set. ++(unset CDPATH) >/dev/null 2>&1 && unset CDPATH ++ ++sed_quote_subst='$sed_quote_subst' ++double_quote_subst='$double_quote_subst' ++delay_variable_subst='$delay_variable_subst' ++enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' ++enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' ++NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' ++macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' ++macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' ++AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' ++DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' ++OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' ++pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' ++enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' ++host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' ++host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' ++host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' ++build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' ++build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' ++build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' ++SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' ++Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' ++GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' ++EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' ++FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' ++LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' ++LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' ++max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' ++ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' ++exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' ++lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' ++lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' ++lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' ++reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' ++reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' ++file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' ++AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' ++AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' ++STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' ++RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' ++old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' ++CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' ++compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' ++GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' ++lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' ++lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' ++lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' ++lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' ++objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' ++SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' ++ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' ++MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' ++lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' ++need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' ++DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' ++NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' ++LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' ++OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' ++OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' ++libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' ++shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' ++enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' ++export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' ++whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' ++old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' ++allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' ++no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' ++inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' ++link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' ++fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' ++always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' ++export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' ++include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' ++prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' ++variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' ++need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' ++need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' ++version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' ++runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' ++shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' ++shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' ++libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' ++library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' ++soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' ++postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' ++sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' ++sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' ++enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' ++enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' ++enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' ++old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' ++striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' ++predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' ++postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' ++predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' ++postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' ++LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++LD_F77='`$ECHO "X$LD_F77" | $Xsed -e "$delay_single_quote_subst"`' ++LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`' ++old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++old_archive_cmds_F77='`$ECHO "X$old_archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`' ++old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_F77='`$ECHO "X$compiler_F77" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`' ++GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++GCC_F77='`$ECHO "X$GCC_F77" | $Xsed -e "$delay_single_quote_subst"`' ++GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_no_builtin_flag_F77='`$ECHO "X$lt_prog_compiler_no_builtin_flag_F77" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_wl_F77='`$ECHO "X$lt_prog_compiler_wl_F77" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_pic_F77='`$ECHO "X$lt_prog_compiler_pic_F77" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_static_F77='`$ECHO "X$lt_prog_compiler_static_F77" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`' ++lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++lt_cv_prog_compiler_c_o_F77='`$ECHO "X$lt_cv_prog_compiler_c_o_F77" | $Xsed -e "$delay_single_quote_subst"`' ++lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`' ++archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++archive_cmds_need_lc_F77='`$ECHO "X$archive_cmds_need_lc_F77" | $Xsed -e "$delay_single_quote_subst"`' ++archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`' ++enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++enable_shared_with_static_runtimes_F77='`$ECHO "X$enable_shared_with_static_runtimes_F77" | $Xsed -e "$delay_single_quote_subst"`' ++enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`' ++export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++export_dynamic_flag_spec_F77='`$ECHO "X$export_dynamic_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`' ++export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' ++whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++whole_archive_flag_spec_F77='`$ECHO "X$whole_archive_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`' ++whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_needs_object_F77='`$ECHO "X$compiler_needs_object_F77" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`' ++old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++old_archive_from_new_cmds_F77='`$ECHO "X$old_archive_from_new_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`' ++old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' ++old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++old_archive_from_expsyms_cmds_F77='`$ECHO "X$old_archive_from_expsyms_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`' ++old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' ++archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++archive_cmds_F77='`$ECHO "X$archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`' ++archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' ++archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++archive_expsym_cmds_F77='`$ECHO "X$archive_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`' ++archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' ++module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++module_cmds_F77='`$ECHO "X$module_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`' ++module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' ++module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++module_expsym_cmds_F77='`$ECHO "X$module_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`' ++module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' ++with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++with_gnu_ld_F77='`$ECHO "X$with_gnu_ld_F77" | $Xsed -e "$delay_single_quote_subst"`' ++with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`' ++allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++allow_undefined_flag_F77='`$ECHO "X$allow_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`' ++allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`' ++no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++no_undefined_flag_F77='`$ECHO "X$no_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`' ++no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_libdir_flag_spec_F77='`$ECHO "X$hardcode_libdir_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_libdir_flag_spec_ld_F77='`$ECHO "X$hardcode_libdir_flag_spec_ld_F77" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_libdir_separator_F77='`$ECHO "X$hardcode_libdir_separator_F77" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_direct_F77='`$ECHO "X$hardcode_direct_F77" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_direct_absolute_F77='`$ECHO "X$hardcode_direct_absolute_F77" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_minus_L_F77='`$ECHO "X$hardcode_minus_L_F77" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_shlibpath_var_F77='`$ECHO "X$hardcode_shlibpath_var_F77" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_automatic_F77='`$ECHO "X$hardcode_automatic_F77" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`' ++inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++inherit_rpath_F77='`$ECHO "X$inherit_rpath_F77" | $Xsed -e "$delay_single_quote_subst"`' ++inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`' ++link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++link_all_deplibs_F77='`$ECHO "X$link_all_deplibs_F77" | $Xsed -e "$delay_single_quote_subst"`' ++link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`' ++fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++fix_srcfile_path_F77='`$ECHO "X$fix_srcfile_path_F77" | $Xsed -e "$delay_single_quote_subst"`' ++fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`' ++always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++always_export_symbols_F77='`$ECHO "X$always_export_symbols_F77" | $Xsed -e "$delay_single_quote_subst"`' ++always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`' ++export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++export_symbols_cmds_F77='`$ECHO "X$export_symbols_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`' ++export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' ++exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++exclude_expsyms_F77='`$ECHO "X$exclude_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`' ++exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`' ++include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++include_expsyms_F77='`$ECHO "X$include_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`' ++include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`' ++prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++prelink_cmds_F77='`$ECHO "X$prelink_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`' ++prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' ++file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++file_list_spec_F77='`$ECHO "X$file_list_spec_F77" | $Xsed -e "$delay_single_quote_subst"`' ++file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_action_F77='`$ECHO "X$hardcode_action_F77" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_lib_search_dirs_F77='`$ECHO "X$compiler_lib_search_dirs_F77" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_lib_search_dirs_FC='`$ECHO "X$compiler_lib_search_dirs_FC" | $Xsed -e "$delay_single_quote_subst"`' ++predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++predep_objects_F77='`$ECHO "X$predep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`' ++predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`' ++postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++postdep_objects_F77='`$ECHO "X$postdep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`' ++postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`' ++predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++predeps_F77='`$ECHO "X$predeps_F77" | $Xsed -e "$delay_single_quote_subst"`' ++predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`' ++postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++postdeps_F77='`$ECHO "X$postdeps_F77" | $Xsed -e "$delay_single_quote_subst"`' ++postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_lib_search_path_F77='`$ECHO "X$compiler_lib_search_path_F77" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`' ++ ++LTCC='$LTCC' ++LTCFLAGS='$LTCFLAGS' ++compiler='$compiler_DEFAULT' ++ ++# Quote evaled strings. ++for var in NM \ ++SED \ ++GREP \ ++EGREP \ ++FGREP \ ++LD \ ++LN_S \ ++lt_SP2NL \ ++lt_NL2SP \ ++reload_flag \ ++deplibs_check_method \ ++file_magic_cmd \ ++AR \ ++AR_FLAGS \ ++STRIP \ ++RANLIB \ ++CC \ ++CFLAGS \ ++compiler \ ++lt_cv_sys_global_symbol_pipe \ ++lt_cv_sys_global_symbol_to_cdecl \ ++lt_cv_sys_global_symbol_to_c_name_address \ ++lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ ++SHELL \ ++ECHO \ ++lt_prog_compiler_no_builtin_flag \ ++lt_prog_compiler_wl \ ++lt_prog_compiler_pic \ ++lt_prog_compiler_static \ ++lt_cv_prog_compiler_c_o \ ++need_locks \ ++DSYMUTIL \ ++NMEDIT \ ++LIPO \ ++OTOOL \ ++OTOOL64 \ ++shrext_cmds \ ++export_dynamic_flag_spec \ ++whole_archive_flag_spec \ ++compiler_needs_object \ ++with_gnu_ld \ ++allow_undefined_flag \ ++no_undefined_flag \ ++hardcode_libdir_flag_spec \ ++hardcode_libdir_flag_spec_ld \ ++hardcode_libdir_separator \ ++fix_srcfile_path \ ++exclude_expsyms \ ++include_expsyms \ ++file_list_spec \ ++variables_saved_for_relink \ ++libname_spec \ ++library_names_spec \ ++soname_spec \ ++finish_eval \ ++old_striplib \ ++striplib \ ++compiler_lib_search_dirs \ ++predep_objects \ ++postdep_objects \ ++predeps \ ++postdeps \ ++compiler_lib_search_path \ ++LD_CXX \ ++LD_F77 \ ++LD_FC \ ++compiler_CXX \ ++compiler_F77 \ ++compiler_FC \ ++lt_prog_compiler_no_builtin_flag_CXX \ ++lt_prog_compiler_no_builtin_flag_F77 \ ++lt_prog_compiler_no_builtin_flag_FC \ ++lt_prog_compiler_wl_CXX \ ++lt_prog_compiler_wl_F77 \ ++lt_prog_compiler_wl_FC \ ++lt_prog_compiler_pic_CXX \ ++lt_prog_compiler_pic_F77 \ ++lt_prog_compiler_pic_FC \ ++lt_prog_compiler_static_CXX \ ++lt_prog_compiler_static_F77 \ ++lt_prog_compiler_static_FC \ ++lt_cv_prog_compiler_c_o_CXX \ ++lt_cv_prog_compiler_c_o_F77 \ ++lt_cv_prog_compiler_c_o_FC \ ++export_dynamic_flag_spec_CXX \ ++export_dynamic_flag_spec_F77 \ ++export_dynamic_flag_spec_FC \ ++whole_archive_flag_spec_CXX \ ++whole_archive_flag_spec_F77 \ ++whole_archive_flag_spec_FC \ ++compiler_needs_object_CXX \ ++compiler_needs_object_F77 \ ++compiler_needs_object_FC \ ++with_gnu_ld_CXX \ ++with_gnu_ld_F77 \ ++with_gnu_ld_FC \ ++allow_undefined_flag_CXX \ ++allow_undefined_flag_F77 \ ++allow_undefined_flag_FC \ ++no_undefined_flag_CXX \ ++no_undefined_flag_F77 \ ++no_undefined_flag_FC \ ++hardcode_libdir_flag_spec_CXX \ ++hardcode_libdir_flag_spec_F77 \ ++hardcode_libdir_flag_spec_FC \ ++hardcode_libdir_flag_spec_ld_CXX \ ++hardcode_libdir_flag_spec_ld_F77 \ ++hardcode_libdir_flag_spec_ld_FC \ ++hardcode_libdir_separator_CXX \ ++hardcode_libdir_separator_F77 \ ++hardcode_libdir_separator_FC \ ++fix_srcfile_path_CXX \ ++fix_srcfile_path_F77 \ ++fix_srcfile_path_FC \ ++exclude_expsyms_CXX \ ++exclude_expsyms_F77 \ ++exclude_expsyms_FC \ ++include_expsyms_CXX \ ++include_expsyms_F77 \ ++include_expsyms_FC \ ++file_list_spec_CXX \ ++file_list_spec_F77 \ ++file_list_spec_FC \ ++compiler_lib_search_dirs_CXX \ ++compiler_lib_search_dirs_F77 \ ++compiler_lib_search_dirs_FC \ ++predep_objects_CXX \ ++predep_objects_F77 \ ++predep_objects_FC \ ++postdep_objects_CXX \ ++postdep_objects_F77 \ ++postdep_objects_FC \ ++predeps_CXX \ ++predeps_F77 \ ++predeps_FC \ ++postdeps_CXX \ ++postdeps_F77 \ ++postdeps_FC \ ++compiler_lib_search_path_CXX \ ++compiler_lib_search_path_F77 \ ++compiler_lib_search_path_FC; do ++ case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in ++ *[\\\\\\\`\\"\\\$]*) ++ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ++ ;; ++ *) ++ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ++ ;; ++ esac ++done ++ ++# Double-quote double-evaled strings. ++for var in reload_cmds \ ++old_postinstall_cmds \ ++old_postuninstall_cmds \ ++old_archive_cmds \ ++extract_expsyms_cmds \ ++old_archive_from_new_cmds \ ++old_archive_from_expsyms_cmds \ ++archive_cmds \ ++archive_expsym_cmds \ ++module_cmds \ ++module_expsym_cmds \ ++export_symbols_cmds \ ++prelink_cmds \ ++postinstall_cmds \ ++postuninstall_cmds \ ++finish_cmds \ ++sys_lib_search_path_spec \ ++sys_lib_dlsearch_path_spec \ ++old_archive_cmds_CXX \ ++old_archive_cmds_F77 \ ++old_archive_cmds_FC \ ++old_archive_from_new_cmds_CXX \ ++old_archive_from_new_cmds_F77 \ ++old_archive_from_new_cmds_FC \ ++old_archive_from_expsyms_cmds_CXX \ ++old_archive_from_expsyms_cmds_F77 \ ++old_archive_from_expsyms_cmds_FC \ ++archive_cmds_CXX \ ++archive_cmds_F77 \ ++archive_cmds_FC \ ++archive_expsym_cmds_CXX \ ++archive_expsym_cmds_F77 \ ++archive_expsym_cmds_FC \ ++module_cmds_CXX \ ++module_cmds_F77 \ ++module_cmds_FC \ ++module_expsym_cmds_CXX \ ++module_expsym_cmds_F77 \ ++module_expsym_cmds_FC \ ++export_symbols_cmds_CXX \ ++export_symbols_cmds_F77 \ ++export_symbols_cmds_FC \ ++prelink_cmds_CXX \ ++prelink_cmds_F77 \ ++prelink_cmds_FC; do ++ case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in ++ *[\\\\\\\`\\"\\\$]*) ++ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ++ ;; ++ *) ++ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ++ ;; ++ esac ++done ++ ++# Fix-up fallback echo if it was mangled by the above quoting rules. ++case \$lt_ECHO in ++*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` ++ ;; ++esac ++ ++ac_aux_dir='$ac_aux_dir' ++xsi_shell='$xsi_shell' ++lt_shell_append='$lt_shell_append' ++ ++# See if we are running on zsh, and set the options which allow our ++# commands through without removal of \ escapes INIT. ++if test -n "\${ZSH_VERSION+set}" ; then ++ setopt NO_GLOB_SUBST ++fi ++ ++ ++ PACKAGE='$PACKAGE' ++ VERSION='$VERSION' ++ TIMESTAMP='$TIMESTAMP' ++ RM='$RM' ++ ofile='$ofile' ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++_ACEOF ++ ++cat >>$CONFIG_STATUS <<\_ACEOF ++ ++# Handling of arguments. ++for ac_config_target in $ac_config_targets ++do ++ case $ac_config_target in ++ "ompi/include/ompi/version.h") CONFIG_FILES="$CONFIG_FILES ompi/include/ompi/version.h" ;; ++ "orte/include/orte/version.h") CONFIG_FILES="$CONFIG_FILES orte/include/orte/version.h" ;; ++ "opal/include/opal/version.h") CONFIG_FILES="$CONFIG_FILES opal/include/opal/version.h" ;; ++ "opal/include/opal_config.h") CONFIG_HEADERS="$CONFIG_HEADERS opal/include/opal_config.h" ;; ++ "orte/include/orte_config.h") CONFIG_HEADERS="$CONFIG_HEADERS orte/include/orte_config.h" ;; ++ "ompi/include/ompi_config.h") CONFIG_HEADERS="$CONFIG_HEADERS ompi/include/ompi_config.h" ;; ++ "ompi/include/mpi.h") CONFIG_HEADERS="$CONFIG_HEADERS ompi/include/mpi.h" ;; ++ "ompi/tools/wrappers/ompi_wrapper_script") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/ompi_wrapper_script" ;; ++ "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; ++ "opal/mca/installdirs/config/install_dirs.h") CONFIG_FILES="$CONFIG_FILES opal/mca/installdirs/config/install_dirs.h" ;; ++ "opal/mca/paffinity/linux/plpa/src/libplpa/plpa_config.h") CONFIG_HEADERS="$CONFIG_HEADERS opal/mca/paffinity/linux/plpa/src/libplpa/plpa_config.h" ;; ++ "opal/mca/paffinity/linux/plpa/src/libplpa/plpa.h") CONFIG_HEADERS="$CONFIG_HEADERS opal/mca/paffinity/linux/plpa/src/libplpa/plpa.h" ;; ++ "opal/mca/paffinity/linux/plpa/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/linux/plpa/Makefile" ;; ++ "opal/mca/paffinity/linux/plpa/config/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/linux/plpa/config/Makefile" ;; ++ "opal/mca/paffinity/linux/plpa/src/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/linux/plpa/src/Makefile" ;; ++ "opal/mca/paffinity/linux/plpa/src/libplpa/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/linux/plpa/src/libplpa/Makefile" ;; ++ "opal/mca/paffinity/linux/plpa/src/plpa-info/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/linux/plpa/src/plpa-info/Makefile" ;; ++ "opal/mca/paffinity/linux/plpa/src/plpa-taskset/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/linux/plpa/src/plpa-taskset/Makefile" ;; ++ "opal/mca/backtrace/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/backtrace/Makefile" ;; ++ "opal/mca/backtrace/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/backtrace/darwin/Makefile" ;; ++ "opal/mca/backtrace/execinfo/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/backtrace/execinfo/Makefile" ;; ++ "opal/mca/backtrace/none/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/backtrace/none/Makefile" ;; ++ "opal/mca/backtrace/printstack/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/backtrace/printstack/Makefile" ;; ++ "opal/mca/carto/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/carto/Makefile" ;; ++ "opal/mca/carto/auto_detect/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/carto/auto_detect/Makefile" ;; ++ "opal/mca/carto/file/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/carto/file/Makefile" ;; ++ "opal/mca/crs/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/crs/Makefile" ;; ++ "opal/mca/crs/blcr/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/crs/blcr/Makefile" ;; ++ "opal/mca/crs/none/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/crs/none/Makefile" ;; ++ "opal/mca/crs/self/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/crs/self/Makefile" ;; ++ "opal/mca/installdirs/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/installdirs/Makefile" ;; ++ "opal/mca/installdirs/config/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/installdirs/config/Makefile" ;; ++ "opal/mca/installdirs/env/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/installdirs/env/Makefile" ;; ++ "opal/mca/maffinity/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/maffinity/Makefile" ;; ++ "opal/mca/maffinity/first_use/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/maffinity/first_use/Makefile" ;; ++ "opal/mca/maffinity/libnuma/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/maffinity/libnuma/Makefile" ;; ++ "opal/mca/memchecker/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memchecker/Makefile" ;; ++ "opal/mca/memchecker/valgrind/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memchecker/valgrind/Makefile" ;; ++ "opal/mca/memcpy/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memcpy/Makefile" ;; ++ "opal/mca/memory/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memory/Makefile" ;; ++ "opal/mca/memory/malloc_solaris/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memory/malloc_solaris/Makefile" ;; ++ "opal/mca/memory/mallopt/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memory/mallopt/Makefile" ;; ++ "opal/mca/memory/ptmalloc2/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memory/ptmalloc2/Makefile" ;; ++ "opal/mca/paffinity/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/Makefile" ;; ++ "opal/mca/paffinity/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/darwin/Makefile" ;; ++ "opal/mca/paffinity/linux/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/linux/Makefile" ;; ++ "opal/mca/paffinity/posix/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/posix/Makefile" ;; ++ "opal/mca/paffinity/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/solaris/Makefile" ;; ++ "opal/mca/paffinity/windows/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/windows/Makefile" ;; ++ "opal/mca/timer/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/Makefile" ;; ++ "opal/mca/timer/aix/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/aix/Makefile" ;; ++ "opal/mca/timer/altix/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/altix/Makefile" ;; ++ "opal/mca/timer/catamount/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/catamount/Makefile" ;; ++ "opal/mca/timer/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/darwin/Makefile" ;; ++ "opal/mca/timer/linux/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/linux/Makefile" ;; ++ "opal/mca/timer/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/solaris/Makefile" ;; ++ "opal/mca/timer/windows/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/windows/Makefile" ;; ++ "orte/mca/errmgr/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/errmgr/Makefile" ;; ++ "orte/mca/errmgr/default/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/errmgr/default/Makefile" ;; ++ "orte/mca/ess/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/Makefile" ;; ++ "orte/mca/ess/alps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/alps/Makefile" ;; ++ "orte/mca/ess/cnos/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/cnos/Makefile" ;; ++ "orte/mca/ess/env/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/env/Makefile" ;; ++ "orte/mca/ess/hnp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/hnp/Makefile" ;; ++ "orte/mca/ess/lsf/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/lsf/Makefile" ;; ++ "orte/mca/ess/portals_utcp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/portals_utcp/Makefile" ;; ++ "orte/mca/ess/singleton/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/singleton/Makefile" ;; ++ "orte/mca/ess/slurm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/slurm/Makefile" ;; ++ "orte/mca/ess/tool/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/tool/Makefile" ;; ++ "orte/mca/filem/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/filem/Makefile" ;; ++ "orte/mca/filem/rsh/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/filem/rsh/Makefile" ;; ++ "orte/mca/grpcomm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/grpcomm/Makefile" ;; ++ "orte/mca/grpcomm/bad/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/grpcomm/bad/Makefile" ;; ++ "orte/mca/grpcomm/basic/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/grpcomm/basic/Makefile" ;; ++ "orte/mca/grpcomm/cnos/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/grpcomm/cnos/Makefile" ;; ++ "orte/mca/iof/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/iof/Makefile" ;; ++ "orte/mca/iof/hnp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/iof/hnp/Makefile" ;; ++ "orte/mca/iof/orted/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/iof/orted/Makefile" ;; ++ "orte/mca/iof/tool/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/iof/tool/Makefile" ;; ++ "orte/mca/notifier/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/notifier/Makefile" ;; ++ "orte/mca/notifier/syslog/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/notifier/syslog/Makefile" ;; ++ "orte/mca/odls/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/odls/Makefile" ;; ++ "orte/mca/odls/default/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/odls/default/Makefile" ;; ++ "orte/mca/oob/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/oob/Makefile" ;; ++ "orte/mca/oob/tcp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/oob/tcp/Makefile" ;; ++ "orte/mca/plm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/Makefile" ;; ++ "orte/mca/plm/alps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/alps/Makefile" ;; ++ "orte/mca/plm/lsf/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/lsf/Makefile" ;; ++ "orte/mca/plm/rsh/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/rsh/Makefile" ;; ++ "orte/mca/plm/slurm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/slurm/Makefile" ;; ++ "orte/mca/plm/tm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/tm/Makefile" ;; ++ "orte/mca/plm/xgrid/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/xgrid/Makefile" ;; ++ "orte/mca/ras/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/Makefile" ;; ++ "orte/mca/ras/alps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/alps/Makefile" ;; ++ "orte/mca/ras/gridengine/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/gridengine/Makefile" ;; ++ "orte/mca/ras/loadleveler/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/loadleveler/Makefile" ;; ++ "orte/mca/ras/lsf/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/lsf/Makefile" ;; ++ "orte/mca/ras/slurm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/slurm/Makefile" ;; ++ "orte/mca/ras/tm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/tm/Makefile" ;; ++ "orte/mca/rmaps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/Makefile" ;; ++ "orte/mca/rmaps/rank_file/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/rank_file/Makefile" ;; ++ "orte/mca/rmaps/round_robin/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/round_robin/Makefile" ;; ++ "orte/mca/rmaps/seq/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/seq/Makefile" ;; ++ "orte/mca/rml/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rml/Makefile" ;; ++ "orte/mca/rml/ftrm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rml/ftrm/Makefile" ;; ++ "orte/mca/rml/oob/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rml/oob/Makefile" ;; ++ "orte/mca/routed/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/routed/Makefile" ;; ++ "orte/mca/routed/binomial/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/routed/binomial/Makefile" ;; ++ "orte/mca/routed/direct/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/routed/direct/Makefile" ;; ++ "orte/mca/routed/linear/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/routed/linear/Makefile" ;; ++ "orte/mca/snapc/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/snapc/Makefile" ;; ++ "orte/mca/snapc/full/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/snapc/full/Makefile" ;; ++ "ompi/mca/allocator/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/allocator/Makefile" ;; ++ "ompi/mca/allocator/basic/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/allocator/basic/Makefile" ;; ++ "ompi/mca/allocator/bucket/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/allocator/bucket/Makefile" ;; ++ "ompi/mca/bml/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/bml/Makefile" ;; ++ "ompi/mca/bml/r2/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/bml/r2/Makefile" ;; ++ "ompi/mca/btl/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/Makefile" ;; ++ "ompi/mca/btl/elan/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/elan/Makefile" ;; ++ "ompi/mca/btl/gm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/gm/Makefile" ;; ++ "ompi/mca/btl/mx/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/mx/Makefile" ;; ++ "ompi/mca/btl/ofud/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/ofud/Makefile" ;; ++ "ompi/mca/btl/openib/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/openib/Makefile" ;; ++ "ompi/mca/btl/portals/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/portals/Makefile" ;; ++ "ompi/mca/btl/self/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/self/Makefile" ;; ++ "ompi/mca/btl/sm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/sm/Makefile" ;; ++ "ompi/mca/btl/tcp/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/tcp/Makefile" ;; ++ "ompi/mca/btl/udapl/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/udapl/Makefile" ;; ++ "ompi/mca/coll/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/Makefile" ;; ++ "ompi/mca/coll/basic/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/basic/Makefile" ;; ++ "ompi/mca/coll/hierarch/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/hierarch/Makefile" ;; ++ "ompi/mca/coll/inter/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/inter/Makefile" ;; ++ "ompi/mca/coll/self/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/self/Makefile" ;; ++ "ompi/mca/coll/sm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/sm/Makefile" ;; ++ "ompi/mca/coll/tuned/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/tuned/Makefile" ;; ++ "ompi/mca/common/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/common/Makefile" ;; ++ "ompi/mca/common/mx/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/common/mx/Makefile" ;; ++ "ompi/mca/common/portals/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/common/portals/Makefile" ;; ++ "ompi/mca/common/sm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/common/sm/Makefile" ;; ++ "ompi/mca/crcp/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/crcp/Makefile" ;; ++ "ompi/mca/crcp/bkmrk/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/crcp/bkmrk/Makefile" ;; ++ "ompi/mca/dpm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/dpm/Makefile" ;; ++ "ompi/mca/dpm/orte/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/dpm/orte/Makefile" ;; ++ "ompi/mca/io/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/io/Makefile" ;; ++ "ompi/mca/io/romio/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/io/romio/Makefile" ;; ++ "ompi/mca/mpool/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/Makefile" ;; ++ "ompi/mca/mpool/fake/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/fake/Makefile" ;; ++ "ompi/mca/mpool/rdma/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/rdma/Makefile" ;; ++ "ompi/mca/mpool/sm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/sm/Makefile" ;; ++ "ompi/mca/mtl/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mtl/Makefile" ;; ++ "ompi/mca/mtl/mx/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mtl/mx/Makefile" ;; ++ "ompi/mca/mtl/portals/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mtl/portals/Makefile" ;; ++ "ompi/mca/mtl/psm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mtl/psm/Makefile" ;; ++ "ompi/mca/osc/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/osc/Makefile" ;; ++ "ompi/mca/osc/pt2pt/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/osc/pt2pt/Makefile" ;; ++ "ompi/mca/osc/rdma/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/osc/rdma/Makefile" ;; ++ "ompi/mca/pml/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/Makefile" ;; ++ "ompi/mca/pml/cm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/cm/Makefile" ;; ++ "ompi/mca/pml/crcpw/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/crcpw/Makefile" ;; ++ "ompi/mca/pml/ob1/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/ob1/Makefile" ;; ++ "ompi/mca/pml/v/mca/vprotocol/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/v/mca/vprotocol/Makefile" ;; ++ "ompi/mca/pml/v/mca/vprotocol/pessimist/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/v/mca/vprotocol/pessimist/Makefile" ;; ++ "ompi/mca/pml/v/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/v/Makefile" ;; ++ "ompi/mca/pubsub/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pubsub/Makefile" ;; ++ "ompi/mca/pubsub/orte/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pubsub/orte/Makefile" ;; ++ "ompi/mca/rcache/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/rcache/Makefile" ;; ++ "ompi/mca/rcache/vma/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/rcache/vma/Makefile" ;; ++ "ompi/mca/topo/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/topo/Makefile" ;; ++ "ompi/mca/topo/unity/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/topo/unity/Makefile" ;; ++ "ompi/contrib/vt/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/contrib/vt/Makefile" ;; ++ "ompi/contrib/vt/wrappers/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/contrib/vt/wrappers/Makefile" ;; ++ "ompi/contrib/vt/wrappers/mpicc-vt-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/contrib/vt/wrappers/mpicc-vt-wrapper-data.txt" ;; ++ "ompi/contrib/vt/wrappers/mpic++-vt-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/contrib/vt/wrappers/mpic++-vt-wrapper-data.txt" ;; ++ "ompi/contrib/vt/wrappers/mpif77-vt-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/contrib/vt/wrappers/mpif77-vt-wrapper-data.txt" ;; ++ "ompi/contrib/vt/wrappers/mpif90-vt-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/contrib/vt/wrappers/mpif90-vt-wrapper-data.txt" ;; ++ "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; ++ "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; ++ "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; ++ "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; ++ "opal/Makefile") CONFIG_FILES="$CONFIG_FILES opal/Makefile" ;; ++ "opal/etc/Makefile") CONFIG_FILES="$CONFIG_FILES opal/etc/Makefile" ;; ++ "opal/include/Makefile") CONFIG_FILES="$CONFIG_FILES opal/include/Makefile" ;; ++ "opal/asm/Makefile") CONFIG_FILES="$CONFIG_FILES opal/asm/Makefile" ;; ++ "opal/event/Makefile") CONFIG_FILES="$CONFIG_FILES opal/event/Makefile" ;; ++ "opal/event/compat/Makefile") CONFIG_FILES="$CONFIG_FILES opal/event/compat/Makefile" ;; ++ "opal/event/compat/sys/Makefile") CONFIG_FILES="$CONFIG_FILES opal/event/compat/sys/Makefile" ;; ++ "opal/util/Makefile") CONFIG_FILES="$CONFIG_FILES opal/util/Makefile" ;; ++ "opal/util/keyval/Makefile") CONFIG_FILES="$CONFIG_FILES opal/util/keyval/Makefile" ;; ++ "opal/mca/base/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/base/Makefile" ;; ++ "opal/tools/wrappers/Makefile") CONFIG_FILES="$CONFIG_FILES opal/tools/wrappers/Makefile" ;; ++ "opal/tools/wrappers/opalcc-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES opal/tools/wrappers/opalcc-wrapper-data.txt" ;; ++ "opal/tools/wrappers/opalc++-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES opal/tools/wrappers/opalc++-wrapper-data.txt" ;; ++ "opal/tools/opal-checkpoint/Makefile") CONFIG_FILES="$CONFIG_FILES opal/tools/opal-checkpoint/Makefile" ;; ++ "opal/tools/opal-restart/Makefile") CONFIG_FILES="$CONFIG_FILES opal/tools/opal-restart/Makefile" ;; ++ "orte/Makefile") CONFIG_FILES="$CONFIG_FILES orte/Makefile" ;; ++ "orte/include/Makefile") CONFIG_FILES="$CONFIG_FILES orte/include/Makefile" ;; ++ "orte/etc/Makefile") CONFIG_FILES="$CONFIG_FILES orte/etc/Makefile" ;; ++ "orte/tools/orted/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orted/Makefile" ;; ++ "orte/tools/orterun/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orterun/Makefile" ;; ++ "orte/tools/wrappers/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/wrappers/Makefile" ;; ++ "orte/tools/wrappers/ortecc-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES orte/tools/wrappers/ortecc-wrapper-data.txt" ;; ++ "orte/tools/wrappers/ortec++-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES orte/tools/wrappers/ortec++-wrapper-data.txt" ;; ++ "orte/tools/orte-checkpoint/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orte-checkpoint/Makefile" ;; ++ "orte/tools/orte-iof/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orte-iof/Makefile" ;; ++ "orte/tools/orte-restart/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orte-restart/Makefile" ;; ++ "orte/tools/orte-ps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orte-ps/Makefile" ;; ++ "orte/tools/orte-clean/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orte-clean/Makefile" ;; ++ "ompi/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/Makefile" ;; ++ "ompi/etc/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/etc/Makefile" ;; ++ "ompi/include/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/include/Makefile" ;; ++ "ompi/include/mpif.h") CONFIG_FILES="$CONFIG_FILES ompi/include/mpif.h" ;; ++ "ompi/include/mpif-config.h") CONFIG_FILES="$CONFIG_FILES ompi/include/mpif-config.h" ;; ++ "ompi/datatype/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/datatype/Makefile" ;; ++ "ompi/debuggers/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/debuggers/Makefile" ;; ++ "ompi/mpi/c/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/c/Makefile" ;; ++ "ompi/mpi/c/profile/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/c/profile/Makefile" ;; ++ "ompi/mpi/cxx/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/cxx/Makefile" ;; ++ "ompi/mpi/f77/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/f77/Makefile" ;; ++ "ompi/mpi/f77/profile/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/f77/profile/Makefile" ;; ++ "ompi/mpi/f90/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/f90/Makefile" ;; ++ "ompi/mpi/f90/fortran_kinds.sh") CONFIG_FILES="$CONFIG_FILES ompi/mpi/f90/fortran_kinds.sh" ;; ++ "ompi/mpi/f90/fortran_sizes.h") CONFIG_FILES="$CONFIG_FILES ompi/mpi/f90/fortran_sizes.h" ;; ++ "ompi/mpi/f90/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/f90/scripts/Makefile" ;; ++ "ompi/tools/ompi_info/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/tools/ompi_info/Makefile" ;; ++ "ompi/tools/wrappers/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/Makefile" ;; ++ "ompi/tools/wrappers/mpicc-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/mpicc-wrapper-data.txt" ;; ++ "ompi/tools/wrappers/mpic++-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/mpic++-wrapper-data.txt" ;; ++ "ompi/tools/wrappers/mpif77-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/mpif77-wrapper-data.txt" ;; ++ "ompi/tools/wrappers/mpif90-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/mpif90-wrapper-data.txt" ;; ++ "ompi/tools/ortetools/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/tools/ortetools/Makefile" ;; ++ "ompi/tools/ompi-server/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/tools/ompi-server/Makefile" ;; ++ "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; ++ "test/event/Makefile") CONFIG_FILES="$CONFIG_FILES test/event/Makefile" ;; ++ "test/asm/Makefile") CONFIG_FILES="$CONFIG_FILES test/asm/Makefile" ;; ++ "test/class/Makefile") CONFIG_FILES="$CONFIG_FILES test/class/Makefile" ;; ++ "test/support/Makefile") CONFIG_FILES="$CONFIG_FILES test/support/Makefile" ;; ++ "test/threads/Makefile") CONFIG_FILES="$CONFIG_FILES test/threads/Makefile" ;; ++ "test/peruse/Makefile") CONFIG_FILES="$CONFIG_FILES test/peruse/Makefile" ;; ++ "test/datatype/Makefile") CONFIG_FILES="$CONFIG_FILES test/datatype/Makefile" ;; ++ ++ *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 ++echo "$as_me: error: invalid argument: $ac_config_target" >&2;} ++ { (exit 1); exit 1; }; };; ++ esac ++done ++ ++ ++# If the user did not use the arguments to specify the items to instantiate, ++# then the envvar interface is used. Set only those that are not. ++# We use the long form for the default assignment because of an extremely ++# bizarre bug on SunOS 4.1.3. ++if $ac_need_defaults; then ++ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files ++ test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers ++ test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands ++fi ++ ++# Have a temporary directory for convenience. Make it in the build tree ++# simply because there is no reason against having it here, and in addition, ++# creating and moving files from /tmp can sometimes cause problems. ++# Hook for its removal unless debugging. ++# Note that there is a small window in which the directory will not be cleaned: ++# after its creation but before its name has been assigned to `$tmp'. ++$debug || ++{ ++ tmp= ++ trap 'exit_status=$? ++ { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ++' 0 ++ trap '{ (exit 1); exit 1; }' 1 2 13 15 ++} ++# Create a (secure) tmp directory for tmp files. ++ ++{ ++ tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && ++ test -n "$tmp" && test -d "$tmp" ++} || ++{ ++ tmp=./conf$$-$RANDOM ++ (umask 077 && mkdir "$tmp") ++} || ++{ ++ echo "$me: cannot create a temporary directory in ." >&2 ++ { (exit 1); exit 1; } ++} ++ ++# ++# Set up the sed scripts for CONFIG_FILES section. ++# ++ ++# No need to generate the scripts if there are no CONFIG_FILES. ++# This happens for instance when ./config.status config.h ++if test -n "$CONFIG_FILES"; then ++ ++_ACEOF ++ ++ ++ ++ac_delim='%!_!# ' ++for ac_last_try in false false false false false :; do ++ cat >conf$$subs.sed <<_ACEOF ++SHELL!$SHELL$ac_delim ++PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim ++PACKAGE_NAME!$PACKAGE_NAME$ac_delim ++PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim ++PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim ++PACKAGE_STRING!$PACKAGE_STRING$ac_delim ++PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim ++exec_prefix!$exec_prefix$ac_delim ++prefix!$prefix$ac_delim ++program_transform_name!$program_transform_name$ac_delim ++bindir!$bindir$ac_delim ++sbindir!$sbindir$ac_delim ++libexecdir!$libexecdir$ac_delim ++datarootdir!$datarootdir$ac_delim ++datadir!$datadir$ac_delim ++sysconfdir!$sysconfdir$ac_delim ++sharedstatedir!$sharedstatedir$ac_delim ++localstatedir!$localstatedir$ac_delim ++includedir!$includedir$ac_delim ++oldincludedir!$oldincludedir$ac_delim ++docdir!$docdir$ac_delim ++infodir!$infodir$ac_delim ++htmldir!$htmldir$ac_delim ++dvidir!$dvidir$ac_delim ++pdfdir!$pdfdir$ac_delim ++psdir!$psdir$ac_delim ++libdir!$libdir$ac_delim ++localedir!$localedir$ac_delim ++mandir!$mandir$ac_delim ++DEFS!$DEFS$ac_delim ++ECHO_C!$ECHO_C$ac_delim ++ECHO_N!$ECHO_N$ac_delim ++ECHO_T!$ECHO_T$ac_delim ++LIBS!$LIBS$ac_delim ++build_alias!$build_alias$ac_delim ++host_alias!$host_alias$ac_delim ++target_alias!$target_alias$ac_delim ++OPAL_DEFAULT_MCA_PARAM_CONF!$OPAL_DEFAULT_MCA_PARAM_CONF$ac_delim ++OPAL_PARAM_FROM_PLATFORM!$OPAL_PARAM_FROM_PLATFORM$ac_delim ++INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim ++INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim ++INSTALL_DATA!$INSTALL_DATA$ac_delim ++am__isrc!$am__isrc$ac_delim ++CYGPATH_W!$CYGPATH_W$ac_delim ++PACKAGE!$PACKAGE$ac_delim ++VERSION!$VERSION$ac_delim ++ACLOCAL!$ACLOCAL$ac_delim ++AUTOCONF!$AUTOCONF$ac_delim ++AUTOMAKE!$AUTOMAKE$ac_delim ++AUTOHEADER!$AUTOHEADER$ac_delim ++MAKEINFO!$MAKEINFO$ac_delim ++install_sh!$install_sh$ac_delim ++STRIP!$STRIP$ac_delim ++INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim ++mkdir_p!$mkdir_p$ac_delim ++AWK!$AWK$ac_delim ++SET_MAKE!$SET_MAKE$ac_delim ++am__leading_dot!$am__leading_dot$ac_delim ++AMTAR!$AMTAR$ac_delim ++am__tar!$am__tar$ac_delim ++am__untar!$am__untar$ac_delim ++CONFIGURE_DEPENDENCIES!$CONFIGURE_DEPENDENCIES$ac_delim ++OMPI_CONFIGURE_USER!$OMPI_CONFIGURE_USER$ac_delim ++OMPI_CONFIGURE_HOST!$OMPI_CONFIGURE_HOST$ac_delim ++OMPI_CONFIGURE_DATE!$OMPI_CONFIGURE_DATE$ac_delim ++OMPI_MAJOR_VERSION!$OMPI_MAJOR_VERSION$ac_delim ++OMPI_MINOR_VERSION!$OMPI_MINOR_VERSION$ac_delim ++OMPI_RELEASE_VERSION!$OMPI_RELEASE_VERSION$ac_delim ++OMPI_GREEK_VERSION!$OMPI_GREEK_VERSION$ac_delim ++OMPI_WANT_SVN!$OMPI_WANT_SVN$ac_delim ++OMPI_SVN_R!$OMPI_SVN_R$ac_delim ++OMPI_VERSION!$OMPI_VERSION$ac_delim ++OMPI_RELEASE_DATE!$OMPI_RELEASE_DATE$ac_delim ++ORTE_MAJOR_VERSION!$ORTE_MAJOR_VERSION$ac_delim ++ORTE_MINOR_VERSION!$ORTE_MINOR_VERSION$ac_delim ++ORTE_RELEASE_VERSION!$ORTE_RELEASE_VERSION$ac_delim ++ORTE_GREEK_VERSION!$ORTE_GREEK_VERSION$ac_delim ++ORTE_WANT_SVN!$ORTE_WANT_SVN$ac_delim ++ORTE_SVN_R!$ORTE_SVN_R$ac_delim ++ORTE_VERSION!$ORTE_VERSION$ac_delim ++ORTE_RELEASE_DATE!$ORTE_RELEASE_DATE$ac_delim ++OPAL_MAJOR_VERSION!$OPAL_MAJOR_VERSION$ac_delim ++OPAL_MINOR_VERSION!$OPAL_MINOR_VERSION$ac_delim ++OPAL_RELEASE_VERSION!$OPAL_RELEASE_VERSION$ac_delim ++OPAL_GREEK_VERSION!$OPAL_GREEK_VERSION$ac_delim ++OPAL_WANT_SVN!$OPAL_WANT_SVN$ac_delim ++OPAL_SVN_R!$OPAL_SVN_R$ac_delim ++OPAL_VERSION!$OPAL_VERSION$ac_delim ++OPAL_RELEASE_DATE!$OPAL_RELEASE_DATE$ac_delim ++OMPI_TOP_BUILDDIR!$OMPI_TOP_BUILDDIR$ac_delim ++OMPI_TOP_SRCDIR!$OMPI_TOP_SRCDIR$ac_delim ++CLEANFILES!$CLEANFILES$ac_delim ++build!$build$ac_delim ++build_cpu!$build_cpu$ac_delim ++build_vendor!$build_vendor$ac_delim ++build_os!$build_os$ac_delim ++host!$host$ac_delim ++_ACEOF ++ ++ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then ++ break ++ elif $ac_last_try; then ++ { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 ++echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ ac_delim="$ac_delim!$ac_delim _$ac_delim!! " ++ fi ++done ++ ++ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` ++if test -n "$ac_eof"; then ++ ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ++ ac_eof=`expr $ac_eof + 1` ++fi ++ ++cat >>$CONFIG_STATUS <<_ACEOF ++cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b ++_ACEOF ++sed ' ++s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g ++s/^/s,@/; s/!/@,|#_!!_#|/ ++:n ++t n ++s/'"$ac_delim"'$/,g/; t ++s/$/\\/; p ++N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ++' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF ++CEOF$ac_eof ++_ACEOF ++ ++ ++ac_delim='%!_!# ' ++for ac_last_try in false false false false false :; do ++ cat >conf$$subs.sed <<_ACEOF ++host_cpu!$host_cpu$ac_delim ++host_vendor!$host_vendor$ac_delim ++host_os!$host_os$ac_delim ++ac_prefix_program!$ac_prefix_program$ac_delim ++top_ompi_srcdir!$top_ompi_srcdir$ac_delim ++top_ompi_builddir!$top_ompi_builddir$ac_delim ++OMPI_WANT_BUILD_F90_TRIVIAL_TRUE!$OMPI_WANT_BUILD_F90_TRIVIAL_TRUE$ac_delim ++OMPI_WANT_BUILD_F90_TRIVIAL_FALSE!$OMPI_WANT_BUILD_F90_TRIVIAL_FALSE$ac_delim ++OMPI_WANT_BUILD_F90_SMALL_TRUE!$OMPI_WANT_BUILD_F90_SMALL_TRUE$ac_delim ++OMPI_WANT_BUILD_F90_SMALL_FALSE!$OMPI_WANT_BUILD_F90_SMALL_FALSE$ac_delim ++OMPI_WANT_BUILD_F90_MEDIUM_TRUE!$OMPI_WANT_BUILD_F90_MEDIUM_TRUE$ac_delim ++OMPI_WANT_BUILD_F90_MEDIUM_FALSE!$OMPI_WANT_BUILD_F90_MEDIUM_FALSE$ac_delim ++OMPI_WANT_BUILD_F90_LARGE_TRUE!$OMPI_WANT_BUILD_F90_LARGE_TRUE$ac_delim ++OMPI_WANT_BUILD_F90_LARGE_FALSE!$OMPI_WANT_BUILD_F90_LARGE_FALSE$ac_delim ++OMPI_F90_BUILD_SIZE!$OMPI_F90_BUILD_SIZE$ac_delim ++MPIF_H_PMPI_W_FUNCS!$MPIF_H_PMPI_W_FUNCS$ac_delim ++WANT_INSTALL_HEADERS_TRUE!$WANT_INSTALL_HEADERS_TRUE$ac_delim ++WANT_INSTALL_HEADERS_FALSE!$WANT_INSTALL_HEADERS_FALSE$ac_delim ++WANT_PERUSE_TRUE!$WANT_PERUSE_TRUE$ac_delim ++WANT_PERUSE_FALSE!$WANT_PERUSE_FALSE$ac_delim ++OMPI_FORTRAN_MAX_ARRAY_RANK!$OMPI_FORTRAN_MAX_ARRAY_RANK$ac_delim ++ORTE_DISABLE_FULL_SUPPORT_TRUE!$ORTE_DISABLE_FULL_SUPPORT_TRUE$ac_delim ++ORTE_DISABLE_FULL_SUPPORT_FALSE!$ORTE_DISABLE_FULL_SUPPORT_FALSE$ac_delim ++WANT_FT_TRUE!$WANT_FT_TRUE$ac_delim ++WANT_FT_FALSE!$WANT_FT_FALSE$ac_delim ++OMPI_INSTALL_BINARIES_TRUE!$OMPI_INSTALL_BINARIES_TRUE$ac_delim ++OMPI_INSTALL_BINARIES_FALSE!$OMPI_INSTALL_BINARIES_FALSE$ac_delim ++OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_TRUE!$OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_TRUE$ac_delim ++OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_FALSE!$OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_FALSE$ac_delim ++CC!$CC$ac_delim ++CFLAGS!$CFLAGS$ac_delim ++LDFLAGS!$LDFLAGS$ac_delim ++CPPFLAGS!$CPPFLAGS$ac_delim ++ac_ct_CC!$ac_ct_CC$ac_delim ++EXEEXT!$EXEEXT$ac_delim ++OBJEXT!$OBJEXT$ac_delim ++DEPDIR!$DEPDIR$ac_delim ++am__include!$am__include$ac_delim ++am__quote!$am__quote$ac_delim ++AMDEP_TRUE!$AMDEP_TRUE$ac_delim ++AMDEP_FALSE!$AMDEP_FALSE$ac_delim ++AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim ++CCDEPMODE!$CCDEPMODE$ac_delim ++am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim ++am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim ++OMPI_CC_ABSOLUTE!$OMPI_CC_ABSOLUTE$ac_delim ++CPP!$CPP$ac_delim ++GREP!$GREP$ac_delim ++EGREP!$EGREP$ac_delim ++CFLAGS_WITHOUT_OPTFLAGS!$CFLAGS_WITHOUT_OPTFLAGS$ac_delim ++OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE!$OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE$ac_delim ++OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE!$OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE$ac_delim ++WANT_MPI_BINDINGS_LAYER_TRUE!$WANT_MPI_BINDINGS_LAYER_TRUE$ac_delim ++WANT_MPI_BINDINGS_LAYER_FALSE!$WANT_MPI_BINDINGS_LAYER_FALSE$ac_delim ++WANT_PMPI_BINDINGS_LAYER_TRUE!$WANT_PMPI_BINDINGS_LAYER_TRUE$ac_delim ++WANT_PMPI_BINDINGS_LAYER_FALSE!$WANT_PMPI_BINDINGS_LAYER_FALSE$ac_delim ++COMPILE_PROFILING_SEPARATELY_TRUE!$COMPILE_PROFILING_SEPARATELY_TRUE$ac_delim ++COMPILE_PROFILING_SEPARATELY_FALSE!$COMPILE_PROFILING_SEPARATELY_FALSE$ac_delim ++CXX!$CXX$ac_delim ++CXXFLAGS!$CXXFLAGS$ac_delim ++ac_ct_CXX!$ac_ct_CXX$ac_delim ++CXXDEPMODE!$CXXDEPMODE$ac_delim ++am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim ++am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim ++CXXCPP!$CXXCPP$ac_delim ++OMPI_CXX_ABSOLUTE!$OMPI_CXX_ABSOLUTE$ac_delim ++WANT_MPI_CXX_BINDINGS_TRUE!$WANT_MPI_CXX_BINDINGS_TRUE$ac_delim ++WANT_MPI_CXX_BINDINGS_FALSE!$WANT_MPI_CXX_BINDINGS_FALSE$ac_delim ++CCAS!$CCAS$ac_delim ++CCASFLAGS!$CCASFLAGS$ac_delim ++CCASDEPMODE!$CCASDEPMODE$ac_delim ++am__fastdepCCAS_TRUE!$am__fastdepCCAS_TRUE$ac_delim ++am__fastdepCCAS_FALSE!$am__fastdepCCAS_FALSE$ac_delim ++OMPI_ASM_TEXT!$OMPI_ASM_TEXT$ac_delim ++OMPI_AS_GLOBAL!$OMPI_AS_GLOBAL$ac_delim ++OBJDUMP!$OBJDUMP$ac_delim ++OMPI_AS_LABEL_SUFFIX!$OMPI_AS_LABEL_SUFFIX$ac_delim ++OMPI_ASM_GSYM!$OMPI_ASM_GSYM$ac_delim ++DUMPBIN!$DUMPBIN$ac_delim ++ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim ++NM!$NM$ac_delim ++OMPI_ASM_LSYM!$OMPI_ASM_LSYM$ac_delim ++OMPI_ASM_TYPE!$OMPI_ASM_TYPE$ac_delim ++OMPI_ASM_SUPPORT_64BIT!$OMPI_ASM_SUPPORT_64BIT$ac_delim ++OMPI_ASSEMBLY_FORMAT!$OMPI_ASSEMBLY_FORMAT$ac_delim ++OMPI_ASSEMBLY_ARCH!$OMPI_ASSEMBLY_ARCH$ac_delim ++FGREP!$FGREP$ac_delim ++PERL!$PERL$ac_delim ++OMPI_HAVE_ASM_FILE_TRUE!$OMPI_HAVE_ASM_FILE_TRUE$ac_delim ++OMPI_HAVE_ASM_FILE_FALSE!$OMPI_HAVE_ASM_FILE_FALSE$ac_delim ++OMPI_ASM_FILE!$OMPI_ASM_FILE$ac_delim ++F77!$F77$ac_delim ++FFLAGS!$FFLAGS$ac_delim ++ac_ct_F77!$ac_ct_F77$ac_delim ++OMPI_WANT_F77_BINDINGS_TRUE!$OMPI_WANT_F77_BINDINGS_TRUE$ac_delim ++OMPI_WANT_F77_BINDINGS_FALSE!$OMPI_WANT_F77_BINDINGS_FALSE$ac_delim ++OMPI_F77_ABSOLUTE!$OMPI_F77_ABSOLUTE$ac_delim ++_ACEOF ++ ++ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then ++ break ++ elif $ac_last_try; then ++ { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 ++echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ ac_delim="$ac_delim!$ac_delim _$ac_delim!! " ++ fi ++done ++ ++ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` ++if test -n "$ac_eof"; then ++ ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ++ ac_eof=`expr $ac_eof + 1` ++fi ++ ++cat >>$CONFIG_STATUS <<_ACEOF ++cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b ++_ACEOF ++sed ' ++s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g ++s/^/s,@/; s/!/@,|#_!!_#|/ ++:n ++t n ++s/'"$ac_delim"'$/,g/; t ++s/$/\\/; p ++N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ++' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF ++CEOF$ac_eof ++_ACEOF ++ ++ ++ac_delim='%!_!# ' ++for ac_last_try in false false false false false :; do ++ cat >conf$$subs.sed <<_ACEOF ++WANT_MPI_F77_BINDINGS_LAYER_TRUE!$WANT_MPI_F77_BINDINGS_LAYER_TRUE$ac_delim ++WANT_MPI_F77_BINDINGS_LAYER_FALSE!$WANT_MPI_F77_BINDINGS_LAYER_FALSE$ac_delim ++WANT_PMPI_F77_BINDINGS_LAYER_TRUE!$WANT_PMPI_F77_BINDINGS_LAYER_TRUE$ac_delim ++WANT_PMPI_F77_BINDINGS_LAYER_FALSE!$WANT_PMPI_F77_BINDINGS_LAYER_FALSE$ac_delim ++FC!$FC$ac_delim ++FCFLAGS!$FCFLAGS$ac_delim ++ac_ct_FC!$ac_ct_FC$ac_delim ++OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS!$OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS$ac_delim ++FCFLAGS_f!$FCFLAGS_f$ac_delim ++FCFLAGS_f90!$FCFLAGS_f90$ac_delim ++OMPI_WANT_F90_BINDINGS_TRUE!$OMPI_WANT_F90_BINDINGS_TRUE$ac_delim ++OMPI_WANT_F90_BINDINGS_FALSE!$OMPI_WANT_F90_BINDINGS_FALSE$ac_delim ++OMPI_F90_ABSOLUTE!$OMPI_F90_ABSOLUTE$ac_delim ++OMPI_FC_MODULE_FLAG!$OMPI_FC_MODULE_FLAG$ac_delim ++OMPI_SIZEOF_F90_LOGICAL!$OMPI_SIZEOF_F90_LOGICAL$ac_delim ++OMPI_SIZEOF_F90_LOGICAL1!$OMPI_SIZEOF_F90_LOGICAL1$ac_delim ++OMPI_SIZEOF_F90_LOGICAL2!$OMPI_SIZEOF_F90_LOGICAL2$ac_delim ++OMPI_SIZEOF_F90_LOGICAL4!$OMPI_SIZEOF_F90_LOGICAL4$ac_delim ++OMPI_SIZEOF_F90_LOGICAL8!$OMPI_SIZEOF_F90_LOGICAL8$ac_delim ++OMPI_SIZEOF_F90_INTEGER!$OMPI_SIZEOF_F90_INTEGER$ac_delim ++OMPI_SIZEOF_F90_INTEGER1!$OMPI_SIZEOF_F90_INTEGER1$ac_delim ++OMPI_SIZEOF_F90_INTEGER2!$OMPI_SIZEOF_F90_INTEGER2$ac_delim ++OMPI_SIZEOF_F90_INTEGER4!$OMPI_SIZEOF_F90_INTEGER4$ac_delim ++OMPI_SIZEOF_F90_INTEGER8!$OMPI_SIZEOF_F90_INTEGER8$ac_delim ++OMPI_SIZEOF_F90_INTEGER16!$OMPI_SIZEOF_F90_INTEGER16$ac_delim ++OMPI_SIZEOF_F90_REAL!$OMPI_SIZEOF_F90_REAL$ac_delim ++OMPI_SIZEOF_F90_REAL2!$OMPI_SIZEOF_F90_REAL2$ac_delim ++OMPI_SIZEOF_F90_REAL4!$OMPI_SIZEOF_F90_REAL4$ac_delim ++OMPI_SIZEOF_F90_REAL8!$OMPI_SIZEOF_F90_REAL8$ac_delim ++OMPI_SIZEOF_F90_REAL16!$OMPI_SIZEOF_F90_REAL16$ac_delim ++OMPI_SIZEOF_F90_DOUBLE_PRECISION!$OMPI_SIZEOF_F90_DOUBLE_PRECISION$ac_delim ++OMPI_SIZEOF_F90_COMPLEX!$OMPI_SIZEOF_F90_COMPLEX$ac_delim ++OMPI_SIZEOF_F90_COMPLEX8!$OMPI_SIZEOF_F90_COMPLEX8$ac_delim ++OMPI_SIZEOF_F90_COMPLEX16!$OMPI_SIZEOF_F90_COMPLEX16$ac_delim ++OMPI_SIZEOF_F90_COMPLEX32!$OMPI_SIZEOF_F90_COMPLEX32$ac_delim ++OMPI_SIZEOF_F90_DOUBLE_COMPLEX!$OMPI_SIZEOF_F90_DOUBLE_COMPLEX$ac_delim ++OMPI_F90_IKINDS!$OMPI_F90_IKINDS$ac_delim ++OMPI_F90_RKINDS!$OMPI_F90_RKINDS$ac_delim ++OMPI_F90_CKINDS!$OMPI_F90_CKINDS$ac_delim ++OMPI_MPI_INTEGER_KIND!$OMPI_MPI_INTEGER_KIND$ac_delim ++OMPI_MPI_ADDRESS_KIND!$OMPI_MPI_ADDRESS_KIND$ac_delim ++OMPI_MPI_OFFSET_KIND!$OMPI_MPI_OFFSET_KIND$ac_delim ++OMPI_HAVE_POSIX_THREADS_TRUE!$OMPI_HAVE_POSIX_THREADS_TRUE$ac_delim ++OMPI_HAVE_POSIX_THREADS_FALSE!$OMPI_HAVE_POSIX_THREADS_FALSE$ac_delim ++OMPI_HAVE_SOLARIS_THREADS_TRUE!$OMPI_HAVE_SOLARIS_THREADS_TRUE$ac_delim ++OMPI_HAVE_SOLARIS_THREADS_FALSE!$OMPI_HAVE_SOLARIS_THREADS_FALSE$ac_delim ++WANT_FT_THREAD_TRUE!$WANT_FT_THREAD_TRUE$ac_delim ++WANT_FT_THREAD_FALSE!$WANT_FT_THREAD_FALSE$ac_delim ++LN_S!$LN_S$ac_delim ++LEX!$LEX$ac_delim ++LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim ++LEXLIB!$LEXLIB$ac_delim ++CASE_SENSITIVE_FS_TRUE!$CASE_SENSITIVE_FS_TRUE$ac_delim ++CASE_SENSITIVE_FS_FALSE!$CASE_SENSITIVE_FS_FALSE$ac_delim ++OMPI_BUILD_backtrace_execinfo_DSO_TRUE!$OMPI_BUILD_backtrace_execinfo_DSO_TRUE$ac_delim ++OMPI_BUILD_backtrace_execinfo_DSO_FALSE!$OMPI_BUILD_backtrace_execinfo_DSO_FALSE$ac_delim ++OMPI_BUILD_backtrace_printstack_DSO_TRUE!$OMPI_BUILD_backtrace_printstack_DSO_TRUE$ac_delim ++OMPI_BUILD_backtrace_printstack_DSO_FALSE!$OMPI_BUILD_backtrace_printstack_DSO_FALSE$ac_delim ++backtrace_darwin_CFLAGS!$backtrace_darwin_CFLAGS$ac_delim ++OMPI_BUILD_backtrace_darwin_DSO_TRUE!$OMPI_BUILD_backtrace_darwin_DSO_TRUE$ac_delim ++OMPI_BUILD_backtrace_darwin_DSO_FALSE!$OMPI_BUILD_backtrace_darwin_DSO_FALSE$ac_delim ++OMPI_BUILD_backtrace_none_DSO_TRUE!$OMPI_BUILD_backtrace_none_DSO_TRUE$ac_delim ++OMPI_BUILD_backtrace_none_DSO_FALSE!$OMPI_BUILD_backtrace_none_DSO_FALSE$ac_delim ++MCA_backtrace_ALL_COMPONENTS!$MCA_backtrace_ALL_COMPONENTS$ac_delim ++MCA_backtrace_STATIC_COMPONENTS!$MCA_backtrace_STATIC_COMPONENTS$ac_delim ++MCA_backtrace_DSO_COMPONENTS!$MCA_backtrace_DSO_COMPONENTS$ac_delim ++MCA_backtrace_STATIC_LTLIBS!$MCA_backtrace_STATIC_LTLIBS$ac_delim ++MCA_backtrace_ALL_SUBDIRS!$MCA_backtrace_ALL_SUBDIRS$ac_delim ++MCA_backtrace_STATIC_SUBDIRS!$MCA_backtrace_STATIC_SUBDIRS$ac_delim ++MCA_backtrace_DSO_SUBDIRS!$MCA_backtrace_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_carto_auto_detect_DSO_TRUE!$OMPI_BUILD_carto_auto_detect_DSO_TRUE$ac_delim ++OMPI_BUILD_carto_auto_detect_DSO_FALSE!$OMPI_BUILD_carto_auto_detect_DSO_FALSE$ac_delim ++OMPI_BUILD_carto_file_DSO_TRUE!$OMPI_BUILD_carto_file_DSO_TRUE$ac_delim ++OMPI_BUILD_carto_file_DSO_FALSE!$OMPI_BUILD_carto_file_DSO_FALSE$ac_delim ++MCA_carto_ALL_COMPONENTS!$MCA_carto_ALL_COMPONENTS$ac_delim ++MCA_carto_STATIC_COMPONENTS!$MCA_carto_STATIC_COMPONENTS$ac_delim ++MCA_carto_DSO_COMPONENTS!$MCA_carto_DSO_COMPONENTS$ac_delim ++MCA_carto_STATIC_LTLIBS!$MCA_carto_STATIC_LTLIBS$ac_delim ++MCA_carto_ALL_SUBDIRS!$MCA_carto_ALL_SUBDIRS$ac_delim ++MCA_carto_STATIC_SUBDIRS!$MCA_carto_STATIC_SUBDIRS$ac_delim ++MCA_carto_DSO_SUBDIRS!$MCA_carto_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_crs_none_DSO_TRUE!$OMPI_BUILD_crs_none_DSO_TRUE$ac_delim ++OMPI_BUILD_crs_none_DSO_FALSE!$OMPI_BUILD_crs_none_DSO_FALSE$ac_delim ++crs_blcr_crs_blcr_WRAPPER_EXTRA_LDFLAGS!$crs_blcr_crs_blcr_WRAPPER_EXTRA_LDFLAGS$ac_delim ++crs_blcr_crs_blcr_WRAPPER_EXTRA_LIBS!$crs_blcr_crs_blcr_WRAPPER_EXTRA_LIBS$ac_delim ++crs_blcr_crs_blcr_WRAPPER_EXTRA_CPPFLAGS!$crs_blcr_crs_blcr_WRAPPER_EXTRA_CPPFLAGS$ac_delim ++crs_blcr_CFLAGS!$crs_blcr_CFLAGS$ac_delim ++crs_blcr_CPPFLAGS!$crs_blcr_CPPFLAGS$ac_delim ++crs_blcr_LDFLAGS!$crs_blcr_LDFLAGS$ac_delim ++crs_blcr_LIBS!$crs_blcr_LIBS$ac_delim ++OMPI_BUILD_crs_blcr_DSO_TRUE!$OMPI_BUILD_crs_blcr_DSO_TRUE$ac_delim ++OMPI_BUILD_crs_blcr_DSO_FALSE!$OMPI_BUILD_crs_blcr_DSO_FALSE$ac_delim ++OMPI_BUILD_crs_self_DSO_TRUE!$OMPI_BUILD_crs_self_DSO_TRUE$ac_delim ++OMPI_BUILD_crs_self_DSO_FALSE!$OMPI_BUILD_crs_self_DSO_FALSE$ac_delim ++MCA_crs_ALL_COMPONENTS!$MCA_crs_ALL_COMPONENTS$ac_delim ++MCA_crs_STATIC_COMPONENTS!$MCA_crs_STATIC_COMPONENTS$ac_delim ++MCA_crs_DSO_COMPONENTS!$MCA_crs_DSO_COMPONENTS$ac_delim ++_ACEOF ++ ++ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then ++ break ++ elif $ac_last_try; then ++ { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 ++echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ ac_delim="$ac_delim!$ac_delim _$ac_delim!! " ++ fi ++done ++ ++ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` ++if test -n "$ac_eof"; then ++ ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ++ ac_eof=`expr $ac_eof + 1` ++fi ++ ++cat >>$CONFIG_STATUS <<_ACEOF ++cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b ++_ACEOF ++sed ' ++s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g ++s/^/s,@/; s/!/@,|#_!!_#|/ ++:n ++t n ++s/'"$ac_delim"'$/,g/; t ++s/$/\\/; p ++N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ++' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF ++CEOF$ac_eof ++_ACEOF ++ ++ ++ac_delim='%!_!# ' ++for ac_last_try in false false false false false :; do ++ cat >conf$$subs.sed <<_ACEOF ++MCA_crs_STATIC_LTLIBS!$MCA_crs_STATIC_LTLIBS$ac_delim ++MCA_crs_ALL_SUBDIRS!$MCA_crs_ALL_SUBDIRS$ac_delim ++MCA_crs_STATIC_SUBDIRS!$MCA_crs_STATIC_SUBDIRS$ac_delim ++MCA_crs_DSO_SUBDIRS!$MCA_crs_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_installdirs_env_DSO_TRUE!$OMPI_BUILD_installdirs_env_DSO_TRUE$ac_delim ++OMPI_BUILD_installdirs_env_DSO_FALSE!$OMPI_BUILD_installdirs_env_DSO_FALSE$ac_delim ++OMPI_BUILD_installdirs_config_DSO_TRUE!$OMPI_BUILD_installdirs_config_DSO_TRUE$ac_delim ++OMPI_BUILD_installdirs_config_DSO_FALSE!$OMPI_BUILD_installdirs_config_DSO_FALSE$ac_delim ++MCA_installdirs_ALL_COMPONENTS!$MCA_installdirs_ALL_COMPONENTS$ac_delim ++MCA_installdirs_STATIC_COMPONENTS!$MCA_installdirs_STATIC_COMPONENTS$ac_delim ++MCA_installdirs_DSO_COMPONENTS!$MCA_installdirs_DSO_COMPONENTS$ac_delim ++MCA_installdirs_STATIC_LTLIBS!$MCA_installdirs_STATIC_LTLIBS$ac_delim ++MCA_installdirs_ALL_SUBDIRS!$MCA_installdirs_ALL_SUBDIRS$ac_delim ++MCA_installdirs_STATIC_SUBDIRS!$MCA_installdirs_STATIC_SUBDIRS$ac_delim ++MCA_installdirs_DSO_SUBDIRS!$MCA_installdirs_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_maffinity_first_use_DSO_TRUE!$OMPI_BUILD_maffinity_first_use_DSO_TRUE$ac_delim ++OMPI_BUILD_maffinity_first_use_DSO_FALSE!$OMPI_BUILD_maffinity_first_use_DSO_FALSE$ac_delim ++maffinity_libnuma_CPPFLAGS!$maffinity_libnuma_CPPFLAGS$ac_delim ++maffinity_libnuma_LDFLAGS!$maffinity_libnuma_LDFLAGS$ac_delim ++maffinity_libnuma_LIBS!$maffinity_libnuma_LIBS$ac_delim ++OMPI_BUILD_maffinity_libnuma_DSO_TRUE!$OMPI_BUILD_maffinity_libnuma_DSO_TRUE$ac_delim ++OMPI_BUILD_maffinity_libnuma_DSO_FALSE!$OMPI_BUILD_maffinity_libnuma_DSO_FALSE$ac_delim ++MCA_maffinity_ALL_COMPONENTS!$MCA_maffinity_ALL_COMPONENTS$ac_delim ++MCA_maffinity_STATIC_COMPONENTS!$MCA_maffinity_STATIC_COMPONENTS$ac_delim ++MCA_maffinity_DSO_COMPONENTS!$MCA_maffinity_DSO_COMPONENTS$ac_delim ++MCA_maffinity_STATIC_LTLIBS!$MCA_maffinity_STATIC_LTLIBS$ac_delim ++MCA_maffinity_ALL_SUBDIRS!$MCA_maffinity_ALL_SUBDIRS$ac_delim ++MCA_maffinity_STATIC_SUBDIRS!$MCA_maffinity_STATIC_SUBDIRS$ac_delim ++MCA_maffinity_DSO_SUBDIRS!$MCA_maffinity_DSO_SUBDIRS$ac_delim ++OMPI_WANT_MEMCHECKER_TRUE!$OMPI_WANT_MEMCHECKER_TRUE$ac_delim ++OMPI_WANT_MEMCHECKER_FALSE!$OMPI_WANT_MEMCHECKER_FALSE$ac_delim ++memchecker_valgrind_CPPFLAGS!$memchecker_valgrind_CPPFLAGS$ac_delim ++OMPI_BUILD_memchecker_valgrind_DSO_TRUE!$OMPI_BUILD_memchecker_valgrind_DSO_TRUE$ac_delim ++OMPI_BUILD_memchecker_valgrind_DSO_FALSE!$OMPI_BUILD_memchecker_valgrind_DSO_FALSE$ac_delim ++MCA_memchecker_ALL_COMPONENTS!$MCA_memchecker_ALL_COMPONENTS$ac_delim ++MCA_memchecker_STATIC_COMPONENTS!$MCA_memchecker_STATIC_COMPONENTS$ac_delim ++MCA_memchecker_DSO_COMPONENTS!$MCA_memchecker_DSO_COMPONENTS$ac_delim ++MCA_memchecker_STATIC_LTLIBS!$MCA_memchecker_STATIC_LTLIBS$ac_delim ++MCA_memchecker_ALL_SUBDIRS!$MCA_memchecker_ALL_SUBDIRS$ac_delim ++MCA_memchecker_STATIC_SUBDIRS!$MCA_memchecker_STATIC_SUBDIRS$ac_delim ++MCA_memchecker_DSO_SUBDIRS!$MCA_memchecker_DSO_SUBDIRS$ac_delim ++MCA_memcpy_ALL_COMPONENTS!$MCA_memcpy_ALL_COMPONENTS$ac_delim ++MCA_memcpy_STATIC_COMPONENTS!$MCA_memcpy_STATIC_COMPONENTS$ac_delim ++MCA_memcpy_DSO_COMPONENTS!$MCA_memcpy_DSO_COMPONENTS$ac_delim ++MCA_memcpy_STATIC_LTLIBS!$MCA_memcpy_STATIC_LTLIBS$ac_delim ++MCA_memcpy_ALL_SUBDIRS!$MCA_memcpy_ALL_SUBDIRS$ac_delim ++MCA_memcpy_STATIC_SUBDIRS!$MCA_memcpy_STATIC_SUBDIRS$ac_delim ++MCA_memcpy_DSO_SUBDIRS!$MCA_memcpy_DSO_SUBDIRS$ac_delim ++memory_ptmalloc2_LIBS!$memory_ptmalloc2_LIBS$ac_delim ++OMPI_WANT_EXTERNAL_PTMALLOC2_TRUE!$OMPI_WANT_EXTERNAL_PTMALLOC2_TRUE$ac_delim ++OMPI_WANT_EXTERNAL_PTMALLOC2_FALSE!$OMPI_WANT_EXTERNAL_PTMALLOC2_FALSE$ac_delim ++OMPI_BUILD_memory_ptmalloc2_DSO_TRUE!$OMPI_BUILD_memory_ptmalloc2_DSO_TRUE$ac_delim ++OMPI_BUILD_memory_ptmalloc2_DSO_FALSE!$OMPI_BUILD_memory_ptmalloc2_DSO_FALSE$ac_delim ++memory_malloc_solaris_LIBS!$memory_malloc_solaris_LIBS$ac_delim ++OMPI_BUILD_memory_malloc_solaris_DSO_TRUE!$OMPI_BUILD_memory_malloc_solaris_DSO_TRUE$ac_delim ++OMPI_BUILD_memory_malloc_solaris_DSO_FALSE!$OMPI_BUILD_memory_malloc_solaris_DSO_FALSE$ac_delim ++memory_mallopt_LIBS!$memory_mallopt_LIBS$ac_delim ++OMPI_BUILD_memory_mallopt_DSO_TRUE!$OMPI_BUILD_memory_mallopt_DSO_TRUE$ac_delim ++OMPI_BUILD_memory_mallopt_DSO_FALSE!$OMPI_BUILD_memory_mallopt_DSO_FALSE$ac_delim ++MCA_memory_ALL_COMPONENTS!$MCA_memory_ALL_COMPONENTS$ac_delim ++MCA_memory_STATIC_COMPONENTS!$MCA_memory_STATIC_COMPONENTS$ac_delim ++MCA_memory_DSO_COMPONENTS!$MCA_memory_DSO_COMPONENTS$ac_delim ++MCA_memory_STATIC_LTLIBS!$MCA_memory_STATIC_LTLIBS$ac_delim ++MCA_memory_ALL_SUBDIRS!$MCA_memory_ALL_SUBDIRS$ac_delim ++MCA_memory_STATIC_SUBDIRS!$MCA_memory_STATIC_SUBDIRS$ac_delim ++MCA_memory_DSO_SUBDIRS!$MCA_memory_DSO_SUBDIRS$ac_delim ++YACC!$YACC$ac_delim ++YFLAGS!$YFLAGS$ac_delim ++PLPA_BUILD_STANDALONE_TRUE!$PLPA_BUILD_STANDALONE_TRUE$ac_delim ++PLPA_BUILD_STANDALONE_FALSE!$PLPA_BUILD_STANDALONE_FALSE$ac_delim ++PLPA_BUILD_EXECUTABLES_TRUE!$PLPA_BUILD_EXECUTABLES_TRUE$ac_delim ++PLPA_BUILD_EXECUTABLES_FALSE!$PLPA_BUILD_EXECUTABLES_FALSE$ac_delim ++OMPI_BUILD_paffinity_linux_DSO_TRUE!$OMPI_BUILD_paffinity_linux_DSO_TRUE$ac_delim ++OMPI_BUILD_paffinity_linux_DSO_FALSE!$OMPI_BUILD_paffinity_linux_DSO_FALSE$ac_delim ++OMPI_BUILD_paffinity_solaris_DSO_TRUE!$OMPI_BUILD_paffinity_solaris_DSO_TRUE$ac_delim ++OMPI_BUILD_paffinity_solaris_DSO_FALSE!$OMPI_BUILD_paffinity_solaris_DSO_FALSE$ac_delim ++OMPI_BUILD_paffinity_windows_DSO_TRUE!$OMPI_BUILD_paffinity_windows_DSO_TRUE$ac_delim ++OMPI_BUILD_paffinity_windows_DSO_FALSE!$OMPI_BUILD_paffinity_windows_DSO_FALSE$ac_delim ++OMPI_BUILD_paffinity_darwin_DSO_TRUE!$OMPI_BUILD_paffinity_darwin_DSO_TRUE$ac_delim ++OMPI_BUILD_paffinity_darwin_DSO_FALSE!$OMPI_BUILD_paffinity_darwin_DSO_FALSE$ac_delim ++OMPI_BUILD_paffinity_posix_DSO_TRUE!$OMPI_BUILD_paffinity_posix_DSO_TRUE$ac_delim ++OMPI_BUILD_paffinity_posix_DSO_FALSE!$OMPI_BUILD_paffinity_posix_DSO_FALSE$ac_delim ++MCA_paffinity_ALL_COMPONENTS!$MCA_paffinity_ALL_COMPONENTS$ac_delim ++MCA_paffinity_STATIC_COMPONENTS!$MCA_paffinity_STATIC_COMPONENTS$ac_delim ++MCA_paffinity_DSO_COMPONENTS!$MCA_paffinity_DSO_COMPONENTS$ac_delim ++MCA_paffinity_STATIC_LTLIBS!$MCA_paffinity_STATIC_LTLIBS$ac_delim ++MCA_paffinity_ALL_SUBDIRS!$MCA_paffinity_ALL_SUBDIRS$ac_delim ++MCA_paffinity_STATIC_SUBDIRS!$MCA_paffinity_STATIC_SUBDIRS$ac_delim ++MCA_paffinity_DSO_SUBDIRS!$MCA_paffinity_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_timer_catamount_DSO_TRUE!$OMPI_BUILD_timer_catamount_DSO_TRUE$ac_delim ++OMPI_BUILD_timer_catamount_DSO_FALSE!$OMPI_BUILD_timer_catamount_DSO_FALSE$ac_delim ++timer_aix_LIBS!$timer_aix_LIBS$ac_delim ++OMPI_BUILD_timer_aix_DSO_TRUE!$OMPI_BUILD_timer_aix_DSO_TRUE$ac_delim ++OMPI_BUILD_timer_aix_DSO_FALSE!$OMPI_BUILD_timer_aix_DSO_FALSE$ac_delim ++OMPI_BUILD_timer_altix_DSO_TRUE!$OMPI_BUILD_timer_altix_DSO_TRUE$ac_delim ++OMPI_BUILD_timer_altix_DSO_FALSE!$OMPI_BUILD_timer_altix_DSO_FALSE$ac_delim ++OMPI_BUILD_timer_darwin_DSO_TRUE!$OMPI_BUILD_timer_darwin_DSO_TRUE$ac_delim ++_ACEOF ++ ++ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then ++ break ++ elif $ac_last_try; then ++ { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 ++echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ ac_delim="$ac_delim!$ac_delim _$ac_delim!! " ++ fi ++done ++ ++ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` ++if test -n "$ac_eof"; then ++ ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ++ ac_eof=`expr $ac_eof + 1` ++fi ++ ++cat >>$CONFIG_STATUS <<_ACEOF ++cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b ++_ACEOF ++sed ' ++s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g ++s/^/s,@/; s/!/@,|#_!!_#|/ ++:n ++t n ++s/'"$ac_delim"'$/,g/; t ++s/$/\\/; p ++N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ++' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF ++CEOF$ac_eof ++_ACEOF ++ ++ ++ac_delim='%!_!# ' ++for ac_last_try in false false false false false :; do ++ cat >conf$$subs.sed <<_ACEOF ++OMPI_BUILD_timer_darwin_DSO_FALSE!$OMPI_BUILD_timer_darwin_DSO_FALSE$ac_delim ++OMPI_BUILD_timer_solaris_DSO_TRUE!$OMPI_BUILD_timer_solaris_DSO_TRUE$ac_delim ++OMPI_BUILD_timer_solaris_DSO_FALSE!$OMPI_BUILD_timer_solaris_DSO_FALSE$ac_delim ++OMPI_BUILD_timer_windows_DSO_TRUE!$OMPI_BUILD_timer_windows_DSO_TRUE$ac_delim ++OMPI_BUILD_timer_windows_DSO_FALSE!$OMPI_BUILD_timer_windows_DSO_FALSE$ac_delim ++OMPI_BUILD_timer_linux_DSO_TRUE!$OMPI_BUILD_timer_linux_DSO_TRUE$ac_delim ++OMPI_BUILD_timer_linux_DSO_FALSE!$OMPI_BUILD_timer_linux_DSO_FALSE$ac_delim ++MCA_timer_ALL_COMPONENTS!$MCA_timer_ALL_COMPONENTS$ac_delim ++MCA_timer_STATIC_COMPONENTS!$MCA_timer_STATIC_COMPONENTS$ac_delim ++MCA_timer_DSO_COMPONENTS!$MCA_timer_DSO_COMPONENTS$ac_delim ++MCA_timer_STATIC_LTLIBS!$MCA_timer_STATIC_LTLIBS$ac_delim ++MCA_timer_ALL_SUBDIRS!$MCA_timer_ALL_SUBDIRS$ac_delim ++MCA_timer_STATIC_SUBDIRS!$MCA_timer_STATIC_SUBDIRS$ac_delim ++MCA_timer_DSO_SUBDIRS!$MCA_timer_DSO_SUBDIRS$ac_delim ++MCA_opal_FRAMEWORKS!$MCA_opal_FRAMEWORKS$ac_delim ++MCA_opal_FRAMEWORKS_SUBDIRS!$MCA_opal_FRAMEWORKS_SUBDIRS$ac_delim ++MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS!$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS$ac_delim ++MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS!$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS$ac_delim ++MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS!$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS$ac_delim ++MCA_opal_FRAMEWORK_LIBS!$MCA_opal_FRAMEWORK_LIBS$ac_delim ++OMPI_BUILD_errmgr_default_DSO_TRUE!$OMPI_BUILD_errmgr_default_DSO_TRUE$ac_delim ++OMPI_BUILD_errmgr_default_DSO_FALSE!$OMPI_BUILD_errmgr_default_DSO_FALSE$ac_delim ++MCA_errmgr_ALL_COMPONENTS!$MCA_errmgr_ALL_COMPONENTS$ac_delim ++MCA_errmgr_STATIC_COMPONENTS!$MCA_errmgr_STATIC_COMPONENTS$ac_delim ++MCA_errmgr_DSO_COMPONENTS!$MCA_errmgr_DSO_COMPONENTS$ac_delim ++MCA_errmgr_STATIC_LTLIBS!$MCA_errmgr_STATIC_LTLIBS$ac_delim ++MCA_errmgr_ALL_SUBDIRS!$MCA_errmgr_ALL_SUBDIRS$ac_delim ++MCA_errmgr_STATIC_SUBDIRS!$MCA_errmgr_STATIC_SUBDIRS$ac_delim ++MCA_errmgr_DSO_SUBDIRS!$MCA_errmgr_DSO_SUBDIRS$ac_delim ++ess_portals_utcp_CPPFLAGS!$ess_portals_utcp_CPPFLAGS$ac_delim ++ess_portals_utcp_LDFLAGS!$ess_portals_utcp_LDFLAGS$ac_delim ++ess_portals_utcp_LIBS!$ess_portals_utcp_LIBS$ac_delim ++OMPI_BUILD_ess_portals_utcp_DSO_TRUE!$OMPI_BUILD_ess_portals_utcp_DSO_TRUE$ac_delim ++OMPI_BUILD_ess_portals_utcp_DSO_FALSE!$OMPI_BUILD_ess_portals_utcp_DSO_FALSE$ac_delim ++OMPI_BUILD_ess_cnos_DSO_TRUE!$OMPI_BUILD_ess_cnos_DSO_TRUE$ac_delim ++OMPI_BUILD_ess_cnos_DSO_FALSE!$OMPI_BUILD_ess_cnos_DSO_FALSE$ac_delim ++OMPI_BUILD_ess_alps_DSO_TRUE!$OMPI_BUILD_ess_alps_DSO_TRUE$ac_delim ++OMPI_BUILD_ess_alps_DSO_FALSE!$OMPI_BUILD_ess_alps_DSO_FALSE$ac_delim ++OMPI_BUILD_ess_env_DSO_TRUE!$OMPI_BUILD_ess_env_DSO_TRUE$ac_delim ++OMPI_BUILD_ess_env_DSO_FALSE!$OMPI_BUILD_ess_env_DSO_FALSE$ac_delim ++OMPI_BUILD_ess_hnp_DSO_TRUE!$OMPI_BUILD_ess_hnp_DSO_TRUE$ac_delim ++OMPI_BUILD_ess_hnp_DSO_FALSE!$OMPI_BUILD_ess_hnp_DSO_FALSE$ac_delim ++ess_lsf_CPPFLAGS!$ess_lsf_CPPFLAGS$ac_delim ++ess_lsf_LDFLAGS!$ess_lsf_LDFLAGS$ac_delim ++ess_lsf_LIBS!$ess_lsf_LIBS$ac_delim ++OMPI_BUILD_ess_lsf_DSO_TRUE!$OMPI_BUILD_ess_lsf_DSO_TRUE$ac_delim ++OMPI_BUILD_ess_lsf_DSO_FALSE!$OMPI_BUILD_ess_lsf_DSO_FALSE$ac_delim ++OMPI_BUILD_ess_singleton_DSO_TRUE!$OMPI_BUILD_ess_singleton_DSO_TRUE$ac_delim ++OMPI_BUILD_ess_singleton_DSO_FALSE!$OMPI_BUILD_ess_singleton_DSO_FALSE$ac_delim ++ess_slurm_CPPFLAGS!$ess_slurm_CPPFLAGS$ac_delim ++ess_slurm_LDFLAGS!$ess_slurm_LDFLAGS$ac_delim ++ess_slurm_LIBS!$ess_slurm_LIBS$ac_delim ++OMPI_BUILD_ess_slurm_DSO_TRUE!$OMPI_BUILD_ess_slurm_DSO_TRUE$ac_delim ++OMPI_BUILD_ess_slurm_DSO_FALSE!$OMPI_BUILD_ess_slurm_DSO_FALSE$ac_delim ++OMPI_BUILD_ess_tool_DSO_TRUE!$OMPI_BUILD_ess_tool_DSO_TRUE$ac_delim ++OMPI_BUILD_ess_tool_DSO_FALSE!$OMPI_BUILD_ess_tool_DSO_FALSE$ac_delim ++MCA_ess_ALL_COMPONENTS!$MCA_ess_ALL_COMPONENTS$ac_delim ++MCA_ess_STATIC_COMPONENTS!$MCA_ess_STATIC_COMPONENTS$ac_delim ++MCA_ess_DSO_COMPONENTS!$MCA_ess_DSO_COMPONENTS$ac_delim ++MCA_ess_STATIC_LTLIBS!$MCA_ess_STATIC_LTLIBS$ac_delim ++MCA_ess_ALL_SUBDIRS!$MCA_ess_ALL_SUBDIRS$ac_delim ++MCA_ess_STATIC_SUBDIRS!$MCA_ess_STATIC_SUBDIRS$ac_delim ++MCA_ess_DSO_SUBDIRS!$MCA_ess_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_filem_rsh_DSO_TRUE!$OMPI_BUILD_filem_rsh_DSO_TRUE$ac_delim ++OMPI_BUILD_filem_rsh_DSO_FALSE!$OMPI_BUILD_filem_rsh_DSO_FALSE$ac_delim ++MCA_filem_ALL_COMPONENTS!$MCA_filem_ALL_COMPONENTS$ac_delim ++MCA_filem_STATIC_COMPONENTS!$MCA_filem_STATIC_COMPONENTS$ac_delim ++MCA_filem_DSO_COMPONENTS!$MCA_filem_DSO_COMPONENTS$ac_delim ++MCA_filem_STATIC_LTLIBS!$MCA_filem_STATIC_LTLIBS$ac_delim ++MCA_filem_ALL_SUBDIRS!$MCA_filem_ALL_SUBDIRS$ac_delim ++MCA_filem_STATIC_SUBDIRS!$MCA_filem_STATIC_SUBDIRS$ac_delim ++MCA_filem_DSO_SUBDIRS!$MCA_filem_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_grpcomm_cnos_DSO_TRUE!$OMPI_BUILD_grpcomm_cnos_DSO_TRUE$ac_delim ++OMPI_BUILD_grpcomm_cnos_DSO_FALSE!$OMPI_BUILD_grpcomm_cnos_DSO_FALSE$ac_delim ++OMPI_BUILD_grpcomm_bad_DSO_TRUE!$OMPI_BUILD_grpcomm_bad_DSO_TRUE$ac_delim ++OMPI_BUILD_grpcomm_bad_DSO_FALSE!$OMPI_BUILD_grpcomm_bad_DSO_FALSE$ac_delim ++OMPI_BUILD_grpcomm_basic_DSO_TRUE!$OMPI_BUILD_grpcomm_basic_DSO_TRUE$ac_delim ++OMPI_BUILD_grpcomm_basic_DSO_FALSE!$OMPI_BUILD_grpcomm_basic_DSO_FALSE$ac_delim ++MCA_grpcomm_ALL_COMPONENTS!$MCA_grpcomm_ALL_COMPONENTS$ac_delim ++MCA_grpcomm_STATIC_COMPONENTS!$MCA_grpcomm_STATIC_COMPONENTS$ac_delim ++MCA_grpcomm_DSO_COMPONENTS!$MCA_grpcomm_DSO_COMPONENTS$ac_delim ++MCA_grpcomm_STATIC_LTLIBS!$MCA_grpcomm_STATIC_LTLIBS$ac_delim ++MCA_grpcomm_ALL_SUBDIRS!$MCA_grpcomm_ALL_SUBDIRS$ac_delim ++MCA_grpcomm_STATIC_SUBDIRS!$MCA_grpcomm_STATIC_SUBDIRS$ac_delim ++MCA_grpcomm_DSO_SUBDIRS!$MCA_grpcomm_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_iof_hnp_DSO_TRUE!$OMPI_BUILD_iof_hnp_DSO_TRUE$ac_delim ++OMPI_BUILD_iof_hnp_DSO_FALSE!$OMPI_BUILD_iof_hnp_DSO_FALSE$ac_delim ++OMPI_BUILD_iof_orted_DSO_TRUE!$OMPI_BUILD_iof_orted_DSO_TRUE$ac_delim ++OMPI_BUILD_iof_orted_DSO_FALSE!$OMPI_BUILD_iof_orted_DSO_FALSE$ac_delim ++OMPI_BUILD_iof_tool_DSO_TRUE!$OMPI_BUILD_iof_tool_DSO_TRUE$ac_delim ++OMPI_BUILD_iof_tool_DSO_FALSE!$OMPI_BUILD_iof_tool_DSO_FALSE$ac_delim ++MCA_iof_ALL_COMPONENTS!$MCA_iof_ALL_COMPONENTS$ac_delim ++MCA_iof_STATIC_COMPONENTS!$MCA_iof_STATIC_COMPONENTS$ac_delim ++MCA_iof_DSO_COMPONENTS!$MCA_iof_DSO_COMPONENTS$ac_delim ++MCA_iof_STATIC_LTLIBS!$MCA_iof_STATIC_LTLIBS$ac_delim ++MCA_iof_ALL_SUBDIRS!$MCA_iof_ALL_SUBDIRS$ac_delim ++MCA_iof_STATIC_SUBDIRS!$MCA_iof_STATIC_SUBDIRS$ac_delim ++_ACEOF ++ ++ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then ++ break ++ elif $ac_last_try; then ++ { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 ++echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ ac_delim="$ac_delim!$ac_delim _$ac_delim!! " ++ fi ++done ++ ++ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` ++if test -n "$ac_eof"; then ++ ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ++ ac_eof=`expr $ac_eof + 1` ++fi ++ ++cat >>$CONFIG_STATUS <<_ACEOF ++cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b ++_ACEOF ++sed ' ++s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g ++s/^/s,@/; s/!/@,|#_!!_#|/ ++:n ++t n ++s/'"$ac_delim"'$/,g/; t ++s/$/\\/; p ++N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ++' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF ++CEOF$ac_eof ++_ACEOF ++ ++ ++ac_delim='%!_!# ' ++for ac_last_try in false false false false false :; do ++ cat >conf$$subs.sed <<_ACEOF ++MCA_iof_DSO_SUBDIRS!$MCA_iof_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_notifier_syslog_DSO_TRUE!$OMPI_BUILD_notifier_syslog_DSO_TRUE$ac_delim ++OMPI_BUILD_notifier_syslog_DSO_FALSE!$OMPI_BUILD_notifier_syslog_DSO_FALSE$ac_delim ++MCA_notifier_ALL_COMPONENTS!$MCA_notifier_ALL_COMPONENTS$ac_delim ++MCA_notifier_STATIC_COMPONENTS!$MCA_notifier_STATIC_COMPONENTS$ac_delim ++MCA_notifier_DSO_COMPONENTS!$MCA_notifier_DSO_COMPONENTS$ac_delim ++MCA_notifier_STATIC_LTLIBS!$MCA_notifier_STATIC_LTLIBS$ac_delim ++MCA_notifier_ALL_SUBDIRS!$MCA_notifier_ALL_SUBDIRS$ac_delim ++MCA_notifier_STATIC_SUBDIRS!$MCA_notifier_STATIC_SUBDIRS$ac_delim ++MCA_notifier_DSO_SUBDIRS!$MCA_notifier_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_odls_default_DSO_TRUE!$OMPI_BUILD_odls_default_DSO_TRUE$ac_delim ++OMPI_BUILD_odls_default_DSO_FALSE!$OMPI_BUILD_odls_default_DSO_FALSE$ac_delim ++MCA_odls_ALL_COMPONENTS!$MCA_odls_ALL_COMPONENTS$ac_delim ++MCA_odls_STATIC_COMPONENTS!$MCA_odls_STATIC_COMPONENTS$ac_delim ++MCA_odls_DSO_COMPONENTS!$MCA_odls_DSO_COMPONENTS$ac_delim ++MCA_odls_STATIC_LTLIBS!$MCA_odls_STATIC_LTLIBS$ac_delim ++MCA_odls_ALL_SUBDIRS!$MCA_odls_ALL_SUBDIRS$ac_delim ++MCA_odls_STATIC_SUBDIRS!$MCA_odls_STATIC_SUBDIRS$ac_delim ++MCA_odls_DSO_SUBDIRS!$MCA_odls_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_oob_tcp_DSO_TRUE!$OMPI_BUILD_oob_tcp_DSO_TRUE$ac_delim ++OMPI_BUILD_oob_tcp_DSO_FALSE!$OMPI_BUILD_oob_tcp_DSO_FALSE$ac_delim ++MCA_oob_ALL_COMPONENTS!$MCA_oob_ALL_COMPONENTS$ac_delim ++MCA_oob_STATIC_COMPONENTS!$MCA_oob_STATIC_COMPONENTS$ac_delim ++MCA_oob_DSO_COMPONENTS!$MCA_oob_DSO_COMPONENTS$ac_delim ++MCA_oob_STATIC_LTLIBS!$MCA_oob_STATIC_LTLIBS$ac_delim ++MCA_oob_ALL_SUBDIRS!$MCA_oob_ALL_SUBDIRS$ac_delim ++MCA_oob_STATIC_SUBDIRS!$MCA_oob_STATIC_SUBDIRS$ac_delim ++MCA_oob_DSO_SUBDIRS!$MCA_oob_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_plm_alps_DSO_TRUE!$OMPI_BUILD_plm_alps_DSO_TRUE$ac_delim ++OMPI_BUILD_plm_alps_DSO_FALSE!$OMPI_BUILD_plm_alps_DSO_FALSE$ac_delim ++plm_lsf_CPPFLAGS!$plm_lsf_CPPFLAGS$ac_delim ++plm_lsf_LDFLAGS!$plm_lsf_LDFLAGS$ac_delim ++plm_lsf_LIBS!$plm_lsf_LIBS$ac_delim ++OMPI_BUILD_plm_lsf_DSO_TRUE!$OMPI_BUILD_plm_lsf_DSO_TRUE$ac_delim ++OMPI_BUILD_plm_lsf_DSO_FALSE!$OMPI_BUILD_plm_lsf_DSO_FALSE$ac_delim ++OMPI_BUILD_plm_rsh_DSO_TRUE!$OMPI_BUILD_plm_rsh_DSO_TRUE$ac_delim ++OMPI_BUILD_plm_rsh_DSO_FALSE!$OMPI_BUILD_plm_rsh_DSO_FALSE$ac_delim ++plm_slurm_CPPFLAGS!$plm_slurm_CPPFLAGS$ac_delim ++plm_slurm_LDFLAGS!$plm_slurm_LDFLAGS$ac_delim ++plm_slurm_LIBS!$plm_slurm_LIBS$ac_delim ++OMPI_BUILD_plm_slurm_DSO_TRUE!$OMPI_BUILD_plm_slurm_DSO_TRUE$ac_delim ++OMPI_BUILD_plm_slurm_DSO_FALSE!$OMPI_BUILD_plm_slurm_DSO_FALSE$ac_delim ++plm_tm_CPPFLAGS!$plm_tm_CPPFLAGS$ac_delim ++plm_tm_LDFLAGS!$plm_tm_LDFLAGS$ac_delim ++plm_tm_LIBS!$plm_tm_LIBS$ac_delim ++OMPI_BUILD_plm_tm_DSO_TRUE!$OMPI_BUILD_plm_tm_DSO_TRUE$ac_delim ++OMPI_BUILD_plm_tm_DSO_FALSE!$OMPI_BUILD_plm_tm_DSO_FALSE$ac_delim ++OBJC!$OBJC$ac_delim ++OBJCFLAGS!$OBJCFLAGS$ac_delim ++ac_ct_OBJC!$ac_ct_OBJC$ac_delim ++OBJCDEPMODE!$OBJCDEPMODE$ac_delim ++am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim ++am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim ++plm_xgrid_OBJCFLAGS!$plm_xgrid_OBJCFLAGS$ac_delim ++plm_xgrid_LDFLAGS!$plm_xgrid_LDFLAGS$ac_delim ++OMPI_BUILD_plm_xgrid_DSO_TRUE!$OMPI_BUILD_plm_xgrid_DSO_TRUE$ac_delim ++OMPI_BUILD_plm_xgrid_DSO_FALSE!$OMPI_BUILD_plm_xgrid_DSO_FALSE$ac_delim ++MCA_plm_ALL_COMPONENTS!$MCA_plm_ALL_COMPONENTS$ac_delim ++MCA_plm_STATIC_COMPONENTS!$MCA_plm_STATIC_COMPONENTS$ac_delim ++MCA_plm_DSO_COMPONENTS!$MCA_plm_DSO_COMPONENTS$ac_delim ++MCA_plm_STATIC_LTLIBS!$MCA_plm_STATIC_LTLIBS$ac_delim ++MCA_plm_ALL_SUBDIRS!$MCA_plm_ALL_SUBDIRS$ac_delim ++MCA_plm_STATIC_SUBDIRS!$MCA_plm_STATIC_SUBDIRS$ac_delim ++MCA_plm_DSO_SUBDIRS!$MCA_plm_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_ras_alps_DSO_TRUE!$OMPI_BUILD_ras_alps_DSO_TRUE$ac_delim ++OMPI_BUILD_ras_alps_DSO_FALSE!$OMPI_BUILD_ras_alps_DSO_FALSE$ac_delim ++QRSH!$QRSH$ac_delim ++OMPI_BUILD_ras_gridengine_DSO_TRUE!$OMPI_BUILD_ras_gridengine_DSO_TRUE$ac_delim ++OMPI_BUILD_ras_gridengine_DSO_FALSE!$OMPI_BUILD_ras_gridengine_DSO_FALSE$ac_delim ++ras_loadleveler_CPPFLAGS!$ras_loadleveler_CPPFLAGS$ac_delim ++ras_loadleveler_LDFLAGS!$ras_loadleveler_LDFLAGS$ac_delim ++ras_loadleveler_LIBS!$ras_loadleveler_LIBS$ac_delim ++OMPI_BUILD_ras_loadleveler_DSO_TRUE!$OMPI_BUILD_ras_loadleveler_DSO_TRUE$ac_delim ++OMPI_BUILD_ras_loadleveler_DSO_FALSE!$OMPI_BUILD_ras_loadleveler_DSO_FALSE$ac_delim ++ras_lsf_CPPFLAGS!$ras_lsf_CPPFLAGS$ac_delim ++ras_lsf_LDFLAGS!$ras_lsf_LDFLAGS$ac_delim ++ras_lsf_LIBS!$ras_lsf_LIBS$ac_delim ++OMPI_BUILD_ras_lsf_DSO_TRUE!$OMPI_BUILD_ras_lsf_DSO_TRUE$ac_delim ++OMPI_BUILD_ras_lsf_DSO_FALSE!$OMPI_BUILD_ras_lsf_DSO_FALSE$ac_delim ++ras_slurm_CPPFLAGS!$ras_slurm_CPPFLAGS$ac_delim ++ras_slurm_LDFLAGS!$ras_slurm_LDFLAGS$ac_delim ++ras_slurm_LIBS!$ras_slurm_LIBS$ac_delim ++OMPI_BUILD_ras_slurm_DSO_TRUE!$OMPI_BUILD_ras_slurm_DSO_TRUE$ac_delim ++OMPI_BUILD_ras_slurm_DSO_FALSE!$OMPI_BUILD_ras_slurm_DSO_FALSE$ac_delim ++ras_tm_CPPFLAGS!$ras_tm_CPPFLAGS$ac_delim ++ras_tm_LDFLAGS!$ras_tm_LDFLAGS$ac_delim ++ras_tm_LIBS!$ras_tm_LIBS$ac_delim ++OMPI_BUILD_ras_tm_DSO_TRUE!$OMPI_BUILD_ras_tm_DSO_TRUE$ac_delim ++OMPI_BUILD_ras_tm_DSO_FALSE!$OMPI_BUILD_ras_tm_DSO_FALSE$ac_delim ++MCA_ras_ALL_COMPONENTS!$MCA_ras_ALL_COMPONENTS$ac_delim ++MCA_ras_STATIC_COMPONENTS!$MCA_ras_STATIC_COMPONENTS$ac_delim ++MCA_ras_DSO_COMPONENTS!$MCA_ras_DSO_COMPONENTS$ac_delim ++MCA_ras_STATIC_LTLIBS!$MCA_ras_STATIC_LTLIBS$ac_delim ++MCA_ras_ALL_SUBDIRS!$MCA_ras_ALL_SUBDIRS$ac_delim ++MCA_ras_STATIC_SUBDIRS!$MCA_ras_STATIC_SUBDIRS$ac_delim ++MCA_ras_DSO_SUBDIRS!$MCA_ras_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_rmaps_rank_file_DSO_TRUE!$OMPI_BUILD_rmaps_rank_file_DSO_TRUE$ac_delim ++_ACEOF ++ ++ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then ++ break ++ elif $ac_last_try; then ++ { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 ++echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ ac_delim="$ac_delim!$ac_delim _$ac_delim!! " ++ fi ++done ++ ++ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` ++if test -n "$ac_eof"; then ++ ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ++ ac_eof=`expr $ac_eof + 1` ++fi ++ ++cat >>$CONFIG_STATUS <<_ACEOF ++cat >"\$tmp/subs-6.sed" <<\CEOF$ac_eof ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b ++_ACEOF ++sed ' ++s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g ++s/^/s,@/; s/!/@,|#_!!_#|/ ++:n ++t n ++s/'"$ac_delim"'$/,g/; t ++s/$/\\/; p ++N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ++' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF ++CEOF$ac_eof ++_ACEOF ++ ++ ++ac_delim='%!_!# ' ++for ac_last_try in false false false false false :; do ++ cat >conf$$subs.sed <<_ACEOF ++OMPI_BUILD_rmaps_rank_file_DSO_FALSE!$OMPI_BUILD_rmaps_rank_file_DSO_FALSE$ac_delim ++OMPI_BUILD_rmaps_round_robin_DSO_TRUE!$OMPI_BUILD_rmaps_round_robin_DSO_TRUE$ac_delim ++OMPI_BUILD_rmaps_round_robin_DSO_FALSE!$OMPI_BUILD_rmaps_round_robin_DSO_FALSE$ac_delim ++OMPI_BUILD_rmaps_seq_DSO_TRUE!$OMPI_BUILD_rmaps_seq_DSO_TRUE$ac_delim ++OMPI_BUILD_rmaps_seq_DSO_FALSE!$OMPI_BUILD_rmaps_seq_DSO_FALSE$ac_delim ++MCA_rmaps_ALL_COMPONENTS!$MCA_rmaps_ALL_COMPONENTS$ac_delim ++MCA_rmaps_STATIC_COMPONENTS!$MCA_rmaps_STATIC_COMPONENTS$ac_delim ++MCA_rmaps_DSO_COMPONENTS!$MCA_rmaps_DSO_COMPONENTS$ac_delim ++MCA_rmaps_STATIC_LTLIBS!$MCA_rmaps_STATIC_LTLIBS$ac_delim ++MCA_rmaps_ALL_SUBDIRS!$MCA_rmaps_ALL_SUBDIRS$ac_delim ++MCA_rmaps_STATIC_SUBDIRS!$MCA_rmaps_STATIC_SUBDIRS$ac_delim ++MCA_rmaps_DSO_SUBDIRS!$MCA_rmaps_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_rml_oob_DSO_TRUE!$OMPI_BUILD_rml_oob_DSO_TRUE$ac_delim ++OMPI_BUILD_rml_oob_DSO_FALSE!$OMPI_BUILD_rml_oob_DSO_FALSE$ac_delim ++OMPI_BUILD_rml_ftrm_DSO_TRUE!$OMPI_BUILD_rml_ftrm_DSO_TRUE$ac_delim ++OMPI_BUILD_rml_ftrm_DSO_FALSE!$OMPI_BUILD_rml_ftrm_DSO_FALSE$ac_delim ++MCA_rml_ALL_COMPONENTS!$MCA_rml_ALL_COMPONENTS$ac_delim ++MCA_rml_STATIC_COMPONENTS!$MCA_rml_STATIC_COMPONENTS$ac_delim ++MCA_rml_DSO_COMPONENTS!$MCA_rml_DSO_COMPONENTS$ac_delim ++MCA_rml_STATIC_LTLIBS!$MCA_rml_STATIC_LTLIBS$ac_delim ++MCA_rml_ALL_SUBDIRS!$MCA_rml_ALL_SUBDIRS$ac_delim ++MCA_rml_STATIC_SUBDIRS!$MCA_rml_STATIC_SUBDIRS$ac_delim ++MCA_rml_DSO_SUBDIRS!$MCA_rml_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_routed_binomial_DSO_TRUE!$OMPI_BUILD_routed_binomial_DSO_TRUE$ac_delim ++OMPI_BUILD_routed_binomial_DSO_FALSE!$OMPI_BUILD_routed_binomial_DSO_FALSE$ac_delim ++OMPI_BUILD_routed_direct_DSO_TRUE!$OMPI_BUILD_routed_direct_DSO_TRUE$ac_delim ++OMPI_BUILD_routed_direct_DSO_FALSE!$OMPI_BUILD_routed_direct_DSO_FALSE$ac_delim ++OMPI_BUILD_routed_linear_DSO_TRUE!$OMPI_BUILD_routed_linear_DSO_TRUE$ac_delim ++OMPI_BUILD_routed_linear_DSO_FALSE!$OMPI_BUILD_routed_linear_DSO_FALSE$ac_delim ++MCA_routed_ALL_COMPONENTS!$MCA_routed_ALL_COMPONENTS$ac_delim ++MCA_routed_STATIC_COMPONENTS!$MCA_routed_STATIC_COMPONENTS$ac_delim ++MCA_routed_DSO_COMPONENTS!$MCA_routed_DSO_COMPONENTS$ac_delim ++MCA_routed_STATIC_LTLIBS!$MCA_routed_STATIC_LTLIBS$ac_delim ++MCA_routed_ALL_SUBDIRS!$MCA_routed_ALL_SUBDIRS$ac_delim ++MCA_routed_STATIC_SUBDIRS!$MCA_routed_STATIC_SUBDIRS$ac_delim ++MCA_routed_DSO_SUBDIRS!$MCA_routed_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_snapc_full_DSO_TRUE!$OMPI_BUILD_snapc_full_DSO_TRUE$ac_delim ++OMPI_BUILD_snapc_full_DSO_FALSE!$OMPI_BUILD_snapc_full_DSO_FALSE$ac_delim ++MCA_snapc_ALL_COMPONENTS!$MCA_snapc_ALL_COMPONENTS$ac_delim ++MCA_snapc_STATIC_COMPONENTS!$MCA_snapc_STATIC_COMPONENTS$ac_delim ++MCA_snapc_DSO_COMPONENTS!$MCA_snapc_DSO_COMPONENTS$ac_delim ++MCA_snapc_STATIC_LTLIBS!$MCA_snapc_STATIC_LTLIBS$ac_delim ++MCA_snapc_ALL_SUBDIRS!$MCA_snapc_ALL_SUBDIRS$ac_delim ++MCA_snapc_STATIC_SUBDIRS!$MCA_snapc_STATIC_SUBDIRS$ac_delim ++MCA_snapc_DSO_SUBDIRS!$MCA_snapc_DSO_SUBDIRS$ac_delim ++MCA_orte_FRAMEWORKS!$MCA_orte_FRAMEWORKS$ac_delim ++MCA_orte_FRAMEWORKS_SUBDIRS!$MCA_orte_FRAMEWORKS_SUBDIRS$ac_delim ++MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS!$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS$ac_delim ++MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS!$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS$ac_delim ++MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS!$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS$ac_delim ++MCA_orte_FRAMEWORK_LIBS!$MCA_orte_FRAMEWORK_LIBS$ac_delim ++OMPI_BUILD_allocator_basic_DSO_TRUE!$OMPI_BUILD_allocator_basic_DSO_TRUE$ac_delim ++OMPI_BUILD_allocator_basic_DSO_FALSE!$OMPI_BUILD_allocator_basic_DSO_FALSE$ac_delim ++OMPI_BUILD_allocator_bucket_DSO_TRUE!$OMPI_BUILD_allocator_bucket_DSO_TRUE$ac_delim ++OMPI_BUILD_allocator_bucket_DSO_FALSE!$OMPI_BUILD_allocator_bucket_DSO_FALSE$ac_delim ++MCA_allocator_ALL_COMPONENTS!$MCA_allocator_ALL_COMPONENTS$ac_delim ++MCA_allocator_STATIC_COMPONENTS!$MCA_allocator_STATIC_COMPONENTS$ac_delim ++MCA_allocator_DSO_COMPONENTS!$MCA_allocator_DSO_COMPONENTS$ac_delim ++MCA_allocator_STATIC_LTLIBS!$MCA_allocator_STATIC_LTLIBS$ac_delim ++MCA_allocator_ALL_SUBDIRS!$MCA_allocator_ALL_SUBDIRS$ac_delim ++MCA_allocator_STATIC_SUBDIRS!$MCA_allocator_STATIC_SUBDIRS$ac_delim ++MCA_allocator_DSO_SUBDIRS!$MCA_allocator_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_bml_r2_DSO_TRUE!$OMPI_BUILD_bml_r2_DSO_TRUE$ac_delim ++OMPI_BUILD_bml_r2_DSO_FALSE!$OMPI_BUILD_bml_r2_DSO_FALSE$ac_delim ++MCA_bml_ALL_COMPONENTS!$MCA_bml_ALL_COMPONENTS$ac_delim ++MCA_bml_STATIC_COMPONENTS!$MCA_bml_STATIC_COMPONENTS$ac_delim ++MCA_bml_DSO_COMPONENTS!$MCA_bml_DSO_COMPONENTS$ac_delim ++MCA_bml_STATIC_LTLIBS!$MCA_bml_STATIC_LTLIBS$ac_delim ++MCA_bml_ALL_SUBDIRS!$MCA_bml_ALL_SUBDIRS$ac_delim ++MCA_bml_STATIC_SUBDIRS!$MCA_bml_STATIC_SUBDIRS$ac_delim ++MCA_bml_DSO_SUBDIRS!$MCA_bml_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_btl_self_DSO_TRUE!$OMPI_BUILD_btl_self_DSO_TRUE$ac_delim ++OMPI_BUILD_btl_self_DSO_FALSE!$OMPI_BUILD_btl_self_DSO_FALSE$ac_delim ++OMPI_BUILD_btl_sm_DSO_TRUE!$OMPI_BUILD_btl_sm_DSO_TRUE$ac_delim ++OMPI_BUILD_btl_sm_DSO_FALSE!$OMPI_BUILD_btl_sm_DSO_FALSE$ac_delim ++btl_elan_CFLAGS!$btl_elan_CFLAGS$ac_delim ++btl_elan_CPPFLAGS!$btl_elan_CPPFLAGS$ac_delim ++btl_elan_LDFLAGS!$btl_elan_LDFLAGS$ac_delim ++btl_elan_LIBS!$btl_elan_LIBS$ac_delim ++OMPI_BUILD_btl_elan_DSO_TRUE!$OMPI_BUILD_btl_elan_DSO_TRUE$ac_delim ++OMPI_BUILD_btl_elan_DSO_FALSE!$OMPI_BUILD_btl_elan_DSO_FALSE$ac_delim ++btl_gm_CFLAGS!$btl_gm_CFLAGS$ac_delim ++btl_gm_CPPFLAGS!$btl_gm_CPPFLAGS$ac_delim ++btl_gm_LDFLAGS!$btl_gm_LDFLAGS$ac_delim ++btl_gm_LIBS!$btl_gm_LIBS$ac_delim ++OMPI_BUILD_btl_gm_DSO_TRUE!$OMPI_BUILD_btl_gm_DSO_TRUE$ac_delim ++OMPI_BUILD_btl_gm_DSO_FALSE!$OMPI_BUILD_btl_gm_DSO_FALSE$ac_delim ++btl_mx_CFLAGS!$btl_mx_CFLAGS$ac_delim ++btl_mx_CPPFLAGS!$btl_mx_CPPFLAGS$ac_delim ++btl_mx_LDFLAGS!$btl_mx_LDFLAGS$ac_delim ++btl_mx_LIBS!$btl_mx_LIBS$ac_delim ++OMPI_BUILD_btl_mx_DSO_TRUE!$OMPI_BUILD_btl_mx_DSO_TRUE$ac_delim ++OMPI_BUILD_btl_mx_DSO_FALSE!$OMPI_BUILD_btl_mx_DSO_FALSE$ac_delim ++btl_ofud_CFLAGS!$btl_ofud_CFLAGS$ac_delim ++btl_ofud_CPPFLAGS!$btl_ofud_CPPFLAGS$ac_delim ++btl_ofud_LDFLAGS!$btl_ofud_LDFLAGS$ac_delim ++btl_ofud_LIBS!$btl_ofud_LIBS$ac_delim ++_ACEOF ++ ++ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then ++ break ++ elif $ac_last_try; then ++ { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 ++echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ ac_delim="$ac_delim!$ac_delim _$ac_delim!! " ++ fi ++done ++ ++ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` ++if test -n "$ac_eof"; then ++ ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ++ ac_eof=`expr $ac_eof + 1` ++fi ++ ++cat >>$CONFIG_STATUS <<_ACEOF ++cat >"\$tmp/subs-7.sed" <<\CEOF$ac_eof ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b ++_ACEOF ++sed ' ++s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g ++s/^/s,@/; s/!/@,|#_!!_#|/ ++:n ++t n ++s/'"$ac_delim"'$/,g/; t ++s/$/\\/; p ++N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ++' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF ++CEOF$ac_eof ++_ACEOF ++ ++ ++ac_delim='%!_!# ' ++for ac_last_try in false false false false false :; do ++ cat >conf$$subs.sed <<_ACEOF ++OMPI_BUILD_btl_ofud_DSO_TRUE!$OMPI_BUILD_btl_ofud_DSO_TRUE$ac_delim ++OMPI_BUILD_btl_ofud_DSO_FALSE!$OMPI_BUILD_btl_ofud_DSO_FALSE$ac_delim ++btl_openib_CFLAGS!$btl_openib_CFLAGS$ac_delim ++btl_openib_CPPFLAGS!$btl_openib_CPPFLAGS$ac_delim ++btl_openib_LDFLAGS!$btl_openib_LDFLAGS$ac_delim ++btl_openib_LIBS!$btl_openib_LIBS$ac_delim ++MCA_btl_openib_have_xrc_TRUE!$MCA_btl_openib_have_xrc_TRUE$ac_delim ++MCA_btl_openib_have_xrc_FALSE!$MCA_btl_openib_have_xrc_FALSE$ac_delim ++MCA_btl_openib_have_rdmacm_TRUE!$MCA_btl_openib_have_rdmacm_TRUE$ac_delim ++MCA_btl_openib_have_rdmacm_FALSE!$MCA_btl_openib_have_rdmacm_FALSE$ac_delim ++MCA_btl_openib_have_ibcm_TRUE!$MCA_btl_openib_have_ibcm_TRUE$ac_delim ++MCA_btl_openib_have_ibcm_FALSE!$MCA_btl_openib_have_ibcm_FALSE$ac_delim ++OMPI_BUILD_btl_openib_DSO_TRUE!$OMPI_BUILD_btl_openib_DSO_TRUE$ac_delim ++OMPI_BUILD_btl_openib_DSO_FALSE!$OMPI_BUILD_btl_openib_DSO_FALSE$ac_delim ++btl_portals_CPPFLAGS!$btl_portals_CPPFLAGS$ac_delim ++btl_portals_LDFLAGS!$btl_portals_LDFLAGS$ac_delim ++btl_portals_LIBS!$btl_portals_LIBS$ac_delim ++OMPI_BUILD_btl_portals_DSO_TRUE!$OMPI_BUILD_btl_portals_DSO_TRUE$ac_delim ++OMPI_BUILD_btl_portals_DSO_FALSE!$OMPI_BUILD_btl_portals_DSO_FALSE$ac_delim ++OMPI_BUILD_btl_tcp_DSO_TRUE!$OMPI_BUILD_btl_tcp_DSO_TRUE$ac_delim ++OMPI_BUILD_btl_tcp_DSO_FALSE!$OMPI_BUILD_btl_tcp_DSO_FALSE$ac_delim ++btl_udapl_CFLAGS!$btl_udapl_CFLAGS$ac_delim ++btl_udapl_CPPFLAGS!$btl_udapl_CPPFLAGS$ac_delim ++btl_udapl_LDFLAGS!$btl_udapl_LDFLAGS$ac_delim ++btl_udapl_LIBS!$btl_udapl_LIBS$ac_delim ++OMPI_BUILD_btl_udapl_DSO_TRUE!$OMPI_BUILD_btl_udapl_DSO_TRUE$ac_delim ++OMPI_BUILD_btl_udapl_DSO_FALSE!$OMPI_BUILD_btl_udapl_DSO_FALSE$ac_delim ++MCA_btl_ALL_COMPONENTS!$MCA_btl_ALL_COMPONENTS$ac_delim ++MCA_btl_STATIC_COMPONENTS!$MCA_btl_STATIC_COMPONENTS$ac_delim ++MCA_btl_DSO_COMPONENTS!$MCA_btl_DSO_COMPONENTS$ac_delim ++MCA_btl_STATIC_LTLIBS!$MCA_btl_STATIC_LTLIBS$ac_delim ++MCA_btl_ALL_SUBDIRS!$MCA_btl_ALL_SUBDIRS$ac_delim ++MCA_btl_STATIC_SUBDIRS!$MCA_btl_STATIC_SUBDIRS$ac_delim ++MCA_btl_DSO_SUBDIRS!$MCA_btl_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_coll_basic_DSO_TRUE!$OMPI_BUILD_coll_basic_DSO_TRUE$ac_delim ++OMPI_BUILD_coll_basic_DSO_FALSE!$OMPI_BUILD_coll_basic_DSO_FALSE$ac_delim ++OMPI_BUILD_coll_hierarch_DSO_TRUE!$OMPI_BUILD_coll_hierarch_DSO_TRUE$ac_delim ++OMPI_BUILD_coll_hierarch_DSO_FALSE!$OMPI_BUILD_coll_hierarch_DSO_FALSE$ac_delim ++OMPI_BUILD_coll_inter_DSO_TRUE!$OMPI_BUILD_coll_inter_DSO_TRUE$ac_delim ++OMPI_BUILD_coll_inter_DSO_FALSE!$OMPI_BUILD_coll_inter_DSO_FALSE$ac_delim ++OMPI_BUILD_coll_self_DSO_TRUE!$OMPI_BUILD_coll_self_DSO_TRUE$ac_delim ++OMPI_BUILD_coll_self_DSO_FALSE!$OMPI_BUILD_coll_self_DSO_FALSE$ac_delim ++OMPI_BUILD_coll_sm_DSO_TRUE!$OMPI_BUILD_coll_sm_DSO_TRUE$ac_delim ++OMPI_BUILD_coll_sm_DSO_FALSE!$OMPI_BUILD_coll_sm_DSO_FALSE$ac_delim ++OMPI_BUILD_coll_tuned_DSO_TRUE!$OMPI_BUILD_coll_tuned_DSO_TRUE$ac_delim ++OMPI_BUILD_coll_tuned_DSO_FALSE!$OMPI_BUILD_coll_tuned_DSO_FALSE$ac_delim ++MCA_coll_ALL_COMPONENTS!$MCA_coll_ALL_COMPONENTS$ac_delim ++MCA_coll_STATIC_COMPONENTS!$MCA_coll_STATIC_COMPONENTS$ac_delim ++MCA_coll_DSO_COMPONENTS!$MCA_coll_DSO_COMPONENTS$ac_delim ++MCA_coll_STATIC_LTLIBS!$MCA_coll_STATIC_LTLIBS$ac_delim ++MCA_coll_ALL_SUBDIRS!$MCA_coll_ALL_SUBDIRS$ac_delim ++MCA_coll_STATIC_SUBDIRS!$MCA_coll_STATIC_SUBDIRS$ac_delim ++MCA_coll_DSO_SUBDIRS!$MCA_coll_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_common_sm_DSO_TRUE!$OMPI_BUILD_common_sm_DSO_TRUE$ac_delim ++OMPI_BUILD_common_sm_DSO_FALSE!$OMPI_BUILD_common_sm_DSO_FALSE$ac_delim ++common_mx_CFLAGS!$common_mx_CFLAGS$ac_delim ++common_mx_CPPFLAGS!$common_mx_CPPFLAGS$ac_delim ++common_mx_LDFLAGS!$common_mx_LDFLAGS$ac_delim ++common_mx_LIBS!$common_mx_LIBS$ac_delim ++OMPI_BUILD_common_mx_DSO_TRUE!$OMPI_BUILD_common_mx_DSO_TRUE$ac_delim ++OMPI_BUILD_common_mx_DSO_FALSE!$OMPI_BUILD_common_mx_DSO_FALSE$ac_delim ++common_portals_CPPFLAGS!$common_portals_CPPFLAGS$ac_delim ++common_portals_LDFLAGS!$common_portals_LDFLAGS$ac_delim ++common_portals_LIBS!$common_portals_LIBS$ac_delim ++OMPI_BUILD_common_portals_DSO_TRUE!$OMPI_BUILD_common_portals_DSO_TRUE$ac_delim ++OMPI_BUILD_common_portals_DSO_FALSE!$OMPI_BUILD_common_portals_DSO_FALSE$ac_delim ++MCA_common_ALL_COMPONENTS!$MCA_common_ALL_COMPONENTS$ac_delim ++MCA_common_STATIC_COMPONENTS!$MCA_common_STATIC_COMPONENTS$ac_delim ++MCA_common_DSO_COMPONENTS!$MCA_common_DSO_COMPONENTS$ac_delim ++MCA_common_STATIC_LTLIBS!$MCA_common_STATIC_LTLIBS$ac_delim ++MCA_common_ALL_SUBDIRS!$MCA_common_ALL_SUBDIRS$ac_delim ++MCA_common_STATIC_SUBDIRS!$MCA_common_STATIC_SUBDIRS$ac_delim ++MCA_common_DSO_SUBDIRS!$MCA_common_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_crcp_bkmrk_DSO_TRUE!$OMPI_BUILD_crcp_bkmrk_DSO_TRUE$ac_delim ++OMPI_BUILD_crcp_bkmrk_DSO_FALSE!$OMPI_BUILD_crcp_bkmrk_DSO_FALSE$ac_delim ++MCA_crcp_ALL_COMPONENTS!$MCA_crcp_ALL_COMPONENTS$ac_delim ++MCA_crcp_STATIC_COMPONENTS!$MCA_crcp_STATIC_COMPONENTS$ac_delim ++MCA_crcp_DSO_COMPONENTS!$MCA_crcp_DSO_COMPONENTS$ac_delim ++MCA_crcp_STATIC_LTLIBS!$MCA_crcp_STATIC_LTLIBS$ac_delim ++MCA_crcp_ALL_SUBDIRS!$MCA_crcp_ALL_SUBDIRS$ac_delim ++MCA_crcp_STATIC_SUBDIRS!$MCA_crcp_STATIC_SUBDIRS$ac_delim ++MCA_crcp_DSO_SUBDIRS!$MCA_crcp_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_dpm_orte_DSO_TRUE!$OMPI_BUILD_dpm_orte_DSO_TRUE$ac_delim ++OMPI_BUILD_dpm_orte_DSO_FALSE!$OMPI_BUILD_dpm_orte_DSO_FALSE$ac_delim ++MCA_dpm_ALL_COMPONENTS!$MCA_dpm_ALL_COMPONENTS$ac_delim ++MCA_dpm_STATIC_COMPONENTS!$MCA_dpm_STATIC_COMPONENTS$ac_delim ++MCA_dpm_DSO_COMPONENTS!$MCA_dpm_DSO_COMPONENTS$ac_delim ++MCA_dpm_STATIC_LTLIBS!$MCA_dpm_STATIC_LTLIBS$ac_delim ++MCA_dpm_ALL_SUBDIRS!$MCA_dpm_ALL_SUBDIRS$ac_delim ++MCA_dpm_STATIC_SUBDIRS!$MCA_dpm_STATIC_SUBDIRS$ac_delim ++MCA_dpm_DSO_SUBDIRS!$MCA_dpm_DSO_SUBDIRS$ac_delim ++MCA_io_romio_SHOULD_BUILD_TRUE!$MCA_io_romio_SHOULD_BUILD_TRUE$ac_delim ++MCA_io_romio_SHOULD_BUILD_FALSE!$MCA_io_romio_SHOULD_BUILD_FALSE$ac_delim ++OMPI_BUILD_io_romio_DSO_TRUE!$OMPI_BUILD_io_romio_DSO_TRUE$ac_delim ++OMPI_BUILD_io_romio_DSO_FALSE!$OMPI_BUILD_io_romio_DSO_FALSE$ac_delim ++MCA_io_ALL_COMPONENTS!$MCA_io_ALL_COMPONENTS$ac_delim ++MCA_io_STATIC_COMPONENTS!$MCA_io_STATIC_COMPONENTS$ac_delim ++_ACEOF ++ ++ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then ++ break ++ elif $ac_last_try; then ++ { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 ++echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ ac_delim="$ac_delim!$ac_delim _$ac_delim!! " ++ fi ++done ++ ++ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` ++if test -n "$ac_eof"; then ++ ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ++ ac_eof=`expr $ac_eof + 1` ++fi ++ ++cat >>$CONFIG_STATUS <<_ACEOF ++cat >"\$tmp/subs-8.sed" <<\CEOF$ac_eof ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b ++_ACEOF ++sed ' ++s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g ++s/^/s,@/; s/!/@,|#_!!_#|/ ++:n ++t n ++s/'"$ac_delim"'$/,g/; t ++s/$/\\/; p ++N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ++' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF ++CEOF$ac_eof ++_ACEOF ++ ++ ++ac_delim='%!_!# ' ++for ac_last_try in false false false false false :; do ++ cat >conf$$subs.sed <<_ACEOF ++MCA_io_DSO_COMPONENTS!$MCA_io_DSO_COMPONENTS$ac_delim ++MCA_io_STATIC_LTLIBS!$MCA_io_STATIC_LTLIBS$ac_delim ++MCA_io_ALL_SUBDIRS!$MCA_io_ALL_SUBDIRS$ac_delim ++MCA_io_STATIC_SUBDIRS!$MCA_io_STATIC_SUBDIRS$ac_delim ++MCA_io_DSO_SUBDIRS!$MCA_io_DSO_SUBDIRS$ac_delim ++OMPI_PROVIDE_MPI_FILE_INTERFACE_TRUE!$OMPI_PROVIDE_MPI_FILE_INTERFACE_TRUE$ac_delim ++OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE!$OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE$ac_delim ++OMPI_MPIF_MPI_IO_INCLUDE!$OMPI_MPIF_MPI_IO_INCLUDE$ac_delim ++OMPI_BUILD_mpool_fake_DSO_TRUE!$OMPI_BUILD_mpool_fake_DSO_TRUE$ac_delim ++OMPI_BUILD_mpool_fake_DSO_FALSE!$OMPI_BUILD_mpool_fake_DSO_FALSE$ac_delim ++OMPI_BUILD_mpool_rdma_DSO_TRUE!$OMPI_BUILD_mpool_rdma_DSO_TRUE$ac_delim ++OMPI_BUILD_mpool_rdma_DSO_FALSE!$OMPI_BUILD_mpool_rdma_DSO_FALSE$ac_delim ++OMPI_BUILD_mpool_sm_DSO_TRUE!$OMPI_BUILD_mpool_sm_DSO_TRUE$ac_delim ++OMPI_BUILD_mpool_sm_DSO_FALSE!$OMPI_BUILD_mpool_sm_DSO_FALSE$ac_delim ++MCA_mpool_ALL_COMPONENTS!$MCA_mpool_ALL_COMPONENTS$ac_delim ++MCA_mpool_STATIC_COMPONENTS!$MCA_mpool_STATIC_COMPONENTS$ac_delim ++MCA_mpool_DSO_COMPONENTS!$MCA_mpool_DSO_COMPONENTS$ac_delim ++MCA_mpool_STATIC_LTLIBS!$MCA_mpool_STATIC_LTLIBS$ac_delim ++MCA_mpool_ALL_SUBDIRS!$MCA_mpool_ALL_SUBDIRS$ac_delim ++MCA_mpool_STATIC_SUBDIRS!$MCA_mpool_STATIC_SUBDIRS$ac_delim ++MCA_mpool_DSO_SUBDIRS!$MCA_mpool_DSO_SUBDIRS$ac_delim ++mtl_mx_CFLAGS!$mtl_mx_CFLAGS$ac_delim ++mtl_mx_CPPFLAGS!$mtl_mx_CPPFLAGS$ac_delim ++mtl_mx_LDFLAGS!$mtl_mx_LDFLAGS$ac_delim ++mtl_mx_LIBS!$mtl_mx_LIBS$ac_delim ++OMPI_BUILD_mtl_mx_DSO_TRUE!$OMPI_BUILD_mtl_mx_DSO_TRUE$ac_delim ++OMPI_BUILD_mtl_mx_DSO_FALSE!$OMPI_BUILD_mtl_mx_DSO_FALSE$ac_delim ++mtl_portals_CPPFLAGS!$mtl_portals_CPPFLAGS$ac_delim ++mtl_portals_LDFLAGS!$mtl_portals_LDFLAGS$ac_delim ++mtl_portals_LIBS!$mtl_portals_LIBS$ac_delim ++OMPI_BUILD_mtl_portals_DSO_TRUE!$OMPI_BUILD_mtl_portals_DSO_TRUE$ac_delim ++OMPI_BUILD_mtl_portals_DSO_FALSE!$OMPI_BUILD_mtl_portals_DSO_FALSE$ac_delim ++mtl_psm_CFLAGS!$mtl_psm_CFLAGS$ac_delim ++mtl_psm_CPPFLAGS!$mtl_psm_CPPFLAGS$ac_delim ++mtl_psm_LDFLAGS!$mtl_psm_LDFLAGS$ac_delim ++mtl_psm_LIBS!$mtl_psm_LIBS$ac_delim ++OMPI_BUILD_mtl_psm_DSO_TRUE!$OMPI_BUILD_mtl_psm_DSO_TRUE$ac_delim ++OMPI_BUILD_mtl_psm_DSO_FALSE!$OMPI_BUILD_mtl_psm_DSO_FALSE$ac_delim ++MCA_mtl_ALL_COMPONENTS!$MCA_mtl_ALL_COMPONENTS$ac_delim ++MCA_mtl_STATIC_COMPONENTS!$MCA_mtl_STATIC_COMPONENTS$ac_delim ++MCA_mtl_DSO_COMPONENTS!$MCA_mtl_DSO_COMPONENTS$ac_delim ++MCA_mtl_STATIC_LTLIBS!$MCA_mtl_STATIC_LTLIBS$ac_delim ++MCA_mtl_ALL_SUBDIRS!$MCA_mtl_ALL_SUBDIRS$ac_delim ++MCA_mtl_STATIC_SUBDIRS!$MCA_mtl_STATIC_SUBDIRS$ac_delim ++MCA_mtl_DSO_SUBDIRS!$MCA_mtl_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_osc_pt2pt_DSO_TRUE!$OMPI_BUILD_osc_pt2pt_DSO_TRUE$ac_delim ++OMPI_BUILD_osc_pt2pt_DSO_FALSE!$OMPI_BUILD_osc_pt2pt_DSO_FALSE$ac_delim ++OMPI_BUILD_osc_rdma_DSO_TRUE!$OMPI_BUILD_osc_rdma_DSO_TRUE$ac_delim ++OMPI_BUILD_osc_rdma_DSO_FALSE!$OMPI_BUILD_osc_rdma_DSO_FALSE$ac_delim ++MCA_osc_ALL_COMPONENTS!$MCA_osc_ALL_COMPONENTS$ac_delim ++MCA_osc_STATIC_COMPONENTS!$MCA_osc_STATIC_COMPONENTS$ac_delim ++MCA_osc_DSO_COMPONENTS!$MCA_osc_DSO_COMPONENTS$ac_delim ++MCA_osc_STATIC_LTLIBS!$MCA_osc_STATIC_LTLIBS$ac_delim ++MCA_osc_ALL_SUBDIRS!$MCA_osc_ALL_SUBDIRS$ac_delim ++MCA_osc_STATIC_SUBDIRS!$MCA_osc_STATIC_SUBDIRS$ac_delim ++MCA_osc_DSO_SUBDIRS!$MCA_osc_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_pml_cm_DSO_TRUE!$OMPI_BUILD_pml_cm_DSO_TRUE$ac_delim ++OMPI_BUILD_pml_cm_DSO_FALSE!$OMPI_BUILD_pml_cm_DSO_FALSE$ac_delim ++OMPI_BUILD_pml_ob1_DSO_TRUE!$OMPI_BUILD_pml_ob1_DSO_TRUE$ac_delim ++OMPI_BUILD_pml_ob1_DSO_FALSE!$OMPI_BUILD_pml_ob1_DSO_FALSE$ac_delim ++OMPI_BUILD_pml_crcpw_DSO_TRUE!$OMPI_BUILD_pml_crcpw_DSO_TRUE$ac_delim ++OMPI_BUILD_pml_crcpw_DSO_FALSE!$OMPI_BUILD_pml_crcpw_DSO_FALSE$ac_delim ++OMPI_BUILD_vprotocol_pessimist_DSO_TRUE!$OMPI_BUILD_vprotocol_pessimist_DSO_TRUE$ac_delim ++OMPI_BUILD_vprotocol_pessimist_DSO_FALSE!$OMPI_BUILD_vprotocol_pessimist_DSO_FALSE$ac_delim ++MCA_vprotocol_ALL_COMPONENTS!$MCA_vprotocol_ALL_COMPONENTS$ac_delim ++MCA_vprotocol_STATIC_COMPONENTS!$MCA_vprotocol_STATIC_COMPONENTS$ac_delim ++MCA_vprotocol_DSO_COMPONENTS!$MCA_vprotocol_DSO_COMPONENTS$ac_delim ++MCA_vprotocol_STATIC_LTLIBS!$MCA_vprotocol_STATIC_LTLIBS$ac_delim ++MCA_vprotocol_ALL_SUBDIRS!$MCA_vprotocol_ALL_SUBDIRS$ac_delim ++MCA_vprotocol_STATIC_SUBDIRS!$MCA_vprotocol_STATIC_SUBDIRS$ac_delim ++MCA_vprotocol_DSO_SUBDIRS!$MCA_vprotocol_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_pml_v_DSO_TRUE!$OMPI_BUILD_pml_v_DSO_TRUE$ac_delim ++OMPI_BUILD_pml_v_DSO_FALSE!$OMPI_BUILD_pml_v_DSO_FALSE$ac_delim ++MCA_pml_ALL_COMPONENTS!$MCA_pml_ALL_COMPONENTS$ac_delim ++MCA_pml_STATIC_COMPONENTS!$MCA_pml_STATIC_COMPONENTS$ac_delim ++MCA_pml_DSO_COMPONENTS!$MCA_pml_DSO_COMPONENTS$ac_delim ++MCA_pml_STATIC_LTLIBS!$MCA_pml_STATIC_LTLIBS$ac_delim ++MCA_pml_ALL_SUBDIRS!$MCA_pml_ALL_SUBDIRS$ac_delim ++MCA_pml_STATIC_SUBDIRS!$MCA_pml_STATIC_SUBDIRS$ac_delim ++MCA_pml_DSO_SUBDIRS!$MCA_pml_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_pubsub_orte_DSO_TRUE!$OMPI_BUILD_pubsub_orte_DSO_TRUE$ac_delim ++OMPI_BUILD_pubsub_orte_DSO_FALSE!$OMPI_BUILD_pubsub_orte_DSO_FALSE$ac_delim ++MCA_pubsub_ALL_COMPONENTS!$MCA_pubsub_ALL_COMPONENTS$ac_delim ++MCA_pubsub_STATIC_COMPONENTS!$MCA_pubsub_STATIC_COMPONENTS$ac_delim ++MCA_pubsub_DSO_COMPONENTS!$MCA_pubsub_DSO_COMPONENTS$ac_delim ++MCA_pubsub_STATIC_LTLIBS!$MCA_pubsub_STATIC_LTLIBS$ac_delim ++MCA_pubsub_ALL_SUBDIRS!$MCA_pubsub_ALL_SUBDIRS$ac_delim ++MCA_pubsub_STATIC_SUBDIRS!$MCA_pubsub_STATIC_SUBDIRS$ac_delim ++MCA_pubsub_DSO_SUBDIRS!$MCA_pubsub_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_rcache_vma_DSO_TRUE!$OMPI_BUILD_rcache_vma_DSO_TRUE$ac_delim ++OMPI_BUILD_rcache_vma_DSO_FALSE!$OMPI_BUILD_rcache_vma_DSO_FALSE$ac_delim ++MCA_rcache_ALL_COMPONENTS!$MCA_rcache_ALL_COMPONENTS$ac_delim ++MCA_rcache_STATIC_COMPONENTS!$MCA_rcache_STATIC_COMPONENTS$ac_delim ++MCA_rcache_DSO_COMPONENTS!$MCA_rcache_DSO_COMPONENTS$ac_delim ++MCA_rcache_STATIC_LTLIBS!$MCA_rcache_STATIC_LTLIBS$ac_delim ++MCA_rcache_ALL_SUBDIRS!$MCA_rcache_ALL_SUBDIRS$ac_delim ++MCA_rcache_STATIC_SUBDIRS!$MCA_rcache_STATIC_SUBDIRS$ac_delim ++_ACEOF ++ ++ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then ++ break ++ elif $ac_last_try; then ++ { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 ++echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ ac_delim="$ac_delim!$ac_delim _$ac_delim!! " ++ fi ++done ++ ++ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` ++if test -n "$ac_eof"; then ++ ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ++ ac_eof=`expr $ac_eof + 1` ++fi ++ ++cat >>$CONFIG_STATUS <<_ACEOF ++cat >"\$tmp/subs-9.sed" <<\CEOF$ac_eof ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b ++_ACEOF ++sed ' ++s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g ++s/^/s,@/; s/!/@,|#_!!_#|/ ++:n ++t n ++s/'"$ac_delim"'$/,g/; t ++s/$/\\/; p ++N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ++' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF ++CEOF$ac_eof ++_ACEOF ++ ++ ++ac_delim='%!_!# ' ++for ac_last_try in false false false false false :; do ++ cat >conf$$subs.sed <<_ACEOF ++MCA_rcache_DSO_SUBDIRS!$MCA_rcache_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_topo_unity_DSO_TRUE!$OMPI_BUILD_topo_unity_DSO_TRUE$ac_delim ++OMPI_BUILD_topo_unity_DSO_FALSE!$OMPI_BUILD_topo_unity_DSO_FALSE$ac_delim ++MCA_topo_ALL_COMPONENTS!$MCA_topo_ALL_COMPONENTS$ac_delim ++MCA_topo_STATIC_COMPONENTS!$MCA_topo_STATIC_COMPONENTS$ac_delim ++MCA_topo_DSO_COMPONENTS!$MCA_topo_DSO_COMPONENTS$ac_delim ++MCA_topo_STATIC_LTLIBS!$MCA_topo_STATIC_LTLIBS$ac_delim ++MCA_topo_ALL_SUBDIRS!$MCA_topo_ALL_SUBDIRS$ac_delim ++MCA_topo_STATIC_SUBDIRS!$MCA_topo_STATIC_SUBDIRS$ac_delim ++MCA_topo_DSO_SUBDIRS!$MCA_topo_DSO_SUBDIRS$ac_delim ++MCA_ompi_FRAMEWORKS!$MCA_ompi_FRAMEWORKS$ac_delim ++MCA_ompi_FRAMEWORKS_SUBDIRS!$MCA_ompi_FRAMEWORKS_SUBDIRS$ac_delim ++MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS!$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS$ac_delim ++MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS!$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS$ac_delim ++MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS!$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS$ac_delim ++MCA_ompi_FRAMEWORK_LIBS!$MCA_ompi_FRAMEWORK_LIBS$ac_delim ++MCA_pml_DIRECT_CALL_HEADER!$MCA_pml_DIRECT_CALL_HEADER$ac_delim ++MCA_mtl_DIRECT_CALL_HEADER!$MCA_mtl_DIRECT_CALL_HEADER$ac_delim ++MCA_PROJECT_SUBDIRS!$MCA_PROJECT_SUBDIRS$ac_delim ++OMPI_CONTRIB_SUBDIRS!$OMPI_CONTRIB_SUBDIRS$ac_delim ++OMPI_CONTRIB_DIST_SUBDIRS!$OMPI_CONTRIB_DIST_SUBDIRS$ac_delim ++OMPI_LIBEVENT_SOURCES!$OMPI_LIBEVENT_SOURCES$ac_delim ++LIBLTDL!$LIBLTDL$ac_delim ++LTDLDEPS!$LTDLDEPS$ac_delim ++LTDLINCL!$LTDLINCL$ac_delim ++INCLTDL!$INCLTDL$ac_delim ++AS!$AS$ac_delim ++DLLTOOL!$DLLTOOL$ac_delim ++LIBTOOL!$LIBTOOL$ac_delim ++SED!$SED$ac_delim ++LD!$LD$ac_delim ++AR!$AR$ac_delim ++RANLIB!$RANLIB$ac_delim ++lt_ECHO!$lt_ECHO$ac_delim ++DSYMUTIL!$DSYMUTIL$ac_delim ++NMEDIT!$NMEDIT$ac_delim ++LIPO!$LIPO$ac_delim ++OTOOL!$OTOOL$ac_delim ++OTOOL64!$OTOOL64$ac_delim ++LIBLTDL_SUBDIR!$LIBLTDL_SUBDIR$ac_delim ++TOTALVIEW_DEBUG_FLAGS!$TOTALVIEW_DEBUG_FLAGS$ac_delim ++CXXCPPFLAGS!$CXXCPPFLAGS$ac_delim ++OMPI_LIBMPI_EXTRA_LIBS!$OMPI_LIBMPI_EXTRA_LIBS$ac_delim ++OMPI_LIBMPI_EXTRA_LDFLAGS!$OMPI_LIBMPI_EXTRA_LDFLAGS$ac_delim ++AMCA_PARAM_SETS_DIR!$AMCA_PARAM_SETS_DIR$ac_delim ++OPAL_WRAPPER_EXTRA_CPPFLAGS!$OPAL_WRAPPER_EXTRA_CPPFLAGS$ac_delim ++OPAL_WRAPPER_EXTRA_CFLAGS!$OPAL_WRAPPER_EXTRA_CFLAGS$ac_delim ++OPAL_WRAPPER_EXTRA_CXXFLAGS!$OPAL_WRAPPER_EXTRA_CXXFLAGS$ac_delim ++OPAL_WRAPPER_EXTRA_LDFLAGS!$OPAL_WRAPPER_EXTRA_LDFLAGS$ac_delim ++OPAL_WRAPPER_EXTRA_LIBS!$OPAL_WRAPPER_EXTRA_LIBS$ac_delim ++OPAL_WRAPPER_EXTRA_INCLUDES!$OPAL_WRAPPER_EXTRA_INCLUDES$ac_delim ++ORTE_WRAPPER_EXTRA_CPPFLAGS!$ORTE_WRAPPER_EXTRA_CPPFLAGS$ac_delim ++ORTE_WRAPPER_EXTRA_CFLAGS!$ORTE_WRAPPER_EXTRA_CFLAGS$ac_delim ++ORTE_WRAPPER_EXTRA_CXXFLAGS!$ORTE_WRAPPER_EXTRA_CXXFLAGS$ac_delim ++ORTE_WRAPPER_EXTRA_LDFLAGS!$ORTE_WRAPPER_EXTRA_LDFLAGS$ac_delim ++ORTE_WRAPPER_EXTRA_LIBS!$ORTE_WRAPPER_EXTRA_LIBS$ac_delim ++ORTE_WRAPPER_EXTRA_INCLUDES!$ORTE_WRAPPER_EXTRA_INCLUDES$ac_delim ++OMPI_WRAPPER_EXTRA_CPPFLAGS!$OMPI_WRAPPER_EXTRA_CPPFLAGS$ac_delim ++OMPI_WRAPPER_EXTRA_CFLAGS!$OMPI_WRAPPER_EXTRA_CFLAGS$ac_delim ++OMPI_WRAPPER_EXTRA_CXXFLAGS!$OMPI_WRAPPER_EXTRA_CXXFLAGS$ac_delim ++OMPI_WRAPPER_EXTRA_FFLAGS!$OMPI_WRAPPER_EXTRA_FFLAGS$ac_delim ++OMPI_WRAPPER_EXTRA_FCFLAGS!$OMPI_WRAPPER_EXTRA_FCFLAGS$ac_delim ++OMPI_WRAPPER_EXTRA_LDFLAGS!$OMPI_WRAPPER_EXTRA_LDFLAGS$ac_delim ++OMPI_WRAPPER_EXTRA_LIBS!$OMPI_WRAPPER_EXTRA_LIBS$ac_delim ++OMPI_WRAPPER_EXTRA_INCLUDES!$OMPI_WRAPPER_EXTRA_INCLUDES$ac_delim ++OMPI_WRAPPER_CXX_LIB!$OMPI_WRAPPER_CXX_LIB$ac_delim ++OMPI_WRAPPER_CXX_REQUIRED_FILE!$OMPI_WRAPPER_CXX_REQUIRED_FILE$ac_delim ++OMPI_WRAPPER_F77_REQUIRED_FILE!$OMPI_WRAPPER_F77_REQUIRED_FILE$ac_delim ++OMPI_WRAPPER_F90_REQUIRED_FILE!$OMPI_WRAPPER_F90_REQUIRED_FILE$ac_delim ++OMPI_WRAPPER_INCLUDEDIR!$OMPI_WRAPPER_INCLUDEDIR$ac_delim ++OMPI_WRAPPER_LIBDIR!$OMPI_WRAPPER_LIBDIR$ac_delim ++WRAPPER_EXTRA_CFLAGS!$WRAPPER_EXTRA_CFLAGS$ac_delim ++WRAPPER_EXTRA_CXXFLAGS!$WRAPPER_EXTRA_CXXFLAGS$ac_delim ++WRAPPER_EXTRA_FFLAGS!$WRAPPER_EXTRA_FFLAGS$ac_delim ++WRAPPER_EXTRA_FCFLAGS!$WRAPPER_EXTRA_FCFLAGS$ac_delim ++WRAPPER_EXTRA_LDFLAGS!$WRAPPER_EXTRA_LDFLAGS$ac_delim ++WRAPPER_EXTRA_LIBS!$WRAPPER_EXTRA_LIBS$ac_delim ++LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim ++LTLIBOBJS!$LTLIBOBJS$ac_delim ++_ACEOF ++ ++ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then ++ break ++ elif $ac_last_try; then ++ { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 ++echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ ac_delim="$ac_delim!$ac_delim _$ac_delim!! " ++ fi ++done ++ ++ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` ++if test -n "$ac_eof"; then ++ ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ++ ac_eof=`expr $ac_eof + 1` ++fi ++ ++cat >>$CONFIG_STATUS <<_ACEOF ++cat >"\$tmp/subs-10.sed" <<\CEOF$ac_eof ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end ++_ACEOF ++sed ' ++s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g ++s/^/s,@/; s/!/@,|#_!!_#|/ ++:n ++t n ++s/'"$ac_delim"'$/,g/; t ++s/$/\\/; p ++N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ++' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF ++:end ++s/|#_!!_#|//g ++CEOF$ac_eof ++_ACEOF ++ ++ ++# VPATH may cause trouble with some makes, so we remove $(srcdir), ++# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and ++# trailing colons and then remove the whole line if VPATH becomes empty ++# (actually we leave an empty line to preserve line numbers). ++if test "x$srcdir" = x.; then ++ ac_vpsub='/^[ ]*VPATH[ ]*=/{ ++s/:*\$(srcdir):*/:/ ++s/:*\${srcdir}:*/:/ ++s/:*@srcdir@:*/:/ ++s/^\([^=]*=[ ]*\):*/\1/ ++s/:*$// ++s/^[^=]*=[ ]*$// ++}' ++fi ++ ++cat >>$CONFIG_STATUS <<\_ACEOF ++fi # test -n "$CONFIG_FILES" ++ ++ ++for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS ++do ++ case $ac_tag in ++ :[FHLC]) ac_mode=$ac_tag; continue;; ++ esac ++ case $ac_mode$ac_tag in ++ :[FHL]*:*);; ++ :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 ++echo "$as_me: error: Invalid tag $ac_tag." >&2;} ++ { (exit 1); exit 1; }; };; ++ :[FH]-) ac_tag=-:-;; ++ :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; ++ esac ++ ac_save_IFS=$IFS ++ IFS=: ++ set x $ac_tag ++ IFS=$ac_save_IFS ++ shift ++ ac_file=$1 ++ shift ++ ++ case $ac_mode in ++ :L) ac_source=$1;; ++ :[FH]) ++ ac_file_inputs= ++ for ac_f ++ do ++ case $ac_f in ++ -) ac_f="$tmp/stdin";; ++ *) # Look for the file first in the build tree, then in the source tree ++ # (if the path is not absolute). The absolute path cannot be DOS-style, ++ # because $ac_f cannot contain `:'. ++ test -f "$ac_f" || ++ case $ac_f in ++ [\\/$]*) false;; ++ *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; ++ esac || ++ { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 ++echo "$as_me: error: cannot find input file: $ac_f" >&2;} ++ { (exit 1); exit 1; }; };; ++ esac ++ ac_file_inputs="$ac_file_inputs $ac_f" ++ done ++ ++ # Let's still pretend it is `configure' which instantiates (i.e., don't ++ # use $as_me), people would be surprised to read: ++ # /* config.h. Generated by config.status. */ ++ configure_input="Generated from "`IFS=: ++ echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." ++ if test x"$ac_file" != x-; then ++ configure_input="$ac_file. $configure_input" ++ { echo "$as_me:$LINENO: creating $ac_file" >&5 ++echo "$as_me: creating $ac_file" >&6;} ++ fi ++ ++ case $ac_tag in ++ *:-:* | *:-) cat >"$tmp/stdin";; ++ esac ++ ;; ++ esac ++ ++ ac_dir=`$as_dirname -- "$ac_file" || ++$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$ac_file" : 'X\(//\)[^/]' \| \ ++ X"$ac_file" : 'X\(//\)$' \| \ ++ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$ac_file" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ { as_dir="$ac_dir" ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ac_builddir=. ++ ++case "$ac_dir" in ++.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; ++*) ++ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` ++ # A ".." for each directory in $ac_dir_suffix. ++ ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` ++ case $ac_top_builddir_sub in ++ "") ac_top_builddir_sub=. ac_top_build_prefix= ;; ++ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; ++ esac ;; ++esac ++ac_abs_top_builddir=$ac_pwd ++ac_abs_builddir=$ac_pwd$ac_dir_suffix ++# for backward compatibility: ++ac_top_builddir=$ac_top_build_prefix ++ ++case $srcdir in ++ .) # We are building in place. ++ ac_srcdir=. ++ ac_top_srcdir=$ac_top_builddir_sub ++ ac_abs_top_srcdir=$ac_pwd ;; ++ [\\/]* | ?:[\\/]* ) # Absolute name. ++ ac_srcdir=$srcdir$ac_dir_suffix; ++ ac_top_srcdir=$srcdir ++ ac_abs_top_srcdir=$srcdir ;; ++ *) # Relative name. ++ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ++ ac_top_srcdir=$ac_top_build_prefix$srcdir ++ ac_abs_top_srcdir=$ac_pwd/$srcdir ;; ++esac ++ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix ++ ++ ++ case $ac_mode in ++ :F) ++ # ++ # CONFIG_FILE ++ # ++ ++ case $INSTALL in ++ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; ++ *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; ++ esac ++ ac_MKDIR_P=$MKDIR_P ++ case $MKDIR_P in ++ [\\/$]* | ?:[\\/]* ) ;; ++ */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; ++ esac ++_ACEOF ++ ++cat >>$CONFIG_STATUS <<\_ACEOF ++# If the template does not know about datarootdir, expand it. ++# FIXME: This hack should be removed a few years after 2.60. ++ac_datarootdir_hack=; ac_datarootdir_seen= ++ ++case `sed -n '/datarootdir/ { ++ p ++ q ++} ++/@datadir@/p ++/@docdir@/p ++/@infodir@/p ++/@localedir@/p ++/@mandir@/p ++' $ac_file_inputs` in ++*datarootdir*) ac_datarootdir_seen=yes;; ++*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) ++ { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 ++echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} ++_ACEOF ++cat >>$CONFIG_STATUS <<_ACEOF ++ ac_datarootdir_hack=' ++ s&@datadir@&$datadir&g ++ s&@docdir@&$docdir&g ++ s&@infodir@&$infodir&g ++ s&@localedir@&$localedir&g ++ s&@mandir@&$mandir&g ++ s&\\\${datarootdir}&$datarootdir&g' ;; ++esac ++_ACEOF ++ ++# Neutralize VPATH when `$srcdir' = `.'. ++# Shell code in configure.ac might set extrasub. ++# FIXME: do we really want to maintain this feature? ++cat >>$CONFIG_STATUS <<_ACEOF ++ sed "$ac_vpsub ++$extrasub ++_ACEOF ++cat >>$CONFIG_STATUS <<\_ACEOF ++:t ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b ++s&@configure_input@&$configure_input&;t t ++s&@top_builddir@&$ac_top_builddir_sub&;t t ++s&@srcdir@&$ac_srcdir&;t t ++s&@abs_srcdir@&$ac_abs_srcdir&;t t ++s&@top_srcdir@&$ac_top_srcdir&;t t ++s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t ++s&@builddir@&$ac_builddir&;t t ++s&@abs_builddir@&$ac_abs_builddir&;t t ++s&@abs_top_builddir@&$ac_abs_top_builddir&;t t ++s&@INSTALL@&$ac_INSTALL&;t t ++s&@MKDIR_P@&$ac_MKDIR_P&;t t ++$ac_datarootdir_hack ++" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" | sed -f "$tmp/subs-5.sed" | sed -f "$tmp/subs-6.sed" | sed -f "$tmp/subs-7.sed" | sed -f "$tmp/subs-8.sed" | sed -f "$tmp/subs-9.sed" | sed -f "$tmp/subs-10.sed" >$tmp/out ++ ++test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && ++ { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && ++ { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && ++ { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' ++which seems to be undefined. Please make sure it is defined." >&5 ++echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' ++which seems to be undefined. Please make sure it is defined." >&2;} ++ ++ rm -f "$tmp/stdin" ++ case $ac_file in ++ -) cat "$tmp/out"; rm -f "$tmp/out";; ++ *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; ++ esac ++ ;; ++ :H) ++ # ++ # CONFIG_HEADER ++ # ++_ACEOF ++ ++# Transform confdefs.h into a sed script `conftest.defines', that ++# substitutes the proper values into config.h.in to produce config.h. ++rm -f conftest.defines conftest.tail ++# First, append a space to every undef/define line, to ease matching. ++echo 's/$/ /' >conftest.defines ++# Then, protect against being on the right side of a sed subst, or in ++# an unquoted here document, in config.status. If some macros were ++# called several times there might be several #defines for the same ++# symbol, which is useless. But do not sort them, since the last ++# AC_DEFINE must be honored. ++ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* ++# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where ++# NAME is the cpp macro being defined, VALUE is the value it is being given. ++# PARAMS is the parameter list in the macro definition--in most cases, it's ++# just an empty string. ++ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' ++ac_dB='\\)[ (].*,\\1define\\2' ++ac_dC=' ' ++ac_dD=' ,' ++ ++uniq confdefs.h | ++ sed -n ' ++ t rset ++ :rset ++ s/^[ ]*#[ ]*define[ ][ ]*// ++ t ok ++ d ++ :ok ++ s/[\\&,]/\\&/g ++ s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p ++ s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p ++ ' >>conftest.defines ++ ++# Remove the space that was appended to ease matching. ++# Then replace #undef with comments. This is necessary, for ++# example, in the case of _POSIX_SOURCE, which is predefined and required ++# on some systems where configure will not decide to define it. ++# (The regexp can be short, since the line contains either #define or #undef.) ++echo 's/ $// ++s,^[ #]*u.*,/* & */,' >>conftest.defines ++ ++# Break up conftest.defines: ++ac_max_sed_lines=50 ++ ++# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" ++# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" ++# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" ++# et cetera. ++ac_in='$ac_file_inputs' ++ac_out='"$tmp/out1"' ++ac_nxt='"$tmp/out2"' ++ ++while : ++do ++ # Write a here document: ++ cat >>$CONFIG_STATUS <<_ACEOF ++ # First, check the format of the line: ++ cat >"\$tmp/defines.sed" <<\\CEOF ++/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def ++/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def ++b ++:def ++_ACEOF ++ sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS ++ echo 'CEOF ++ sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS ++ ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in ++ sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail ++ grep . conftest.tail >/dev/null || break ++ rm -f conftest.defines ++ mv conftest.tail conftest.defines ++done ++rm -f conftest.defines conftest.tail ++ ++echo "ac_result=$ac_in" >>$CONFIG_STATUS ++cat >>$CONFIG_STATUS <<\_ACEOF ++ if test x"$ac_file" != x-; then ++ echo "/* $configure_input */" >"$tmp/config.h" ++ cat "$ac_result" >>"$tmp/config.h" ++ if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then ++ { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 ++echo "$as_me: $ac_file is unchanged" >&6;} ++ else ++ rm -f $ac_file ++ mv "$tmp/config.h" $ac_file ++ fi ++ else ++ echo "/* $configure_input */" ++ cat "$ac_result" ++ fi ++ rm -f "$tmp/out12" ++# Compute $ac_file's index in $config_headers. ++_am_arg=$ac_file ++_am_stamp_count=1 ++for _am_header in $config_headers :; do ++ case $_am_header in ++ $_am_arg | $_am_arg:* ) ++ break ;; ++ * ) ++ _am_stamp_count=`expr $_am_stamp_count + 1` ;; ++ esac ++done ++echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || ++$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$_am_arg" : 'X\(//\)[^/]' \| \ ++ X"$_am_arg" : 'X\(//\)$' \| \ ++ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$_am_arg" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'`/stamp-h$_am_stamp_count ++ ;; ++ ++ :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 ++echo "$as_me: executing $ac_file commands" >&6;} ++ ;; ++ esac ++ ++ ++ case $ac_file$ac_mode in ++ "ompi/tools/wrappers/ompi_wrapper_script":F) chmod +x ompi/tools/wrappers/ompi_wrapper_script ;; ++ "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do ++ # Strip MF so we end up with the name of the file. ++ mf=`echo "$mf" | sed -e 's/:.*$//'` ++ # Check whether this is an Automake generated Makefile or not. ++ # We used to match only the files named `Makefile.in', but ++ # some people rename them; so instead we look at the file content. ++ # Grep'ing the first line is not enough: some people post-process ++ # each Makefile.in and add a new line on top of each file to say so. ++ # Grep'ing the whole file is not good either: AIX grep has a line ++ # limit of 2048, but all sed's we know have understand at least 4000. ++ if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then ++ dirpart=`$as_dirname -- "$mf" || ++$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$mf" : 'X\(//\)[^/]' \| \ ++ X"$mf" : 'X\(//\)$' \| \ ++ X"$mf" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$mf" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ else ++ continue ++ fi ++ # Extract the definition of DEPDIR, am__include, and am__quote ++ # from the Makefile without running `make'. ++ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` ++ test -z "$DEPDIR" && continue ++ am__include=`sed -n 's/^am__include = //p' < "$mf"` ++ test -z "am__include" && continue ++ am__quote=`sed -n 's/^am__quote = //p' < "$mf"` ++ # When using ansi2knr, U may be empty or an underscore; expand it ++ U=`sed -n 's/^U = //p' < "$mf"` ++ # Find all dependency output files, they are included files with ++ # $(DEPDIR) in their names. We invoke sed twice because it is the ++ # simplest approach to changing $(DEPDIR) to its actual value in the ++ # expansion. ++ for file in `sed -n " ++ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ ++ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do ++ # Make sure the directory exists. ++ test -f "$dirpart/$file" && continue ++ fdir=`$as_dirname -- "$file" || ++$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$file" : 'X\(//\)[^/]' \| \ ++ X"$file" : 'X\(//\)$' \| \ ++ X"$file" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$file" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ { as_dir=$dirpart/$fdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ # echo "creating $dirpart/$file" ++ echo '# dummy' > "$dirpart/$file" ++ done ++done ++ ;; ++ "libtool":C) ++ ++ # See if we are running on zsh, and set the options which allow our ++ # commands through without removal of \ escapes. ++ if test -n "${ZSH_VERSION+set}" ; then ++ setopt NO_GLOB_SUBST ++ fi ++ ++ cfgfile="${ofile}T" ++ trap "$RM \"$cfgfile\"; exit 1" 1 2 15 ++ $RM "$cfgfile" ++ ++ cat <<_LT_EOF >> "$cfgfile" ++#! $SHELL ++ ++# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. ++# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION ++# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: ++# NOTE: Changes made to this file will be lost: look at ltmain.sh. ++# ++# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, ++# 2006, 2007, 2008 Free Software Foundation, Inc. ++# Written by Gordon Matzigkeit, 1996 ++# ++# This file is part of GNU Libtool. ++# ++# GNU Libtool is free software; you can redistribute it and/or ++# modify it under the terms of the GNU General Public License as ++# published by the Free Software Foundation; either version 2 of ++# the License, or (at your option) any later version. ++# ++# As a special exception to the GNU General Public License, ++# if you distribute this file as part of a program or library that ++# is built using GNU Libtool, you may include this file under the ++# same distribution terms that you use for the rest of that program. ++# ++# GNU Libtool is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++# GNU General Public License for more details. ++# ++# You should have received a copy of the GNU General Public License ++# along with GNU Libtool; see the file COPYING. If not, a copy ++# can be downloaded from http://www.gnu.org/licenses/gpl.html, or ++# obtained by writing to the Free Software Foundation, Inc., ++# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ++ ++ ++# The names of the tagged configurations supported by this script. ++available_tags="CXX F77 FC " ++ ++# ### BEGIN LIBTOOL CONFIG ++ ++# Whether or not to build shared libraries. ++build_libtool_libs=$enable_shared ++ ++# Whether or not to build static libraries. ++build_old_libs=$enable_static ++ ++# A BSD- or MS-compatible name lister. ++NM=$lt_NM ++ ++# Which release of libtool.m4 was used? ++macro_version=$macro_version ++macro_revision=$macro_revision ++ ++# Assembler program. ++AS=$AS ++ ++# DLL creation program. ++DLLTOOL=$DLLTOOL ++ ++# Object dumper program. ++OBJDUMP=$OBJDUMP ++ ++# What type of objects to build. ++pic_mode=$pic_mode ++ ++# Whether or not to optimize for fast installation. ++fast_install=$enable_fast_install ++ ++# The host system. ++host_alias=$host_alias ++host=$host ++host_os=$host_os ++ ++# The build system. ++build_alias=$build_alias ++build=$build ++build_os=$build_os ++ ++# A sed program that does not truncate output. ++SED=$lt_SED ++ ++# Sed that helps us avoid accidentally triggering echo(1) options like -n. ++Xsed="\$SED -e 1s/^X//" ++ ++# A grep program that handles long lines. ++GREP=$lt_GREP ++ ++# An ERE matcher. ++EGREP=$lt_EGREP ++ ++# A literal string matcher. ++FGREP=$lt_FGREP ++ ++# Whether we need soft or hard links. ++LN_S=$lt_LN_S ++ ++# What is the maximum length of a command? ++max_cmd_len=$max_cmd_len ++ ++# Object file suffix (normally "o"). ++objext=$ac_objext ++ ++# Executable file suffix (normally ""). ++exeext=$exeext ++ ++# whether the shell understands "unset". ++lt_unset=$lt_unset ++ ++# turn spaces into newlines. ++SP2NL=$lt_lt_SP2NL ++ ++# turn newlines into spaces. ++NL2SP=$lt_lt_NL2SP ++ ++# How to create reloadable object files. ++reload_flag=$lt_reload_flag ++reload_cmds=$lt_reload_cmds ++ ++# Method to check whether dependent libraries are shared objects. ++deplibs_check_method=$lt_deplibs_check_method ++ ++# Command to use when deplibs_check_method == "file_magic". ++file_magic_cmd=$lt_file_magic_cmd ++ ++# The archiver. ++AR=$lt_AR ++AR_FLAGS=$lt_AR_FLAGS ++ ++# A symbol stripping program. ++STRIP=$lt_STRIP ++ ++# Commands used to install an old-style archive. ++RANLIB=$lt_RANLIB ++old_postinstall_cmds=$lt_old_postinstall_cmds ++old_postuninstall_cmds=$lt_old_postuninstall_cmds ++ ++# A C compiler. ++LTCC=$lt_CC ++ ++# LTCC compiler flags. ++LTCFLAGS=$lt_CFLAGS ++ ++# Take the output of nm and produce a listing of raw symbols and C names. ++global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe ++ ++# Transform the output of nm in a proper C declaration. ++global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl ++ ++# Transform the output of nm in a C name address pair. ++global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address ++ ++# Transform the output of nm in a C name address pair when lib prefix is needed. ++global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix ++ ++# The name of the directory that contains temporary libtool files. ++objdir=$objdir ++ ++# Shell to use when invoking shell scripts. ++SHELL=$lt_SHELL ++ ++# An echo program that does not interpret backslashes. ++ECHO=$lt_ECHO ++ ++# Used to examine libraries when file_magic_cmd begins with "file". ++MAGIC_CMD=$MAGIC_CMD ++ ++# Must we lock files when doing compilation? ++need_locks=$lt_need_locks ++ ++# Tool to manipulate archived DWARF debug symbol files on Mac OS X. ++DSYMUTIL=$lt_DSYMUTIL ++ ++# Tool to change global to local symbols on Mac OS X. ++NMEDIT=$lt_NMEDIT ++ ++# Tool to manipulate fat objects and archives on Mac OS X. ++LIPO=$lt_LIPO ++ ++# ldd/readelf like tool for Mach-O binaries on Mac OS X. ++OTOOL=$lt_OTOOL ++ ++# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. ++OTOOL64=$lt_OTOOL64 ++ ++# Old archive suffix (normally "a"). ++libext=$libext ++ ++# Shared library suffix (normally ".so"). ++shrext_cmds=$lt_shrext_cmds ++ ++# The commands to extract the exported symbol list from a shared archive. ++extract_expsyms_cmds=$lt_extract_expsyms_cmds ++ ++# Variables whose values should be saved in libtool wrapper scripts and ++# restored at link time. ++variables_saved_for_relink=$lt_variables_saved_for_relink ++ ++# Do we need the "lib" prefix for modules? ++need_lib_prefix=$need_lib_prefix ++ ++# Do we need a version for libraries? ++need_version=$need_version ++ ++# Library versioning type. ++version_type=$version_type ++ ++# Shared library runtime path variable. ++runpath_var=$runpath_var ++ ++# Shared library path variable. ++shlibpath_var=$shlibpath_var ++ ++# Is shlibpath searched before the hard-coded library search path? ++shlibpath_overrides_runpath=$shlibpath_overrides_runpath ++ ++# Format of library name prefix. ++libname_spec=$lt_libname_spec ++ ++# List of archive names. First name is the real one, the rest are links. ++# The last name is the one that the linker finds with -lNAME ++library_names_spec=$lt_library_names_spec ++ ++# The coded name of the library, if different from the real name. ++soname_spec=$lt_soname_spec ++ ++# Command to use after installation of a shared archive. ++postinstall_cmds=$lt_postinstall_cmds ++ ++# Command to use after uninstallation of a shared archive. ++postuninstall_cmds=$lt_postuninstall_cmds ++ ++# Commands used to finish a libtool library installation in a directory. ++finish_cmds=$lt_finish_cmds ++ ++# As "finish_cmds", except a single script fragment to be evaled but ++# not shown. ++finish_eval=$lt_finish_eval ++ ++# Whether we should hardcode library paths into libraries. ++hardcode_into_libs=$hardcode_into_libs ++ ++# Compile-time system search path for libraries. ++sys_lib_search_path_spec=$lt_sys_lib_search_path_spec ++ ++# Run-time system search path for libraries. ++sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec ++ ++# Whether dlopen is supported. ++dlopen_support=$enable_dlopen ++ ++# Whether dlopen of programs is supported. ++dlopen_self=$enable_dlopen_self ++ ++# Whether dlopen of statically linked programs is supported. ++dlopen_self_static=$enable_dlopen_self_static ++ ++# Commands to strip libraries. ++old_striplib=$lt_old_striplib ++striplib=$lt_striplib ++ ++ ++# The linker used to build libraries. ++LD=$lt_LD ++ ++# Commands used to build an old-style archive. ++old_archive_cmds=$lt_old_archive_cmds ++ ++# A language specific compiler. ++CC=$lt_compiler ++ ++# Is the compiler the GNU compiler? ++with_gcc=$GCC ++ ++# Compiler flag to turn off builtin functions. ++no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag ++ ++# How to pass a linker flag through the compiler. ++wl=$lt_lt_prog_compiler_wl ++ ++# Additional compiler flags for building library objects. ++pic_flag=$lt_lt_prog_compiler_pic ++ ++# Compiler flag to prevent dynamic linking. ++link_static_flag=$lt_lt_prog_compiler_static ++ ++# Does compiler simultaneously support -c and -o options? ++compiler_c_o=$lt_lt_cv_prog_compiler_c_o ++ ++# Whether or not to add -lc for building shared libraries. ++build_libtool_need_lc=$archive_cmds_need_lc ++ ++# Whether or not to disallow shared libs when runtime libs are static. ++allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes ++ ++# Compiler flag to allow reflexive dlopens. ++export_dynamic_flag_spec=$lt_export_dynamic_flag_spec ++ ++# Compiler flag to generate shared objects directly from archives. ++whole_archive_flag_spec=$lt_whole_archive_flag_spec ++ ++# Whether the compiler copes with passing no objects directly. ++compiler_needs_object=$lt_compiler_needs_object ++ ++# Create an old-style archive from a shared archive. ++old_archive_from_new_cmds=$lt_old_archive_from_new_cmds ++ ++# Create a temporary old-style archive to link instead of a shared archive. ++old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds ++ ++# Commands used to build a shared archive. ++archive_cmds=$lt_archive_cmds ++archive_expsym_cmds=$lt_archive_expsym_cmds ++ ++# Commands used to build a loadable module if different from building ++# a shared archive. ++module_cmds=$lt_module_cmds ++module_expsym_cmds=$lt_module_expsym_cmds ++ ++# Whether we are building with GNU ld or not. ++with_gnu_ld=$lt_with_gnu_ld ++ ++# Flag that allows shared libraries with undefined symbols to be built. ++allow_undefined_flag=$lt_allow_undefined_flag ++ ++# Flag that enforces no undefined symbols. ++no_undefined_flag=$lt_no_undefined_flag ++ ++# Flag to hardcode \$libdir into a binary during linking. ++# This must work even if \$libdir does not exist ++hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec ++ ++# If ld is used when linking, flag to hardcode \$libdir into a binary ++# during linking. This must work even if \$libdir does not exist. ++hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld ++ ++# Whether we need a single "-rpath" flag with a separated argument. ++hardcode_libdir_separator=$lt_hardcode_libdir_separator ++ ++# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes ++# DIR into the resulting binary. ++hardcode_direct=$hardcode_direct ++ ++# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes ++# DIR into the resulting binary and the resulting library dependency is ++# "absolute",i.e impossible to change by setting \${shlibpath_var} if the ++# library is relocated. ++hardcode_direct_absolute=$hardcode_direct_absolute ++ ++# Set to "yes" if using the -LDIR flag during linking hardcodes DIR ++# into the resulting binary. ++hardcode_minus_L=$hardcode_minus_L ++ ++# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR ++# into the resulting binary. ++hardcode_shlibpath_var=$hardcode_shlibpath_var ++ ++# Set to "yes" if building a shared library automatically hardcodes DIR ++# into the library and all subsequent libraries and executables linked ++# against it. ++hardcode_automatic=$hardcode_automatic ++ ++# Set to yes if linker adds runtime paths of dependent libraries ++# to runtime path list. ++inherit_rpath=$inherit_rpath ++ ++# Whether libtool must link a program against all its dependency libraries. ++link_all_deplibs=$link_all_deplibs ++ ++# Fix the shell variable \$srcfile for the compiler. ++fix_srcfile_path=$lt_fix_srcfile_path ++ ++# Set to "yes" if exported symbols are required. ++always_export_symbols=$always_export_symbols ++ ++# The commands to list exported symbols. ++export_symbols_cmds=$lt_export_symbols_cmds ++ ++# Symbols that should not be listed in the preloaded symbols. ++exclude_expsyms=$lt_exclude_expsyms ++ ++# Symbols that must always be exported. ++include_expsyms=$lt_include_expsyms ++ ++# Commands necessary for linking programs (against libraries) with templates. ++prelink_cmds=$lt_prelink_cmds ++ ++# Specify filename containing input files. ++file_list_spec=$lt_file_list_spec ++ ++# How to hardcode a shared library path into an executable. ++hardcode_action=$hardcode_action ++ ++# The directories searched by this compiler when creating a shared library. ++compiler_lib_search_dirs=$lt_compiler_lib_search_dirs ++ ++# Dependencies to place before and after the objects being linked to ++# create a shared library. ++predep_objects=$lt_predep_objects ++postdep_objects=$lt_postdep_objects ++predeps=$lt_predeps ++postdeps=$lt_postdeps ++ ++# The library search path used internally by the compiler when linking ++# a shared library. ++compiler_lib_search_path=$lt_compiler_lib_search_path ++ ++# ### END LIBTOOL CONFIG ++ ++_LT_EOF ++ ++ case $host_os in ++ aix3*) ++ cat <<\_LT_EOF >> "$cfgfile" ++# AIX sometimes has problems with the GCC collect2 program. For some ++# reason, if we set the COLLECT_NAMES environment variable, the problems ++# vanish in a puff of smoke. ++if test "X${COLLECT_NAMES+set}" != Xset; then ++ COLLECT_NAMES= ++ export COLLECT_NAMES ++fi ++_LT_EOF ++ ;; ++ esac ++ ++ ++ltmain="$ac_aux_dir/ltmain.sh" ++ ++ ++ # We use sed instead of cat because bash on DJGPP gets confused if ++ # if finds mixed CR/LF and LF-only lines. Since sed operates in ++ # text mode, it properly converts lines to CR/LF. This bash problem ++ # is reportedly fixed, but why not run on old versions too? ++ sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ ++ || (rm -f "$cfgfile"; exit 1) ++ ++ case $xsi_shell in ++ yes) ++ cat << \_LT_EOF >> "$cfgfile" ++ ++# func_dirname file append nondir_replacement ++# Compute the dirname of FILE. If nonempty, add APPEND to the result, ++# otherwise set result to NONDIR_REPLACEMENT. ++func_dirname () ++{ ++ case ${1} in ++ */*) func_dirname_result="${1%/*}${2}" ;; ++ * ) func_dirname_result="${3}" ;; ++ esac ++} ++ ++# func_basename file ++func_basename () ++{ ++ func_basename_result="${1##*/}" ++} ++ ++# func_dirname_and_basename file append nondir_replacement ++# perform func_basename and func_dirname in a single function ++# call: ++# dirname: Compute the dirname of FILE. If nonempty, ++# add APPEND to the result, otherwise set result ++# to NONDIR_REPLACEMENT. ++# value returned in "$func_dirname_result" ++# basename: Compute filename of FILE. ++# value retuned in "$func_basename_result" ++# Implementation must be kept synchronized with func_dirname ++# and func_basename. For efficiency, we do not delegate to ++# those functions but instead duplicate the functionality here. ++func_dirname_and_basename () ++{ ++ case ${1} in ++ */*) func_dirname_result="${1%/*}${2}" ;; ++ * ) func_dirname_result="${3}" ;; ++ esac ++ func_basename_result="${1##*/}" ++} ++ ++# func_stripname prefix suffix name ++# strip PREFIX and SUFFIX off of NAME. ++# PREFIX and SUFFIX must not contain globbing or regex special ++# characters, hashes, percent signs, but SUFFIX may contain a leading ++# dot (in which case that matches only a dot). ++func_stripname () ++{ ++ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are ++ # positional parameters, so assign one to ordinary parameter first. ++ func_stripname_result=${3} ++ func_stripname_result=${func_stripname_result#"${1}"} ++ func_stripname_result=${func_stripname_result%"${2}"} ++} ++ ++# func_opt_split ++func_opt_split () ++{ ++ func_opt_split_opt=${1%%=*} ++ func_opt_split_arg=${1#*=} ++} ++ ++# func_lo2o object ++func_lo2o () ++{ ++ case ${1} in ++ *.lo) func_lo2o_result=${1%.lo}.${objext} ;; ++ *) func_lo2o_result=${1} ;; ++ esac ++} ++ ++# func_xform libobj-or-source ++func_xform () ++{ ++ func_xform_result=${1%.*}.lo ++} ++ ++# func_arith arithmetic-term... ++func_arith () ++{ ++ func_arith_result=$(( $* )) ++} ++ ++# func_len string ++# STRING may not start with a hyphen. ++func_len () ++{ ++ func_len_result=${#1} ++} ++ ++_LT_EOF ++ ;; ++ *) # Bourne compatible functions. ++ cat << \_LT_EOF >> "$cfgfile" ++ ++# func_dirname file append nondir_replacement ++# Compute the dirname of FILE. If nonempty, add APPEND to the result, ++# otherwise set result to NONDIR_REPLACEMENT. ++func_dirname () ++{ ++ # Extract subdirectory from the argument. ++ func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` ++ if test "X$func_dirname_result" = "X${1}"; then ++ func_dirname_result="${3}" ++ else ++ func_dirname_result="$func_dirname_result${2}" ++ fi ++} ++ ++# func_basename file ++func_basename () ++{ ++ func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` ++} ++ ++ ++# func_stripname prefix suffix name ++# strip PREFIX and SUFFIX off of NAME. ++# PREFIX and SUFFIX must not contain globbing or regex special ++# characters, hashes, percent signs, but SUFFIX may contain a leading ++# dot (in which case that matches only a dot). ++# func_strip_suffix prefix name ++func_stripname () ++{ ++ case ${2} in ++ .*) func_stripname_result=`$ECHO "X${3}" \ ++ | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; ++ *) func_stripname_result=`$ECHO "X${3}" \ ++ | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; ++ esac ++} ++ ++# sed scripts: ++my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' ++my_sed_long_arg='1s/^-[^=]*=//' ++ ++# func_opt_split ++func_opt_split () ++{ ++ func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` ++ func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` ++} ++ ++# func_lo2o object ++func_lo2o () ++{ ++ func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` ++} ++ ++# func_xform libobj-or-source ++func_xform () ++{ ++ func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` ++} ++ ++# func_arith arithmetic-term... ++func_arith () ++{ ++ func_arith_result=`expr "$@"` ++} ++ ++# func_len string ++# STRING may not start with a hyphen. ++func_len () ++{ ++ func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` ++} ++ ++_LT_EOF ++esac ++ ++case $lt_shell_append in ++ yes) ++ cat << \_LT_EOF >> "$cfgfile" ++ ++# func_append var value ++# Append VALUE to the end of shell variable VAR. ++func_append () ++{ ++ eval "$1+=\$2" ++} ++_LT_EOF ++ ;; ++ *) ++ cat << \_LT_EOF >> "$cfgfile" ++ ++# func_append var value ++# Append VALUE to the end of shell variable VAR. ++func_append () ++{ ++ eval "$1=\$$1\$2" ++} ++ ++_LT_EOF ++ ;; ++ esac ++ ++ ++ sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ ++ || (rm -f "$cfgfile"; exit 1) ++ ++ mv -f "$cfgfile" "$ofile" || ++ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") ++ chmod +x "$ofile" ++ ++ ++ cat <<_LT_EOF >> "$ofile" ++ ++# ### BEGIN LIBTOOL TAG CONFIG: CXX ++ ++# The linker used to build libraries. ++LD=$lt_LD_CXX ++ ++# Commands used to build an old-style archive. ++old_archive_cmds=$lt_old_archive_cmds_CXX ++ ++# A language specific compiler. ++CC=$lt_compiler_CXX ++ ++# Is the compiler the GNU compiler? ++with_gcc=$GCC_CXX ++ ++# Compiler flag to turn off builtin functions. ++no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX ++ ++# How to pass a linker flag through the compiler. ++wl=$lt_lt_prog_compiler_wl_CXX ++ ++# Additional compiler flags for building library objects. ++pic_flag=$lt_lt_prog_compiler_pic_CXX ++ ++# Compiler flag to prevent dynamic linking. ++link_static_flag=$lt_lt_prog_compiler_static_CXX ++ ++# Does compiler simultaneously support -c and -o options? ++compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX ++ ++# Whether or not to add -lc for building shared libraries. ++build_libtool_need_lc=$archive_cmds_need_lc_CXX ++ ++# Whether or not to disallow shared libs when runtime libs are static. ++allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX ++ ++# Compiler flag to allow reflexive dlopens. ++export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX ++ ++# Compiler flag to generate shared objects directly from archives. ++whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX ++ ++# Whether the compiler copes with passing no objects directly. ++compiler_needs_object=$lt_compiler_needs_object_CXX ++ ++# Create an old-style archive from a shared archive. ++old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX ++ ++# Create a temporary old-style archive to link instead of a shared archive. ++old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX ++ ++# Commands used to build a shared archive. ++archive_cmds=$lt_archive_cmds_CXX ++archive_expsym_cmds=$lt_archive_expsym_cmds_CXX ++ ++# Commands used to build a loadable module if different from building ++# a shared archive. ++module_cmds=$lt_module_cmds_CXX ++module_expsym_cmds=$lt_module_expsym_cmds_CXX ++ ++# Whether we are building with GNU ld or not. ++with_gnu_ld=$lt_with_gnu_ld_CXX ++ ++# Flag that allows shared libraries with undefined symbols to be built. ++allow_undefined_flag=$lt_allow_undefined_flag_CXX ++ ++# Flag that enforces no undefined symbols. ++no_undefined_flag=$lt_no_undefined_flag_CXX ++ ++# Flag to hardcode \$libdir into a binary during linking. ++# This must work even if \$libdir does not exist ++hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX ++ ++# If ld is used when linking, flag to hardcode \$libdir into a binary ++# during linking. This must work even if \$libdir does not exist. ++hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX ++ ++# Whether we need a single "-rpath" flag with a separated argument. ++hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX ++ ++# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes ++# DIR into the resulting binary. ++hardcode_direct=$hardcode_direct_CXX ++ ++# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes ++# DIR into the resulting binary and the resulting library dependency is ++# "absolute",i.e impossible to change by setting \${shlibpath_var} if the ++# library is relocated. ++hardcode_direct_absolute=$hardcode_direct_absolute_CXX ++ ++# Set to "yes" if using the -LDIR flag during linking hardcodes DIR ++# into the resulting binary. ++hardcode_minus_L=$hardcode_minus_L_CXX ++ ++# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR ++# into the resulting binary. ++hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX ++ ++# Set to "yes" if building a shared library automatically hardcodes DIR ++# into the library and all subsequent libraries and executables linked ++# against it. ++hardcode_automatic=$hardcode_automatic_CXX ++ ++# Set to yes if linker adds runtime paths of dependent libraries ++# to runtime path list. ++inherit_rpath=$inherit_rpath_CXX ++ ++# Whether libtool must link a program against all its dependency libraries. ++link_all_deplibs=$link_all_deplibs_CXX ++ ++# Fix the shell variable \$srcfile for the compiler. ++fix_srcfile_path=$lt_fix_srcfile_path_CXX ++ ++# Set to "yes" if exported symbols are required. ++always_export_symbols=$always_export_symbols_CXX ++ ++# The commands to list exported symbols. ++export_symbols_cmds=$lt_export_symbols_cmds_CXX ++ ++# Symbols that should not be listed in the preloaded symbols. ++exclude_expsyms=$lt_exclude_expsyms_CXX ++ ++# Symbols that must always be exported. ++include_expsyms=$lt_include_expsyms_CXX ++ ++# Commands necessary for linking programs (against libraries) with templates. ++prelink_cmds=$lt_prelink_cmds_CXX ++ ++# Specify filename containing input files. ++file_list_spec=$lt_file_list_spec_CXX ++ ++# How to hardcode a shared library path into an executable. ++hardcode_action=$hardcode_action_CXX ++ ++# The directories searched by this compiler when creating a shared library. ++compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX ++ ++# Dependencies to place before and after the objects being linked to ++# create a shared library. ++predep_objects=$lt_predep_objects_CXX ++postdep_objects=$lt_postdep_objects_CXX ++predeps=$lt_predeps_CXX ++postdeps=$lt_postdeps_CXX ++ ++# The library search path used internally by the compiler when linking ++# a shared library. ++compiler_lib_search_path=$lt_compiler_lib_search_path_CXX ++ ++# ### END LIBTOOL TAG CONFIG: CXX ++_LT_EOF ++ ++ ++ cat <<_LT_EOF >> "$ofile" ++ ++# ### BEGIN LIBTOOL TAG CONFIG: F77 ++ ++# The linker used to build libraries. ++LD=$lt_LD_F77 ++ ++# Commands used to build an old-style archive. ++old_archive_cmds=$lt_old_archive_cmds_F77 ++ ++# A language specific compiler. ++CC=$lt_compiler_F77 ++ ++# Is the compiler the GNU compiler? ++with_gcc=$GCC_F77 ++ ++# Compiler flag to turn off builtin functions. ++no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 ++ ++# How to pass a linker flag through the compiler. ++wl=$lt_lt_prog_compiler_wl_F77 ++ ++# Additional compiler flags for building library objects. ++pic_flag=$lt_lt_prog_compiler_pic_F77 ++ ++# Compiler flag to prevent dynamic linking. ++link_static_flag=$lt_lt_prog_compiler_static_F77 ++ ++# Does compiler simultaneously support -c and -o options? ++compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 ++ ++# Whether or not to add -lc for building shared libraries. ++build_libtool_need_lc=$archive_cmds_need_lc_F77 ++ ++# Whether or not to disallow shared libs when runtime libs are static. ++allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 ++ ++# Compiler flag to allow reflexive dlopens. ++export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 ++ ++# Compiler flag to generate shared objects directly from archives. ++whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 ++ ++# Whether the compiler copes with passing no objects directly. ++compiler_needs_object=$lt_compiler_needs_object_F77 ++ ++# Create an old-style archive from a shared archive. ++old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 ++ ++# Create a temporary old-style archive to link instead of a shared archive. ++old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 ++ ++# Commands used to build a shared archive. ++archive_cmds=$lt_archive_cmds_F77 ++archive_expsym_cmds=$lt_archive_expsym_cmds_F77 ++ ++# Commands used to build a loadable module if different from building ++# a shared archive. ++module_cmds=$lt_module_cmds_F77 ++module_expsym_cmds=$lt_module_expsym_cmds_F77 ++ ++# Whether we are building with GNU ld or not. ++with_gnu_ld=$lt_with_gnu_ld_F77 ++ ++# Flag that allows shared libraries with undefined symbols to be built. ++allow_undefined_flag=$lt_allow_undefined_flag_F77 ++ ++# Flag that enforces no undefined symbols. ++no_undefined_flag=$lt_no_undefined_flag_F77 ++ ++# Flag to hardcode \$libdir into a binary during linking. ++# This must work even if \$libdir does not exist ++hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 ++ ++# If ld is used when linking, flag to hardcode \$libdir into a binary ++# during linking. This must work even if \$libdir does not exist. ++hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 ++ ++# Whether we need a single "-rpath" flag with a separated argument. ++hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 ++ ++# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes ++# DIR into the resulting binary. ++hardcode_direct=$hardcode_direct_F77 ++ ++# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes ++# DIR into the resulting binary and the resulting library dependency is ++# "absolute",i.e impossible to change by setting \${shlibpath_var} if the ++# library is relocated. ++hardcode_direct_absolute=$hardcode_direct_absolute_F77 ++ ++# Set to "yes" if using the -LDIR flag during linking hardcodes DIR ++# into the resulting binary. ++hardcode_minus_L=$hardcode_minus_L_F77 ++ ++# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR ++# into the resulting binary. ++hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 ++ ++# Set to "yes" if building a shared library automatically hardcodes DIR ++# into the library and all subsequent libraries and executables linked ++# against it. ++hardcode_automatic=$hardcode_automatic_F77 ++ ++# Set to yes if linker adds runtime paths of dependent libraries ++# to runtime path list. ++inherit_rpath=$inherit_rpath_F77 ++ ++# Whether libtool must link a program against all its dependency libraries. ++link_all_deplibs=$link_all_deplibs_F77 ++ ++# Fix the shell variable \$srcfile for the compiler. ++fix_srcfile_path=$lt_fix_srcfile_path_F77 ++ ++# Set to "yes" if exported symbols are required. ++always_export_symbols=$always_export_symbols_F77 ++ ++# The commands to list exported symbols. ++export_symbols_cmds=$lt_export_symbols_cmds_F77 ++ ++# Symbols that should not be listed in the preloaded symbols. ++exclude_expsyms=$lt_exclude_expsyms_F77 ++ ++# Symbols that must always be exported. ++include_expsyms=$lt_include_expsyms_F77 ++ ++# Commands necessary for linking programs (against libraries) with templates. ++prelink_cmds=$lt_prelink_cmds_F77 ++ ++# Specify filename containing input files. ++file_list_spec=$lt_file_list_spec_F77 ++ ++# How to hardcode a shared library path into an executable. ++hardcode_action=$hardcode_action_F77 ++ ++# The directories searched by this compiler when creating a shared library. ++compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 ++ ++# Dependencies to place before and after the objects being linked to ++# create a shared library. ++predep_objects=$lt_predep_objects_F77 ++postdep_objects=$lt_postdep_objects_F77 ++predeps=$lt_predeps_F77 ++postdeps=$lt_postdeps_F77 ++ ++# The library search path used internally by the compiler when linking ++# a shared library. ++compiler_lib_search_path=$lt_compiler_lib_search_path_F77 ++ ++# ### END LIBTOOL TAG CONFIG: F77 ++_LT_EOF ++ ++ ++ cat <<_LT_EOF >> "$ofile" ++ ++# ### BEGIN LIBTOOL TAG CONFIG: FC ++ ++# The linker used to build libraries. ++LD=$lt_LD_FC ++ ++# Commands used to build an old-style archive. ++old_archive_cmds=$lt_old_archive_cmds_FC ++ ++# A language specific compiler. ++CC=$lt_compiler_FC ++ ++# Is the compiler the GNU compiler? ++with_gcc=$GCC_FC ++ ++# Compiler flag to turn off builtin functions. ++no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC ++ ++# How to pass a linker flag through the compiler. ++wl=$lt_lt_prog_compiler_wl_FC ++ ++# Additional compiler flags for building library objects. ++pic_flag=$lt_lt_prog_compiler_pic_FC ++ ++# Compiler flag to prevent dynamic linking. ++link_static_flag=$lt_lt_prog_compiler_static_FC ++ ++# Does compiler simultaneously support -c and -o options? ++compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC ++ ++# Whether or not to add -lc for building shared libraries. ++build_libtool_need_lc=$archive_cmds_need_lc_FC ++ ++# Whether or not to disallow shared libs when runtime libs are static. ++allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC ++ ++# Compiler flag to allow reflexive dlopens. ++export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC ++ ++# Compiler flag to generate shared objects directly from archives. ++whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC ++ ++# Whether the compiler copes with passing no objects directly. ++compiler_needs_object=$lt_compiler_needs_object_FC ++ ++# Create an old-style archive from a shared archive. ++old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC ++ ++# Create a temporary old-style archive to link instead of a shared archive. ++old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC ++ ++# Commands used to build a shared archive. ++archive_cmds=$lt_archive_cmds_FC ++archive_expsym_cmds=$lt_archive_expsym_cmds_FC ++ ++# Commands used to build a loadable module if different from building ++# a shared archive. ++module_cmds=$lt_module_cmds_FC ++module_expsym_cmds=$lt_module_expsym_cmds_FC ++ ++# Whether we are building with GNU ld or not. ++with_gnu_ld=$lt_with_gnu_ld_FC ++ ++# Flag that allows shared libraries with undefined symbols to be built. ++allow_undefined_flag=$lt_allow_undefined_flag_FC ++ ++# Flag that enforces no undefined symbols. ++no_undefined_flag=$lt_no_undefined_flag_FC ++ ++# Flag to hardcode \$libdir into a binary during linking. ++# This must work even if \$libdir does not exist ++hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC ++ ++# If ld is used when linking, flag to hardcode \$libdir into a binary ++# during linking. This must work even if \$libdir does not exist. ++hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC ++ ++# Whether we need a single "-rpath" flag with a separated argument. ++hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC ++ ++# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes ++# DIR into the resulting binary. ++hardcode_direct=$hardcode_direct_FC ++ ++# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes ++# DIR into the resulting binary and the resulting library dependency is ++# "absolute",i.e impossible to change by setting \${shlibpath_var} if the ++# library is relocated. ++hardcode_direct_absolute=$hardcode_direct_absolute_FC ++ ++# Set to "yes" if using the -LDIR flag during linking hardcodes DIR ++# into the resulting binary. ++hardcode_minus_L=$hardcode_minus_L_FC ++ ++# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR ++# into the resulting binary. ++hardcode_shlibpath_var=$hardcode_shlibpath_var_FC ++ ++# Set to "yes" if building a shared library automatically hardcodes DIR ++# into the library and all subsequent libraries and executables linked ++# against it. ++hardcode_automatic=$hardcode_automatic_FC ++ ++# Set to yes if linker adds runtime paths of dependent libraries ++# to runtime path list. ++inherit_rpath=$inherit_rpath_FC ++ ++# Whether libtool must link a program against all its dependency libraries. ++link_all_deplibs=$link_all_deplibs_FC ++ ++# Fix the shell variable \$srcfile for the compiler. ++fix_srcfile_path=$lt_fix_srcfile_path_FC ++ ++# Set to "yes" if exported symbols are required. ++always_export_symbols=$always_export_symbols_FC ++ ++# The commands to list exported symbols. ++export_symbols_cmds=$lt_export_symbols_cmds_FC ++ ++# Symbols that should not be listed in the preloaded symbols. ++exclude_expsyms=$lt_exclude_expsyms_FC ++ ++# Symbols that must always be exported. ++include_expsyms=$lt_include_expsyms_FC ++ ++# Commands necessary for linking programs (against libraries) with templates. ++prelink_cmds=$lt_prelink_cmds_FC ++ ++# Specify filename containing input files. ++file_list_spec=$lt_file_list_spec_FC ++ ++# How to hardcode a shared library path into an executable. ++hardcode_action=$hardcode_action_FC ++ ++# The directories searched by this compiler when creating a shared library. ++compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC ++ ++# Dependencies to place before and after the objects being linked to ++# create a shared library. ++predep_objects=$lt_predep_objects_FC ++postdep_objects=$lt_postdep_objects_FC ++predeps=$lt_predeps_FC ++postdeps=$lt_postdeps_FC ++ ++# The library search path used internally by the compiler when linking ++# a shared library. ++compiler_lib_search_path=$lt_compiler_lib_search_path_FC ++ ++# ### END LIBTOOL TAG CONFIG: FC ++_LT_EOF ++ ++ ;; ++ ++ esac ++done # for ac_tag ++ ++ ++{ (exit 0); exit 0; } ++_ACEOF ++chmod +x $CONFIG_STATUS ++ac_clean_files=$ac_clean_files_save ++ ++ ++# configure is writing to config.log, and then calls config.status. ++# config.status does its own redirection, appending to config.log. ++# Unfortunately, on DOS this fails, as config.log is still kept open ++# by configure, so config.status won't be able to write to it; its ++# output is simply discarded. So we exec the FD to /dev/null, ++# effectively closing config.log, so it can be properly (re)opened and ++# appended to by config.status. When coming back to configure, we ++# need to make the FD available again. ++if test "$no_create" != yes; then ++ ac_cs_success=: ++ ac_config_status_args= ++ test "$silent" = yes && ++ ac_config_status_args="$ac_config_status_args --quiet" ++ exec 5>/dev/null ++ $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false ++ exec 5>>config.log ++ # Use ||, not &&, to avoid exiting from the if with $? = 1, which ++ # would make configure fail if this is the last instruction. ++ $ac_cs_success || { (exit 1); exit 1; } ++fi ++ +--- /dev/null ++++ b/autom4te.cache/output.1 +@@ -0,0 +1,184301 @@ ++@%:@! /bin/sh ++@%:@ Guess values for system-dependent variables and create Makefiles. ++@%:@ Generated by GNU Autoconf 2.61 for Open MPI 1.3. ++@%:@ ++@%:@ Report bugs to . ++@%:@ ++@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, ++@%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. ++@%:@ This configure script is free software; the Free Software Foundation ++@%:@ gives unlimited permission to copy, distribute and modify it. ++## --------------------- ## ++## M4sh Initialization. ## ++## --------------------- ## ++ ++# Be more Bourne compatible ++DUALCASE=1; export DUALCASE # for MKS sh ++if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then ++ emulate sh ++ NULLCMD=: ++ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which ++ # is contrary to our usage. Disable this feature. ++ alias -g '${1+"$@"}'='"$@"' ++ setopt NO_GLOB_SUBST ++else ++ case `(set -o) 2>/dev/null` in ++ *posix*) set -o posix ;; ++esac ++ ++fi ++ ++ ++ ++ ++# PATH needs CR ++# Avoid depending upon Character Ranges. ++as_cr_letters='abcdefghijklmnopqrstuvwxyz' ++as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' ++as_cr_Letters=$as_cr_letters$as_cr_LETTERS ++as_cr_digits='0123456789' ++as_cr_alnum=$as_cr_Letters$as_cr_digits ++ ++# The user is always right. ++if test "${PATH_SEPARATOR+set}" != set; then ++ echo "#! /bin/sh" >conf$$.sh ++ echo "exit 0" >>conf$$.sh ++ chmod +x conf$$.sh ++ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then ++ PATH_SEPARATOR=';' ++ else ++ PATH_SEPARATOR=: ++ fi ++ rm -f conf$$.sh ++fi ++ ++# Support unset when possible. ++if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then ++ as_unset=unset ++else ++ as_unset=false ++fi ++ ++ ++# IFS ++# We need space, tab and new line, in precisely that order. Quoting is ++# there to prevent editors from complaining about space-tab. ++# (If _AS_PATH_WALK were called with IFS unset, it would disable word ++# splitting by setting IFS to empty value.) ++as_nl=' ++' ++IFS=" "" $as_nl" ++ ++# Find who we are. Look in the path if we contain no directory separator. ++case $0 in ++ *[\\/]* ) as_myself=$0 ;; ++ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break ++done ++IFS=$as_save_IFS ++ ++ ;; ++esac ++# We did not find ourselves, most probably we were run as `sh COMMAND' ++# in which case we are not to be found in the path. ++if test "x$as_myself" = x; then ++ as_myself=$0 ++fi ++if test ! -f "$as_myself"; then ++ echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 ++ { (exit 1); exit 1; } ++fi ++ ++# Work around bugs in pre-3.0 UWIN ksh. ++for as_var in ENV MAIL MAILPATH ++do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var ++done ++PS1='$ ' ++PS2='> ' ++PS4='+ ' ++ ++# NLS nuisances. ++for as_var in \ ++ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ ++ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ ++ LC_TELEPHONE LC_TIME ++do ++ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then ++ eval $as_var=C; export $as_var ++ else ++ ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var ++ fi ++done ++ ++# Required to use basename. ++if expr a : '\(a\)' >/dev/null 2>&1 && ++ test "X`expr 00001 : '.*\(...\)'`" = X001; then ++ as_expr=expr ++else ++ as_expr=false ++fi ++ ++if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then ++ as_basename=basename ++else ++ as_basename=false ++fi ++ ++ ++# Name of the executable. ++as_me=`$as_basename -- "$0" || ++$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ ++ X"$0" : 'X\(//\)$' \| \ ++ X"$0" : 'X\(/\)' \| . 2>/dev/null || ++echo X/"$0" | ++ sed '/^.*\/\([^/][^/]*\)\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\/\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\/\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ ++# CDPATH. ++$as_unset CDPATH ++ ++ ++if test "x$CONFIG_SHELL" = x; then ++ if (eval ":") 2>/dev/null; then ++ as_have_required=yes ++else ++ as_have_required=no ++fi ++ ++ if test $as_have_required = yes && (eval ": ++(as_func_return () { ++ (exit \$1) ++} ++as_func_success () { ++ as_func_return 0 ++} ++as_func_failure () { ++ as_func_return 1 ++} ++as_func_ret_success () { ++ return 0 ++} ++as_func_ret_failure () { ++ return 1 ++} ++ ++exitcode=0 ++if as_func_success; then ++ : ++else ++ exitcode=1 ++ echo as_func_success failed. ++fi ++ ++if as_func_failure; then ++ exitcode=1 ++ echo as_func_failure succeeded. ++fi ++ ++if as_func_ret_success; then ++ : ++else ++ exitcode=1 ++ echo as_func_ret_success failed. ++fi ++ ++if as_func_ret_failure; then ++ exitcode=1 ++ echo as_func_ret_failure succeeded. ++fi ++ ++if ( set x; as_func_ret_success y && test x = \"\$1\" ); then ++ : ++else ++ exitcode=1 ++ echo positional parameters were not saved. ++fi ++ ++test \$exitcode = 0) || { (exit 1); exit 1; } ++ ++( ++ as_lineno_1=\$LINENO ++ as_lineno_2=\$LINENO ++ test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && ++ test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } ++") 2> /dev/null; then ++ : ++else ++ as_candidate_shells= ++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ case $as_dir in ++ /*) ++ for as_base in sh bash ksh sh5; do ++ as_candidate_shells="$as_candidate_shells $as_dir/$as_base" ++ done;; ++ esac ++done ++IFS=$as_save_IFS ++ ++ ++ for as_shell in $as_candidate_shells $SHELL; do ++ # Try only shells that exist, to save several forks. ++ if { test -f "$as_shell" || test -f "$as_shell.exe"; } && ++ { ("$as_shell") 2> /dev/null <<\_ASEOF ++if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then ++ emulate sh ++ NULLCMD=: ++ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which ++ # is contrary to our usage. Disable this feature. ++ alias -g '${1+"$@"}'='"$@"' ++ setopt NO_GLOB_SUBST ++else ++ case `(set -o) 2>/dev/null` in ++ *posix*) set -o posix ;; ++esac ++ ++fi ++ ++ ++: ++_ASEOF ++}; then ++ CONFIG_SHELL=$as_shell ++ as_have_required=yes ++ if { "$as_shell" 2> /dev/null <<\_ASEOF ++if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then ++ emulate sh ++ NULLCMD=: ++ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which ++ # is contrary to our usage. Disable this feature. ++ alias -g '${1+"$@"}'='"$@"' ++ setopt NO_GLOB_SUBST ++else ++ case `(set -o) 2>/dev/null` in ++ *posix*) set -o posix ;; ++esac ++ ++fi ++ ++ ++: ++(as_func_return () { ++ (exit $1) ++} ++as_func_success () { ++ as_func_return 0 ++} ++as_func_failure () { ++ as_func_return 1 ++} ++as_func_ret_success () { ++ return 0 ++} ++as_func_ret_failure () { ++ return 1 ++} ++ ++exitcode=0 ++if as_func_success; then ++ : ++else ++ exitcode=1 ++ echo as_func_success failed. ++fi ++ ++if as_func_failure; then ++ exitcode=1 ++ echo as_func_failure succeeded. ++fi ++ ++if as_func_ret_success; then ++ : ++else ++ exitcode=1 ++ echo as_func_ret_success failed. ++fi ++ ++if as_func_ret_failure; then ++ exitcode=1 ++ echo as_func_ret_failure succeeded. ++fi ++ ++if ( set x; as_func_ret_success y && test x = "$1" ); then ++ : ++else ++ exitcode=1 ++ echo positional parameters were not saved. ++fi ++ ++test $exitcode = 0) || { (exit 1); exit 1; } ++ ++( ++ as_lineno_1=$LINENO ++ as_lineno_2=$LINENO ++ test "x$as_lineno_1" != "x$as_lineno_2" && ++ test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } ++ ++_ASEOF ++}; then ++ break ++fi ++ ++fi ++ ++ done ++ ++ if test "x$CONFIG_SHELL" != x; then ++ for as_var in BASH_ENV ENV ++ do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var ++ done ++ export CONFIG_SHELL ++ exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} ++fi ++ ++ ++ if test $as_have_required = no; then ++ echo This script requires a shell more modern than all the ++ echo shells that I found on your system. Please install a ++ echo modern shell, or manually run the script under such a ++ echo shell if you do have one. ++ { (exit 1); exit 1; } ++fi ++ ++ ++fi ++ ++fi ++ ++ ++ ++(eval "as_func_return () { ++ (exit \$1) ++} ++as_func_success () { ++ as_func_return 0 ++} ++as_func_failure () { ++ as_func_return 1 ++} ++as_func_ret_success () { ++ return 0 ++} ++as_func_ret_failure () { ++ return 1 ++} ++ ++exitcode=0 ++if as_func_success; then ++ : ++else ++ exitcode=1 ++ echo as_func_success failed. ++fi ++ ++if as_func_failure; then ++ exitcode=1 ++ echo as_func_failure succeeded. ++fi ++ ++if as_func_ret_success; then ++ : ++else ++ exitcode=1 ++ echo as_func_ret_success failed. ++fi ++ ++if as_func_ret_failure; then ++ exitcode=1 ++ echo as_func_ret_failure succeeded. ++fi ++ ++if ( set x; as_func_ret_success y && test x = \"\$1\" ); then ++ : ++else ++ exitcode=1 ++ echo positional parameters were not saved. ++fi ++ ++test \$exitcode = 0") || { ++ echo No shell found that supports shell functions. ++ echo Please tell autoconf@gnu.org about your system, ++ echo including any error possibly output before this ++ echo message ++} ++ ++ ++ ++ as_lineno_1=$LINENO ++ as_lineno_2=$LINENO ++ test "x$as_lineno_1" != "x$as_lineno_2" && ++ test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { ++ ++ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO ++ # uniformly replaced by the line number. The first 'sed' inserts a ++ # line-number line after each line using $LINENO; the second 'sed' ++ # does the real work. The second script uses 'N' to pair each ++ # line-number line with the line containing $LINENO, and appends ++ # trailing '-' during substitution so that $LINENO is not a special ++ # case at line end. ++ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the ++ # scripts with optimization help from Paolo Bonzini. Blame Lee ++ # E. McMahon (1931-1989) for sed's syntax. :-) ++ sed -n ' ++ p ++ /[$]LINENO/= ++ ' <$as_myself | ++ sed ' ++ s/[$]LINENO.*/&-/ ++ t lineno ++ b ++ :lineno ++ N ++ :loop ++ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ ++ t loop ++ s/-\n.*// ++ ' >$as_me.lineno && ++ chmod +x "$as_me.lineno" || ++ { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 ++ { (exit 1); exit 1; }; } ++ ++ # Don't try to exec as it changes $[0], causing all sort of problems ++ # (the dirname of $[0] is not the place where we might find the ++ # original and so on. Autoconf is especially sensitive to this). ++ . "./$as_me.lineno" ++ # Exit status is that of the last command. ++ exit ++} ++ ++ ++if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then ++ as_dirname=dirname ++else ++ as_dirname=false ++fi ++ ++ECHO_C= ECHO_N= ECHO_T= ++case `echo -n x` in ++-n*) ++ case `echo 'x\c'` in ++ *c*) ECHO_T=' ';; # ECHO_T is single tab character. ++ *) ECHO_C='\c';; ++ esac;; ++*) ++ ECHO_N='-n';; ++esac ++ ++if expr a : '\(a\)' >/dev/null 2>&1 && ++ test "X`expr 00001 : '.*\(...\)'`" = X001; then ++ as_expr=expr ++else ++ as_expr=false ++fi ++ ++rm -f conf$$ conf$$.exe conf$$.file ++if test -d conf$$.dir; then ++ rm -f conf$$.dir/conf$$.file ++else ++ rm -f conf$$.dir ++ mkdir conf$$.dir ++fi ++echo >conf$$.file ++if ln -s conf$$.file conf$$ 2>/dev/null; then ++ as_ln_s='ln -s' ++ # ... but there are two gotchas: ++ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. ++ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. ++ # In both cases, we have to default to `cp -p'. ++ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || ++ as_ln_s='cp -p' ++elif ln conf$$.file conf$$ 2>/dev/null; then ++ as_ln_s=ln ++else ++ as_ln_s='cp -p' ++fi ++rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file ++rmdir conf$$.dir 2>/dev/null ++ ++if mkdir -p . 2>/dev/null; then ++ as_mkdir_p=: ++else ++ test -d ./-p && rmdir ./-p ++ as_mkdir_p=false ++fi ++ ++if test -x / >/dev/null 2>&1; then ++ as_test_x='test -x' ++else ++ if ls -dL / >/dev/null 2>&1; then ++ as_ls_L_option=L ++ else ++ as_ls_L_option= ++ fi ++ as_test_x=' ++ eval sh -c '\'' ++ if test -d "$1"; then ++ test -d "$1/."; ++ else ++ case $1 in ++ -*)set "./$1";; ++ esac; ++ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ++ ???[sx]*):;;*)false;;esac;fi ++ '\'' sh ++ ' ++fi ++as_executable_p=$as_test_x ++ ++# Sed expression to map a string onto a valid CPP name. ++as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" ++ ++# Sed expression to map a string onto a valid variable name. ++as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" ++ ++ ++ ++lt_ltdl_dir='opal/libltdl' ++ ++ ++# Check that we are running under the correct shell. ++SHELL=${CONFIG_SHELL-/bin/sh} ++ ++case X$lt_ECHO in ++X*--fallback-echo) ++ # Remove one level of quotation (which was required for Make). ++ ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` ++ ;; ++esac ++ ++ECHO=${lt_ECHO-echo} ++if test "X$1" = X--no-reexec; then ++ # Discard the --no-reexec flag, and continue. ++ shift ++elif test "X$1" = X--fallback-echo; then ++ # Avoid inline document here, it may be left over ++ : ++elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then ++ # Yippee, $ECHO works! ++ : ++else ++ # Restart under the correct shell. ++ exec $SHELL "$0" --no-reexec ${1+"$@"} ++fi ++ ++if test "X$1" = X--fallback-echo; then ++ # used as fallback echo ++ shift ++ cat <<_LT_EOF ++$* ++_LT_EOF ++ exit 0 ++fi ++ ++# The HP-UX ksh and POSIX shell print the target directory to stdout ++# if CDPATH is set. ++(unset CDPATH) >/dev/null 2>&1 && unset CDPATH ++ ++if test -z "$lt_ECHO"; then ++ if test "X${echo_test_string+set}" != Xset; then ++ # find a string as large as possible, as long as the shell can cope with it ++ for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do ++ # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... ++ if { echo_test_string=`eval $cmd`; } 2>/dev/null && ++ { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null ++ then ++ break ++ fi ++ done ++ fi ++ ++ if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && ++ echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && ++ test "X$echo_testing_string" = "X$echo_test_string"; then ++ : ++ else ++ # The Solaris, AIX, and Digital Unix default echo programs unquote ++ # backslashes. This makes it impossible to quote backslashes using ++ # echo "$something" | sed 's/\\/\\\\/g' ++ # ++ # So, first we look for a working echo in the user's PATH. ++ ++ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ++ for dir in $PATH /usr/ucb; do ++ IFS="$lt_save_ifs" ++ if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && ++ test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && ++ echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && ++ test "X$echo_testing_string" = "X$echo_test_string"; then ++ ECHO="$dir/echo" ++ break ++ fi ++ done ++ IFS="$lt_save_ifs" ++ ++ if test "X$ECHO" = Xecho; then ++ # We didn't find a better echo, so look for alternatives. ++ if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && ++ echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && ++ test "X$echo_testing_string" = "X$echo_test_string"; then ++ # This shell has a builtin print -r that does the trick. ++ ECHO='print -r' ++ elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && ++ test "X$CONFIG_SHELL" != X/bin/ksh; then ++ # If we have ksh, try running configure again with it. ++ ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} ++ export ORIGINAL_CONFIG_SHELL ++ CONFIG_SHELL=/bin/ksh ++ export CONFIG_SHELL ++ exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} ++ else ++ # Try using printf. ++ ECHO='printf %s\n' ++ if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && ++ echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && ++ test "X$echo_testing_string" = "X$echo_test_string"; then ++ # Cool, printf works ++ : ++ elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && ++ test "X$echo_testing_string" = 'X\t' && ++ echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && ++ test "X$echo_testing_string" = "X$echo_test_string"; then ++ CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL ++ export CONFIG_SHELL ++ SHELL="$CONFIG_SHELL" ++ export SHELL ++ ECHO="$CONFIG_SHELL $0 --fallback-echo" ++ elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && ++ test "X$echo_testing_string" = 'X\t' && ++ echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && ++ test "X$echo_testing_string" = "X$echo_test_string"; then ++ ECHO="$CONFIG_SHELL $0 --fallback-echo" ++ else ++ # maybe with a smaller string... ++ prev=: ++ ++ for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do ++ if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null ++ then ++ break ++ fi ++ prev="$cmd" ++ done ++ ++ if test "$prev" != 'sed 50q "$0"'; then ++ echo_test_string=`eval $prev` ++ export echo_test_string ++ exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} ++ else ++ # Oops. We lost completely, so just stick with echo. ++ ECHO=echo ++ fi ++ fi ++ fi ++ fi ++ fi ++fi ++ ++# Copy echo and quote the copy suitably for passing to libtool from ++# the Makefile, instead of quoting the original, which is used later. ++lt_ECHO=$ECHO ++if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then ++ lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" ++fi ++ ++ ++ ++ ++exec 7<&0 &1 ++ ++# Name of the host. ++# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, ++# so uname gets run too. ++ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` ++ ++# ++# Initializations. ++# ++ac_default_prefix=/usr/local ++ac_clean_files= ++ac_config_libobj_dir=. ++LIB@&t@OBJS= ++cross_compiling=no ++subdirs= ++MFLAGS= ++MAKEFLAGS= ++SHELL=${CONFIG_SHELL-/bin/sh} ++ ++# Identity of this package. ++PACKAGE_NAME='Open MPI' ++PACKAGE_TARNAME='openmpi' ++PACKAGE_VERSION='1.3' ++PACKAGE_STRING='Open MPI 1.3' ++PACKAGE_BUGREPORT='http://www.open-mpi.org/community/help/' ++ ++# Factoring default headers for most tests. ++ac_includes_default="\ ++#include ++#ifdef HAVE_SYS_TYPES_H ++# include ++#endif ++#ifdef HAVE_SYS_STAT_H ++# include ++#endif ++#ifdef STDC_HEADERS ++# include ++# include ++#else ++# ifdef HAVE_STDLIB_H ++# include ++# endif ++#endif ++#ifdef HAVE_STRING_H ++# if !defined STDC_HEADERS && defined HAVE_MEMORY_H ++# include ++# endif ++# include ++#endif ++#ifdef HAVE_STRINGS_H ++# include ++#endif ++#ifdef HAVE_INTTYPES_H ++# include ++#endif ++#ifdef HAVE_STDINT_H ++# include ++#endif ++#ifdef HAVE_UNISTD_H ++# include ++#endif" ++ ++ac_subst_vars='SHELL ++PATH_SEPARATOR ++PACKAGE_NAME ++PACKAGE_TARNAME ++PACKAGE_VERSION ++PACKAGE_STRING ++PACKAGE_BUGREPORT ++exec_prefix ++prefix ++program_transform_name ++bindir ++sbindir ++libexecdir ++datarootdir ++datadir ++sysconfdir ++sharedstatedir ++localstatedir ++includedir ++oldincludedir ++docdir ++infodir ++htmldir ++dvidir ++pdfdir ++psdir ++libdir ++localedir ++mandir ++DEFS ++ECHO_C ++ECHO_N ++ECHO_T ++LIBS ++build_alias ++host_alias ++target_alias ++OPAL_DEFAULT_MCA_PARAM_CONF ++OPAL_PARAM_FROM_PLATFORM ++INSTALL_PROGRAM ++INSTALL_SCRIPT ++INSTALL_DATA ++am__isrc ++CYGPATH_W ++PACKAGE ++VERSION ++ACLOCAL ++AUTOCONF ++AUTOMAKE ++AUTOHEADER ++MAKEINFO ++install_sh ++STRIP ++INSTALL_STRIP_PROGRAM ++mkdir_p ++AWK ++SET_MAKE ++am__leading_dot ++AMTAR ++am__tar ++am__untar ++CONFIGURE_DEPENDENCIES ++OMPI_CONFIGURE_USER ++OMPI_CONFIGURE_HOST ++OMPI_CONFIGURE_DATE ++OMPI_MAJOR_VERSION ++OMPI_MINOR_VERSION ++OMPI_RELEASE_VERSION ++OMPI_GREEK_VERSION ++OMPI_WANT_SVN ++OMPI_SVN_R ++OMPI_VERSION ++OMPI_RELEASE_DATE ++ORTE_MAJOR_VERSION ++ORTE_MINOR_VERSION ++ORTE_RELEASE_VERSION ++ORTE_GREEK_VERSION ++ORTE_WANT_SVN ++ORTE_SVN_R ++ORTE_VERSION ++ORTE_RELEASE_DATE ++OPAL_MAJOR_VERSION ++OPAL_MINOR_VERSION ++OPAL_RELEASE_VERSION ++OPAL_GREEK_VERSION ++OPAL_WANT_SVN ++OPAL_SVN_R ++OPAL_VERSION ++OPAL_RELEASE_DATE ++OMPI_TOP_BUILDDIR ++OMPI_TOP_SRCDIR ++CLEANFILES ++build ++build_cpu ++build_vendor ++build_os ++host ++host_cpu ++host_vendor ++host_os ++ac_prefix_program ++top_ompi_srcdir ++top_ompi_builddir ++OMPI_WANT_BUILD_F90_TRIVIAL_TRUE ++OMPI_WANT_BUILD_F90_TRIVIAL_FALSE ++OMPI_WANT_BUILD_F90_SMALL_TRUE ++OMPI_WANT_BUILD_F90_SMALL_FALSE ++OMPI_WANT_BUILD_F90_MEDIUM_TRUE ++OMPI_WANT_BUILD_F90_MEDIUM_FALSE ++OMPI_WANT_BUILD_F90_LARGE_TRUE ++OMPI_WANT_BUILD_F90_LARGE_FALSE ++OMPI_F90_BUILD_SIZE ++MPIF_H_PMPI_W_FUNCS ++WANT_INSTALL_HEADERS_TRUE ++WANT_INSTALL_HEADERS_FALSE ++WANT_PERUSE_TRUE ++WANT_PERUSE_FALSE ++OMPI_FORTRAN_MAX_ARRAY_RANK ++ORTE_DISABLE_FULL_SUPPORT_TRUE ++ORTE_DISABLE_FULL_SUPPORT_FALSE ++WANT_FT_TRUE ++WANT_FT_FALSE ++OMPI_INSTALL_BINARIES_TRUE ++OMPI_INSTALL_BINARIES_FALSE ++OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_TRUE ++OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_FALSE ++CC ++CFLAGS ++LDFLAGS ++CPPFLAGS ++ac_ct_CC ++EXEEXT ++OBJEXT ++DEPDIR ++am__include ++am__quote ++AMDEP_TRUE ++AMDEP_FALSE ++AMDEPBACKSLASH ++CCDEPMODE ++am__fastdepCC_TRUE ++am__fastdepCC_FALSE ++OMPI_CC_ABSOLUTE ++CPP ++GREP ++EGREP ++CFLAGS_WITHOUT_OPTFLAGS ++OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE ++OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE ++WANT_MPI_BINDINGS_LAYER_TRUE ++WANT_MPI_BINDINGS_LAYER_FALSE ++WANT_PMPI_BINDINGS_LAYER_TRUE ++WANT_PMPI_BINDINGS_LAYER_FALSE ++COMPILE_PROFILING_SEPARATELY_TRUE ++COMPILE_PROFILING_SEPARATELY_FALSE ++CXX ++CXXFLAGS ++ac_ct_CXX ++CXXDEPMODE ++am__fastdepCXX_TRUE ++am__fastdepCXX_FALSE ++CXXCPP ++OMPI_CXX_ABSOLUTE ++WANT_MPI_CXX_BINDINGS_TRUE ++WANT_MPI_CXX_BINDINGS_FALSE ++CCAS ++CCASFLAGS ++CCASDEPMODE ++am__fastdepCCAS_TRUE ++am__fastdepCCAS_FALSE ++OMPI_ASM_TEXT ++OMPI_AS_GLOBAL ++OBJDUMP ++OMPI_AS_LABEL_SUFFIX ++OMPI_ASM_GSYM ++DUMPBIN ++ac_ct_DUMPBIN ++NM ++OMPI_ASM_LSYM ++OMPI_ASM_TYPE ++OMPI_ASM_SUPPORT_64BIT ++OMPI_ASSEMBLY_FORMAT ++OMPI_ASSEMBLY_ARCH ++FGREP ++PERL ++OMPI_HAVE_ASM_FILE_TRUE ++OMPI_HAVE_ASM_FILE_FALSE ++OMPI_ASM_FILE ++F77 ++FFLAGS ++ac_ct_F77 ++OMPI_WANT_F77_BINDINGS_TRUE ++OMPI_WANT_F77_BINDINGS_FALSE ++OMPI_F77_ABSOLUTE ++WANT_MPI_F77_BINDINGS_LAYER_TRUE ++WANT_MPI_F77_BINDINGS_LAYER_FALSE ++WANT_PMPI_F77_BINDINGS_LAYER_TRUE ++WANT_PMPI_F77_BINDINGS_LAYER_FALSE ++FC ++FCFLAGS ++ac_ct_FC ++OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS ++FCFLAGS_f ++FCFLAGS_f90 ++OMPI_WANT_F90_BINDINGS_TRUE ++OMPI_WANT_F90_BINDINGS_FALSE ++OMPI_F90_ABSOLUTE ++OMPI_FC_MODULE_FLAG ++OMPI_SIZEOF_F90_LOGICAL ++OMPI_SIZEOF_F90_LOGICAL1 ++OMPI_SIZEOF_F90_LOGICAL2 ++OMPI_SIZEOF_F90_LOGICAL4 ++OMPI_SIZEOF_F90_LOGICAL8 ++OMPI_SIZEOF_F90_INTEGER ++OMPI_SIZEOF_F90_INTEGER1 ++OMPI_SIZEOF_F90_INTEGER2 ++OMPI_SIZEOF_F90_INTEGER4 ++OMPI_SIZEOF_F90_INTEGER8 ++OMPI_SIZEOF_F90_INTEGER16 ++OMPI_SIZEOF_F90_REAL ++OMPI_SIZEOF_F90_REAL2 ++OMPI_SIZEOF_F90_REAL4 ++OMPI_SIZEOF_F90_REAL8 ++OMPI_SIZEOF_F90_REAL16 ++OMPI_SIZEOF_F90_DOUBLE_PRECISION ++OMPI_SIZEOF_F90_COMPLEX ++OMPI_SIZEOF_F90_COMPLEX8 ++OMPI_SIZEOF_F90_COMPLEX16 ++OMPI_SIZEOF_F90_COMPLEX32 ++OMPI_SIZEOF_F90_DOUBLE_COMPLEX ++OMPI_F90_IKINDS ++OMPI_F90_RKINDS ++OMPI_F90_CKINDS ++OMPI_MPI_INTEGER_KIND ++OMPI_MPI_ADDRESS_KIND ++OMPI_MPI_OFFSET_KIND ++OMPI_HAVE_POSIX_THREADS_TRUE ++OMPI_HAVE_POSIX_THREADS_FALSE ++OMPI_HAVE_SOLARIS_THREADS_TRUE ++OMPI_HAVE_SOLARIS_THREADS_FALSE ++WANT_FT_THREAD_TRUE ++WANT_FT_THREAD_FALSE ++LN_S ++LEX ++LEX_OUTPUT_ROOT ++LEXLIB ++CASE_SENSITIVE_FS_TRUE ++CASE_SENSITIVE_FS_FALSE ++OMPI_BUILD_backtrace_execinfo_DSO_TRUE ++OMPI_BUILD_backtrace_execinfo_DSO_FALSE ++OMPI_BUILD_backtrace_printstack_DSO_TRUE ++OMPI_BUILD_backtrace_printstack_DSO_FALSE ++backtrace_darwin_CFLAGS ++OMPI_BUILD_backtrace_darwin_DSO_TRUE ++OMPI_BUILD_backtrace_darwin_DSO_FALSE ++OMPI_BUILD_backtrace_none_DSO_TRUE ++OMPI_BUILD_backtrace_none_DSO_FALSE ++MCA_backtrace_ALL_COMPONENTS ++MCA_backtrace_STATIC_COMPONENTS ++MCA_backtrace_DSO_COMPONENTS ++MCA_backtrace_STATIC_LTLIBS ++MCA_backtrace_ALL_SUBDIRS ++MCA_backtrace_STATIC_SUBDIRS ++MCA_backtrace_DSO_SUBDIRS ++OMPI_BUILD_carto_auto_detect_DSO_TRUE ++OMPI_BUILD_carto_auto_detect_DSO_FALSE ++OMPI_BUILD_carto_file_DSO_TRUE ++OMPI_BUILD_carto_file_DSO_FALSE ++MCA_carto_ALL_COMPONENTS ++MCA_carto_STATIC_COMPONENTS ++MCA_carto_DSO_COMPONENTS ++MCA_carto_STATIC_LTLIBS ++MCA_carto_ALL_SUBDIRS ++MCA_carto_STATIC_SUBDIRS ++MCA_carto_DSO_SUBDIRS ++OMPI_BUILD_crs_none_DSO_TRUE ++OMPI_BUILD_crs_none_DSO_FALSE ++crs_blcr_crs_blcr_WRAPPER_EXTRA_LDFLAGS ++crs_blcr_crs_blcr_WRAPPER_EXTRA_LIBS ++crs_blcr_crs_blcr_WRAPPER_EXTRA_CPPFLAGS ++crs_blcr_CFLAGS ++crs_blcr_CPPFLAGS ++crs_blcr_LDFLAGS ++crs_blcr_LIBS ++OMPI_BUILD_crs_blcr_DSO_TRUE ++OMPI_BUILD_crs_blcr_DSO_FALSE ++OMPI_BUILD_crs_self_DSO_TRUE ++OMPI_BUILD_crs_self_DSO_FALSE ++MCA_crs_ALL_COMPONENTS ++MCA_crs_STATIC_COMPONENTS ++MCA_crs_DSO_COMPONENTS ++MCA_crs_STATIC_LTLIBS ++MCA_crs_ALL_SUBDIRS ++MCA_crs_STATIC_SUBDIRS ++MCA_crs_DSO_SUBDIRS ++OMPI_BUILD_installdirs_env_DSO_TRUE ++OMPI_BUILD_installdirs_env_DSO_FALSE ++OMPI_BUILD_installdirs_config_DSO_TRUE ++OMPI_BUILD_installdirs_config_DSO_FALSE ++MCA_installdirs_ALL_COMPONENTS ++MCA_installdirs_STATIC_COMPONENTS ++MCA_installdirs_DSO_COMPONENTS ++MCA_installdirs_STATIC_LTLIBS ++MCA_installdirs_ALL_SUBDIRS ++MCA_installdirs_STATIC_SUBDIRS ++MCA_installdirs_DSO_SUBDIRS ++OMPI_BUILD_maffinity_first_use_DSO_TRUE ++OMPI_BUILD_maffinity_first_use_DSO_FALSE ++maffinity_libnuma_CPPFLAGS ++maffinity_libnuma_LDFLAGS ++maffinity_libnuma_LIBS ++OMPI_BUILD_maffinity_libnuma_DSO_TRUE ++OMPI_BUILD_maffinity_libnuma_DSO_FALSE ++MCA_maffinity_ALL_COMPONENTS ++MCA_maffinity_STATIC_COMPONENTS ++MCA_maffinity_DSO_COMPONENTS ++MCA_maffinity_STATIC_LTLIBS ++MCA_maffinity_ALL_SUBDIRS ++MCA_maffinity_STATIC_SUBDIRS ++MCA_maffinity_DSO_SUBDIRS ++OMPI_WANT_MEMCHECKER_TRUE ++OMPI_WANT_MEMCHECKER_FALSE ++memchecker_valgrind_CPPFLAGS ++OMPI_BUILD_memchecker_valgrind_DSO_TRUE ++OMPI_BUILD_memchecker_valgrind_DSO_FALSE ++MCA_memchecker_ALL_COMPONENTS ++MCA_memchecker_STATIC_COMPONENTS ++MCA_memchecker_DSO_COMPONENTS ++MCA_memchecker_STATIC_LTLIBS ++MCA_memchecker_ALL_SUBDIRS ++MCA_memchecker_STATIC_SUBDIRS ++MCA_memchecker_DSO_SUBDIRS ++MCA_memcpy_ALL_COMPONENTS ++MCA_memcpy_STATIC_COMPONENTS ++MCA_memcpy_DSO_COMPONENTS ++MCA_memcpy_STATIC_LTLIBS ++MCA_memcpy_ALL_SUBDIRS ++MCA_memcpy_STATIC_SUBDIRS ++MCA_memcpy_DSO_SUBDIRS ++memory_ptmalloc2_LIBS ++OMPI_WANT_EXTERNAL_PTMALLOC2_TRUE ++OMPI_WANT_EXTERNAL_PTMALLOC2_FALSE ++OMPI_BUILD_memory_ptmalloc2_DSO_TRUE ++OMPI_BUILD_memory_ptmalloc2_DSO_FALSE ++memory_malloc_solaris_LIBS ++OMPI_BUILD_memory_malloc_solaris_DSO_TRUE ++OMPI_BUILD_memory_malloc_solaris_DSO_FALSE ++memory_mallopt_LIBS ++OMPI_BUILD_memory_mallopt_DSO_TRUE ++OMPI_BUILD_memory_mallopt_DSO_FALSE ++MCA_memory_ALL_COMPONENTS ++MCA_memory_STATIC_COMPONENTS ++MCA_memory_DSO_COMPONENTS ++MCA_memory_STATIC_LTLIBS ++MCA_memory_ALL_SUBDIRS ++MCA_memory_STATIC_SUBDIRS ++MCA_memory_DSO_SUBDIRS ++YACC ++YFLAGS ++PLPA_BUILD_STANDALONE_TRUE ++PLPA_BUILD_STANDALONE_FALSE ++PLPA_BUILD_EXECUTABLES_TRUE ++PLPA_BUILD_EXECUTABLES_FALSE ++OMPI_BUILD_paffinity_linux_DSO_TRUE ++OMPI_BUILD_paffinity_linux_DSO_FALSE ++OMPI_BUILD_paffinity_solaris_DSO_TRUE ++OMPI_BUILD_paffinity_solaris_DSO_FALSE ++OMPI_BUILD_paffinity_windows_DSO_TRUE ++OMPI_BUILD_paffinity_windows_DSO_FALSE ++OMPI_BUILD_paffinity_darwin_DSO_TRUE ++OMPI_BUILD_paffinity_darwin_DSO_FALSE ++OMPI_BUILD_paffinity_posix_DSO_TRUE ++OMPI_BUILD_paffinity_posix_DSO_FALSE ++MCA_paffinity_ALL_COMPONENTS ++MCA_paffinity_STATIC_COMPONENTS ++MCA_paffinity_DSO_COMPONENTS ++MCA_paffinity_STATIC_LTLIBS ++MCA_paffinity_ALL_SUBDIRS ++MCA_paffinity_STATIC_SUBDIRS ++MCA_paffinity_DSO_SUBDIRS ++OMPI_BUILD_timer_catamount_DSO_TRUE ++OMPI_BUILD_timer_catamount_DSO_FALSE ++timer_aix_LIBS ++OMPI_BUILD_timer_aix_DSO_TRUE ++OMPI_BUILD_timer_aix_DSO_FALSE ++OMPI_BUILD_timer_altix_DSO_TRUE ++OMPI_BUILD_timer_altix_DSO_FALSE ++OMPI_BUILD_timer_darwin_DSO_TRUE ++OMPI_BUILD_timer_darwin_DSO_FALSE ++OMPI_BUILD_timer_solaris_DSO_TRUE ++OMPI_BUILD_timer_solaris_DSO_FALSE ++OMPI_BUILD_timer_windows_DSO_TRUE ++OMPI_BUILD_timer_windows_DSO_FALSE ++OMPI_BUILD_timer_linux_DSO_TRUE ++OMPI_BUILD_timer_linux_DSO_FALSE ++MCA_timer_ALL_COMPONENTS ++MCA_timer_STATIC_COMPONENTS ++MCA_timer_DSO_COMPONENTS ++MCA_timer_STATIC_LTLIBS ++MCA_timer_ALL_SUBDIRS ++MCA_timer_STATIC_SUBDIRS ++MCA_timer_DSO_SUBDIRS ++MCA_opal_FRAMEWORKS ++MCA_opal_FRAMEWORKS_SUBDIRS ++MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS ++MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS ++MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS ++MCA_opal_FRAMEWORK_LIBS ++OMPI_BUILD_errmgr_default_DSO_TRUE ++OMPI_BUILD_errmgr_default_DSO_FALSE ++MCA_errmgr_ALL_COMPONENTS ++MCA_errmgr_STATIC_COMPONENTS ++MCA_errmgr_DSO_COMPONENTS ++MCA_errmgr_STATIC_LTLIBS ++MCA_errmgr_ALL_SUBDIRS ++MCA_errmgr_STATIC_SUBDIRS ++MCA_errmgr_DSO_SUBDIRS ++ess_portals_utcp_CPPFLAGS ++ess_portals_utcp_LDFLAGS ++ess_portals_utcp_LIBS ++OMPI_BUILD_ess_portals_utcp_DSO_TRUE ++OMPI_BUILD_ess_portals_utcp_DSO_FALSE ++OMPI_BUILD_ess_cnos_DSO_TRUE ++OMPI_BUILD_ess_cnos_DSO_FALSE ++OMPI_BUILD_ess_alps_DSO_TRUE ++OMPI_BUILD_ess_alps_DSO_FALSE ++OMPI_BUILD_ess_env_DSO_TRUE ++OMPI_BUILD_ess_env_DSO_FALSE ++OMPI_BUILD_ess_hnp_DSO_TRUE ++OMPI_BUILD_ess_hnp_DSO_FALSE ++ess_lsf_CPPFLAGS ++ess_lsf_LDFLAGS ++ess_lsf_LIBS ++OMPI_BUILD_ess_lsf_DSO_TRUE ++OMPI_BUILD_ess_lsf_DSO_FALSE ++OMPI_BUILD_ess_singleton_DSO_TRUE ++OMPI_BUILD_ess_singleton_DSO_FALSE ++ess_slurm_CPPFLAGS ++ess_slurm_LDFLAGS ++ess_slurm_LIBS ++OMPI_BUILD_ess_slurm_DSO_TRUE ++OMPI_BUILD_ess_slurm_DSO_FALSE ++OMPI_BUILD_ess_tool_DSO_TRUE ++OMPI_BUILD_ess_tool_DSO_FALSE ++MCA_ess_ALL_COMPONENTS ++MCA_ess_STATIC_COMPONENTS ++MCA_ess_DSO_COMPONENTS ++MCA_ess_STATIC_LTLIBS ++MCA_ess_ALL_SUBDIRS ++MCA_ess_STATIC_SUBDIRS ++MCA_ess_DSO_SUBDIRS ++OMPI_BUILD_filem_rsh_DSO_TRUE ++OMPI_BUILD_filem_rsh_DSO_FALSE ++MCA_filem_ALL_COMPONENTS ++MCA_filem_STATIC_COMPONENTS ++MCA_filem_DSO_COMPONENTS ++MCA_filem_STATIC_LTLIBS ++MCA_filem_ALL_SUBDIRS ++MCA_filem_STATIC_SUBDIRS ++MCA_filem_DSO_SUBDIRS ++OMPI_BUILD_grpcomm_cnos_DSO_TRUE ++OMPI_BUILD_grpcomm_cnos_DSO_FALSE ++OMPI_BUILD_grpcomm_bad_DSO_TRUE ++OMPI_BUILD_grpcomm_bad_DSO_FALSE ++OMPI_BUILD_grpcomm_basic_DSO_TRUE ++OMPI_BUILD_grpcomm_basic_DSO_FALSE ++MCA_grpcomm_ALL_COMPONENTS ++MCA_grpcomm_STATIC_COMPONENTS ++MCA_grpcomm_DSO_COMPONENTS ++MCA_grpcomm_STATIC_LTLIBS ++MCA_grpcomm_ALL_SUBDIRS ++MCA_grpcomm_STATIC_SUBDIRS ++MCA_grpcomm_DSO_SUBDIRS ++OMPI_BUILD_iof_hnp_DSO_TRUE ++OMPI_BUILD_iof_hnp_DSO_FALSE ++OMPI_BUILD_iof_orted_DSO_TRUE ++OMPI_BUILD_iof_orted_DSO_FALSE ++OMPI_BUILD_iof_tool_DSO_TRUE ++OMPI_BUILD_iof_tool_DSO_FALSE ++MCA_iof_ALL_COMPONENTS ++MCA_iof_STATIC_COMPONENTS ++MCA_iof_DSO_COMPONENTS ++MCA_iof_STATIC_LTLIBS ++MCA_iof_ALL_SUBDIRS ++MCA_iof_STATIC_SUBDIRS ++MCA_iof_DSO_SUBDIRS ++OMPI_BUILD_notifier_syslog_DSO_TRUE ++OMPI_BUILD_notifier_syslog_DSO_FALSE ++MCA_notifier_ALL_COMPONENTS ++MCA_notifier_STATIC_COMPONENTS ++MCA_notifier_DSO_COMPONENTS ++MCA_notifier_STATIC_LTLIBS ++MCA_notifier_ALL_SUBDIRS ++MCA_notifier_STATIC_SUBDIRS ++MCA_notifier_DSO_SUBDIRS ++OMPI_BUILD_odls_default_DSO_TRUE ++OMPI_BUILD_odls_default_DSO_FALSE ++MCA_odls_ALL_COMPONENTS ++MCA_odls_STATIC_COMPONENTS ++MCA_odls_DSO_COMPONENTS ++MCA_odls_STATIC_LTLIBS ++MCA_odls_ALL_SUBDIRS ++MCA_odls_STATIC_SUBDIRS ++MCA_odls_DSO_SUBDIRS ++OMPI_BUILD_oob_tcp_DSO_TRUE ++OMPI_BUILD_oob_tcp_DSO_FALSE ++MCA_oob_ALL_COMPONENTS ++MCA_oob_STATIC_COMPONENTS ++MCA_oob_DSO_COMPONENTS ++MCA_oob_STATIC_LTLIBS ++MCA_oob_ALL_SUBDIRS ++MCA_oob_STATIC_SUBDIRS ++MCA_oob_DSO_SUBDIRS ++OMPI_BUILD_plm_alps_DSO_TRUE ++OMPI_BUILD_plm_alps_DSO_FALSE ++plm_lsf_CPPFLAGS ++plm_lsf_LDFLAGS ++plm_lsf_LIBS ++OMPI_BUILD_plm_lsf_DSO_TRUE ++OMPI_BUILD_plm_lsf_DSO_FALSE ++OMPI_BUILD_plm_rsh_DSO_TRUE ++OMPI_BUILD_plm_rsh_DSO_FALSE ++plm_slurm_CPPFLAGS ++plm_slurm_LDFLAGS ++plm_slurm_LIBS ++OMPI_BUILD_plm_slurm_DSO_TRUE ++OMPI_BUILD_plm_slurm_DSO_FALSE ++plm_tm_CPPFLAGS ++plm_tm_LDFLAGS ++plm_tm_LIBS ++OMPI_BUILD_plm_tm_DSO_TRUE ++OMPI_BUILD_plm_tm_DSO_FALSE ++OBJC ++OBJCFLAGS ++ac_ct_OBJC ++OBJCDEPMODE ++am__fastdepOBJC_TRUE ++am__fastdepOBJC_FALSE ++plm_xgrid_OBJCFLAGS ++plm_xgrid_LDFLAGS ++OMPI_BUILD_plm_xgrid_DSO_TRUE ++OMPI_BUILD_plm_xgrid_DSO_FALSE ++MCA_plm_ALL_COMPONENTS ++MCA_plm_STATIC_COMPONENTS ++MCA_plm_DSO_COMPONENTS ++MCA_plm_STATIC_LTLIBS ++MCA_plm_ALL_SUBDIRS ++MCA_plm_STATIC_SUBDIRS ++MCA_plm_DSO_SUBDIRS ++OMPI_BUILD_ras_alps_DSO_TRUE ++OMPI_BUILD_ras_alps_DSO_FALSE ++QRSH ++OMPI_BUILD_ras_gridengine_DSO_TRUE ++OMPI_BUILD_ras_gridengine_DSO_FALSE ++ras_loadleveler_CPPFLAGS ++ras_loadleveler_LDFLAGS ++ras_loadleveler_LIBS ++OMPI_BUILD_ras_loadleveler_DSO_TRUE ++OMPI_BUILD_ras_loadleveler_DSO_FALSE ++ras_lsf_CPPFLAGS ++ras_lsf_LDFLAGS ++ras_lsf_LIBS ++OMPI_BUILD_ras_lsf_DSO_TRUE ++OMPI_BUILD_ras_lsf_DSO_FALSE ++ras_slurm_CPPFLAGS ++ras_slurm_LDFLAGS ++ras_slurm_LIBS ++OMPI_BUILD_ras_slurm_DSO_TRUE ++OMPI_BUILD_ras_slurm_DSO_FALSE ++ras_tm_CPPFLAGS ++ras_tm_LDFLAGS ++ras_tm_LIBS ++OMPI_BUILD_ras_tm_DSO_TRUE ++OMPI_BUILD_ras_tm_DSO_FALSE ++MCA_ras_ALL_COMPONENTS ++MCA_ras_STATIC_COMPONENTS ++MCA_ras_DSO_COMPONENTS ++MCA_ras_STATIC_LTLIBS ++MCA_ras_ALL_SUBDIRS ++MCA_ras_STATIC_SUBDIRS ++MCA_ras_DSO_SUBDIRS ++OMPI_BUILD_rmaps_rank_file_DSO_TRUE ++OMPI_BUILD_rmaps_rank_file_DSO_FALSE ++OMPI_BUILD_rmaps_round_robin_DSO_TRUE ++OMPI_BUILD_rmaps_round_robin_DSO_FALSE ++OMPI_BUILD_rmaps_seq_DSO_TRUE ++OMPI_BUILD_rmaps_seq_DSO_FALSE ++MCA_rmaps_ALL_COMPONENTS ++MCA_rmaps_STATIC_COMPONENTS ++MCA_rmaps_DSO_COMPONENTS ++MCA_rmaps_STATIC_LTLIBS ++MCA_rmaps_ALL_SUBDIRS ++MCA_rmaps_STATIC_SUBDIRS ++MCA_rmaps_DSO_SUBDIRS ++OMPI_BUILD_rml_oob_DSO_TRUE ++OMPI_BUILD_rml_oob_DSO_FALSE ++OMPI_BUILD_rml_ftrm_DSO_TRUE ++OMPI_BUILD_rml_ftrm_DSO_FALSE ++MCA_rml_ALL_COMPONENTS ++MCA_rml_STATIC_COMPONENTS ++MCA_rml_DSO_COMPONENTS ++MCA_rml_STATIC_LTLIBS ++MCA_rml_ALL_SUBDIRS ++MCA_rml_STATIC_SUBDIRS ++MCA_rml_DSO_SUBDIRS ++OMPI_BUILD_routed_binomial_DSO_TRUE ++OMPI_BUILD_routed_binomial_DSO_FALSE ++OMPI_BUILD_routed_direct_DSO_TRUE ++OMPI_BUILD_routed_direct_DSO_FALSE ++OMPI_BUILD_routed_linear_DSO_TRUE ++OMPI_BUILD_routed_linear_DSO_FALSE ++MCA_routed_ALL_COMPONENTS ++MCA_routed_STATIC_COMPONENTS ++MCA_routed_DSO_COMPONENTS ++MCA_routed_STATIC_LTLIBS ++MCA_routed_ALL_SUBDIRS ++MCA_routed_STATIC_SUBDIRS ++MCA_routed_DSO_SUBDIRS ++OMPI_BUILD_snapc_full_DSO_TRUE ++OMPI_BUILD_snapc_full_DSO_FALSE ++MCA_snapc_ALL_COMPONENTS ++MCA_snapc_STATIC_COMPONENTS ++MCA_snapc_DSO_COMPONENTS ++MCA_snapc_STATIC_LTLIBS ++MCA_snapc_ALL_SUBDIRS ++MCA_snapc_STATIC_SUBDIRS ++MCA_snapc_DSO_SUBDIRS ++MCA_orte_FRAMEWORKS ++MCA_orte_FRAMEWORKS_SUBDIRS ++MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS ++MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS ++MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS ++MCA_orte_FRAMEWORK_LIBS ++OMPI_BUILD_allocator_basic_DSO_TRUE ++OMPI_BUILD_allocator_basic_DSO_FALSE ++OMPI_BUILD_allocator_bucket_DSO_TRUE ++OMPI_BUILD_allocator_bucket_DSO_FALSE ++MCA_allocator_ALL_COMPONENTS ++MCA_allocator_STATIC_COMPONENTS ++MCA_allocator_DSO_COMPONENTS ++MCA_allocator_STATIC_LTLIBS ++MCA_allocator_ALL_SUBDIRS ++MCA_allocator_STATIC_SUBDIRS ++MCA_allocator_DSO_SUBDIRS ++OMPI_BUILD_bml_r2_DSO_TRUE ++OMPI_BUILD_bml_r2_DSO_FALSE ++MCA_bml_ALL_COMPONENTS ++MCA_bml_STATIC_COMPONENTS ++MCA_bml_DSO_COMPONENTS ++MCA_bml_STATIC_LTLIBS ++MCA_bml_ALL_SUBDIRS ++MCA_bml_STATIC_SUBDIRS ++MCA_bml_DSO_SUBDIRS ++OMPI_BUILD_btl_self_DSO_TRUE ++OMPI_BUILD_btl_self_DSO_FALSE ++OMPI_BUILD_btl_sm_DSO_TRUE ++OMPI_BUILD_btl_sm_DSO_FALSE ++btl_elan_CFLAGS ++btl_elan_CPPFLAGS ++btl_elan_LDFLAGS ++btl_elan_LIBS ++OMPI_BUILD_btl_elan_DSO_TRUE ++OMPI_BUILD_btl_elan_DSO_FALSE ++btl_gm_CFLAGS ++btl_gm_CPPFLAGS ++btl_gm_LDFLAGS ++btl_gm_LIBS ++OMPI_BUILD_btl_gm_DSO_TRUE ++OMPI_BUILD_btl_gm_DSO_FALSE ++btl_mx_CFLAGS ++btl_mx_CPPFLAGS ++btl_mx_LDFLAGS ++btl_mx_LIBS ++OMPI_BUILD_btl_mx_DSO_TRUE ++OMPI_BUILD_btl_mx_DSO_FALSE ++btl_ofud_CFLAGS ++btl_ofud_CPPFLAGS ++btl_ofud_LDFLAGS ++btl_ofud_LIBS ++OMPI_BUILD_btl_ofud_DSO_TRUE ++OMPI_BUILD_btl_ofud_DSO_FALSE ++btl_openib_CFLAGS ++btl_openib_CPPFLAGS ++btl_openib_LDFLAGS ++btl_openib_LIBS ++MCA_btl_openib_have_xrc_TRUE ++MCA_btl_openib_have_xrc_FALSE ++MCA_btl_openib_have_rdmacm_TRUE ++MCA_btl_openib_have_rdmacm_FALSE ++MCA_btl_openib_have_ibcm_TRUE ++MCA_btl_openib_have_ibcm_FALSE ++OMPI_BUILD_btl_openib_DSO_TRUE ++OMPI_BUILD_btl_openib_DSO_FALSE ++btl_portals_CPPFLAGS ++btl_portals_LDFLAGS ++btl_portals_LIBS ++OMPI_BUILD_btl_portals_DSO_TRUE ++OMPI_BUILD_btl_portals_DSO_FALSE ++OMPI_BUILD_btl_tcp_DSO_TRUE ++OMPI_BUILD_btl_tcp_DSO_FALSE ++btl_udapl_CFLAGS ++btl_udapl_CPPFLAGS ++btl_udapl_LDFLAGS ++btl_udapl_LIBS ++OMPI_BUILD_btl_udapl_DSO_TRUE ++OMPI_BUILD_btl_udapl_DSO_FALSE ++MCA_btl_ALL_COMPONENTS ++MCA_btl_STATIC_COMPONENTS ++MCA_btl_DSO_COMPONENTS ++MCA_btl_STATIC_LTLIBS ++MCA_btl_ALL_SUBDIRS ++MCA_btl_STATIC_SUBDIRS ++MCA_btl_DSO_SUBDIRS ++OMPI_BUILD_coll_basic_DSO_TRUE ++OMPI_BUILD_coll_basic_DSO_FALSE ++OMPI_BUILD_coll_hierarch_DSO_TRUE ++OMPI_BUILD_coll_hierarch_DSO_FALSE ++OMPI_BUILD_coll_inter_DSO_TRUE ++OMPI_BUILD_coll_inter_DSO_FALSE ++OMPI_BUILD_coll_self_DSO_TRUE ++OMPI_BUILD_coll_self_DSO_FALSE ++OMPI_BUILD_coll_sm_DSO_TRUE ++OMPI_BUILD_coll_sm_DSO_FALSE ++OMPI_BUILD_coll_tuned_DSO_TRUE ++OMPI_BUILD_coll_tuned_DSO_FALSE ++MCA_coll_ALL_COMPONENTS ++MCA_coll_STATIC_COMPONENTS ++MCA_coll_DSO_COMPONENTS ++MCA_coll_STATIC_LTLIBS ++MCA_coll_ALL_SUBDIRS ++MCA_coll_STATIC_SUBDIRS ++MCA_coll_DSO_SUBDIRS ++OMPI_BUILD_common_sm_DSO_TRUE ++OMPI_BUILD_common_sm_DSO_FALSE ++common_mx_CFLAGS ++common_mx_CPPFLAGS ++common_mx_LDFLAGS ++common_mx_LIBS ++OMPI_BUILD_common_mx_DSO_TRUE ++OMPI_BUILD_common_mx_DSO_FALSE ++common_portals_CPPFLAGS ++common_portals_LDFLAGS ++common_portals_LIBS ++OMPI_BUILD_common_portals_DSO_TRUE ++OMPI_BUILD_common_portals_DSO_FALSE ++MCA_common_ALL_COMPONENTS ++MCA_common_STATIC_COMPONENTS ++MCA_common_DSO_COMPONENTS ++MCA_common_STATIC_LTLIBS ++MCA_common_ALL_SUBDIRS ++MCA_common_STATIC_SUBDIRS ++MCA_common_DSO_SUBDIRS ++OMPI_BUILD_crcp_bkmrk_DSO_TRUE ++OMPI_BUILD_crcp_bkmrk_DSO_FALSE ++MCA_crcp_ALL_COMPONENTS ++MCA_crcp_STATIC_COMPONENTS ++MCA_crcp_DSO_COMPONENTS ++MCA_crcp_STATIC_LTLIBS ++MCA_crcp_ALL_SUBDIRS ++MCA_crcp_STATIC_SUBDIRS ++MCA_crcp_DSO_SUBDIRS ++OMPI_BUILD_dpm_orte_DSO_TRUE ++OMPI_BUILD_dpm_orte_DSO_FALSE ++MCA_dpm_ALL_COMPONENTS ++MCA_dpm_STATIC_COMPONENTS ++MCA_dpm_DSO_COMPONENTS ++MCA_dpm_STATIC_LTLIBS ++MCA_dpm_ALL_SUBDIRS ++MCA_dpm_STATIC_SUBDIRS ++MCA_dpm_DSO_SUBDIRS ++MCA_io_romio_SHOULD_BUILD_TRUE ++MCA_io_romio_SHOULD_BUILD_FALSE ++OMPI_BUILD_io_romio_DSO_TRUE ++OMPI_BUILD_io_romio_DSO_FALSE ++MCA_io_ALL_COMPONENTS ++MCA_io_STATIC_COMPONENTS ++MCA_io_DSO_COMPONENTS ++MCA_io_STATIC_LTLIBS ++MCA_io_ALL_SUBDIRS ++MCA_io_STATIC_SUBDIRS ++MCA_io_DSO_SUBDIRS ++OMPI_PROVIDE_MPI_FILE_INTERFACE_TRUE ++OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE ++OMPI_MPIF_MPI_IO_INCLUDE ++OMPI_BUILD_mpool_fake_DSO_TRUE ++OMPI_BUILD_mpool_fake_DSO_FALSE ++OMPI_BUILD_mpool_rdma_DSO_TRUE ++OMPI_BUILD_mpool_rdma_DSO_FALSE ++OMPI_BUILD_mpool_sm_DSO_TRUE ++OMPI_BUILD_mpool_sm_DSO_FALSE ++MCA_mpool_ALL_COMPONENTS ++MCA_mpool_STATIC_COMPONENTS ++MCA_mpool_DSO_COMPONENTS ++MCA_mpool_STATIC_LTLIBS ++MCA_mpool_ALL_SUBDIRS ++MCA_mpool_STATIC_SUBDIRS ++MCA_mpool_DSO_SUBDIRS ++mtl_mx_CFLAGS ++mtl_mx_CPPFLAGS ++mtl_mx_LDFLAGS ++mtl_mx_LIBS ++OMPI_BUILD_mtl_mx_DSO_TRUE ++OMPI_BUILD_mtl_mx_DSO_FALSE ++mtl_portals_CPPFLAGS ++mtl_portals_LDFLAGS ++mtl_portals_LIBS ++OMPI_BUILD_mtl_portals_DSO_TRUE ++OMPI_BUILD_mtl_portals_DSO_FALSE ++mtl_psm_CFLAGS ++mtl_psm_CPPFLAGS ++mtl_psm_LDFLAGS ++mtl_psm_LIBS ++OMPI_BUILD_mtl_psm_DSO_TRUE ++OMPI_BUILD_mtl_psm_DSO_FALSE ++MCA_mtl_ALL_COMPONENTS ++MCA_mtl_STATIC_COMPONENTS ++MCA_mtl_DSO_COMPONENTS ++MCA_mtl_STATIC_LTLIBS ++MCA_mtl_ALL_SUBDIRS ++MCA_mtl_STATIC_SUBDIRS ++MCA_mtl_DSO_SUBDIRS ++OMPI_BUILD_osc_pt2pt_DSO_TRUE ++OMPI_BUILD_osc_pt2pt_DSO_FALSE ++OMPI_BUILD_osc_rdma_DSO_TRUE ++OMPI_BUILD_osc_rdma_DSO_FALSE ++MCA_osc_ALL_COMPONENTS ++MCA_osc_STATIC_COMPONENTS ++MCA_osc_DSO_COMPONENTS ++MCA_osc_STATIC_LTLIBS ++MCA_osc_ALL_SUBDIRS ++MCA_osc_STATIC_SUBDIRS ++MCA_osc_DSO_SUBDIRS ++OMPI_BUILD_pml_cm_DSO_TRUE ++OMPI_BUILD_pml_cm_DSO_FALSE ++OMPI_BUILD_pml_ob1_DSO_TRUE ++OMPI_BUILD_pml_ob1_DSO_FALSE ++OMPI_BUILD_pml_crcpw_DSO_TRUE ++OMPI_BUILD_pml_crcpw_DSO_FALSE ++OMPI_BUILD_vprotocol_pessimist_DSO_TRUE ++OMPI_BUILD_vprotocol_pessimist_DSO_FALSE ++MCA_vprotocol_ALL_COMPONENTS ++MCA_vprotocol_STATIC_COMPONENTS ++MCA_vprotocol_DSO_COMPONENTS ++MCA_vprotocol_STATIC_LTLIBS ++MCA_vprotocol_ALL_SUBDIRS ++MCA_vprotocol_STATIC_SUBDIRS ++MCA_vprotocol_DSO_SUBDIRS ++OMPI_BUILD_pml_v_DSO_TRUE ++OMPI_BUILD_pml_v_DSO_FALSE ++MCA_pml_ALL_COMPONENTS ++MCA_pml_STATIC_COMPONENTS ++MCA_pml_DSO_COMPONENTS ++MCA_pml_STATIC_LTLIBS ++MCA_pml_ALL_SUBDIRS ++MCA_pml_STATIC_SUBDIRS ++MCA_pml_DSO_SUBDIRS ++OMPI_BUILD_pubsub_orte_DSO_TRUE ++OMPI_BUILD_pubsub_orte_DSO_FALSE ++MCA_pubsub_ALL_COMPONENTS ++MCA_pubsub_STATIC_COMPONENTS ++MCA_pubsub_DSO_COMPONENTS ++MCA_pubsub_STATIC_LTLIBS ++MCA_pubsub_ALL_SUBDIRS ++MCA_pubsub_STATIC_SUBDIRS ++MCA_pubsub_DSO_SUBDIRS ++OMPI_BUILD_rcache_vma_DSO_TRUE ++OMPI_BUILD_rcache_vma_DSO_FALSE ++MCA_rcache_ALL_COMPONENTS ++MCA_rcache_STATIC_COMPONENTS ++MCA_rcache_DSO_COMPONENTS ++MCA_rcache_STATIC_LTLIBS ++MCA_rcache_ALL_SUBDIRS ++MCA_rcache_STATIC_SUBDIRS ++MCA_rcache_DSO_SUBDIRS ++OMPI_BUILD_topo_unity_DSO_TRUE ++OMPI_BUILD_topo_unity_DSO_FALSE ++MCA_topo_ALL_COMPONENTS ++MCA_topo_STATIC_COMPONENTS ++MCA_topo_DSO_COMPONENTS ++MCA_topo_STATIC_LTLIBS ++MCA_topo_ALL_SUBDIRS ++MCA_topo_STATIC_SUBDIRS ++MCA_topo_DSO_SUBDIRS ++MCA_ompi_FRAMEWORKS ++MCA_ompi_FRAMEWORKS_SUBDIRS ++MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS ++MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS ++MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS ++MCA_ompi_FRAMEWORK_LIBS ++MCA_pml_DIRECT_CALL_HEADER ++MCA_mtl_DIRECT_CALL_HEADER ++MCA_PROJECT_SUBDIRS ++OMPI_CONTRIB_SUBDIRS ++OMPI_CONTRIB_DIST_SUBDIRS ++OMPI_LIBEVENT_SOURCES ++LIBLTDL ++LTDLDEPS ++LTDLINCL ++INCLTDL ++AS ++DLLTOOL ++LIBTOOL ++SED ++LD ++AR ++RANLIB ++lt_ECHO ++DSYMUTIL ++NMEDIT ++LIPO ++OTOOL ++OTOOL64 ++LIBLTDL_SUBDIR ++TOTALVIEW_DEBUG_FLAGS ++CXXCPPFLAGS ++OMPI_LIBMPI_EXTRA_LIBS ++OMPI_LIBMPI_EXTRA_LDFLAGS ++AMCA_PARAM_SETS_DIR ++OPAL_WRAPPER_EXTRA_CPPFLAGS ++OPAL_WRAPPER_EXTRA_CFLAGS ++OPAL_WRAPPER_EXTRA_CXXFLAGS ++OPAL_WRAPPER_EXTRA_LDFLAGS ++OPAL_WRAPPER_EXTRA_LIBS ++OPAL_WRAPPER_EXTRA_INCLUDES ++ORTE_WRAPPER_EXTRA_CPPFLAGS ++ORTE_WRAPPER_EXTRA_CFLAGS ++ORTE_WRAPPER_EXTRA_CXXFLAGS ++ORTE_WRAPPER_EXTRA_LDFLAGS ++ORTE_WRAPPER_EXTRA_LIBS ++ORTE_WRAPPER_EXTRA_INCLUDES ++OMPI_WRAPPER_EXTRA_CPPFLAGS ++OMPI_WRAPPER_EXTRA_CFLAGS ++OMPI_WRAPPER_EXTRA_CXXFLAGS ++OMPI_WRAPPER_EXTRA_FFLAGS ++OMPI_WRAPPER_EXTRA_FCFLAGS ++OMPI_WRAPPER_EXTRA_LDFLAGS ++OMPI_WRAPPER_EXTRA_LIBS ++OMPI_WRAPPER_EXTRA_INCLUDES ++OMPI_WRAPPER_CXX_LIB ++OMPI_WRAPPER_CXX_REQUIRED_FILE ++OMPI_WRAPPER_F77_REQUIRED_FILE ++OMPI_WRAPPER_F90_REQUIRED_FILE ++OMPI_WRAPPER_INCLUDEDIR ++OMPI_WRAPPER_LIBDIR ++WRAPPER_EXTRA_CFLAGS ++WRAPPER_EXTRA_CXXFLAGS ++WRAPPER_EXTRA_FFLAGS ++WRAPPER_EXTRA_FCFLAGS ++WRAPPER_EXTRA_LDFLAGS ++WRAPPER_EXTRA_LIBS ++LIB@&t@OBJS ++LTLIBOBJS' ++ac_subst_files='' ++ ac_precious_vars='build_alias ++host_alias ++target_alias ++CC ++CFLAGS ++LDFLAGS ++LIBS ++CPPFLAGS ++CPP ++CXX ++CXXFLAGS ++CCC ++CXXCPP ++CCAS ++CCASFLAGS ++F77 ++FFLAGS ++FC ++FCFLAGS ++YACC ++YFLAGS ++OBJC ++OBJCFLAGS' ++ ++ ++# Initialize some variables set by options. ++ac_init_help= ++ac_init_version=false ++# The variables have the same names as the options, with ++# dashes changed to underlines. ++cache_file=/dev/null ++exec_prefix=NONE ++no_create= ++no_recursion= ++prefix=NONE ++program_prefix=NONE ++program_suffix=NONE ++program_transform_name=s,x,x, ++silent= ++site= ++srcdir= ++verbose= ++x_includes=NONE ++x_libraries=NONE ++ ++# Installation directory options. ++# These are left unexpanded so users can "make install exec_prefix=/foo" ++# and all the variables that are supposed to be based on exec_prefix ++# by default will actually change. ++# Use braces instead of parens because sh, perl, etc. also accept them. ++# (The list follows the same order as the GNU Coding Standards.) ++bindir='${exec_prefix}/bin' ++sbindir='${exec_prefix}/sbin' ++libexecdir='${exec_prefix}/libexec' ++datarootdir='${prefix}/share' ++datadir='${datarootdir}' ++sysconfdir='${prefix}/etc' ++sharedstatedir='${prefix}/com' ++localstatedir='${prefix}/var' ++includedir='${prefix}/include' ++oldincludedir='/usr/include' ++docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' ++infodir='${datarootdir}/info' ++htmldir='${docdir}' ++dvidir='${docdir}' ++pdfdir='${docdir}' ++psdir='${docdir}' ++libdir='${exec_prefix}/lib' ++localedir='${datarootdir}/locale' ++mandir='${datarootdir}/man' ++ ++ac_prev= ++ac_dashdash= ++for ac_option ++do ++ # If the previous option needs an argument, assign it. ++ if test -n "$ac_prev"; then ++ eval $ac_prev=\$ac_option ++ ac_prev= ++ continue ++ fi ++ ++ case $ac_option in ++ *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; ++ *) ac_optarg=yes ;; ++ esac ++ ++ # Accept the important Cygnus configure options, so we can diagnose typos. ++ ++ case $ac_dashdash$ac_option in ++ --) ++ ac_dashdash=yes ;; ++ ++ -bindir | --bindir | --bindi | --bind | --bin | --bi) ++ ac_prev=bindir ;; ++ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) ++ bindir=$ac_optarg ;; ++ ++ -build | --build | --buil | --bui | --bu) ++ ac_prev=build_alias ;; ++ -build=* | --build=* | --buil=* | --bui=* | --bu=*) ++ build_alias=$ac_optarg ;; ++ ++ -cache-file | --cache-file | --cache-fil | --cache-fi \ ++ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ++ ac_prev=cache_file ;; ++ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ ++ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) ++ cache_file=$ac_optarg ;; ++ ++ --config-cache | -C) ++ cache_file=config.cache ;; ++ ++ -datadir | --datadir | --datadi | --datad) ++ ac_prev=datadir ;; ++ -datadir=* | --datadir=* | --datadi=* | --datad=*) ++ datadir=$ac_optarg ;; ++ ++ -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ ++ | --dataroo | --dataro | --datar) ++ ac_prev=datarootdir ;; ++ -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ ++ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) ++ datarootdir=$ac_optarg ;; ++ ++ -disable-* | --disable-*) ++ ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` ++ # Reject names that are not valid shell variable names. ++ expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && ++ { echo "$as_me: error: invalid feature name: $ac_feature" >&2 ++ { (exit 1); exit 1; }; } ++ ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` ++ eval enable_$ac_feature=no ;; ++ ++ -docdir | --docdir | --docdi | --doc | --do) ++ ac_prev=docdir ;; ++ -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) ++ docdir=$ac_optarg ;; ++ ++ -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ++ ac_prev=dvidir ;; ++ -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) ++ dvidir=$ac_optarg ;; ++ ++ -enable-* | --enable-*) ++ ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` ++ # Reject names that are not valid shell variable names. ++ expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && ++ { echo "$as_me: error: invalid feature name: $ac_feature" >&2 ++ { (exit 1); exit 1; }; } ++ ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` ++ eval enable_$ac_feature=\$ac_optarg ;; ++ ++ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ ++ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ ++ | --exec | --exe | --ex) ++ ac_prev=exec_prefix ;; ++ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ ++ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ ++ | --exec=* | --exe=* | --ex=*) ++ exec_prefix=$ac_optarg ;; ++ ++ -gas | --gas | --ga | --g) ++ # Obsolete; use --with-gas. ++ with_gas=yes ;; ++ ++ -help | --help | --hel | --he | -h) ++ ac_init_help=long ;; ++ -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ++ ac_init_help=recursive ;; ++ -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ++ ac_init_help=short ;; ++ ++ -host | --host | --hos | --ho) ++ ac_prev=host_alias ;; ++ -host=* | --host=* | --hos=* | --ho=*) ++ host_alias=$ac_optarg ;; ++ ++ -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ++ ac_prev=htmldir ;; ++ -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ ++ | --ht=*) ++ htmldir=$ac_optarg ;; ++ ++ -includedir | --includedir | --includedi | --included | --include \ ++ | --includ | --inclu | --incl | --inc) ++ ac_prev=includedir ;; ++ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ ++ | --includ=* | --inclu=* | --incl=* | --inc=*) ++ includedir=$ac_optarg ;; ++ ++ -infodir | --infodir | --infodi | --infod | --info | --inf) ++ ac_prev=infodir ;; ++ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) ++ infodir=$ac_optarg ;; ++ ++ -libdir | --libdir | --libdi | --libd) ++ ac_prev=libdir ;; ++ -libdir=* | --libdir=* | --libdi=* | --libd=*) ++ libdir=$ac_optarg ;; ++ ++ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ ++ | --libexe | --libex | --libe) ++ ac_prev=libexecdir ;; ++ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ ++ | --libexe=* | --libex=* | --libe=*) ++ libexecdir=$ac_optarg ;; ++ ++ -localedir | --localedir | --localedi | --localed | --locale) ++ ac_prev=localedir ;; ++ -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) ++ localedir=$ac_optarg ;; ++ ++ -localstatedir | --localstatedir | --localstatedi | --localstated \ ++ | --localstate | --localstat | --localsta | --localst | --locals) ++ ac_prev=localstatedir ;; ++ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ ++ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) ++ localstatedir=$ac_optarg ;; ++ ++ -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ++ ac_prev=mandir ;; ++ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) ++ mandir=$ac_optarg ;; ++ ++ -nfp | --nfp | --nf) ++ # Obsolete; use --without-fp. ++ with_fp=no ;; ++ ++ -no-create | --no-create | --no-creat | --no-crea | --no-cre \ ++ | --no-cr | --no-c | -n) ++ no_create=yes ;; ++ ++ -no-recursion | --no-recursion | --no-recursio | --no-recursi \ ++ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ++ no_recursion=yes ;; ++ ++ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ ++ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ ++ | --oldin | --oldi | --old | --ol | --o) ++ ac_prev=oldincludedir ;; ++ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ ++ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ ++ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) ++ oldincludedir=$ac_optarg ;; ++ ++ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ++ ac_prev=prefix ;; ++ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ++ prefix=$ac_optarg ;; ++ ++ -program-prefix | --program-prefix | --program-prefi | --program-pref \ ++ | --program-pre | --program-pr | --program-p) ++ ac_prev=program_prefix ;; ++ -program-prefix=* | --program-prefix=* | --program-prefi=* \ ++ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) ++ program_prefix=$ac_optarg ;; ++ ++ -program-suffix | --program-suffix | --program-suffi | --program-suff \ ++ | --program-suf | --program-su | --program-s) ++ ac_prev=program_suffix ;; ++ -program-suffix=* | --program-suffix=* | --program-suffi=* \ ++ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) ++ program_suffix=$ac_optarg ;; ++ ++ -program-transform-name | --program-transform-name \ ++ | --program-transform-nam | --program-transform-na \ ++ | --program-transform-n | --program-transform- \ ++ | --program-transform | --program-transfor \ ++ | --program-transfo | --program-transf \ ++ | --program-trans | --program-tran \ ++ | --progr-tra | --program-tr | --program-t) ++ ac_prev=program_transform_name ;; ++ -program-transform-name=* | --program-transform-name=* \ ++ | --program-transform-nam=* | --program-transform-na=* \ ++ | --program-transform-n=* | --program-transform-=* \ ++ | --program-transform=* | --program-transfor=* \ ++ | --program-transfo=* | --program-transf=* \ ++ | --program-trans=* | --program-tran=* \ ++ | --progr-tra=* | --program-tr=* | --program-t=*) ++ program_transform_name=$ac_optarg ;; ++ ++ -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ++ ac_prev=pdfdir ;; ++ -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) ++ pdfdir=$ac_optarg ;; ++ ++ -psdir | --psdir | --psdi | --psd | --ps) ++ ac_prev=psdir ;; ++ -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) ++ psdir=$ac_optarg ;; ++ ++ -q | -quiet | --quiet | --quie | --qui | --qu | --q \ ++ | -silent | --silent | --silen | --sile | --sil) ++ silent=yes ;; ++ ++ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ++ ac_prev=sbindir ;; ++ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ ++ | --sbi=* | --sb=*) ++ sbindir=$ac_optarg ;; ++ ++ -sharedstatedir | --sharedstatedir | --sharedstatedi \ ++ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ ++ | --sharedst | --shareds | --shared | --share | --shar \ ++ | --sha | --sh) ++ ac_prev=sharedstatedir ;; ++ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ ++ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ ++ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ ++ | --sha=* | --sh=*) ++ sharedstatedir=$ac_optarg ;; ++ ++ -site | --site | --sit) ++ ac_prev=site ;; ++ -site=* | --site=* | --sit=*) ++ site=$ac_optarg ;; ++ ++ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ++ ac_prev=srcdir ;; ++ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) ++ srcdir=$ac_optarg ;; ++ ++ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ ++ | --syscon | --sysco | --sysc | --sys | --sy) ++ ac_prev=sysconfdir ;; ++ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ ++ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) ++ sysconfdir=$ac_optarg ;; ++ ++ -target | --target | --targe | --targ | --tar | --ta | --t) ++ ac_prev=target_alias ;; ++ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) ++ target_alias=$ac_optarg ;; ++ ++ -v | -verbose | --verbose | --verbos | --verbo | --verb) ++ verbose=yes ;; ++ ++ -version | --version | --versio | --versi | --vers | -V) ++ ac_init_version=: ;; ++ ++ -with-* | --with-*) ++ ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` ++ # Reject names that are not valid shell variable names. ++ expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && ++ { echo "$as_me: error: invalid package name: $ac_package" >&2 ++ { (exit 1); exit 1; }; } ++ ac_package=`echo $ac_package | sed 's/[-.]/_/g'` ++ eval with_$ac_package=\$ac_optarg ;; ++ ++ -without-* | --without-*) ++ ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` ++ # Reject names that are not valid shell variable names. ++ expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && ++ { echo "$as_me: error: invalid package name: $ac_package" >&2 ++ { (exit 1); exit 1; }; } ++ ac_package=`echo $ac_package | sed 's/[-.]/_/g'` ++ eval with_$ac_package=no ;; ++ ++ --x) ++ # Obsolete; use --with-x. ++ with_x=yes ;; ++ ++ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ ++ | --x-incl | --x-inc | --x-in | --x-i) ++ ac_prev=x_includes ;; ++ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ ++ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) ++ x_includes=$ac_optarg ;; ++ ++ -x-libraries | --x-libraries | --x-librarie | --x-librari \ ++ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ++ ac_prev=x_libraries ;; ++ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ ++ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) ++ x_libraries=$ac_optarg ;; ++ ++ -*) { echo "$as_me: error: unrecognized option: $ac_option ++Try \`$0 --help' for more information." >&2 ++ { (exit 1); exit 1; }; } ++ ;; ++ ++ *=*) ++ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` ++ # Reject names that are not valid shell variable names. ++ expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && ++ { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 ++ { (exit 1); exit 1; }; } ++ eval $ac_envvar=\$ac_optarg ++ export $ac_envvar ;; ++ ++ *) ++ # FIXME: should be removed in autoconf 3.0. ++ echo "$as_me: WARNING: you should use --build, --host, --target" >&2 ++ expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && ++ echo "$as_me: WARNING: invalid host type: $ac_option" >&2 ++ : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ++ ;; ++ ++ esac ++done ++ ++if test -n "$ac_prev"; then ++ ac_option=--`echo $ac_prev | sed 's/_/-/g'` ++ { echo "$as_me: error: missing argument to $ac_option" >&2 ++ { (exit 1); exit 1; }; } ++fi ++ ++# Be sure to have absolute directory names. ++for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ ++ datadir sysconfdir sharedstatedir localstatedir includedir \ ++ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ ++ libdir localedir mandir ++do ++ eval ac_val=\$$ac_var ++ case $ac_val in ++ [\\/$]* | ?:[\\/]* ) continue;; ++ NONE | '' ) case $ac_var in *prefix ) continue;; esac;; ++ esac ++ { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 ++ { (exit 1); exit 1; }; } ++done ++ ++# There might be people who depend on the old broken behavior: `$host' ++# used to hold the argument of --host etc. ++# FIXME: To remove some day. ++build=$build_alias ++host=$host_alias ++target=$target_alias ++ ++# FIXME: To remove some day. ++if test "x$host_alias" != x; then ++ if test "x$build_alias" = x; then ++ cross_compiling=maybe ++ echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. ++ If a cross compiler is detected then cross compile mode will be used." >&2 ++ elif test "x$build_alias" != "x$host_alias"; then ++ cross_compiling=yes ++ fi ++fi ++ ++ac_tool_prefix= ++test -n "$host_alias" && ac_tool_prefix=$host_alias- ++ ++test "$silent" = yes && exec 6>/dev/null ++ ++ ++ac_pwd=`pwd` && test -n "$ac_pwd" && ++ac_ls_di=`ls -di .` && ++ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || ++ { echo "$as_me: error: Working directory cannot be determined" >&2 ++ { (exit 1); exit 1; }; } ++test "X$ac_ls_di" = "X$ac_pwd_ls_di" || ++ { echo "$as_me: error: pwd does not report name of working directory" >&2 ++ { (exit 1); exit 1; }; } ++ ++ ++# Find the source files, if location was not specified. ++if test -z "$srcdir"; then ++ ac_srcdir_defaulted=yes ++ # Try the directory containing this script, then the parent directory. ++ ac_confdir=`$as_dirname -- "$0" || ++$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$0" : 'X\(//\)[^/]' \| \ ++ X"$0" : 'X\(//\)$' \| \ ++ X"$0" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$0" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ srcdir=$ac_confdir ++ if test ! -r "$srcdir/$ac_unique_file"; then ++ srcdir=.. ++ fi ++else ++ ac_srcdir_defaulted=no ++fi ++if test ! -r "$srcdir/$ac_unique_file"; then ++ test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." ++ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 ++ { (exit 1); exit 1; }; } ++fi ++ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ++ac_abs_confdir=`( ++ cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 ++ { (exit 1); exit 1; }; } ++ pwd)` ++# When building in place, set srcdir=. ++if test "$ac_abs_confdir" = "$ac_pwd"; then ++ srcdir=. ++fi ++# Remove unnecessary trailing slashes from srcdir. ++# Double slashes in file names in object file debugging info ++# mess up M-x gdb in Emacs. ++case $srcdir in ++*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; ++esac ++for ac_var in $ac_precious_vars; do ++ eval ac_env_${ac_var}_set=\${${ac_var}+set} ++ eval ac_env_${ac_var}_value=\$${ac_var} ++ eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} ++ eval ac_cv_env_${ac_var}_value=\$${ac_var} ++done ++ ++# ++# Report the --help message. ++# ++if test "$ac_init_help" = "long"; then ++ # Omit some internal or obsolete options to make the list less imposing. ++ # This message is too long to be a string in the A/UX 3.1 sh. ++ cat <<_ACEOF ++\`configure' configures Open MPI 1.3 to adapt to many kinds of systems. ++ ++Usage: $0 [OPTION]... [VAR=VALUE]... ++ ++To assign environment variables (e.g., CC, CFLAGS...), specify them as ++VAR=VALUE. See below for descriptions of some of the useful variables. ++ ++Defaults for the options are specified in brackets. ++ ++Configuration: ++ -h, --help display this help and exit ++ --help=short display options specific to this package ++ --help=recursive display the short help of all the included packages ++ -V, --version display version information and exit ++ -q, --quiet, --silent do not print \`checking...' messages ++ --cache-file=FILE cache test results in FILE [disabled] ++ -C, --config-cache alias for \`--cache-file=config.cache' ++ -n, --no-create do not create output files ++ --srcdir=DIR find the sources in DIR [configure dir or \`..'] ++ ++Installation directories: ++ --prefix=PREFIX install architecture-independent files in PREFIX ++ [$ac_default_prefix] ++ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX ++ [PREFIX] ++ ++By default, \`make install' will install all the files in ++\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify ++an installation prefix other than \`$ac_default_prefix' using \`--prefix', ++for instance \`--prefix=\$HOME'. ++ ++For better control, use the options below. ++ ++Fine tuning of the installation directories: ++ --bindir=DIR user executables [EPREFIX/bin] ++ --sbindir=DIR system admin executables [EPREFIX/sbin] ++ --libexecdir=DIR program executables [EPREFIX/libexec] ++ --sysconfdir=DIR read-only single-machine data [PREFIX/etc] ++ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] ++ --localstatedir=DIR modifiable single-machine data [PREFIX/var] ++ --libdir=DIR object code libraries [EPREFIX/lib] ++ --includedir=DIR C header files [PREFIX/include] ++ --oldincludedir=DIR C header files for non-gcc [/usr/include] ++ --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] ++ --datadir=DIR read-only architecture-independent data [DATAROOTDIR] ++ --infodir=DIR info documentation [DATAROOTDIR/info] ++ --localedir=DIR locale-dependent data [DATAROOTDIR/locale] ++ --mandir=DIR man documentation [DATAROOTDIR/man] ++ --docdir=DIR documentation root @<:@DATAROOTDIR/doc/openmpi@:>@ ++ --htmldir=DIR html documentation [DOCDIR] ++ --dvidir=DIR dvi documentation [DOCDIR] ++ --pdfdir=DIR pdf documentation [DOCDIR] ++ --psdir=DIR ps documentation [DOCDIR] ++_ACEOF ++ ++ cat <<\_ACEOF ++ ++Program names: ++ --program-prefix=PREFIX prepend PREFIX to installed program names ++ --program-suffix=SUFFIX append SUFFIX to installed program names ++ --program-transform-name=PROGRAM run sed PROGRAM on installed program names ++ ++System types: ++ --build=BUILD configure for building on BUILD [guessed] ++ --host=HOST cross-compile to build programs to run on HOST [BUILD] ++_ACEOF ++fi ++ ++if test -n "$ac_init_help"; then ++ case $ac_init_help in ++ short | recursive ) echo "Configuration of Open MPI 1.3:";; ++ esac ++ cat <<\_ACEOF ++ ++Optional Features: ++ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) ++ --enable-FEATURE[=ARG] include FEATURE [ARG=yes] ++ --enable-dist guarantee that that the "dist" make target will be ++ functional, although may not guarantee that any ++ other make target will be functional. ++ --enable-coverage enable code coverage files to be generated ++ --enable-branch-probabilities ++ enable profile arcs and branch probability ++ optimization ++ --enable-mem-debug enable memory debugging (debugging only) (default: ++ disabled) ++ --enable-mem-profile enable memory profiling (debugging only) (default: ++ disabled) ++ --enable-picky enable developer-level compiler pickyness when ++ building Open MPI (default: disabled) ++ --enable-debug enable developer-level debugging code (not for ++ general MPI users!) (default: disabled) ++ --disable-debug-symbols Disable adding compiler flags to enable debugging ++ symbols if --enable-debug is specified. For ++ non-debugging builds, this flag has no effect. ++ --enable-sparse-groups enable sparse process groups (default: not enabled) ++ --enable-mpi-f77 enable f77 MPI bindings (default: enabled) ++ --enable-mpi-f90 enable f90 MPI bindings (default: enabled) ++ --enable-mpi-profile enable MPI profiling (default: enabled) ++ --enable-mpi-cxx enable C++ MPI bindings (default: enabled) ++ --enable-mpi-cxx-seek enable support for MPI::SEEK_SET, MPI::SEEK_END, and ++ MPI::SEEK_POS in C++ bindings (default: enabled) ++ --enable-weak-symbols use weak symbols, if available (default: enabled) ++ --enable-pretty-print-stacktrace ++ Pretty print stacktrace on process signal (default: ++ enabled) ++ --enable-peruse Support PERUSE interface (default: disabled) ++ --enable-pty-support Enable/disable PTY support for STDIO forwarding. ++ (default: enabled) ++ --enable-dlopen Whether build should attempt to use dlopen (or ++ similar) to dynamically load components. Disabling ++ dlopen implies --disable-mca-dso. (default: enabled) ++ --enable-heterogeneous Enable features required for heterogeneous platform ++ support (default: disabled) ++ --enable-trace Enable internal tracing of OMPI/ORTE/OPAL calls -- ++ used only for developer debugging, not tracing of ++ MPI applications (default: disabled) ++ --enable-binaries Build and install binaries required for Open MPI, ++ such as the wrapper compilers. Useful for multi-lib ++ installations. (default: enabled) ++ --enable-script-wrapper-compilers ++ Use less featured script-based wrapper compilers ++ instead of the standard C-based wrapper compilers. ++ This option ignores the --disable-binaries option ++ and is mainly useful in cross-compile environments ++ --enable-per-user-config-files ++ Disable per-user configuration files, to save disk ++ accesses during job strart-up. This is likely ++ desirable for large jobs. Note that this can also be ++ acheived by environment variables at run-time. ++ (default: enabled) ++ --disable-ipv6 Disable IPv6 support (default: enabled, but only if ++ the underlying system supports it) ++ --enable-orterun-prefix-by-default ++ Make "orterun ..." behave exactly the same as ++ "orterun --prefix \$prefix" (where \$prefix is the ++ value given to --prefix in configure) ++ --enable-mpirun-prefix-by-default ++ Synonym for --enable-orterun-prefix-by-default ++ --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@ ++ --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=no@:>@ ++ --disable-dependency-tracking speeds up one-time build ++ --enable-dependency-tracking do not reject slow dependency extractors ++ --enable-cxx-exceptions enable support for C++ exceptions (default: ++ disabled) ++ --enable-smp-locks enable smp locks in atomic ops. Do not disable if ++ code will ever run in SMP or multi-threaded ++ environment. (default: enabled) ++ --enable-mpi-threads Enable threads for MPI applications (default: ++ disabled) ++ --enable-progress-threads ++ Enable threads asynchronous communication progress ++ (default: disabled) ++ --disable-ft-thread Disable fault tolerance thread running inside all ++ processes. Requires progress and/or MPI threads ++ (default: enabled) ++ --enable-mca-no-build=LIST ++ Comma-separated list of - pairs ++ that will not be built. Example: ++ "--enable-mca-no-build=maffinity,btl-portals" will ++ disable building all maffinity components and the ++ "portals" btl components. ++ --enable-mca-dso=LIST Comma-separated list of types and/or type-component ++ pairs that will be built as run-time loadable ++ components (as opposed to statically linked in), if ++ supported on this platform. The default is to build ++ all components as DSOs. ++ --enable-mca-static=LIST ++ Comma-separated list of types and/or type-component ++ pairs that will be built statically linked into the ++ library. The default (if DSOs are supported) is to ++ build all components as DSOs. Enabling a component ++ as static disables it building as a DSO. ++ --enable-mca-direct=LIST ++ Comma-separated list of type-component pairs that ++ will be hard coded as the one component to use for a ++ given component type, saving the (small) overhead of ++ the component architecture. LIST must not be empty ++ and implies given component pairs are build as ++ static components. ++ --enable-memchecker Enable memory and buffer checks. Note that disabling ++ will *also* add "memchecker" to the ++ --enable-mca-no-build list (default: disabled) ++ --enable-ptmalloc2-internal ++ Build ptmalloc2 memory manager into libopen-pal, ++ instead of as separate library. Only has meaning if ++ ptmalloc2 memory component exists ++ --enable-emulate Emulate __NR_sched_setaffinity and ++ __NR_sched_getaffinity, to allow building on ++ non-Linux systems (for testing) ++ --disable-executables Using --disable-executables disables building and ++ installing the PLPA executables ++ --enable-included-mode Using --enable-included-mode puts the PLPA into ++ "included" mode. The default is ++ --disable-included-mode, meaning that the PLPA is in ++ "standalone" mode. ++ --enable-debug Using --enable-debug enables various ++ maintainer-level debugging controls. This option is ++ not recomended for end users. ++ --enable-openib-connectx-xrc ++ Enable ConnectX XRC support. If you do not have ++ InfiniBand ConnectX adapters, you may disable the ++ ConnectX XRC support. If you do not know which ++ InfiniBand adapter is installed on your cluster, ++ leave this option enabled (default: enabled) ++ --enable-openib-ibcm Enable Open Fabrics IBCM support in openib BTL ++ (default: disabled) ++ --enable-openib-rdmacm Enable Open Fabrics RDMACM support in openib BTL ++ (default: enabled) ++ --disable-mpi-io Disable built-in support for MPI-2 I/O, likely ++ because an externally-provided MPI I/O package will ++ be used. Default is to use the internal component ++ system and its specially modified version of ROMIO ++ --disable-io-romio Disable the ROMIO MPI-IO component ++ --enable-visibility enable visibility feature of certain ++ compilers/linkers (default: enabled) ++ --enable-contrib-no-build=LIST ++ Comma-separated list of contributed package NAMEs ++ that will not be built. Example: ++ "--enable-contrib-no-build=libnbc,vt" will disable ++ building both the "libnbc" and "vt" contributed ++ software packages. ++ --enable-fast-install@<:@=PKGS@:>@ ++ optimize for fast installation @<:@default=yes@:>@ ++ --disable-libtool-lock avoid locking (might break parallel builds) ++ ++Optional Packages: ++ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] ++ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) ++ --with-platform=FILE Load options for build from FILE. Options on the ++ command line not in FILE are used. Options on the ++ command line and in FILE are replaced by what is in ++ FILE. ++ --with-mpi-f90-size=SIZE ++ specify the types of functions in the Fortran 90 MPI ++ module, where SIZE is one of: trivial (MPI-2 ++ F90-specific functions only), small (trivial + all ++ MPI functions without choice buffers), medium (small ++ + all MPI functions with one choice buffer), large ++ (medium + all MPI functions with 2 choice buffers, ++ but only when both buffers are the same type). ++ Default SIZE is "small". ++ --with-mpi-param-check(=VALUE) ++ behavior of MPI function parameter checking. Valid ++ values are: always, never, runtime. If ++ --with-mpi-param-check is specified with no VALUE ++ argument, it is equivalent to a VALUE of "always"; ++ --without-mpi-param-check is equivalent to "never" ++ (default: runtime). ++ --with-devel-headers normal MPI users/applications do not need this ++ (mpi.h and mpif.h are ALWAYS installed). Developer ++ headers are only necessary for MCA module authors ++ (default: disabled). ++ --with-f90-max-array-dim= ++ The maximum array dimension supported in the F90 MPI ++ bindings (default: $OMPI_FORTRAN_MAX_ARRAY_RANK). ++ --without-rte-support Build without RTE support for systems that do not ++ require it (default: full RTE support built) ++ --with-cross=FILE Specify configure values that can not be determined ++ in a cross-compilation environment. See the Open MPI ++ FAQ. ++ --with-ft=TYPE Specify the type of fault tolerance to enable. ++ Options: LAM (LAM/MPI-like), cr (Checkpoint/Restart) ++ (default: disabled) ++ --with-package-string=STRING ++ Use a branding string throughout Open MPI ++ --with-ident-string=STRING ++ Embed an ident string into Open MPI object files ++ --with-wrapper-cflags Extra flags to add to CFLAGS when using mpicc ++ --with-wrapper-cxxflags Extra flags to add to CXXFLAGS when using ++ mpiCC/mpic++ ++ --with-wrapper-fflags Extra flags to add to FFLAGS when using mpif77 ++ --with-wrapper-fcflags Extra flags to add to FCFLAGS when using mpif90 ++ --with-wrapper-ldflags Extra flags to add to LDFLAGS when using wrapper ++ compilers ++ --with-wrapper-libs Extra flags to add to LIBS when using wrapper ++ compilers ++ --with-exflags Specify flags necessary to enable C++ exceptions ++ --with-broken-qsort Build with FreeBSD qsort instead of native qsort ++ (default: no) ++ --with-threads Set thread type (solaris / posix) ++ --with-cs-fs Destination FS is case sensitive (default: set to ++ value of the build FS's case sensitivity) ++ --with-blcr(=DIR) Path to BLCR Installation ++ --with-blcr-libdir=DIR Search for BLCR libraries in DIR ++ --with-libnuma Directory where the libnuma software is installed ++ --with-valgrind(=DIR) Directory where the valgrind software is installed ++ --with-memory-manager=TYPE ++ Use TYPE for intercepting memory management calls to ++ control memory pinning. ++ --with-plpa-symbol-prefix=STRING ++ STRING can be any valid C symbol name. It will be ++ prefixed to all public PLPA symbols. Default: ++ "plpa_" ++ --with-timer=TYPE Build high resolution timer component TYPE ++ --with-portals=DIR Specify the installation directory of PORTALS ++ --with-portals-libs=LIBS ++ Libraries to link with for portals ++ --with-alps Build ALPS scheduler component (default: no) ++ --with-lsf(=DIR) Build LSF support ++ --with-lsf-libdir=DIR Search for LSF libraries in DIR ++ --with-slurm Build SLURM scheduler component (default: yes) ++ --with-tm(=DIR) Directory where the tm software is installed ++ --with-xgrid Build support for the Apple Xgrid batch system ++ (default: yes) ++ --with-sge Build SGE or Grid Engine support (default: no) ++ --with-loadleveler(=DIR) ++ Directory where the loadleveler software is ++ installed ++ --with-elan(=DIR) Build Elan (QsNet2) support, searching for libraries ++ in DIR ++ --with-elan-libdir=DIR Search for Elan (QsNet2) libraries in DIR ++ --with-gm(=DIR) Build GM (Myrinet) support, searching for libraries ++ in DIR ++ --with-gm-libdir=DIR Search for GM (Myrinet) libraries in DIR ++ --with-mx(=DIR) Build MX (Myrinet Express) support, searching for ++ libraries in DIR ++ --with-mx-libdir=DIR Search for MX (Myrinet Express) libraries in DIR ++ --with-openib(=DIR) Build OpenFabrics support, searching for libraries ++ in DIR ++ --with-openib-libdir=DIR ++ Search for OpenFabrics libraries in DIR ++ --with-portals(=DIR) Build Portals support, searching for installation in ++ DIR ++ --with-portals-config configuration to use for Portals support. One of ++ "utcp", "xt3", "xt3-modex". (default: utcp) ++ --with-portals-libs=LIBS ++ Libraries to link with for portals ++ --with-udapl(=DIR) Build uDAPL support, searching for libraries in DIR ++ --with-udapl-libdir=DIR Search for uDAPL libraries in DIR ++ --with-io-romio-flags=FLAGS ++ Pass FLAGS to the ROMIO distribution configuration ++ script ++ --with-psm(=DIR) Build PSM (QLogic InfiniPath PSM) support, searching ++ for libraries in DIR ++ --with-psm-libdir=DIR Search for PSM (QLogic InfiniPath PSM) libraries in ++ DIR ++ --with-contrib-vt-flags=FLAGS ++ Pass FLAGS to the VampirTrace distribution ++ configuration script ++ --with-event-rtsig compile with support for real time signals ++ (experimental) ++ --with-pic try to use only PIC/non-PIC objects @<:@default=use ++ both@:>@ ++ --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ ++ ++Some influential environment variables: ++ CC C compiler command ++ CFLAGS C compiler flags ++ LDFLAGS linker flags, e.g. -L if you have libraries in a ++ nonstandard directory ++ LIBS libraries to pass to the linker, e.g. -l ++ CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if ++ you have headers in a nonstandard directory ++ CPP C preprocessor ++ CXX C++ compiler command ++ CXXFLAGS C++ compiler flags ++ CXXCPP C++ preprocessor ++ CCAS assembler compiler command (defaults to CC) ++ CCASFLAGS assembler compiler flags (defaults to CFLAGS) ++ F77 Fortran 77 compiler command ++ FFLAGS Fortran 77 compiler flags ++ FC Fortran compiler command ++ FCFLAGS Fortran compiler flags ++ YACC The `Yet Another C Compiler' implementation to use. Defaults to ++ the first program found out of: `bison -y', `byacc', `yacc'. ++ YFLAGS The list of arguments that will be passed by default to $YACC. ++ This script will default YFLAGS to the empty string to avoid a ++ default value of `-d' given by some make applications. ++ OBJC Objective C compiler command ++ OBJCFLAGS Objective C compiler flags ++ ++Use these variables to override the choices made by `configure' or to help ++it to find libraries and programs with nonstandard names/locations. ++ ++Report bugs to . ++_ACEOF ++ac_status=$? ++fi ++ ++if test "$ac_init_help" = "recursive"; then ++ # If there are subdirs, report their specific --help. ++ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue ++ test -d "$ac_dir" || continue ++ ac_builddir=. ++ ++case "$ac_dir" in ++.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; ++*) ++ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` ++ # A ".." for each directory in $ac_dir_suffix. ++ ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` ++ case $ac_top_builddir_sub in ++ "") ac_top_builddir_sub=. ac_top_build_prefix= ;; ++ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; ++ esac ;; ++esac ++ac_abs_top_builddir=$ac_pwd ++ac_abs_builddir=$ac_pwd$ac_dir_suffix ++# for backward compatibility: ++ac_top_builddir=$ac_top_build_prefix ++ ++case $srcdir in ++ .) # We are building in place. ++ ac_srcdir=. ++ ac_top_srcdir=$ac_top_builddir_sub ++ ac_abs_top_srcdir=$ac_pwd ;; ++ [\\/]* | ?:[\\/]* ) # Absolute name. ++ ac_srcdir=$srcdir$ac_dir_suffix; ++ ac_top_srcdir=$srcdir ++ ac_abs_top_srcdir=$srcdir ;; ++ *) # Relative name. ++ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ++ ac_top_srcdir=$ac_top_build_prefix$srcdir ++ ac_abs_top_srcdir=$ac_pwd/$srcdir ;; ++esac ++ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix ++ ++ cd "$ac_dir" || { ac_status=$?; continue; } ++ # Check for guested configure. ++ if test -f "$ac_srcdir/configure.gnu"; then ++ echo && ++ $SHELL "$ac_srcdir/configure.gnu" --help=recursive ++ elif test -f "$ac_srcdir/configure"; then ++ echo && ++ $SHELL "$ac_srcdir/configure" --help=recursive ++ else ++ echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 ++ fi || ac_status=$? ++ cd "$ac_pwd" || { ac_status=$?; break; } ++ done ++fi ++ ++test -n "$ac_init_help" && exit $ac_status ++if $ac_init_version; then ++ cat <<\_ACEOF ++Open MPI configure 1.3 ++generated by GNU Autoconf 2.61 ++ ++Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, ++2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. ++This configure script is free software; the Free Software Foundation ++gives unlimited permission to copy, distribute and modify it. ++_ACEOF ++ exit ++fi ++cat >config.log <<_ACEOF ++This file contains any messages produced by compilers while ++running configure, to aid debugging if configure makes a mistake. ++ ++It was created by Open MPI $as_me 1.3, which was ++generated by GNU Autoconf 2.61. Invocation command line was ++ ++ $ $0 $@ ++ ++_ACEOF ++exec 5>>config.log ++{ ++cat <<_ASUNAME ++@%:@@%:@ --------- @%:@@%:@ ++@%:@@%:@ Platform. @%:@@%:@ ++@%:@@%:@ --------- @%:@@%:@ ++ ++hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` ++uname -m = `(uname -m) 2>/dev/null || echo unknown` ++uname -r = `(uname -r) 2>/dev/null || echo unknown` ++uname -s = `(uname -s) 2>/dev/null || echo unknown` ++uname -v = `(uname -v) 2>/dev/null || echo unknown` ++ ++/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` ++/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` ++ ++/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` ++/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` ++/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` ++/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` ++/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` ++/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` ++/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` ++ ++_ASUNAME ++ ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ echo "PATH: $as_dir" ++done ++IFS=$as_save_IFS ++ ++} >&5 ++ ++cat >&5 <<_ACEOF ++ ++ ++@%:@@%:@ ----------- @%:@@%:@ ++@%:@@%:@ Core tests. @%:@@%:@ ++@%:@@%:@ ----------- @%:@@%:@ ++ ++_ACEOF ++ ++ ++# Keep a trace of the command line. ++# Strip out --no-create and --no-recursion so they do not pile up. ++# Strip out --silent because we don't want to record it for future runs. ++# Also quote any args containing shell meta-characters. ++# Make two passes to allow for proper duplicate-argument suppression. ++ac_configure_args= ++ac_configure_args0= ++ac_configure_args1= ++ac_must_keep_next=false ++for ac_pass in 1 2 ++do ++ for ac_arg ++ do ++ case $ac_arg in ++ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; ++ -q | -quiet | --quiet | --quie | --qui | --qu | --q \ ++ | -silent | --silent | --silen | --sile | --sil) ++ continue ;; ++ *\'*) ++ ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; ++ esac ++ case $ac_pass in ++ 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; ++ 2) ++ ac_configure_args1="$ac_configure_args1 '$ac_arg'" ++ if test $ac_must_keep_next = true; then ++ ac_must_keep_next=false # Got value, back to normal. ++ else ++ case $ac_arg in ++ *=* | --config-cache | -C | -disable-* | --disable-* \ ++ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ ++ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ ++ | -with-* | --with-* | -without-* | --without-* | --x) ++ case "$ac_configure_args0 " in ++ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; ++ esac ++ ;; ++ -* ) ac_must_keep_next=true ;; ++ esac ++ fi ++ ac_configure_args="$ac_configure_args '$ac_arg'" ++ ;; ++ esac ++ done ++done ++$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } ++$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } ++ ++# When interrupted or exit'd, cleanup temporary files, and complete ++# config.log. We remove comments because anyway the quotes in there ++# would cause problems or look ugly. ++# WARNING: Use '\'' to represent an apostrophe within the trap. ++# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. ++trap 'exit_status=$? ++ # Save into config.log some information that might help in debugging. ++ { ++ echo ++ ++ cat <<\_ASBOX ++@%:@@%:@ ---------------- @%:@@%:@ ++@%:@@%:@ Cache variables. @%:@@%:@ ++@%:@@%:@ ---------------- @%:@@%:@ ++_ASBOX ++ echo ++ # The following way of writing the cache mishandles newlines in values, ++( ++ for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do ++ eval ac_val=\$$ac_var ++ case $ac_val in #( ++ *${as_nl}*) ++ case $ac_var in #( ++ *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 ++echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; ++ esac ++ case $ac_var in #( ++ _ | IFS | as_nl) ;; #( ++ *) $as_unset $ac_var ;; ++ esac ;; ++ esac ++ done ++ (set) 2>&1 | ++ case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( ++ *${as_nl}ac_space=\ *) ++ sed -n \ ++ "s/'\''/'\''\\\\'\'''\''/g; ++ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ++ ;; #( ++ *) ++ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ++ ;; ++ esac | ++ sort ++) ++ echo ++ ++ cat <<\_ASBOX ++@%:@@%:@ ----------------- @%:@@%:@ ++@%:@@%:@ Output variables. @%:@@%:@ ++@%:@@%:@ ----------------- @%:@@%:@ ++_ASBOX ++ echo ++ for ac_var in $ac_subst_vars ++ do ++ eval ac_val=\$$ac_var ++ case $ac_val in ++ *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; ++ esac ++ echo "$ac_var='\''$ac_val'\''" ++ done | sort ++ echo ++ ++ if test -n "$ac_subst_files"; then ++ cat <<\_ASBOX ++@%:@@%:@ ------------------- @%:@@%:@ ++@%:@@%:@ File substitutions. @%:@@%:@ ++@%:@@%:@ ------------------- @%:@@%:@ ++_ASBOX ++ echo ++ for ac_var in $ac_subst_files ++ do ++ eval ac_val=\$$ac_var ++ case $ac_val in ++ *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; ++ esac ++ echo "$ac_var='\''$ac_val'\''" ++ done | sort ++ echo ++ fi ++ ++ if test -s confdefs.h; then ++ cat <<\_ASBOX ++@%:@@%:@ ----------- @%:@@%:@ ++@%:@@%:@ confdefs.h. @%:@@%:@ ++@%:@@%:@ ----------- @%:@@%:@ ++_ASBOX ++ echo ++ cat confdefs.h ++ echo ++ fi ++ test "$ac_signal" != 0 && ++ echo "$as_me: caught signal $ac_signal" ++ echo "$as_me: exit $exit_status" ++ } >&5 ++ rm -f core *.core core.conftest.* && ++ rm -f -r conftest* confdefs* conf$$* $ac_clean_files && ++ exit $exit_status ++' 0 ++for ac_signal in 1 2 13 15; do ++ trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal ++done ++ac_signal=0 ++ ++# confdefs.h avoids OS command line length limits that DEFS can exceed. ++rm -f -r conftest* confdefs.h ++ ++# Predefined preprocessor variables. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define PACKAGE_NAME "$PACKAGE_NAME" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define PACKAGE_STRING "$PACKAGE_STRING" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" ++_ACEOF ++ ++ ++# Let the site file select an alternate cache file if it wants to. ++# Prefer explicitly selected file to automatically selected ones. ++if test -n "$CONFIG_SITE"; then ++ set x "$CONFIG_SITE" ++elif test "x$prefix" != xNONE; then ++ set x "$prefix/share/config.site" "$prefix/etc/config.site" ++else ++ set x "$ac_default_prefix/share/config.site" \ ++ "$ac_default_prefix/etc/config.site" ++fi ++shift ++for ac_site_file ++do ++ if test -r "$ac_site_file"; then ++ { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 ++echo "$as_me: loading site script $ac_site_file" >&6;} ++ sed 's/^/| /' "$ac_site_file" >&5 ++ . "$ac_site_file" ++ fi ++done ++ ++if test -r "$cache_file"; then ++ # Some versions of bash will fail to source /dev/null (special ++ # files actually), so we avoid doing that. ++ if test -f "$cache_file"; then ++ { echo "$as_me:$LINENO: loading cache $cache_file" >&5 ++echo "$as_me: loading cache $cache_file" >&6;} ++ case $cache_file in ++ [\\/]* | ?:[\\/]* ) . "$cache_file";; ++ *) . "./$cache_file";; ++ esac ++ fi ++else ++ { echo "$as_me:$LINENO: creating cache $cache_file" >&5 ++echo "$as_me: creating cache $cache_file" >&6;} ++ >$cache_file ++fi ++ ++# Check that the precious variables saved in the cache have kept the same ++# value. ++ac_cache_corrupted=false ++for ac_var in $ac_precious_vars; do ++ eval ac_old_set=\$ac_cv_env_${ac_var}_set ++ eval ac_new_set=\$ac_env_${ac_var}_set ++ eval ac_old_val=\$ac_cv_env_${ac_var}_value ++ eval ac_new_val=\$ac_env_${ac_var}_value ++ case $ac_old_set,$ac_new_set in ++ set,) ++ { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 ++echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ++ ac_cache_corrupted=: ;; ++ ,set) ++ { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 ++echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ++ ac_cache_corrupted=: ;; ++ ,);; ++ *) ++ if test "x$ac_old_val" != "x$ac_new_val"; then ++ { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 ++echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ++ { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 ++echo "$as_me: former value: $ac_old_val" >&2;} ++ { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 ++echo "$as_me: current value: $ac_new_val" >&2;} ++ ac_cache_corrupted=: ++ fi;; ++ esac ++ # Pass precious variables to config.status. ++ if test "$ac_new_set" = set; then ++ case $ac_new_val in ++ *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; ++ *) ac_arg=$ac_var=$ac_new_val ;; ++ esac ++ case " $ac_configure_args " in ++ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. ++ *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; ++ esac ++ fi ++done ++if $ac_cache_corrupted; then ++ { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 ++echo "$as_me: error: changes in the environment can compromise the build" >&2;} ++ { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 ++echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ ++ac_aux_dir= ++for ac_dir in config "$srcdir"/config; do ++ if test -f "$ac_dir/install-sh"; then ++ ac_aux_dir=$ac_dir ++ ac_install_sh="$ac_aux_dir/install-sh -c" ++ break ++ elif test -f "$ac_dir/install.sh"; then ++ ac_aux_dir=$ac_dir ++ ac_install_sh="$ac_aux_dir/install.sh -c" ++ break ++ elif test -f "$ac_dir/shtool"; then ++ ac_aux_dir=$ac_dir ++ ac_install_sh="$ac_aux_dir/shtool install -c" ++ break ++ fi ++done ++if test -z "$ac_aux_dir"; then ++ { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 ++echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++# These three variables are undocumented and unsupported, ++# and are intended to be withdrawn in a future Autoconf release. ++# They can cause serious problems if a builder's source tree is in a directory ++# whose full name contains unusual characters. ++ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ++ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ++ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. ++ ++ ++ ++ ++# Get our platform support file. This has to be done very, very early ++# because it twiddles random bits of autoconf ++ ++ ++# Check whether --with-platform was given. ++if test "${with_platform+set}" = set; then ++ withval=$with_platform; ++fi ++ ++ if test "$with_platform" = "yes" ; then ++ { { echo "$as_me:$LINENO: error: --with-platform argument must include FILE option" >&5 ++echo "$as_me: error: --with-platform argument must include FILE option" >&2;} ++ { (exit 1); exit 1; }; } ++ elif test "$with_platform" = "no" ; then ++ { { echo "$as_me:$LINENO: error: --without-platform is not a valid argument" >&5 ++echo "$as_me: error: --without-platform is not a valid argument" >&2;} ++ { (exit 1); exit 1; }; } ++ elif test "$with_platform" != "" ; then ++ # if no path part, check in contrib/platform ++ if test "`basename $with_platform`" = "$with_platform" ; then ++ if test -r "${srcdir}/contrib/platform/$with_platform" ; then ++ with_platform="${srcdir}/contrib/platform/$with_platform" ++ fi ++ fi ++ ++ # make sure file exists ++ if test ! -r "$with_platform" ; then ++ { { echo "$as_me:$LINENO: error: platform file $with_platform not found" >&5 ++echo "$as_me: error: platform file $with_platform not found" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # eval into environment ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: Loading environment file $with_platform, with contents below" >&5 ++else ++ echo Loading environment file $with_platform, with contents below >&5 ++fi ++ ++# 1 is the filename ++if test -n "$with_platform" -a -f "$with_platform"; then ++ cat $with_platform >&5 ++fi ++ . "$with_platform" ++ ++ # see if they left us a name ++ if test "$OMPI_PLATFORM_LOADED" != "" ; then ++ platform_loaded="$OMPI_PLATFORM_LOADED" ++ else ++ platform_loaded="$with_platform" ++ fi ++ echo "Loaded platform arguments for $platform_loaded" ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: Loaded platform arguments for $platform_loaded" >&5 ++else ++ echo Loaded platform arguments for $platform_loaded >&5 ++fi ++ ++ # look for default mca param file ++ ++ # setup by getting full pathname for the platform directories ++ platform_base="`dirname $with_platform`" ++ # get full pathname of where we are so we can return ++ platform_savedir="`pwd`" ++ # go to where the platform file is located ++ cd "$platform_base" ++ # get the full path to this location ++ platform_file_dir=`pwd` ++ # return to where we started ++ cd "$platform_savedir" ++ ++ # define an alternate default mca param filename ++ platform_alt_mca_file="`basename $platform_loaded`.conf" ++ ++ # look where platform file is located for platform.conf name ++ if test -r "${platform_file_dir}/${platform_alt_mca_file}" ; then ++ OPAL_DEFAULT_MCA_PARAM_CONF=$platform_file_dir/$platform_alt_mca_file ++ ++ OPAL_PARAM_FROM_PLATFORM="yes" ++ ++ # if not, see if a file is there with the default name ++ elif test -r "${platform_file_dir}/openmpi-mca-params.conf" ; then ++ OPAL_DEFAULT_MCA_PARAM_CONF=$platform_file_dir/openmpi-mca-params.conf ++ ++ OPAL_PARAM_FROM_PLATFORM="yes" ++ ++ # if not, then just use the default ++ else ++ OPAL_DEFAULT_MCA_PARAM_CONF=openmpi-mca-params.conf ++ ++ OPAL_PARAM_FROM_PLATFORM="no" ++ ++ fi ++ ++ else ++ OPAL_DEFAULT_MCA_PARAM_CONF=openmpi-mca-params.conf ++ ++ fi ++ ++ ++# ++# Init automake ++# ++am__api_version='1.10' ++ ++# Find a good install program. We prefer a C program (faster), ++# so one script is as good as another. But avoid the broken or ++# incompatible versions: ++# SysV /etc/install, /usr/sbin/install ++# SunOS /usr/etc/install ++# IRIX /sbin/install ++# AIX /bin/install ++# AmigaOS /C/install, which installs bootblocks on floppy discs ++# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag ++# AFS /usr/afsws/bin/install, which mishandles nonexistent args ++# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" ++# OS/2's system install, which has a completely different semantic ++# ./install, which can be erroneously created by make from ./install.sh. ++{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 ++echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } ++if test -z "$INSTALL"; then ++if test "${ac_cv_path_install+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ # Account for people who put trailing slashes in PATH elements. ++case $as_dir/ in ++ ./ | .// | /cC/* | \ ++ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ++ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ ++ /usr/ucb/* ) ;; ++ *) ++ # OSF1 and SCO ODT 3.0 have their own names for install. ++ # Don't use installbsd from OSF since it installs stuff as root ++ # by default. ++ for ac_prog in ginstall scoinst install; do ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then ++ if test $ac_prog = install && ++ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then ++ # AIX install. It has an incompatible calling convention. ++ : ++ elif test $ac_prog = install && ++ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then ++ # program-specific install script used by HP pwplus--don't use. ++ : ++ else ++ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" ++ break 3 ++ fi ++ fi ++ done ++ done ++ ;; ++esac ++done ++IFS=$as_save_IFS ++ ++ ++fi ++ if test "${ac_cv_path_install+set}" = set; then ++ INSTALL=$ac_cv_path_install ++ else ++ # As a last resort, use the slow shell script. Don't cache a ++ # value for INSTALL within a source directory, because that will ++ # break other packages using the cache if that directory is ++ # removed, or if the value is a relative name. ++ INSTALL=$ac_install_sh ++ fi ++fi ++{ echo "$as_me:$LINENO: result: $INSTALL" >&5 ++echo "${ECHO_T}$INSTALL" >&6; } ++ ++# Use test -z because SunOS4 sh mishandles braces in ${var-val}. ++# It thinks the first close brace ends the variable substitution. ++test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' ++ ++test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' ++ ++test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' ++ ++{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 ++echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } ++# Just in case ++sleep 1 ++echo timestamp > conftest.file ++# Do `set' in a subshell so we don't clobber the current shell's ++# arguments. Must try -L first in case configure is actually a ++# symlink; some systems play weird games with the mod time of symlinks ++# (eg FreeBSD returns the mod time of the symlink's containing ++# directory). ++if ( ++ set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` ++ if test "$*" = "X"; then ++ # -L didn't work. ++ set X `ls -t $srcdir/configure conftest.file` ++ fi ++ rm -f conftest.file ++ if test "$*" != "X $srcdir/configure conftest.file" \ ++ && test "$*" != "X conftest.file $srcdir/configure"; then ++ ++ # If neither matched, then we have a broken ls. This can happen ++ # if, for instance, CONFIG_SHELL is bash and it inherits a ++ # broken ls alias from the environment. This has actually ++ # happened. Such a system could not be considered "sane". ++ { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken ++alias in your environment" >&5 ++echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken ++alias in your environment" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ test "$2" = conftest.file ++ ) ++then ++ # Ok. ++ : ++else ++ { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! ++Check your system clock" >&5 ++echo "$as_me: error: newly created file is older than distributed files! ++Check your system clock" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++{ echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++test "$program_prefix" != NONE && ++ program_transform_name="s&^&$program_prefix&;$program_transform_name" ++# Use a double $ so make ignores it. ++test "$program_suffix" != NONE && ++ program_transform_name="s&\$&$program_suffix&;$program_transform_name" ++# Double any \ or $. echo might interpret backslashes. ++# By default was `s,x,x', remove it if useless. ++cat <<\_ACEOF >conftest.sed ++s/[\\$]/&&/g;s/;s,x,x,$// ++_ACEOF ++program_transform_name=`echo $program_transform_name | sed -f conftest.sed` ++rm -f conftest.sed ++ ++# expand $ac_aux_dir to an absolute path ++am_aux_dir=`cd $ac_aux_dir && pwd` ++ ++test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" ++# Use eval to expand $SHELL ++if eval "$MISSING --run true"; then ++ am_missing_run="$MISSING --run " ++else ++ am_missing_run= ++ { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 ++echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} ++fi ++ ++{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 ++echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } ++if test -z "$MKDIR_P"; then ++ if test "${ac_cv_path_mkdir+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_prog in mkdir gmkdir; do ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue ++ case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( ++ 'mkdir (GNU coreutils) '* | \ ++ 'mkdir (coreutils) '* | \ ++ 'mkdir (fileutils) '4.1*) ++ ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext ++ break 3;; ++ esac ++ done ++ done ++done ++IFS=$as_save_IFS ++ ++fi ++ ++ if test "${ac_cv_path_mkdir+set}" = set; then ++ MKDIR_P="$ac_cv_path_mkdir -p" ++ else ++ # As a last resort, use the slow shell script. Don't cache a ++ # value for MKDIR_P within a source directory, because that will ++ # break other packages using the cache if that directory is ++ # removed, or if the value is a relative name. ++ test -d ./--version && rmdir ./--version ++ MKDIR_P="$ac_install_sh -d" ++ fi ++fi ++{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 ++echo "${ECHO_T}$MKDIR_P" >&6; } ++ ++mkdir_p="$MKDIR_P" ++case $mkdir_p in ++ [\\/$]* | ?:[\\/]*) ;; ++ */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; ++esac ++ ++for ac_prog in gawk mawk nawk awk ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_AWK+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$AWK"; then ++ ac_cv_prog_AWK="$AWK" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_AWK="$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++AWK=$ac_cv_prog_AWK ++if test -n "$AWK"; then ++ { echo "$as_me:$LINENO: result: $AWK" >&5 ++echo "${ECHO_T}$AWK" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$AWK" && break ++done ++ ++{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 ++echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } ++set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` ++if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.make <<\_ACEOF ++SHELL = /bin/sh ++all: ++ @echo '@@@%%%=$(MAKE)=@@@%%%' ++_ACEOF ++# GNU make sometimes prints "make[1]: Entering...", which would confuse us. ++case `${MAKE-make} -f conftest.make 2>/dev/null` in ++ *@@@%%%=?*=@@@%%%*) ++ eval ac_cv_prog_make_${ac_make}_set=yes;; ++ *) ++ eval ac_cv_prog_make_${ac_make}_set=no;; ++esac ++rm -f conftest.make ++fi ++if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ SET_MAKE= ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ SET_MAKE="MAKE=${MAKE-make}" ++fi ++ ++rm -rf .tst 2>/dev/null ++mkdir .tst 2>/dev/null ++if test -d .tst; then ++ am__leading_dot=. ++else ++ am__leading_dot=_ ++fi ++rmdir .tst 2>/dev/null ++ ++if test "`cd $srcdir && pwd`" != "`pwd`"; then ++ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output ++ # is not polluted with repeated "-I." ++ am__isrc=' -I$(srcdir)' ++ # test to see if srcdir already configured ++ if test -f $srcdir/config.status; then ++ { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 ++echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++fi ++ ++# test whether we have cygpath ++if test -z "$CYGPATH_W"; then ++ if (cygpath --version) >/dev/null 2>/dev/null; then ++ CYGPATH_W='cygpath -w' ++ else ++ CYGPATH_W=echo ++ fi ++fi ++ ++ ++# Define the identity of the package. ++ PACKAGE='openmpi' ++ VERSION='1.3' ++ ++ ++# Some tools Automake needs. ++ ++ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} ++ ++ ++AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} ++ ++ ++AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} ++ ++ ++AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} ++ ++ ++MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} ++ ++install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} ++ ++# Installed binaries are usually stripped using `strip' when the user ++# run `make install-strip'. However `strip' might not be the right ++# tool to use in cross-compilation environments, therefore Automake ++# will honor the `STRIP' environment variable to overrule this program. ++if test "$cross_compiling" != no; then ++ if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. ++set dummy ${ac_tool_prefix}strip; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_STRIP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$STRIP"; then ++ ac_cv_prog_STRIP="$STRIP" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_STRIP="${ac_tool_prefix}strip" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++STRIP=$ac_cv_prog_STRIP ++if test -n "$STRIP"; then ++ { echo "$as_me:$LINENO: result: $STRIP" >&5 ++echo "${ECHO_T}$STRIP" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_STRIP"; then ++ ac_ct_STRIP=$STRIP ++ # Extract the first word of "strip", so it can be a program name with args. ++set dummy strip; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_STRIP"; then ++ ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_STRIP="strip" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP ++if test -n "$ac_ct_STRIP"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 ++echo "${ECHO_T}$ac_ct_STRIP" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_STRIP" = x; then ++ STRIP=":" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ STRIP=$ac_ct_STRIP ++ fi ++else ++ STRIP="$ac_cv_prog_STRIP" ++fi ++ ++fi ++INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" ++ ++# We need awk for the "check" target. The system "awk" is bad on ++# some platforms. ++# Always define AMTAR for backward compatibility. ++ ++AMTAR=${AMTAR-"${am_missing_run}tar"} ++ ++ ++{ echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5 ++echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; } ++# Loop over all known methods to create a tar archive until one works. ++_am_tools='gnutar plaintar pax cpio none' ++_am_tools=${am_cv_prog_tar_ustar-$_am_tools} ++# Do not fold the above two line into one, because Tru64 sh and ++# Solaris sh will not grok spaces in the rhs of `-'. ++for _am_tool in $_am_tools ++do ++ case $_am_tool in ++ gnutar) ++ for _am_tar in tar gnutar gtar; ++ do ++ { echo "$as_me:$LINENO: $_am_tar --version" >&5 ++ ($_am_tar --version) >&5 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && break ++ done ++ am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' ++ am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' ++ am__untar="$_am_tar -xf -" ++ ;; ++ plaintar) ++ # Must skip GNU tar: if it does not support --format= it doesn't create ++ # ustar tarball either. ++ (tar --version) >/dev/null 2>&1 && continue ++ am__tar='tar chf - "$$tardir"' ++ am__tar_='tar chf - "$tardir"' ++ am__untar='tar xf -' ++ ;; ++ pax) ++ am__tar='pax -L -x ustar -w "$$tardir"' ++ am__tar_='pax -L -x ustar -w "$tardir"' ++ am__untar='pax -r' ++ ;; ++ cpio) ++ am__tar='find "$$tardir" -print | cpio -o -H ustar -L' ++ am__tar_='find "$tardir" -print | cpio -o -H ustar -L' ++ am__untar='cpio -i -H ustar -d' ++ ;; ++ none) ++ am__tar=false ++ am__tar_=false ++ am__untar=false ++ ;; ++ esac ++ ++ # If the value was cached, stop now. We just wanted to have am__tar ++ # and am__untar set. ++ test -n "${am_cv_prog_tar_ustar}" && break ++ ++ # tar/untar a dummy directory, and stop if the command works ++ rm -rf conftest.dir ++ mkdir conftest.dir ++ echo GrepMe > conftest.dir/file ++ { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 ++ (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++ rm -rf conftest.dir ++ if test -s conftest.tar; then ++ { echo "$as_me:$LINENO: $am__untar &5 ++ ($am__untar &5 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++ grep GrepMe conftest.dir/file >/dev/null 2>&1 && break ++ fi ++done ++rm -rf conftest.dir ++ ++if test "${am_cv_prog_tar_ustar+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ am_cv_prog_tar_ustar=$_am_tool ++fi ++ ++{ echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5 ++echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; } ++ ++ ++ ++ ++ ++ ++ ++ ++# Make configure depend on the VERSION file, since it's used in AC_INIT ++CONFIGURE_DEPENDENCIES='$(top_srcdir)/VERSION' ++ ++ ++# ++# Start it up ++# ++ ++ ++ ++# Some helper script functions. Unfortunately, we cannot use kinds ++# of arugments here because of the m4 substitution. So we have to set ++# special variable names before invoking the function. :-\ ++ ++ompi_show_title() { ++ cat <&5 ++echo $ECHO_N "checking for SVN version... $ECHO_C" >&6; } ++ if test -d "$srcdir/.svn" ; then ++ OMPI_SVN_R=r`svnversion "$srcdir"` ++ elif test -d "$srcdir/.hg" ; then ++ OMPI_SVN_R=hg`hg -v -R "$srcdir" tip | grep changeset | cut -d: -f3` ++ fi ++ if test "OMPI_SVN_R" = ""; then ++ OMPI_SVN_R=svn`date '+%m%d%Y'` ++ fi ++ { echo "$as_me:$LINENO: result: done" >&5 ++echo "${ECHO_T}done" >&6; } ++ fi ++ OMPI_VERSION="${OMPI_VERSION}${OMPI_SVN_R}" ++ fi ++ fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking Open MPI version" >&5 ++echo $ECHO_N "checking Open MPI version... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $OMPI_VERSION" >&5 ++echo "${ECHO_T}$OMPI_VERSION" >&6; } ++ { echo "$as_me:$LINENO: checking Open MPI release date" >&5 ++echo $ECHO_N "checking Open MPI release date... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $OMPI_RELEASE_DATE" >&5 ++echo "${ECHO_T}$OMPI_RELEASE_DATE" >&6; } ++ { echo "$as_me:$LINENO: checking Open MPI Subversion repository version" >&5 ++echo $ECHO_N "checking Open MPI Subversion repository version... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $OMPI_SVN_R" >&5 ++echo "${ECHO_T}$OMPI_SVN_R" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_MAJOR_VERSION $OMPI_MAJOR_VERSION ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_MINOR_VERSION $OMPI_MINOR_VERSION ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_RELEASE_VERSION $OMPI_RELEASE_VERSION ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_GREEK_VERSION "$OMPI_GREEK_VERSION" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_VERSION "$OMPI_RELEASE_VERSION" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_RELEASE_DATE "$OMPI_RELEASE_DATE" ++_ACEOF ++ ++ ++ ac_config_files="$ac_config_files ompi/include/ompi/version.h" ++ ++ ++ ++ ++ ++ : ${ompi_ver_need_svn=1} ++ : ${srcdir=.} ++ : ${svnversion_result=-1} ++ ++ if test -f "$srcdir/VERSION"; then ++ ompi_vers=`sed -n " ++ t clear ++ : clear ++ s/^major/ORTE_MAJOR_VERSION/ ++ s/^minor/ORTE_MINOR_VERSION/ ++ s/^release/ORTE_RELEASE_VERSION/ ++ s/^greek/ORTE_GREEK_VERSION/ ++ s/^want_svn/ORTE_WANT_SVN/ ++ s/^svn_r/ORTE_SVN_R/ ++ s/^date/ORTE_RELEASE_DATE/ ++ t print ++ b ++ : print ++ p" < "$srcdir/VERSION"` ++ eval "$ompi_vers" ++ ++ # Only print release version if it isn't 0 ++ if test $ORTE_RELEASE_VERSION -ne 0 ; then ++ ORTE_VERSION="$ORTE_MAJOR_VERSION.$ORTE_MINOR_VERSION.$ORTE_RELEASE_VERSION" ++ else ++ ORTE_VERSION="$ORTE_MAJOR_VERSION.$ORTE_MINOR_VERSION" ++ fi ++ ORTE_VERSION="${ORTE_VERSION}${ORTE_GREEK_VERSION}" ++ ORTE_BASE_VERSION=$ORTE_VERSION ++ ++ if test $ORTE_WANT_SVN -eq 1 && test $ompi_ver_need_svn -eq 1 ; then ++ if test "$svnversion_result" != "-1" ; then ++ ORTE_SVN_R=$svnversion_result ++ fi ++ if test "$ORTE_SVN_R" = "-1" ; then ++ { echo "$as_me:$LINENO: checking for SVN version" >&5 ++echo $ECHO_N "checking for SVN version... $ECHO_C" >&6; } ++ if test -d "$srcdir/.svn" ; then ++ ORTE_SVN_R=r`svnversion "$srcdir"` ++ elif test -d "$srcdir/.hg" ; then ++ ORTE_SVN_R=hg`hg -v -R "$srcdir" tip | grep changeset | cut -d: -f3` ++ fi ++ if test "ORTE_SVN_R" = ""; then ++ ORTE_SVN_R=svn`date '+%m%d%Y'` ++ fi ++ { echo "$as_me:$LINENO: result: done" >&5 ++echo "${ECHO_T}done" >&6; } ++ fi ++ ORTE_VERSION="${ORTE_VERSION}${ORTE_SVN_R}" ++ fi ++ fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking Open Run-Time Environment version" >&5 ++echo $ECHO_N "checking Open Run-Time Environment version... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $ORTE_VERSION" >&5 ++echo "${ECHO_T}$ORTE_VERSION" >&6; } ++ { echo "$as_me:$LINENO: checking Open Run-Time Environment release date" >&5 ++echo $ECHO_N "checking Open Run-Time Environment release date... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $ORTE_RELEASE_DATE" >&5 ++echo "${ECHO_T}$ORTE_RELEASE_DATE" >&6; } ++ { echo "$as_me:$LINENO: checking Open Run-Time Environment Subversion repository version" >&5 ++echo $ECHO_N "checking Open Run-Time Environment Subversion repository version... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $ORTE_SVN_R" >&5 ++echo "${ECHO_T}$ORTE_SVN_R" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ORTE_MAJOR_VERSION $ORTE_MAJOR_VERSION ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ORTE_MINOR_VERSION $ORTE_MINOR_VERSION ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ORTE_RELEASE_VERSION $ORTE_RELEASE_VERSION ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ORTE_GREEK_VERSION "$ORTE_GREEK_VERSION" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ORTE_VERSION "$ORTE_RELEASE_VERSION" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ORTE_RELEASE_DATE "$ORTE_RELEASE_DATE" ++_ACEOF ++ ++ ++ ac_config_files="$ac_config_files orte/include/orte/version.h" ++ ++ ++ ++ ++ ++ : ${ompi_ver_need_svn=1} ++ : ${srcdir=.} ++ : ${svnversion_result=-1} ++ ++ if test -f "$srcdir/VERSION"; then ++ ompi_vers=`sed -n " ++ t clear ++ : clear ++ s/^major/OPAL_MAJOR_VERSION/ ++ s/^minor/OPAL_MINOR_VERSION/ ++ s/^release/OPAL_RELEASE_VERSION/ ++ s/^greek/OPAL_GREEK_VERSION/ ++ s/^want_svn/OPAL_WANT_SVN/ ++ s/^svn_r/OPAL_SVN_R/ ++ s/^date/OPAL_RELEASE_DATE/ ++ t print ++ b ++ : print ++ p" < "$srcdir/VERSION"` ++ eval "$ompi_vers" ++ ++ # Only print release version if it isn't 0 ++ if test $OPAL_RELEASE_VERSION -ne 0 ; then ++ OPAL_VERSION="$OPAL_MAJOR_VERSION.$OPAL_MINOR_VERSION.$OPAL_RELEASE_VERSION" ++ else ++ OPAL_VERSION="$OPAL_MAJOR_VERSION.$OPAL_MINOR_VERSION" ++ fi ++ OPAL_VERSION="${OPAL_VERSION}${OPAL_GREEK_VERSION}" ++ OPAL_BASE_VERSION=$OPAL_VERSION ++ ++ if test $OPAL_WANT_SVN -eq 1 && test $ompi_ver_need_svn -eq 1 ; then ++ if test "$svnversion_result" != "-1" ; then ++ OPAL_SVN_R=$svnversion_result ++ fi ++ if test "$OPAL_SVN_R" = "-1" ; then ++ { echo "$as_me:$LINENO: checking for SVN version" >&5 ++echo $ECHO_N "checking for SVN version... $ECHO_C" >&6; } ++ if test -d "$srcdir/.svn" ; then ++ OPAL_SVN_R=r`svnversion "$srcdir"` ++ elif test -d "$srcdir/.hg" ; then ++ OPAL_SVN_R=hg`hg -v -R "$srcdir" tip | grep changeset | cut -d: -f3` ++ fi ++ if test "OPAL_SVN_R" = ""; then ++ OPAL_SVN_R=svn`date '+%m%d%Y'` ++ fi ++ { echo "$as_me:$LINENO: result: done" >&5 ++echo "${ECHO_T}done" >&6; } ++ fi ++ OPAL_VERSION="${OPAL_VERSION}${OPAL_SVN_R}" ++ fi ++ fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking Open Portable Access Layer version" >&5 ++echo $ECHO_N "checking Open Portable Access Layer version... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $OPAL_VERSION" >&5 ++echo "${ECHO_T}$OPAL_VERSION" >&6; } ++ { echo "$as_me:$LINENO: checking Open Portable Access Layer release date" >&5 ++echo $ECHO_N "checking Open Portable Access Layer release date... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $OPAL_RELEASE_DATE" >&5 ++echo "${ECHO_T}$OPAL_RELEASE_DATE" >&6; } ++ { echo "$as_me:$LINENO: checking Open Portable Access Layer Subversion repository version" >&5 ++echo $ECHO_N "checking Open Portable Access Layer Subversion repository version... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $OPAL_SVN_R" >&5 ++echo "${ECHO_T}$OPAL_SVN_R" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_MAJOR_VERSION $OPAL_MAJOR_VERSION ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_MINOR_VERSION $OPAL_MINOR_VERSION ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_RELEASE_VERSION $OPAL_RELEASE_VERSION ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_GREEK_VERSION "$OPAL_GREEK_VERSION" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_VERSION "$OPAL_RELEASE_VERSION" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_RELEASE_DATE "$OPAL_RELEASE_DATE" ++_ACEOF ++ ++ ++ ac_config_files="$ac_config_files opal/include/opal/version.h" ++ ++ ++ ++ac_config_headers="$ac_config_headers opal/include/opal_config.h orte/include/orte_config.h ompi/include/ompi_config.h ompi/include/mpi.h" ++ ++ ++# override/fixup the version numbers set by AC_INIT, since on ++# developer builds, there's no good way to know what the version is ++# before running configure :(. We only use the base version number ++# (ie, no svn r numbers) for the version set in AC_INIT. This will ++# always match reality because we add the VERSION file (the only way ++# to change the major.minor.release{greek}) into the configure ++# dependencies. PACKAGE_VERSION the AC_DEFINE doesn't change once set ++# the first time -- AC_INIT's input (so it doesn't have an r number in ++# it). PACKAGE_VERSION the AC_SUBST can be rewritten along the way, ++# and we'd like it to have the r number in it so that it shows up in ++# the tarball name, so it is set to the full version here. ++PACKAGE_VERSION="$OPAL_VERSION" ++PACKAGE_STRING="${PACKAGE_NAME} ${PACKAGE_VERSION}" ++VERSION="${PACKAGE_VERSION}" ++ ++ompi_show_subtitle "Initialization, setup" ++ ++OMPI_TOP_BUILDDIR="`pwd`" ++ ++cd "$srcdir" ++OMPI_TOP_SRCDIR="`pwd`" ++ ++cd "$OMPI_TOP_BUILDDIR" ++ ++{ echo "$as_me:$LINENO: builddir: $OMPI_TOP_BUILDDIR" >&5 ++echo "$as_me: builddir: $OMPI_TOP_BUILDDIR" >&6;} ++{ echo "$as_me:$LINENO: srcdir: $OMPI_TOP_SRCDIR" >&5 ++echo "$as_me: srcdir: $OMPI_TOP_SRCDIR" >&6;} ++if test "$OMPI_TOP_BUILDDIR" != "$OMPI_TOP_SRCDIR"; then ++ { echo "$as_me:$LINENO: Detected VPATH build" >&5 ++echo "$as_me: Detected VPATH build" >&6;} ++fi ++ ++# Setup the top of the opal/include/opal_config.h file ++ ++ ++ ++ ++ ++ ++# Other basic setup stuff (shared with components) ++ ++# Make sure we can run config.sub. ++$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || ++ { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 ++echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} ++ { (exit 1); exit 1; }; } ++ ++{ echo "$as_me:$LINENO: checking build system type" >&5 ++echo $ECHO_N "checking build system type... $ECHO_C" >&6; } ++if test "${ac_cv_build+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_build_alias=$build_alias ++test "x$ac_build_alias" = x && ++ ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` ++test "x$ac_build_alias" = x && ++ { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 ++echo "$as_me: error: cannot guess build type; you must specify one" >&2;} ++ { (exit 1); exit 1; }; } ++ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || ++ { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 ++echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} ++ { (exit 1); exit 1; }; } ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 ++echo "${ECHO_T}$ac_cv_build" >&6; } ++case $ac_cv_build in ++*-*-*) ;; ++*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 ++echo "$as_me: error: invalid value of canonical build" >&2;} ++ { (exit 1); exit 1; }; };; ++esac ++build=$ac_cv_build ++ac_save_IFS=$IFS; IFS='-' ++set x $ac_cv_build ++shift ++build_cpu=$1 ++build_vendor=$2 ++shift; shift ++# Remember, the first character of IFS is used to create $*, ++# except with old shells: ++build_os=$* ++IFS=$ac_save_IFS ++case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac ++ ++ ++ ++# ++# Save some stats about this build ++# ++ ++OMPI_CONFIGURE_USER="`whoami`" ++OMPI_CONFIGURE_HOST="`hostname | head -n 1`" ++OMPI_CONFIGURE_DATE="`date`" ++ ++# ++# Make automake clean emacs ~ files for "make clean" ++# ++ ++CLEANFILES="*~ .\#*" ++ ++ ++# ++# This is useful later (ompi_info, and therefore mpiexec) ++# ++ ++{ echo "$as_me:$LINENO: checking host system type" >&5 ++echo $ECHO_N "checking host system type... $ECHO_C" >&6; } ++if test "${ac_cv_host+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "x$host_alias" = x; then ++ ac_cv_host=$ac_cv_build ++else ++ ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || ++ { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 ++echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 ++echo "${ECHO_T}$ac_cv_host" >&6; } ++case $ac_cv_host in ++*-*-*) ;; ++*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 ++echo "$as_me: error: invalid value of canonical host" >&2;} ++ { (exit 1); exit 1; }; };; ++esac ++host=$ac_cv_host ++ac_save_IFS=$IFS; IFS='-' ++set x $ac_cv_host ++shift ++host_cpu=$1 ++host_vendor=$2 ++shift; shift ++# Remember, the first character of IFS is used to create $*, ++# except with old shells: ++host_os=$* ++IFS=$ac_save_IFS ++case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ARCH "$host" ++_ACEOF ++ ++ ++# ++# See if we can find an old installation of OMPI to overwrite ++# ++ ++# Stupid autoconf 2.54 has a bug in AC_PREFIX_PROGRAM -- if ompi_clean ++# is not found in the path and the user did not specify --prefix, ++# we'll get a $prefix of "." ++ ++ompi_prefix_save="$prefix" ++if test "x$prefix" = xNONE; then ++ echo $ECHO_N "checking for prefix by $ECHO_C" >&6 ++ # Extract the first word of "ompi_clean", so it can be a program name with args. ++set dummy ompi_clean; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_path_ac_prefix_program+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ case $ac_prefix_program in ++ [\\/]* | ?:[\\/]*) ++ ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path. ++ ;; ++ *) ++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++ ;; ++esac ++fi ++ac_prefix_program=$ac_cv_path_ac_prefix_program ++if test -n "$ac_prefix_program"; then ++ { echo "$as_me:$LINENO: result: $ac_prefix_program" >&5 ++echo "${ECHO_T}$ac_prefix_program" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ if test -n "$ac_prefix_program"; then ++ prefix=`$as_dirname -- "$ac_prefix_program" || ++$as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$ac_prefix_program" : 'X\(//\)[^/]' \| \ ++ X"$ac_prefix_program" : 'X\(//\)$' \| \ ++ X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$ac_prefix_program" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ prefix=`$as_dirname -- "$prefix" || ++$as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$prefix" : 'X\(//\)[^/]' \| \ ++ X"$prefix" : 'X\(//\)$' \| \ ++ X"$prefix" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$prefix" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ fi ++fi ++ ++if test "$prefix" = "."; then ++ prefix="$ompi_prefix_save" ++fi ++unset ompi_prefix_save ++ ++# ++# Basic sanity checking; we can't install to a relative path ++# ++ ++case "$prefix" in ++ /*/bin) ++ prefix="`dirname $prefix`" ++ echo installing to directory \"$prefix\" ++ ;; ++ /*) ++ echo installing to directory \"$prefix\" ++ ;; ++ NONE) ++ echo installing to directory \"$ac_default_prefix\" ++ ;; ++ @<:@a-zA-Z@:>@:*) ++ echo installing to directory \"$prefix\" ++ ;; ++ *) ++ { { echo "$as_me:$LINENO: error: prefix \"$prefix\" must be an absolute directory path" >&5 ++echo "$as_me: error: prefix \"$prefix\" must be an absolute directory path" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++esac ++ ++# Allow the --enable-dist flag to be passed in ++ ++# Check whether --enable-dist was given. ++if test "${enable_dist+set}" = set; then ++ enableval=$enable_dist; OMPI_WANT_DIST=yes ++else ++ OMPI_WANT_DIST=no ++fi ++ ++ ++if test "$OMPI_WANT_DIST" = "yes"; then ++ { echo "$as_me:$LINENO: WARNING: Configuring in 'make dist' mode" >&5 ++echo "$as_me: WARNING: Configuring in 'make dist' mode" >&2;} ++ { echo "$as_me:$LINENO: WARNING: Most make targets may be non-functional!" >&5 ++echo "$as_me: WARNING: Most make targets may be non-functional!" >&2;} ++fi ++ ++top_ompi_srcdir="$OMPI_TOP_SRCDIR" ++ ++top_ompi_builddir="$OMPI_TOP_BUILDDIR" ++ ++ ++############################################################################ ++# Configuration options ++############################################################################ ++ ++ ++ompi_show_subtitle "Configuration options" ++ ++# ++# Is this a developer copy? ++# ++if test -d .svn -o -d .hg; then ++ OMPI_DEVEL=1 ++else ++ OMPI_DEVEL=0 ++fi ++ ++# ++# Code coverage options ++# ++{ echo "$as_me:$LINENO: checking whether to run code coverage" >&5 ++echo $ECHO_N "checking whether to run code coverage... $ECHO_C" >&6; } ++# Check whether --enable-coverage was given. ++if test "${enable_coverage+set}" = set; then ++ enableval=$enable_coverage; ++fi ++ ++if test "$enable_coverage" = "yes"; then ++ if test "$enable_shared" = "yes"; then ++ { echo "$as_me:$LINENO: WARNING: Code coverage can run only with static libraries. Please ++run configure with --enable-static --disable-shared if ++you want code coverage. Also ensure that you execute ++make clean too ensure removal of all leftover shared ++mpi libraries" >&5 ++echo "$as_me: WARNING: Code coverage can run only with static libraries. Please ++run configure with --enable-static --disable-shared if ++you want code coverage. Also ensure that you execute ++make clean too ensure removal of all leftover shared ++mpi libraries" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue processing" >&5 ++echo "$as_me: error: Cannot continue processing" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_COVERAGE=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ WANT_COVERAGE=0 ++fi ++ ++ ++# ++# Branch Probabilities options ++# ++{ echo "$as_me:$LINENO: checking whether to compile with branch probabilities" >&5 ++echo $ECHO_N "checking whether to compile with branch probabilities... $ECHO_C" >&6; } ++# Check whether --enable-branch-probabilities was given. ++if test "${enable_branch_probabilities+set}" = set; then ++ enableval=$enable_branch_probabilities; ++fi ++ ++if test "$enable_branch_probabilities" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_BRANCH_PROBABILITIES=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ WANT_BRANCH_PROBABILITIES=0 ++fi ++ ++ ++# ++# Memory debugging ++# ++ ++{ echo "$as_me:$LINENO: checking whether to debug memory usage" >&5 ++echo $ECHO_N "checking whether to debug memory usage... $ECHO_C" >&6; } ++# Check whether --enable-mem-debug was given. ++if test "${enable_mem_debug+set}" = set; then ++ enableval=$enable_mem_debug; ++fi ++ ++if test "$enable_mem_debug" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_MEM_DEBUG=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ WANT_MEM_DEBUG=0 ++fi ++#################### Early development override #################### ++if test "$WANT_MEM_DEBUG" = "0" -a -z "$enable_mem_debug" -a "$OMPI_DEVEL" = 1; then ++ WANT_MEM_DEBUG=1 ++ echo "--> developer override: enable mem profiling by default" ++fi ++#################### Early development override #################### ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ENABLE_MEM_DEBUG $WANT_MEM_DEBUG ++_ACEOF ++ ++ ++# ++# Memory profiling ++# ++ ++{ echo "$as_me:$LINENO: checking whether to profile memory usage" >&5 ++echo $ECHO_N "checking whether to profile memory usage... $ECHO_C" >&6; } ++# Check whether --enable-mem-profile was given. ++if test "${enable_mem_profile+set}" = set; then ++ enableval=$enable_mem_profile; ++fi ++ ++if test "$enable_mem_profile" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_MEM_PROFILE=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ WANT_MEM_PROFILE=0 ++fi ++#################### Early development override #################### ++if test "$WANT_MEM_PROFILE" = "0" -a -z "$enable_mem_profile" -a "$OMPI_DEVEL" = 1; then ++ WANT_MEM_PROFILE=1 ++ echo "--> developer override: enable mem profiling by default" ++fi ++#################### Early development override #################### ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ENABLE_MEM_PROFILE $WANT_MEM_PROFILE ++_ACEOF ++ ++ ++# ++# Developer picky compiler options ++# ++ ++{ echo "$as_me:$LINENO: checking if want developer-level compiler pickyness" >&5 ++echo $ECHO_N "checking if want developer-level compiler pickyness... $ECHO_C" >&6; } ++# Check whether --enable-picky was given. ++if test "${enable_picky+set}" = set; then ++ enableval=$enable_picky; ++fi ++ ++if test "$enable_picky" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_PICKY_COMPILER=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ WANT_PICKY_COMPILER=0 ++fi ++#################### Early development override #################### ++if test "$WANT_PICKY_COMPILER" = "0" -a -z "$enable_picky" -a "$OMPI_DEVEL" = 1; then ++ WANT_PICKY_COMPILER=1 ++ echo "--> developer override: enable picky compiler by default" ++fi ++#################### Early development override #################### ++ ++# ++# Developer debugging ++# ++ ++{ echo "$as_me:$LINENO: checking if want developer-level debugging code" >&5 ++echo $ECHO_N "checking if want developer-level debugging code... $ECHO_C" >&6; } ++# Check whether --enable-debug was given. ++if test "${enable_debug+set}" = set; then ++ enableval=$enable_debug; ++fi ++ ++if test "$enable_debug" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_DEBUG=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ WANT_DEBUG=0 ++fi ++#################### Early development override #################### ++if test "$WANT_DEBUG" = "0" -a -z "$enable_debug" -a "$OMPI_DEVEL" = 1; then ++ WANT_DEBUG=1 ++ echo "--> developer override: enable debugging code by default" ++fi ++#################### Early development override #################### ++if test "$WANT_DEBUG" = "0"; then ++ CFLAGS="-DNDEBUG $CFLAGS" ++ CXXFLAGS="-DNDEBUG $CXXFLAGS" ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ENABLE_DEBUG $WANT_DEBUG ++_ACEOF ++ ++ ++# Check whether --enable-debug-symbols was given. ++if test "${enable_debug_symbols+set}" = set; then ++ enableval=$enable_debug_symbols; ++fi ++ ++ ++# ++# Sparse Groups ++# ++ ++{ echo "$as_me:$LINENO: checking if want sparse process groups" >&5 ++echo $ECHO_N "checking if want sparse process groups... $ECHO_C" >&6; } ++# Check whether --enable-sparse-groups was given. ++if test "${enable_sparse_groups+set}" = set; then ++ enableval=$enable_sparse_groups; ++fi ++ ++if test "$enable_sparse_groups" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ GROUP_SPARSE=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ GROUP_SPARSE=0 ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_GROUP_SPARSE $GROUP_SPARSE ++_ACEOF ++ ++ ++# ++# Fortran 77 ++# ++ ++{ echo "$as_me:$LINENO: checking if want Fortran 77 bindings" >&5 ++echo $ECHO_N "checking if want Fortran 77 bindings... $ECHO_C" >&6; } ++# Check whether --enable-mpi-f77 was given. ++if test "${enable_mpi_f77+set}" = set; then ++ enableval=$enable_mpi_f77; ++fi ++ ++if test "$enable_mpi_f77" != "no"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ OMPI_WANT_F77_BINDINGS=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ OMPI_WANT_F77_BINDINGS=0 ++fi ++ ++ ++# ++# Fortran 90 ++# ++ ++{ echo "$as_me:$LINENO: checking if want Fortran 90 bindings" >&5 ++echo $ECHO_N "checking if want Fortran 90 bindings... $ECHO_C" >&6; } ++# Check whether --enable-mpi-f90 was given. ++if test "${enable_mpi_f90+set}" = set; then ++ enableval=$enable_mpi_f90; ++fi ++ ++if test "$enable_mpi_f90" != "no"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ OMPI_WANT_F90_BINDINGS=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ OMPI_WANT_F90_BINDINGS=0 ++fi ++ ++{ echo "$as_me:$LINENO: checking desired Fortran 90 bindings \"size\"" >&5 ++echo $ECHO_N "checking desired Fortran 90 bindings \"size\"... $ECHO_C" >&6; } ++ ++# Check whether --with-mpi-f90-size was given. ++if test "${with_mpi_f90_size+set}" = set; then ++ withval=$with_mpi_f90_size; ++fi ++ ++ ++if test "$OMPI_WANT_F90_BINDINGS" = "0"; then ++ { echo "$as_me:$LINENO: result: disabled (Fortran 90 bindings disabled)" >&5 ++echo "${ECHO_T}disabled (Fortran 90 bindings disabled)" >&6; } ++elif test "$with_mpi_f90_size" = "no"; then ++ OMPI_WANT_F90_BINDINGS=0 ++ { echo "$as_me:$LINENO: result: disabling F90 MPI module (used specified)" >&5 ++echo "${ECHO_T}disabling F90 MPI module (used specified)" >&6; } ++else ++ # Default value ++ if test "$with_mpi_f90_size" = ""; then ++ with_mpi_f90_size=small ++ fi ++ ++ # Check for each of the sizes ++ if test "$with_mpi_f90_size" = "trivial"; then ++ OMPI_F90_BUILD_SIZE=trivial ++ elif test "$with_mpi_f90_size" = "small"; then ++ OMPI_F90_BUILD_SIZE=small ++ elif test "$with_mpi_f90_size" = "medium"; then ++ OMPI_F90_BUILD_SIZE=medium ++ elif test "$with_mpi_f90_size" = "large"; then ++ OMPI_F90_BUILD_SIZE=large ++ else ++ { echo "$as_me:$LINENO: result: Unrecognized size: $with_mpi_f90_size" >&5 ++echo "${ECHO_T}Unrecognized size: $with_mpi_f90_size" >&6; } ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++fi ++ ++ if test "$OMPI_F90_BUILD_SIZE" = "trivial"; then ++ OMPI_WANT_BUILD_F90_TRIVIAL_TRUE= ++ OMPI_WANT_BUILD_F90_TRIVIAL_FALSE='#' ++else ++ OMPI_WANT_BUILD_F90_TRIVIAL_TRUE='#' ++ OMPI_WANT_BUILD_F90_TRIVIAL_FALSE= ++fi ++ ++ if test "$OMPI_F90_BUILD_SIZE" = "small"; then ++ OMPI_WANT_BUILD_F90_SMALL_TRUE= ++ OMPI_WANT_BUILD_F90_SMALL_FALSE='#' ++else ++ OMPI_WANT_BUILD_F90_SMALL_TRUE='#' ++ OMPI_WANT_BUILD_F90_SMALL_FALSE= ++fi ++ ++ if test "$OMPI_F90_BUILD_SIZE" = "medium"; then ++ OMPI_WANT_BUILD_F90_MEDIUM_TRUE= ++ OMPI_WANT_BUILD_F90_MEDIUM_FALSE='#' ++else ++ OMPI_WANT_BUILD_F90_MEDIUM_TRUE='#' ++ OMPI_WANT_BUILD_F90_MEDIUM_FALSE= ++fi ++ ++ if test "$OMPI_F90_BUILD_SIZE" = "large"; then ++ OMPI_WANT_BUILD_F90_LARGE_TRUE= ++ OMPI_WANT_BUILD_F90_LARGE_FALSE='#' ++else ++ OMPI_WANT_BUILD_F90_LARGE_TRUE='#' ++ OMPI_WANT_BUILD_F90_LARGE_FALSE= ++fi ++ ++ ++ ++{ echo "$as_me:$LINENO: result: $OMPI_F90_BUILD_SIZE" >&5 ++echo "${ECHO_T}$OMPI_F90_BUILD_SIZE" >&6; } ++ ++# ++# MPI profiling ++# ++ ++{ echo "$as_me:$LINENO: checking whether to enable PMPI" >&5 ++echo $ECHO_N "checking whether to enable PMPI... $ECHO_C" >&6; } ++# Check whether --enable-mpi-profile was given. ++if test "${enable_mpi_profile+set}" = set; then ++ enableval=$enable_mpi_profile; ++fi ++ ++if test "$enable_mpi_profile" != "no"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_MPI_PROFILING=1 ++ MPIF_H_PMPI_W_FUNCS=", PMPI_WTICK, PMPI_WTIME" ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ WANT_MPI_PROFILING=0 ++ MPIF_H_PMPI_W_FUNCS= ++fi ++ ++ ++ ++# ++# C++ ++# ++ ++{ echo "$as_me:$LINENO: checking if want C++ bindings" >&5 ++echo $ECHO_N "checking if want C++ bindings... $ECHO_C" >&6; } ++# Check whether --enable-mpi-cxx was given. ++if test "${enable_mpi_cxx+set}" = set; then ++ enableval=$enable_mpi_cxx; ++fi ++ ++if test "$enable_mpi_cxx" != "no"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_MPI_CXX_SUPPORT=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ WANT_MPI_CXX_SUPPORT=0 ++fi ++ ++{ echo "$as_me:$LINENO: checking if want MPI::SEEK_SET support" >&5 ++echo $ECHO_N "checking if want MPI::SEEK_SET support... $ECHO_C" >&6; } ++# Check whether --enable-mpi-cxx-seek was given. ++if test "${enable_mpi_cxx_seek+set}" = set; then ++ enableval=$enable_mpi_cxx_seek; ++fi ++ ++if test "$enable_mpi_cxx_seek" != "no" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ OMPI_WANT_MPI_CXX_SEEK=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ OMPI_WANT_MPI_CXX_SEEK=0 ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_WANT_MPI_CXX_SEEK $OMPI_WANT_MPI_CXX_SEEK ++_ACEOF ++ ++ ++# ++# Do we want to disable weak symbols for some reason? ++# ++ ++{ echo "$as_me:$LINENO: checking if want to enable weak symbol support" >&5 ++echo $ECHO_N "checking if want to enable weak symbol support... $ECHO_C" >&6; } ++# Check whether --enable-weak-symbols was given. ++if test "${enable_weak_symbols+set}" = set; then ++ enableval=$enable_weak_symbols; ++fi ++ ++if test "$enable_weak_symbols" != "no"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_WEAK_SYMBOLS=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ WANT_WEAK_SYMBOLS=0 ++fi ++ ++# ++# Do we want to disable MPI parameter checking at run-time? ++# ++ ++{ echo "$as_me:$LINENO: checking if want run-time MPI parameter checking" >&5 ++echo $ECHO_N "checking if want run-time MPI parameter checking... $ECHO_C" >&6; } ++ ++# Check whether --with-mpi-param-check was given. ++if test "${with_mpi_param_check+set}" = set; then ++ withval=$with_mpi_param_check; ++fi ++ ++mpi_param_check=ompi_mpi_param_check ++if test "$with_mpi_param_check" = "no" -o \ ++ "$with_mpi_param_check" = "never"; then ++ mpi_param_check=0 ++ { echo "$as_me:$LINENO: result: never" >&5 ++echo "${ECHO_T}never" >&6; } ++elif test "$with_mpi_param_check" = "yes" -o \ ++ "$with_mpi_param_check" = "always"; then ++ mpi_param_check=1 ++ { echo "$as_me:$LINENO: result: always" >&5 ++echo "${ECHO_T}always" >&6; } ++elif test "$with_mpi_param_check" = "runtime" -o \ ++ -z "$with_mpi_params_check"; then ++ { echo "$as_me:$LINENO: result: runtime" >&5 ++echo "${ECHO_T}runtime" >&6; } ++else ++ { echo "$as_me:$LINENO: result: unknown" >&5 ++echo "${ECHO_T}unknown" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Unrecognized --with-mpi-param-check value" >&5 ++echo "$as_me: WARNING: *** Unrecognized --with-mpi-param-check value" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See \"configure --help\" output" >&5 ++echo "$as_me: WARNING: *** See \"configure --help\" output" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Defaulting to \"runtime\"" >&5 ++echo "$as_me: WARNING: *** Defaulting to \"runtime\"" >&2;} ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MPI_PARAM_CHECK $mpi_param_check ++_ACEOF ++ ++ ++ ++# ++# Do we want to install all of OMPI's header files? ++# ++ ++{ echo "$as_me:$LINENO: checking if want to install OMPI header files" >&5 ++echo $ECHO_N "checking if want to install OMPI header files... $ECHO_C" >&6; } ++ ++# Check whether --with-devel-headers was given. ++if test "${with_devel_headers+set}" = set; then ++ withval=$with_devel_headers; ++fi ++ ++if test "$with_devel_headers" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_INSTALL_HEADERS=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ WANT_INSTALL_HEADERS=0 ++fi ++ if test "$WANT_INSTALL_HEADERS" = 1; then ++ WANT_INSTALL_HEADERS_TRUE= ++ WANT_INSTALL_HEADERS_FALSE='#' ++else ++ WANT_INSTALL_HEADERS_TRUE='#' ++ WANT_INSTALL_HEADERS_FALSE= ++fi ++ ++ ++# ++# Do we want the pretty-print stack trace feature? ++# ++{ echo "$as_me:$LINENO: checking if want pretty-print stacktrace" >&5 ++echo $ECHO_N "checking if want pretty-print stacktrace... $ECHO_C" >&6; } ++# Check whether --enable-pretty-print-stacktrace was given. ++if test "${enable_pretty_print_stacktrace+set}" = set; then ++ enableval=$enable_pretty_print_stacktrace; ++fi ++ ++if test "$enable_pretty_print_stacktrace" = "no" ; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ WANT_PRETTY_PRINT_STACKTRACE=0 ++else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_PRETTY_PRINT_STACKTRACE=1 ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_WANT_PRETTY_PRINT_STACKTRACE $WANT_PRETTY_PRINT_STACKTRACE ++_ACEOF ++ ++ ++# ++# Do we want to enable peruse interface? ++# ++ ++{ echo "$as_me:$LINENO: checking if peruse support is required" >&5 ++echo $ECHO_N "checking if peruse support is required... $ECHO_C" >&6; } ++# Check whether --enable-peruse was given. ++if test "${enable_peruse+set}" = set; then ++ enableval=$enable_peruse; ++fi ++ ++if test "$enable_peruse" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_PERUSE=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ WANT_PERUSE=0 ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_WANT_PERUSE $WANT_PERUSE ++_ACEOF ++ ++ if test "$WANT_PERUSE" = "1"; then ++ WANT_PERUSE_TRUE= ++ WANT_PERUSE_FALSE='#' ++else ++ WANT_PERUSE_TRUE='#' ++ WANT_PERUSE_FALSE= ++fi ++ ++ ++# ++# What is the max array rank that we want to support in the f90 bindings? ++# ++ ++OMPI_FORTRAN_MAX_ARRAY_RANK=4 ++{ echo "$as_me:$LINENO: checking max supported array dimension in F90 MPI bindings" >&5 ++echo $ECHO_N "checking max supported array dimension in F90 MPI bindings... $ECHO_C" >&6; } ++ ++# Check whether --with-f90-max-array-dim was given. ++if test "${with_f90_max_array_dim+set}" = set; then ++ withval=$with_f90_max_array_dim; ++fi ++ ++if test ! -z "$with_f90_max_array_dim" -a "$with_f90_max_array_dim" != "no"; then ++ # Ensure it's a number (hopefully an integer!), and >=1 and <=7 ++ expr $with_f90_max_array_dim + 1 > /dev/null 2> /dev/null ++ happy=1 ++ if test "$?" != "0"; then ++ happy=0 ++else ++ expr $with_f90_max_array_dim \>= 1 \& $with_f90_max_array_dim \<= 7 > /dev/null 2>/dev/null ++ if test "$?" != "0"; then ++ happy=0 ++fi ++ ++fi ++ ++ ++ # If badness in the above tests, bail ++ if test "$happy" = "0"; then ++ { echo "$as_me:$LINENO: result: bad value ($with_f90_max_array_dim)" >&5 ++echo "${ECHO_T}bad value ($with_f90_max_array_dim)" >&6; } ++ { echo "$as_me:$LINENO: WARNING: --with-f90-max-array-dim value must be >=1 and <=7" >&5 ++echo "$as_me: WARNING: --with-f90-max-array-dim value must be >=1 and <=7" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ OMPI_FORTRAN_MAX_ARRAY_RANK="$with_f90_max_array_dim" ++fi ++{ echo "$as_me:$LINENO: result: $OMPI_FORTRAN_MAX_ARRAY_RANK" >&5 ++echo "${ECHO_T}$OMPI_FORTRAN_MAX_ARRAY_RANK" >&6; } ++ ++ ++# do we want PTY support? ++{ echo "$as_me:$LINENO: checking if pty support should be enabled" >&5 ++echo $ECHO_N "checking if pty support should be enabled... $ECHO_C" >&6; } ++# Check whether --enable-pty-support was given. ++if test "${enable_pty_support+set}" = set; then ++ enableval=$enable_pty_support; ++fi ++ ++if test "$enable_pty_support" = "no" ; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ OMPI_ENABLE_PTY_SUPPORT=0 ++else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ OMPI_ENABLE_PTY_SUPPORT=1 ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ENABLE_PTY_SUPPORT $OMPI_ENABLE_PTY_SUPPORT ++_ACEOF ++ ++ ++# ++# Do we want to allow DLOPEN? ++# ++{ echo "$as_me:$LINENO: checking if user wants dlopen support" >&5 ++echo $ECHO_N "checking if user wants dlopen support... $ECHO_C" >&6; } ++# Check whether --enable-dlopen was given. ++if test "${enable_dlopen+set}" = set; then ++ enableval=$enable_dlopen; ++fi ++ ++if test "$enable_dlopen" = "no" ; then ++ enable_mca_dso="no" ++ enable_mca_static="yes" ++ OMPI_ENABLE_DLOPEN_SUPPORT=0 ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++else ++ OMPI_ENABLE_DLOPEN_SUPPORT=1 ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++fi ++ ++# ++# Heterogeneous support ++# ++ ++{ echo "$as_me:$LINENO: checking if heterogeneous support should be enabled" >&5 ++echo $ECHO_N "checking if heterogeneous support should be enabled... $ECHO_C" >&6; } ++# Check whether --enable-heterogeneous was given. ++if test "${enable_heterogeneous+set}" = set; then ++ enableval=$enable_heterogeneous; ++fi ++ ++if test "$enable_heterogeneous" = "yes" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ompi_want_heterogeneous=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ompi_want_heterogeneous=0 ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ENABLE_HETEROGENEOUS_SUPPORT $ompi_want_heterogeneous ++_ACEOF ++ ++ ++# ++# Internal trace file logging (debugging) ++# ++ ++{ echo "$as_me:$LINENO: checking if want trace file debugging" >&5 ++echo $ECHO_N "checking if want trace file debugging... $ECHO_C" >&6; } ++# Check whether --enable-trace was given. ++if test "${enable_trace+set}" = set; then ++ enableval=$enable_trace; ++fi ++ ++if test "$enable_trace" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ opal_want_trace=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ opal_want_trace=0 ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_ENABLE_TRACE $opal_want_trace ++_ACEOF ++ ++ ++ ++# ++# Minimal RTE support ++# ++{ echo "$as_me:$LINENO: checking if want full RTE support" >&5 ++echo $ECHO_N "checking if want full RTE support... $ECHO_C" >&6; } ++ ++# Check whether --with-rte-support was given. ++if test "${with_rte_support+set}" = set; then ++ withval=$with_rte_support; ++fi ++ ++if test "$with_rte_support" = "no"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ orte_without_full_support=1 ++ list_of_frameworks="errmgr,ess-singleton,ess-hnp,ess-tool,ess-env,filem,grpcomm-basic,grpcomm-bad,iof,odls,oob,plm,ras,rmaps,rml,routed,snapc,btl-sm,coll-sm,common-sm,mpool-sm,dpm-orte,pubsub-orte" ++ if test -z $enable_mca_no_build ; then ++ enable_mca_no_build="$list_of_frameworks" ++ else ++ enable_mca_no_build="$enable_mca_no_build,$list_of_frameworks" ++ fi ++else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ orte_without_full_support=0 ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ORTE_DISABLE_FULL_SUPPORT $orte_without_full_support ++_ACEOF ++ ++ if test "$with_rte_support" = "no"; then ++ ORTE_DISABLE_FULL_SUPPORT_TRUE= ++ ORTE_DISABLE_FULL_SUPPORT_FALSE='#' ++else ++ ORTE_DISABLE_FULL_SUPPORT_TRUE='#' ++ ORTE_DISABLE_FULL_SUPPORT_FALSE= ++fi ++ ++ ++# ++# Cross-compile data ++# ++ ++# Check whether --with-cross was given. ++if test "${with_cross+set}" = set; then ++ withval=$with_cross; ++fi ++ ++if test "$with_cross" = "yes" ; then ++ { { echo "$as_me:$LINENO: error: --with-cross argument must include FILE option" >&5 ++echo "$as_me: error: --with-cross argument must include FILE option" >&2;} ++ { (exit 1); exit 1; }; } ++elif test "$with_cross" = "no" ; then ++ { { echo "$as_me:$LINENO: error: --without-cross is not a valid argument" >&5 ++echo "$as_me: error: --without-cross is not a valid argument" >&2;} ++ { (exit 1); exit 1; }; } ++elif test "$with_cross" != "" ; then ++ if test ! -r $with_cross ; then ++ { { echo "$as_me:$LINENO: error: could not find cross-compile data file $with_cross" >&5 ++echo "$as_me: error: could not find cross-compile data file $with_cross" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # eval into environment ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: Loading cross-compile file $with_cross, with contents below" >&5 ++else ++ echo Loading cross-compile file $with_cross, with contents below >&5 ++fi ++ ++# 1 is the filename ++if test -n "$with_cross" -a -f "$with_cross"; then ++ cat $with_cross >&5 ++fi ++ . "$with_cross" ++fi ++ ++# ++# --with-ft=TYPE ++# TYPE: ++# - LAM (synonym for 'cr' currently) ++# - cr ++# /* General FT sections */ ++# #if OPAL_ENABLE_FT == 0 /* FT Disabled globaly */ ++# #if OPAL_ENABLE_FT == 1 /* FT Enabled globaly */ ++# /* CR Specific sections */ ++# #if OPAL_ENABLE_FT_CR == 0 /* FT Ckpt/Restart Disabled */ ++# #if OPAL_ENABLE_FT_CR == 1 /* FT Ckpt/Restart Enabled */ ++# ++{ echo "$as_me:$LINENO: checking if want fault tolerance" >&5 ++echo $ECHO_N "checking if want fault tolerance... $ECHO_C" >&6; } ++ ++# Check whether --with-ft was given. ++if test "${with_ft+set}" = set; then ++ withval=$with_ft; ompi_want_ft=1 ++else ++ ompi_want_ft=0 ++fi ++ ++if test "$with_ft" = "no" -o "$ompi_want_ft" = "0"; then ++ ompi_want_ft=0 ++ ompi_want_ft_cr=0 ++ { echo "$as_me:$LINENO: result: Disabled fault tolerance" >&5 ++echo "${ECHO_T}Disabled fault tolerance" >&6; } ++else ++ ompi_want_ft=1 ++ ompi_want_ft_cr=0 ++ ompi_want_ft_type=none ++ ++ # Default value ++ if test "$with_ft" = "" -o "$with_ft" = "yes"; then ++ ompi_want_ft_type=cr ++ ompi_want_ft_cr=1 ++ elif test "$with_ft" = "LAM"; then ++ ompi_want_ft_type=lam ++ ompi_want_ft_cr=1 ++ elif test "$with_ft" = "lam"; then ++ ompi_want_ft_type=lam ++ ompi_want_ft_cr=1 ++ elif test "$with_ft" = "CR"; then ++ ompi_want_ft_type=cr ++ ompi_want_ft_cr=1 ++ elif test "$with_ft" = "cr"; then ++ ompi_want_ft_type=cr ++ ompi_want_ft_cr=1 ++ else ++ { echo "$as_me:$LINENO: result: Unrecognized FT TYPE: $with_ft" >&5 ++echo "${ECHO_T}Unrecognized FT TYPE: $with_ft" >&6; } ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ { echo "$as_me:$LINENO: result: Enabled $with_ft ($ompi_want_ft_type)" >&5 ++echo "${ECHO_T}Enabled $with_ft ($ompi_want_ft_type)" >&6; } ++ { echo "$as_me:$LINENO: WARNING: **************************************************" >&5 ++echo "$as_me: WARNING: **************************************************" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fault Tolerance Integration into Open MPI is *" >&5 ++echo "$as_me: WARNING: *** Fault Tolerance Integration into Open MPI is *" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** a research quality implementation, and care *" >&5 ++echo "$as_me: WARNING: *** a research quality implementation, and care *" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** should be used when choosing to enable it. *" >&5 ++echo "$as_me: WARNING: *** should be used when choosing to enable it. *" >&2;} ++ { echo "$as_me:$LINENO: WARNING: **************************************************" >&5 ++echo "$as_me: WARNING: **************************************************" >&2;} ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_ENABLE_FT $ompi_want_ft ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_ENABLE_FT_CR $ompi_want_ft_cr ++_ACEOF ++ ++ if test "$ompi_want_ft" = "1"; then ++ WANT_FT_TRUE= ++ WANT_FT_FALSE='#' ++else ++ WANT_FT_TRUE='#' ++ WANT_FT_FALSE= ++fi ++ ++ ++# ++# Do we want to install binaries? ++# ++# Check whether --enable-binaries was given. ++if test "${enable_binaries+set}" = set; then ++ enableval=$enable_binaries; ++fi ++ ++ if test "$enable_binaries" != "no"; then ++ OMPI_INSTALL_BINARIES_TRUE= ++ OMPI_INSTALL_BINARIES_FALSE='#' ++else ++ OMPI_INSTALL_BINARIES_TRUE='#' ++ OMPI_INSTALL_BINARIES_FALSE= ++fi ++ ++ ++# Check whether --enable-script-wrapper-compilers was given. ++if test "${enable_script_wrapper_compilers+set}" = set; then ++ enableval=$enable_script_wrapper_compilers; ++fi ++ ++ if test "$enable_script_wrapper_compilers" = "yes"; then ++ OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_TRUE= ++ OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_FALSE='#' ++else ++ OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_TRUE='#' ++ OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_FALSE= ++fi ++ ++ac_config_files="$ac_config_files ompi/tools/wrappers/ompi_wrapper_script" ++ ++ ++# ++# Support per-user config files? ++# ++# Check whether --enable-per-user-config-files was given. ++if test "${enable_per_user_config_files+set}" = set; then ++ enableval=$enable_per_user_config_files; ++fi ++ ++if test "$enable_per_user_config_files" = "no" ; then ++ result=0 ++else ++ result=1 ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_WANT_HOME_CONFIG_FILES $result ++_ACEOF ++ ++ ++# ++# Do we want to disable IPv6 support? ++# ++{ echo "$as_me:$LINENO: checking if want IPv6 support" >&5 ++echo $ECHO_N "checking if want IPv6 support... $ECHO_C" >&6; } ++# Check whether --enable-ipv6 was given. ++if test "${enable_ipv6+set}" = set; then ++ enableval=$enable_ipv6; ++fi ++ ++if test "$enable_ipv6" = "no"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ opal_want_ipv6=0 ++else ++ { echo "$as_me:$LINENO: result: yes (if underlying system supports it)" >&5 ++echo "${ECHO_T}yes (if underlying system supports it)" >&6; } ++ opal_want_ipv6=1 ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_ENABLE_IPV6 $opal_want_ipv6 ++_ACEOF ++ ++ ++# ++# Do we want orterun's --prefix behavior to be enabled by default? ++# ++{ echo "$as_me:$LINENO: checking if want orterun \"--prefix\" behavior to be enabled by default" >&5 ++echo $ECHO_N "checking if want orterun \"--prefix\" behavior to be enabled by default... $ECHO_C" >&6; } ++# Check whether --enable-orterun-prefix-by-default was given. ++if test "${enable_orterun_prefix_by_default+set}" = set; then ++ enableval=$enable_orterun_prefix_by_default; ++fi ++ ++# Check whether --enable-mpirun-prefix-by-default was given. ++if test "${enable_mpirun_prefix_by_default+set}" = set; then ++ enableval=$enable_mpirun_prefix_by_default; ++fi ++ ++if test "$enable_orterun_prefix_by_default" = ""; then ++ enable_orterun_prefix_by_default=$enable_mpirun_prefix_by_default ++fi ++if test "$enable_orterun_prefix_by_default" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ orte_want_orterun_prefix_by_default=1 ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ orte_want_orterun_prefix_by_default=0 ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ORTE_WANT_ORTERUN_PREFIX_BY_DEFAULT $orte_want_orterun_prefix_by_default ++_ACEOF ++ ++ ++# ++# Package/brand string ++# ++{ echo "$as_me:$LINENO: checking for package/brand string" >&5 ++echo $ECHO_N "checking for package/brand string... $ECHO_C" >&6; } ++ ++# Check whether --with-package-string was given. ++if test "${with_package_string+set}" = set; then ++ withval=$with_package_string; ++fi ++ ++if test "$with_package_string" = "" -o "$with_package_string" = "no"; then ++ with_package_string="Open MPI $OMPI_CONFIGURE_USER@$OMPI_CONFIGURE_HOST Distribution" ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_PACKAGE_STRING "$with_package_string" ++_ACEOF ++ ++{ echo "$as_me:$LINENO: result: $with_package_string" >&5 ++echo "${ECHO_T}$with_package_string" >&6; } ++ ++# ++# Ident string ++# ++{ echo "$as_me:$LINENO: checking for ident string" >&5 ++echo $ECHO_N "checking for ident string... $ECHO_C" >&6; } ++ ++# Check whether --with-ident-string was given. ++if test "${with_ident_string+set}" = set; then ++ withval=$with_ident_string; ++fi ++ ++if test "$with_ident_string" = "" -o "$with_ident_string" = "no"; then ++ with_ident_string="%VERSION%" ++fi ++with_ident_string="`echo $with_ident_string | sed -e 's/%VERSION%/'$OMPI_VERSION/`" ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_IDENT_STRING "$with_ident_string" ++_ACEOF ++ ++{ echo "$as_me:$LINENO: result: $with_ident_string" >&5 ++echo "${ECHO_T}$with_ident_string" >&6; } ++ ++ ++ ++ ++if test "$enable_binaries" = "no" -a "$enable_dist" = "yes"; then ++ { echo "$as_me:$LINENO: WARNING: --disable-binaries is incompatible with --enable dist" >&5 ++echo "$as_me: WARNING: --disable-binaries is incompatible with --enable dist" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++############################################################################ ++# Libtool: part one ++# (before C compiler setup) ++############################################################################ ++ ++# ++# Part one of libtool magic. Enable static so that we have the --with ++# tests done up here and can check for OS. Save the values of ++# $enable_static and $enable_shared before setting the defaults, ++# because if the user specified --[en|dis]able-[static|shared] on the ++# command line, they'll already be set. In this way, we can tell if ++# the user requested something or if the default was set here. ++# ++ ++ompi_enable_shared="$enable_shared" ++ompi_enable_static="$enable_static" ++# Check whether --enable-shared was given. ++if test "${enable_shared+set}" = set; then ++ enableval=$enable_shared; p=${PACKAGE-default} ++ case $enableval in ++ yes) enable_shared=yes ;; ++ no) enable_shared=no ;; ++ *) ++ enable_shared=no ++ # Look at the argument we got. We use all the common list separators. ++ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," ++ for pkg in $enableval; do ++ IFS="$lt_save_ifs" ++ if test "X$pkg" = "X$p"; then ++ enable_shared=yes ++ fi ++ done ++ IFS="$lt_save_ifs" ++ ;; ++ esac ++else ++ enable_shared=yes ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++# Check whether --enable-static was given. ++if test "${enable_static+set}" = set; then ++ enableval=$enable_static; p=${PACKAGE-default} ++ case $enableval in ++ yes) enable_static=yes ;; ++ no) enable_static=no ;; ++ *) ++ enable_static=no ++ # Look at the argument we got. We use all the common list separators. ++ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," ++ for pkg in $enableval; do ++ IFS="$lt_save_ifs" ++ if test "X$pkg" = "X$p"; then ++ enable_static=yes ++ fi ++ done ++ IFS="$lt_save_ifs" ++ ;; ++ esac ++else ++ enable_static=no ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ WRAPPER_EXTRA_CPPFLAGS= ++ WRAPPER_EXTRA_CFLAGS= ++ WRAPPER_EXTRA_CXXFLAGS= ++ WRAPPER_EXTRA_FFLAGS= ++ WRAPPER_EXTRA_FCFLAGS= ++ WRAPPER_EXTRA_LDFLAGS= ++ WRAPPER_EXTRA_LIBS= ++ ++ USER_WRAPPER_EXTRA_CFLAGS= ++ USER_WRAPPER_EXTRA_CXXFLAGS= ++ USER_WRAPPER_EXTRA_FFLAGS= ++ USER_WRAPPER_EXTRA_FCFLAGS= ++ USER_WRAPPER_EXTRA_LDFLAGS= ++ USER_WRAPPER_EXTRA_LIBS= ++ ++ ++# Check whether --with-wrapper-cflags was given. ++if test "${with_wrapper_cflags+set}" = set; then ++ withval=$with_wrapper_cflags; ++fi ++ ++ if test "$with_wrapper_cflags" = "yes" -o "$with_wrapper_cflags" = "no"; then ++ { { echo "$as_me:$LINENO: error: --with-wrapper-cflags must have an argument. Aborting" >&5 ++echo "$as_me: error: --with-wrapper-cflags must have an argument. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ elif test ! -z "$with_wrapper_cflags" ; then ++ USER_WRAPPER_EXTRA_CFLAGS="$with_wrapper_cflags" ++ fi ++ ++ ++# Check whether --with-wrapper-cxxflags was given. ++if test "${with_wrapper_cxxflags+set}" = set; then ++ withval=$with_wrapper_cxxflags; ++fi ++ ++ if test "$with_wrapper_cxxflags" = "yes" -o "$with_wrapper_cxxflags" = "no"; then ++ { { echo "$as_me:$LINENO: error: --with-wrapper-cxxflags must have an argument. Aborting" >&5 ++echo "$as_me: error: --with-wrapper-cxxflags must have an argument. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ elif test ! -z "$with_wrapper_cxxflags" ; then ++ USER_WRAPPER_EXTRA_CXXFLAGS="$with_wrapper_cxxflags" ++ fi ++ ++ ++# Check whether --with-wrapper-fflags was given. ++if test "${with_wrapper_fflags+set}" = set; then ++ withval=$with_wrapper_fflags; ++fi ++ ++ if test "$with_wrapper_fflags" = "yes" -o "$with_wrapper_fflags" = "no"; then ++ { { echo "$as_me:$LINENO: error: --with-wrapper-fflags must have an argument. Aborting" >&5 ++echo "$as_me: error: --with-wrapper-fflags must have an argument. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ elif test ! -z "$with_wrapper_fflags" ; then ++ USER_WRAPPER_EXTRA_FFLAGS="$with_wrapper_fflags" ++ fi ++ ++ ++# Check whether --with-wrapper-fcflags was given. ++if test "${with_wrapper_fcflags+set}" = set; then ++ withval=$with_wrapper_fcflags; ++fi ++ ++ if test "$with_wrapper_fcflags" = "yes" -o "$with_wrapper_fcflags" = "no"; then ++ { { echo "$as_me:$LINENO: error: --with-wrapper-fcflags must have an argument. Aborting" >&5 ++echo "$as_me: error: --with-wrapper-fcflags must have an argument. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ elif test ! -z "$with_wrapper_fcflags" ; then ++ USER_WRAPPER_EXTRA_FCFLAGS="$with_wrapper_fcflags" ++ fi ++ ++ ++# Check whether --with-wrapper-ldflags was given. ++if test "${with_wrapper_ldflags+set}" = set; then ++ withval=$with_wrapper_ldflags; ++fi ++ ++ if test "$with_wrapper_ldflags" = "yes" -o "$with_wrapper_ldflags" = "no"; then ++ { { echo "$as_me:$LINENO: error: --with-wrapper-ldflags must have an argument. Aborting" >&5 ++echo "$as_me: error: --with-wrapper-ldflags must have an argument. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ elif test ! -z "$with_wrapper_ldflags" ; then ++ USER_WRAPPER_EXTRA_LDFLAGS="$with_wrapper_ldflags" ++ fi ++ ++ ++# Check whether --with-wrapper-libs was given. ++if test "${with_wrapper_libs+set}" = set; then ++ withval=$with_wrapper_libs; ++fi ++ ++ if test "$with_wrapper_libs" = "yes" -o "$with_wrapper_libs" = "no"; then ++ { { echo "$as_me:$LINENO: error: --with-wrapper-libs must have an argument. Aborting" >&5 ++echo "$as_me: error: --with-wrapper-libs must have an argument. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ elif test ! -z "$with_wrapper_libs" ; then ++ USER_WRAPPER_EXTRA_LIBS="$with_wrapper_libs" ++ fi ++ ++ ++ ++############################################################################ ++# Check for compilers and preprocessors ++############################################################################ ++ompi_show_title "Compiler and preprocessor tests" ++ ++################################## ++# C compiler characteristics ++################################## ++ ++ ++ ompi_show_subtitle "C compiler and preprocessor" ++ ++ # $%@#!@#% AIX!! This has to be called before anything invokes the C ++ # compiler. ++ ++DEPDIR="${am__leading_dot}deps" ++ ++ac_config_commands="$ac_config_commands depfiles" ++ ++ ++am_make=${MAKE-make} ++cat > confinc << 'END' ++am__doit: ++ @echo done ++.PHONY: am__doit ++END ++# If we don't find an include directive, just comment out the code. ++{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 ++echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } ++am__include="#" ++am__quote= ++_am_result=none ++# First try GNU make style include. ++echo "include confinc" > confmf ++# We grep out `Entering directory' and `Leaving directory' ++# messages which can occur if `w' ends up in MAKEFLAGS. ++# In particular we don't look at `^make:' because GNU make might ++# be invoked under some other name (usually "gmake"), in which ++# case it prints its new name instead of `make'. ++if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then ++ am__include=include ++ am__quote= ++ _am_result=GNU ++fi ++# Now try BSD make style include. ++if test "$am__include" = "#"; then ++ echo '.include "confinc"' > confmf ++ if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then ++ am__include=.include ++ am__quote="\"" ++ _am_result=BSD ++ fi ++fi ++ ++ ++{ echo "$as_me:$LINENO: result: $_am_result" >&5 ++echo "${ECHO_T}$_am_result" >&6; } ++rm -f confinc confmf ++ ++# Check whether --enable-dependency-tracking was given. ++if test "${enable_dependency_tracking+set}" = set; then ++ enableval=$enable_dependency_tracking; ++fi ++ ++if test "x$enable_dependency_tracking" != xno; then ++ am_depcomp="$ac_aux_dir/depcomp" ++ AMDEPBACKSLASH='\' ++fi ++ if test "x$enable_dependency_tracking" != xno; then ++ AMDEP_TRUE= ++ AMDEP_FALSE='#' ++else ++ AMDEP_TRUE='#' ++ AMDEP_FALSE= ++fi ++ ++ ++ ++ # ++ # Check for the compiler ++ # ++ ompi_cflags_save="$CFLAGS" ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. ++set dummy ${ac_tool_prefix}gcc; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_CC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$CC"; then ++ ac_cv_prog_CC="$CC" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_CC="${ac_tool_prefix}gcc" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++CC=$ac_cv_prog_CC ++if test -n "$CC"; then ++ { echo "$as_me:$LINENO: result: $CC" >&5 ++echo "${ECHO_T}$CC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_CC"; then ++ ac_ct_CC=$CC ++ # Extract the first word of "gcc", so it can be a program name with args. ++set dummy gcc; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_CC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_CC"; then ++ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_CC="gcc" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_CC=$ac_cv_prog_ac_ct_CC ++if test -n "$ac_ct_CC"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 ++echo "${ECHO_T}$ac_ct_CC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_CC" = x; then ++ CC="" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ CC=$ac_ct_CC ++ fi ++else ++ CC="$ac_cv_prog_CC" ++fi ++ ++if test -z "$CC"; then ++ if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. ++set dummy ${ac_tool_prefix}cc; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_CC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$CC"; then ++ ac_cv_prog_CC="$CC" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_CC="${ac_tool_prefix}cc" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++CC=$ac_cv_prog_CC ++if test -n "$CC"; then ++ { echo "$as_me:$LINENO: result: $CC" >&5 ++echo "${ECHO_T}$CC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ fi ++fi ++if test -z "$CC"; then ++ # Extract the first word of "cc", so it can be a program name with args. ++set dummy cc; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_CC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$CC"; then ++ ac_cv_prog_CC="$CC" # Let the user override the test. ++else ++ ac_prog_rejected=no ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ++ ac_prog_rejected=yes ++ continue ++ fi ++ ac_cv_prog_CC="cc" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++if test $ac_prog_rejected = yes; then ++ # We found a bogon in the path, so make sure we never use it. ++ set dummy $ac_cv_prog_CC ++ shift ++ if test $@%:@ != 0; then ++ # We chose a different compiler from the bogus one. ++ # However, it has the same basename, so the bogon will be chosen ++ # first if we set CC to just the basename; use the full file name. ++ shift ++ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" ++ fi ++fi ++fi ++fi ++CC=$ac_cv_prog_CC ++if test -n "$CC"; then ++ { echo "$as_me:$LINENO: result: $CC" >&5 ++echo "${ECHO_T}$CC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$CC"; then ++ if test -n "$ac_tool_prefix"; then ++ for ac_prog in cl.exe ++ do ++ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ++set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_CC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$CC"; then ++ ac_cv_prog_CC="$CC" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_CC="$ac_tool_prefix$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++CC=$ac_cv_prog_CC ++if test -n "$CC"; then ++ { echo "$as_me:$LINENO: result: $CC" >&5 ++echo "${ECHO_T}$CC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$CC" && break ++ done ++fi ++if test -z "$CC"; then ++ ac_ct_CC=$CC ++ for ac_prog in cl.exe ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_CC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_CC"; then ++ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_CC="$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_CC=$ac_cv_prog_ac_ct_CC ++if test -n "$ac_ct_CC"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 ++echo "${ECHO_T}$ac_ct_CC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$ac_ct_CC" && break ++done ++ ++ if test "x$ac_ct_CC" = x; then ++ CC="" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ CC=$ac_ct_CC ++ fi ++fi ++ ++fi ++ ++ ++test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH ++See \`config.log' for more details." >&5 ++echo "$as_me: error: no acceptable C compiler found in \$PATH ++See \`config.log' for more details." >&2;} ++ { (exit 1); exit 1; }; } ++ ++# Provide some information about the compiler. ++echo "$as_me:$LINENO: checking for C compiler version" >&5 ++ac_compiler=`set X $ac_compile; echo $2` ++{ (ac_try="$ac_compiler --version >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler --version >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -v >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -v >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -V >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -V >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++ ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++ac_clean_files_save=$ac_clean_files ++ac_clean_files="$ac_clean_files a.out a.exe b.out" ++# Try to create an executable without -o first, disregard a.out. ++# It will help us diagnose broken compilers, and finding out an intuition ++# of exeext. ++{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 ++echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } ++ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` ++# ++# List of possible output files, starting from the most likely. ++# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) ++# only as a last resort. b.out is created by i960 compilers. ++ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' ++# ++# The IRIX 6 linker writes into existing files which may not be ++# executable, retaining their permissions. Remove them first so a ++# subsequent execution test works. ++ac_rmfiles= ++for ac_file in $ac_files ++do ++ case $ac_file in ++ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; ++ * ) ac_rmfiles="$ac_rmfiles $ac_file";; ++ esac ++done ++rm -f $ac_rmfiles ++ ++if { (ac_try="$ac_link_default" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link_default") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. ++# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' ++# in a Makefile. We should not override ac_cv_exeext if it was cached, ++# so that the user can short-circuit this test for compilers unknown to ++# Autoconf. ++for ac_file in $ac_files '' ++do ++ test -f "$ac_file" || continue ++ case $ac_file in ++ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ++ ;; ++ [ab].out ) ++ # We found the default executable, but exeext='' is most ++ # certainly right. ++ break;; ++ *.* ) ++ if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; ++ then :; else ++ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` ++ fi ++ # We set ac_cv_exeext here because the later test for it is not ++ # safe: cross compilers may not add the suffix if given an `-o' ++ # argument, so we may need to know it at that point already. ++ # Even if this section looks crufty: it has the advantage of ++ # actually working. ++ break;; ++ * ) ++ break;; ++ esac ++done ++test "$ac_cv_exeext" = no && ac_cv_exeext= ++ ++else ++ ac_file='' ++fi ++ ++{ echo "$as_me:$LINENO: result: $ac_file" >&5 ++echo "${ECHO_T}$ac_file" >&6; } ++if test -z "$ac_file"; then ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++{ { echo "$as_me:$LINENO: error: C compiler cannot create executables ++See \`config.log' for more details." >&5 ++echo "$as_me: error: C compiler cannot create executables ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++fi ++ ++ac_exeext=$ac_cv_exeext ++ ++# Check that the compiler produces executables we can run. If not, either ++# the compiler is broken, or we cross compile. ++{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 ++echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } ++# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 ++# If not cross compiling, check that we can run a simple program. ++if test "$cross_compiling" != yes; then ++ if { ac_try='./$ac_file' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ cross_compiling=no ++ else ++ if test "$cross_compiling" = maybe; then ++ cross_compiling=yes ++ else ++ { { echo "$as_me:$LINENO: error: cannot run C compiled programs. ++If you meant to cross compile, use \`--host'. ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot run C compiled programs. ++If you meant to cross compile, use \`--host'. ++See \`config.log' for more details." >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++fi ++{ echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++rm -f a.out a.exe conftest$ac_cv_exeext b.out ++ac_clean_files=$ac_clean_files_save ++# Check that the compiler produces executables we can run. If not, either ++# the compiler is broken, or we cross compile. ++{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 ++echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } ++{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 ++echo "${ECHO_T}$cross_compiling" >&6; } ++ ++{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 ++echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # If both `conftest.exe' and `conftest' are `present' (well, observable) ++# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will ++# work properly (i.e., refer to `conftest.exe'), while it won't with ++# `rm'. ++for ac_file in conftest.exe conftest conftest.*; do ++ test -f "$ac_file" || continue ++ case $ac_file in ++ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; ++ *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` ++ break;; ++ * ) break;; ++ esac ++done ++else ++ { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute suffix of executables: cannot compile and link ++See \`config.log' for more details." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++rm -f conftest$ac_cv_exeext ++{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 ++echo "${ECHO_T}$ac_cv_exeext" >&6; } ++ ++rm -f conftest.$ac_ext ++EXEEXT=$ac_cv_exeext ++ac_exeext=$EXEEXT ++{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 ++echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } ++if test "${ac_cv_objext+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.o conftest.obj ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ for ac_file in conftest.o conftest.obj conftest.*; do ++ test -f "$ac_file" || continue; ++ case $ac_file in ++ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; ++ *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` ++ break;; ++ esac ++done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute suffix of object files: cannot compile ++See \`config.log' for more details." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++rm -f conftest.$ac_cv_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 ++echo "${ECHO_T}$ac_cv_objext" >&6; } ++OBJEXT=$ac_cv_objext ++ac_objext=$OBJEXT ++{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 ++echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } ++if test "${ac_cv_c_compiler_gnu+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++#ifndef __GNUC__ ++ choke me ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_compiler_gnu=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_compiler_gnu=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ac_cv_c_compiler_gnu=$ac_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 ++echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } ++GCC=`test $ac_compiler_gnu = yes && echo yes` ++ac_test_CFLAGS=${CFLAGS+set} ++ac_save_CFLAGS=$CFLAGS ++{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 ++echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } ++if test "${ac_cv_prog_cc_g+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_save_c_werror_flag=$ac_c_werror_flag ++ ac_c_werror_flag=yes ++ ac_cv_prog_cc_g=no ++ CFLAGS="-g" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_cc_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ CFLAGS="" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ : ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_c_werror_flag=$ac_save_c_werror_flag ++ CFLAGS="-g" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_cc_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_c_werror_flag=$ac_save_c_werror_flag ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 ++echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } ++if test "$ac_test_CFLAGS" = set; then ++ CFLAGS=$ac_save_CFLAGS ++elif test $ac_cv_prog_cc_g = yes; then ++ if test "$GCC" = yes; then ++ CFLAGS="-g -O2" ++ else ++ CFLAGS="-g" ++ fi ++else ++ if test "$GCC" = yes; then ++ CFLAGS="-O2" ++ else ++ CFLAGS= ++ fi ++fi ++{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 ++echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } ++if test "${ac_cv_prog_cc_c89+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_prog_cc_c89=no ++ac_save_CC=$CC ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++#include ++#include ++/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ ++struct buf { int x; }; ++FILE * (*rcsopen) (struct buf *, struct stat *, int); ++static char *e (p, i) ++ char **p; ++ int i; ++{ ++ return p[i]; ++} ++static char *f (char * (*g) (char **, int), char **p, ...) ++{ ++ char *s; ++ va_list v; ++ va_start (v,p); ++ s = g (p, va_arg (v,int)); ++ va_end (v); ++ return s; ++} ++ ++/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has ++ function prototypes and stuff, but not '\xHH' hex character constants. ++ These don't provoke an error unfortunately, instead are silently treated ++ as 'x'. The following induces an error, until -std is added to get ++ proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an ++ array size at least. It's necessary to write '\x00'==0 to get something ++ that's true only with -std. */ ++int osf4_cc_array ['\x00' == 0 ? 1 : -1]; ++ ++/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters ++ inside strings and character constants. */ ++#define FOO(x) 'x' ++int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; ++ ++int test (int i, double x); ++struct s1 {int (*f) (int a);}; ++struct s2 {int (*f) (double a);}; ++int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); ++int argc; ++char **argv; ++int ++main () ++{ ++return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ++ ; ++ return 0; ++} ++_ACEOF ++for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ ++ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" ++do ++ CC="$ac_save_CC $ac_arg" ++ rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_cc_c89=$ac_arg ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext ++ test "x$ac_cv_prog_cc_c89" != "xno" && break ++done ++rm -f conftest.$ac_ext ++CC=$ac_save_CC ++ ++fi ++# AC_CACHE_VAL ++case "x$ac_cv_prog_cc_c89" in ++ x) ++ { echo "$as_me:$LINENO: result: none needed" >&5 ++echo "${ECHO_T}none needed" >&6; } ;; ++ xno) ++ { echo "$as_me:$LINENO: result: unsupported" >&5 ++echo "${ECHO_T}unsupported" >&6; } ;; ++ *) ++ CC="$CC $ac_cv_prog_cc_c89" ++ { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 ++echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; ++esac ++ ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++depcc="$CC" am_compiler_list= ++ ++{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 ++echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } ++if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then ++ # We make a subdir and do the tests there. Otherwise we can end up ++ # making bogus files that we don't know about and never remove. For ++ # instance it was reported that on HP-UX the gcc test will end up ++ # making a dummy file named `D' -- because `-MD' means `put the output ++ # in D'. ++ mkdir conftest.dir ++ # Copy depcomp to subdir because otherwise we won't find it if we're ++ # using a relative directory. ++ cp "$am_depcomp" conftest.dir ++ cd conftest.dir ++ # We will build objects and dependencies in a subdirectory because ++ # it helps to detect inapplicable dependency modes. For instance ++ # both Tru64's cc and ICC support -MD to output dependencies as a ++ # side effect of compilation, but ICC will put the dependencies in ++ # the current directory while Tru64 will put them in the object ++ # directory. ++ mkdir sub ++ ++ am_cv_CC_dependencies_compiler_type=none ++ if test "$am_compiler_list" = ""; then ++ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` ++ fi ++ for depmode in $am_compiler_list; do ++ # Setup a source with many dependencies, because some compilers ++ # like to wrap large dependency lists on column 80 (with \), and ++ # we should not choose a depcomp mode which is confused by this. ++ # ++ # We need to recreate these files for each test, as the compiler may ++ # overwrite some of them when testing with obscure command lines. ++ # This happens at least with the AIX C compiler. ++ : > sub/conftest.c ++ for i in 1 2 3 4 5 6; do ++ echo '#include "conftst'$i'.h"' >> sub/conftest.c ++ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with ++ # Solaris 8's {/usr,}/bin/sh. ++ touch sub/conftst$i.h ++ done ++ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf ++ ++ case $depmode in ++ nosideeffect) ++ # after this tag, mechanisms are not by side-effect, so they'll ++ # only be used when explicitly requested ++ if test "x$enable_dependency_tracking" = xyes; then ++ continue ++ else ++ break ++ fi ++ ;; ++ none) break ;; ++ esac ++ # We check with `-c' and `-o' for the sake of the "dashmstdout" ++ # mode. It turns out that the SunPro C++ compiler does not properly ++ # handle `-M -o', and we need to detect this. ++ if depmode=$depmode \ ++ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ ++ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ ++ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ ++ >/dev/null 2>conftest.err && ++ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ++ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then ++ # icc doesn't choke on unknown options, it will just issue warnings ++ # or remarks (even with -Werror). So we grep stderr for any message ++ # that says an option was ignored or not supported. ++ # When given -MP, icc 7.0 and 7.1 complain thusly: ++ # icc: Command line warning: ignoring option '-M'; no argument required ++ # The diagnosis changed in icc 8.0: ++ # icc: Command line remark: option '-MP' not supported ++ if (grep 'ignoring option' conftest.err || ++ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else ++ am_cv_CC_dependencies_compiler_type=$depmode ++ break ++ fi ++ fi ++ done ++ ++ cd .. ++ rm -rf conftest.dir ++else ++ am_cv_CC_dependencies_compiler_type=none ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 ++echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } ++CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type ++ ++ if ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then ++ am__fastdepCC_TRUE= ++ am__fastdepCC_FALSE='#' ++else ++ am__fastdepCC_TRUE='#' ++ am__fastdepCC_FALSE= ++fi ++ ++ ++ BASECC="`basename $CC`" ++ CFLAGS="$ompi_cflags_save" ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CC "$CC" ++_ACEOF ++ ++ set dummy $CC ++ ompi_cc_argv0=$2 ++ ++# 1 is the variable name to do "which" on ++# 2 is the variable name to assign the return value to ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ompi_prog=$ompi_cc_argv0 ++ ++IFS_SAVE=$IFS ++IFS="$PATH_SEPARATOR" ++for ompi_dir in $PATH; do ++ if test -x "$ompi_dir/$ompi_prog"; then ++ OMPI_CC_ABSOLUTE="$ompi_dir/$ompi_prog" ++ break ++ fi ++done ++IFS=$IFS_SAVE ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++if test "x$CC" != xcc; then ++ { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 ++echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; } ++else ++ { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 ++echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; } ++fi ++set dummy $CC; ac_cc=`echo $2 | ++ sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` ++if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++# Make sure it works both with $CC and with simple cc. ++# We do the test twice because some compilers refuse to overwrite an ++# existing .o file with -o, though they will create one. ++ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' ++rm -f conftest2.* ++if { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && ++ test -f conftest2.$ac_objext && { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; ++then ++ eval ac_cv_prog_cc_${ac_cc}_c_o=yes ++ if test "x$CC" != xcc; then ++ # Test first that cc exists at all. ++ if { ac_try='cc -c conftest.$ac_ext >&5' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' ++ rm -f conftest2.* ++ if { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && ++ test -f conftest2.$ac_objext && { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; ++ then ++ # cc works too. ++ : ++ else ++ # cc exists but doesn't like -o. ++ eval ac_cv_prog_cc_${ac_cc}_c_o=no ++ fi ++ fi ++ fi ++else ++ eval ac_cv_prog_cc_${ac_cc}_c_o=no ++fi ++rm -f core conftest* ++ ++fi ++if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define NO_MINUS_C_MINUS_O 1 ++_ACEOF ++ ++fi ++ ++# FIXME: we rely on the cache variable name because ++# there is no other way. ++set dummy $CC ++ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` ++if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then ++ # Losing compiler, so override with the script. ++ # FIXME: It is wrong to rewrite CC. ++ # But if we don't then we get into trouble of one sort or another. ++ # A longer-term fix would be to have automake use am__CC in this case, ++ # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" ++ CC="$am_aux_dir/compile $CC" ++fi ++ ++ ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 ++echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } ++# On Suns, sometimes $CPP names a directory. ++if test -n "$CPP" && test -d "$CPP"; then ++ CPP= ++fi ++if test -z "$CPP"; then ++ if test "${ac_cv_prog_CPP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Double quotes because CPP needs to be expanded ++ for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" ++ do ++ ac_preproc_ok=false ++for ac_c_preproc_warn_flag in '' yes ++do ++ # Use a header file that comes with gcc, so configuring glibc ++ # with a fresh cross-compiler works. ++ # Prefer to if __STDC__ is defined, since ++ # exists even on freestanding compilers. ++ # On the NeXT, cc -E runs the code through the compiler's parser, ++ # not just through cpp. "Syntax error" is here to catch this case. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@ifdef __STDC__ ++@%:@ include ++@%:@else ++@%:@ include ++@%:@endif ++ Syntax error ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ : ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # Broken: fails on valid input. ++continue ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++ ++ # OK, works on sane cases. Now check whether nonexistent headers ++ # can be detected and how. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ # Broken: success on invalid input. ++continue ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # Passes both tests. ++ac_preproc_ok=: ++break ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++ ++done ++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ++rm -f conftest.err conftest.$ac_ext ++if $ac_preproc_ok; then ++ break ++fi ++ ++ done ++ ac_cv_prog_CPP=$CPP ++ ++fi ++ CPP=$ac_cv_prog_CPP ++else ++ ac_cv_prog_CPP=$CPP ++fi ++{ echo "$as_me:$LINENO: result: $CPP" >&5 ++echo "${ECHO_T}$CPP" >&6; } ++ac_preproc_ok=false ++for ac_c_preproc_warn_flag in '' yes ++do ++ # Use a header file that comes with gcc, so configuring glibc ++ # with a fresh cross-compiler works. ++ # Prefer to if __STDC__ is defined, since ++ # exists even on freestanding compilers. ++ # On the NeXT, cc -E runs the code through the compiler's parser, ++ # not just through cpp. "Syntax error" is here to catch this case. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@ifdef __STDC__ ++@%:@ include ++@%:@else ++@%:@ include ++@%:@endif ++ Syntax error ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ : ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # Broken: fails on valid input. ++continue ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++ ++ # OK, works on sane cases. Now check whether nonexistent headers ++ # can be detected and how. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ # Broken: success on invalid input. ++continue ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # Passes both tests. ++ac_preproc_ok=: ++break ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++ ++done ++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ++rm -f conftest.err conftest.$ac_ext ++if $ac_preproc_ok; then ++ : ++else ++ { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check ++See \`config.log' for more details." >&5 ++echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check ++See \`config.log' for more details." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 ++echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } ++if test "${ac_cv_path_GREP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Extract the first word of "grep ggrep" to use in msg output ++if test -z "$GREP"; then ++set dummy grep ggrep; ac_prog_name=$2 ++if test "${ac_cv_path_GREP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_path_GREP_found=false ++# Loop through the user's path and test for each of PROGNAME-LIST ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_prog in grep ggrep; do ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" ++ { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue ++ # Check for GNU ac_path_GREP and select it if it is found. ++ # Check for GNU $ac_path_GREP ++case `"$ac_path_GREP" --version 2>&1` in ++*GNU*) ++ ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; ++*) ++ ac_count=0 ++ echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" ++ while : ++ do ++ cat "conftest.in" "conftest.in" >"conftest.tmp" ++ mv "conftest.tmp" "conftest.in" ++ cp "conftest.in" "conftest.nl" ++ echo 'GREP' >> "conftest.nl" ++ "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break ++ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ++ ac_count=`expr $ac_count + 1` ++ if test $ac_count -gt ${ac_path_GREP_max-0}; then ++ # Best one so far, save it but keep looking for a better one ++ ac_cv_path_GREP="$ac_path_GREP" ++ ac_path_GREP_max=$ac_count ++ fi ++ # 10*(2^10) chars as input seems more than enough ++ test $ac_count -gt 10 && break ++ done ++ rm -f conftest.in conftest.tmp conftest.nl conftest.out;; ++esac ++ ++ ++ $ac_path_GREP_found && break 3 ++ done ++done ++ ++done ++IFS=$as_save_IFS ++ ++ ++fi ++ ++GREP="$ac_cv_path_GREP" ++if test -z "$GREP"; then ++ { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 ++echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ ac_cv_path_GREP=$GREP ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 ++echo "${ECHO_T}$ac_cv_path_GREP" >&6; } ++ GREP="$ac_cv_path_GREP" ++ ++ ++{ echo "$as_me:$LINENO: checking for egrep" >&5 ++echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } ++if test "${ac_cv_path_EGREP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 ++ then ac_cv_path_EGREP="$GREP -E" ++ else ++ # Extract the first word of "egrep" to use in msg output ++if test -z "$EGREP"; then ++set dummy egrep; ac_prog_name=$2 ++if test "${ac_cv_path_EGREP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_path_EGREP_found=false ++# Loop through the user's path and test for each of PROGNAME-LIST ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_prog in egrep; do ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" ++ { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue ++ # Check for GNU ac_path_EGREP and select it if it is found. ++ # Check for GNU $ac_path_EGREP ++case `"$ac_path_EGREP" --version 2>&1` in ++*GNU*) ++ ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; ++*) ++ ac_count=0 ++ echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" ++ while : ++ do ++ cat "conftest.in" "conftest.in" >"conftest.tmp" ++ mv "conftest.tmp" "conftest.in" ++ cp "conftest.in" "conftest.nl" ++ echo 'EGREP' >> "conftest.nl" ++ "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break ++ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ++ ac_count=`expr $ac_count + 1` ++ if test $ac_count -gt ${ac_path_EGREP_max-0}; then ++ # Best one so far, save it but keep looking for a better one ++ ac_cv_path_EGREP="$ac_path_EGREP" ++ ac_path_EGREP_max=$ac_count ++ fi ++ # 10*(2^10) chars as input seems more than enough ++ test $ac_count -gt 10 && break ++ done ++ rm -f conftest.in conftest.tmp conftest.nl conftest.out;; ++esac ++ ++ ++ $ac_path_EGREP_found && break 3 ++ done ++done ++ ++done ++IFS=$as_save_IFS ++ ++ ++fi ++ ++EGREP="$ac_cv_path_EGREP" ++if test -z "$EGREP"; then ++ { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 ++echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ ac_cv_path_EGREP=$EGREP ++fi ++ ++ ++ fi ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 ++echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } ++ EGREP="$ac_cv_path_EGREP" ++ ++ ++ ++ # AM_PROG_CC_C_O AC_REQUIREs AC_PROG_CC, so we have to be a little ++ # careful about ordering here, and AC_REQUIRE these things so that ++ # they get stamped out in the right order. ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for the C compiler vendor" >&5 ++echo $ECHO_N "checking for the C compiler vendor... $ECHO_C" >&6; } ++if test "${ompi_cv_c_compiler_vendor+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ ompi_check_compiler_vendor_result="unknown" ++ ++ # GNU is probably the most common, so check that one as soon as ++ # possible. Intel pretends to be GNU, so need to check Intel ++ # before checking for GNU. ++ ++ # Intel ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__INTEL_COMPILER) || defined(__ICC) ) ++#error "condition defined(__INTEL_COMPILER) || defined(__ICC) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="intel" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # GNU ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __GNUC__ ++#error "symbol __GNUC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="gnu" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Borland Turbo C ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __TURBOC__ ++#error "symbol __TURBOC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="borland" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Borland C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __BORLANDC__ ++#error "symbol __BORLANDC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="borland" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Comeau C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __COMO__ ++#error "symbol __COMO__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="comeau" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Compaq C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__DECC) || defined(VAXC) || defined(__VAXC) ) ++#error "condition defined(__DECC) || defined(VAXC) || defined(__VAXC) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="compaq" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__osf__) && defined(__LANGUAGE_C__) ) ++#error "condition defined(__osf__) && defined(__LANGUAGE_C__) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="compaq" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __DECCXX ++#error "symbol __DECCXX not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="compaq" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Cray C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef _CRAYC ++#error "symbol _CRAYC not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="cray" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Diab C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __DCC__ ++#error "symbol __DCC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="diab" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Digital Mars ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__DMC__) || defined(__SC__) || defined(__ZTC__) ) ++#error "condition defined(__DMC__) || defined(__SC__) || defined(__ZTC__) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="digital mars" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # HP ANSI C / aC++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__HP_cc) || defined(__HP_aCC) ) ++#error "condition defined(__HP_cc) || defined(__HP_aCC) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="hp" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # IBM XL C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) ) ++#error "condition defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="ibm" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(_AIX) && !defined(__GNUC__) ) ++#error "condition defined(_AIX) && !defined(__GNUC__) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="ibm" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # KAI C++ (rest in peace) ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __KCC ++#error "symbol __KCC not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="kai" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # LCC ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __LCC__ ++#error "symbol __LCC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="lcc" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # MetaWare High C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __HIGHC__ ++#error "symbol __HIGHC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="metaware high" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Metrowerks Codewarrior ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __MWERKS__ ++#error "symbol __MWERKS__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="metrowerks" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # MIPSpro (SGI) ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(sgi) || defined(__sgi) ) ++#error "condition defined(sgi) || defined(__sgi) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="sgi" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # MPW C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) ) ++#error "condition defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="mpw" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Microsoft ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ # Always use C compiler when checking for Microsoft, as ++ # Visual C++ doesn't recognize .cc as a C++ file. ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(_MSC_VER) || defined(__MSC_VER) ) ++#error "condition defined(_MSC_VER) || defined(__MSC_VER) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="microsoft" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++ ++ ++ # Norcroft C ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __CC_NORCROFT ++#error "symbol __CC_NORCROFT not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="norcroft" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Pelles C ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __POCC__ ++#error "symbol __POCC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="pelles" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Portland Group ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __PGI ++#error "symbol __PGI not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="portland group" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # SAS/C ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(SASC) || defined(__SASC) || defined(__SASC__) ) ++#error "condition defined(SASC) || defined(__SASC) || defined(__SASC__) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="sas" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Sun Workshop C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__SUNPRO_C) || defined(__SUNPRO_CC) ) ++#error "condition defined(__SUNPRO_C) || defined(__SUNPRO_CC) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="sun" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # TenDRA C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __TenDRA__ ++#error "symbol __TenDRA__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="tendra" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Tiny C ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __TINYC__ ++#error "symbol __TINYC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="tiny" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # USL C ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __USLC__ ++#error "symbol __USLC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="usl" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Watcom C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __WATCOMC__ ++#error "symbol __WATCOMC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="watcom" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ ompi_cv_c_compiler_vendor="$ompi_check_compiler_vendor_result" ++ unset ompi_check_compiler_vendor_result ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_compiler_vendor" >&5 ++echo "${ECHO_T}$ompi_cv_c_compiler_vendor" >&6; } ++ ++ ompi_c_vendor="$ompi_cv_c_compiler_vendor" ++ ++ ++ # Check for standard headers, needed here because needed before ++ # the types checks. ++ { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 ++echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } ++if test "${ac_cv_header_stdc+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++#include ++#include ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_header_stdc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_header_stdc=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++if test $ac_cv_header_stdc = yes; then ++ # SunOS 4.x string.h does not declare mem*, contrary to ANSI. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++_ACEOF ++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ++ $EGREP "memchr" >/dev/null 2>&1; then ++ : ++else ++ ac_cv_header_stdc=no ++fi ++rm -f conftest* ++ ++fi ++ ++if test $ac_cv_header_stdc = yes; then ++ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++_ACEOF ++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ++ $EGREP "free" >/dev/null 2>&1; then ++ : ++else ++ ac_cv_header_stdc=no ++fi ++rm -f conftest* ++ ++fi ++ ++if test $ac_cv_header_stdc = yes; then ++ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. ++ if test "$cross_compiling" = yes; then ++ : ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++#if ((' ' & 0x0FF) == 0x020) ++# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') ++# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) ++#else ++# define ISLOWER(c) \ ++ (('a' <= (c) && (c) <= 'i') \ ++ || ('j' <= (c) && (c) <= 'r') \ ++ || ('s' <= (c) && (c) <= 'z')) ++# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) ++#endif ++ ++#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) ++int ++main () ++{ ++ int i; ++ for (i = 0; i < 256; i++) ++ if (XOR (islower (i), ISLOWER (i)) ++ || toupper (i) != TOUPPER (i)) ++ return 2; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ : ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++ac_cv_header_stdc=no ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 ++echo "${ECHO_T}$ac_cv_header_stdc" >&6; } ++if test $ac_cv_header_stdc = yes; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define STDC_HEADERS 1 ++_ACEOF ++ ++fi ++ ++ ++ # GNU C and autotools are inconsistent about whether this is ++ # defined so let's make it true everywhere for now... However, IBM ++ # XL compilers on PPC Linux behave really badly when compiled with ++ # _GNU_SOURCE defined, so don't define it in that situation. ++ # ++ # Don't use AC_GNU_SOURCE because it requires that no compiler ++ # tests are done before setting it, and we need to at least do ++ # enough tests to figure out if we're using XL or not. ++ if test "$ompi_cv_c_compiler_vendor" != "ibm"; then ++ ++ ++ cat >>confdefs.h <<\_ACEOF ++@%:@define _GNU_SOURCE 1 ++_ACEOF ++ ++fi ++ ++ ++ # Do we want code coverage ++ if test "$WANT_COVERAGE" = "1"; then ++ if test "$ompi_c_vendor" = "gnu" ; then ++ # For compilers > gcc-4.x, use --coverage for ++ # compiling and linking to circumvent trouble with ++ # libgcov. ++ CFLAGS_orig="$CFLAGS" ++ LDFLAGS_orig="$LDFLAGS" ++ ++ CFLAGS="$CFLAGS_orig --coverage" ++ LDFLAGS="$LDFLAGS_orig --coverage" ++ OMPI_COVERAGE_FLAGS= ++ ++ { echo "$as_me:$LINENO: checking if $CC supports --coverage" >&5 ++echo $ECHO_N "checking if $CC supports --coverage... $ECHO_C" >&6; } ++if test "${ompi_cv_cc_coverage+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_cc_coverage="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cc_coverage="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cc_coverage" >&5 ++echo "${ECHO_T}$ompi_cv_cc_coverage" >&6; } ++ ++ if test "$ompi_cv_cc_coverage" = "yes" ; then ++ OMPI_COVERAGE_FLAGS="--coverage" ++ CLEANFILES="*.gcno ${CLEANFILES}" ++ CONFIG_CLEAN_FILES="*.gcda *.gcov ${CONFIG_CLEAN_FILES}" ++ else ++ OMPI_COVERAGE_FLAGS="-ftest-coverage -fprofile-arcs" ++ CLEANFILES="*.bb *.bbg ${CLEANFILES}" ++ CONFIG_CLEAN_FILES="*.da *.*.gcov ${CONFIG_CLEAN_FILES}" ++ fi ++ CFLAGS="$CFLAGS_orig $OMPI_COVERAGE_FLAGS" ++ LDFLAGS="$LDFLAGS_orig $OMPI_COVERAGE_FLAGS" ++ WRAPPER_EXTRA_CFLAGS="${WRAPPER_EXTRA_CFLAGS} $OMPI_COVERAGE_FLAGS" ++ WRAPPER_EXTRA_LDFLAGS="${WRAPPER_EXTRA_LDFLAGS} $OMPI_COVERAGE_FLAGS" ++ ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=CFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${CFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=LDFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${LDFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=WRAPPER_EXTRA_CFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${WRAPPER_EXTRA_CFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=WRAPPER_EXTRA_LDFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${WRAPPER_EXTRA_LDFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ { echo "$as_me:$LINENO: WARNING: $OMPI_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&5 ++echo "$as_me: WARNING: $OMPI_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&2;} ++ ++ WANT_DEBUG=1 ++ else ++ { echo "$as_me:$LINENO: WARNING: Code coverage functionality is currently available only with GCC" >&5 ++echo "$as_me: WARNING: Code coverage functionality is currently available only with GCC" >&2;} ++ { { echo "$as_me:$LINENO: error: Configure: Cannot continue" >&5 ++echo "$as_me: error: Configure: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # Do we want debugging? ++ if test "$WANT_DEBUG" = "1" -a "$enable_debug_symbols" != "no" ; then ++ if test "$ompi_c_vendor" = "gnu"; then ++ CFLAGS="$CFLAGS -g" # keep the -g3 for when it will become a standard option. ++ else ++ CFLAGS="$CFLAGS -g" ++ fi ++ ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=CFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${CFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ { echo "$as_me:$LINENO: WARNING: -g has been added to CFLAGS (--enable-debug)" >&5 ++echo "$as_me: WARNING: -g has been added to CFLAGS (--enable-debug)" >&2;} ++ fi ++ ++ # These flags are generally gcc-specific; even the ++ # gcc-impersonating compilers won't accept them. ++ OMPI_CFLAGS_BEFORE_PICKY="$CFLAGS" ++ if test "$WANT_PICKY_COMPILER" = 1 -a "$ompi_c_vendor" = "gnu" ; then ++ add="-Wall -Wundef -Wno-long-long -Wsign-compare" ++ add="$add -Wmissing-prototypes -Wstrict-prototypes" ++ add="$add -Wcomment -pedantic" ++ ++ # see if -Wno-long-double works... ++ CFLAGS_orig="$CFLAGS" ++ # CFLAGS="$CFLAGS -Wno-long-double" ++ # Starting with GCC-4.4, the compiler complains about not ++ # knowing -Wno-long-double, only if -Wstrict-prototypes is set, too. ++ # ++ # Actually, this is not real fix, as GCC will pass on any -Wno- flag, ++ # have fun with the warning: -Wno-britney ++ CFLAGS="$CFLAGS $add -Wno-long-double -Wstrict-prototypes" ++ ++ { echo "$as_me:$LINENO: checking if $CC supports -Wno-long-double" >&5 ++echo $ECHO_N "checking if $CC supports -Wno-long-double... $ECHO_C" >&6; } ++if test "${ompi_cv_cc_wno_long_double+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_cc_wno_long_double="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cc_wno_long_double="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cc_wno_long_double" >&5 ++echo "${ECHO_T}$ompi_cv_cc_wno_long_double" >&6; } ++ ++ CFLAGS="$CFLAGS_orig" ++ if test "$ompi_cv_cc_wno_long_double" = "yes" ; then ++ add="$add -Wno-long-double" ++ fi ++ ++ add="$add -Werror-implicit-function-declaration " ++ ++ CFLAGS="$CFLAGS $add" ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=CFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${CFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ { echo "$as_me:$LINENO: WARNING: $add has been added to CFLAGS (--enable-picky)" >&5 ++echo "$as_me: WARNING: $add has been added to CFLAGS (--enable-picky)" >&2;} ++ unset add ++ fi ++ ++ # See if this version of gcc allows -finline-functions and/or ++ # -fno-strict-aliasing. Even check the gcc-impersonating compilers. ++ if test "$GCC" = "yes"; then ++ CFLAGS_orig="$CFLAGS" ++ ++ CFLAGS="$CFLAGS_orig -finline-functions" ++ add= ++ { echo "$as_me:$LINENO: checking if $CC supports -finline-functions" >&5 ++echo $ECHO_N "checking if $CC supports -finline-functions... $ECHO_C" >&6; } ++if test "${ompi_cv_cc_finline_functions+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_cc_finline_functions="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cc_finline_functions="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cc_finline_functions" >&5 ++echo "${ECHO_T}$ompi_cv_cc_finline_functions" >&6; } ++ if test "$ompi_cv_cc_finline_functions" = "yes" ; then ++ add=" -finline-functions" ++ fi ++ CFLAGS="$CFLAGS_orig$add" ++ ++ CFLAGS_orig="$CFLAGS" ++ CFLAGS="$CFLAGS_orig -fno-strict-aliasing" ++ add= ++ { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5 ++echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; } ++if test "${ompi_cv_cc_fno_strict_aliasing+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_cc_fno_strict_aliasing="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cc_fno_strict_aliasing="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cc_fno_strict_aliasing" >&5 ++echo "${ECHO_T}$ompi_cv_cc_fno_strict_aliasing" >&6; } ++ if test "$ompi_cv_cc_fno_strict_aliasing" = "yes" ; then ++ add=" -fno-strict-aliasing" ++ fi ++ CFLAGS="$CFLAGS_orig$add" ++ ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=CFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${CFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ { echo "$as_me:$LINENO: WARNING: $add has been added to CFLAGS" >&5 ++echo "$as_me: WARNING: $add has been added to CFLAGS" >&2;} ++ unset add ++ fi ++ ++ # Try to enable restrict keyword ++ RESTRICT_CFLAGS= ++ case "$ompi_c_vendor" in ++ intel) ++ RESTRICT_CFLAGS="-restrict" ++ ;; ++ sgi) ++ RESTRICT_CFLAGS="-LANG:restrict=ON" ++ ;; ++ esac ++ if test ! -z "$RESTRICT_CFLAGS" ; then ++ CFLAGS_orig="$CFLAGS" ++ CFLAGS="$CFLAGS_orig $RESTRICT_CFLAGS" ++ add= ++ { echo "$as_me:$LINENO: checking if $CC supports $RESTRICT_CFLAGS" >&5 ++echo $ECHO_N "checking if $CC supports $RESTRICT_CFLAGS... $ECHO_C" >&6; } ++if test "${ompi_cv_cc_restrict_cflags+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_cc_restrict_cflags="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cc_restrict_cflags="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cc_restrict_cflags" >&5 ++echo "${ECHO_T}$ompi_cv_cc_restrict_cflags" >&6; } ++ if test "$ompi_cv_cc_restrict_cflags" = "yes" ; then ++ add=" $RESTRICT_CFLAGS" ++ fi ++ ++ CFLAGS="${CFLAGS_orig}${add}" ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=CFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${CFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ if test "$add" != "" ; then ++ { echo "$as_me:$LINENO: WARNING: $add has been added to CFLAGS" >&5 ++echo "$as_me: WARNING: $add has been added to CFLAGS" >&2;} ++ fi ++ unset add ++ fi ++ ++ # see if the C compiler supports __builtin_expect ++ { echo "$as_me:$LINENO: checking if $CC supports __builtin_expect" >&5 ++echo $ECHO_N "checking if $CC supports __builtin_expect... $ECHO_C" >&6; } ++if test "${ompi_cv_cc_supports___builtin_expect+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++void *ptr = (void*) 0; ++ if (__builtin_expect (ptr != (void*) 0, 1)) return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_cc_supports___builtin_expect="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cc_supports___builtin_expect="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cc_supports___builtin_expect" >&5 ++echo "${ECHO_T}$ompi_cv_cc_supports___builtin_expect" >&6; } ++ if test "$ompi_cv_cc_supports___builtin_expect" = "yes" ; then ++ have_builtin_expect=1 ++ else ++ have_builtin_expect=0 ++ fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_C_HAVE_BUILTIN_EXPECT $have_builtin_expect ++_ACEOF ++ ++ ++ # see if the C compiler supports __builtin_prefetch ++ { echo "$as_me:$LINENO: checking if $CC supports __builtin_prefetch" >&5 ++echo $ECHO_N "checking if $CC supports __builtin_prefetch... $ECHO_C" >&6; } ++if test "${ompi_cv_cc_supports___builtin_prefetch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++int ptr; ++ __builtin_prefetch(&ptr,0,0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_cc_supports___builtin_prefetch="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cc_supports___builtin_prefetch="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cc_supports___builtin_prefetch" >&5 ++echo "${ECHO_T}$ompi_cv_cc_supports___builtin_prefetch" >&6; } ++ if test "$ompi_cv_cc_supports___builtin_prefetch" = "yes" ; then ++ have_builtin_prefetch=1 ++ else ++ have_builtin_prefetch=0 ++ fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_C_HAVE_BUILTIN_PREFETCH $have_builtin_prefetch ++_ACEOF ++ ++ ++ # Preload the optflags for the case where the user didn't specify ++ # any. If we're using GNU compilers, use -O3 (since it GNU ++ # doesn't require all compilation units to be compiled with the ++ # same level of optimization -- selecting a high level of ++ # optimization is not prohibitive). If we're using anything else, ++ # be conservative and just use -O. ++ # ++ # Note: gcc-impersonating compilers accept -O3 ++ if test "$WANT_DEBUG" = "1"; then ++ OPTFLAGS= ++ else ++ if test "$GCC" = yes; then ++ OPTFLAGS="-O3" ++ else ++ OPTFLAGS="-O" ++ fi ++ fi ++ ++ ++ ++# Modularize this setup so that sub-configure.in scripts can use this ++# same setup code. ++ ++################################## ++# Optimization flags ++################################## ++ ++# If the user did not specify optimization flags, add some (the value ++# from $OPTFLAGS) ++ ++co_arg=""$OMPI_CFLAGS_BEFORE_PICKY"" ++co_found=0 ++for co_word in $co_arg; do ++ # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs ++ # for an explanation of @<:@ and @:>@ -- they m4 expand to [ and ] ++ case $co_word in ++ -g) co_found=1 ;; ++ -g@<:@1-3@:>@) co_found=1 ;; ++ +K@<:@0-5@:>@) co_found=1 ;; ++ -O) co_found=1 ;; ++ -O@<:@0-9@:>@) co_found=1 ;; ++ -xO) co_found=1 ;; ++ -xO@<:@0-9@:>@) co_found=1 ;; ++ -fast) co_found=1 ;; ++ ++ # The below Sun Studio flags require or ++ # trigger -xO optimization ++ -xvector*) co_found=1 ;; ++ -xdepend=yes) co_found=1 ;; ++ ++ esac ++done ++ ++if test "$co_found" = "0"; then ++ co_result="$OPTFLAGS $co_arg" ++else ++ co_result="$co_arg" ++fi ++ ++# Clean up ++ ++unset co_found co_word co_arg ++ ++ OMPI_CFLAGS_BEFORE_PICKY="$co_result" ++ ++ { echo "$as_me:$LINENO: checking for C optimization flags" >&5 ++echo $ECHO_N "checking for C optimization flags... $ECHO_C" >&6; } ++ ++ ++# Modularize this setup so that sub-configure.in scripts can use this ++# same setup code. ++ ++################################## ++# Optimization flags ++################################## ++ ++# If the user did not specify optimization flags, add some (the value ++# from $OPTFLAGS) ++ ++co_arg=""$CFLAGS"" ++co_found=0 ++for co_word in $co_arg; do ++ # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs ++ # for an explanation of @<:@ and @:>@ -- they m4 expand to [ and ] ++ case $co_word in ++ -g) co_found=1 ;; ++ -g@<:@1-3@:>@) co_found=1 ;; ++ +K@<:@0-5@:>@) co_found=1 ;; ++ -O) co_found=1 ;; ++ -O@<:@0-9@:>@) co_found=1 ;; ++ -xO) co_found=1 ;; ++ -xO@<:@0-9@:>@) co_found=1 ;; ++ -fast) co_found=1 ;; ++ ++ # The below Sun Studio flags require or ++ # trigger -xO optimization ++ -xvector*) co_found=1 ;; ++ -xdepend=yes) co_found=1 ;; ++ ++ esac ++done ++ ++if test "$co_found" = "0"; then ++ co_result="$OPTFLAGS $co_arg" ++else ++ co_result="$co_arg" ++fi ++ ++# Clean up ++ ++unset co_found co_word co_arg ++ ++ { echo "$as_me:$LINENO: result: $co_result" >&5 ++echo "${ECHO_T}$co_result" >&6; } ++ CFLAGS="$co_result" ++ ++ CFLAGS_WITHOUT_OPTFLAGS="" ++ for co_word in $CFLAGS ; do ++ co_found=0 ++ # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs ++ # for an explanation of @<:@ and @:>@ -- they m4 expand to [ and ] ++ case $co_word in ++ +K@<:@0-5@:>@) co_found=1 ;; ++ -O) co_found=1 ;; ++ -O@<:@0-9@:>@) co_found=1 ;; ++ -xO) co_found=1 ;; ++ -xO@<:@0-9@:>@) co_found=1 ;; ++ -fast) co_found=1 ;; ++ ++ # The below Sun Studio flags require or ++ # trigger -xO optimization ++ -xvector*) co_found=1 ;; ++ -xdepend=yes) co_found=1 ;; ++ ++ esac ++ if test "$co_found" = "0" ; then ++ CFLAGS_WITHOUT_OPTFLAGS="$CFLAGS_WITHOUT_OPTFLAGS $co_word" ++ fi ++ done ++ ++ unset co_found co_word ++ ++ ++ ++ ++# If we build on a windows environment with the windows compiler and linker ++# then we need some translation functions from the opal/win32 directory. ++ if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then ++ OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE= ++ OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE='#' ++else ++ OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE='#' ++ OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE= ++fi ++ ++ ++# Do all Interix detections if necessary ++ ++ ++ { echo "$as_me:$LINENO: checking for Interix environment" >&5 ++echo $ECHO_N "checking for Interix environment... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++#if !defined(__INTERIX) ++ #error Normal Unix environment ++ #endif ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ is_interix=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ is_interix=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ { echo "$as_me:$LINENO: result: $is_interix" >&5 ++echo "${ECHO_T}$is_interix" >&6; } ++ if test "$is_interix" = "yes"; then ++ ++ ompi_show_subtitle "Interix detection" ++ ++ if ! test -d /usr/include/port; then ++ { echo "$as_me:$LINENO: WARNING: Compiling Open MPI under Interix require an up-to-date" >&5 ++echo "$as_me: WARNING: Compiling Open MPI under Interix require an up-to-date" >&2;} ++ { echo "$as_me:$LINENO: WARNING: version of libport. Please ask your system administrator" >&5 ++echo "$as_me: WARNING: version of libport. Please ask your system administrator" >&2;} ++ { echo "$as_me:$LINENO: WARNING: to install it (pkg_update -L libport)." >&5 ++echo "$as_me: WARNING: to install it (pkg_update -L libport)." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ # ++ # These are the minimum requirements for Interix ... ++ # ++ { echo "$as_me:$LINENO: WARNING: -lport was added to the linking flags" >&5 ++echo "$as_me: WARNING: -lport was added to the linking flags" >&2;} ++ LDFLAGS="-lport $LDFLAGS" ++ { echo "$as_me:$LINENO: WARNING: -D_ALL_SOURCE -D_USE_LIBPORT was added to the compilation flags" >&5 ++echo "$as_me: WARNING: -D_ALL_SOURCE -D_USE_LIBPORT was added to the compilation flags" >&2;} ++ CFLAGS="-D_ALL_SOURCE -D_USE_LIBPORT -I/usr/include/port $CFLAGS" ++ CPPFLAGS="-D_ALL_SOURCE -D_USE_LIBPORT -I/usr/include/port $CPPFLAGS" ++ CXXFLAGS="-D_ALL_SOURCE -D_USE_LIBPORT -I/usr/include/port $CXXFLAGS" ++ ++ fi ++ ++ ++ ++# Does the compiler support "ident"-like constructs? ++ ++ ++ { echo "$as_me:$LINENO: checking for C ident string support" >&5 ++echo $ECHO_N "checking for C ident string support... $ECHO_C" >&6; } ++ ++ ompi_pragma_ident_happy=0 ++ ompi_ident_happy=0 ++ ompi_static_const_char_happy=0 ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_ident_happy=1 ++ ompi_message="#pragma ident" ++else ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_ident_happy=1 ++ ompi_message="#ident" ++else ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_ident_happy=1 ++ ompi_message="#ident" ++else ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_ident_happy=1 ++ ompi_message="#ident" ++else ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CC_USE_PRAGMA_IDENT $ompi_pragma_ident_happy ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CC_USE_IDENT $ompi_ident_happy ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CC_USE_PRAGMA_COMMENT $ompi_pragma_comment_happy ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CC_USE_CONST_CHAR_IDENT $ompi_static_const_char_happy ++_ACEOF ++ ++ ++ { echo "$as_me:$LINENO: result: $ompi_message" >&5 ++echo "${ECHO_T}$ompi_message" >&6; } ++ ++ unset ompi_pragma_ident_happy ompi_ident_happy ompi_static_const_char_happy ompi_message ++ ++ ++# ++# Check for some types ++# ++ ++# On IRIX 5.3, sys/types and inttypes.h are conflicting. ++ ++ ++ ++ ++ ++ ++ ++ ++ ++for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ ++ inttypes.h stdint.h unistd.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ eval "$as_ac_Header=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_Header=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++ ++{ echo "$as_me:$LINENO: checking for long long" >&5 ++echo $ECHO_N "checking for long long... $ECHO_C" >&6; } ++if test "${ac_cv_type_long_long+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef long long ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_long_long=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_long_long=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 ++echo "${ECHO_T}$ac_cv_type_long_long" >&6; } ++if test $ac_cv_type_long_long = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_LONG_LONG 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for long double" >&5 ++echo $ECHO_N "checking for long double... $ECHO_C" >&6; } ++if test "${ac_cv_type_long_double+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef long double ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_long_double=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_long_double=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 ++echo "${ECHO_T}$ac_cv_type_long_double" >&6; } ++if test $ac_cv_type_long_double = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_LONG_DOUBLE 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for int8_t" >&5 ++echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_int8_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef int8_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_int8_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_int8_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 ++echo "${ECHO_T}$ac_cv_type_int8_t" >&6; } ++if test $ac_cv_type_int8_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_INT8_T 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for uint8_t" >&5 ++echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_uint8_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef uint8_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_uint8_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_uint8_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 ++echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; } ++if test $ac_cv_type_uint8_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_UINT8_T 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for int16_t" >&5 ++echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_int16_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef int16_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_int16_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_int16_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 ++echo "${ECHO_T}$ac_cv_type_int16_t" >&6; } ++if test $ac_cv_type_int16_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_INT16_T 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for uint16_t" >&5 ++echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_uint16_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef uint16_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_uint16_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_uint16_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 ++echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; } ++if test $ac_cv_type_uint16_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_UINT16_T 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for int32_t" >&5 ++echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_int32_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef int32_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_int32_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_int32_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 ++echo "${ECHO_T}$ac_cv_type_int32_t" >&6; } ++if test $ac_cv_type_int32_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_INT32_T 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for uint32_t" >&5 ++echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_uint32_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef uint32_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_uint32_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_uint32_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 ++echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; } ++if test $ac_cv_type_uint32_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_UINT32_T 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for int64_t" >&5 ++echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_int64_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef int64_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_int64_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_int64_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 ++echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } ++if test $ac_cv_type_int64_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_INT64_T 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for uint64_t" >&5 ++echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_uint64_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef uint64_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_uint64_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_uint64_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 ++echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } ++if test $ac_cv_type_uint64_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_UINT64_T 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for intptr_t" >&5 ++echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_intptr_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef intptr_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_intptr_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_intptr_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 ++echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; } ++if test $ac_cv_type_intptr_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_INTPTR_T 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for uintptr_t" >&5 ++echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_uintptr_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef uintptr_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_uintptr_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_uintptr_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 ++echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } ++if test $ac_cv_type_uintptr_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_UINTPTR_T 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for mode_t" >&5 ++echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_mode_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef mode_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_mode_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_mode_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 ++echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } ++if test $ac_cv_type_mode_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_MODE_T 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for ssize_t" >&5 ++echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_ssize_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef ssize_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_ssize_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_ssize_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 ++echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } ++if test $ac_cv_type_ssize_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_SSIZE_T 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 ++echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_ptrdiff_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef ptrdiff_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_ptrdiff_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_ptrdiff_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 ++echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } ++if test $ac_cv_type_ptrdiff_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_PTRDIFF_T 1 ++_ACEOF ++ ++ ++fi ++ ++ ++# ++# Check for type sizes ++# ++ ++{ echo "$as_me:$LINENO: checking for char" >&5 ++echo $ECHO_N "checking for char... $ECHO_C" >&6; } ++if test "${ac_cv_type_char+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef char ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_char=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_char=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 ++echo "${ECHO_T}$ac_cv_type_char" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of char" >&5 ++echo $ECHO_N "checking size of char... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_char+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef char ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef char ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef char ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef char ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef char ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_char=$ac_lo;; ++'') if test "$ac_cv_type_char" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (char) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_char=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef char ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_char=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_char" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (char) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_char=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_char" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_CHAR $ac_cv_sizeof_char ++_ACEOF ++ ++ ++{ echo "$as_me:$LINENO: checking for short" >&5 ++echo $ECHO_N "checking for short... $ECHO_C" >&6; } ++if test "${ac_cv_type_short+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef short ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_short=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_short=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 ++echo "${ECHO_T}$ac_cv_type_short" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of short" >&5 ++echo $ECHO_N "checking size of short... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_short+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef short ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef short ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef short ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef short ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef short ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_short=$ac_lo;; ++'') if test "$ac_cv_type_short" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (short) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_short=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef short ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_short=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_short" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (short) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_short=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_SHORT $ac_cv_sizeof_short ++_ACEOF ++ ++ ++{ echo "$as_me:$LINENO: checking for int" >&5 ++echo $ECHO_N "checking for int... $ECHO_C" >&6; } ++if test "${ac_cv_type_int+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef int ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_int=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_int=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 ++echo "${ECHO_T}$ac_cv_type_int" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of int" >&5 ++echo $ECHO_N "checking size of int... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_int+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef int ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef int ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef int ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef int ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef int ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_int=$ac_lo;; ++'') if test "$ac_cv_type_int" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (int) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_int=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef int ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_int=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_int" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (int) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_int=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_INT $ac_cv_sizeof_int ++_ACEOF ++ ++ ++{ echo "$as_me:$LINENO: checking for long" >&5 ++echo $ECHO_N "checking for long... $ECHO_C" >&6; } ++if test "${ac_cv_type_long+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef long ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_long=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_long=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 ++echo "${ECHO_T}$ac_cv_type_long" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of long" >&5 ++echo $ECHO_N "checking size of long... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_long+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_long=$ac_lo;; ++'') if test "$ac_cv_type_long" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (long) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_long=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_long=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_long" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (long) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_long=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_LONG $ac_cv_sizeof_long ++_ACEOF ++ ++ ++if test $ac_cv_type_long_long = yes; then ++ { echo "$as_me:$LINENO: checking for long long" >&5 ++echo $ECHO_N "checking for long long... $ECHO_C" >&6; } ++if test "${ac_cv_type_long_long+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef long long ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_long_long=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_long_long=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 ++echo "${ECHO_T}$ac_cv_type_long_long" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of long long" >&5 ++echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_long_long+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long long ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long long ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long long ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long long ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long long ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_long_long=$ac_lo;; ++'') if test "$ac_cv_type_long_long" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (long long) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_long_long=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long long ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_long_long=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_long_long" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (long long) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_long_long=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long ++_ACEOF ++ ++ ++fi ++if test $ac_cv_type_long_double = yes; then ++ { echo "$as_me:$LINENO: checking for long double" >&5 ++echo $ECHO_N "checking for long double... $ECHO_C" >&6; } ++if test "${ac_cv_type_long_double+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef long double ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_long_double=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_long_double=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 ++echo "${ECHO_T}$ac_cv_type_long_double" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of long double" >&5 ++echo $ECHO_N "checking size of long double... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_long_double+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long double ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long double ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long double ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long double ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long double ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_long_double=$ac_lo;; ++'') if test "$ac_cv_type_long_double" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (long double) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_long_double=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef long double ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_long_double=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_long_double" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (long double) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_long_double=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double ++_ACEOF ++ ++ ++fi ++{ echo "$as_me:$LINENO: checking for float" >&5 ++echo $ECHO_N "checking for float... $ECHO_C" >&6; } ++if test "${ac_cv_type_float+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef float ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_float=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_float=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 ++echo "${ECHO_T}$ac_cv_type_float" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of float" >&5 ++echo $ECHO_N "checking size of float... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_float+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef float ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef float ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef float ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef float ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef float ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_float=$ac_lo;; ++'') if test "$ac_cv_type_float" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (float) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_float=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef float ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_float=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_float" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (float) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_float=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_float" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_FLOAT $ac_cv_sizeof_float ++_ACEOF ++ ++ ++{ echo "$as_me:$LINENO: checking for double" >&5 ++echo $ECHO_N "checking for double... $ECHO_C" >&6; } ++if test "${ac_cv_type_double+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef double ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_double=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_double=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 ++echo "${ECHO_T}$ac_cv_type_double" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of double" >&5 ++echo $ECHO_N "checking size of double... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_double+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef double ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef double ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef double ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef double ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef double ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_double=$ac_lo;; ++'') if test "$ac_cv_type_double" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (double) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_double=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef double ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_double=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_double" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (double) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_double=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_double" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_DOUBLE $ac_cv_sizeof_double ++_ACEOF ++ ++ ++{ echo "$as_me:$LINENO: checking for void *" >&5 ++echo $ECHO_N "checking for void *... $ECHO_C" >&6; } ++if test "${ac_cv_type_void_p+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef void * ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_void_p=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_void_p=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 ++echo "${ECHO_T}$ac_cv_type_void_p" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of void *" >&5 ++echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_void_p+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef void * ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef void * ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef void * ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef void * ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef void * ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_void_p=$ac_lo;; ++'') if test "$ac_cv_type_void_p" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (void *) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_void_p=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef void * ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_void_p=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_void_p" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (void *) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_void_p=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_VOID_P $ac_cv_sizeof_void_p ++_ACEOF ++ ++ ++{ echo "$as_me:$LINENO: checking for size_t" >&5 ++echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_size_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef size_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_size_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_size_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 ++echo "${ECHO_T}$ac_cv_type_size_t" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of size_t" >&5 ++echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_size_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef size_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef size_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef size_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef size_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef size_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_size_t=$ac_lo;; ++'') if test "$ac_cv_type_size_t" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (size_t) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_size_t=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef size_t ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_size_t=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_size_t" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (size_t) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_size_t=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t ++_ACEOF ++ ++ ++if test $ac_cv_type_ssize_t = yes ; then ++ { echo "$as_me:$LINENO: checking for ssize_t" >&5 ++echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_ssize_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef ssize_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_ssize_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_ssize_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 ++echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of ssize_t" >&5 ++echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_ssize_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef ssize_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef ssize_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef ssize_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef ssize_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef ssize_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_ssize_t=$ac_lo;; ++'') if test "$ac_cv_type_ssize_t" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (ssize_t) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_ssize_t=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef ssize_t ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_ssize_t=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_ssize_t" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (ssize_t) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_ssize_t=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t ++_ACEOF ++ ++ ++fi ++if test $ac_cv_type_ptrdiff_t = yes; then ++ { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 ++echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_ptrdiff_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef ptrdiff_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_ptrdiff_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_ptrdiff_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 ++echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5 ++echo $ECHO_N "checking size of ptrdiff_t... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef ptrdiff_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef ptrdiff_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef ptrdiff_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef ptrdiff_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef ptrdiff_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_ptrdiff_t=$ac_lo;; ++'') if test "$ac_cv_type_ptrdiff_t" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (ptrdiff_t) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_ptrdiff_t=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef ptrdiff_t ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_ptrdiff_t=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_ptrdiff_t" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (ptrdiff_t) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_ptrdiff_t=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_ptrdiff_t" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_ptrdiff_t" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t ++_ACEOF ++ ++ ++fi ++ ++# ++# Check for type alignments ++# ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of char" >&5 ++echo $ECHO_N "checking alignment of char... $ECHO_C" >&6; } ++if test "${ompi_cv_c_align_char+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # cross compile - do a non-executable test. Trick ++ # taken from the Autoconf 2.59c. Switch to using ++ # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; char y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; char y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; char y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; char y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; char y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ompi_cv_c_align_char=$ac_lo;; ++'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; char y; } ompi__type_alignof_; ++ ++static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); } ++static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) offsetof (ompi__type_alignof_, y)) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_char=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++ ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++struct foo { char c; char x; }; ++int main() ++{ ++ struct foo *p = (struct foo *) malloc(sizeof(struct foo)); ++ int diff; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ diff = ((char *)&p->x) - ((char *)&p->c); ++ fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_char=`cat conftestval` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_align_char" >&5 ++echo "${ECHO_T}$ompi_cv_c_align_char" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_CHAR $ompi_cv_c_align_char ++_ACEOF ++ ++eval "OMPI_ALIGNMENT_CHAR=$ompi_cv_c_align_char" ++ ++rm -rf conftest* ++ ++ { echo "$as_me:$LINENO: checking alignment of short" >&5 ++echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; } ++if test "${ompi_cv_c_align_short+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # cross compile - do a non-executable test. Trick ++ # taken from the Autoconf 2.59c. Switch to using ++ # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; short y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; short y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; short y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; short y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; short y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ompi_cv_c_align_short=$ac_lo;; ++'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; short y; } ompi__type_alignof_; ++ ++static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); } ++static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) offsetof (ompi__type_alignof_, y)) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_short=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++ ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++struct foo { char c; short x; }; ++int main() ++{ ++ struct foo *p = (struct foo *) malloc(sizeof(struct foo)); ++ int diff; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ diff = ((char *)&p->x) - ((char *)&p->c); ++ fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_short=`cat conftestval` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_align_short" >&5 ++echo "${ECHO_T}$ompi_cv_c_align_short" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_SHORT $ompi_cv_c_align_short ++_ACEOF ++ ++eval "OMPI_ALIGNMENT_SHORT=$ompi_cv_c_align_short" ++ ++rm -rf conftest* ++ ++ { echo "$as_me:$LINENO: checking alignment of wchar_t" >&5 ++echo $ECHO_N "checking alignment of wchar_t... $ECHO_C" >&6; } ++if test "${ompi_cv_c_align_wchar_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # cross compile - do a non-executable test. Trick ++ # taken from the Autoconf 2.59c. Switch to using ++ # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; wchar_t y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; wchar_t y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; wchar_t y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; wchar_t y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; wchar_t y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ompi_cv_c_align_wchar_t=$ac_lo;; ++'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; wchar_t y; } ompi__type_alignof_; ++ ++static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); } ++static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) offsetof (ompi__type_alignof_, y)) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_wchar_t=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++ ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++struct foo { char c; wchar_t x; }; ++int main() ++{ ++ struct foo *p = (struct foo *) malloc(sizeof(struct foo)); ++ int diff; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ diff = ((char *)&p->x) - ((char *)&p->c); ++ fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_wchar_t=`cat conftestval` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_align_wchar_t" >&5 ++echo "${ECHO_T}$ompi_cv_c_align_wchar_t" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_WCHAR $ompi_cv_c_align_wchar_t ++_ACEOF ++ ++eval "OMPI_ALIGNMENT_WCHAR=$ompi_cv_c_align_wchar_t" ++ ++rm -rf conftest* ++ ++ { echo "$as_me:$LINENO: checking alignment of int" >&5 ++echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; } ++if test "${ompi_cv_c_align_int+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # cross compile - do a non-executable test. Trick ++ # taken from the Autoconf 2.59c. Switch to using ++ # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; int y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; int y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; int y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; int y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; int y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ompi_cv_c_align_int=$ac_lo;; ++'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; int y; } ompi__type_alignof_; ++ ++static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); } ++static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) offsetof (ompi__type_alignof_, y)) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_int=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++ ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++struct foo { char c; int x; }; ++int main() ++{ ++ struct foo *p = (struct foo *) malloc(sizeof(struct foo)); ++ int diff; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ diff = ((char *)&p->x) - ((char *)&p->c); ++ fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_int=`cat conftestval` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_align_int" >&5 ++echo "${ECHO_T}$ompi_cv_c_align_int" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_INT $ompi_cv_c_align_int ++_ACEOF ++ ++eval "OMPI_ALIGNMENT_INT=$ompi_cv_c_align_int" ++ ++rm -rf conftest* ++ ++ { echo "$as_me:$LINENO: checking alignment of long" >&5 ++echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; } ++if test "${ompi_cv_c_align_long+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # cross compile - do a non-executable test. Trick ++ # taken from the Autoconf 2.59c. Switch to using ++ # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ompi_cv_c_align_long=$ac_lo;; ++'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long y; } ompi__type_alignof_; ++ ++static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); } ++static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) offsetof (ompi__type_alignof_, y)) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_long=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++ ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++struct foo { char c; long x; }; ++int main() ++{ ++ struct foo *p = (struct foo *) malloc(sizeof(struct foo)); ++ int diff; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ diff = ((char *)&p->x) - ((char *)&p->c); ++ fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_long=`cat conftestval` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_align_long" >&5 ++echo "${ECHO_T}$ompi_cv_c_align_long" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_LONG $ompi_cv_c_align_long ++_ACEOF ++ ++eval "OMPI_ALIGNMENT_LONG=$ompi_cv_c_align_long" ++ ++rm -rf conftest* ++if test $ac_cv_type_long_long = yes; then ++ ++ { echo "$as_me:$LINENO: checking alignment of long long" >&5 ++echo $ECHO_N "checking alignment of long long... $ECHO_C" >&6; } ++if test "${ompi_cv_c_align_long_long+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # cross compile - do a non-executable test. Trick ++ # taken from the Autoconf 2.59c. Switch to using ++ # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long long y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long long y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long long y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long long y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long long y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ompi_cv_c_align_long_long=$ac_lo;; ++'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long long y; } ompi__type_alignof_; ++ ++static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); } ++static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) offsetof (ompi__type_alignof_, y)) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_long_long=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++ ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++struct foo { char c; long long x; }; ++int main() ++{ ++ struct foo *p = (struct foo *) malloc(sizeof(struct foo)); ++ int diff; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ diff = ((char *)&p->x) - ((char *)&p->c); ++ fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_long_long=`cat conftestval` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_align_long_long" >&5 ++echo "${ECHO_T}$ompi_cv_c_align_long_long" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_LONG_LONG $ompi_cv_c_align_long_long ++_ACEOF ++ ++eval "OMPI_ALIGNMENT_LONG_LONG=$ompi_cv_c_align_long_long" ++ ++rm -rf conftest* ++fi ++ ++ { echo "$as_me:$LINENO: checking alignment of float" >&5 ++echo $ECHO_N "checking alignment of float... $ECHO_C" >&6; } ++if test "${ompi_cv_c_align_float+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # cross compile - do a non-executable test. Trick ++ # taken from the Autoconf 2.59c. Switch to using ++ # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; float y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; float y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; float y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; float y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; float y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ompi_cv_c_align_float=$ac_lo;; ++'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; float y; } ompi__type_alignof_; ++ ++static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); } ++static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) offsetof (ompi__type_alignof_, y)) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_float=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++ ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++struct foo { char c; float x; }; ++int main() ++{ ++ struct foo *p = (struct foo *) malloc(sizeof(struct foo)); ++ int diff; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ diff = ((char *)&p->x) - ((char *)&p->c); ++ fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_float=`cat conftestval` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_align_float" >&5 ++echo "${ECHO_T}$ompi_cv_c_align_float" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FLOAT $ompi_cv_c_align_float ++_ACEOF ++ ++eval "OMPI_ALIGNMENT_FLOAT=$ompi_cv_c_align_float" ++ ++rm -rf conftest* ++ ++ { echo "$as_me:$LINENO: checking alignment of double" >&5 ++echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; } ++if test "${ompi_cv_c_align_double+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # cross compile - do a non-executable test. Trick ++ # taken from the Autoconf 2.59c. Switch to using ++ # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; double y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; double y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; double y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; double y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; double y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ompi_cv_c_align_double=$ac_lo;; ++'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; double y; } ompi__type_alignof_; ++ ++static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); } ++static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) offsetof (ompi__type_alignof_, y)) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_double=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++ ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++struct foo { char c; double x; }; ++int main() ++{ ++ struct foo *p = (struct foo *) malloc(sizeof(struct foo)); ++ int diff; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ diff = ((char *)&p->x) - ((char *)&p->c); ++ fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_double=`cat conftestval` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_align_double" >&5 ++echo "${ECHO_T}$ompi_cv_c_align_double" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_DOUBLE $ompi_cv_c_align_double ++_ACEOF ++ ++eval "OMPI_ALIGNMENT_DOUBLE=$ompi_cv_c_align_double" ++ ++rm -rf conftest* ++if test $ac_cv_type_long_double = yes; then ++ ++ { echo "$as_me:$LINENO: checking alignment of long double" >&5 ++echo $ECHO_N "checking alignment of long double... $ECHO_C" >&6; } ++if test "${ompi_cv_c_align_long_double+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # cross compile - do a non-executable test. Trick ++ # taken from the Autoconf 2.59c. Switch to using ++ # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long double y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long double y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long double y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long double y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long double y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ompi_cv_c_align_long_double=$ac_lo;; ++'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; long double y; } ompi__type_alignof_; ++ ++static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); } ++static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) offsetof (ompi__type_alignof_, y)) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_long_double=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++ ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++struct foo { char c; long double x; }; ++int main() ++{ ++ struct foo *p = (struct foo *) malloc(sizeof(struct foo)); ++ int diff; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ diff = ((char *)&p->x) - ((char *)&p->c); ++ fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_long_double=`cat conftestval` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_align_long_double" >&5 ++echo "${ECHO_T}$ompi_cv_c_align_long_double" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_LONG_DOUBLE $ompi_cv_c_align_long_double ++_ACEOF ++ ++eval "OMPI_ALIGNMENT_LONG_DOUBLE=$ompi_cv_c_align_long_double" ++ ++rm -rf conftest* ++fi ++ ++ { echo "$as_me:$LINENO: checking alignment of void *" >&5 ++echo $ECHO_N "checking alignment of void *... $ECHO_C" >&6; } ++if test "${ompi_cv_c_align_void_p+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # cross compile - do a non-executable test. Trick ++ # taken from the Autoconf 2.59c. Switch to using ++ # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; void * y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; void * y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; void * y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; void * y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; void * y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ompi_cv_c_align_void_p=$ac_lo;; ++'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; void * y; } ompi__type_alignof_; ++ ++static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); } ++static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) offsetof (ompi__type_alignof_, y)) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_void_p=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++ ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++struct foo { char c; void * x; }; ++int main() ++{ ++ struct foo *p = (struct foo *) malloc(sizeof(struct foo)); ++ int diff; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ diff = ((char *)&p->x) - ((char *)&p->c); ++ fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_void_p=`cat conftestval` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_align_void_p" >&5 ++echo "${ECHO_T}$ompi_cv_c_align_void_p" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_VOID_P $ompi_cv_c_align_void_p ++_ACEOF ++ ++eval "OMPI_ALIGNMENT_VOID_P=$ompi_cv_c_align_void_p" ++ ++rm -rf conftest* ++ ++# ++# Does the C compiler native support "bool"? (i.e., without ++# or any other help) ++# ++ ++{ echo "$as_me:$LINENO: checking for C bool type" >&5 ++echo $ECHO_N "checking for C bool type... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++$ac_includes_default ++int ++main () ++{ ++bool bar, foo = true; bar = foo; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ OMPI_NEED_C_BOOL=0 MSG=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ OMPI_NEED_C_BOOL=1 MSG=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_NEED_C_BOOL $OMPI_NEED_C_BOOL ++_ACEOF ++ ++{ echo "$as_me:$LINENO: result: $MSG" >&5 ++echo "${ECHO_T}$MSG" >&6; } ++ ++# ++# Check for other compiler characteristics ++# ++ ++if test "$GCC" = "yes"; then ++ ++ # gcc 2.96 will emit oodles of warnings if you use "inline" with ++ # -pedantic (which we do in developer builds). However, ++ # "__inline__" is ok. So we have to force gcc to select the ++ # right one. If you use -pedantic, the AC_C_INLINE test will fail ++ # (because it names a function foo() -- without the (void)). So ++ # we turn off all the picky flags, turn on -ansi mode (which is ++ # implied by -pedantic), and set warnings to be errors. Hence, ++ # this does the following (for 2.96): ++ # ++ # - causes the check for "inline" to emit a warning, which then ++ # fails ++ # - checks for __inline__, which then emits no error, and works ++ # ++ # This also works nicely for gcc 3.x because "inline" will work on ++ # the first check, and all is fine. :-) ++ ++ CFLAGS_save="$CFLAGS" ++ CFLAGS="$OMPI_CFLAGS_BEFORE_PICKY -Werror -ansi" ++fi ++{ echo "$as_me:$LINENO: checking for inline" >&5 ++echo $ECHO_N "checking for inline... $ECHO_C" >&6; } ++if test "${ac_cv_c_inline+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_c_inline=no ++for ac_kw in inline __inline__ __inline; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#ifndef __cplusplus ++typedef int foo_t; ++static $ac_kw foo_t static_foo () {return 0; } ++$ac_kw foo_t foo () {return 0; } ++#endif ++ ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_c_inline=$ac_kw ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ test "$ac_cv_c_inline" != no && break ++done ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 ++echo "${ECHO_T}$ac_cv_c_inline" >&6; } ++ ++ ++case $ac_cv_c_inline in ++ inline | yes) ;; ++ *) ++ case $ac_cv_c_inline in ++ no) ac_val=;; ++ *) ac_val=$ac_cv_c_inline;; ++ esac ++ cat >>confdefs.h <<_ACEOF ++#ifndef __cplusplus ++#define inline $ac_val ++#endif ++_ACEOF ++ ;; ++esac ++ ++# Microsoft compilers support 2 versions of restrict. One for functions, and ++# one for variables. The problem is that they don't have an equivalent ++# syntax, and the autoconf restrict detection is unable to detect them ++# correctly. It detect the restrict keyword as __restrict which break the ++# rules for function syntax which is declspec(restrict). ++if test "x$ompi_cv_c_compiler_vendor" != "xmicrosoft"; then ++ { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5 ++echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; } ++if test "${ac_cv_c_restrict+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_c_restrict=no ++ # Try the official restrict keyword, then gcc's __restrict, and ++ # the less common variants. ++ for ac_kw in restrict __restrict __restrict__ _Restrict; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++typedef int * int_ptr; ++ int foo (int_ptr $ac_kw ip) { ++ return ip[0]; ++ } ++int ++main () ++{ ++int s[1]; ++ int * $ac_kw t = s; ++ t[0] = 0; ++ return foo(t) ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_c_restrict=$ac_kw ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ test "$ac_cv_c_restrict" != no && break ++ done ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5 ++echo "${ECHO_T}$ac_cv_c_restrict" >&6; } ++ case $ac_cv_c_restrict in ++ restrict) ;; ++ no) ++cat >>confdefs.h <<\_ACEOF ++@%:@define restrict ++_ACEOF ++ ;; ++ *) cat >>confdefs.h <<_ACEOF ++@%:@define restrict $ac_cv_c_restrict ++_ACEOF ++ ;; ++ esac ++ ++fi ++ ++ { echo "$as_me:$LINENO: checking for weak symbol support" >&5 ++echo $ECHO_N "checking for weak symbol support... $ECHO_C" >&6; } ++if test "${ompi_cv_c_weak_symbols+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # need two files because icc will incorrectly not create the ++ # symbols if they are not used in the object file in which they ++ # are defined. Blah! ++ # To get to compile with icc, have them in a separate header. ++ cat > conftest_weak.h < conftest_weak.c < conftest.c <&5 ++$CC $CFLAGS -c conftest_weak.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS conftest.c conftest_weak.o -o conftest $LDFLAGS $LIBS" >&5 ++$CC $CFLAGS conftest.c conftest_weak.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_c_weak_symbols_happy=1 ++else ++ unset ompi_status ++ ompi_c_weak_symbols_happy=0 ++fi ++else ++ unset ompi_status ++ ompi_c_weak_symbols_happy=0 ++fi ++ ++ if test "$ompi_c_weak_symbols_happy" = "1"; then ++ ompi_cv_c_weak_symbols="yes" ++else ++ ompi_cv_c_weak_symbols="no" ++fi ++ ++ ++ unset ompi_c_weak_symbols_happy ++ rm -f conftest_weak.h conftest_weak.c conftest.c conftest ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_weak_symbols" >&5 ++echo "${ECHO_T}$ompi_cv_c_weak_symbols" >&6; } ++ ++ if test "$ompi_cv_c_weak_symbols" = "yes"; then ++ OMPI_C_HAVE_WEAK_SYMBOLS=1 ++else ++ OMPI_C_HAVE_WEAK_SYMBOLS=0 ++fi ++ ++ ++if test "$GCC" = "yes"; then ++ CFLAGS="$CFLAGS_save" ++fi ++ ++if test "x$CC" = "xicc"; then ++ ++{ echo "$as_me:$LINENO: checking whether icc-8.1 for EM64T works with variable arguments" >&5 ++echo $ECHO_N "checking whether icc-8.1 for EM64T works with variable arguments... $ECHO_C" >&6; } ++if test "$cross_compiling" = yes; then ++ ompi_ac_icc_varargs=1 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++ ++void func (int c, char * f, ...) ++{ ++ va_list arglist; ++ va_start (arglist, f); ++ /* vprintf (f, arglist); */ ++ va_end (arglist); ++} ++ ++int main () ++{ ++ FILE *f; ++ func (4711, "Help %d [%s]\n", 10, "ten"); ++ f=fopen ("conftestval", "w"); ++ if (!f) exit (1); ++ return 0; ++} ++ ++ ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_ac_icc_varargs=`test -f conftestval` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++ompi_ac_icc_varargs=1 ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ ++if test "$ompi_ac_icc_varargs" = "1"; then ++ { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Your icc-8.1 compiler seems to miscompile va_start!" >&5 ++echo "$as_me: WARNING: *** Your icc-8.1 compiler seems to miscompile va_start!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Please upgrade compiler to at least version 8.1.027" >&5 ++echo "$as_me: WARNING: *** Please upgrade compiler to at least version 8.1.027" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++{ echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++rm -rf conftest* ++fi ++ ++# If we want the profiling layer: ++# - If the C compiler has weak symbols, use those. ++# - If not, then set to compile the code again with #define's in a ++# separate directory. ++ ++if test "$WANT_WEAK_SYMBOLS" = "0"; then ++ OMPI_C_HAVE_WEAK_SYMBOLS=0 ++fi ++if test "$WANT_MPI_PROFILING" = "1"; then ++ if test "$OMPI_C_HAVE_WEAK_SYMBOLS" = "1"; then ++ OMPI_PROFILING_COMPILE_SEPARATELY=0 ++ else ++ OMPI_PROFILING_COMPILE_SEPARATELY=1 ++ fi ++else ++ OMPI_PROFILING_COMPILE_SEPARATELY=0 ++fi ++ ++# ++# There are 2 layers to the MPI Language binidings One layer generates ++# MPI_* bindings. The other layer generates PMPI_* bindings. The ++# following conditions determine whether each (or both) these layers ++# are built. ++# 1. MPI_* bindings are needed if: ++# - Profiling is not required ++# - Profiling is required but weak symbols are not ++# supported ++# 2. PMPI_* bindings are needed if profiling is required. Hence we ++# define 2 conditionals which tell us whether each of these layers ++# need to be built or NOT ++# ++ ++ if test "$WANT_MPI_PROFILING" = 0 -o "$OMPI_PROFILING_COMPILE_SEPARATELY" = 1; then ++ WANT_MPI_BINDINGS_LAYER_TRUE= ++ WANT_MPI_BINDINGS_LAYER_FALSE='#' ++else ++ WANT_MPI_BINDINGS_LAYER_TRUE='#' ++ WANT_MPI_BINDINGS_LAYER_FALSE= ++fi ++ ++ ++ if test "$WANT_MPI_PROFILING" = 1; then ++ WANT_PMPI_BINDINGS_LAYER_TRUE= ++ WANT_PMPI_BINDINGS_LAYER_FALSE='#' ++else ++ WANT_PMPI_BINDINGS_LAYER_TRUE='#' ++ WANT_PMPI_BINDINGS_LAYER_FALSE= ++fi ++ ++ if test "$OMPI_PROFILING_COMPILE_SEPARATELY" = 1; then ++ COMPILE_PROFILING_SEPARATELY_TRUE= ++ COMPILE_PROFILING_SEPARATELY_FALSE='#' ++else ++ COMPILE_PROFILING_SEPARATELY_TRUE='#' ++ COMPILE_PROFILING_SEPARATELY_FALSE= ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ENABLE_MPI_PROFILING $WANT_MPI_PROFILING ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_WEAK_SYMBOLS $OMPI_C_HAVE_WEAK_SYMBOLS ++_ACEOF ++ ++ ++ ++################################## ++# C++ compiler characteristics ++################################## ++ ++ ++ ompi_show_subtitle "C++ compiler and preprocessor" ++ ++ ++ ++ ompi_cxxflags_save="$CXXFLAGS" ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++if test -z "$CXX"; then ++ if test -n "$CCC"; then ++ CXX=$CCC ++ else ++ if test -n "$ac_tool_prefix"; then ++ for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC ++ do ++ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ++set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_CXX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$CXX"; then ++ ac_cv_prog_CXX="$CXX" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++CXX=$ac_cv_prog_CXX ++if test -n "$CXX"; then ++ { echo "$as_me:$LINENO: result: $CXX" >&5 ++echo "${ECHO_T}$CXX" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$CXX" && break ++ done ++fi ++if test -z "$CXX"; then ++ ac_ct_CXX=$CXX ++ for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_CXX"; then ++ ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_CXX="$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_CXX=$ac_cv_prog_ac_ct_CXX ++if test -n "$ac_ct_CXX"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 ++echo "${ECHO_T}$ac_ct_CXX" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$ac_ct_CXX" && break ++done ++ ++ if test "x$ac_ct_CXX" = x; then ++ CXX="g++" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ CXX=$ac_ct_CXX ++ fi ++fi ++ ++ fi ++fi ++# Provide some information about the compiler. ++echo "$as_me:$LINENO: checking for C++ compiler version" >&5 ++ac_compiler=`set X $ac_compile; echo $2` ++{ (ac_try="$ac_compiler --version >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler --version >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -v >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -v >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -V >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -V >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++ ++{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 ++echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } ++if test "${ac_cv_cxx_compiler_gnu+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++#ifndef __GNUC__ ++ choke me ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_compiler_gnu=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_compiler_gnu=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ac_cv_cxx_compiler_gnu=$ac_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 ++echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } ++GXX=`test $ac_compiler_gnu = yes && echo yes` ++ac_test_CXXFLAGS=${CXXFLAGS+set} ++ac_save_CXXFLAGS=$CXXFLAGS ++{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 ++echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } ++if test "${ac_cv_prog_cxx_g+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_save_cxx_werror_flag=$ac_cxx_werror_flag ++ ac_cxx_werror_flag=yes ++ ac_cv_prog_cxx_g=no ++ CXXFLAGS="-g" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_cxx_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ CXXFLAGS="" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ : ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cxx_werror_flag=$ac_save_cxx_werror_flag ++ CXXFLAGS="-g" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_cxx_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_cxx_werror_flag=$ac_save_cxx_werror_flag ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 ++echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } ++if test "$ac_test_CXXFLAGS" = set; then ++ CXXFLAGS=$ac_save_CXXFLAGS ++elif test $ac_cv_prog_cxx_g = yes; then ++ if test "$GXX" = yes; then ++ CXXFLAGS="-g -O2" ++ else ++ CXXFLAGS="-g" ++ fi ++else ++ if test "$GXX" = yes; then ++ CXXFLAGS="-O2" ++ else ++ CXXFLAGS= ++ fi ++fi ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++depcc="$CXX" am_compiler_list= ++ ++{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 ++echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } ++if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then ++ # We make a subdir and do the tests there. Otherwise we can end up ++ # making bogus files that we don't know about and never remove. For ++ # instance it was reported that on HP-UX the gcc test will end up ++ # making a dummy file named `D' -- because `-MD' means `put the output ++ # in D'. ++ mkdir conftest.dir ++ # Copy depcomp to subdir because otherwise we won't find it if we're ++ # using a relative directory. ++ cp "$am_depcomp" conftest.dir ++ cd conftest.dir ++ # We will build objects and dependencies in a subdirectory because ++ # it helps to detect inapplicable dependency modes. For instance ++ # both Tru64's cc and ICC support -MD to output dependencies as a ++ # side effect of compilation, but ICC will put the dependencies in ++ # the current directory while Tru64 will put them in the object ++ # directory. ++ mkdir sub ++ ++ am_cv_CXX_dependencies_compiler_type=none ++ if test "$am_compiler_list" = ""; then ++ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` ++ fi ++ for depmode in $am_compiler_list; do ++ # Setup a source with many dependencies, because some compilers ++ # like to wrap large dependency lists on column 80 (with \), and ++ # we should not choose a depcomp mode which is confused by this. ++ # ++ # We need to recreate these files for each test, as the compiler may ++ # overwrite some of them when testing with obscure command lines. ++ # This happens at least with the AIX C compiler. ++ : > sub/conftest.c ++ for i in 1 2 3 4 5 6; do ++ echo '#include "conftst'$i'.h"' >> sub/conftest.c ++ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with ++ # Solaris 8's {/usr,}/bin/sh. ++ touch sub/conftst$i.h ++ done ++ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf ++ ++ case $depmode in ++ nosideeffect) ++ # after this tag, mechanisms are not by side-effect, so they'll ++ # only be used when explicitly requested ++ if test "x$enable_dependency_tracking" = xyes; then ++ continue ++ else ++ break ++ fi ++ ;; ++ none) break ;; ++ esac ++ # We check with `-c' and `-o' for the sake of the "dashmstdout" ++ # mode. It turns out that the SunPro C++ compiler does not properly ++ # handle `-M -o', and we need to detect this. ++ if depmode=$depmode \ ++ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ ++ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ ++ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ ++ >/dev/null 2>conftest.err && ++ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ++ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then ++ # icc doesn't choke on unknown options, it will just issue warnings ++ # or remarks (even with -Werror). So we grep stderr for any message ++ # that says an option was ignored or not supported. ++ # When given -MP, icc 7.0 and 7.1 complain thusly: ++ # icc: Command line warning: ignoring option '-M'; no argument required ++ # The diagnosis changed in icc 8.0: ++ # icc: Command line remark: option '-MP' not supported ++ if (grep 'ignoring option' conftest.err || ++ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else ++ am_cv_CXX_dependencies_compiler_type=$depmode ++ break ++ fi ++ fi ++ done ++ ++ cd .. ++ rm -rf conftest.dir ++else ++ am_cv_CXX_dependencies_compiler_type=none ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 ++echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } ++CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type ++ ++ if ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then ++ am__fastdepCXX_TRUE= ++ am__fastdepCXX_FALSE='#' ++else ++ am__fastdepCXX_TRUE='#' ++ am__fastdepCXX_FALSE= ++fi ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 ++echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } ++if test -z "$CXXCPP"; then ++ if test "${ac_cv_prog_CXXCPP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Double quotes because CXXCPP needs to be expanded ++ for CXXCPP in "$CXX -E" "/lib/cpp" ++ do ++ ac_preproc_ok=false ++for ac_cxx_preproc_warn_flag in '' yes ++do ++ # Use a header file that comes with gcc, so configuring glibc ++ # with a fresh cross-compiler works. ++ # Prefer to if __STDC__ is defined, since ++ # exists even on freestanding compilers. ++ # On the NeXT, cc -E runs the code through the compiler's parser, ++ # not just through cpp. "Syntax error" is here to catch this case. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@ifdef __STDC__ ++@%:@ include ++@%:@else ++@%:@ include ++@%:@endif ++ Syntax error ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ : ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # Broken: fails on valid input. ++continue ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++ ++ # OK, works on sane cases. Now check whether nonexistent headers ++ # can be detected and how. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ # Broken: success on invalid input. ++continue ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # Passes both tests. ++ac_preproc_ok=: ++break ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++ ++done ++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ++rm -f conftest.err conftest.$ac_ext ++if $ac_preproc_ok; then ++ break ++fi ++ ++ done ++ ac_cv_prog_CXXCPP=$CXXCPP ++ ++fi ++ CXXCPP=$ac_cv_prog_CXXCPP ++else ++ ac_cv_prog_CXXCPP=$CXXCPP ++fi ++{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 ++echo "${ECHO_T}$CXXCPP" >&6; } ++ac_preproc_ok=false ++for ac_cxx_preproc_warn_flag in '' yes ++do ++ # Use a header file that comes with gcc, so configuring glibc ++ # with a fresh cross-compiler works. ++ # Prefer to if __STDC__ is defined, since ++ # exists even on freestanding compilers. ++ # On the NeXT, cc -E runs the code through the compiler's parser, ++ # not just through cpp. "Syntax error" is here to catch this case. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@ifdef __STDC__ ++@%:@ include ++@%:@else ++@%:@ include ++@%:@endif ++ Syntax error ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ : ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # Broken: fails on valid input. ++continue ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++ ++ # OK, works on sane cases. Now check whether nonexistent headers ++ # can be detected and how. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ # Broken: success on invalid input. ++continue ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # Passes both tests. ++ac_preproc_ok=: ++break ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++ ++done ++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ++rm -f conftest.err conftest.$ac_ext ++if $ac_preproc_ok; then ++ : ++else ++ { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check ++See \`config.log' for more details." >&5 ++echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check ++See \`config.log' for more details." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ BASECXX="`basename $CXX`" ++ CXXFLAGS="$ompi_cxxflags_save" ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CXX "$CXX" ++_ACEOF ++ ++ set dummy $CXX ++ ompi_cxx_argv0=$2 ++ ++# 1 is the variable name to do "which" on ++# 2 is the variable name to assign the return value to ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ompi_prog=$ompi_cxx_argv0 ++ ++IFS_SAVE=$IFS ++IFS="$PATH_SEPARATOR" ++for ompi_dir in $PATH; do ++ if test -x "$ompi_dir/$ompi_prog"; then ++ OMPI_CXX_ABSOLUTE="$ompi_dir/$ompi_prog" ++ break ++ fi ++done ++IFS=$IFS_SAVE ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for the C++ compiler vendor" >&5 ++echo $ECHO_N "checking for the C++ compiler vendor... $ECHO_C" >&6; } ++if test "${ompi_cv_cxx_compiler_vendor+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ ++ ompi_check_compiler_vendor_result="unknown" ++ ++ # GNU is probably the most common, so check that one as soon as ++ # possible. Intel pretends to be GNU, so need to check Intel ++ # before checking for GNU. ++ ++ # Intel ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__INTEL_COMPILER) || defined(__ICC) ) ++#error "condition defined(__INTEL_COMPILER) || defined(__ICC) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="intel" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # GNU ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __GNUC__ ++#error "symbol __GNUC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="gnu" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Borland Turbo C ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __TURBOC__ ++#error "symbol __TURBOC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="borland" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Borland C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __BORLANDC__ ++#error "symbol __BORLANDC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="borland" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Comeau C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __COMO__ ++#error "symbol __COMO__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="comeau" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Compaq C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__DECC) || defined(VAXC) || defined(__VAXC) ) ++#error "condition defined(__DECC) || defined(VAXC) || defined(__VAXC) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="compaq" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__osf__) && defined(__LANGUAGE_C__) ) ++#error "condition defined(__osf__) && defined(__LANGUAGE_C__) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="compaq" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __DECCXX ++#error "symbol __DECCXX not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="compaq" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Cray C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef _CRAYC ++#error "symbol _CRAYC not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="cray" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Diab C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __DCC__ ++#error "symbol __DCC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="diab" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Digital Mars ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__DMC__) || defined(__SC__) || defined(__ZTC__) ) ++#error "condition defined(__DMC__) || defined(__SC__) || defined(__ZTC__) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="digital mars" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # HP ANSI C / aC++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__HP_cc) || defined(__HP_aCC) ) ++#error "condition defined(__HP_cc) || defined(__HP_aCC) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="hp" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # IBM XL C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) ) ++#error "condition defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="ibm" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(_AIX) && !defined(__GNUC__) ) ++#error "condition defined(_AIX) && !defined(__GNUC__) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="ibm" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # KAI C++ (rest in peace) ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __KCC ++#error "symbol __KCC not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="kai" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # LCC ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __LCC__ ++#error "symbol __LCC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="lcc" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # MetaWare High C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __HIGHC__ ++#error "symbol __HIGHC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="metaware high" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Metrowerks Codewarrior ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __MWERKS__ ++#error "symbol __MWERKS__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="metrowerks" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # MIPSpro (SGI) ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(sgi) || defined(__sgi) ) ++#error "condition defined(sgi) || defined(__sgi) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="sgi" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # MPW C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) ) ++#error "condition defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="mpw" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Microsoft ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ # Always use C compiler when checking for Microsoft, as ++ # Visual C++ doesn't recognize .cc as a C++ file. ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(_MSC_VER) || defined(__MSC_VER) ) ++#error "condition defined(_MSC_VER) || defined(__MSC_VER) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="microsoft" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++fi ++ ++ ++ # Norcroft C ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __CC_NORCROFT ++#error "symbol __CC_NORCROFT not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="norcroft" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Pelles C ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __POCC__ ++#error "symbol __POCC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="pelles" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Portland Group ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __PGI ++#error "symbol __PGI not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="portland group" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # SAS/C ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(SASC) || defined(__SASC) || defined(__SASC__) ) ++#error "condition defined(SASC) || defined(__SASC) || defined(__SASC__) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="sas" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Sun Workshop C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#if !( defined(__SUNPRO_C) || defined(__SUNPRO_CC) ) ++#error "condition defined(__SUNPRO_C) || defined(__SUNPRO_CC) not met" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="sun" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # TenDRA C/C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __TenDRA__ ++#error "symbol __TenDRA__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="tendra" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Tiny C ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __TINYC__ ++#error "symbol __TINYC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="tiny" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # USL C ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __USLC__ ++#error "symbol __USLC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="usl" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # Watcom C++ ++ if test "$ompi_check_compiler_vendor_result" = "unknown"; then ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#ifndef __WATCOMC__ ++#error "symbol __WATCOMC__ not defined" ++choke me ++#endif ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_check_compiler_vendor_result="watcom" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ ompi_cv_cxx_compiler_vendor="$ompi_check_compiler_vendor_result" ++ unset ompi_check_compiler_vendor_result ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cxx_compiler_vendor" >&5 ++echo "${ECHO_T}$ompi_cv_cxx_compiler_vendor" >&6; } ++ ++ ompi_cxx_vendor="$ompi_cv_c_compiler_vendor" ++ ++ ++ # Make sure that the C++ compiler both works and is actually a C++ ++ # compiler (if not cross-compiling). Don't just use the AC macro ++ # so that we can have a pretty message. Do something here that ++ # should force the linking of C++-specific things (e.g., STL ++ # strings) so that we can force a hard check of compiling, ++ # linking, and running a C++ application Note that some C ++ # compilers, such as at least some versions of the GNU and Intel ++ # compilers, will detect that the file extension is ".cc" and ++ # therefore switch into a pseudo-C++ personality which works for ++ # *compiling*, but does not work for *linking*. So in this test, ++ # we want to cover the entire spectrum (compiling, linking, ++ # running). ++ ++ if test "$ompi_cv_cxx_compiler_vendor" != "microsoft" ; then ++ ++ ++ { echo "$as_me:$LINENO: checking if C++ compiler works" >&5 ++echo $ECHO_N "checking if C++ compiler works... $ECHO_C" >&6; } ++if test "${ompi_cv_Cpp_works+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ if test "$cross_compiling" = yes; then ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++std::string foo = "Hello, world" ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_Cpp_works="links (cross compiling)" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_Cpp_works="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++std::string foo = "Hello, world" ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_Cpp_works="yes" ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++ompi_cv_Cpp_works="no" ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_Cpp_works" >&5 ++echo "${ECHO_T}$ompi_cv_Cpp_works" >&6; } ++ if test "$ompi_cv_Cpp_works" = "no"; then ++ cat <&2 ++********************************************************************** ++* It appears that your C++ compiler is unable to produce working ++* executables. A simple test application failed to properly ++* execute. Note that this is likely not a problem with Open MPI, ++* but a problem with the local compiler installation. More ++* information (including exactly what command was given to the ++* compiler and what error resulted when the command was executed) is ++* available in the config.log file in this directory. ++********************************************************************** ++EOF ++ { { echo "$as_me:$LINENO: error: Could not run a simple C++ program. Aborting." >&5 ++echo "$as_me: error: Could not run a simple C++ program. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ ++ fi ++ ++ ++ ++ ++ ++ ++ # Do we want code coverage ++ if test "$WANT_COVERAGE" = "1"; then ++ if test "$ompi_cxx_vendor" = "gnu" ; then ++ { echo "$as_me:$LINENO: WARNING: $OMPI_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&5 ++echo "$as_me: WARNING: $OMPI_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&2;} ++ WANT_DEBUG=1 ++ CXXFLAGS="${CXXFLAGS} $OMPI_COVERAGE_FLAGS" ++ WRAPPER_EXTRA_CXXFLAGS="${WRAPPER_EXTRA_CXXFLAGS} $OMPI_COVERAGE_FLAGS" ++ else ++ { echo "$as_me:$LINENO: WARNING: Code coverage functionality is currently available only with GCC suite" >&5 ++echo "$as_me: WARNING: Code coverage functionality is currently available only with GCC suite" >&2;} ++ { { echo "$as_me:$LINENO: error: Configure: cannot continue" >&5 ++echo "$as_me: error: Configure: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # Do we want debugging? ++ if test "$WANT_DEBUG" = "1" -a "$enable_debug_symbols" != "no" ; then ++ CXXFLAGS="$CXXFLAGS -g" ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=CXXFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${CXXFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ { echo "$as_me:$LINENO: WARNING: -g has been added to CXXFLAGS (--enable-debug)" >&5 ++echo "$as_me: WARNING: -g has been added to CXXFLAGS (--enable-debug)" >&2;} ++ fi ++ ++ # These flags are generally g++-specific; even the g++-impersonating ++ # compilers won't accept them. ++ OMPI_CXXFLAGS_BEFORE_PICKY="$CXXFLAGS" ++ if test "$WANT_PICKY_COMPILER" = 1 -a "$ompi_cxx_vendor" = "gnu"; then ++ add="-Wall -Wundef -Wno-long-long" ++ ++ # see if -Wno-long-double works... ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ CXXFLAGS_orig="$CXXFLAGS" ++ CXXFLAGS="$CXXFLAGS $add -Wno-long-double -fstrict-prototype" ++ { echo "$as_me:$LINENO: checking if $CXX supports -Wno-long-double" >&5 ++echo $ECHO_N "checking if $CXX supports -Wno-long-double... $ECHO_C" >&6; } ++if test "${ompi_cv_cxx_wno_long_double+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_cxx_wno_long_double="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cxx_wno_long_double="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cxx_wno_long_double" >&5 ++echo "${ECHO_T}$ompi_cv_cxx_wno_long_double" >&6; } ++ CXXFLAGS="$CXXFLAGS_orig" ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_cv_cxx_wno_long_double" = "yes" ; then ++ add="$add -Wno-long-double" ++ fi ++ ++ CXXFLAGS="$CXXFLAGS $add" ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=CXXFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${CXXFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ if test "$add" != "" ; then ++ { echo "$as_me:$LINENO: WARNING: $add has been added to CXXFLAGS (--enable-picky)" >&5 ++echo "$as_me: WARNING: $add has been added to CXXFLAGS (--enable-picky)" >&2;} ++ fi ++ unset add ++ fi ++ ++ # See if this version of g++ allows -finline-functions ++ if test "$GXX" = "yes"; then ++ CXXFLAGS_orig="$CXXFLAGS" ++ CXXFLAGS="$CXXFLAGS -finline-functions" ++ add= ++ { echo "$as_me:$LINENO: checking if $CXX supports -finline-functions" >&5 ++echo $ECHO_N "checking if $CXX supports -finline-functions... $ECHO_C" >&6; } ++if test "${ompi_cv_cxx_finline_functions+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_cxx_finline_functions="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cxx_finline_functions="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cxx_finline_functions" >&5 ++echo "${ECHO_T}$ompi_cv_cxx_finline_functions" >&6; } ++ if test "$ompi_cv_cxx_finline_functions" = "yes" ; then ++ add=" -finline-functions" ++ fi ++ CXXFLAGS="$CXXFLAGS_orig$add" ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=CXXFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${CXXFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ if test "$add" != "" ; then ++ { echo "$as_me:$LINENO: WARNING: $add has been added to CXXFLAGS" >&5 ++echo "$as_me: WARNING: $add has been added to CXXFLAGS" >&2;} ++ fi ++ unset add ++ fi ++ ++ # Check for special things due to C++ exceptions ++ ENABLE_CXX_EXCEPTIONS=no ++ HAVE_CXX_EXCEPTIONS=0 ++ # Check whether --enable-cxx-exceptions was given. ++if test "${enable_cxx_exceptions+set}" = set; then ++ enableval=$enable_cxx_exceptions; ENABLE_CXX_EXCEPTIONS="$enableval" ++fi ++ ++ ++ { echo "$as_me:$LINENO: checking if want C++ exception handling" >&5 ++echo $ECHO_N "checking if want C++ exception handling... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $ENABLE_CXX_EXCEPTIONS" >&5 ++echo "${ECHO_T}$ENABLE_CXX_EXCEPTIONS" >&6; } ++ if test "$ENABLE_CXX_EXCEPTIONS" = "yes"; then ++ # config/cxx_have_exceptions.m4 ++ ++# ++# Arguments: None ++# ++# Depdencies: None ++# ++# Check to see if the C++ compiler can handle exceptions ++# ++# Sets OMPI_CXX_EXCEPTIONS to 1 if compiler has exceptions, 0 if not ++# ++ ++{ echo "$as_me:$LINENO: checking for throw/catch" >&5 ++echo $ECHO_N "checking for throw/catch... $ECHO_C" >&6; } ++ ++ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++int i=1; throw(i); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ OMPI_CXX_EXCEPTIONS=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ OMPI_CXX_EXCPTIONS=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++if test "$OMPI_CXX_EXCEPTIONS" = "1"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++# Clean up ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ # config/cxx_find_exception_flags.m4 ++ ++# ++# Arguments: none ++# ++# Dependencies: none ++# ++# Get the exception handling flags for the C++ compiler. Leaves ++# CXXFLAGS undisturbed. ++# Provides --with-exflags command line argument for configure as well. ++# ++# Sets OMPI_CXX_EXCEPTION_CXXFLAGS and OMPI_CXX_EXCEPTION_LDFLAGS as ++# appropriate. ++# Must call AC_SUBST manually ++# ++ ++# Command line flags ++ ++ ++# Check whether --with-exflags was given. ++if test "${with_exflags+set}" = set; then ++ withval=$with_exflags; ompi_force_exflags="$withval" ++fi ++ ++ ++ompi_CXXFLAGS_SAVE="$CXXFLAGS" ++{ echo "$as_me:$LINENO: checking for compiler exception flags" >&5 ++echo $ECHO_N "checking for compiler exception flags... $ECHO_C" >&6; } ++ ++# See which flags to use ++ ++if test "$ompi_force_exflags" != ""; then ++ ++ # If the user supplied flags, use those ++ ++ ompi_exflags="$ompi_force_exflags" ++elif test "$GXX" = "yes"; then ++ ++ # g++ has changed their flags a few times. Sigh. ++ ++ CXXFLAGS="$CXXFLAGS -fexceptions" ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++try { int i = 0; } catch(...) { int j = 2; } ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_happy=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_happy=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ if test "$ompi_happy" = "1"; then ++ ompi_exflags="-fexceptions"; ++ else ++ CXXFLAGS="$CXXFLAGS_SAVE -fhandle-exceptions" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++try { int i = 0; } catch(...) { int j = 2; } ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_happy=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_happy=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_happy" = "1"; then ++ ompi_exflags="-fhandle-exceptions"; ++ fi ++ fi ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++elif test "`basename $CXX`" = "KCC"; then ++ ++ # KCC flags ++ ++ ompi_exflags="--exceptions" ++fi ++CXXFLAGS="$ompi_CXXFLAGS_SAVE" ++ ++# Save the result ++ ++OMPI_CXX_EXCEPTIONS_CXXFLAGS="$ompi_exflags" ++OMPI_CXX_EXCEPTIONS_LDFLAGS="$ompi_exflags" ++if test "$ompi_exflags" = ""; then ++ { echo "$as_me:$LINENO: result: none necessary" >&5 ++echo "${ECHO_T}none necessary" >&6; } ++else ++ { echo "$as_me:$LINENO: result: $ompi_exflags" >&5 ++echo "${ECHO_T}$ompi_exflags" >&6; } ++fi ++ ++# Clean up ++ ++unset ompi_force_exflags ompi_CXXFLAGS_SAVE ompi_exflags ompi_happy ++ if test "$OMPI_CXX_EXCEPTIONS" = "1"; then ++ HAVE_CXX_EXCEPTIONS=1 ++ ++ # Test to see if the C compiler likes these flags ++ { echo "$as_me:$LINENO: checking to see if C compiler likes the exception flags" >&5 ++echo $ECHO_N "checking to see if C compiler likes the exception flags... $ECHO_C" >&6; } ++ CFLAGS="$CFLAGS $OMPI_CXX_EXCEPTIONS_CXXFLAGS" ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++int i = 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: C++ exception flags are different between the C and C++ compilers; this configure script cannot currently handle this scenario. Either disable C++ exception support or send mail to the Open MPI users list." >&5 ++echo "$as_me: WARNING: C++ exception flags are different between the C and C++ compilers; this configure script cannot currently handle this scenario. Either disable C++ exception support or send mail to the Open MPI users list." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ # We can't test the F77 and F90 compilers now because we ++ # haven't found/set the up yet. So just save the flags ++ # and test them later (in ompi_setup_f77.m4 and ++ # ompi_setup_f90.m4). ++ ++ CXXFLAGS="$CXXFLAGS $OMPI_CXX_EXCEPTIONS_CXXFLAGS" ++ LDFLAGS="$LDFLAGS $OMPI_CXX_EXCEPTIONS_LDFLAGS" ++ ++ WRAPPER_EXTRA_CFLAGS="$OMPI_CXX_EXCEPTIONS_CXXFLAGS ${WRAPPER_EXTRA_CFLAGS}" ++ WRAPPER_EXTRA_FFLAGS="$OMPI_CXX_EXCEPTIONS_CXXFLAGS ${WRAPPER_EXTRA_FFLAGS}" ++ WRAPPER_EXTRA_FCFLAGS="$OMPI_CXX_EXCEPTIONS_CXXFLAGS ${WRAPPER_EXTRA_FCFLAGS}" ++ WRAPPER_EXTRA_CXXFLAGS="$OMPI_CXX_EXCEPTIONS_CXXFLAGS ${WRAPPER_EXTRA_CXXFLAGS}" ++ fi ++ fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_CXX_EXCEPTION_SUPPORT $HAVE_CXX_EXCEPTIONS ++_ACEOF ++ ++ ++ # Make sure we can link with the C compiler ++ if test "$ompi_cv_cxx_compiler_vendor" != "microsoft" ; then ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if C and C++ are link compatible" >&5 ++echo $ECHO_N "checking if C and C++ are link compatible... $ECHO_C" >&6; } ++if test "${ompi_cv_c_link_Cpp+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ testfunc_name="testfunc" ++ ++ # Write out C part ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ rm -f conftest_c.$ac_ext ++ cat > conftest_c.$ac_ext << EOF ++int $testfunc_name(int a); ++int $testfunc_name(int a) { return a; } ++EOF ++ ++ # Now compile both parts ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext" >&5 ++$CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ ompi_lang_link_with_c_libs="$LIBS" ++ LIBS="conftest_c.o $LIBS" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#if defined(c_plusplus) || defined(__cplusplus) ++extern "C" int testfunc(int); ++#else ++extern int testfunc(int); ++#endif ++ ++int ++main () ++{ ++return testfunc(0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_c_link_Cpp="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_c_link_Cpp="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LIBS="$ompi_lang_link_with_c_libs" ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++else ++ unset ompi_status ++ ompi_cv_c_link_Cpp="no" ++fi ++ rm -f conftest_c.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_link_Cpp" >&5 ++echo "${ECHO_T}$ompi_cv_c_link_Cpp" >&6; } ++ ++ if test "$ompi_cv_c_link_Cpp" = "yes"; then ++ : ++else ++ cat <&2 ++********************************************************************** ++* It appears that your C++ compiler is unable to link against object ++* files created by your C compiler. This generally indicates either ++* a conflict between the options specified in CFLAGS and CXXFLAGS ++* or a problem with the local compiler installation. More ++* information (including exactly what command was given to the ++* compilers and what error resulted when the commands were executed) is ++* available in the config.log file in this directory. ++********************************************************************** ++EOF ++ { { echo "$as_me:$LINENO: error: C and C++ compilers are not link compatible. Can not continue." >&5 ++echo "$as_me: error: C and C++ compilers are not link compatible. Can not continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ fi ++ ++ # Find some more characteristics of the C++ compiler ++ ++ # config/cxx_find_template_repository.m4 ++ ++ ++ ++ # ++ # Arguments: None ++ # ++ # Dependencies: None ++ # ++ # See if the compiler makes template repository directories ++ # Warning: this is a really screwy example! -JMS ++ # ++ # Sets OMPI_CXX_TEMPLATE_REPOSITORY to the template repository, or blank. ++ # Must call AC_SUBST manually ++ # ++ { echo "$as_me:$LINENO: checking for C++ template_repository_directory" >&5 ++echo $ECHO_N "checking for C++ template_repository_directory... $ECHO_C" >&6; } ++if test "${ompi_cv_cxx_template_repository+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++# Find the repository ++mkdir conf_tmp_$$ ++cd conf_tmp_$$ ++cat > conftest.h < ++class foo { ++public: ++ foo(T yow) : data(yow) { yow.member(3); }; ++ void member(int i); ++private: ++ T data; ++}; ++ ++class bar { ++public: ++ bar(int i) { data = i; }; ++ void member(int j) { data = data * j; }; ++ ++private: ++ int data; ++}; ++EOF ++ ++cat > conftest2.C < var1(6); ++ foo< foo > var2(var1); ++} ++EOF ++ ++cat > conftest1.C < ++void ++foo::member(int i) ++{ ++ i += 2; ++} ++ ++int ++main() ++{ ++ foo var1(6); ++ foo< foo > var2(var1); ++ ++ some_other_function(); ++ return 0; ++} ++EOF ++ ++ompi_template_failed= ++echo configure:__oline__: $CXX $CXXFLAGS -c conftest1.C >&5 ++$CXX $CXXFLAGS -c conftest1.C >&5 2>&5 ++if test ! -f conftest1.o ; then ++ ompi_cv_cxx_template_repository="templates not supported" ++ echo configure:__oline__: here is the program that failed: >&5 ++ cat conftest1.C >&5 ++ echo configure:__oline__: here is conftest.h: >&5 ++ cat conftest.h >&5 ++ ompi_template_failed=1 ++else ++ echo configure:__oline__: $CXX $CXXFLAGS -c conftest2.C >&5 ++ $CXX $CXXFLAGS -c conftest2.C >&5 2>&5 ++ if test ! -f conftest2.o ; then ++ ompi_cv_cxx_template_repository= ++ echo configure:__oline__: here is the program that failed: >&5 ++ cat conftest2.C >&5 ++ echo configure:__oline__: here is conftest.h: >&5 ++ cat conftest.h >&5 ++ else ++ rm -rf conftest* ++ ++ for ompi_file in `ls` ++ do ++ if test "$ompi_file" != "." -a "$ompi_file" != ".."; then ++ # Is it a directory? ++ if test -d "$ompi_file"; then ++ ompi_template_dir="$ompi_file $ompi_template_dir" ++ ++ # Or is it a file? ++ else ++ name="`echo $ompi_file | cut -d. -f1`" ++ ++ temp_mask= ++ if test "$name" = "main" -o "$name" = "other"; then ++ temp_mask="`echo $ompi_file | cut -d. -f2`" ++ if test "$ompi_template_filemask" = ""; then ++ ompi_template_filemask="$temp_mask"; ++ elif test "`echo $ompi_template_filemask | $GREP $temp_mask`" = ""; then ++ ompi_template_filemask="$ompi_template_filemask $temp_mask" ++ fi ++ fi ++ fi ++ fi ++ done ++ if test "$ompi_template_filemask" != ""; then ++ temp_mask= ++ for mask in $ompi_template_filemask ++ do ++ temp_mask="*.$mask $temp_mask" ++ done ++ ompi_template_filemask=$temp_mask ++ fi ++ fi ++fi ++ompi_cv_cxx_template_repository="$ompi_template_dir $ompi_template_filemask" ++ ++if test "`echo $ompi_cv_cxx_template_repository`" = ""; then ++ ompi_cv_cxx_template_repository="not used" ++fi ++cd .. ++rm -rf conf_tmp_$$ ++ ++# Clean up ++unset ompi_file ompi_template_failed ompi_template_dir ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cxx_template_repository" >&5 ++echo "${ECHO_T}$ompi_cv_cxx_template_repository" >&6; } ++ ++ if test "$ompi_cv_cxx_template_repository" = "not used" ; then ++ OMPI_CXX_TEMPLATE_REPOSITORY= ++ elif test "$ompi_cv_cxx_template_repository" = "templates not supported" ; then ++ OMPI_CXX_TEMPLATE_REPOSITORY= ++ else ++ OMPI_CXX_TEMPLATE_REPOSITORY="$ompi_cv_cxx_template_repository" ++ fi ++ ++ # config/cxx_find_template_parameters.m4 ++ ++# ++# Arguments: none ++# ++# Dependencies: None ++# ++# Get the C++ compiler template parameters. ++# ++# Adds to CXXFLAGS ++ ++{ echo "$as_me:$LINENO: checking for C++ compiler template parameters" >&5 ++echo $ECHO_N "checking for C++ compiler template parameters... $ECHO_C" >&6; } ++if test "$BASECXX" = "KCC"; then ++ new_flags="--one_instantiation_per_object" ++ CXXFLAGS="$CXXFLAGS $new_flags" ++else ++ new_flags="none needed" ++fi ++{ echo "$as_me:$LINENO: result: $new_flags" >&5 ++echo "${ECHO_T}$new_flags" >&6; } ++ ++# ++# Clean up ++# ++unset new_flags ++ ++ ++ # see if the C++ compiler supports __builtin_expect ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ { echo "$as_me:$LINENO: checking if $CXX supports __builtin_expect" >&5 ++echo $ECHO_N "checking if $CXX supports __builtin_expect... $ECHO_C" >&6; } ++if test "${ompi_cv_cxx_supports___builtin_expect+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++void *ptr = (void*) 0; ++ if (__builtin_expect (ptr != (void*) 0, 1)) return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_cxx_supports___builtin_expect="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cxx_supports___builtin_expect="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cxx_supports___builtin_expect" >&5 ++echo "${ECHO_T}$ompi_cv_cxx_supports___builtin_expect" >&6; } ++ if test "$ompi_cv_cxx_supports___builtin_expect" = "yes" ; then ++ have_builtin_expect=1 ++ else ++ have_builtin_expect=0 ++ fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CXX_HAVE_BUILTIN_EXPECT $have_builtin_expect ++_ACEOF ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ # see if the C compiler supports __builtin_prefetch ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ { echo "$as_me:$LINENO: checking if $CXX supports __builtin_prefetch" >&5 ++echo $ECHO_N "checking if $CXX supports __builtin_prefetch... $ECHO_C" >&6; } ++if test "${ompi_cv_cxx_supports___builtin_prefetch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++int ptr; ++ __builtin_prefetch(&ptr,0,0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_cxx_supports___builtin_prefetch="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cxx_supports___builtin_prefetch="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cxx_supports___builtin_prefetch" >&5 ++echo "${ECHO_T}$ompi_cv_cxx_supports___builtin_prefetch" >&6; } ++ if test "$ompi_cv_cxx_supports___builtin_prefetch" = "yes" ; then ++ have_builtin_prefetch=1 ++ else ++ have_builtin_prefetch=0 ++ fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CXX_HAVE_BUILTIN_PREFETCH $have_builtin_prefetch ++_ACEOF ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ # If we are on HP-UX, ensure that we're using aCC ++ case "$host" in ++ *hpux*) ++ if test "$BASECXX" = "CC"; then ++ { echo "$as_me:$LINENO: WARNING: *** You will probably have problems compiling the MPI 2" >&5 ++echo "$as_me: WARNING: *** You will probably have problems compiling the MPI 2" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** C++ bindings with the HP-UX CC compiler. You should" >&5 ++echo "$as_me: WARNING: *** C++ bindings with the HP-UX CC compiler. You should" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** probably be using the aCC compiler. Re-run configure" >&5 ++echo "$as_me: WARNING: *** probably be using the aCC compiler. Re-run configure" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** with the environment variable \"CXX=aCC\"." >&5 ++echo "$as_me: WARNING: *** with the environment variable \"CXX=aCC\"." >&2;} ++ fi ++ ;; ++ esac ++ ++ # see if the compiler supports const_cast of 2-dimensional arrays ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ { echo "$as_me:$LINENO: checking if $CXX supports const_cast<> properly" >&5 ++echo $ECHO_N "checking if $CXX supports const_cast<> properly... $ECHO_C" >&6; } ++if test "${ompi_cv_cxx_supports_2d_const_cast+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++int non_const_func(int ranges[][3]); ++int cast_test(const int ranges[][3]) { ++ return non_const_func(const_cast(ranges)); ++} ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_cxx_supports_2d_const_cast="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cxx_supports_2d_const_cast="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cxx_supports_2d_const_cast" >&5 ++echo "${ECHO_T}$ompi_cv_cxx_supports_2d_const_cast" >&6; } ++ if test "$ompi_cv_cxx_supports_2d_const_cast" = "yes" ; then ++ use_2d_const_cast=1 ++ else ++ use_2d_const_cast=0 ++ fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CXX_SUPPORTS_2D_CONST_CAST $use_2d_const_cast ++_ACEOF ++ ++ unset use_2d_const_cast ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ # Note: gcc-imperonating compilers accept -O3 ++ if test "$WANT_DEBUG" = "1"; then ++ OPTFLAGS= ++ else ++ if test "$GXX" = yes; then ++ OPTFLAGS="-O3" ++ else ++ OPTFLAGS="-O" ++ fi ++ fi ++ ++ # config/ompi_check_optflags.m4 ++ ++ ++# Modularize this setup so that sub-configure.in scripts can use this ++# same setup code. ++ ++################################## ++# Optimization flags ++################################## ++ ++# If the user did not specify optimization flags, add some (the value ++# from $OPTFLAGS) ++ ++co_arg=""$CXXFLAGS"" ++co_found=0 ++for co_word in $co_arg; do ++ # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs ++ # for an explanation of @<:@ and @:>@ -- they m4 expand to [ and ] ++ case $co_word in ++ -g) co_found=1 ;; ++ -g@<:@1-3@:>@) co_found=1 ;; ++ +K@<:@0-5@:>@) co_found=1 ;; ++ -O) co_found=1 ;; ++ -O@<:@0-9@:>@) co_found=1 ;; ++ -xO) co_found=1 ;; ++ -xO@<:@0-9@:>@) co_found=1 ;; ++ -fast) co_found=1 ;; ++ ++ # The below Sun Studio flags require or ++ # trigger -xO optimization ++ -xvector*) co_found=1 ;; ++ -xdepend=yes) co_found=1 ;; ++ ++ esac ++done ++ ++if test "$co_found" = "0"; then ++ co_result="$OPTFLAGS $co_arg" ++else ++ co_result="$co_arg" ++fi ++ ++# Clean up ++ ++unset co_found co_word co_arg ++ ++ { echo "$as_me:$LINENO: checking for C++ optimization flags" >&5 ++echo $ECHO_N "checking for C++ optimization flags... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $co_result" >&5 ++echo "${ECHO_T}$co_result" >&6; } ++ CXXFLAGS="$co_result" ++ ++ ++# Does the compiler support "ident"-like constructs? ++ ++ ++ { echo "$as_me:$LINENO: checking for C++ ident string support" >&5 ++echo $ECHO_N "checking for C++ ident string support... $ECHO_C" >&6; } ++ ++ ompi_pragma_ident_happy=0 ++ ompi_ident_happy=0 ++ ompi_static_const_char_happy=0 ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_ident_happy=1 ++ ompi_message="#pragma ident" ++else ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_ident_happy=1 ++ ompi_message="#ident" ++else ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_ident_happy=1 ++ ompi_message="#ident" ++else ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_ident_happy=1 ++ ompi_message="#ident" ++else ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CXX_USE_PRAGMA_IDENT $ompi_pragma_ident_happy ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CXX_USE_IDENT $ompi_ident_happy ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CXX_USE_PRAGMA_COMMENT $ompi_pragma_comment_happy ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CXX_USE_CONST_CHAR_IDENT $ompi_static_const_char_happy ++_ACEOF ++ ++ ++ { echo "$as_me:$LINENO: result: $ompi_message" >&5 ++echo "${ECHO_T}$ompi_message" >&6; } ++ ++ unset ompi_pragma_ident_happy ompi_ident_happy ompi_static_const_char_happy ompi_message ++ ++ ++# check for type sizes ++ ++ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++{ echo "$as_me:$LINENO: checking for bool" >&5 ++echo $ECHO_N "checking for bool... $ECHO_C" >&6; } ++if test "${ac_cv_type_bool+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef bool ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_bool=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_bool=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5 ++echo "${ECHO_T}$ac_cv_type_bool" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of bool" >&5 ++echo $ECHO_N "checking size of bool... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_bool+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef bool ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef bool ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef bool ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef bool ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef bool ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_bool=$ac_lo;; ++'') if test "$ac_cv_type_bool" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (bool) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (bool) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_bool=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef bool ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_bool=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_bool" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (bool) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (bool) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_bool=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_bool" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_bool" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_BOOL $ac_cv_sizeof_bool ++_ACEOF ++ ++ ++ ++# check for type alignments ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of bool" >&5 ++echo $ECHO_N "checking alignment of bool... $ECHO_C" >&6; } ++if test "${ompi_cv_c_align_bool+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # cross compile - do a non-executable test. Trick ++ # taken from the Autoconf 2.59c. Switch to using ++ # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; bool y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; bool y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; bool y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; bool y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; bool y; } ompi__type_alignof_; ++ ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ompi_cv_c_align_bool=$ac_lo;; ++'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; bool y; } ompi__type_alignof_; ++ ++static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); } ++static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) offsetof (ompi__type_alignof_, y)) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) offsetof (ompi__type_alignof_, y))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_bool=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++ ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++struct foo { char c; bool x; }; ++int main() ++{ ++ struct foo *p = (struct foo *) malloc(sizeof(struct foo)); ++ int diff; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ diff = ((char *)&p->x) - ((char *)&p->c); ++ fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_align_bool=`cat conftestval` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_align_bool" >&5 ++echo "${ECHO_T}$ompi_cv_c_align_bool" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_CXX_BOOL $ompi_cv_c_align_bool ++_ACEOF ++ ++eval "OMPI_ALIGNMENT_CXX_BOOL=$ompi_cv_c_align_bool" ++ ++rm -rf conftest* ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++# check if we want C++ support ++ ++ if test "$WANT_MPI_CXX_SUPPORT" = 1; then ++ WANT_MPI_CXX_BINDINGS_TRUE= ++ WANT_MPI_CXX_BINDINGS_FALSE='#' ++else ++ WANT_MPI_CXX_BINDINGS_TRUE='#' ++ WANT_MPI_CXX_BINDINGS_FALSE= ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_WANT_CXX_BINDINGS $WANT_MPI_CXX_SUPPORT ++_ACEOF ++ ++ ++ ++################################## ++# Only after setting up both ++# C and C++ check compiler attributes. ++################################## ++ ++ { echo "$as_me:$LINENO: checking for __attribute__" >&5 ++echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; } ++ ++ if test "${ompi_cv___attribute__+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ /* Check for the longest available __attribute__ (since gcc-2.3) */ ++ struct foo { ++ char a; ++ int x[2] __attribute__ ((__packed__)); ++ }; ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ if test "$ompi_cv___attribute__" = "1" ; then ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ /* Check for the longest available __attribute__ (since gcc-2.3) */ ++ struct foo { ++ char a; ++ int x[2] __attribute__ ((__packed__)); ++ }; ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ fi ++ ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE $ompi_cv___attribute__ ++_ACEOF ++ ++ ++# ++# Now that we know the compiler support __attribute__ let's check which kind of ++# attributed are supported. ++# ++ if test "$ompi_cv___attribute__" = "0" ; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ompi_cv___attribute__aligned=0 ++ ompi_cv___attribute__always_inline=0 ++ ompi_cv___attribute__cold=0 ++ ompi_cv___attribute__const=0 ++ ompi_cv___attribute__deprecated=0 ++ ompi_cv___attribute__format=0 ++ ompi_cv___attribute__hot=0 ++ ompi_cv___attribute__malloc=0 ++ ompi_cv___attribute__may_alias=0 ++ ompi_cv___attribute__no_instrument_function=0 ++ ompi_cv___attribute__nonnull=0 ++ ompi_cv___attribute__noreturn=0 ++ ompi_cv___attribute__packed=0 ++ ompi_cv___attribute__pure=0 ++ ompi_cv___attribute__sentinel=0 ++ ompi_cv___attribute__unused=0 ++ ompi_cv___attribute__visibility=0 ++ ompi_cv___attribute__warn_unused_result=0 ++ ompi_cv___attribute__weak_alias=0 ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(aligned)" >&5 ++echo $ECHO_N "checking for __attribute__(aligned)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__aligned+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++struct foo { char text[4]; } __attribute__ ((__aligned__(8))); ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__aligned=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__aligned=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__aligned=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__aligned" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ struct foo { char text[4]; } __attribute__ ((__aligned__(8))); ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__aligned=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__aligned=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__aligned=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__aligned" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__aligned=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__aligned=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__aligned=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__aligned" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ # ++ # Ignored by PGI-6.2.5; -- recognized by output-parser ++ # ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(always_inline)" >&5 ++echo $ECHO_N "checking for __attribute__(always_inline)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__always_inline+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++int foo (int arg) __attribute__ ((__always_inline__)); ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__always_inline=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__always_inline=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__always_inline=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__always_inline" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ int foo (int arg) __attribute__ ((__always_inline__)); ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__always_inline=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__always_inline=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__always_inline=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__always_inline" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__always_inline=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__always_inline=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__always_inline=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__always_inline" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(cold)" >&5 ++echo $ECHO_N "checking for __attribute__(cold)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__cold+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ int foo(int arg1, int arg2) __attribute__ ((__cold__)); ++ int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__cold=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__cold=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__cold=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__cold" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ int foo(int arg1, int arg2) __attribute__ ((__cold__)); ++ int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__cold=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__cold=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__cold=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__cold" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__cold=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__cold=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__cold=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__cold" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(const)" >&5 ++echo $ECHO_N "checking for __attribute__(const)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__const+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ int foo(int arg1, int arg2) __attribute__ ((__const__)); ++ int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__const=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__const=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__const=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__const" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ int foo(int arg1, int arg2) __attribute__ ((__const__)); ++ int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__const=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__const=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__const=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__const" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__const=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__const=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__const=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__const" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(deprecated)" >&5 ++echo $ECHO_N "checking for __attribute__(deprecated)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__deprecated+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ int foo(int arg1, int arg2) __attribute__ ((__deprecated__)); ++ int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__deprecated=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__deprecated=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__deprecated=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__deprecated" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ int foo(int arg1, int arg2) __attribute__ ((__deprecated__)); ++ int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__deprecated=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__deprecated=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__deprecated=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__deprecated" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__deprecated=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__deprecated=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__deprecated=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__deprecated" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ ATTRIBUTE_CFLAGS= ++ case "$ompi_c_vendor" in ++ gnu) ++ ATTRIBUTE_CFLAGS="-Wall" ++ ;; ++ intel) ++ # we want specifically the warning on format string conversion ++ ATTRIBUTE_CFLAGS="-we181" ++ ;; ++ esac ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(format)" >&5 ++echo $ECHO_N "checking for __attribute__(format)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__format+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ int this_printf (void *my_object, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3))); ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__format=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__format=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__format=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__format" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ int this_printf (void *my_object, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3))); ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__format=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__format=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__format=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__format" = "1" -a " ++ static int usage (int * argument); ++ extern int this_printf (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3))); ++ ++ static int usage (int * argument) { ++ return this_printf (*argument, "%d", argument); /* This should produce a format warning */ ++ } ++ /* The autoconf-generated main-function is int main(), which produces a warning by itself */ ++ int main(void); ++ " != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS $ATTRIBUTE_CFLAGS" ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ static int usage (int * argument); ++ extern int this_printf (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3))); ++ ++ static int usage (int * argument) { ++ return this_printf (*argument, "%d", argument); /* This should produce a format warning */ ++ } ++ /* The autoconf-generated main-function is int main(), which produces a warning by itself */ ++ int main(void); ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__format=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__format=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__format=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__format" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(hot)" >&5 ++echo $ECHO_N "checking for __attribute__(hot)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__hot+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ int foo(int arg1, int arg2) __attribute__ ((__hot__)); ++ int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__hot=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__hot=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__hot=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__hot" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ int foo(int arg1, int arg2) __attribute__ ((__hot__)); ++ int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__hot=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__hot=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__hot=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__hot" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__hot=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__hot=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__hot=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__hot" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(malloc)" >&5 ++echo $ECHO_N "checking for __attribute__(malloc)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__malloc+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#ifdef HAVE_STDLIB_H ++# include ++#endif ++ int * foo(int arg1) __attribute__ ((__malloc__)); ++ int * foo(int arg1) { return (int*) malloc(arg1); } ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__malloc=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__malloc=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__malloc=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__malloc" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++#ifdef HAVE_STDLIB_H ++# include ++#endif ++ int * foo(int arg1) __attribute__ ((__malloc__)); ++ int * foo(int arg1) { return (int*) malloc(arg1); } ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__malloc=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__malloc=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__malloc=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__malloc" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__malloc=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__malloc=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__malloc=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__malloc" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ # ++ # Attribute may_alias: No suitable cross-check available, that works for non-supporting compilers ++ # Ignored by intel-9.1.045 -- turn off with -wd1292 ++ # Ignored by PGI-6.2.5; ignore not detected due to missing cross-check ++ # ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(may_alias)" >&5 ++echo $ECHO_N "checking for __attribute__(may_alias)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__may_alias+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++int * p_value __attribute__ ((__may_alias__)); ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__may_alias=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__may_alias=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__may_alias=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__may_alias" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ int * p_value __attribute__ ((__may_alias__)); ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__may_alias=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__may_alias=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__may_alias=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__may_alias" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__may_alias=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__may_alias=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__may_alias=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__may_alias" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(no_instrument_function)" >&5 ++echo $ECHO_N "checking for __attribute__(no_instrument_function)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__no_instrument_function+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++int * foo(int arg1) __attribute__ ((__no_instrument_function__)); ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__no_instrument_function=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__no_instrument_function=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__no_instrument_function=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__no_instrument_function" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ int * foo(int arg1) __attribute__ ((__no_instrument_function__)); ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__no_instrument_function=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__no_instrument_function=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__no_instrument_function=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__no_instrument_function" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__no_instrument_function=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__no_instrument_function=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__no_instrument_function=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__no_instrument_function" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ # ++ # Attribute nonnull: ++ # Ignored by intel-compiler 9.1.045 -- recognized by cross-check ++ # Ignored by PGI-6.2.5 (pgCC) -- recognized by cross-check ++ # ++ ATTRIBUTE_CFLAGS= ++ case "$ompi_c_vendor" in ++ gnu) ++ ATTRIBUTE_CFLAGS="-Wall" ++ ;; ++ intel) ++ # we do not want to get ignored attributes warnings, but rather real warnings ++ ATTRIBUTE_CFLAGS="-wd1292" ++ ;; ++ esac ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(nonnull)" >&5 ++echo $ECHO_N "checking for __attribute__(nonnull)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__nonnull+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ int square(int *arg) __attribute__ ((__nonnull__)); ++ int square(int *arg) { return *arg; } ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__nonnull=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__nonnull=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__nonnull=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__nonnull" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ int square(int *arg) __attribute__ ((__nonnull__)); ++ int square(int *arg) { return *arg; } ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__nonnull=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__nonnull=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__nonnull=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__nonnull" = "1" -a " ++ static int usage(int * argument); ++ int square(int * argument) __attribute__ ((__nonnull__)); ++ int square(int * argument) { return (*argument) * (*argument); } ++ ++ static int usage(int * argument) { ++ return square( ((void*)0) ); /* This should produce an argument must be nonnull warning */ ++ } ++ /* The autoconf-generated main-function is int main(), which produces a warning by itself */ ++ int main(void); ++ " != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS $ATTRIBUTE_CFLAGS" ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ static int usage(int * argument); ++ int square(int * argument) __attribute__ ((__nonnull__)); ++ int square(int * argument) { return (*argument) * (*argument); } ++ ++ static int usage(int * argument) { ++ return square( ((void*)0) ); /* This should produce an argument must be nonnull warning */ ++ } ++ /* The autoconf-generated main-function is int main(), which produces a warning by itself */ ++ int main(void); ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__nonnull=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__nonnull=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__nonnull=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__nonnull" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(noreturn)" >&5 ++echo $ECHO_N "checking for __attribute__(noreturn)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__noreturn+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#ifdef HAVE_UNISTD_H ++# include ++#endif ++#ifdef HAVE_STDLIB_H ++# include ++#endif ++ void fatal(int arg1) __attribute__ ((__noreturn__)); ++ void fatal(int arg1) { exit(arg1); } ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__noreturn=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__noreturn=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__noreturn=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__noreturn" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++#ifdef HAVE_UNISTD_H ++# include ++#endif ++#ifdef HAVE_STDLIB_H ++# include ++#endif ++ void fatal(int arg1) __attribute__ ((__noreturn__)); ++ void fatal(int arg1) { exit(arg1); } ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__noreturn=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__noreturn=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__noreturn=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__noreturn" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__noreturn=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__noreturn=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__noreturn=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__noreturn" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(packed)" >&5 ++echo $ECHO_N "checking for __attribute__(packed)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__packed+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ struct foo { ++ char a; ++ int x[2] __attribute__ ((__packed__)); ++ }; ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__packed=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__packed=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__packed=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__packed" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ struct foo { ++ char a; ++ int x[2] __attribute__ ((__packed__)); ++ }; ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__packed=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__packed=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__packed=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__packed" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__packed=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__packed=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__packed=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__packed" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(pure)" >&5 ++echo $ECHO_N "checking for __attribute__(pure)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__pure+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ int square(int arg) __attribute__ ((__pure__)); ++ int square(int arg) { return arg * arg; } ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__pure=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__pure=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__pure=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__pure" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ int square(int arg) __attribute__ ((__pure__)); ++ int square(int arg) { return arg * arg; } ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__pure=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__pure=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__pure=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__pure" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__pure=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__pure=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__pure=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__pure" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ # ++ # Attribute sentinel: ++ # Ignored by the intel-9.1.045 -- recognized by cross-check ++ # intel-10.0beta works fine ++ # Ignored by PGI-6.2.5 (pgCC) -- recognized by output-parser and cross-check ++ # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore) ++ # ++ ATTRIBUTE_CFLAGS= ++ case "$ompi_c_vendor" in ++ gnu) ++ ATTRIBUTE_CFLAGS="-Wall" ++ ;; ++ intel) ++ # we do not want to get ignored attributes warnings ++ ATTRIBUTE_CFLAGS="-wd1292" ++ ;; ++ esac ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(sentinel)" >&5 ++echo $ECHO_N "checking for __attribute__(sentinel)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__sentinel+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__)); ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__sentinel=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__sentinel=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__sentinel=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__sentinel" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__)); ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__sentinel=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__sentinel=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__sentinel=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__sentinel" = "1" -a " ++ static int usage(int * argument); ++ int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__)); ++ ++ static int usage(int * argument) { ++ void * last_arg_should_be_null = argument; ++ return my_execlp ("lala", "/home/there", last_arg_should_be_null); /* This should produce a warning */ ++ } ++ /* The autoconf-generated main-function is int main(), which produces a warning by itself */ ++ int main(void); ++ " != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS $ATTRIBUTE_CFLAGS" ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ static int usage(int * argument); ++ int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__)); ++ ++ static int usage(int * argument) { ++ void * last_arg_should_be_null = argument; ++ return my_execlp ("lala", "/home/there", last_arg_should_be_null); /* This should produce a warning */ ++ } ++ /* The autoconf-generated main-function is int main(), which produces a warning by itself */ ++ int main(void); ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__sentinel=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__sentinel=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__sentinel=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__sentinel" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(unused)" >&5 ++echo $ECHO_N "checking for __attribute__(unused)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__unused+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ int square(int arg1 __attribute__ ((__unused__)), int arg2); ++ int square(int arg1, int arg2) { return arg2; } ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__unused=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__unused=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__unused=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__unused" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ int square(int arg1 __attribute__ ((__unused__)), int arg2); ++ int square(int arg1, int arg2) { return arg2; } ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__unused=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__unused=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__unused=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__unused" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__unused=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__unused=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__unused=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__unused" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ # ++ # Ignored by PGI-6.2.5 (pgCC) -- recognized by the output-parser ++ # ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(visibility)" >&5 ++echo $ECHO_N "checking for __attribute__(visibility)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__visibility+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ int square(int arg1) __attribute__ ((__visibility__("hidden"))); ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__visibility=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__visibility=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__visibility=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__visibility" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ int square(int arg1) __attribute__ ((__visibility__("hidden"))); ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__visibility=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__visibility=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__visibility=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__visibility" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__visibility=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__visibility=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__visibility=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__visibility" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ # ++ # Attribute warn_unused_result: ++ # Ignored by the intel-compiler 9.1.045 -- recognized by cross-check ++ # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore) ++ # ++ ATTRIBUTE_CFLAGS= ++ case "$ompi_c_vendor" in ++ gnu) ++ ATTRIBUTE_CFLAGS="-Wall" ++ ;; ++ intel) ++ # we do not want to get ignored attributes warnings ++ ATTRIBUTE_CFLAGS="-wd1292" ++ ;; ++ esac ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(warn_unused_result)" >&5 ++echo $ECHO_N "checking for __attribute__(warn_unused_result)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__warn_unused_result+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ int foo(int arg) __attribute__ ((__warn_unused_result__)); ++ int foo(int arg) { return arg + 3; } ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__warn_unused_result=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__warn_unused_result=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__warn_unused_result=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__warn_unused_result" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ int foo(int arg) __attribute__ ((__warn_unused_result__)); ++ int foo(int arg) { return arg + 3; } ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__warn_unused_result=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__warn_unused_result=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__warn_unused_result=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__warn_unused_result" = "1" -a " ++ static int usage(int * argument); ++ int foo(int arg) __attribute__ ((__warn_unused_result__)); ++ ++ int foo(int arg) { return arg + 3; } ++ static int usage(int * argument) { ++ foo (*argument); /* Should produce an unused result warning */ ++ return 0; ++ } ++ ++ /* The autoconf-generated main-function is int main(), which produces a warning by itself */ ++ int main(void); ++ " != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS $ATTRIBUTE_CFLAGS" ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ static int usage(int * argument); ++ int foo(int arg) __attribute__ ((__warn_unused_result__)); ++ ++ int foo(int arg) { return arg + 3; } ++ static int usage(int * argument) { ++ foo (*argument); /* Should produce an unused result warning */ ++ return 0; ++ } ++ ++ /* The autoconf-generated main-function is int main(), which produces a warning by itself */ ++ int main(void); ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__warn_unused_result=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__warn_unused_result=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__warn_unused_result=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__warn_unused_result" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for __attribute__(weak_alias)" >&5 ++echo $ECHO_N "checking for __attribute__(weak_alias)... $ECHO_C" >&6; } ++ if test "${ompi_cv___attribute__weak_alias+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ # ++ # Try to compile using the C compiler, then C++ ++ # ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ int foo(int arg); ++ int foo(int arg) { return arg + 3; } ++ int foo2(int arg) __attribute__ ((__weak__, __alias__("foo"))); ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ # ++ # In case we did succeed: Fine, but was this due to the ++ # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__weak_alias=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__weak_alias=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__weak_alias=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ompi_cv___attribute__weak_alias" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ extern "C" { ++ ++ int foo(int arg); ++ int foo(int arg) { return arg + 3; } ++ int foo2(int arg) __attribute__ ((__weak__, __alias__("foo"))); ++ ++ } ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ++ ompi_cv___attribute__weak_alias=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__weak_alias=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv___attribute__weak_alias=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ fi ++ ++ # ++ # If the attribute is supported by both compilers, ++ # try to recompile a *cross-check*, IFF defined. ++ # ++ if test '(' "$ompi_cv___attribute__weak_alias" = "1" -a "" != "" ')' ; then ++ ac_c_werror_flag_safe=$ac_c_werror_flag ++ ac_c_werror_flag="yes" ++ CFLAGS_safe=$CFLAGS ++ CFLAGS="$CFLAGS " ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ int i=4711; ++ i=usage(&i); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv___attribute__weak_alias=0 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++ # ++ # In case we did NOT succeed: Fine, but was this due to the ++ # attribute being ignored? Grep for IgNoRe in conftest.err ++ # and if found, reset the ompi_cv__attribute__var=0 ++ # ++ ompi_cv___attribute__weak_alias=1 ++ ++ ++ if test -s conftest.err ; then ++ for i in ignore skip ; do ++ $GREP -iq $i conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv___attribute__weak_alias=0 ++ break; ++ fi ++ done ++ fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++ ac_c_werror_flag=$ac_c_werror_flag_safe ++ CFLAGS=$CFLAGS_safe ++ fi ++ ++fi ++ ++ ++ if test "$ompi_cv___attribute__weak_alias" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++ fi ++ ++ # Now that all the values are set, define them ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_ALIGNED $ompi_cv___attribute__aligned ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_ALWAYS_INLINE $ompi_cv___attribute__always_inline ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_COLD $ompi_cv___attribute__cold ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_CONST $ompi_cv___attribute__const ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_DEPRECATED $ompi_cv___attribute__deprecated ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_FORMAT $ompi_cv___attribute__format ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_HOT $ompi_cv___attribute__hot ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_MALLOC $ompi_cv___attribute__malloc ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_MAY_ALIAS $ompi_cv___attribute__may_alias ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_NO_INSTRUMENT_FUNCTION $ompi_cv___attribute__no_instrument_function ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_NONNULL $ompi_cv___attribute__nonnull ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_NORETURN $ompi_cv___attribute__noreturn ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_PACKED $ompi_cv___attribute__packed ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_PURE $ompi_cv___attribute__pure ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_SENTINEL $ompi_cv___attribute__sentinel ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_UNUSED $ompi_cv___attribute__unused ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_VISIBILITY $ompi_cv___attribute__visibility ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT $ompi_cv___attribute__warn_unused_result ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ATTRIBUTE_WEAK_ALIAS $ompi_cv___attribute__weak_alias ++_ACEOF ++ ++ ++ ++ ++################################## ++# Assembler Configuration ++################################## ++ ++ompi_show_subtitle "Assembler" ++ ++# By default we simply use the C compiler to build assembly code. ++ ++test "${CCAS+set}" = set || CCAS=$CC ++test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS ++ ++ ++ ++depcc="$CCAS" am_compiler_list= ++ ++{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 ++echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } ++if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then ++ # We make a subdir and do the tests there. Otherwise we can end up ++ # making bogus files that we don't know about and never remove. For ++ # instance it was reported that on HP-UX the gcc test will end up ++ # making a dummy file named `D' -- because `-MD' means `put the output ++ # in D'. ++ mkdir conftest.dir ++ # Copy depcomp to subdir because otherwise we won't find it if we're ++ # using a relative directory. ++ cp "$am_depcomp" conftest.dir ++ cd conftest.dir ++ # We will build objects and dependencies in a subdirectory because ++ # it helps to detect inapplicable dependency modes. For instance ++ # both Tru64's cc and ICC support -MD to output dependencies as a ++ # side effect of compilation, but ICC will put the dependencies in ++ # the current directory while Tru64 will put them in the object ++ # directory. ++ mkdir sub ++ ++ am_cv_CCAS_dependencies_compiler_type=none ++ if test "$am_compiler_list" = ""; then ++ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` ++ fi ++ for depmode in $am_compiler_list; do ++ # Setup a source with many dependencies, because some compilers ++ # like to wrap large dependency lists on column 80 (with \), and ++ # we should not choose a depcomp mode which is confused by this. ++ # ++ # We need to recreate these files for each test, as the compiler may ++ # overwrite some of them when testing with obscure command lines. ++ # This happens at least with the AIX C compiler. ++ : > sub/conftest.c ++ for i in 1 2 3 4 5 6; do ++ echo '#include "conftst'$i'.h"' >> sub/conftest.c ++ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with ++ # Solaris 8's {/usr,}/bin/sh. ++ touch sub/conftst$i.h ++ done ++ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf ++ ++ case $depmode in ++ nosideeffect) ++ # after this tag, mechanisms are not by side-effect, so they'll ++ # only be used when explicitly requested ++ if test "x$enable_dependency_tracking" = xyes; then ++ continue ++ else ++ break ++ fi ++ ;; ++ none) break ;; ++ esac ++ # We check with `-c' and `-o' for the sake of the "dashmstdout" ++ # mode. It turns out that the SunPro C++ compiler does not properly ++ # handle `-M -o', and we need to detect this. ++ if depmode=$depmode \ ++ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ ++ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ ++ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ ++ >/dev/null 2>conftest.err && ++ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ++ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then ++ # icc doesn't choke on unknown options, it will just issue warnings ++ # or remarks (even with -Werror). So we grep stderr for any message ++ # that says an option was ignored or not supported. ++ # When given -MP, icc 7.0 and 7.1 complain thusly: ++ # icc: Command line warning: ignoring option '-M'; no argument required ++ # The diagnosis changed in icc 8.0: ++ # icc: Command line remark: option '-MP' not supported ++ if (grep 'ignoring option' conftest.err || ++ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else ++ am_cv_CCAS_dependencies_compiler_type=$depmode ++ break ++ fi ++ fi ++ done ++ ++ cd .. ++ rm -rf conftest.dir ++else ++ am_cv_CCAS_dependencies_compiler_type=none ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5 ++echo "${ECHO_T}$am_cv_CCAS_dependencies_compiler_type" >&6; } ++CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type ++ ++ if ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then ++ am__fastdepCCAS_TRUE= ++ am__fastdepCCAS_FALSE='#' ++else ++ am__fastdepCCAS_TRUE='#' ++ am__fastdepCCAS_FALSE= ++fi ++ ++ ++{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 ++echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; } ++if test "${lt_cv_path_NM+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$NM"; then ++ # Let the user override the test. ++ lt_cv_path_NM="$NM" ++else ++ lt_nm_to_check="${ac_tool_prefix}nm" ++ if test -n "$ac_tool_prefix" && test "$build" = "$host"; then ++ lt_nm_to_check="$lt_nm_to_check nm" ++ fi ++ for lt_tmp_nm in $lt_nm_to_check; do ++ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ++ for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do ++ IFS="$lt_save_ifs" ++ test -z "$ac_dir" && ac_dir=. ++ tmp_nm="$ac_dir/$lt_tmp_nm" ++ if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then ++ # Check to see if the nm accepts a BSD-compat flag. ++ # Adding the `sed 1q' prevents false positives on HP-UX, which says: ++ # nm: unknown option "B" ignored ++ # Tru64's nm complains that /dev/null is an invalid object file ++ case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in ++ */dev/null* | *'Invalid file or object type'*) ++ lt_cv_path_NM="$tmp_nm -B" ++ break ++ ;; ++ *) ++ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in ++ */dev/null*) ++ lt_cv_path_NM="$tmp_nm -p" ++ break ++ ;; ++ *) ++ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but ++ continue # so that we can try to find one that supports BSD flags ++ ;; ++ esac ++ ;; ++ esac ++ fi ++ done ++ IFS="$lt_save_ifs" ++ done ++ : ${lt_cv_path_NM=no} ++fi ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 ++echo "${ECHO_T}$lt_cv_path_NM" >&6; } ++if test "$lt_cv_path_NM" != "no"; then ++ NM="$lt_cv_path_NM" ++else ++ # Didn't find any BSD compatible name lister, look for dumpbin. ++ if test -n "$ac_tool_prefix"; then ++ for ac_prog in "dumpbin -symbols" "link -dump -symbols" ++ do ++ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ++set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_DUMPBIN+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$DUMPBIN"; then ++ ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++DUMPBIN=$ac_cv_prog_DUMPBIN ++if test -n "$DUMPBIN"; then ++ { echo "$as_me:$LINENO: result: $DUMPBIN" >&5 ++echo "${ECHO_T}$DUMPBIN" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$DUMPBIN" && break ++ done ++fi ++if test -z "$DUMPBIN"; then ++ ac_ct_DUMPBIN=$DUMPBIN ++ for ac_prog in "dumpbin -symbols" "link -dump -symbols" ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_DUMPBIN"; then ++ ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN ++if test -n "$ac_ct_DUMPBIN"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 ++echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$ac_ct_DUMPBIN" && break ++done ++ ++ if test "x$ac_ct_DUMPBIN" = x; then ++ DUMPBIN=":" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ DUMPBIN=$ac_ct_DUMPBIN ++ fi ++fi ++ ++ ++ if test "$DUMPBIN" != ":"; then ++ NM="$DUMPBIN" ++ fi ++fi ++test -z "$NM" && NM=nm ++ ++ ++ ++ ++ ++ ++{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 ++echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; } ++if test "${lt_cv_nm_interface+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_nm_interface="BSD nm" ++ echo "int some_variable = 0;" > conftest.$ac_ext ++ (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&5) ++ (eval "$ac_compile" 2>conftest.err) ++ cat conftest.err >&5 ++ (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&5) ++ (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) ++ cat conftest.err >&5 ++ (eval echo "\"\$as_me:__oline__: output\"" >&5) ++ cat conftest.out >&5 ++ if $GREP 'External.*some_variable' conftest.out > /dev/null; then ++ lt_cv_nm_interface="MS dumpbin" ++ fi ++ rm -f conftest* ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 ++echo "${ECHO_T}$lt_cv_nm_interface" >&6; } ++ ++{ echo "$as_me:$LINENO: checking for fgrep" >&5 ++echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; } ++if test "${ac_cv_path_FGREP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 ++ then ac_cv_path_FGREP="$GREP -F" ++ else ++ # Extract the first word of "fgrep" to use in msg output ++if test -z "$FGREP"; then ++set dummy fgrep; ac_prog_name=$2 ++if test "${ac_cv_path_FGREP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_path_FGREP_found=false ++# Loop through the user's path and test for each of PROGNAME-LIST ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_prog in fgrep; do ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" ++ { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue ++ # Check for GNU ac_path_FGREP and select it if it is found. ++ # Check for GNU $ac_path_FGREP ++case `"$ac_path_FGREP" --version 2>&1` in ++*GNU*) ++ ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; ++*) ++ ac_count=0 ++ echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" ++ while : ++ do ++ cat "conftest.in" "conftest.in" >"conftest.tmp" ++ mv "conftest.tmp" "conftest.in" ++ cp "conftest.in" "conftest.nl" ++ echo 'FGREP' >> "conftest.nl" ++ "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break ++ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ++ ac_count=`expr $ac_count + 1` ++ if test $ac_count -gt ${ac_path_FGREP_max-0}; then ++ # Best one so far, save it but keep looking for a better one ++ ac_cv_path_FGREP="$ac_path_FGREP" ++ ac_path_FGREP_max=$ac_count ++ fi ++ # 10*(2^10) chars as input seems more than enough ++ test $ac_count -gt 10 && break ++ done ++ rm -f conftest.in conftest.tmp conftest.nl conftest.out;; ++esac ++ ++ ++ $ac_path_FGREP_found && break 3 ++ done ++done ++ ++done ++IFS=$as_save_IFS ++ ++ ++fi ++ ++FGREP="$ac_cv_path_FGREP" ++if test -z "$FGREP"; then ++ { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 ++echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ ac_cv_path_FGREP=$FGREP ++fi ++ ++ ++ fi ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 ++echo "${ECHO_T}$ac_cv_path_FGREP" >&6; } ++ FGREP="$ac_cv_path_FGREP" ++ ++ ++ ++ ++ ++ ++ ++ # OS X Leopard ld bus errors if you have "-g" or "-gX" in the link line ++ # with our assembly (!). So remove it from CCASFLAGS if it's ++ # there (and we're on Leopard). ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ompi_config_asm_flags_new ompi_config_asm_flag; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ompi_config_asm_flags_new ompi_config_asm_flag\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ { echo "$as_me:$LINENO: checking if need to remove -g from CCASFLAGS" >&5 ++echo $ECHO_N "checking if need to remove -g from CCASFLAGS... $ECHO_C" >&6; } ++ case "$host" in ++ *-apple-darwin9.*) ++ for ompi_config_asm_flag in $CCASFLAGS; do ++ # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs ++ # for an explanation of @<:@ and @:>@ -- they m4 expand ++ # to [ and ] ++ case $ompi_config_asm_flag in ++ -g) ;; ++ -g@<:@0-9@:>@) ;; ++ *) ++ ompi_config_asm_flags_new="$ompi_config_asm_flags_new $ompi_config_asm_flag" ++ ;; ++ esac ++ done ++ CCASFLAGS="$ompi_config_asm_flags_new" ++ { echo "$as_me:$LINENO: result: OS X Leopard - yes ($CCASFLAGS)" >&5 ++echo "${ECHO_T}OS X Leopard - yes ($CCASFLAGS)" >&6; } ++ ;; ++ *) ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ;; ++ esac ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ { echo "$as_me:$LINENO: checking whether to enable smp locks" >&5 ++echo $ECHO_N "checking whether to enable smp locks... $ECHO_C" >&6; } ++ # Check whether --enable-smp-locks was given. ++if test "${enable_smp_locks+set}" = set; then ++ enableval=$enable_smp_locks; ++fi ++ ++ if test "$enable_smp_locks" != "no"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ want_smp_locks=1 ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ want_smp_locks=0 ++ fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_WANT_SMP_LOCKS $want_smp_locks ++_ACEOF ++ ++ ++ if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then ++ ompi_cv_asm_arch="WINDOWS" ++ else ++ ++ { echo "$as_me:$LINENO: checking if .proc/endp is needed" >&5 ++echo $ECHO_N "checking if .proc/endp is needed... $ECHO_C" >&6; } ++if test "${ompi_cv_asm_need_proc+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ompi_cv_asm_need_proc="no" ++ cat >conftest.s <&5 ++ (eval $ompi_assemble) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # save the warnings ++ cat conftest.out >&5 ++ ompi_cv_asm_need_proc="yes" ++else ++ # save compiler output and failed program ++ cat conftest.out >&5 ++ echo "configure: failed program was:" >&5 ++ cat conftest.s >&5 ++ : ++fi ++rm -rf conftest* ++unset ompi_assemble ++ ++ rm -f conftest.out ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_asm_need_proc" >&5 ++echo "${ECHO_T}$ompi_cv_asm_need_proc" >&6; } ++ ++ if test "$ompi_cv_asm_need_proc" = "yes" ; then ++ ompi_cv_asm_proc=".proc" ++ ompi_cv_asm_endproc=".endp" ++ else ++ ompi_cv_asm_proc="#" ++ ompi_cv_asm_endproc="#" ++ fi ++ ++ ++ { echo "$as_me:$LINENO: checking directive for setting text section" >&5 ++echo $ECHO_N "checking directive for setting text section... $ECHO_C" >&6; } ++ ompi_cv_asm_text="" ++ if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then ++ # text section will be brought in with the rest of ++ # header for MS - leave blank for now ++ ompi_cv_asm_text="" ++ else ++ case $host in ++ *-aix*) ++ ompi_cv_asm_text=".csect .text[PR]" ++ ;; ++ *) ++ ompi_cv_asm_text=".text" ++ ;; ++ esac ++ fi ++ { echo "$as_me:$LINENO: result: $ompi_cv_asm_text" >&5 ++echo "${ECHO_T}$ompi_cv_asm_text" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ASM_TEXT "$ompi_cv_asm_text" ++_ACEOF ++ ++ OMPI_ASM_TEXT="$ompi_cv_asm_text" ++ ++ ++ ++ { echo "$as_me:$LINENO: checking directive for exporting symbols" >&5 ++echo $ECHO_N "checking directive for exporting symbols... $ECHO_C" >&6; } ++ ompi_cv_asm_global="" ++ if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then ++ ompi_cv_asm_global="PUBLIC" ++ else ++ case $host in ++ *) ++ ompi_cv_asm_global=".globl" ++ ;; ++ esac ++ fi ++ { echo "$as_me:$LINENO: result: $ompi_cv_asm_global" >&5 ++echo "${ECHO_T}$ompi_cv_asm_global" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ASM_GLOBAL "$ompi_cv_asm_global" ++_ACEOF ++ ++ OMPI_ASM_GLOBAL="$ompi_cv_asm_global" ++ ++ ++ ++ ++ ++ # Extract the first word of "objdump", so it can be a program name with args. ++set dummy objdump; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_OBJDUMP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$OBJDUMP"; then ++ ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_OBJDUMP="objdump" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++OBJDUMP=$ac_cv_prog_OBJDUMP ++if test -n "$OBJDUMP"; then ++ { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 ++echo "${ECHO_T}$OBJDUMP" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ { echo "$as_me:$LINENO: checking if .note.GNU-stack is needed" >&5 ++echo $ECHO_N "checking if .note.GNU-stack is needed... $ECHO_C" >&6; } ++if test "${ompi_cv_asm_gnu_stack_result+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$OBJDUMP" != ""; then ++ # first, see if a simple C program has it set ++ cat >conftest.c <&5 ++$CC $CFLAGS -c conftest.c -o conftest.$OBJEXT 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ $OBJDUMP -x conftest.$OBJEXT | $GREP '\.note\.GNU-stack' > /dev/null && ompi_cv_asm_gnu_stack_result=yes ++else ++ unset ompi_status ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_cv_asm_gnu_stack_result=no ++fi ++ if test "$ompi_cv_asm_gnu_stack_result" != "yes" ; then ++ ompi_cv_asm_gnu_stack_result="no" ++ fi ++ rm -rf conftest.* ++else ++ ompi_cv_asm_gnu_stack_result="no" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_asm_gnu_stack_result" >&5 ++echo "${ECHO_T}$ompi_cv_asm_gnu_stack_result" >&6; } ++ if test "$ompi_cv_asm_gnu_stack_result" = "yes" ; then ++ ompi_cv_asm_gnu_stack=1 ++ else ++ ompi_cv_asm_gnu_stack=0 ++ fi ++ ++ ++ { echo "$as_me:$LINENO: checking suffix for labels" >&5 ++echo $ECHO_N "checking suffix for labels... $ECHO_C" >&6; } ++ ompi_cv_asm_label_suffix="" ++ case $host in ++ *) ++ ompi_cv_asm_label_suffix=":" ++ ;; ++ esac ++ { echo "$as_me:$LINENO: result: $ompi_cv_asm_label_suffix" >&5 ++echo "${ECHO_T}$ompi_cv_asm_label_suffix" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ASM_LABEL_SUFFIX "$ompi_cv_asm_label_suffix" ++_ACEOF ++ ++ OMPI_ASM_LABEL_SUFFIX="$ompi_cv_asm_label_suffix" ++ ++ ++ ++ { echo "$as_me:$LINENO: checking prefix for global symbol labels" >&5 ++echo $ECHO_N "checking prefix for global symbol labels... $ECHO_C" >&6; } ++if test "${ompi_cv_asm_gsym+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ ompi_cv_asm_gsym="none" ++ ++ for sym in "_" "" "." ; do ++ asm_result=0 ++ echo "configure: trying $sym" >&5 ++cat > conftest_c.c <conftest.s <&5 ++ (eval $ompi_assemble) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # save the warnings ++ cat conftest.out >&5 ++ ompi_compile="$CC $CFLAGS -I. conftest_c.c -c > conftest.cmpl 2>&1" ++ if { (eval echo "$as_me:$LINENO: \"$ompi_compile\"") >&5 ++ (eval $ompi_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ; then ++ # save the warnings ++ cat conftest.cmpl >&5 ++ ompi_link="$CC $CFLAGS conftest_c.$OBJEXT conftest.$OBJEXT -o conftest $LDFLAGS $LIBS > conftest.link 2>&1" ++ if { (eval echo "$as_me:$LINENO: \"$ompi_link\"") >&5 ++ (eval $ompi_link) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ; then ++ # save the warnings ++ cat conftest.link >&5 ++ asm_result=1 ++ else ++ cat conftest.link >&5 ++ echo "configure: failed C program was: " >&5 ++ cat conftest_c.c >&5 ++ echo "configure: failed ASM program was: " >&5 ++ cat conftest.s >&5 ++ asm_result=0 ++ fi ++ else ++ # save output and failed program ++ cat conftest.cmpl >&5 ++ echo "configure: failed C program was: " >&5 ++ cat conftest.c >&5 ++ asm_result=0 ++ fi ++else ++ # save compiler output and failed program ++ cat conftest.out >&5 ++ echo "configure: failed program was:" >&5 ++ cat conftest.s >&5 ++ asm_result=0 ++fi ++rm -rf conftest* ++unset ompi_assemble ++ ++ if test "$asm_result" = "1" ; then ++ ompi_cv_asm_gsym="$sym" ++ break ++ fi ++ done ++ rm -rf conftest.* ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_asm_gsym" >&5 ++echo "${ECHO_T}$ompi_cv_asm_gsym" >&6; } ++ ++ if test "$ompi_cv_asm_gsym" = "none" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine global symbol label prefix" >&5 ++echo "$as_me: error: Could not determine global symbol label prefix" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ASM_GSYM "$ompi_cv_asm_gsym" ++_ACEOF ++ ++ OMPI_ASM_GSYM="$ompi_cv_asm_gsym" ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking prefix for lsym labels" >&5 ++echo $ECHO_N "checking prefix for lsym labels... $ECHO_C" >&6; } ++if test "${ompi_cv_asm_lsym+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ ++ ++ ompi_cv_asm_lsym="L" ++ ++ for sym in L .L $ L$ ; do ++ asm_result=0 ++ echo "configure: trying $sym" >&5 ++ cat >conftest.s <&5 ++ (eval $ompi_assemble) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # save the warnings ++ cat conftest.out >&5 ++ # ok, we succeeded at assembling. see if we can nm, ++ # throwing the results in a file ++ if $NM conftest.$OBJEXT > conftest.out 2>&5 ; then ++ if test "`$GREP mytestlabel conftest.out`" = "" ; then ++ # there was no symbol... looks promising to me ++ ompi_cv_asm_lsym="$sym" ++ asm_result=1 ++ elif test "`$GREP ' [Nt] .*mytestlabel' conftest.out`" = "" ; then ++ # see if we have a non-global-ish symbol ++ # but we should see if we can do better. ++ ompi_cv_asm_lsym="$sym" ++ fi ++ else ++ # not so much on the NM goodness :/ ++ echo "$NM failed. Output from NM was:" >&5 ++ cat conftest.out >&5 ++ { echo "$as_me:$LINENO: WARNING: $NM could not read object file" >&5 ++echo "$as_me: WARNING: $NM could not read object file" >&2;} ++ fi ++ ++else ++ # save compiler output and failed program ++ cat conftest.out >&5 ++ echo "configure: failed program was:" >&5 ++ cat conftest.s >&5 ++ : ++fi ++rm -rf conftest* ++unset ompi_assemble ++ ++ if test "$asm_result" = "1" ; then ++ break ++ fi ++ done ++ rm -f conftest.out ++ unset asm_result sym ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_asm_lsym" >&5 ++echo "${ECHO_T}$ompi_cv_asm_lsym" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ASM_LSYM "$ompi_cv_asm_lsym" ++_ACEOF ++ ++ OMPI_ASM_LSYM="$ompi_cv_asm_lsym" ++ ++ ++ ++ { echo "$as_me:$LINENO: checking prefix for function in .type" >&5 ++echo $ECHO_N "checking prefix for function in .type... $ECHO_C" >&6; } ++if test "${ompi_cv_asm_type+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ ompi_cv_asm_type="" ++ ++ case "${host}" in ++ *-sun-solaris*) ++ # GCC on solaris seems to accept just about anything, not ++ # that what it defines actually works... So just hardwire ++ # to the right answer ++ ompi_cv_asm_type="#" ++ ;; ++ *) ++ for type in @ \# % ; do ++ asm_result=0 ++ echo "configure: trying $type" >&5 ++ cat >conftest.s <&5 ++ (eval $ompi_assemble) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # save the warnings ++ cat conftest.out >&5 ++ ompi_cv_asm_type="${type}" ++ asm_result=1 ++else ++ # save compiler output and failed program ++ cat conftest.out >&5 ++ echo "configure: failed program was:" >&5 ++ cat conftest.s >&5 ++ : ++fi ++rm -rf conftest* ++unset ompi_assemble ++ ++ if test "$asm_result" = "1" ; then ++ break ++ fi ++ done ++ ;; ++ esac ++ rm -f conftest.out ++ ++ unset asm_result type ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_asm_type" >&5 ++echo "${ECHO_T}$ompi_cv_asm_type" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ASM_TYPE "$ompi_cv_asm_type" ++_ACEOF ++ ++ OMPI_ASM_TYPE="$ompi_cv_asm_type" ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if .size is needed" >&5 ++echo $ECHO_N "checking if .size is needed... $ECHO_C" >&6; } ++if test "${ompi_cv_asm_need_size+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ompi_cv_asm_need_size="no" ++ cat >conftest.s <&5 ++ (eval $ompi_assemble) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # save the warnings ++ cat conftest.out >&5 ++ ompi_cv_asm_need_size="yes" ++else ++ # save compiler output and failed program ++ cat conftest.out >&5 ++ echo "configure: failed program was:" >&5 ++ cat conftest.s >&5 ++ : ++fi ++rm -rf conftest* ++unset ompi_assemble ++ ++ rm -f conftest.out ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_asm_need_size" >&5 ++echo "${ECHO_T}$ompi_cv_asm_need_size" >&6; } ++ ++ if test "$ompi_cv_asm_need_size" = "yes" ; then ++ ompi_asm_size=1 ++ else ++ ompi_asm_size=0 ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ASM_SIZE "$ompi_asm_size" ++_ACEOF ++ ++ OMPI_ASM_SIZE="$ompi_asm_size" ++ ++ unset asm_result ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if .align directive takes logarithmic value" >&5 ++echo $ECHO_N "checking if .align directive takes logarithmic value... $ECHO_C" >&6; } ++if test "${ompi_cv_asm_align_log+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.s <&5 ++ (eval $ompi_assemble) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # save the warnings ++ cat conftest.out >&5 ++ ompi_asm_addr=`$NM conftest.$OBJEXT | $GREP foo | sed -e 's/.*\([0-9a-fA-F][0-9a-fA-F]\).*foo.*/\1/'` ++else ++ # save compiler output and failed program ++ cat conftest.out >&5 ++ echo "configure: failed program was:" >&5 ++ cat conftest.s >&5 ++ ompi_asm_addr="" ++fi ++rm -rf conftest* ++unset ompi_assemble ++ ++ # test for both 16 and 10 (decimal and hex notations) ++ echo "configure: .align test address offset is $ompi_asm_addr" >&5 ++ if test "$ompi_asm_addr" = "16" -o "$ompi_asm_addr" = "10" ; then ++ ompi_cv_asm_align_log="yes" ++ else ++ ompi_cv_asm_align_log="no" ++ fi ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_asm_align_log" >&5 ++echo "${ECHO_T}$ompi_cv_asm_align_log" >&6; } ++ ++ if test "$ompi_cv_asm_align_log" = "yes" -o "$ompi_cv_asm_align_log" = "1" ; then ++ ompi_asm_align_log_result=1 ++ else ++ ompi_asm_align_log_result=0 ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ASM_ALIGN_LOG $asm_align_log_result ++_ACEOF ++ ++ ++ unset omp_asm_addr asm_result ++ ++ ++ # find our architecture for purposes of assembly stuff ++ ompi_cv_asm_arch="UNSUPPORTED" ++ OMPI_GCC_INLINE_ASSIGN="" ++ OMPI_ASM_SUPPORT_64BIT=0 ++ case "${host}" in ++ i?86-*|x86_64*) ++ if test "$ac_cv_sizeof_long" = "4" ; then ++ ompi_cv_asm_arch="IA32" ++ else ++ ompi_cv_asm_arch="AMD64" ++ fi ++ OMPI_ASM_SUPPORT_64BIT=1 ++ OMPI_GCC_INLINE_ASSIGN='"movl $0, %0" : "=&r"(ret)' ++ ;; ++ ++ ia64-*) ++ ompi_cv_asm_arch="IA64" ++ OMPI_ASM_SUPPORT_64BIT=1 ++ OMPI_GCC_INLINE_ASSIGN='"mov %0=r0\n;;\n" : "=&r"(ret)' ++ ;; ++ ++ alpha-*|alphaev[4-8]-*|alphaev56-*|alphaev6[78]-*) ++ ompi_cv_asm_arch="ALPHA" ++ OMPI_ASM_SUPPORT_64BIT=1 ++ OMPI_GCC_INLINE_ASSIGN='"bis $31,$31,%0" : "=&r"(ret)' ++ ;; ++ ++ mips-*|mips64*) ++ # Should really find some way to make sure that we are on ++ # a MIPS III machine (r4000 and later) ++ ompi_cv_asm_arch="MIPS" ++ OMPI_ASM_SUPPORT_64BIT=1 ++ OMPI_GCC_INLINE_ASSIGN='"or %0,$0,$0" : "=&r"(ret)' ++ ;; ++ ++ powerpc-*|powerpc64-*) ++ ++ { echo "$as_me:$LINENO: checking if PowerPC registers have r prefix" >&5 ++echo $ECHO_N "checking if PowerPC registers have r prefix... $ECHO_C" >&6; } ++ cat >conftest.s <&5 ++ (eval $ompi_assemble) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # save the warnings ++ cat conftest.out >&5 ++ ompi_cv_asm_powerpc_r_reg=0 ++else ++ # save compiler output and failed program ++ cat conftest.out >&5 ++ echo "configure: failed program was:" >&5 ++ cat conftest.s >&5 ++ cat >conftest.s <&5 ++ (eval $ompi_assemble) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # save the warnings ++ cat conftest.out >&5 ++ ompi_cv_asm_powerpc_r_reg=1 ++else ++ # save compiler output and failed program ++ cat conftest.out >&5 ++ echo "configure: failed program was:" >&5 ++ cat conftest.s >&5 ++ { { echo "$as_me:$LINENO: error: Can not determine how to use PPC registers" >&5 ++echo "$as_me: error: Can not determine how to use PPC registers" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++rm -rf conftest* ++unset ompi_assemble ++ ++fi ++rm -rf conftest* ++unset ompi_assemble ++ ++ if test "$ompi_cv_asm_powerpc_r_reg" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_POWERPC_R_REGISTERS $ompi_cv_asm_powerpc_r_reg ++_ACEOF ++ ++ ++ if test "$ac_cv_sizeof_long" = "4" ; then ++ ompi_cv_asm_arch="POWERPC32" ++ ++ # Note that on some platforms (Apple G5), even if we are ++ # compiling in 32 bit mode (and therefore should assume ++ # sizeof(long) == 4), we can use the 64 bit test and set ++ # operations. ++ ++ if test "$ac_cv_sizeof_long" != "4" ; then ++ # this function should only be called in the 32 bit case ++ { { echo "$as_me:$LINENO: error: CHECK_POWERPC_64BIT called on 64 bit platform. Internal error." >&5 ++echo "$as_me: error: CHECK_POWERPC_64BIT called on 64 bit platform. Internal error." >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ { echo "$as_me:$LINENO: checking for 64-bit PowerPC assembly support" >&5 ++echo $ECHO_N "checking for 64-bit PowerPC assembly support... $ECHO_C" >&6; } ++ case $host in ++ *-darwin*) ++ ppc64_result=0 ++ if test "$ompi_cv_asm_powerpc_r_reg" = "1" ; then ++ ldarx_asm=" ldarx r1,r1,r1"; ++ else ++ ldarx_asm=" ldarx 1,1,1"; ++ fi ++ cat >conftest.s <&5 ++ (eval $ompi_assemble) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # save the warnings ++ cat conftest.out >&5 ++ ppc64_result=1 ++else ++ # save compiler output and failed program ++ cat conftest.out >&5 ++ echo "configure: failed program was:" >&5 ++ cat conftest.s >&5 ++ ppc64_result=0 ++fi ++rm -rf conftest* ++unset ompi_assemble ++ ++ ;; ++ *) ++ ppc64_result=0 ++ ;; ++ esac ++ ++ if test "$ppc64_result" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ OMPI_ASM_SUPPORT_64BIT=1 ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ : ++ fi ++ ++ unset ppc64_result ldarx_asm ++ ++ elif test "$ac_cv_sizeof_long" = "8" ; then ++ OMPI_ASM_SUPPORT_64BIT=1 ++ ompi_cv_asm_arch="POWERPC64" ++ else ++ { { echo "$as_me:$LINENO: error: Could not determine PowerPC word size: $ac_cv_sizeof_long" >&5 ++echo "$as_me: error: Could not determine PowerPC word size: $ac_cv_sizeof_long" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ OMPI_GCC_INLINE_ASSIGN='"1: li %0,0" : "=&r"(ret)' ++ ;; ++ ++ sparc*-*) ++ # SPARC v9 (and above) are the only ones with 64bit support ++ # if compiling 32 bit, see if we are v9 (aka v8plus) or ++ # earlier (casa is v8+/v9). ++ if test "$ac_cv_sizeof_long" = "4" ; then ++ have_v8plus=0 ++ ++ { echo "$as_me:$LINENO: checking if have Sparc v8+/v9 support" >&5 ++echo $ECHO_N "checking if have Sparc v8+/v9 support... $ECHO_C" >&6; } ++ sparc_result=0 ++ cat >conftest.s <&5 ++ (eval $ompi_assemble) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # save the warnings ++ cat conftest.out >&5 ++ sparc_result=1 ++else ++ # save compiler output and failed program ++ cat conftest.out >&5 ++ echo "configure: failed program was:" >&5 ++ cat conftest.s >&5 ++ sparc_result=0 ++fi ++rm -rf conftest* ++unset ompi_assemble ++ ++ if test "$sparc_result" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ have_v8plus=1 ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ : ++ fi ++ ++ unset sparc_result ++ ++ if test "$have_v8plus" = "0" ; then ++ OMPI_ASM_SUPPORT_64BIT=0 ++ ompi_cv_asm_arch="SPARC" ++{ echo "$as_me:$LINENO: WARNING: Sparc v8 target is not supported in this release of Open MPI." >&5 ++echo "$as_me: WARNING: Sparc v8 target is not supported in this release of Open MPI." >&2;} ++{ echo "$as_me:$LINENO: WARNING: You must specify the target architecture v8plus" >&5 ++echo "$as_me: WARNING: You must specify the target architecture v8plus" >&2;} ++{ echo "$as_me:$LINENO: WARNING: (cc: -xarch=v8plus, gcc: -mcpu=v9) for CFLAGS, CXXFLAGS," >&5 ++echo "$as_me: WARNING: (cc: -xarch=v8plus, gcc: -mcpu=v9) for CFLAGS, CXXFLAGS," >&2;} ++{ echo "$as_me:$LINENO: WARNING: FFLAGS, and FCFLAGS to compile Open MPI in 32 bit mode on" >&5 ++echo "$as_me: WARNING: FFLAGS, and FCFLAGS to compile Open MPI in 32 bit mode on" >&2;} ++{ echo "$as_me:$LINENO: WARNING: Sparc processors" >&5 ++echo "$as_me: WARNING: Sparc processors" >&2;} ++{ { echo "$as_me:$LINENO: error: Can not continue." >&5 ++echo "$as_me: error: Can not continue." >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ OMPI_ASM_SUPPORT_64BIT=1 ++ ompi_cv_asm_arch="SPARCV9_32" ++ fi ++ ++ elif test "$ac_cv_sizeof_long" = "8" ; then ++ OMPI_ASM_SUPPORT_64BIT=1 ++ ompi_cv_asm_arch="SPARCV9_64" ++ else ++ { { echo "$as_me:$LINENO: error: Could not determine Sparc word size: $ac_cv_sizeof_long" >&5 ++echo "$as_me: error: Could not determine Sparc word size: $ac_cv_sizeof_long" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ OMPI_GCC_INLINE_ASSIGN='"mov 0,%0" : "=&r"(ret)' ++ ;; ++ ++ *) ++ { { echo "$as_me:$LINENO: error: No atomic primitives available for $host" >&5 ++echo "$as_me: error: No atomic primitives available for $host" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ASM_SUPPORT_64BIT $OMPI_ASM_SUPPORT_64BIT ++_ACEOF ++ ++ ++ ++ # ++ # figure out if we need any special function start / stop code ++ # ++ case $host_os in ++ aix*) ++ ompi_asm_arch_config="aix" ++ ;; ++ *) ++ ompi_asm_arch_config="default" ++ ;; ++ esac ++ ++ # now that we know our architecture, try to inline assemble ++ ++ assembly="$OMPI_GCC_INLINE_ASSIGN" ++ asm_result="unknown" ++ ++ { echo "$as_me:$LINENO: checking if $CC supports GCC inline assembly" >&5 ++echo $ECHO_N "checking if $CC supports GCC inline assembly... $ECHO_C" >&6; } ++ ++ if test "$ompi_cv_c_compiler_vendor" = "portland group" ; then ++ # PGI seems to have some issues with our inline assembly. ++ # Disable for now. ++ asm_result="no (Portland Group)" ++ else ++ case $host in ++ *-aix*) ++ # the AIX compilers and linkers really don't do gcc ++ # inline assembly right - disable for now. ++ asm_result="no (AIX)" ++ ;; ++ *) ++ if test ! "$assembly" = "" ; then ++ if test "$cross_compiling" = yes; then ++ asm_result="unknown" ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++$ac_includes_default ++int ++main () ++{ ++int ret = 1; ++__asm__ __volatile__ ($assembly); ++return ret; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ asm_result="yes" ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++asm_result="no" ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ else ++ assembly="test skipped - assuming no" ++ fi ++ ;; ++ esac ++ ++ # if we're cross compiling, just try to compile and figure good enough ++ if test "$asm_result" = "unknown" ; then ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++$ac_includes_default ++int ++main () ++{ ++int ret = 1; ++__asm__ __volatile__ ($assembly); ++return ret; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ asm_result="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ asm_result="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ fi ++ fi ++ ++ { echo "$as_me:$LINENO: result: $asm_result" >&5 ++echo "${ECHO_T}$asm_result" >&6; } ++ ++ if test "$asm_result" = "yes" ; then ++ OMPI_C_GCC_INLINE_ASSEMBLY=1 ++ else ++ OMPI_C_GCC_INLINE_ASSEMBLY=0 ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_C_GCC_INLINE_ASSEMBLY $OMPI_C_GCC_INLINE_ASSEMBLY ++_ACEOF ++ ++ ++ unset OMPI_C_GCC_INLINE_ASSEMBLY assembly asm_result ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if $CC supports DEC inline assembly" >&5 ++echo $ECHO_N "checking if $CC supports DEC inline assembly... $ECHO_C" >&6; } ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++$ac_includes_default ++#include ++int ++main () ++{ ++asm(""); ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ asm_result="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ asm_result="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ ++ { echo "$as_me:$LINENO: result: $asm_result" >&5 ++echo "${ECHO_T}$asm_result" >&6; } ++ ++ if test "$asm_result" = "yes" ; then ++ OMPI_C_DEC_INLINE_ASSEMBLY=1 ++ else ++ OMPI_C_DEC_INLINE_ASSEMBLY=0 ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_C_DEC_INLINE_ASSEMBLY $OMPI_C_DEC_INLINE_ASSEMBLY ++_ACEOF ++ ++ ++ unset OMPI_C_DEC_INLINE_ASSEMBLY asm_result ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if $CC supports XLC inline assembly" >&5 ++echo $ECHO_N "checking if $CC supports XLC inline assembly... $ECHO_C" >&6; } ++ ++ OMPI_C_XLC_INLINE_ASSEMBLY=0 ++ asm_result="no" ++ if test "$CC" = "xlc" ; then ++ OMPI_XLC_INLINE_ASSEMBLY=1 ++ asm_result="yes" ++ fi ++ ++ { echo "$as_me:$LINENO: result: $asm_result" >&5 ++echo "${ECHO_T}$asm_result" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_C_XLC_INLINE_ASSEMBLY $OMPI_C_XLC_INLINE_ASSEMBLY ++_ACEOF ++ ++ ++ unset OMPI_C_XLC_INLINE_ASSEMBLY ++ ++ ++ assembly="$OMPI_GCC_INLINE_ASSIGN" ++ asm_result="unknown" ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ { echo "$as_me:$LINENO: checking if $CXX supports GCC inline assembly" >&5 ++echo $ECHO_N "checking if $CXX supports GCC inline assembly... $ECHO_C" >&6; } ++ ++ case $host in ++ *-aix*) ++ # the AIX compilers and linkers really don't do gcc ++ # inline assembly right - disable for now. ++ asm_result="no (AIX)" ++ ;; ++ *) ++ if test ! "$assembly" = "" ; then ++ if test "$cross_compiling" = yes; then ++ asm_result="unknown" ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++$ac_includes_default ++int ++main () ++{ ++int ret = 1; ++__asm__ __volatile__ ($assembly); ++return ret; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ asm_result="yes" ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++asm_result="no" ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ else ++ assembly="test skipped - assuming no" ++ fi ++ ;; ++ esac ++ # if we're cross compiling, just try to compile and figure good enough ++ if test "$asm_result" = "unknown" ; then ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++$ac_includes_default ++int ++main () ++{ ++int ret = 1; ++__asm__ __volatile__ ($assembly); ++return ret; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ asm_result="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ asm_result="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ fi ++ ++ { echo "$as_me:$LINENO: result: $asm_result" >&5 ++echo "${ECHO_T}$asm_result" >&6; } ++ ++ if test "$asm_result" = "yes" ; then ++ OMPI_CXX_GCC_INLINE_ASSEMBLY=1 ++ else ++ OMPI_CXX_GCC_INLINE_ASSEMBLY=0 ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CXX_GCC_INLINE_ASSEMBLY $OMPI_CXX_GCC_INLINE_ASSEMBLY ++_ACEOF ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ unset OMPI_CXX_GCC_INLINE_ASSEMBLY assembly asm_result ++ ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ { echo "$as_me:$LINENO: checking if $CXX supports DEC inline assembly" >&5 ++echo $ECHO_N "checking if $CXX supports DEC inline assembly... $ECHO_C" >&6; } ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++$ac_includes_default ++#include ++int ++main () ++{ ++asm(""); ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ asm_result="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ asm_result="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ ++ { echo "$as_me:$LINENO: result: $asm_result" >&5 ++echo "${ECHO_T}$asm_result" >&6; } ++ ++ if test "$asm_result" = "yes" ; then ++ OMPI_CXX_DEC_INLINE_ASSEMBLY=1 ++ else ++ OMPI_CXX_DEC_INLINE_ASSEMBLY=0 ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CXX_DEC_INLINE_ASSEMBLY $OMPI_CXX_DEC_INLINE_ASSEMBLY ++_ACEOF ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ unset OMPI_CXX_DEC_INLINE_ASSEMBLY asm_result ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if $CXX supports XLC inline assembly" >&5 ++echo $ECHO_N "checking if $CXX supports XLC inline assembly... $ECHO_C" >&6; } ++ ++ OMPI_CXX_XLC_INLINE_ASSEMBLY=0 ++ asm_result="no" ++ if test "$CXX" = "xlC" -o "$CXX" = "xlc++" ; then ++ OMPI_CXX_XLC_INLINE_ASSEMBLY=1 ++ asm_result="yes" ++ fi ++ ++ { echo "$as_me:$LINENO: result: $asm_result" >&5 ++echo "${ECHO_T}$asm_result" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_CXX_XLC_INLINE_ASSEMBLY $OMPI_CXX_XLC_INLINE_ASSEMBLY ++_ACEOF ++ ++ ++ unset OMPI_CXX_XLC_INLINE_ASSEMBLY ++ ++ ++ # format: ++ # config_file-text-global-label_suffix-gsym-lsym-type-size-align_log-ppc_r_reg-64_bit-gnu_stack ++ asm_format="${ompi_asm_arch_config}" ++ asm_format="${asm_format}-${ompi_cv_asm_text}-${ompi_cv_asm_global}" ++ asm_format="${asm_format}-${ompi_cv_asm_label_suffix}-${ompi_cv_asm_gsym}" ++ asm_format="${asm_format}-${ompi_cv_asm_lsym}" ++ asm_format="${asm_format}-${ompi_cv_asm_type}-${ompi_asm_size}" ++ asm_format="${asm_format}-${ompi_asm_align_log_result}" ++ if test "$ompi_cv_asm_arch" = "POWERPC32" -o "$ompi_cv_asm_arch" = "POWERPC64" ; then ++ asm_format="${asm_format}-${ompi_cv_asm_powerpc_r_reg}" ++ else ++ asm_format="${asm_format}-1" ++ fi ++ asm_format="${asm_format}-${OMPI_ASM_SUPPORT_64BIT}" ++ ompi_cv_asm_format="${asm_format}-${ompi_cv_asm_gnu_stack}" ++ # For the Makefile, need to escape the $ as $$. Don't display ++ # this version, but make sure the Makefile gives the right thing ++ # when regenerating the files because the base has been touched. ++ OMPI_ASSEMBLY_FORMAT=`echo "$ompi_cv_asm_format" | sed -e 's/\\\$/\\\$\\\$/'` ++ ++ { echo "$as_me:$LINENO: checking for assembly format" >&5 ++echo $ECHO_N "checking for assembly format... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $ompi_cv_asm_format" >&5 ++echo "${ECHO_T}$ompi_cv_asm_format" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ASSEMBLY_FORMAT "$OMPI_ASSEMBLY_FORMAT" ++_ACEOF ++ ++ ++ fi # if cv_c_compiler_vendor = microsoft ++ ++ result="OMPI_$ompi_cv_asm_arch" ++ OMPI_ASSEMBLY_ARCH="$ompi_cv_asm_arch" ++ { echo "$as_me:$LINENO: checking for asssembly architecture" >&5 ++echo $ECHO_N "checking for asssembly architecture... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $ompi_cv_asm_arch" >&5 ++echo "${ECHO_T}$ompi_cv_asm_arch" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ASSEMBLY_ARCH $result ++_ACEOF ++ ++ ++ ++ ++ ++ ++ ++if test "$ompi_cv_asm_arch" != "WINDOWS" ; then ++ # Extract the first word of "perl", so it can be a program name with args. ++set dummy perl; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_PERL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$PERL"; then ++ ac_cv_prog_PERL="$PERL" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_PERL="perl" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++PERL=$ac_cv_prog_PERL ++if test -n "$PERL"; then ++ { echo "$as_me:$LINENO: result: $PERL" >&5 ++echo "${ECHO_T}$PERL" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ ++ # see if we have a pre-built one already ++ { echo "$as_me:$LINENO: checking for pre-built assembly file" >&5 ++echo $ECHO_N "checking for pre-built assembly file... $ECHO_C" >&6; } ++ ompi_cv_asm_file="" ++ if $GREP "$ompi_cv_asm_arch" "${top_ompi_srcdir}/opal/asm/asm-data.txt" | $FGREP "$ompi_cv_asm_format" >conftest.out 2>&1 ; then ++ ompi_cv_asm_file="`cut -f3 conftest.out`" ++ if test ! "$ompi_cv_asm_file" = "" ; then ++ ompi_cv_asm_file="atomic-${ompi_cv_asm_file}.s" ++ if test -f "${top_ompi_srcdir}/opal/asm/generated/${ompi_cv_asm_file}" ; then ++ { echo "$as_me:$LINENO: result: yes ($ompi_cv_asm_file)" >&5 ++echo "${ECHO_T}yes ($ompi_cv_asm_file)" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no ($ompi_cv_asm_file not found)" >&5 ++echo "${ECHO_T}no ($ompi_cv_asm_file not found)" >&6; } ++ ompi_cv_asm_file="" ++ fi ++ fi ++ else ++ { echo "$as_me:$LINENO: result: no (not in asm-data)" >&5 ++echo "${ECHO_T}no (not in asm-data)" >&6; } ++ fi ++ rm -rf conftest.* ++ ++ if test "$ompi_cv_asm_file" = "" ; then ++ if test ! "$PERL" = "" ; then ++ # we have perl... Can we generate a file? ++ { echo "$as_me:$LINENO: checking whether possible to generate assembly file" >&5 ++echo $ECHO_N "checking whether possible to generate assembly file... $ECHO_C" >&6; } ++ mkdir -p opal/asm/generated ++ ompi_cv_asm_file="atomic-local.s" ++ ompi_try='$PERL $top_ompi_srcdir/opal/asm/generate-asm.pl $ompi_cv_asm_arch "$ompi_cv_asm_format" $top_ompi_srcdir/opal/asm/base $top_ompi_builddir/opal/asm/generated/$ompi_cv_asm_file >conftest.out 2>&1' ++ if { (eval echo "$as_me:$LINENO: \"$ompi_try\"") >&5 ++ (eval $ompi_try) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ; then ++ # save the warnings ++ cat conftest.out >&5 ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ # save output ++ cat conftest.out >&5 ++ ompi_cv_asm_file="" ++ { echo "$as_me:$LINENO: result: failed" >&5 ++echo "${ECHO_T}failed" >&6; } ++ { echo "$as_me:$LINENO: WARNING: Could not build atomic operations assembly file." >&5 ++echo "$as_me: WARNING: Could not build atomic operations assembly file." >&2;} ++ { echo "$as_me:$LINENO: WARNING: There will be no atomic operations for this build." >&5 ++echo "$as_me: WARNING: There will be no atomic operations for this build." >&2;} ++ fi ++ else ++ { echo "$as_me:$LINENO: WARNING: Could not find prebuilt atomic operations file and could not" >&5 ++echo "$as_me: WARNING: Could not find prebuilt atomic operations file and could not" >&2;} ++ { echo "$as_me:$LINENO: WARNING: find perl to attempt to generate a custom assembly file." >&5 ++echo "$as_me: WARNING: find perl to attempt to generate a custom assembly file." >&2;} ++ { echo "$as_me:$LINENO: WARNING: There will be no atomic operations for this build." >&5 ++echo "$as_me: WARNING: There will be no atomic operations for this build." >&2;} ++ fi ++ fi ++ rm -rf conftest.* ++else ++ # On windows with VC++, atomics are done with compiler primitives ++ ompi_cv_asm_file="" ++fi ++ ++ { echo "$as_me:$LINENO: checking for atomic assembly filename" >&5 ++echo $ECHO_N "checking for atomic assembly filename... $ECHO_C" >&6; } ++ if test "$ompi_cv_asm_file" = "" ; then ++ { echo "$as_me:$LINENO: result: none" >&5 ++echo "${ECHO_T}none" >&6; } ++ result=0 ++ else ++ { echo "$as_me:$LINENO: result: $ompi_cv_asm_file" >&5 ++echo "${ECHO_T}$ompi_cv_asm_file" >&6; } ++ result=1 ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_ASM_FILE $result ++_ACEOF ++ ++ if test "$result" = "1"; then ++ OMPI_HAVE_ASM_FILE_TRUE= ++ OMPI_HAVE_ASM_FILE_FALSE='#' ++else ++ OMPI_HAVE_ASM_FILE_TRUE='#' ++ OMPI_HAVE_ASM_FILE_FALSE= ++fi ++ ++ ++ OMPI_ASM_FILE=$ompi_cv_asm_file ++ ++ ++ ++ unset result asm_format ++ ++ ++ ++################################## ++# Fortran ++################################## ++ ++#----------- ++# Fortran 77 ++#----------- ++ ++ ++ ++ ++# Modularize this setup so that sub-configure.in scripts can use this ++# same setup code. ++ ++ompi_show_subtitle "Fortran 77 compiler" ++ ++# ++# Check for the compiler ++# ++# Note that we don't actually *use* the fortran compiler to build ++# anything in OMPI; it's only used here in configure to find out ++# symbol conventions, type sizes, etc. We also pass it down to ++# the wrapper compiler mpif77. ++# ++# Always run this test, even if fortran isn't wanted so that F77 has ++# value for the Fint tests ++# ++ompi_fflags_save="$FFLAGS" ++ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++if test -n "$ac_tool_prefix"; then ++ for ac_prog in gfortran g77 f77 xlf frt ifort pgf77 fort77 fl32 af77 ++ do ++ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ++set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_F77+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$F77"; then ++ ac_cv_prog_F77="$F77" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_F77="$ac_tool_prefix$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++F77=$ac_cv_prog_F77 ++if test -n "$F77"; then ++ { echo "$as_me:$LINENO: result: $F77" >&5 ++echo "${ECHO_T}$F77" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$F77" && break ++ done ++fi ++if test -z "$F77"; then ++ ac_ct_F77=$F77 ++ for ac_prog in gfortran g77 f77 xlf frt ifort pgf77 fort77 fl32 af77 ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_F77+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_F77"; then ++ ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_F77="$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_F77=$ac_cv_prog_ac_ct_F77 ++if test -n "$ac_ct_F77"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 ++echo "${ECHO_T}$ac_ct_F77" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$ac_ct_F77" && break ++done ++ ++ if test "x$ac_ct_F77" = x; then ++ F77="" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ F77=$ac_ct_F77 ++ fi ++fi ++ ++ ++# Provide some information about the compiler. ++echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 ++ac_compiler=`set X $ac_compile; echo $2` ++{ (ac_try="$ac_compiler --version >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler --version >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -v >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -v >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -V >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -V >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++rm -f a.out ++ ++# If we don't use `.F' as extension, the preprocessor is not run on the ++# input file. (Note that this only needs to work for GNU compilers.) ++ac_save_ext=$ac_ext ++ac_ext=F ++{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 ++echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } ++if test "${ac_cv_f77_compiler_gnu+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++#ifndef __GNUC__ ++ choke me ++#endif ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_compiler_gnu=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_compiler_gnu=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ac_cv_f77_compiler_gnu=$ac_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 ++echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } ++ac_ext=$ac_save_ext ++ac_test_FFLAGS=${FFLAGS+set} ++ac_save_FFLAGS=$FFLAGS ++FFLAGS= ++{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 ++echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } ++if test "${ac_cv_prog_f77_g+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ FFLAGS=-g ++cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_f77_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_prog_f77_g=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 ++echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } ++if test "$ac_test_FFLAGS" = set; then ++ FFLAGS=$ac_save_FFLAGS ++elif test $ac_cv_prog_f77_g = yes; then ++ if test "x$ac_cv_f77_compiler_gnu" = xyes; then ++ FFLAGS="-g -O2" ++ else ++ FFLAGS="-g" ++ fi ++else ++ if test "x$ac_cv_f77_compiler_gnu" = xyes; then ++ FFLAGS="-O2" ++ else ++ FFLAGS= ++ fi ++fi ++ ++G77=`test $ac_compiler_gnu = yes && echo yes` ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++FFLAGS="$ompi_fflags_save" ++if test -z "$F77"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 bindings disabled (could not find compiler)" >&5 ++echo "$as_me: WARNING: *** Fortran 77 bindings disabled (could not find compiler)" >&2;} ++ OMPI_WANT_F77_BINDINGS=0 ++ OMPI_F77="none" ++ BASEF77="none" ++ OMPI_F77_ABSOLUTE="none" ++else ++ OMPI_F77="$F77" ++ set dummy $OMPI_F77 ++ OMPI_F77_ARGV0=$2 ++ BASEF77="`basename $OMPI_F77_ARGV0`" ++ ++# 1 is the variable name to do "which" on ++# 2 is the variable name to assign the return value to ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ompi_prog=$OMPI_F77_ARGV0 ++ ++IFS_SAVE=$IFS ++IFS="$PATH_SEPARATOR" ++for ompi_dir in $PATH; do ++ if test -x "$ompi_dir/$ompi_prog"; then ++ OMPI_F77_ABSOLUTE="$ompi_dir/$ompi_prog" ++ break ++ fi ++done ++IFS=$IFS_SAVE ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ if test "$OMPI_WANT_F77_BINDINGS" = "0" ; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 bindings disabled by user" >&5 ++echo "$as_me: WARNING: *** Fortran 77 bindings disabled by user" >&2;} ++ OMPI_WANT_F77_BINDINGS=0 ++ else ++ OMPI_WANT_F77_BINDINGS=1 ++ fi ++fi ++ ++# make sure the compiler actually works, if not cross-compiling ++# Don't just use the AC macro so that we can have a pretty ++# message. ++if test $OMPI_WANT_F77_BINDINGS -eq 1; then ++ ++ ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler works" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler works... $ECHO_C" >&6; } ++if test "${ompi_cv_Fortran_77_works+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ if test "$cross_compiling" = yes; then ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_Fortran_77_works="links (cross compiling)" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_Fortran_77_works="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++else ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_Fortran_77_works="yes" ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++ompi_cv_Fortran_77_works="no" ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_Fortran_77_works" >&5 ++echo "${ECHO_T}$ompi_cv_Fortran_77_works" >&6; } ++ if test "$ompi_cv_Fortran_77_works" = "no"; then ++ cat <&2 ++********************************************************************** ++* It appears that your Fortran 77 compiler is unable to produce working ++* executables. A simple test application failed to properly ++* execute. Note that this is likely not a problem with Open MPI, ++* but a problem with the local compiler installation. More ++* information (including exactly what command was given to the ++* compiler and what error resulted when the command was executed) is ++* available in the config.log file in this directory. ++********************************************************************** ++EOF ++ { { echo "$as_me:$LINENO: error: Could not run a simple Fortran 77 program. Aborting." >&5 ++echo "$as_me: error: Could not run a simple Fortran 77 program. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ ++fi ++ ++ ++# now make sure we know our linking convention... ++ ++ ++ ++ ++ # invalidate cache if result came from a run where F77 was disabled ++ if test "$ompi_cv_f77_external_symbol" = "skipped" ; then ++ unset ompi_cv_f77_external_symbol ++ fi ++ ++ { echo "$as_me:$LINENO: checking $F77 external symbol convention" >&5 ++echo $ECHO_N "checking $F77 external symbol convention... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_external_symbol+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$F77" = "none" -o "$OMPI_WANT_F77_BINDINGS" = "0"; then ++ ompi_cv_f77_external_symbol="skipped" ++ else ++ cat >conftest.f <&5 ++$F77 $FFLAGS -c conftest.f $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if $NM conftest.o | $GREP foo_bar__ >/dev/null 2>&1 ; then ++ ompi_cv_f77_external_symbol="double underscore" ++ elif $NM conftest.o | $GREP foo_bar_ >/dev/null 2>&1 ; then ++ ompi_cv_f77_external_symbol="single underscore" ++ elif $NM conftest.o | $GREP FOO_bar >/dev/null 2>&1 ; then ++ ompi_cv_f77_external_symbol="mixed case" ++ elif $NM conftest.o | $GREP foo_bar >/dev/null 2>&1 ; then ++ ompi_cv_f77_external_symbol="no underscore" ++ elif $NM conftest.o | $GREP FOO_BAR >/dev/null 2>&1 ; then ++ ompi_cv_f77_external_symbol="upper case" ++ else ++ $NM conftest.o >conftest.out 2>&1 ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: output from $NM:" >&5 ++else ++ echo output from $NM: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.out" -a -f "conftest.out"; then ++ cat conftest.out >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine Fortran naming convention." >&5 ++echo "$as_me: error: Could not determine Fortran naming convention." >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Fortran compiler did not produce object file" >&5 ++echo "$as_me: error: Fortran compiler did not produce object file" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ fi ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_external_symbol" >&5 ++echo "${ECHO_T}$ompi_cv_f77_external_symbol" >&6; } ++ ++ ompi_fortran_double_underscore=0 ++ ompi_fortran_single_underscore=0 ++ ompi_fortran_caps=0 ++ ompi_fortran_plain=0 ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ ompi_fortran_double_underscore=1 ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_fortran_single_underscore=1 ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_fortran_caps=1 ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_fortran_plain=1 ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_fortran_caps=1 ++ elif test "$ompi_cv_f77_external_symbol" != "skipped" ; then ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_F77_DOUBLE_UNDERSCORE $ompi_fortran_double_underscore ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_F77_SINGLE_UNDERSCORE $ompi_fortran_single_underscore ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_F77_CAPS $ompi_fortran_caps ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_F77_PLAIN $ompi_fortran_plain ++_ACEOF ++ ++ ++ rm -rf conftest.* ++ ++ ++# Make sure we can link with C code... ++if test $OMPI_WANT_F77_BINDINGS -eq 1; then ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if C and Fortran 77 are link compatible" >&5 ++echo $ECHO_N "checking if C and Fortran 77 are link compatible... $ECHO_C" >&6; } ++if test "${ompi_cv_c_link_Fortran_77+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo testfunc | $GREP _ >/dev/null 2>&1 ; then ++ testfunc_name=testfunc__ ++ else ++ testfunc_name=testfunc_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ testfunc_name=testfunc_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ testfunc_name=testfunc ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ testfunc_name=testfunc ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ testfunc_name=TESTFUNC ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ ++ # Write out C part ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ rm -f conftest_c.$ac_ext ++ cat > conftest_c.$ac_ext << EOF ++int $testfunc_name(int a); ++int $testfunc_name(int a) { return a; } ++EOF ++ ++ # Now compile both parts ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext" >&5 ++$CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ ompi_lang_link_with_c_libs="$LIBS" ++ LIBS="conftest_c.o $LIBS" ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ external testfunc ++ call testfunc(1) ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_c_link_Fortran_77="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_c_link_Fortran_77="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LIBS="$ompi_lang_link_with_c_libs" ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++else ++ unset ompi_status ++ ompi_cv_c_link_Fortran_77="no" ++fi ++ rm -f conftest_c.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_link_Fortran_77" >&5 ++echo "${ECHO_T}$ompi_cv_c_link_Fortran_77" >&6; } ++ ++ if test "$ompi_cv_c_link_Fortran_77" = "yes"; then ++ : ++else ++ cat <&5 ++echo "$as_me: error: C and Fortran 77 compilers are not link compatible. Can not continue." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++fi ++ ++ ++# Test to see if the F77 compilers likes the C++ exceptions flags. If ++# it doesn't, just abort. We *could* handle this scenario (e.g., ++# probe the F77 compiler for what flags would be necessary), but we're ++# kinda assuming that no one will care. If they do, they'll e-mail us. ++{ echo "$as_me:$LINENO: checking to see if F77 compiler likes the C++ exception flags" >&5 ++echo $ECHO_N "checking to see if F77 compiler likes the C++ exception flags... $ECHO_C" >&6; } ++if test $OMPI_WANT_F77_BINDINGS -eq 0; then ++ { echo "$as_me:$LINENO: result: skipped (no F77 bindings)" >&5 ++echo "${ECHO_T}skipped (no F77 bindings)" >&6; } ++elif test "$OMPI_CXX_EXCEPTIONS_CXXFLAGS" = ""; then ++ { echo "$as_me:$LINENO: result: skipped (no C++ exceptions flags)" >&5 ++echo "${ECHO_T}skipped (no C++ exceptions flags)" >&6; } ++else ++ FFLAGS="$FFLAGS $OMPI_CXX_EXCEPTIONS_CXXFLAGS" ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ INTEGER I ++ I = 3 ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: C++ exception flags are different between the C and C++ compilers; this configure script cannot currently handle this scenario. Either disable C++ exception support or send mail to the Open MPI users list." >&5 ++echo "$as_me: WARNING: C++ exception flags are different between the C and C++ compilers; this configure script cannot currently handle this scenario. Either disable C++ exception support or send mail to the Open MPI users list." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_WANT_F77_BINDINGS $OMPI_WANT_F77_BINDINGS ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_F77 "$OMPI_F77" ++_ACEOF ++ ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ OMPI_WANT_F77_BINDINGS_TRUE= ++ OMPI_WANT_F77_BINDINGS_FALSE='#' ++else ++ OMPI_WANT_F77_BINDINGS_TRUE='#' ++ OMPI_WANT_F77_BINDINGS_FALSE= ++fi ++ ++ ++ ++ ++# This allows us to mark bogus types, but still have them be a valid ++# [sentinel] value ++ ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define ompi_fortran_bogus_type_t int ++_ACEOF ++ ++ ++# We want to set the #define's for all of these, so invoke the macros ++# regardless of whether we have F77 support or not. ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=-1 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports LOGICAL... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_LOGICAL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ LOGICAL bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_LOGICAL="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_LOGICAL="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_LOGICAL" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_LOGICAL" >&6; } ++ ++ if test "$ompi_cv_f77_have_LOGICAL" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports LOGICAL... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 LOGICAL" >&5 ++echo $ECHO_N "checking size of Fortran 77 LOGICAL... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_LOGICAL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of LOGICAL when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of LOGICAL when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_LOGICAL=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_LOGICAL" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_LOGICAL" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_LOGICAL ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 LOGICAL does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 LOGICAL does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="yes" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to LOGICAL" >&5 ++echo $ECHO_N "checking for C type corresponding to LOGICAL... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_LOGICAL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_char" = "$oft_target_size" ; then ++ oft_real_type="char" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then ++ oft_real_type="int32_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then ++ oft_real_type="int" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then ++ oft_real_type="int64_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then ++ oft_real_type="long long" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then ++ oft_real_type="long" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_LOGICAL="not found" ++else ++ ompi_cv_find_type_LOGICAL="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_LOGICAL" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_LOGICAL" >&6; } ++ ++ if test "$ompi_cv_find_type_LOGICAL" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_LOGICAL" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_LOGICAL ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran LOGICAL" >&5 ++echo $ECHO_N "checking alignment of Fortran LOGICAL... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_LOGICAL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL" >&5 ++echo "$as_me: error: Could not determine alignment of LOGICAL" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of LOGICAL when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of LOGICAL when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_LOGICAL=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL" >&5 ++echo "$as_me: error: Could not determine alignment of LOGICAL" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_LOGICAL" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_LOGICAL" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_LOGICAL ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_LOGICAL $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_LOGICAL $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_LOGICAL $ofc_type_alignment ++_ACEOF ++ ++ if test "char, int32_t, int, int64_t, long long, long" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_logical_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_LOGICAL_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_LOGICAL=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_LOGICAL=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_LOGICAL=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=1 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL*1" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports LOGICAL*1... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_LOGICALp1+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ LOGICAL*1 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_LOGICALp1="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_LOGICALp1="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_LOGICALp1" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_LOGICALp1" >&6; } ++ ++ if test "$ompi_cv_f77_have_LOGICALp1" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL*1" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports LOGICAL*1... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 LOGICAL*1" >&5 ++echo $ECHO_N "checking size of Fortran 77 LOGICAL*1... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_LOGICALp1+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*1" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*1" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of LOGICAL*1 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of LOGICAL*1 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_LOGICALp1=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*1" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*1" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*1" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*1" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_LOGICALp1" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_LOGICALp1" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_LOGICALp1 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 LOGICAL*1 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 LOGICAL*1 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*1" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*1" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="yes" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to LOGICAL*1" >&5 ++echo $ECHO_N "checking for C type corresponding to LOGICAL*1... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_LOGICALp1+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_char" = "$oft_target_size" ; then ++ oft_real_type="char" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int8_t" = "$oft_target_size" ; then ++ oft_real_type="int8_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_short" = "$oft_target_size" ; then ++ oft_real_type="short" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then ++ oft_real_type="int32_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then ++ oft_real_type="int" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then ++ oft_real_type="int64_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then ++ oft_real_type="long long" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then ++ oft_real_type="long" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_LOGICALp1="not found" ++else ++ ompi_cv_find_type_LOGICALp1="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_LOGICALp1" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_LOGICALp1" >&6; } ++ ++ if test "$ompi_cv_find_type_LOGICALp1" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_LOGICALp1" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_LOGICALp1 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran LOGICAL*1" >&5 ++echo $ECHO_N "checking alignment of Fortran LOGICAL*1... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_LOGICALp1+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL*1" >&5 ++echo "$as_me: error: Could not determine alignment of LOGICAL*1" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of LOGICAL*1 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of LOGICAL*1 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_LOGICALp1=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL*1" >&5 ++echo "$as_me: error: Could not determine alignment of LOGICAL*1" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_LOGICALp1" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_LOGICALp1" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_LOGICALp1 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_LOGICAL1 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_LOGICAL1 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_LOGICAL1 $ofc_type_alignment ++_ACEOF ++ ++ if test "char, int8_t, short, int32_t, int, int64_t, long long, long" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_logical1_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_LOGICAL1_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_LOGICAL1=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_LOGICAL1=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_LOGICAL1=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=2 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL*2" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports LOGICAL*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_LOGICALp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ LOGICAL*2 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_LOGICALp2="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_LOGICALp2="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_LOGICALp2" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_LOGICALp2" >&6; } ++ ++ if test "$ompi_cv_f77_have_LOGICALp2" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL*2" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports LOGICAL*2... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 LOGICAL*2" >&5 ++echo $ECHO_N "checking size of Fortran 77 LOGICAL*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_LOGICALp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*2" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*2" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of LOGICAL*2 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of LOGICAL*2 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_LOGICALp2=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*2" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*2" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*2" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*2" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_LOGICALp2" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_LOGICALp2" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_LOGICALp2 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 LOGICAL*2 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 LOGICAL*2 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*2" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*2" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="yes" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to LOGICAL*2" >&5 ++echo $ECHO_N "checking for C type corresponding to LOGICAL*2... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_LOGICALp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_short" = "$oft_target_size" ; then ++ oft_real_type="short" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int16_t" = "$oft_target_size" ; then ++ oft_real_type="int16_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then ++ oft_real_type="int32_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then ++ oft_real_type="int" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then ++ oft_real_type="int64_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then ++ oft_real_type="long long" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then ++ oft_real_type="long" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_LOGICALp2="not found" ++else ++ ompi_cv_find_type_LOGICALp2="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_LOGICALp2" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_LOGICALp2" >&6; } ++ ++ if test "$ompi_cv_find_type_LOGICALp2" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_LOGICALp2" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_LOGICALp2 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran LOGICAL*2" >&5 ++echo $ECHO_N "checking alignment of Fortran LOGICAL*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_LOGICALp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL*2" >&5 ++echo "$as_me: error: Could not determine alignment of LOGICAL*2" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of LOGICAL*2 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of LOGICAL*2 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_LOGICALp2=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL*2" >&5 ++echo "$as_me: error: Could not determine alignment of LOGICAL*2" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_LOGICALp2" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_LOGICALp2" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_LOGICALp2 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_LOGICAL2 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_LOGICAL2 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_LOGICAL2 $ofc_type_alignment ++_ACEOF ++ ++ if test "short, int16_t, int32_t, int, int64_t, long long, long" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_logical2_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_LOGICAL2_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_LOGICAL2=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_LOGICAL2=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_LOGICAL2=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=4 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL*4" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports LOGICAL*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_LOGICALp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ LOGICAL*4 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_LOGICALp4="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_LOGICALp4="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_LOGICALp4" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_LOGICALp4" >&6; } ++ ++ if test "$ompi_cv_f77_have_LOGICALp4" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL*4" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports LOGICAL*4... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 LOGICAL*4" >&5 ++echo $ECHO_N "checking size of Fortran 77 LOGICAL*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_LOGICALp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*4" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*4" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of LOGICAL*4 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of LOGICAL*4 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_LOGICALp4=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*4" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*4" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*4" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*4" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_LOGICALp4" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_LOGICALp4" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_LOGICALp4 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 LOGICAL*4 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 LOGICAL*4 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*4" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*4" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="yes" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to LOGICAL*4" >&5 ++echo $ECHO_N "checking for C type corresponding to LOGICAL*4... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_LOGICALp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then ++ oft_real_type="int32_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then ++ oft_real_type="int" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then ++ oft_real_type="int64_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then ++ oft_real_type="long long" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then ++ oft_real_type="long" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_LOGICALp4="not found" ++else ++ ompi_cv_find_type_LOGICALp4="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_LOGICALp4" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_LOGICALp4" >&6; } ++ ++ if test "$ompi_cv_find_type_LOGICALp4" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_LOGICALp4" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_LOGICALp4 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran LOGICAL*4" >&5 ++echo $ECHO_N "checking alignment of Fortran LOGICAL*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_LOGICALp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL*4" >&5 ++echo "$as_me: error: Could not determine alignment of LOGICAL*4" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of LOGICAL*4 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of LOGICAL*4 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_LOGICALp4=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL*4" >&5 ++echo "$as_me: error: Could not determine alignment of LOGICAL*4" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_LOGICALp4" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_LOGICALp4" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_LOGICALp4 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_LOGICAL4 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_LOGICAL4 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_LOGICAL4 $ofc_type_alignment ++_ACEOF ++ ++ if test "int32_t, int, int64_t, long long, long" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_logical4_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_LOGICAL4_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_LOGICAL4=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_LOGICAL4=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_LOGICAL4=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=8 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL*8" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports LOGICAL*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_LOGICALp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ LOGICAL*8 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_LOGICALp8="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_LOGICALp8="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_LOGICALp8" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_LOGICALp8" >&6; } ++ ++ if test "$ompi_cv_f77_have_LOGICALp8" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL*8" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports LOGICAL*8... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 LOGICAL*8" >&5 ++echo $ECHO_N "checking size of Fortran 77 LOGICAL*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_LOGICALp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*8" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*8" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of LOGICAL*8 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of LOGICAL*8 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_LOGICALp8=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*8" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*8" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_LOGICALp8" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_LOGICALp8" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_LOGICALp8 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 LOGICAL*8 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 LOGICAL*8 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*8" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*8" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="yes" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to LOGICAL*8" >&5 ++echo $ECHO_N "checking for C type corresponding to LOGICAL*8... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_LOGICALp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then ++ oft_real_type="int" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then ++ oft_real_type="int64_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then ++ oft_real_type="long long" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then ++ oft_real_type="long" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_LOGICALp8="not found" ++else ++ ompi_cv_find_type_LOGICALp8="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_LOGICALp8" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_LOGICALp8" >&6; } ++ ++ if test "$ompi_cv_find_type_LOGICALp8" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_LOGICALp8" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_LOGICALp8 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran LOGICAL*8" >&5 ++echo $ECHO_N "checking alignment of Fortran LOGICAL*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_LOGICALp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL*8" >&5 ++echo "$as_me: error: Could not determine alignment of LOGICAL*8" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of LOGICAL*8 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of LOGICAL*8 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_LOGICALp8=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL*8" >&5 ++echo "$as_me: error: Could not determine alignment of LOGICAL*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_LOGICALp8" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_LOGICALp8" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_LOGICALp8 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_LOGICAL8 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_LOGICAL8 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_LOGICAL8 $ofc_type_alignment ++_ACEOF ++ ++ if test "int, int64_t, long long, long" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_logical8_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_LOGICAL8_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_LOGICAL8=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_LOGICAL8=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_LOGICAL8=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=-1 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_INTEGER+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ INTEGER bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_INTEGER="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_INTEGER="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGER" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_INTEGER" >&6; } ++ ++ if test "$ompi_cv_f77_have_INTEGER" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER" >&5 ++echo $ECHO_N "checking size of Fortran 77 INTEGER... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_INTEGER+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER" >&5 ++echo "$as_me: error: Could not determine size of INTEGER" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of INTEGER when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_INTEGER=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER" >&5 ++echo "$as_me: error: Could not determine size of INTEGER" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER" >&5 ++echo "$as_me: error: Could not determine size of INTEGER" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGER" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_INTEGER" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_INTEGER ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 INTEGER does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="yes" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to INTEGER" >&5 ++echo $ECHO_N "checking for C type corresponding to INTEGER... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_INTEGER+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then ++ oft_real_type="int32_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then ++ oft_real_type="int" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then ++ oft_real_type="int64_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then ++ oft_real_type="long long" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then ++ oft_real_type="long" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_INTEGER="not found" ++else ++ ompi_cv_find_type_INTEGER="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGER" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_INTEGER" >&6; } ++ ++ if test "$ompi_cv_find_type_INTEGER" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_INTEGER" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_INTEGER ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran INTEGER" >&5 ++echo $ECHO_N "checking alignment of Fortran INTEGER... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_INTEGER+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER" >&5 ++echo "$as_me: error: Could not determine alignment of INTEGER" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of INTEGER when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_INTEGER=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER" >&5 ++echo "$as_me: error: Could not determine alignment of INTEGER" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGER" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_INTEGER" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_INTEGER ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_INTEGER $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_INTEGER $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_INTEGER $ofc_type_alignment ++_ACEOF ++ ++ if test "int32_t, int, int64_t, long long, long" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_integer_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_INTEGER_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_INTEGER=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_INTEGER=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_INTEGER=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=1 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*1" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*1... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_INTEGERp1+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ INTEGER*1 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_INTEGERp1="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_INTEGERp1="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGERp1" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_INTEGERp1" >&6; } ++ ++ if test "$ompi_cv_f77_have_INTEGERp1" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*1" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*1... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER*1" >&5 ++echo $ECHO_N "checking size of Fortran 77 INTEGER*1... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_INTEGERp1+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*1" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*1" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*1 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of INTEGER*1 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_INTEGERp1=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*1" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*1" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*1" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*1" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGERp1" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_INTEGERp1" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_INTEGERp1 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER*1 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 INTEGER*1 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*1" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*1" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="no" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to INTEGER*1" >&5 ++echo $ECHO_N "checking for C type corresponding to INTEGER*1... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_INTEGERp1+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_char" = "$oft_target_size" ; then ++ oft_real_type="char" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int8_t" = "$oft_target_size" ; then ++ oft_real_type="int8_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_short" = "$oft_target_size" ; then ++ oft_real_type="short" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then ++ oft_real_type="int" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then ++ oft_real_type="int64_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then ++ oft_real_type="long long" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then ++ oft_real_type="long" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_INTEGERp1="not found" ++else ++ ompi_cv_find_type_INTEGERp1="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGERp1" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_INTEGERp1" >&6; } ++ ++ if test "$ompi_cv_find_type_INTEGERp1" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_INTEGERp1" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_INTEGERp1 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran INTEGER*1" >&5 ++echo $ECHO_N "checking alignment of Fortran INTEGER*1... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_INTEGERp1+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*1" >&5 ++echo "$as_me: error: Could not determine alignment of INTEGER*1" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER*1 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of INTEGER*1 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_INTEGERp1=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*1" >&5 ++echo "$as_me: error: Could not determine alignment of INTEGER*1" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGERp1" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_INTEGERp1" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp1 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_INTEGER1 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_INTEGER1 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_INTEGER1 $ofc_type_alignment ++_ACEOF ++ ++ if test "char, int8_t, short, int, int64_t, long long, long" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_integer1_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_INTEGER1_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_INTEGER1=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_INTEGER1=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_INTEGER1=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=2 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*2" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_INTEGERp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ INTEGER*2 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_INTEGERp2="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_INTEGERp2="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGERp2" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_INTEGERp2" >&6; } ++ ++ if test "$ompi_cv_f77_have_INTEGERp2" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*2" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*2... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER*2" >&5 ++echo $ECHO_N "checking size of Fortran 77 INTEGER*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_INTEGERp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*2" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*2" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*2 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of INTEGER*2 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_INTEGERp2=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*2" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*2" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*2" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*2" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGERp2" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_INTEGERp2" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_INTEGERp2 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER*2 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 INTEGER*2 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*2" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*2" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="no" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to INTEGER*2" >&5 ++echo $ECHO_N "checking for C type corresponding to INTEGER*2... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_INTEGERp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_short" = "$oft_target_size" ; then ++ oft_real_type="short" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int16_t" = "$oft_target_size" ; then ++ oft_real_type="int16_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then ++ oft_real_type="int32_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then ++ oft_real_type="int" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then ++ oft_real_type="int64_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then ++ oft_real_type="long long" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then ++ oft_real_type="long" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_INTEGERp2="not found" ++else ++ ompi_cv_find_type_INTEGERp2="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGERp2" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_INTEGERp2" >&6; } ++ ++ if test "$ompi_cv_find_type_INTEGERp2" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_INTEGERp2" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_INTEGERp2 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran INTEGER*2" >&5 ++echo $ECHO_N "checking alignment of Fortran INTEGER*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_INTEGERp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*2" >&5 ++echo "$as_me: error: Could not determine alignment of INTEGER*2" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER*2 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of INTEGER*2 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_INTEGERp2=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*2" >&5 ++echo "$as_me: error: Could not determine alignment of INTEGER*2" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGERp2" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_INTEGERp2" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp2 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_INTEGER2 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_INTEGER2 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_INTEGER2 $ofc_type_alignment ++_ACEOF ++ ++ if test "short, int16_t, int32_t, int, int64_t, long long, long" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_integer2_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_INTEGER2_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_INTEGER2=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_INTEGER2=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_INTEGER2=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=4 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*4" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_INTEGERp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ INTEGER*4 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_INTEGERp4="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_INTEGERp4="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGERp4" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_INTEGERp4" >&6; } ++ ++ if test "$ompi_cv_f77_have_INTEGERp4" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*4" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*4... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER*4" >&5 ++echo $ECHO_N "checking size of Fortran 77 INTEGER*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_INTEGERp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*4" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*4" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*4 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of INTEGER*4 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_INTEGERp4=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*4" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*4" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*4" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*4" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGERp4" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_INTEGERp4" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_INTEGERp4 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER*4 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 INTEGER*4 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*4" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*4" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="no" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to INTEGER*4" >&5 ++echo $ECHO_N "checking for C type corresponding to INTEGER*4... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_INTEGERp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then ++ oft_real_type="int32_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then ++ oft_real_type="int" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then ++ oft_real_type="int64_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then ++ oft_real_type="long long" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then ++ oft_real_type="long" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_INTEGERp4="not found" ++else ++ ompi_cv_find_type_INTEGERp4="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGERp4" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_INTEGERp4" >&6; } ++ ++ if test "$ompi_cv_find_type_INTEGERp4" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_INTEGERp4" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_INTEGERp4 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran INTEGER*4" >&5 ++echo $ECHO_N "checking alignment of Fortran INTEGER*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_INTEGERp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*4" >&5 ++echo "$as_me: error: Could not determine alignment of INTEGER*4" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER*4 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of INTEGER*4 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_INTEGERp4=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*4" >&5 ++echo "$as_me: error: Could not determine alignment of INTEGER*4" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGERp4" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_INTEGERp4" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp4 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_INTEGER4 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_INTEGER4 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_INTEGER4 $ofc_type_alignment ++_ACEOF ++ ++ if test "int32_t, int, int64_t, long long, long" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_integer4_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_INTEGER4_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_INTEGER4=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_INTEGER4=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_INTEGER4=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=8 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*8" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_INTEGERp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ INTEGER*8 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_INTEGERp8="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_INTEGERp8="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGERp8" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_INTEGERp8" >&6; } ++ ++ if test "$ompi_cv_f77_have_INTEGERp8" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*8" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*8... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER*8" >&5 ++echo $ECHO_N "checking size of Fortran 77 INTEGER*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_INTEGERp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*8" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*8" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*8 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of INTEGER*8 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_INTEGERp8=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*8" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*8" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGERp8" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_INTEGERp8" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_INTEGERp8 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER*8 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 INTEGER*8 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*8" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*8" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="no" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to INTEGER*8" >&5 ++echo $ECHO_N "checking for C type corresponding to INTEGER*8... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_INTEGERp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then ++ oft_real_type="int" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then ++ oft_real_type="int64_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then ++ oft_real_type="long long" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then ++ oft_real_type="long" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_INTEGERp8="not found" ++else ++ ompi_cv_find_type_INTEGERp8="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGERp8" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_INTEGERp8" >&6; } ++ ++ if test "$ompi_cv_find_type_INTEGERp8" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_INTEGERp8" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_INTEGERp8 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran INTEGER*8" >&5 ++echo $ECHO_N "checking alignment of Fortran INTEGER*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_INTEGERp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*8" >&5 ++echo "$as_me: error: Could not determine alignment of INTEGER*8" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER*8 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of INTEGER*8 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_INTEGERp8=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*8" >&5 ++echo "$as_me: error: Could not determine alignment of INTEGER*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGERp8" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_INTEGERp8" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp8 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_INTEGER8 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_INTEGER8 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_INTEGER8 $ofc_type_alignment ++_ACEOF ++ ++ if test "int, int64_t, long long, long" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_integer8_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_INTEGER8_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_INTEGER8=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_INTEGER8=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_INTEGER8=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=16 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*16" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_INTEGERp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ INTEGER*16 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_INTEGERp16="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_INTEGERp16="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGERp16" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_INTEGERp16" >&6; } ++ ++ if test "$ompi_cv_f77_have_INTEGERp16" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*16" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*16... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER*16" >&5 ++echo $ECHO_N "checking size of Fortran 77 INTEGER*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_INTEGERp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*16" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*16" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*16 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of INTEGER*16 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_INTEGERp16=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*16" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*16" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*16" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*16" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGERp16" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_INTEGERp16" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_INTEGERp16 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER*16 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 INTEGER*16 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*16" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*16" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="no" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to INTEGER*16" >&5 ++echo $ECHO_N "checking for C type corresponding to INTEGER*16... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_INTEGERp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then ++ oft_real_type="int" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then ++ oft_real_type="int64_t" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then ++ oft_real_type="long long" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then ++ oft_real_type="long" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_INTEGERp16="not found" ++else ++ ompi_cv_find_type_INTEGERp16="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGERp16" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_INTEGERp16" >&6; } ++ ++ if test "$ompi_cv_find_type_INTEGERp16" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_INTEGERp16" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_INTEGERp16 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran INTEGER*16" >&5 ++echo $ECHO_N "checking alignment of Fortran INTEGER*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_INTEGERp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*16" >&5 ++echo "$as_me: error: Could not determine alignment of INTEGER*16" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER*16 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of INTEGER*16 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_INTEGERp16=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*16" >&5 ++echo "$as_me: error: Could not determine alignment of INTEGER*16" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGERp16" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_INTEGERp16" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp16 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_INTEGER16 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_INTEGER16 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_INTEGER16 $ofc_type_alignment ++_ACEOF ++ ++ if test "int, int64_t, long long, long" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_integer16_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_INTEGER16_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_INTEGER16=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_INTEGER16=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_INTEGER16=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=-1 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports REAL... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_REAL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ REAL bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_REAL="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_REAL="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_REAL" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_REAL" >&6; } ++ ++ if test "$ompi_cv_f77_have_REAL" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports REAL... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 REAL" >&5 ++echo $ECHO_N "checking size of Fortran 77 REAL... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_REAL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL" >&5 ++echo "$as_me: error: Could not determine size of REAL" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of REAL when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of REAL when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_REAL=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL" >&5 ++echo "$as_me: error: Could not determine size of REAL" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL" >&5 ++echo "$as_me: error: Could not determine size of REAL" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_REAL" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_REAL" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_REAL ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 REAL does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 REAL does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 REAL" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 REAL" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="yes" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to REAL" >&5 ++echo $ECHO_N "checking for C type corresponding to REAL... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_REAL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then ++ oft_real_type="float" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then ++ oft_real_type="double" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then ++ oft_real_type="long double" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_REAL="not found" ++else ++ ompi_cv_find_type_REAL="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_REAL" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_REAL" >&6; } ++ ++ if test "$ompi_cv_find_type_REAL" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_REAL" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_REAL ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran REAL" >&5 ++echo $ECHO_N "checking alignment of Fortran REAL... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_REAL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL" >&5 ++echo "$as_me: error: Could not determine alignment of REAL" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of REAL when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of REAL when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_REAL=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL" >&5 ++echo "$as_me: error: Could not determine alignment of REAL" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_REAL" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_REAL" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_REAL ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_REAL $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_REAL $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_REAL $ofc_type_alignment ++_ACEOF ++ ++ if test "float, double, long double" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_real_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_REAL_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_REAL=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_REAL=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_REAL=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=2 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*2" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports REAL*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_REALp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ REAL*2 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_REALp2="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_REALp2="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_REALp2" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_REALp2" >&6; } ++ ++ if test "$ompi_cv_f77_have_REALp2" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*2" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports REAL*2... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 REAL*2" >&5 ++echo $ECHO_N "checking size of Fortran 77 REAL*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_REALp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*2" >&5 ++echo "$as_me: error: Could not determine size of REAL*2" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of REAL*2 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of REAL*2 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_REALp2=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*2" >&5 ++echo "$as_me: error: Could not determine size of REAL*2" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*2" >&5 ++echo "$as_me: error: Could not determine size of REAL*2" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_REALp2" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_REALp2" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_REALp2 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 REAL*2 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 REAL*2 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 REAL*2" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 REAL*2" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="no" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to REAL*2" >&5 ++echo $ECHO_N "checking for C type corresponding to REAL*2... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_REALp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then ++ oft_real_type="float" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then ++ oft_real_type="double" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then ++ oft_real_type="long double" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_REALp2="not found" ++else ++ ompi_cv_find_type_REALp2="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_REALp2" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_REALp2" >&6; } ++ ++ if test "$ompi_cv_find_type_REALp2" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_REALp2" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_REALp2 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran REAL*2" >&5 ++echo $ECHO_N "checking alignment of Fortran REAL*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_REALp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*2" >&5 ++echo "$as_me: error: Could not determine alignment of REAL*2" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of REAL*2 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of REAL*2 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_REALp2=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*2" >&5 ++echo "$as_me: error: Could not determine alignment of REAL*2" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_REALp2" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_REALp2" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_REALp2 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_REAL2 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_REAL2 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_REAL2 $ofc_type_alignment ++_ACEOF ++ ++ if test "float, double, long double" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_real2_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_REAL2_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_REAL2=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_REAL2=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_REAL2=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=4 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*4" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports REAL*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_REALp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ REAL*4 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_REALp4="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_REALp4="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_REALp4" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_REALp4" >&6; } ++ ++ if test "$ompi_cv_f77_have_REALp4" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*4" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports REAL*4... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 REAL*4" >&5 ++echo $ECHO_N "checking size of Fortran 77 REAL*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_REALp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*4" >&5 ++echo "$as_me: error: Could not determine size of REAL*4" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of REAL*4 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of REAL*4 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_REALp4=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*4" >&5 ++echo "$as_me: error: Could not determine size of REAL*4" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*4" >&5 ++echo "$as_me: error: Could not determine size of REAL*4" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_REALp4" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_REALp4" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_REALp4 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 REAL*4 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 REAL*4 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 REAL*4" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 REAL*4" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="no" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to REAL*4" >&5 ++echo $ECHO_N "checking for C type corresponding to REAL*4... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_REALp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then ++ oft_real_type="float" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then ++ oft_real_type="double" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then ++ oft_real_type="long double" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_REALp4="not found" ++else ++ ompi_cv_find_type_REALp4="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_REALp4" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_REALp4" >&6; } ++ ++ if test "$ompi_cv_find_type_REALp4" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_REALp4" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_REALp4 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran REAL*4" >&5 ++echo $ECHO_N "checking alignment of Fortran REAL*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_REALp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*4" >&5 ++echo "$as_me: error: Could not determine alignment of REAL*4" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of REAL*4 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of REAL*4 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_REALp4=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*4" >&5 ++echo "$as_me: error: Could not determine alignment of REAL*4" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_REALp4" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_REALp4" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_REALp4 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_REAL4 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_REAL4 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_REAL4 $ofc_type_alignment ++_ACEOF ++ ++ if test "float, double, long double" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_real4_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_REAL4_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_REAL4=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_REAL4=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_REAL4=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=8 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*8" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports REAL*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_REALp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ REAL*8 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_REALp8="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_REALp8="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_REALp8" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_REALp8" >&6; } ++ ++ if test "$ompi_cv_f77_have_REALp8" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*8" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports REAL*8... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 REAL*8" >&5 ++echo $ECHO_N "checking size of Fortran 77 REAL*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_REALp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*8" >&5 ++echo "$as_me: error: Could not determine size of REAL*8" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of REAL*8 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of REAL*8 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_REALp8=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*8" >&5 ++echo "$as_me: error: Could not determine size of REAL*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*8" >&5 ++echo "$as_me: error: Could not determine size of REAL*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_REALp8" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_REALp8" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_REALp8 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 REAL*8 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 REAL*8 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 REAL*8" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 REAL*8" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="no" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to REAL*8" >&5 ++echo $ECHO_N "checking for C type corresponding to REAL*8... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_REALp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then ++ oft_real_type="float" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then ++ oft_real_type="double" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then ++ oft_real_type="long double" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_REALp8="not found" ++else ++ ompi_cv_find_type_REALp8="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_REALp8" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_REALp8" >&6; } ++ ++ if test "$ompi_cv_find_type_REALp8" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_REALp8" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_REALp8 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran REAL*8" >&5 ++echo $ECHO_N "checking alignment of Fortran REAL*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_REALp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*8" >&5 ++echo "$as_me: error: Could not determine alignment of REAL*8" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of REAL*8 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of REAL*8 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_REALp8=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*8" >&5 ++echo "$as_me: error: Could not determine alignment of REAL*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_REALp8" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_REALp8" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_REALp8 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_REAL8 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_REAL8 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_REAL8 $ofc_type_alignment ++_ACEOF ++ ++ if test "float, double, long double" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_real8_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_REAL8_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_REAL8=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_REAL8=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_REAL8=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=16 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*16" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports REAL*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_REALp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ REAL*16 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_REALp16="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_REALp16="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_REALp16" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_REALp16" >&6; } ++ ++ if test "$ompi_cv_f77_have_REALp16" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*16" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports REAL*16... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 REAL*16" >&5 ++echo $ECHO_N "checking size of Fortran 77 REAL*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_REALp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*16" >&5 ++echo "$as_me: error: Could not determine size of REAL*16" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of REAL*16 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of REAL*16 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_REALp16=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*16" >&5 ++echo "$as_me: error: Could not determine size of REAL*16" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*16" >&5 ++echo "$as_me: error: Could not determine size of REAL*16" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_REALp16" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_REALp16" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_REALp16 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 REAL*16 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 REAL*16 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 REAL*16" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 REAL*16" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="no" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to REAL*16" >&5 ++echo $ECHO_N "checking for C type corresponding to REAL*16... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_REALp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then ++ oft_real_type="float" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then ++ oft_real_type="double" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then ++ oft_real_type="long double" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_REALp16="not found" ++else ++ ompi_cv_find_type_REALp16="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_REALp16" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_REALp16" >&6; } ++ ++ if test "$ompi_cv_find_type_REALp16" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_REALp16" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_REALp16 ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran REAL*16" >&5 ++echo $ECHO_N "checking alignment of Fortran REAL*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_REALp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*16" >&5 ++echo "$as_me: error: Could not determine alignment of REAL*16" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of REAL*16 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of REAL*16 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_REALp16=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*16" >&5 ++echo "$as_me: error: Could not determine alignment of REAL*16" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_REALp16" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_REALp16" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_REALp16 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_REAL16 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_REAL16 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_REAL16 $ofc_type_alignment ++_ACEOF ++ ++ if test "float, double, long double" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_real16_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_REAL16_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_REAL16=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_REAL16=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_REAL16=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++# In some compilers, the bit representation of REAL*16 is not the same ++# as the C counterpart that we found. If this is the case, then we ++# want to disable reduction support for MPI_REAL16 (per ticket #1603). ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy define_value msg; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy define_value msg\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ msg="in C" ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ if test "$OMPI_HAVE_FORTRAN_REAL16" = "1"; then ++ msg="of $OMPI_FORTRAN_REAL16_C_TYPE" ++fi ++ ++fi ++ ++ { echo "$as_me:$LINENO: checking if REAL*16 matches bit representation $msg" >&5 ++echo $ECHO_N "checking if REAL*16 matches bit representation $msg... $ECHO_C" >&6; } ++if test "${ompi_cv_real16_c_equiv+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$OMPI_WANT_F77_BINDINGS" = "1" -a "$OMPI_HAVE_FORTRAN_REAL16" = "1"; then ++ ++ # Make a C function of the Right name ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo c | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_c_fn=c__ ++ else ++ ompi_ac_c_fn=c_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_c_fn=c_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_c_fn=c ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_c_fn=c ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_c_fn=C ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ ++ # C module ++ cat > conftest_c.c < ++#include ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_c_fn($OMPI_FORTRAN_REAL16_C_TYPE *a) { ++ FILE *fp = fopen("conftestval", "w"); ++ if (NULL == fp) exit(1); ++ fprintf(fp, "%s\n", (1.1L == *a) ? "yes" : "no"); ++ fclose(fp); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ # Fortran module ++ cat > conftest_f.f <&5 ++$CC $CFLAGS -I. -c conftest_c.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftest_f.f conftest_c.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftest_f.f conftest_c.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ if test "$happy" = "no"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine if REAL*16 bit-matches C type" >&5 ++echo "$as_me: error: Could not determine if REAL*16 bit-matches C type" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ # If it worked so far, try running to see what we get ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine if REAL*16 bit-matches C if cross compiling" >&5 ++echo "$as_me: error: Can not determine if REAL*16 bit-matches C if cross compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_real16_c_equiv=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine if REAL*16 bit-matches C type" >&5 ++echo "$as_me: error: Could not determine if REAL*16 bit-matches C type" >&2;} ++ { (exit 1); exit 1; }; } ++ ++fi ++ ++fi ++ ++ ++ # All done; whack tmp files ++ rm -rf conftest* ++ ++else ++ ++ # No fortran bindings or no REAL*16 ++ if test "$OMPI_WANT_F77_BINDINGS" = "0"; then ++ msg="no (no Fortran bindings)" ++else ++ msg="no (no REAL*16)" ++fi ++ ++ ompi_cv_real16_c_equiv=$msg ++ ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_real16_c_equiv" >&5 ++echo "${ECHO_T}$ompi_cv_real16_c_equiv" >&6; } ++ ++ ompi_real16_matches_c=$ompi_cv_real16_c_equiv ++ ++ ++ if test "$ompi_real16_matches_c" = "yes"; then ++ define_value=1 ++else ++ define_value=0 ++ { echo "$as_me:$LINENO: WARNING: MPI_REAL16 and MPI_COMPLEX32 support have been disabled" >&5 ++echo "$as_me: WARNING: MPI_REAL16 and MPI_COMPLEX32 support have been disabled" >&2;} ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_REAL16_MATCHES_C $define_value ++_ACEOF ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=-1 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports DOUBLE PRECISION" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports DOUBLE PRECISION... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_DOUBLE_PRECISION+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ DOUBLE PRECISION bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_DOUBLE_PRECISION="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_DOUBLE_PRECISION="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_DOUBLE_PRECISION" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_DOUBLE_PRECISION" >&6; } ++ ++ if test "$ompi_cv_f77_have_DOUBLE_PRECISION" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports DOUBLE PRECISION" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports DOUBLE PRECISION... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 DOUBLE PRECISION" >&5 ++echo $ECHO_N "checking size of Fortran 77 DOUBLE PRECISION... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_DOUBLE_PRECISION+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of DOUBLE PRECISION" >&5 ++echo "$as_me: error: Could not determine size of DOUBLE PRECISION" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of DOUBLE PRECISION when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of DOUBLE PRECISION when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_DOUBLE_PRECISION=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of DOUBLE PRECISION" >&5 ++echo "$as_me: error: Could not determine size of DOUBLE PRECISION" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of DOUBLE PRECISION" >&5 ++echo "$as_me: error: Could not determine size of DOUBLE PRECISION" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_DOUBLE_PRECISION" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_DOUBLE_PRECISION" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_DOUBLE_PRECISION ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 DOUBLE PRECISION does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 DOUBLE PRECISION does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 DOUBLE PRECISION" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 DOUBLE PRECISION" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ ++ oft_abort_on_fail="yes" ++ oft_target_size="$ofc_type_size" ++ ++ { echo "$as_me:$LINENO: checking for C type corresponding to DOUBLE PRECISION" >&5 ++echo $ECHO_N "checking for C type corresponding to DOUBLE PRECISION... $ECHO_C" >&6; } ++if test "${ompi_cv_find_type_DOUBLE_PRECISION+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Loop over all the types handed to us ++ oft_real_type= ++ if test "$oft_target_size" != ""; then ++ if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then ++ oft_real_type="float" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then ++ oft_real_type="double" ++ fi ++ fi ++if test -z "$oft_real_type"; then ++ if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then ++ oft_real_type="long double" ++ fi ++ fi ++ ++fi ++ ++ if test -z "$oft_real_type"; then ++ ompi_cv_find_type_DOUBLE_PRECISION="not found" ++else ++ ompi_cv_find_type_DOUBLE_PRECISION="$oft_real_type" ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_find_type_DOUBLE_PRECISION" >&5 ++echo "${ECHO_T}$ompi_cv_find_type_DOUBLE_PRECISION" >&6; } ++ ++ if test "$ompi_cv_find_type_DOUBLE_PRECISION" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5 ++echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;} ++ if test "$oft_abort_on_fail" != "no"; then ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ if test "$ompi_cv_find_type_DOUBLE_PRECISION" = "not found" ; then ++ ofc_c_type= ++ else ++ ofc_c_type=$ompi_cv_find_type_DOUBLE_PRECISION ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran DOUBLE PRECISION" >&5 ++echo $ECHO_N "checking alignment of Fortran DOUBLE PRECISION... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_DOUBLE_PRECISION+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of DOUBLE PRECISION" >&5 ++echo "$as_me: error: Could not determine alignment of DOUBLE PRECISION" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of DOUBLE PRECISION when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of DOUBLE PRECISION when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_DOUBLE_PRECISION=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of DOUBLE PRECISION" >&5 ++echo "$as_me: error: Could not determine alignment of DOUBLE PRECISION" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_DOUBLE_PRECISION" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_DOUBLE_PRECISION" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_DOUBLE_PRECISION ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_DOUBLE_PRECISION $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_DOUBLE_PRECISION $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_DOUBLE_PRECISION $ofc_type_alignment ++_ACEOF ++ ++ if test "float, double, long double" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_double_precision_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_DOUBLE_PRECISION_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_DOUBLE_PRECISION=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_DOUBLE_PRECISION=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_DOUBLE_PRECISION=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=-1 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_COMPLEX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ COMPLEX bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_COMPLEX="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_COMPLEX="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_COMPLEX" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_COMPLEX" >&6; } ++ ++ if test "$ompi_cv_f77_have_COMPLEX" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 COMPLEX" >&5 ++echo $ECHO_N "checking size of Fortran 77 COMPLEX... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_COMPLEX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of COMPLEX when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_COMPLEX=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_COMPLEX" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_COMPLEX" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_COMPLEX ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 COMPLEX does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 COMPLEX does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran COMPLEX" >&5 ++echo $ECHO_N "checking alignment of Fortran COMPLEX... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_COMPLEX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX" >&5 ++echo "$as_me: error: Could not determine alignment of COMPLEX" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of COMPLEX when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of COMPLEX when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_COMPLEX=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX" >&5 ++echo "$as_me: error: Could not determine alignment of COMPLEX" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_COMPLEX" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_COMPLEX" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_COMPLEX ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_COMPLEX $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_COMPLEX $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_COMPLEX $ofc_type_alignment ++_ACEOF ++ ++ if test "" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_complex_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_COMPLEX_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_COMPLEX=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_COMPLEX=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_COMPLEX=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++# The complex*N tests are a bit different (note: the complex tests are ++# the same as all the rest, because complex is a composite of two ++# reals, which we *have* to have. It's only the complex*N tests that ++# are different). The fortran complex types are composites of the ++# real*(N/2) types. So for us to support complex*N, two conditions ++# must be true: ++# ++# a) we must support real*(N/2) (i.e., compiler supports it and we ++# have a back-end C type for it) ++# b) compiler supports complex*N ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=8 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*8" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_COMPLEXp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ COMPLEX*8 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_COMPLEXp8="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_COMPLEXp8="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_COMPLEXp8" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_COMPLEXp8" >&6; } ++ ++ if test "$ompi_cv_f77_have_COMPLEXp8" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*8" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX*8... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 COMPLEX*8" >&5 ++echo $ECHO_N "checking size of Fortran 77 COMPLEX*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_COMPLEXp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*8" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX*8" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*8 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of COMPLEX*8 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_COMPLEXp8=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*8" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*8" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_COMPLEXp8" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_COMPLEXp8" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_COMPLEXp8 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 COMPLEX*8 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 COMPLEX*8 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*8" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*8" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran COMPLEX*8" >&5 ++echo $ECHO_N "checking alignment of Fortran COMPLEX*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_COMPLEXp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*8" >&5 ++echo "$as_me: error: Could not determine alignment of COMPLEX*8" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of COMPLEX*8 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of COMPLEX*8 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_COMPLEXp8=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*8" >&5 ++echo "$as_me: error: Could not determine alignment of COMPLEX*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_COMPLEXp8" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_COMPLEXp8" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_COMPLEXp8 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_COMPLEX8 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_COMPLEX8 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_COMPLEX8 $ofc_type_alignment ++_ACEOF ++ ++ if test "" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_complex8_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_COMPLEX8_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_COMPLEX8=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_COMPLEX8=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_COMPLEX8=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=16 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*16" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_COMPLEXp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ COMPLEX*16 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_COMPLEXp16="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_COMPLEXp16="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_COMPLEXp16" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_COMPLEXp16" >&6; } ++ ++ if test "$ompi_cv_f77_have_COMPLEXp16" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*16" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX*16... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 COMPLEX*16" >&5 ++echo $ECHO_N "checking size of Fortran 77 COMPLEX*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_COMPLEXp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*16" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX*16" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*16 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of COMPLEX*16 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_COMPLEXp16=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*16" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX*16" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*16" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX*16" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_COMPLEXp16" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_COMPLEXp16" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_COMPLEXp16 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 COMPLEX*16 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 COMPLEX*16 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*16" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*16" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran COMPLEX*16" >&5 ++echo $ECHO_N "checking alignment of Fortran COMPLEX*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_COMPLEXp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*16" >&5 ++echo "$as_me: error: Could not determine alignment of COMPLEX*16" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of COMPLEX*16 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of COMPLEX*16 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_COMPLEXp16=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*16" >&5 ++echo "$as_me: error: Could not determine alignment of COMPLEX*16" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_COMPLEXp16" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_COMPLEXp16" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_COMPLEXp16 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_COMPLEX16 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_COMPLEX16 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_COMPLEX16 $ofc_type_alignment ++_ACEOF ++ ++ if test "" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_complex16_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_COMPLEX16_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_COMPLEX16=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_COMPLEX16=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_COMPLEX16=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ofc_expected_size=32 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*32" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX*32... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_have_COMPLEXp32+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++C ++ program main ++ COMPLEX*32 bogus_variable ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f77_have_COMPLEXp32="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f77_have_COMPLEXp32="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_have_COMPLEXp32" >&5 ++echo "${ECHO_T}$ompi_cv_f77_have_COMPLEXp32" >&6; } ++ ++ if test "$ompi_cv_f77_have_COMPLEXp32" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*32" >&5 ++echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX*32... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 77 COMPLEX*32" >&5 ++echo $ECHO_N "checking size of Fortran 77 COMPLEX*32... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_sizeof_COMPLEXp32+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*32" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX*32" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*32 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of COMPLEX*32 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftestval; then ++ ompi_cv_f77_sizeof_COMPLEXp32=`cat conftestval` ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: conftestval not found." >&5 ++else ++ echo conftestval not found. >&5 ++fi ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*32" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX*32" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*32" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX*32" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_COMPLEXp32" >&5 ++echo "${ECHO_T}$ompi_cv_f77_sizeof_COMPLEXp32" >&6; } ++ ++ ofc_type_size=$ompi_cv_f77_sizeof_COMPLEXp32 ++ ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 COMPLEX*32 does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 77 COMPLEX*32 does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*32" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*32" >&2;} ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ ++ unset happy ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in happy ompi_conftest_h; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++ { echo "$as_me:$LINENO: checking alignment of Fortran COMPLEX*32" >&5 ++echo $ECHO_N "checking alignment of Fortran COMPLEX*32... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_alignment_COMPLEXp32+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo align | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_align_fn=align__ ++ else ++ ompi_ac_align_fn=align_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_align_fn=align_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_align_fn=align ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_align_fn=ALIGN ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*32" >&5 ++echo "$as_me: error: Could not determine alignment of COMPLEX*32" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not determine alignment of COMPLEX*32 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine alignment of COMPLEX*32 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_alignment_COMPLEXp32=`cat conftestval` ++else ++ unset ompi_status ++ { echo "$as_me:$LINENO: result: Error!" >&5 ++echo "${ECHO_T}Error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*32" >&5 ++echo "$as_me: error: Could not determine alignment of COMPLEX*32" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_COMPLEXp32" >&5 ++echo "${ECHO_T}$ompi_cv_f77_alignment_COMPLEXp32" >&6; } ++ ++ ofc_type_alignment=$ompi_cv_f77_alignment_COMPLEXp32 ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_FORTRAN_COMPLEX32 $ofc_have_type ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_FORTRAN_COMPLEX32 $ofc_type_size ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGNMENT_FORTRAN_COMPLEX32 $ofc_type_alignment ++_ACEOF ++ ++ if test "" != ""; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ompi_fortran_complex32_t $ofc_c_type ++_ACEOF ++ ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ OMPI_FORTRAN_COMPLEX32_C_TYPE=$ofc_c_type ++ OMPI_HAVE_FORTRAN_COMPLEX32=$ofc_have_type ++ OMPI_SIZEOF_FORTRAN_COMPLEX32=$ofc_type_size ++ OMPI_ALIGNMENT_FORTRAN_COMPLEX32=$ofc_type_alignment ++ ++ # Clean up ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++# Regardless of whether we have fortran bindings, or even a fortran ++# compiler, get the max value for a fortran MPI handle (this macro ++# handles the case where we don't have a fortran compiler). ++ ++ ++ { echo "$as_me:$LINENO: checking for max Fortran MPI handle index" >&5 ++echo $ECHO_N "checking for max Fortran MPI handle index... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_fortran_handle_max+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Find max fortran INTEGER value. Set to sentinel value if we don't ++ # have a Fortran compiler (e.g., if --disable-f77 was given). ++ if test "$OMPI_WANT_F77_BINDINGS" = "0" ; then ++ ompi_fint_max=0 ++ else ++ # Calculate the number of f's that we need to append to the hex ++ # value. Do one less than we really need becaue we assume the ++ # top nybble is 0x7 to avoid sign issues. ++ ompi_numf=`expr $OMPI_SIZEOF_FORTRAN_INTEGER \* 2 - 1` ++ ompi_fint_max=0x7 ++ while test "$ompi_numf" -gt "0"; do ++ ompi_fint_max=${ompi_fint_max}f ++ ompi_numf=`expr $ompi_numf - 1` ++ done ++ fi ++ ++ # Get INT_MAX. Compute a SWAG if we are cross compiling or something ++ # goes wrong. ++ rm -f conftest.out >/dev/null 2>&1 ++ if test "$cross_compiling" = yes; then ++ #cross compiling is fun. compute INT_MAX same as INTEGER max ++ ompi_numf=`expr $ac_cv_sizeof_int \* 2 - 1` ++ ompi_cint_max=0x7 ++ while test "$ompi_numf" -gt "0" ; do ++ ompi_cint_max=${ompi_cint_max}f ++ ompi_numf=`expr $ompi_numf - 1` ++ done ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++ ++int ++main () ++{ ++FILE *fp = fopen("conftest.out", "w"); ++long cint = INT_MAX; ++fprintf(fp, "%ld", cint); ++fclose(fp); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cint_max=`cat conftest.out` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++ompi_cint_max=0 ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ ++ if test "$ompi_cint_max" = "0" ; then ++ # wow - something went really wrong. Be conservative ++ ompi_cv_f77_fortran_handle_max=32767 ++ elif test "$ompi_fint_max" = "0" ; then ++ # we aren't compiling Fortran - just set it to C INT_MAX ++ ompi_cv_f77_fortran_handle_max=$ompi_cint_max ++ else ++ # take the lesser of C INT_MAX and Fortran INTEGER ++ # max. The resulting value will then be storable in ++ # either type. There's no easy way to do this in ++ # the shell, so make the preprocessor do it. ++ ompi_cv_f77_fortran_handle_max="( $ompi_fint_max < $ompi_cint_max ? $ompi_fint_max : $ompi_cint_max )" ++ fi ++ rm -f conftest.out > /dev/null 2>&1 ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_fortran_handle_max" >&5 ++echo "${ECHO_T}$ompi_cv_f77_fortran_handle_max" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_FORTRAN_HANDLE_MAX $ompi_cv_f77_fortran_handle_max ++_ACEOF ++ ++ ++ ++# ++# Check for Fortran compilers value of TRUE and for the correct assumption ++# on LOGICAL for conversion into what C considers to be a true value ++# ++ ++ # invalidate cache if result came from a run where F77 was disabled ++ if test "$ompi_cv_f77_true_value" = "0" ; then ++ unset ompi_cv_f77_true_value ++ fi ++ ++ { echo "$as_me:$LINENO: checking FORTRAN value for .TRUE. logical type" >&5 ++echo $ECHO_N "checking FORTRAN value for .TRUE. logical type... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_true_value+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "" = "none" -o "$OMPI_WANT_F77_BINDINGS" = "0" ; then ++ ompi_cv_f77_true_value=0 ++ else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo print | $GREP _ >/dev/null 2>&1 ; then ++ ompi_print_logical_fn=print__ ++ else ++ ompi_print_logical_fn=print_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_print_logical_fn=print_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_print_logical_fn=print ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_print_logical_fn=print ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_print_logical_fn=PRINT ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ ++ # ++ # C module ++ # We really need the confdefs.h Header file for ++ # the ompi_fortran_logical_t definition ++ # ++ if test \! -f confdefs.h ; then ++ { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Cannot find confdefs.h file for config test" >&5 ++echo "$as_me: WARNING: *** Cannot find confdefs.h file for config test" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ cat > conftest.c < ++#include ++#include "confdefs.h" ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ ++void $ompi_print_logical_fn(ompi_fortran_logical_t * logical); ++ ++void $ompi_print_logical_fn(ompi_fortran_logical_t * logical) ++{ ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ ++ if( SIZEOF_INT >= sizeof(ompi_fortran_logical_t) ) { ++ fprintf(f, "%d\n", (int)*logical); ++ } else if (SIZEOF_LONG >= sizeof(ompi_fortran_logical_t) ) { ++ fprintf(f, "%ld\n", (long) *logical); ++#ifdef HAVE_LONG_LONG ++ } else if (SIZEOF_LONG_LONG >= sizeof(ompi_fortran_logical_t) ) { ++ fprintf(f, "%lld\n", (long long) *logical); ++#endif ++ } else { ++ exit(1); ++ } ++} ++ ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ cat > conftestf.f <&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS -o conftest conftest.o conftestf.f $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS -o conftest conftest.o conftestf.f $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy=1 ++else ++ unset ompi_status ++ happy=0 ++fi ++else ++ unset ompi_status ++ happy=0 ++fi ++ ++ if test "$happy" = "0" ; then ++ { { echo "$as_me:$LINENO: error: Could not determine value of Fortran .TRUE.. Aborting." >&5 ++echo "$as_me: error: Could not determine value of Fortran .TRUE.. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine value of .TRUE. when cross-compiling" >&5 ++echo "$as_me: error: Can not determine value of .TRUE. when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f77_true_value=`sed 's/ *//' conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine value of Fotran .TRUE.. Aborting." >&5 ++echo "$as_me: error: Could not determine value of Fotran .TRUE.. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ fi ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_true_value" >&5 ++echo "${ECHO_T}$ompi_cv_f77_true_value" >&6; } ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_FORTRAN_VALUE_TRUE $ompi_cv_f77_true_value ++_ACEOF ++ ++ ++ unset happy ompi_print_logical_fn ++ rm -rf conftest* ++ ++ ++ { echo "$as_me:$LINENO: checking for correct handling of FORTRAN logical arrays" >&5 ++echo $ECHO_N "checking for correct handling of FORTRAN logical arrays... $ECHO_C" >&6; } ++if test "${ompi_cv_f77_logical_array_correct+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "" = "none" -o "$OMPI_WANT_F77_BINDINGS" = "0"; then ++ ompi_cv_f77_logical_array_correct=yes ++ else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo check | $GREP _ >/dev/null 2>&1 ; then ++ ompi_check_logical_fn=check__ ++ else ++ ompi_check_logical_fn=check_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_check_logical_fn=check_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_check_logical_fn=check ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_check_logical_fn=check ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_check_logical_fn=CHECK ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ ++ # Fortran module ++ cat > conftestf.f <&5 ++echo "$as_me: WARNING: *** Problem running configure test!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Cannot find confdefs.h file for config test" >&5 ++echo "$as_me: WARNING: *** Cannot find confdefs.h file for config test" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5 ++echo "$as_me: WARNING: *** See config.log for details." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5 ++echo "$as_me: error: *** Cannot continue." >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ cat > conftest.c < ++#include ++#include "confdefs.h" ++ ++#ifdef __cplusplus ++ extern "C" { ++#endif ++void $ompi_check_logical_fn(ompi_fortran_logical_t * logical); ++ ++void $ompi_check_logical_fn(ompi_fortran_logical_t * logical) ++{ ++ int result = 0; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ ++ if (logical[0] == 0 && ++ logical[1] == $ompi_cv_f77_true_value) ++ result = 1; ++ fprintf(f, "%d\n", result); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ # Try the compilation and run. Can't use AC_TRY_RUN ++ # because it's two module files. ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy=1 ++else ++ unset ompi_status ++ happy=0 ++fi ++else ++ unset ompi_status ++ happy=0 ++fi ++ if test "$happy" = "0" ; then ++ { { echo "$as_me:$LINENO: error: Error determining if arrays of logical values work properly." >&5 ++echo "$as_me: error: Error determining if arrays of logical values work properly." >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ # assume we're ok ++ ompi_cv_f77_logical_array_correct=yes ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test "`cat conftestval`" = "1" ; then ++ ompi_cv_f77_logical_array_correct=yes ++ else ++ ompi_cv_f77_logical_array_correct=no ++ fi ++else ++ unset ompi_status ++ ompi_cv_f77_logical_array_correct=no ++fi ++fi ++ ++ fi ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f77_logical_array_correct" >&5 ++echo "${ECHO_T}$ompi_cv_f77_logical_array_correct" >&6; } ++ ++ if test "$ompi_cv_f77_logical_array_correct" = "no" ; then ++ { { echo "$as_me:$LINENO: error: Error determining if arrays of logical values work properly." >&5 ++echo "$as_me: error: Error determining if arrays of logical values work properly." >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ unset happy ompi_check_logical_fn ++ rm -rf conftest* ++ ++ ++# ++# There are 2 layers to the MPI f77 layer. The only extra thing that ++# determine f77 bindings is that fortran can be disabled by user. In ++# such cases, we need to not build the target at all. One layer ++# generates MPI_f77* bindings. The other layer generates PMPI_f77* ++# bindings. The following conditions determine whether each (or both) ++# these layers are built. ++# ++# Superceeding clause: ++# - fortran77 bindings should be enabled, else everything is ++# disabled ++# 1. MPI_f77* bindings are needed if: ++# - Profiling is not required ++# - Profiling is required but weak symbols are not ++# supported ++# 2. PMPI_* bindings are needed if profiling is required. Hence we ++# define 2 conditionals which tell us whether each of these layers ++# need to be built or NOT ++# ++ if test \( "$WANT_MPI_PROFILING" = 0 -o "$OMPI_PROFILING_COMPILE_SEPARATELY" = 1 \) -a "$OMPI_WANT_F77_BINDINGS" = 1; then ++ WANT_MPI_F77_BINDINGS_LAYER_TRUE= ++ WANT_MPI_F77_BINDINGS_LAYER_FALSE='#' ++else ++ WANT_MPI_F77_BINDINGS_LAYER_TRUE='#' ++ WANT_MPI_F77_BINDINGS_LAYER_FALSE= ++fi ++ ++ ++ if test "$OMPI_WANT_F77_BINDINGS" = 1 -a "$WANT_MPI_PROFILING" = 1; then ++ WANT_PMPI_F77_BINDINGS_LAYER_TRUE= ++ WANT_PMPI_F77_BINDINGS_LAYER_FALSE='#' ++else ++ WANT_PMPI_F77_BINDINGS_LAYER_TRUE='#' ++ WANT_PMPI_F77_BINDINGS_LAYER_FALSE= ++fi ++ ++ ++#----------- ++# Fortran 90 ++#----------- ++ ++ ++ ++ ++ ++# Modularize this setup so that sub-configure.in scripts can use this ++# same setup code. ++ ++ompi_show_subtitle "Fortran 90/95 compiler" ++ ++if test "$OMPI_WANT_F77_BINDINGS" = "0" ; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90/95 bindings implicitly disabled (because" >&5 ++echo "$as_me: WARNING: *** Fortran 90/95 bindings implicitly disabled (because" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 bindings were disabled)" >&5 ++echo "$as_me: WARNING: *** Fortran 77 bindings were disabled)" >&2;} ++ ++ OMPI_WANT_F90_BINDINGS=0 ++ OMPI_F90="none" ++ BASEF90="none" ++ OMPI_F90_ABSOLUTE="none" ++ if test "$enable_f90" = "yes"; then ++ { echo "$as_me:$LINENO: WARNING: *** but --enable-f90 was explicitly specified" >&5 ++echo "$as_me: WARNING: *** but --enable-f90 was explicitly specified" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++elif test "$OMPI_WANT_F90_BINDINGS" = "0" ; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90/95 bindings disabled by user" >&5 ++echo "$as_me: WARNING: *** Fortran 90/95 bindings disabled by user" >&2;} ++ OMPI_WANT_F90_BINDINGS=0 ++ OMPI_F90="none" ++ BASEF90="none" ++ OMPI_F90_ABSOLUTE="none" ++else ++ ++ # ++ # Check for the compiler ++ # ++ # Note that we don't actually *use* the fortran compiler to build ++ # anything in OMPI; it's only used here in configure to find out ++ # symbol conventions, type sizes, etc. We also pass it down to ++ # the wrapper compiler mpif90. ++ # ++ # Note that AC_PROG_FC will look for *any* fortran compiler, and ++ # we don't want it to find an F77 compiler. The AC docs don't ++ # recommend using the "dialect" feature of AC_PROG_FC (and you can ++ # only look for one of Fortran 90 or 95 -- not both), so instead ++ # use the optional first parameter and steal the list of Fortran ++ # compilers (excluding the f77 compiler names) from AC's default ++ # list of 95 and 90 compilers and use it here. ++ # ++ ++ ompi_fcflags_save="$FCFLAGS" ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++if test -n "$ac_tool_prefix"; then ++ for ac_prog in gfortran f95 fort xlf95 ifort ifc efc pgf95 lf95 f90 xlf90 pgf90 epcf90 ++ do ++ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ++set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_FC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$FC"; then ++ ac_cv_prog_FC="$FC" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_FC="$ac_tool_prefix$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++FC=$ac_cv_prog_FC ++if test -n "$FC"; then ++ { echo "$as_me:$LINENO: result: $FC" >&5 ++echo "${ECHO_T}$FC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$FC" && break ++ done ++fi ++if test -z "$FC"; then ++ ac_ct_FC=$FC ++ for ac_prog in gfortran f95 fort xlf95 ifort ifc efc pgf95 lf95 f90 xlf90 pgf90 epcf90 ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_FC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_FC"; then ++ ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_FC="$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_FC=$ac_cv_prog_ac_ct_FC ++if test -n "$ac_ct_FC"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 ++echo "${ECHO_T}$ac_ct_FC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$ac_ct_FC" && break ++done ++ ++ if test "x$ac_ct_FC" = x; then ++ FC="" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ FC=$ac_ct_FC ++ fi ++fi ++ ++ ++# Provide some information about the compiler. ++echo "$as_me:$LINENO: checking for Fortran compiler version" >&5 ++ac_compiler=`set X $ac_compile; echo $2` ++{ (ac_try="$ac_compiler --version >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler --version >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -v >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -v >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -V >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -V >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++rm -f a.out ++ ++# If we don't use `.F' as extension, the preprocessor is not run on the ++# input file. (Note that this only needs to work for GNU compilers.) ++ac_save_ext=$ac_ext ++ac_ext=F ++{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 ++echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6; } ++if test "${ac_cv_fc_compiler_gnu+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++#ifndef __GNUC__ ++ choke me ++#endif ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_compiler_gnu=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_compiler_gnu=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ac_cv_fc_compiler_gnu=$ac_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 ++echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6; } ++ac_ext=$ac_save_ext ++ac_test_FFLAGS=${FCFLAGS+set} ++ac_save_FFLAGS=$FCFLAGS ++FCFLAGS= ++{ echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 ++echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6; } ++if test "${ac_cv_prog_fc_g+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ FCFLAGS=-g ++cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_fc_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_prog_fc_g=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 ++echo "${ECHO_T}$ac_cv_prog_fc_g" >&6; } ++if test "$ac_test_FFLAGS" = set; then ++ FCFLAGS=$ac_save_FFLAGS ++elif test $ac_cv_prog_fc_g = yes; then ++ if test "x$ac_cv_fc_compiler_gnu" = xyes; then ++ FCFLAGS="-g -O2" ++ else ++ FCFLAGS="-g" ++ fi ++else ++ if test "x$ac_cv_fc_compiler_gnu" = xyes; then ++ FCFLAGS="-O2" ++ else ++ FCFLAGS= ++ fi ++fi ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ FCFLAGS="$ompi_fcflags_save" ++ if test -z "$FC"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90/95 bindings disabled (could not find compiler)" >&5 ++echo "$as_me: WARNING: *** Fortran 90/95 bindings disabled (could not find compiler)" >&2;} ++ OMPI_WANT_F90_BINDINGS=0 ++ OMPI_F90="none" ++ BASEF90="none" ++ OMPI_F90_ABSOLUTE="none" ++ else ++ OMPI_WANT_F90_BINDINGS=1 ++ OMPI_F90="$FC" ++ set dummy $OMPI_F90 ++ OMPI_F90_ARGV0=$2 ++ BASEF90="`basename $OMPI_F90_ARGV0`" ++ ++# 1 is the variable name to do "which" on ++# 2 is the variable name to assign the return value to ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ompi_prog=$OMPI_F90_ARGV0 ++ ++IFS_SAVE=$IFS ++IFS="$PATH_SEPARATOR" ++for ompi_dir in $PATH; do ++ if test -x "$ompi_dir/$ompi_prog"; then ++ OMPI_F90_ABSOLUTE="$ompi_dir/$ompi_prog" ++ break ++ fi ++done ++IFS=$IFS_SAVE ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ fi ++fi ++# make sure the compiler actually works, if not cross-compiling ++# Don't just use the AC macro so that we can have a pretty ++# message. ++if test $OMPI_WANT_F90_BINDINGS -eq 1; then ++ ++ ++ { echo "$as_me:$LINENO: checking if Fortran compiler works" >&5 ++echo $ECHO_N "checking if Fortran compiler works... $ECHO_C" >&6; } ++if test "${ompi_cv_Fortran_works+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ if test "$cross_compiling" = yes; then ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_Fortran_works="links (cross compiling)" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_Fortran_works="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++else ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_Fortran_works="yes" ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++ompi_cv_Fortran_works="no" ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_Fortran_works" >&5 ++echo "${ECHO_T}$ompi_cv_Fortran_works" >&6; } ++ if test "$ompi_cv_Fortran_works" = "no"; then ++ cat <&2 ++********************************************************************** ++* It appears that your Fortran compiler is unable to produce working ++* executables. A simple test application failed to properly ++* execute. Note that this is likely not a problem with Open MPI, ++* but a problem with the local compiler installation. More ++* information (including exactly what command was given to the ++* compiler and what error resulted when the command was executed) is ++* available in the config.log file in this directory. ++********************************************************************** ++EOF ++ { { echo "$as_me:$LINENO: error: Could not run a simple Fortran program. Aborting." >&5 ++echo "$as_me: error: Could not run a simple Fortran program. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ ++fi ++ ++ ++# check to see if the F77 and F90 compilers are compatible ++if test $OMPI_WANT_F90_BINDINGS -eq 1; then ++ { echo "$as_me:$LINENO: checking whether $OMPI_F77 and $OMPI_F90 compilers are compatible" >&5 ++echo $ECHO_N "checking whether $OMPI_F77 and $OMPI_F90 compilers are compatible... $ECHO_C" >&6; } ++ ++# make sure that we can combine F90 and F77 code ++ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++# Fortran module ++cat > conftestf77.f < conftestf90.f <&5 ++$OMPI_F90 $FCFLAGS $FCFLAGS_f -c conftestf90.f 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $OMPI_F77 $FFLAGS -c conftestf77.f" >&5 ++$OMPI_F77 $FFLAGS -c conftestf77.f 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $OMPI_F90 $FCFLAGS -o conftest conftestf90.o conftestf77.o $LDFLAGS $LIBS" >&5 ++$OMPI_F90 $FCFLAGS -o conftest conftestf90.o conftestf77.o $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ HAPPY=1 ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++ ++if test "$HAPPY" = "1"; then ++ fortran_goodness=1 ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the F77 program:" >&5 ++else ++ echo here is the F77 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf77.f" -a -f "conftestf77.f"; then ++ cat conftestf77.f >&5 ++fi ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the F90 program:" >&5 ++else ++ echo here is the F90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf90.f" -a -f "conftestf90.f"; then ++ cat conftestf90.f >&5 ++fi ++ fortran_goodness=0 ++fi ++ ++unset HAPPY ompi_conftest_h ++rm -rf conftest* ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ if test "$fortran_goodness" = "0" ; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 and Fortran 90 compilers are not link compatible" >&5 ++echo "$as_me: WARNING: *** Fortran 77 and Fortran 90 compilers are not link compatible" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI Fortran 90/95 bindings" >&5 ++echo "$as_me: WARNING: *** Disabling MPI Fortran 90/95 bindings" >&2;} ++ OMPI_WANT_F90_BINDINGS=0 ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ ++fi ++ ++ ++# BWB - FIX ME - remove once everyone updates to LT 2.0. ++# ++if test $OMPI_WANT_F90_BINDINGS -eq 1; then ++ if test $BASEF77 != $BASEF90; then ++ lt_ver=`$GREP '^VERSION' $srcdir/config/ltmain.sh | cut -f2 -d= | cut -f1 -d'.'` ++ if test $lt_ver -lt 2 ; then ++ { { echo "$as_me:$LINENO: error: You appear to be trying to build the Fortran 90 ++ layer with Libtool 1.5.x or earlier and a Fortran 77 / Fortran 90 compiler ++ combination that will not work with this configuration. You must either ++ use a different Fortran 77 / Fortran 90 compiler (one where it is the same ++ compiler for both languages), upgrade to Libtool 2.x, or disable the ++ Fortran 90 bindings." >&5 ++echo "$as_me: error: You appear to be trying to build the Fortran 90 ++ layer with Libtool 1.5.x or earlier and a Fortran 77 / Fortran 90 compiler ++ combination that will not work with this configuration. You must either ++ use a different Fortran 77 / Fortran 90 compiler (one where it is the same ++ compiler for both languages), upgrade to Libtool 2.x, or disable the ++ Fortran 90 bindings." >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++fi ++ ++ ++# OS X before 10.3 (deployment target) does not allow undefined common ++# symbols in shared libraries. Because we can't figure out how to ++# implement MPI_STATUSES_IGNORE and friends wihtout common symbols, on ++# OS X we can't build the F90 bindings as a shared library. ++{ echo "$as_me:$LINENO: checking for extra arguments to build a shard library" >&5 ++echo $ECHO_N "checking for extra arguments to build a shard library... $ECHO_C" >&6; } ++case "$host" in ++ *apple-darwin*) ++ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then ++ { echo "$as_me:$LINENO: result: impossible -- -static" >&5 ++echo "${ECHO_T}impossible -- -static" >&6; } ++ OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS="-static" ++ else ++ case ${MACOSX_DEPLOYMENT_TARGET} in ++ 10.012) ++ { echo "$as_me:$LINENO: result: impossible -- -static" >&5 ++echo "${ECHO_T}impossible -- -static" >&6; } ++ OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS="-static" ++ ;; ++ 10.*) ++ { echo "$as_me:$LINENO: result: -Wl,-single_module" >&5 ++echo "${ECHO_T}-Wl,-single_module" >&6; } ++ OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS="-Wl,-single_module" ++ esac ++ fi ++ ;; ++ *) ++ { echo "$as_me:$LINENO: result: none needed" >&5 ++echo "${ECHO_T}none needed" >&6; } ++ OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS="" ++ ;; ++esac ++ ++ ++# if we're still good, then save the extra file types. Do this last ++# because it implies tests that should be invoked by the above tests ++# (e.g., running the fortran compiler). ++if test $OMPI_WANT_F90_BINDINGS -eq 1; then ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++{ echo "$as_me:$LINENO: checking for Fortran flag to compile .f files" >&5 ++echo $ECHO_N "checking for Fortran flag to compile .f files... $ECHO_C" >&6; } ++if test "${ac_cv_fc_srcext_f+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f ++ac_fcflags_srcext_save=$ac_fcflags_srcext ++ac_fcflags_srcext= ++ac_cv_fc_srcext_f=unknown ++for ac_flag in none -qsuffix=f=f -Tf; do ++ test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag" ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_fc_srcext_f=$ac_flag; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++rm -f conftest.$ac_objext conftest.f ++ac_fcflags_srcext=$ac_fcflags_srcext_save ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_fc_srcext_f" >&5 ++echo "${ECHO_T}$ac_cv_fc_srcext_f" >&6; } ++if test "x$ac_cv_fc_srcext_f" = xunknown; then ++ { { echo "$as_me:$LINENO: error: Fortran could not compile .f files" >&5 ++echo "$as_me: error: Fortran could not compile .f files" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ac_fc_srcext=f ++ if test "x$ac_cv_fc_srcext_f" = xnone; then ++ ac_fcflags_srcext="" ++ FCFLAGS_f="" ++ else ++ ac_fcflags_srcext=$ac_cv_fc_srcext_f ++ FCFLAGS_f=$ac_cv_fc_srcext_f ++ fi ++ ++ ++fi ++ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++{ echo "$as_me:$LINENO: checking for Fortran flag to compile .f90 files" >&5 ++echo $ECHO_N "checking for Fortran flag to compile .f90 files... $ECHO_C" >&6; } ++if test "${ac_cv_fc_srcext_f90+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=f90 ++ac_fcflags_srcext_save=$ac_fcflags_srcext ++ac_fcflags_srcext= ++ac_cv_fc_srcext_f90=unknown ++for ac_flag in none -qsuffix=f=f90 -Tf; do ++ test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag" ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_fc_srcext_f90=$ac_flag; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++rm -f conftest.$ac_objext conftest.f90 ++ac_fcflags_srcext=$ac_fcflags_srcext_save ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_fc_srcext_f90" >&5 ++echo "${ECHO_T}$ac_cv_fc_srcext_f90" >&6; } ++if test "x$ac_cv_fc_srcext_f90" = xunknown; then ++ { { echo "$as_me:$LINENO: error: Fortran could not compile .f90 files" >&5 ++echo "$as_me: error: Fortran could not compile .f90 files" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ac_fc_srcext=f90 ++ if test "x$ac_cv_fc_srcext_f90" = xnone; then ++ ac_fcflags_srcext="" ++ FCFLAGS_f90="" ++ else ++ ac_fcflags_srcext=$ac_cv_fc_srcext_f90 ++ FCFLAGS_f90=$ac_cv_fc_srcext_f90 ++ fi ++ ++ ++fi ++ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++ ++ ++# Test to see if the F90 compilers likes the C++ exceptions flags. If ++# it doesn't, just abort. We *could* handle this scenario (e.g., ++# probe the F90 compiler for what flags would be necessary), but we're ++# kinda assuming that no one will care. If they do, they'll e-mail us. ++{ echo "$as_me:$LINENO: checking to see if F90 compiler likes the C++ exception flags" >&5 ++echo $ECHO_N "checking to see if F90 compiler likes the C++ exception flags... $ECHO_C" >&6; } ++if test "$OMPI_WANT_F90_BINDINGS" = "0"; then ++ { echo "$as_me:$LINENO: result: skipped (no F90 bindings)" >&5 ++echo "${ECHO_T}skipped (no F90 bindings)" >&6; } ++elif test "$OMPI_CXX_EXCEPTIONS_CXXFLAGS" = ""; then ++ { echo "$as_me:$LINENO: result: skipped (no C++ exceptions flags)" >&5 ++echo "${ECHO_T}skipped (no C++ exceptions flags)" >&6; } ++else ++ FCFLAGS="$FFLAGS $OMPI_CXX_EXCEPTIONS_CXXFLAGS" ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ INTEGER I ++ I = 3 ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: C++ exception flags are different between the C and C++ compilers; this configure script cannot currently handle this scenario. Either disable C++ exception support or send mail to the Open MPI users list." >&5 ++echo "$as_me: WARNING: C++ exception flags are different between the C and C++ compilers; this configure script cannot currently handle this scenario. Either disable C++ exception support or send mail to the Open MPI users list." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++ ++# All done -- save values ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_WANT_F90_BINDINGS $OMPI_WANT_F90_BINDINGS ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_F90 "$OMPI_F90" ++_ACEOF ++ ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ OMPI_WANT_F90_BINDINGS_TRUE= ++ OMPI_WANT_F90_BINDINGS_FALSE='#' ++else ++ OMPI_WANT_F90_BINDINGS_TRUE='#' ++ OMPI_WANT_F90_BINDINGS_FALSE= ++fi ++ ++ ++unset fortran_goodness ++ ++ ++# Look for the fortran module compiler flag ++ ++ ++ ++ if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then ++ { echo "$as_me:$LINENO: checking for Fortran 90 compiler module include flag" >&5 ++echo $ECHO_N "checking for Fortran 90 compiler module include flag... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_module_include_flag+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ofi_possible_flags="-I -p -M" ++ mkdir conftest.$$ ++ cd conftest.$$ ++ ++ # Try to compile an F90 module ++ mkdir subdir ++ cd subdir ++ cat > conftest-module.f90 <&5 ++$FC $FCFLAGS $FCFLAGS_f90 -c conftest-module.f90 $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++else ++ unset ompi_status ++ cd .. ++ rm -rf conftest.$$ ++ { echo "$as_me:$LINENO: result: Whoops!" >&5 ++echo "${ECHO_T}Whoops!" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Cannot seem to compile an f90 module" >&5 ++echo "$as_me: WARNING: *** Cannot seem to compile an f90 module" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ cd .. ++ ++ # ++ # Now try to compile a simple program usinng that module, iterating ++ # through the possible flags that the compiler might use ++ # ++ ++ cat > conftest.f90 <&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftest.f90 ${flag}subdir $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_module_include_flag=$flag ++ ofi_module_flag="$flag" ++else ++ unset ompi_status ++ ++fi ++ fi ++ done ++ cd .. ++ rm -rf conftest.$$ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_module_include_flag" >&5 ++echo "${ECHO_T}$ompi_cv_f90_module_include_flag" >&6; } ++ ++ OMPI_FC_MODULE_FLAG=$ompi_cv_f90_module_include_flag ++ if test "$OMPI_FC_MODULE_FLAG" = ""; then ++ { echo "$as_me:$LINENO: WARNING: *** Could not determine the f90 compiler flag to indicate where modules reside" >&5 ++echo "$as_me: WARNING: *** Could not determine the f90 compiler flag to indicate where modules reside" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ else ++ OMPI_FC_MODULE_FLAG= ++ fi ++ ++ ++ ++ ++# Look for all the types ++OMPI_F90_IKINDS="" ++OMPI_F90_RKINDS="" ++OMPI_F90_CKINDS="" ++ ++# LOGICAL and friends ++ ++ ofc_fortran_type="LOGICAL" ++ ofc_expected_size="" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports LOGICAL" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports LOGICAL... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_LOGICAL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ LOGICAL :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_LOGICAL="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_LOGICAL="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_LOGICAL" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_LOGICAL" >&6; } ++ ++ if test "$ompi_cv_f90_have_LOGICAL" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 LOGICAL" >&5 ++echo $ECHO_N "checking size of Fortran 90 LOGICAL... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_LOGICAL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of LOGICAL" >&5 ++echo "$as_me: WARNING: Could not determine size of LOGICAL" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of LOGICAL when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of LOGICAL when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_LOGICAL=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_LOGICAL" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_LOGICAL" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_LOGICAL ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_LOGICAL ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (LOGICAL) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (LOGICAL) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (LOGICAL)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (LOGICAL)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_LOGICAL ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for LOGICAL ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for LOGICAL ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for LOGICAL ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for LOGICAL ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=L ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_LOGICAL $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_LOGICAL=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="LOGICAL*1" ++ ofc_expected_size="1" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports LOGICAL*1" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports LOGICAL*1... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_LOGICALp1+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ LOGICAL*1 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_LOGICALp1="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_LOGICALp1="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_LOGICALp1" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_LOGICALp1" >&6; } ++ ++ if test "$ompi_cv_f90_have_LOGICALp1" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 LOGICAL*1" >&5 ++echo $ECHO_N "checking size of Fortran 90 LOGICAL*1... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_LOGICALp1+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of LOGICAL*1" >&5 ++echo "$as_me: WARNING: Could not determine size of LOGICAL*1" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of LOGICAL*1 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of LOGICAL*1 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_LOGICALp1=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*1" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*1" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_LOGICALp1" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_LOGICALp1" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_LOGICALp1 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_LOGICAL1 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (LOGICAL*1) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (LOGICAL*1) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (LOGICAL*1)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (LOGICAL*1)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_LOGICAL1 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for LOGICAL*1 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for LOGICAL*1 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for LOGICAL*1 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for LOGICAL*1 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=L ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_LOGICAL1 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_LOGICAL1=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="LOGICAL*2" ++ ofc_expected_size="2" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports LOGICAL*2" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports LOGICAL*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_LOGICALp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ LOGICAL*2 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_LOGICALp2="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_LOGICALp2="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_LOGICALp2" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_LOGICALp2" >&6; } ++ ++ if test "$ompi_cv_f90_have_LOGICALp2" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 LOGICAL*2" >&5 ++echo $ECHO_N "checking size of Fortran 90 LOGICAL*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_LOGICALp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of LOGICAL*2" >&5 ++echo "$as_me: WARNING: Could not determine size of LOGICAL*2" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of LOGICAL*2 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of LOGICAL*2 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_LOGICALp2=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*2" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*2" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_LOGICALp2" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_LOGICALp2" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_LOGICALp2 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_LOGICAL2 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (LOGICAL*2) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (LOGICAL*2) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (LOGICAL*2)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (LOGICAL*2)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_LOGICAL2 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for LOGICAL*2 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for LOGICAL*2 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for LOGICAL*2 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for LOGICAL*2 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=L ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_LOGICAL2 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_LOGICAL2=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="LOGICAL*4" ++ ofc_expected_size="4" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports LOGICAL*4" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports LOGICAL*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_LOGICALp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ LOGICAL*4 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_LOGICALp4="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_LOGICALp4="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_LOGICALp4" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_LOGICALp4" >&6; } ++ ++ if test "$ompi_cv_f90_have_LOGICALp4" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 LOGICAL*4" >&5 ++echo $ECHO_N "checking size of Fortran 90 LOGICAL*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_LOGICALp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of LOGICAL*4" >&5 ++echo "$as_me: WARNING: Could not determine size of LOGICAL*4" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of LOGICAL*4 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of LOGICAL*4 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_LOGICALp4=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*4" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*4" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_LOGICALp4" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_LOGICALp4" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_LOGICALp4 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_LOGICAL4 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (LOGICAL*4) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (LOGICAL*4) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (LOGICAL*4)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (LOGICAL*4)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_LOGICAL4 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for LOGICAL*4 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for LOGICAL*4 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for LOGICAL*4 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for LOGICAL*4 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=L ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_LOGICAL4 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_LOGICAL4=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="LOGICAL*8" ++ ofc_expected_size="8" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports LOGICAL*8" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports LOGICAL*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_LOGICALp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ LOGICAL*8 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_LOGICALp8="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_LOGICALp8="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_LOGICALp8" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_LOGICALp8" >&6; } ++ ++ if test "$ompi_cv_f90_have_LOGICALp8" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 LOGICAL*8" >&5 ++echo $ECHO_N "checking size of Fortran 90 LOGICAL*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_LOGICALp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of LOGICAL*8" >&5 ++echo "$as_me: WARNING: Could not determine size of LOGICAL*8" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of LOGICAL*8 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of LOGICAL*8 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_LOGICALp8=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*8" >&5 ++echo "$as_me: error: Could not determine size of LOGICAL*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_LOGICALp8" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_LOGICALp8" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_LOGICALp8 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_LOGICAL8 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (LOGICAL*8) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (LOGICAL*8) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (LOGICAL*8)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (LOGICAL*8)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_LOGICAL8 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for LOGICAL*8 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for LOGICAL*8 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for LOGICAL*8 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for LOGICAL*8 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=L ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_LOGICAL8 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_LOGICAL8=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++# INTEGER and friends ++ ++ ofc_fortran_type="INTEGER" ++ ofc_expected_size="" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports INTEGER" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports INTEGER... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_INTEGER+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ INTEGER :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_INTEGER="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_INTEGER="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_INTEGER" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_INTEGER" >&6; } ++ ++ if test "$ompi_cv_f90_have_INTEGER" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 INTEGER" >&5 ++echo $ECHO_N "checking size of Fortran 90 INTEGER... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_INTEGER+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER" >&5 ++echo "$as_me: WARNING: Could not determine size of INTEGER" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of INTEGER when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_INTEGER=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER" >&5 ++echo "$as_me: error: Could not determine size of INTEGER" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_INTEGER" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_INTEGER" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_INTEGER ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for INTEGER ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for INTEGER ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=I ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_INTEGER $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_INTEGER=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="INTEGER*1" ++ ofc_expected_size="1" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports INTEGER*1" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports INTEGER*1... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_INTEGERp1+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ INTEGER*1 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_INTEGERp1="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_INTEGERp1="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_INTEGERp1" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_INTEGERp1" >&6; } ++ ++ if test "$ompi_cv_f90_have_INTEGERp1" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 INTEGER*1" >&5 ++echo $ECHO_N "checking size of Fortran 90 INTEGER*1... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_INTEGERp1+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER*1" >&5 ++echo "$as_me: WARNING: Could not determine size of INTEGER*1" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*1 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of INTEGER*1 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_INTEGERp1=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*1" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*1" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_INTEGERp1" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_INTEGERp1" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_INTEGERp1 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER1 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER*1) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*1) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER*1)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER*1)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER1 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER*1 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*1 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER*1 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*1 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=I ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_INTEGER1 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_INTEGER1=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="INTEGER*2" ++ ofc_expected_size="2" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports INTEGER*2" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports INTEGER*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_INTEGERp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ INTEGER*2 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_INTEGERp2="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_INTEGERp2="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_INTEGERp2" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_INTEGERp2" >&6; } ++ ++ if test "$ompi_cv_f90_have_INTEGERp2" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 INTEGER*2" >&5 ++echo $ECHO_N "checking size of Fortran 90 INTEGER*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_INTEGERp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER*2" >&5 ++echo "$as_me: WARNING: Could not determine size of INTEGER*2" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*2 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of INTEGER*2 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_INTEGERp2=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*2" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*2" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_INTEGERp2" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_INTEGERp2" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_INTEGERp2 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER2 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER*2) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*2) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER*2)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER*2)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER2 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER*2 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*2 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER*2 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*2 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=I ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_INTEGER2 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_INTEGER2=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="INTEGER*4" ++ ofc_expected_size="4" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports INTEGER*4" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports INTEGER*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_INTEGERp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ INTEGER*4 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_INTEGERp4="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_INTEGERp4="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_INTEGERp4" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_INTEGERp4" >&6; } ++ ++ if test "$ompi_cv_f90_have_INTEGERp4" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 INTEGER*4" >&5 ++echo $ECHO_N "checking size of Fortran 90 INTEGER*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_INTEGERp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER*4" >&5 ++echo "$as_me: WARNING: Could not determine size of INTEGER*4" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*4 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of INTEGER*4 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_INTEGERp4=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*4" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*4" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_INTEGERp4" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_INTEGERp4" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_INTEGERp4 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER4 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER*4) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*4) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER*4)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER*4)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER4 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER*4 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*4 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER*4 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*4 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=I ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_INTEGER4 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_INTEGER4=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="INTEGER*8" ++ ofc_expected_size="8" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports INTEGER*8" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports INTEGER*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_INTEGERp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ INTEGER*8 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_INTEGERp8="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_INTEGERp8="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_INTEGERp8" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_INTEGERp8" >&6; } ++ ++ if test "$ompi_cv_f90_have_INTEGERp8" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 INTEGER*8" >&5 ++echo $ECHO_N "checking size of Fortran 90 INTEGER*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_INTEGERp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER*8" >&5 ++echo "$as_me: WARNING: Could not determine size of INTEGER*8" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*8 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of INTEGER*8 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_INTEGERp8=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*8" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_INTEGERp8" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_INTEGERp8" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_INTEGERp8 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER8 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER*8) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*8) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER*8)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER*8)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER8 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER*8 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*8 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER*8 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*8 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=I ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_INTEGER8 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_INTEGER8=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="INTEGER*16" ++ ofc_expected_size="16" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports INTEGER*16" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports INTEGER*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_INTEGERp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ INTEGER*16 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_INTEGERp16="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_INTEGERp16="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_INTEGERp16" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_INTEGERp16" >&6; } ++ ++ if test "$ompi_cv_f90_have_INTEGERp16" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 INTEGER*16" >&5 ++echo $ECHO_N "checking size of Fortran 90 INTEGER*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_INTEGERp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER*16" >&5 ++echo "$as_me: WARNING: Could not determine size of INTEGER*16" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*16 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of INTEGER*16 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_INTEGERp16=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*16" >&5 ++echo "$as_me: error: Could not determine size of INTEGER*16" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_INTEGERp16" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_INTEGERp16" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_INTEGERp16 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER16 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER*16) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*16) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER*16)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER*16)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER16 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER*16 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*16 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER*16 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*16 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=I ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_INTEGER16 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_INTEGER16=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++# REAL, DOUBLE PRECISION, REAL*4, *8, *16 ++ ++ ofc_fortran_type="REAL" ++ ofc_expected_size="" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports REAL" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports REAL... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_REAL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ REAL :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_REAL="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_REAL="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_REAL" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_REAL" >&6; } ++ ++ if test "$ompi_cv_f90_have_REAL" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 REAL" >&5 ++echo $ECHO_N "checking size of Fortran 90 REAL... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_REAL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of REAL" >&5 ++echo "$as_me: WARNING: Could not determine size of REAL" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of REAL when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of REAL when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_REAL=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL" >&5 ++echo "$as_me: error: Could not determine size of REAL" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_REAL" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_REAL" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_REAL ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_REAL ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (REAL) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (REAL)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (REAL)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_REAL ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for REAL ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for REAL ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for REAL ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for REAL ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=R ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_REAL $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_REAL=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="REAL*2" ++ ofc_expected_size="2" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports REAL*2" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports REAL*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_REALp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ REAL*2 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_REALp2="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_REALp2="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_REALp2" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_REALp2" >&6; } ++ ++ if test "$ompi_cv_f90_have_REALp2" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 REAL*2" >&5 ++echo $ECHO_N "checking size of Fortran 90 REAL*2... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_REALp2+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of REAL*2" >&5 ++echo "$as_me: WARNING: Could not determine size of REAL*2" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of REAL*2 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of REAL*2 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_REALp2=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*2" >&5 ++echo "$as_me: error: Could not determine size of REAL*2" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_REALp2" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_REALp2" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_REALp2 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_REAL2 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (REAL*2) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL*2) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (REAL*2)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (REAL*2)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_REAL2 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for REAL*2 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for REAL*2 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for REAL*2 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for REAL*2 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=R ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_REAL2 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_REAL2=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="REAL*4" ++ ofc_expected_size="4" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports REAL*4" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports REAL*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_REALp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ REAL*4 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_REALp4="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_REALp4="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_REALp4" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_REALp4" >&6; } ++ ++ if test "$ompi_cv_f90_have_REALp4" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 REAL*4" >&5 ++echo $ECHO_N "checking size of Fortran 90 REAL*4... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_REALp4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of REAL*4" >&5 ++echo "$as_me: WARNING: Could not determine size of REAL*4" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of REAL*4 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of REAL*4 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_REALp4=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*4" >&5 ++echo "$as_me: error: Could not determine size of REAL*4" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_REALp4" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_REALp4" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_REALp4 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_REAL4 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (REAL*4) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL*4) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (REAL*4)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (REAL*4)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_REAL4 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for REAL*4 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for REAL*4 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for REAL*4 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for REAL*4 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=R ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_REAL4 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_REAL4=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="REAL*8" ++ ofc_expected_size="8" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports REAL*8" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports REAL*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_REALp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ REAL*8 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_REALp8="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_REALp8="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_REALp8" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_REALp8" >&6; } ++ ++ if test "$ompi_cv_f90_have_REALp8" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 REAL*8" >&5 ++echo $ECHO_N "checking size of Fortran 90 REAL*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_REALp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of REAL*8" >&5 ++echo "$as_me: WARNING: Could not determine size of REAL*8" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of REAL*8 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of REAL*8 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_REALp8=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*8" >&5 ++echo "$as_me: error: Could not determine size of REAL*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_REALp8" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_REALp8" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_REALp8 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_REAL8 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (REAL*8) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL*8) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (REAL*8)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (REAL*8)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_REAL8 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for REAL*8 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for REAL*8 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for REAL*8 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for REAL*8 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=R ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_REAL8 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_REAL8=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="REAL*16" ++ ofc_expected_size="16" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports REAL*16" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports REAL*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_REALp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ REAL*16 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_REALp16="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_REALp16="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_REALp16" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_REALp16" >&6; } ++ ++ if test "$ompi_cv_f90_have_REALp16" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 REAL*16" >&5 ++echo $ECHO_N "checking size of Fortran 90 REAL*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_REALp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of REAL*16" >&5 ++echo "$as_me: WARNING: Could not determine size of REAL*16" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of REAL*16 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of REAL*16 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_REALp16=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of REAL*16" >&5 ++echo "$as_me: error: Could not determine size of REAL*16" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_REALp16" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_REALp16" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_REALp16 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_REAL16 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (REAL*16) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL*16) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (REAL*16)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (REAL*16)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_REAL16 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for REAL*16 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for REAL*16 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for REAL*16 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for REAL*16 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=R ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_REAL16 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_REAL16=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="DOUBLE PRECISION" ++ ofc_expected_size="" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports DOUBLE PRECISION" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports DOUBLE PRECISION... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_DOUBLE_PRECISION+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ DOUBLE PRECISION :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_DOUBLE_PRECISION="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_DOUBLE_PRECISION="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_DOUBLE_PRECISION" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_DOUBLE_PRECISION" >&6; } ++ ++ if test "$ompi_cv_f90_have_DOUBLE_PRECISION" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 DOUBLE PRECISION" >&5 ++echo $ECHO_N "checking size of Fortran 90 DOUBLE PRECISION... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_DOUBLE_PRECISION+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of DOUBLE PRECISION" >&5 ++echo "$as_me: WARNING: Could not determine size of DOUBLE PRECISION" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of DOUBLE PRECISION when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of DOUBLE PRECISION when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_DOUBLE_PRECISION=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of DOUBLE PRECISION" >&5 ++echo "$as_me: error: Could not determine size of DOUBLE PRECISION" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_DOUBLE_PRECISION" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_DOUBLE_PRECISION" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_DOUBLE_PRECISION ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_DOUBLE_PRECISION ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (DOUBLE PRECISION) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (DOUBLE PRECISION) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (DOUBLE PRECISION)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (DOUBLE PRECISION)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_DOUBLE_PRECISION ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for DOUBLE PRECISION ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for DOUBLE PRECISION ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for DOUBLE PRECISION ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for DOUBLE PRECISION ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=D ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_DOUBLE_PRECISION $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_DOUBLE_PRECISION=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++# COMPLEX, DOUBLE COMPLEX, COMPLEX*8, *16, *32 ++ ++ ofc_fortran_type="COMPLEX" ++ ofc_expected_size="" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports COMPLEX" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports COMPLEX... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_COMPLEX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ COMPLEX :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_COMPLEX="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_COMPLEX="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_COMPLEX" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_COMPLEX" >&6; } ++ ++ if test "$ompi_cv_f90_have_COMPLEX" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 COMPLEX" >&5 ++echo $ECHO_N "checking size of Fortran 90 COMPLEX... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_COMPLEX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of COMPLEX" >&5 ++echo "$as_me: WARNING: Could not determine size of COMPLEX" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of COMPLEX when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_COMPLEX=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_COMPLEX" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_COMPLEX" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_COMPLEX ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_COMPLEX ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (COMPLEX) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (COMPLEX) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (COMPLEX)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (COMPLEX)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_COMPLEX ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for COMPLEX ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for COMPLEX ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for COMPLEX ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for COMPLEX ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=C ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_COMPLEX $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_COMPLEX=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="COMPLEX*8" ++ ofc_expected_size="8" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports COMPLEX*8" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports COMPLEX*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_COMPLEXp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ COMPLEX*8 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_COMPLEXp8="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_COMPLEXp8="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_COMPLEXp8" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_COMPLEXp8" >&6; } ++ ++ if test "$ompi_cv_f90_have_COMPLEXp8" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 COMPLEX*8" >&5 ++echo $ECHO_N "checking size of Fortran 90 COMPLEX*8... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_COMPLEXp8+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of COMPLEX*8" >&5 ++echo "$as_me: WARNING: Could not determine size of COMPLEX*8" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*8 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of COMPLEX*8 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_COMPLEXp8=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*8" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX*8" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_COMPLEXp8" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_COMPLEXp8" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_COMPLEXp8 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_COMPLEX8 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (COMPLEX*8) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (COMPLEX*8) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (COMPLEX*8)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (COMPLEX*8)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_COMPLEX8 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for COMPLEX*8 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for COMPLEX*8 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for COMPLEX*8 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for COMPLEX*8 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=C ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_COMPLEX8 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_COMPLEX8=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="COMPLEX*16" ++ ofc_expected_size="16" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports COMPLEX*16" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports COMPLEX*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_COMPLEXp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ COMPLEX*16 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_COMPLEXp16="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_COMPLEXp16="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_COMPLEXp16" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_COMPLEXp16" >&6; } ++ ++ if test "$ompi_cv_f90_have_COMPLEXp16" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 COMPLEX*16" >&5 ++echo $ECHO_N "checking size of Fortran 90 COMPLEX*16... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_COMPLEXp16+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of COMPLEX*16" >&5 ++echo "$as_me: WARNING: Could not determine size of COMPLEX*16" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*16 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of COMPLEX*16 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_COMPLEXp16=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*16" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX*16" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_COMPLEXp16" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_COMPLEXp16" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_COMPLEXp16 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_COMPLEX16 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (COMPLEX*16) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (COMPLEX*16) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (COMPLEX*16)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (COMPLEX*16)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_COMPLEX16 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for COMPLEX*16 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for COMPLEX*16 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for COMPLEX*16 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for COMPLEX*16 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=C ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_COMPLEX16 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_COMPLEX16=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="COMPLEX*32" ++ ofc_expected_size="32" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports COMPLEX*32" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports COMPLEX*32... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_COMPLEXp32+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ COMPLEX*32 :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_COMPLEXp32="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_COMPLEXp32="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_COMPLEXp32" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_COMPLEXp32" >&6; } ++ ++ if test "$ompi_cv_f90_have_COMPLEXp32" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 COMPLEX*32" >&5 ++echo $ECHO_N "checking size of Fortran 90 COMPLEX*32... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_COMPLEXp32+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of COMPLEX*32" >&5 ++echo "$as_me: WARNING: Could not determine size of COMPLEX*32" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*32 when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of COMPLEX*32 when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_COMPLEXp32=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*32" >&5 ++echo "$as_me: error: Could not determine size of COMPLEX*32" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_COMPLEXp32" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_COMPLEXp32" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_COMPLEXp32 ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_COMPLEX32 ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (COMPLEX*32) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (COMPLEX*32) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (COMPLEX*32)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (COMPLEX*32)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_COMPLEX32 ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for COMPLEX*32 ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for COMPLEX*32 ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for COMPLEX*32 ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for COMPLEX*32 ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=C ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_COMPLEX32 $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_COMPLEX32=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ofc_fortran_type="DOUBLE COMPLEX" ++ ofc_expected_size="" ++ ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ++ # Only check if we actually want the F90 bindings / have a F90 ++ # compiler. This allows us to call this macro even if there is ++ # no F90 compiler. If we have no f90 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F90_BINDINGS" = "1"; then ++ ++ ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports DOUBLE COMPLEX" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports DOUBLE COMPLEX... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_have_DOUBLE_COMPLEX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++program main ++ DOUBLE COMPLEX :: x ++end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_f90_have_DOUBLE_COMPLEX="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_f90_have_DOUBLE_COMPLEX="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_have_DOUBLE_COMPLEX" >&5 ++echo "${ECHO_T}$ompi_cv_f90_have_DOUBLE_COMPLEX" >&6; } ++ ++ if test "$ompi_cv_f90_have_DOUBLE_COMPLEX" = "yes"; then ++ ofc_have_type=1 ++else ++ ofc_have_type=0 ++fi ++ ++ ++ else ++ { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5 ++echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: skipped" >&5 ++echo "${ECHO_T}skipped" >&6; } ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ ++ ++ ++ { echo "$as_me:$LINENO: checking size of Fortran 90 DOUBLE COMPLEX" >&5 ++echo $ECHO_N "checking size of Fortran 90 DOUBLE COMPLEX... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_sizeof_DOUBLE_COMPLEX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo size | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_size_fn=size__ ++ else ++ ompi_ac_size_fn=size_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_size_fn=size_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_size_fn=size ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_size_fn=SIZE ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Fortran module ++ cat > conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no" ; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not determine size of DOUBLE COMPLEX" >&5 ++echo "$as_me: WARNING: Could not determine size of DOUBLE COMPLEX" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine size of DOUBLE COMPLEX when cross-compiling" >&5 ++echo "$as_me: error: Can not determine size of DOUBLE COMPLEX when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_sizeof_DOUBLE_COMPLEX=`cat conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine size of DOUBLE COMPLEX" >&5 ++echo "$as_me: error: Could not determine size of DOUBLE COMPLEX" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_DOUBLE_COMPLEX" >&5 ++echo "${ECHO_T}$ompi_cv_f90_sizeof_DOUBLE_COMPLEX" >&6; } ++ ++ ofc_type_size=$ompi_cv_f90_sizeof_DOUBLE_COMPLEX ++ ++ if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5 ++echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5 ++echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5 ++echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;} ++ ofc_have_type=0 ++ else ++ # If this type has an F77 counterpart, see if it's ++ # supported. ++ ofc_f77_have_type=$OMPI_HAVE_FORTRAN_DOUBLE_COMPLEX ++ if test "$ofc_f77_have_type" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (DOUBLE COMPLEX) not supported" >&5 ++echo "$as_me: WARNING: *** Corresponding Fortran 77 type (DOUBLE COMPLEX) not supported" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (DOUBLE COMPLEX)" >&5 ++echo "$as_me: WARNING: *** Skipping Fortran 90 type (DOUBLE COMPLEX)" >&2;} ++ else ++ ++ # Check the size of this type against its F77 counterpart ++ ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_DOUBLE_COMPLEX ++ if test "$ofc_f77_sizeof" != ""; then ++ { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5 ++echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; } ++ if test "$ofc_f77_sizeof" != "$ofc_type_size"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for DOUBLE COMPLEX ($ofc_f77_sizeof) does not match" >&5 ++echo "$as_me: WARNING: *** Fortran 77 size for DOUBLE COMPLEX ($ofc_f77_sizeof) does not match" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for DOUBLE COMPLEX ($ofc_type_size)" >&5 ++echo "$as_me: WARNING: *** Fortran 90 size for DOUBLE COMPLEX ($ofc_type_size)" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ fi ++ fi ++ ++ # If we passed in the expected size, then also add the ++ # type to the relevant list of types found. ++ if test "$ofc_expected_size" != ""; then ++ ofc_letter=D ++ ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \"" ++ eval $ofc_str ++ fi ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given ++ # type, there are some places in the code where we have to have ++ # *something*. Note that the bpatsubst's are the same as used ++ # above (see comment above), but we added a translit to make them ++ # uppercase. ++ ++ # If we got a pretty name, use that as the basis. If not, use the ++ # first part of the provided fortran type (e.g., ++ # "logical(selected_int_kind(2))" -> logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_F90_DOUBLE_COMPLEX $ofc_have_type ++_ACEOF ++ ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ OMPI_SIZEOF_F90_DOUBLE_COMPLEX=$ofc_type_size ++ ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++ ++ ++ ++ ++ ++ ++# get kind value for Fortran MPI_INTEGER_KIND (corresponding to ++# whatever is the same size as a F77 INTEGER -- for the ++# most-likely-will-never-occur case where F77 INTEGER is smaller than ++# an F90 INTEGER; see MPI-2 4.12.6.5 ++if test "$OMPI_SIZEOF_FORTRAN_INTEGER" = "2"; then ++ ++ ++ ++ if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then ++ { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(4))" >&5 ++echo $ECHO_N "checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(4))... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_int_kind_4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat > conftestf.f90 <&5 ++$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no"; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&5 ++echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&5 ++echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_int_kind_4=`sed 's/ *//' conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&5 ++echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_4" >&5 ++echo "${ECHO_T}$ompi_cv_f90_int_kind_4" >&6; } ++ ++ OMPI_MPI_INTEGER_KIND=$ompi_cv_f90_int_kind_4 ++ else ++ OMPI_MPI_INTEGER_KIND=0 ++ fi ++ ++elif test "$OMPI_SIZEOF_FORTRAN_INTEGER" = "4"; then ++ ++ ++ ++ if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then ++ { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(9))" >&5 ++echo $ECHO_N "checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(9))... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_int_kind_9+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat > conftestf.f90 <&5 ++$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no"; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&5 ++echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&5 ++echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_int_kind_9=`sed 's/ *//' conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&5 ++echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_9" >&5 ++echo "${ECHO_T}$ompi_cv_f90_int_kind_9" >&6; } ++ ++ OMPI_MPI_INTEGER_KIND=$ompi_cv_f90_int_kind_9 ++ else ++ OMPI_MPI_INTEGER_KIND=0 ++ fi ++ ++elif test "$OMPI_SIZEOF_FORTRAN_INTEGER" = "8"; then ++ ++ ++ ++ if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then ++ { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(18))" >&5 ++echo $ECHO_N "checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(18))... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_int_kind_18+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat > conftestf.f90 <&5 ++$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no"; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&5 ++echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&5 ++echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_int_kind_18=`sed 's/ *//' conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&5 ++echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_18" >&5 ++echo "${ECHO_T}$ompi_cv_f90_int_kind_18" >&6; } ++ ++ OMPI_MPI_INTEGER_KIND=$ompi_cv_f90_int_kind_18 ++ else ++ OMPI_MPI_INTEGER_KIND=0 ++ fi ++ ++elif test "$OMPI_SIZEOF_FORTRAN_INTEGER" = "16"; then ++ ++ ++ ++ if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then ++ { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(19))" >&5 ++echo $ECHO_N "checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(19))... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_int_kind_19+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat > conftestf.f90 <&5 ++$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no"; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&5 ++echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&5 ++echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_int_kind_19=`sed 's/ *//' conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&5 ++echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_19" >&5 ++echo "${ECHO_T}$ompi_cv_f90_int_kind_19" >&6; } ++ ++ OMPI_MPI_INTEGER_KIND=$ompi_cv_f90_int_kind_19 ++ else ++ OMPI_MPI_INTEGER_KIND=0 ++ fi ++ ++ { { echo "$as_me:$LINENO: error: Cannot support Fortran MPI_INTEGER_KIND!" >&5 ++echo "$as_me: error: Cannot support Fortran MPI_INTEGER_KIND!" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++# get kind value for Fortran MPI_ADDRESS_KIND (corresponding to ++# whatever is big enough to hold (void*)) ++if test "$ac_cv_sizeof_void_p" = "2"; then ++ ++ ++ ++ if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then ++ { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(4))" >&5 ++echo $ECHO_N "checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(4))... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_int_kind_4+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat > conftestf.f90 <&5 ++$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no"; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5 ++echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&5 ++echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_int_kind_4=`sed 's/ *//' conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5 ++echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_4" >&5 ++echo "${ECHO_T}$ompi_cv_f90_int_kind_4" >&6; } ++ ++ OMPI_MPI_ADDRESS_KIND=$ompi_cv_f90_int_kind_4 ++ else ++ OMPI_MPI_ADDRESS_KIND=0 ++ fi ++ ++elif test "$ac_cv_sizeof_void_p" = "4"; then ++ ++ ++ ++ if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then ++ { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(9))" >&5 ++echo $ECHO_N "checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(9))... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_int_kind_9+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat > conftestf.f90 <&5 ++$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no"; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5 ++echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&5 ++echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_int_kind_9=`sed 's/ *//' conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5 ++echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_9" >&5 ++echo "${ECHO_T}$ompi_cv_f90_int_kind_9" >&6; } ++ ++ OMPI_MPI_ADDRESS_KIND=$ompi_cv_f90_int_kind_9 ++ else ++ OMPI_MPI_ADDRESS_KIND=0 ++ fi ++ ++elif test "$ac_cv_sizeof_void_p" = "8"; then ++ ++ ++ ++ if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then ++ { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(18))" >&5 ++echo $ECHO_N "checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(18))... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_int_kind_18+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat > conftestf.f90 <&5 ++$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no"; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5 ++echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&5 ++echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_int_kind_18=`sed 's/ *//' conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5 ++echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_18" >&5 ++echo "${ECHO_T}$ompi_cv_f90_int_kind_18" >&6; } ++ ++ OMPI_MPI_ADDRESS_KIND=$ompi_cv_f90_int_kind_18 ++ else ++ OMPI_MPI_ADDRESS_KIND=0 ++ fi ++ ++elif test "$ac_cv_sizeof_void_p" = "16"; then ++ ++ ++ ++ if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then ++ { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(19))" >&5 ++echo $ECHO_N "checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(19))... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_int_kind_19+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat > conftestf.f90 <&5 ++$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no"; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5 ++echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&5 ++echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_int_kind_19=`sed 's/ *//' conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5 ++echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_19" >&5 ++echo "${ECHO_T}$ompi_cv_f90_int_kind_19" >&6; } ++ ++ OMPI_MPI_ADDRESS_KIND=$ompi_cv_f90_int_kind_19 ++ else ++ OMPI_MPI_ADDRESS_KIND=0 ++ fi ++ ++else ++ { { echo "$as_me:$LINENO: error: Cannot support Fortran MPI_ADDRESS_KIND!" >&5 ++echo "$as_me: error: Cannot support Fortran MPI_ADDRESS_KIND!" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++# get kind value for Fortran MPI_OFFSET_KIND (corresponding to INTEGER*8) ++ ++ ++ ++ if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then ++ { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_OFFSET_KIND (selected_int_kind(18))" >&5 ++echo $ECHO_N "checking Fortran 90 kind of MPI_OFFSET_KIND (selected_int_kind(18))... $ECHO_C" >&6; } ++if test "${ompi_cv_f90_int_kind_18+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat > conftestf.f90 <&5 ++$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ happy="yes" ++else ++ unset ompi_status ++ happy="no" ++fi ++ ++ if test "$happy" = "no"; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran 90 program:" >&5 ++else ++ echo here is the fortran 90 program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f90" -a -f "conftestf.f90"; then ++ cat conftestf.f90 >&5 ++fi ++ { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_OFFSET_KIND)" >&5 ++echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_OFFSET_KIND)" >&2;} ++ { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5 ++echo "$as_me: WARNING: See config.log for details" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ if test "$cross_compiling" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_OFFSET_KIND) when cross-compiling" >&5 ++echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_OFFSET_KIND) when cross-compiling" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: ./conftest" >&5 ++./conftest 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_cv_f90_int_kind_18=`sed 's/ *//' conftestval` ++else ++ unset ompi_status ++ { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_OFFSET_KIND)" >&5 ++echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_OFFSET_KIND)" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++ ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest* ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_18" >&5 ++echo "${ECHO_T}$ompi_cv_f90_int_kind_18" >&6; } ++ ++ OMPI_MPI_OFFSET_KIND=$ompi_cv_f90_int_kind_18 ++ else ++ OMPI_MPI_OFFSET_KIND=0 ++ fi ++ ++ ++ ++# checkpoint results ++cat >confcache <<\_ACEOF ++# This file is a shell script that caches the results of configure ++# tests run on this system so they can be shared between configure ++# scripts and configure runs, see configure's option --config-cache. ++# It is not useful on other systems. If it contains results you don't ++# want to keep, you may remove or edit it. ++# ++# config.status only pays attention to the cache file if you give it ++# the --recheck option to rerun configure. ++# ++# `ac_cv_env_foo' variables (set or unset) will be overridden when ++# loading this file, other *unset* `ac_cv_foo' will be assigned the ++# following values. ++ ++_ACEOF ++ ++# The following way of writing the cache mishandles newlines in values, ++# but we know of no workaround that is simple, portable, and efficient. ++# So, we kill variables containing newlines. ++# Ultrix sh set writes to stderr and can't be redirected directly, ++# and sets the high bit in the cache file unless we assign to the vars. ++( ++ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do ++ eval ac_val=\$$ac_var ++ case $ac_val in #( ++ *${as_nl}*) ++ case $ac_var in #( ++ *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 ++echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; ++ esac ++ case $ac_var in #( ++ _ | IFS | as_nl) ;; #( ++ *) $as_unset $ac_var ;; ++ esac ;; ++ esac ++ done ++ ++ (set) 2>&1 | ++ case $as_nl`(ac_space=' '; set) 2>&1` in #( ++ *${as_nl}ac_space=\ *) ++ # `set' does not quote correctly, so add quotes (double-quote ++ # substitution turns \\\\ into \\, and sed turns \\ into \). ++ sed -n \ ++ "s/'/'\\\\''/g; ++ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ++ ;; #( ++ *) ++ # `set' quotes correctly as required by POSIX, so do not add quotes. ++ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ++ ;; ++ esac | ++ sort ++) | ++ sed ' ++ /^ac_cv_env_/b end ++ t clear ++ :clear ++ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ ++ t end ++ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ ++ :end' >>confcache ++if diff "$cache_file" confcache >/dev/null 2>&1; then :; else ++ if test -w "$cache_file"; then ++ test "x$cache_file" != "x/dev/null" && ++ { echo "$as_me:$LINENO: updating cache $cache_file" >&5 ++echo "$as_me: updating cache $cache_file" >&6;} ++ cat confcache >$cache_file ++ else ++ { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 ++echo "$as_me: not updating unwritable cache $cache_file" >&6;} ++ fi ++fi ++rm -f confcache ++ ++################################## ++# Header files ++################################## ++ ++ompi_show_title "Header file tests" ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++for ac_header in alloca.h aio.h arpa/inet.h dirent.h \ ++ dlfcn.h execinfo.h err.h fcntl.h grp.h inttypes.h libgen.h \ ++ libutil.h netdb.h netinet/in.h netinet/tcp.h \ ++ poll.h pthread.h pty.h pwd.h sched.h stdint.h \ ++ string.h strings.h stropts.h sys/fcntl.h sys/ipc.h \ ++ sys/ioctl.h sys/mman.h sys/param.h sys/queue.h \ ++ sys/resource.h sys/select.h sys/socket.h sys/sockio.h \ ++ stdarg.h sys/stat.h sys/statvfs.h sys/time.h sys/tree.h \ ++ sys/types.h sys/uio.h net/uio.h sys/utsname.h sys/wait.h syslog.h \ ++ time.h termios.h ulimit.h unistd.h util.h utmp.h malloc.h \ ++ ifaddrs.h sys/sysctl.h crt_externs.h regex.h \ ++ ioLib.h sockLib.h hostLib.h shlwapi.h sys/synch.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++ ++# Needed to work around Darwin requiring sys/socket.h for ++# net/if.h ++ ++for ac_header in net/if.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#if STDC_HEADERS ++# include ++# include ++#else ++# if HAVE_STDLIB_H ++# include ++# endif ++#endif ++#if HAVE_SYS_SOCKET_H ++# include ++#endif ++ ++ ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ eval "$as_ac_Header=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_Header=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++ ++# Note that sometimes we have , but it doesn't work (e.g., ++# have both Portland and GNU installed; using pgcc will find GNU's ++# , which all it does -- by standard -- is define "bool" to ++# "_Bool" [see ++# http://www.opengroup.org/onlinepubs/009695399/basedefs/stdbool.h.html], ++# and Portland has no idea what to do with _Bool). ++ ++# So first figure out if we have (i.e., check the value of ++# the macro HAVE_STDBOOL_H from the result of AC_CHECK_HEADERS, ++# above). If we do have it, then check to see if it actually works. ++# Define OMPI_USE_STDBOOL_H as approrpaite. ++ ++for ac_header in stdbool.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ have_stdbool_h=1 ++else ++ have_stdbool_h=0 ++fi ++ ++done ++ ++{ echo "$as_me:$LINENO: checking if works" >&5 ++echo $ECHO_N "checking if works... $ECHO_C" >&6; } ++if test "$have_stdbool_h" = "1"; then ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++$ac_includes_default ++#if HAVE_STDBOOL_H ++#include ++#endif ++int ++main () ++{ ++bool bar, foo = true; bar = foo; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ OMPI_USE_STDBOOL_H=1 MSG=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ OMPI_USE_STDBOOL_H=0 MSG=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++else ++ OMPI_USE_STDBOOL_H=0 ++ MSG="no (don't have )" ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_USE_STDBOOL_H $OMPI_USE_STDBOOL_H ++_ACEOF ++ ++{ echo "$as_me:$LINENO: result: $MSG" >&5 ++echo "${ECHO_T}$MSG" >&6; } ++ ++# checkpoint results ++cat >confcache <<\_ACEOF ++# This file is a shell script that caches the results of configure ++# tests run on this system so they can be shared between configure ++# scripts and configure runs, see configure's option --config-cache. ++# It is not useful on other systems. If it contains results you don't ++# want to keep, you may remove or edit it. ++# ++# config.status only pays attention to the cache file if you give it ++# the --recheck option to rerun configure. ++# ++# `ac_cv_env_foo' variables (set or unset) will be overridden when ++# loading this file, other *unset* `ac_cv_foo' will be assigned the ++# following values. ++ ++_ACEOF ++ ++# The following way of writing the cache mishandles newlines in values, ++# but we know of no workaround that is simple, portable, and efficient. ++# So, we kill variables containing newlines. ++# Ultrix sh set writes to stderr and can't be redirected directly, ++# and sets the high bit in the cache file unless we assign to the vars. ++( ++ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do ++ eval ac_val=\$$ac_var ++ case $ac_val in #( ++ *${as_nl}*) ++ case $ac_var in #( ++ *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 ++echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; ++ esac ++ case $ac_var in #( ++ _ | IFS | as_nl) ;; #( ++ *) $as_unset $ac_var ;; ++ esac ;; ++ esac ++ done ++ ++ (set) 2>&1 | ++ case $as_nl`(ac_space=' '; set) 2>&1` in #( ++ *${as_nl}ac_space=\ *) ++ # `set' does not quote correctly, so add quotes (double-quote ++ # substitution turns \\\\ into \\, and sed turns \\ into \). ++ sed -n \ ++ "s/'/'\\\\''/g; ++ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ++ ;; #( ++ *) ++ # `set' quotes correctly as required by POSIX, so do not add quotes. ++ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ++ ;; ++ esac | ++ sort ++) | ++ sed ' ++ /^ac_cv_env_/b end ++ t clear ++ :clear ++ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ ++ t end ++ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ ++ :end' >>confcache ++if diff "$cache_file" confcache >/dev/null 2>&1; then :; else ++ if test -w "$cache_file"; then ++ test "x$cache_file" != "x/dev/null" && ++ { echo "$as_me:$LINENO: updating cache $cache_file" >&5 ++echo "$as_me: updating cache $cache_file" >&6;} ++ cat confcache >$cache_file ++ else ++ { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 ++echo "$as_me: not updating unwritable cache $cache_file" >&6;} ++ fi ++fi ++rm -f confcache ++ ++ ++################################## ++# Types ++################################## ++ ++ompi_show_title "Type tests" ++ ++# Size of pid_t ++{ echo "$as_me:$LINENO: checking for pid_t" >&5 ++echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_pid_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef pid_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_pid_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_pid_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 ++echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } ++ ++# The cast to long int works around a bug in the HP C Compiler ++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects ++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. ++# This bug is HP SR number 8606223364. ++{ echo "$as_me:$LINENO: checking size of pid_t" >&5 ++echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; } ++if test "${ac_cv_sizeof_pid_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then ++ # Depending upon the size, compute the lo and hi bounds. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef pid_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=0 ac_mid=0 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef pid_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr $ac_mid + 1` ++ if test $ac_lo -le $ac_mid; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef pid_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=-1 ac_mid=-1 ++ while :; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef pid_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_lo=$ac_mid; break ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_hi=`expr '(' $ac_mid ')' - 1` ++ if test $ac_mid -le $ac_hi; then ++ ac_lo= ac_hi= ++ break ++ fi ++ ac_mid=`expr 2 '*' $ac_mid` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ done ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo= ac_hi= ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++# Binary search between lo and hi bounds. ++while test "x$ac_lo" != "x$ac_hi"; do ++ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef pid_t ac__type_sizeof_; ++int ++main () ++{ ++static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@; ++test_array @<:@0@:>@ = 0 ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_hi=$ac_mid ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_lo=`expr '(' $ac_mid ')' + 1` ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++done ++case $ac_lo in ++?*) ac_cv_sizeof_pid_t=$ac_lo;; ++'') if test "$ac_cv_type_pid_t" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (pid_t) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_pid_t=0 ++ fi ;; ++esac ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ typedef pid_t ac__type_sizeof_; ++static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } ++static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } ++@%:@include ++@%:@include ++int ++main () ++{ ++ ++ FILE *f = fopen ("conftest.val", "w"); ++ if (! f) ++ return 1; ++ if (((long int) (sizeof (ac__type_sizeof_))) < 0) ++ { ++ long int i = longval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%ld\n", i); ++ } ++ else ++ { ++ unsigned long int i = ulongval (); ++ if (i != ((long int) (sizeof (ac__type_sizeof_)))) ++ return 1; ++ fprintf (f, "%lu\n", i); ++ } ++ return ferror (f) || fclose (f) != 0; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_sizeof_pid_t=`cat conftest.val` ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++if test "$ac_cv_type_pid_t" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot compute sizeof (pid_t) ++See \`config.log' for more details." >&2;} ++ { (exit 77); exit 77; }; } ++ else ++ ac_cv_sizeof_pid_t=0 ++ fi ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++rm -f conftest.val ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5 ++echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; } ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define SIZEOF_PID_T $ac_cv_sizeof_pid_t ++_ACEOF ++ ++ ++ ++{ echo "$as_me:$LINENO: checking for socklen_t" >&5 ++echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_socklen_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#if HAVE_SYS_SOCKET_H ++#include ++#endif ++#ifdef HAVE_NETINET_IN_H ++#include ++#endif ++ ++typedef socklen_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_socklen_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_socklen_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 ++echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } ++if test $ac_cv_type_socklen_t = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_SOCKLEN_T 1 ++_ACEOF ++ ++ ++fi ++{ echo "$as_me:$LINENO: checking for struct sockaddr_in" >&5 ++echo $ECHO_N "checking for struct sockaddr_in... $ECHO_C" >&6; } ++if test "${ac_cv_type_struct_sockaddr_in+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#if HAVE_SYS_SOCKET_H ++#include ++#endif ++#ifdef HAVE_NETINET_IN_H ++#include ++#endif ++ ++typedef struct sockaddr_in ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_struct_sockaddr_in=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_struct_sockaddr_in=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in" >&5 ++echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in" >&6; } ++if test $ac_cv_type_struct_sockaddr_in = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_STRUCT_SOCKADDR_IN 1 ++_ACEOF ++ ++ ++fi ++{ echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 ++echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; } ++if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#if HAVE_SYS_SOCKET_H ++#include ++#endif ++#ifdef HAVE_NETINET_IN_H ++#include ++#endif ++ ++typedef struct sockaddr_in6 ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_struct_sockaddr_in6=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_struct_sockaddr_in6=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5 ++echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; } ++if test $ac_cv_type_struct_sockaddr_in6 = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_STRUCT_SOCKADDR_IN6 1 ++_ACEOF ++ ++ ++fi ++{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 ++echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; } ++if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#if HAVE_SYS_SOCKET_H ++#include ++#endif ++#ifdef HAVE_NETINET_IN_H ++#include ++#endif ++ ++typedef struct sockaddr_storage ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_struct_sockaddr_storage=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_struct_sockaddr_storage=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5 ++echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; } ++if test $ac_cv_type_struct_sockaddr_storage = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_STRUCT_SOCKADDR_STORAGE 1 ++_ACEOF ++ ++ ++fi ++ ++ ++{ echo "$as_me:$LINENO: checking whether AF_UNSPEC is declared" >&5 ++echo $ECHO_N "checking whether AF_UNSPEC is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl_AF_UNSPEC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#if HAVE_SYS_SOCKET_H ++#include ++#endif ++#ifdef HAVE_NETINET_IN_H ++#include ++#endif ++ ++int ++main () ++{ ++#ifndef AF_UNSPEC ++ (void) AF_UNSPEC; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl_AF_UNSPEC=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl_AF_UNSPEC=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AF_UNSPEC" >&5 ++echo "${ECHO_T}$ac_cv_have_decl_AF_UNSPEC" >&6; } ++if test $ac_cv_have_decl_AF_UNSPEC = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_AF_UNSPEC 1 ++_ACEOF ++ ++ ++else ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_AF_UNSPEC 0 ++_ACEOF ++ ++ ++fi ++{ echo "$as_me:$LINENO: checking whether PF_UNSPEC is declared" >&5 ++echo $ECHO_N "checking whether PF_UNSPEC is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl_PF_UNSPEC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#if HAVE_SYS_SOCKET_H ++#include ++#endif ++#ifdef HAVE_NETINET_IN_H ++#include ++#endif ++ ++int ++main () ++{ ++#ifndef PF_UNSPEC ++ (void) PF_UNSPEC; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl_PF_UNSPEC=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl_PF_UNSPEC=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PF_UNSPEC" >&5 ++echo "${ECHO_T}$ac_cv_have_decl_PF_UNSPEC" >&6; } ++if test $ac_cv_have_decl_PF_UNSPEC = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_PF_UNSPEC 1 ++_ACEOF ++ ++ ++else ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_PF_UNSPEC 0 ++_ACEOF ++ ++ ++fi ++{ echo "$as_me:$LINENO: checking whether AF_INET6 is declared" >&5 ++echo $ECHO_N "checking whether AF_INET6 is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl_AF_INET6+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#if HAVE_SYS_SOCKET_H ++#include ++#endif ++#ifdef HAVE_NETINET_IN_H ++#include ++#endif ++ ++int ++main () ++{ ++#ifndef AF_INET6 ++ (void) AF_INET6; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl_AF_INET6=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl_AF_INET6=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AF_INET6" >&5 ++echo "${ECHO_T}$ac_cv_have_decl_AF_INET6" >&6; } ++if test $ac_cv_have_decl_AF_INET6 = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_AF_INET6 1 ++_ACEOF ++ ++ ++else ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_AF_INET6 0 ++_ACEOF ++ ++ ++fi ++{ echo "$as_me:$LINENO: checking whether PF_INET6 is declared" >&5 ++echo $ECHO_N "checking whether PF_INET6 is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl_PF_INET6+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#if HAVE_SYS_SOCKET_H ++#include ++#endif ++#ifdef HAVE_NETINET_IN_H ++#include ++#endif ++ ++int ++main () ++{ ++#ifndef PF_INET6 ++ (void) PF_INET6; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl_PF_INET6=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl_PF_INET6=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PF_INET6" >&5 ++echo "${ECHO_T}$ac_cv_have_decl_PF_INET6" >&6; } ++if test $ac_cv_have_decl_PF_INET6 = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_PF_INET6 1 ++_ACEOF ++ ++ ++else ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_PF_INET6 0 ++_ACEOF ++ ++ ++fi ++ ++ ++ ++# SA_RESTART in signal.h ++{ echo "$as_me:$LINENO: checking if SA_RESTART defined in signal.h" >&5 ++echo $ECHO_N "checking if SA_RESTART defined in signal.h... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#ifdef SA_RESTART ++ yes ++#endif ++_ACEOF ++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ++ $EGREP "yes" >/dev/null 2>&1; then ++ MSG=yes VALUE=1 ++else ++ MSG=no VALUE=0 ++fi ++rm -f conftest* ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_SA_RESTART $VALUE ++_ACEOF ++ ++{ echo "$as_me:$LINENO: result: $MSG" >&5 ++echo "${ECHO_T}$MSG" >&6; } ++ ++{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 ++echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; } ++if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#if HAVE_SYS_SOCKET_H ++#include ++#endif ++ ++int ++main () ++{ ++static struct sockaddr ac_aggr; ++if (ac_aggr.sa_len) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_struct_sockaddr_sa_len=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#if HAVE_SYS_SOCKET_H ++#include ++#endif ++ ++int ++main () ++{ ++static struct sockaddr ac_aggr; ++if (sizeof ac_aggr.sa_len) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_struct_sockaddr_sa_len=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_member_struct_sockaddr_sa_len=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 ++echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } ++if test $ac_cv_member_struct_sockaddr_sa_len = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_STRUCT_SOCKADDR_SA_LEN 1 ++_ACEOF ++ ++ ++fi ++ ++ ++{ echo "$as_me:$LINENO: checking for struct dirent.d_type" >&5 ++echo $ECHO_N "checking for struct dirent.d_type... $ECHO_C" >&6; } ++if test "${ac_cv_member_struct_dirent_d_type+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++ ++int ++main () ++{ ++static struct dirent ac_aggr; ++if (ac_aggr.d_type) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_struct_dirent_d_type=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++ ++int ++main () ++{ ++static struct dirent ac_aggr; ++if (sizeof ac_aggr.d_type) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_struct_dirent_d_type=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_member_struct_dirent_d_type=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_type" >&5 ++echo "${ECHO_T}$ac_cv_member_struct_dirent_d_type" >&6; } ++if test $ac_cv_member_struct_dirent_d_type = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_STRUCT_DIRENT_D_TYPE 1 ++_ACEOF ++ ++ ++fi ++ ++ ++{ echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5 ++echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; } ++if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++static siginfo_t ac_aggr; ++if (ac_aggr.si_fd) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_siginfo_t_si_fd=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++static siginfo_t ac_aggr; ++if (sizeof ac_aggr.si_fd) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_siginfo_t_si_fd=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_member_siginfo_t_si_fd=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5 ++echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; } ++if test $ac_cv_member_siginfo_t_si_fd = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_SIGINFO_T_SI_FD 1 ++_ACEOF ++ ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for siginfo_t.si_band" >&5 ++echo $ECHO_N "checking for siginfo_t.si_band... $ECHO_C" >&6; } ++if test "${ac_cv_member_siginfo_t_si_band+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++static siginfo_t ac_aggr; ++if (ac_aggr.si_band) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_siginfo_t_si_band=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++static siginfo_t ac_aggr; ++if (sizeof ac_aggr.si_band) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_siginfo_t_si_band=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_member_siginfo_t_si_band=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_band" >&5 ++echo "${ECHO_T}$ac_cv_member_siginfo_t_si_band" >&6; } ++if test $ac_cv_member_siginfo_t_si_band = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_SIGINFO_T_SI_BAND 1 ++_ACEOF ++ ++ ++fi ++ ++ ++ ++# checkpoint results ++cat >confcache <<\_ACEOF ++# This file is a shell script that caches the results of configure ++# tests run on this system so they can be shared between configure ++# scripts and configure runs, see configure's option --config-cache. ++# It is not useful on other systems. If it contains results you don't ++# want to keep, you may remove or edit it. ++# ++# config.status only pays attention to the cache file if you give it ++# the --recheck option to rerun configure. ++# ++# `ac_cv_env_foo' variables (set or unset) will be overridden when ++# loading this file, other *unset* `ac_cv_foo' will be assigned the ++# following values. ++ ++_ACEOF ++ ++# The following way of writing the cache mishandles newlines in values, ++# but we know of no workaround that is simple, portable, and efficient. ++# So, we kill variables containing newlines. ++# Ultrix sh set writes to stderr and can't be redirected directly, ++# and sets the high bit in the cache file unless we assign to the vars. ++( ++ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do ++ eval ac_val=\$$ac_var ++ case $ac_val in #( ++ *${as_nl}*) ++ case $ac_var in #( ++ *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 ++echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; ++ esac ++ case $ac_var in #( ++ _ | IFS | as_nl) ;; #( ++ *) $as_unset $ac_var ;; ++ esac ;; ++ esac ++ done ++ ++ (set) 2>&1 | ++ case $as_nl`(ac_space=' '; set) 2>&1` in #( ++ *${as_nl}ac_space=\ *) ++ # `set' does not quote correctly, so add quotes (double-quote ++ # substitution turns \\\\ into \\, and sed turns \\ into \). ++ sed -n \ ++ "s/'/'\\\\''/g; ++ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ++ ;; #( ++ *) ++ # `set' quotes correctly as required by POSIX, so do not add quotes. ++ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ++ ;; ++ esac | ++ sort ++) | ++ sed ' ++ /^ac_cv_env_/b end ++ t clear ++ :clear ++ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ ++ t end ++ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ ++ :end' >>confcache ++if diff "$cache_file" confcache >/dev/null 2>&1; then :; else ++ if test -w "$cache_file"; then ++ test "x$cache_file" != "x/dev/null" && ++ { echo "$as_me:$LINENO: updating cache $cache_file" >&5 ++echo "$as_me: updating cache $cache_file" >&6;} ++ cat confcache >$cache_file ++ else ++ { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 ++echo "$as_me: not updating unwritable cache $cache_file" >&6;} ++ fi ++fi ++rm -f confcache ++ ++ ++################################## ++# Libraries ++################################## ++ ++ompi_show_title "Library and Function tests" ++ ++ ++{ echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 ++echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; } ++if test "${ac_cv_lib_util_openpty+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lutil $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char openpty (); ++int ++main () ++{ ++return openpty (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_util_openpty=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_util_openpty=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 ++echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; } ++if test $ac_cv_lib_util_openpty = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_LIBUTIL 1 ++_ACEOF ++ ++ LIBS="-lutil $LIBS" ++ ++fi ++ ++ ++ ++{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 ++echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } ++if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lnsl $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char gethostbyname (); ++int ++main () ++{ ++return gethostbyname (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_nsl_gethostbyname=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_nsl_gethostbyname=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 ++echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } ++if test $ac_cv_lib_nsl_gethostbyname = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_LIBNSL 1 ++_ACEOF ++ ++ LIBS="-lnsl $LIBS" ++ ++fi ++ ++ ++ ++{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 ++echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } ++if test "${ac_cv_lib_socket_socket+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lsocket $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char socket (); ++int ++main () ++{ ++return socket (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_socket_socket=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_socket_socket=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 ++echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } ++if test $ac_cv_lib_socket_socket = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_LIBSOCKET 1 ++_ACEOF ++ ++ LIBS="-lsocket $LIBS" ++ ++fi ++ ++ ++# Solaris has sched_yeild in -lrt, usually in libc ++ ++ { echo "$as_me:$LINENO: checking if we need -lrt for sched_yield" >&5 ++echo $ECHO_N "checking if we need -lrt for sched_yield... $ECHO_C" >&6; } ++if test "${ompi_cv_func_lib_sched_yield_rt+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define sched_yield to an innocuous variant, in case declares sched_yield. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define sched_yield innocuous_sched_yield ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char sched_yield (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef sched_yield ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char sched_yield (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_sched_yield || defined __stub___sched_yield ++choke me ++#endif ++ ++int ++main () ++{ ++return sched_yield (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_lib_sched_yield_rt="no" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ LIBS_save="$LIBS" ++ LIBS="$LIBS -lrt" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define sched_yield to an innocuous variant, in case declares sched_yield. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define sched_yield innocuous_sched_yield ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char sched_yield (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef sched_yield ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char sched_yield (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_sched_yield || defined __stub___sched_yield ++choke me ++#endif ++ ++int ++main () ++{ ++return sched_yield (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_lib_sched_yield_rt="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_lib_sched_yield_rt="not found" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LIBS="$LIBS_save" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_lib_sched_yield_rt" >&5 ++echo "${ECHO_T}$ompi_cv_func_lib_sched_yield_rt" >&6; } ++ if test "$ompi_cv_func_lib_sched_yield_rt" = "yes"; then ++ LIBS="$LIBS -lrt" ++fi ++ ++ ++ # see if we actually have sched_yield. Use AC_CHECK_FUNCS so that it ++ # does the glibc "not implemented" check. Will use the current LIBS, ++ # so will check in -lrt if we decided we needed it above ++ ++for ac_func in sched_yield ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ ++ ++# IRIX has dirname in -lgen, usually in libc ++ ++ { echo "$as_me:$LINENO: checking if we need -lgen for dirname" >&5 ++echo $ECHO_N "checking if we need -lgen for dirname... $ECHO_C" >&6; } ++if test "${ompi_cv_func_lib_dirname_gen+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define dirname to an innocuous variant, in case declares dirname. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define dirname innocuous_dirname ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char dirname (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef dirname ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dirname (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_dirname || defined __stub___dirname ++choke me ++#endif ++ ++int ++main () ++{ ++return dirname (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_lib_dirname_gen="no" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ LIBS_save="$LIBS" ++ LIBS="$LIBS -lgen" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define dirname to an innocuous variant, in case declares dirname. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define dirname innocuous_dirname ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char dirname (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef dirname ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dirname (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_dirname || defined __stub___dirname ++choke me ++#endif ++ ++int ++main () ++{ ++return dirname (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_lib_dirname_gen="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_lib_dirname_gen="not found" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LIBS="$LIBS_save" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_lib_dirname_gen" >&5 ++echo "${ECHO_T}$ompi_cv_func_lib_dirname_gen" >&6; } ++ if test "$ompi_cv_func_lib_dirname_gen" = "yes"; then ++ LIBS="$LIBS -lgen" ++fi ++ ++ ++ # see if we actually have dirname. Use AC_CHECK_FUNCS so that it ++ # does the glibc "not implemented" check. Will use the current LIBS, ++ # so will check in -lgen if we decided we needed it above ++ ++for ac_func in dirname ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ ++ ++# Darwin doesn't need -lm, as it's a symlink to libSystem.dylib ++ ++ { echo "$as_me:$LINENO: checking if we need -lm for ceil" >&5 ++echo $ECHO_N "checking if we need -lm for ceil... $ECHO_C" >&6; } ++if test "${ompi_cv_func_lib_ceil_m+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define ceil to an innocuous variant, in case declares ceil. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define ceil innocuous_ceil ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char ceil (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef ceil ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ceil (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_ceil || defined __stub___ceil ++choke me ++#endif ++ ++int ++main () ++{ ++return ceil (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_lib_ceil_m="no" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ LIBS_save="$LIBS" ++ LIBS="$LIBS -lm" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define ceil to an innocuous variant, in case declares ceil. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define ceil innocuous_ceil ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char ceil (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef ceil ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ceil (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_ceil || defined __stub___ceil ++choke me ++#endif ++ ++int ++main () ++{ ++return ceil (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_lib_ceil_m="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_lib_ceil_m="not found" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LIBS="$LIBS_save" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_lib_ceil_m" >&5 ++echo "${ECHO_T}$ompi_cv_func_lib_ceil_m" >&6; } ++ if test "$ompi_cv_func_lib_ceil_m" = "yes"; then ++ LIBS="$LIBS -lm" ++fi ++ ++ ++ # see if we actually have ceil. Use AC_CHECK_FUNCS so that it ++ # does the glibc "not implemented" check. Will use the current LIBS, ++ # so will check in -lm if we decided we needed it above ++ ++for ac_func in ceil ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++for ac_func in asprintf snprintf vasprintf vsnprintf openpty isatty getpwuid fork waitpid execve pipe ptsname setsid mmap mallopt tcgetpgrp posix_memalign strsignal sysconf syslog regcmp regexec regfree _NSGetEnviron socketpair strncpy_s _strdup usleep mkfifo ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ ++# On some hosts, htonl is a define, so the AC_CHECK_FUNC will get ++# confused. On others, it's in the standard library, but stubbed with ++# the magic glibc foo as not implemented. and on other systems, it's ++# just not there. This covers all cases. ++{ echo "$as_me:$LINENO: checking for htonl define" >&5 ++echo $ECHO_N "checking for htonl define... $ECHO_C" >&6; } ++if test "${ompi_cv_htonl_define+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#ifdef HAVE_SYS_TYPES_H ++#include ++#endif ++#ifdef HAVE_NETINET_IN_H ++#include ++#endif ++#ifdef HAVE_ARPA_INET_H ++#include ++#endif ++int ++main () ++{ ++ ++#ifndef ntohl ++#error "ntohl not defined" ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ompi_cv_htonl_define=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_htonl_define=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_htonl_define" >&5 ++echo "${ECHO_T}$ompi_cv_htonl_define" >&6; } ++{ echo "$as_me:$LINENO: checking for htonl" >&5 ++echo $ECHO_N "checking for htonl... $ECHO_C" >&6; } ++if test "${ac_cv_func_htonl+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define htonl to an innocuous variant, in case declares htonl. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define htonl innocuous_htonl ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char htonl (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef htonl ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char htonl (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_htonl || defined __stub___htonl ++choke me ++#endif ++ ++int ++main () ++{ ++return htonl (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_htonl=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_htonl=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_htonl" >&5 ++echo "${ECHO_T}$ac_cv_func_htonl" >&6; } ++if test $ac_cv_func_htonl = yes; then ++ ompi_have_htonl=yes ++else ++ ompi_have_htonl=no ++fi ++ ++if test "$ompi_cv_htonl_define" = "yes" -o "$ompi_have_htonl" = "yes"; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_UNIX_BYTESWAP 1 ++_ACEOF ++ ++fi ++ ++ ++# ++# Make sure we can copy va_lists (need check declared, not linkable) ++# ++ ++{ echo "$as_me:$LINENO: checking whether va_copy is declared" >&5 ++echo $ECHO_N "checking whether va_copy is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl_va_copy+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++#ifndef va_copy ++ (void) va_copy; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl_va_copy=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl_va_copy=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_va_copy" >&5 ++echo "${ECHO_T}$ac_cv_have_decl_va_copy" >&6; } ++if test $ac_cv_have_decl_va_copy = yes; then ++ OMPI_HAVE_VA_COPY=1 ++else ++ OMPI_HAVE_VA_COPY=0 ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_VA_COPY $OMPI_HAVE_VA_COPY ++_ACEOF ++ ++ ++{ echo "$as_me:$LINENO: checking whether __va_copy is declared" >&5 ++echo $ECHO_N "checking whether __va_copy is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl___va_copy+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++#ifndef __va_copy ++ (void) __va_copy; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl___va_copy=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl___va_copy=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___va_copy" >&5 ++echo "${ECHO_T}$ac_cv_have_decl___va_copy" >&6; } ++if test $ac_cv_have_decl___va_copy = yes; then ++ OMPI_HAVE_UNDERSCORE_VA_COPY=1 ++else ++ OMPI_HAVE_UNDERSCORE_VA_COPY=0 ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_UNDERSCORE_VA_COPY $OMPI_HAVE_UNDERSCORE_VA_COPY ++_ACEOF ++ ++ ++{ echo "$as_me:$LINENO: checking whether __func__ is declared" >&5 ++echo $ECHO_N "checking whether __func__ is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl___func__+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++int ++main () ++{ ++#ifndef __func__ ++ (void) __func__; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl___func__=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl___func__=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___func__" >&5 ++echo "${ECHO_T}$ac_cv_have_decl___func__" >&6; } ++if test $ac_cv_have_decl___func__ = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL___FUNC__ 1 ++_ACEOF ++ ++ ++else ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL___FUNC__ 0 ++_ACEOF ++ ++ ++fi ++ ++ ++ ++# checkpoint results ++cat >confcache <<\_ACEOF ++# This file is a shell script that caches the results of configure ++# tests run on this system so they can be shared between configure ++# scripts and configure runs, see configure's option --config-cache. ++# It is not useful on other systems. If it contains results you don't ++# want to keep, you may remove or edit it. ++# ++# config.status only pays attention to the cache file if you give it ++# the --recheck option to rerun configure. ++# ++# `ac_cv_env_foo' variables (set or unset) will be overridden when ++# loading this file, other *unset* `ac_cv_foo' will be assigned the ++# following values. ++ ++_ACEOF ++ ++# The following way of writing the cache mishandles newlines in values, ++# but we know of no workaround that is simple, portable, and efficient. ++# So, we kill variables containing newlines. ++# Ultrix sh set writes to stderr and can't be redirected directly, ++# and sets the high bit in the cache file unless we assign to the vars. ++( ++ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do ++ eval ac_val=\$$ac_var ++ case $ac_val in #( ++ *${as_nl}*) ++ case $ac_var in #( ++ *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 ++echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; ++ esac ++ case $ac_var in #( ++ _ | IFS | as_nl) ;; #( ++ *) $as_unset $ac_var ;; ++ esac ;; ++ esac ++ done ++ ++ (set) 2>&1 | ++ case $as_nl`(ac_space=' '; set) 2>&1` in #( ++ *${as_nl}ac_space=\ *) ++ # `set' does not quote correctly, so add quotes (double-quote ++ # substitution turns \\\\ into \\, and sed turns \\ into \). ++ sed -n \ ++ "s/'/'\\\\''/g; ++ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ++ ;; #( ++ *) ++ # `set' quotes correctly as required by POSIX, so do not add quotes. ++ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ++ ;; ++ esac | ++ sort ++) | ++ sed ' ++ /^ac_cv_env_/b end ++ t clear ++ :clear ++ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ ++ t end ++ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ ++ :end' >>confcache ++if diff "$cache_file" confcache >/dev/null 2>&1; then :; else ++ if test -w "$cache_file"; then ++ test "x$cache_file" != "x/dev/null" && ++ { echo "$as_me:$LINENO: updating cache $cache_file" >&5 ++echo "$as_me: updating cache $cache_file" >&6;} ++ cat confcache >$cache_file ++ else ++ { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 ++echo "$as_me: not updating unwritable cache $cache_file" >&6;} ++ fi ++fi ++rm -f confcache ++ ++ ++################################## ++# System-specific tests ++################################## ++ ++ompi_show_title "System-specific tests" ++ ++# ++# Test to determine type of MPI_Offset. This is searched in the following order ++# int64_t, long long, long, int. If none of these are 8 bytes, then we should ++# search for int32_t, long long, long, int. ++# ++MPI_OFFSET_TYPE="not found" ++MPI_OFFSET_DATATYPE="not found" ++{ echo "$as_me:$LINENO: checking checking for type of MPI_Offset" >&5 ++echo $ECHO_N "checking checking for type of MPI_Offset... $ECHO_C" >&6; } ++if test "$ac_cv_type_long_long" = "yes" -a "$ac_cv_sizeof_long_long" = 8; then ++ MPI_OFFSET_TYPE="long long" ++ MPI_OFFSET_DATATYPE=MPI_LONG_LONG ++ MPI_OFFSET_SIZE=8 ++elif test "$ac_cv_type_long" = "yes" -a "$ac_cv_sizeof_long" = 8; then ++ MPI_OFFSET_TYPE="long" ++ MPI_OFFSET_DATATYPE=MPI_LONG ++ MPI_OFFSET_SIZE=8 ++elif test "ac_cv_sizeof_int" = 8; then ++ MPI_OFFSET_TYPE=int ++ MPI_OFFSET_DATATYPE=MPI_INT ++ MPI_OFFSET_SIZE=8 ++elif test "$ac_cv_type_long_long" = "yes" -a "$ac_cv_sizeof_long_long" = 4; then ++ MPI_OFFSET_TYPE="long long" ++ MPI_OFFSET_DATATYPE=MPI_LONG_LONG ++ MPI_OFFSET_SIZE=4 ++elif test "$ac_cv_type_long" = "yes" -a "$ac_cv_sizeof_long" = 4; then ++ MPI_OFFSET_TYPE="long" ++ MPI_OFFSET_DATATYPE=MPI_LONG ++ MPI_OFFSET_SIZE=4 ++elif test "ac_cv_sizeof_int" = 4; then ++ MPI_OFFSET_TYPE=int ++ MPI_OFFSET_DATATYPE=MPI_INT ++ MPI_OFFSET_SIZE=4 ++fi ++{ echo "$as_me:$LINENO: result: $MPI_OFFSET_TYPE" >&5 ++echo "${ECHO_T}$MPI_OFFSET_TYPE" >&6; } ++if test "$MPI_OFFSET_TYPE" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Unable to find the right definition for MPI_Offset" >&5 ++echo "$as_me: WARNING: *** Unable to find the right definition for MPI_Offset" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_MPI_OFFSET_TYPE $MPI_OFFSET_TYPE ++_ACEOF ++ ++ ++# ++# Check for MPI_Aint type. Yes, there are platforms where ++# sizeof(void*) != sizeof(long) (64 bit Windows, apparently). ++# ++if test $ac_cv_type_ptrdiff_t = yes ; then ++ ompi_ptrdiff_t="ptrdiff_t" ++elif test $ac_cv_sizeof_void_p -eq $ac_cv_sizeof_long ; then ++ ompi_ptrdiff_t="long" ++elif test $ac_cv_type_long_long = yes -a $ac_cv_sizeof_void_p -eq $ac_cv_sizeof_long_long ; then ++ ompi_ptrdiff_t="long long" ++else ++ { { echo "$as_me:$LINENO: error: Could not find datatype to emulate ptrdiff_t. Cannot continue" >&5 ++echo "$as_me: error: Could not find datatype to emulate ptrdiff_t. Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PTRDIFF_TYPE $ompi_ptrdiff_t ++_ACEOF ++ ++ ++# ++# If we haven't already, figure out an MPI datatype that corresponds ++# to the back-end C type of MPI_Offset. ++# ++{ echo "$as_me:$LINENO: checking checking for an MPI datatype for MPI_Offset" >&5 ++echo $ECHO_N "checking checking for an MPI datatype for MPI_Offset... $ECHO_C" >&6; } ++{ echo "$as_me:$LINENO: result: $MPI_OFFSET_DATATYPE" >&5 ++echo "${ECHO_T}$MPI_OFFSET_DATATYPE" >&6; } ++if test "$MPI_OFFSET_DATATYPE" = "not found"; then ++ { echo "$as_me:$LINENO: WARNING: *** Unable to find an MPI datatype corresponding to MPI_Offset" >&5 ++echo "$as_me: WARNING: *** Unable to find an MPI datatype corresponding to MPI_Offset" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_OFFSET_DATATYPE $MPI_OFFSET_DATATYPE ++_ACEOF ++ ++ ++# Do we have _SC_NPROCESSORS_ONLN? (only going to pass if we also have ++# and sysconf(), which is ok) OS X 10.4 has and ++# sysconf(), but does not have _SC_NPROCESSORS_ONLN. Doh! ++ ++{ echo "$as_me:$LINENO: checking for _SC_NPROCESSORS_ONLN" >&5 ++echo $ECHO_N "checking for _SC_NPROCESSORS_ONLN... $ECHO_C" >&6; } ++if test "${ompi_cv_have__SC_NPROCESSORS_ONLN+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++$ac_includes_default ++#include ++ ++int ++main () ++{ ++int i = _SC_NPROCESSORS_ONLN; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_have__SC_NPROCESSORS_ONLN="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_have__SC_NPROCESSORS_ONLN="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_have__SC_NPROCESSORS_ONLN" >&5 ++echo "${ECHO_T}$ompi_cv_have__SC_NPROCESSORS_ONLN" >&6; } ++if test "$ompi_cv_have__SC_NPROCESSORS_ONLN" = "yes"; then ++ result=1 ++else ++ result=0 ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_HAVE__SC_NPROCESSORS_ONLN $result ++_ACEOF ++ ++ ++# all: endian ++ ++{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 ++echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } ++if test "${ac_cv_c_bigendian+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # See if sys/param.h defines the BYTE_ORDER macro. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++ ++int ++main () ++{ ++#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ ++ && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) ++ bogus endian macros ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ # It does; now see whether it defined to BIG_ENDIAN or not. ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++ ++int ++main () ++{ ++#if BYTE_ORDER != BIG_ENDIAN ++ not big endian ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_c_bigendian=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_c_bigendian=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # It does not; compile a test program. ++if test "$cross_compiling" = yes; then ++ # try to guess the endianness by grepping values into an object file ++ ac_cv_c_bigendian=unknown ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; ++short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; ++void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } ++short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; ++short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; ++void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } ++int ++main () ++{ ++ _ascii (); _ebcdic (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then ++ ac_cv_c_bigendian=yes ++fi ++if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then ++ if test "$ac_cv_c_bigendian" = unknown; then ++ ac_cv_c_bigendian=no ++ else ++ # finding both strings is unlikely to happen, but who knows? ++ ac_cv_c_bigendian=unknown ++ fi ++fi ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++int ++main () ++{ ++ ++ /* Are we little or big endian? From Harbison&Steele. */ ++ union ++ { ++ long int l; ++ char c[sizeof (long int)]; ++ } u; ++ u.l = 1; ++ return u.c[sizeof (long int) - 1] == 1; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_c_bigendian=no ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++ac_cv_c_bigendian=yes ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 ++echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } ++case $ac_cv_c_bigendian in ++ yes) ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define WORDS_BIGENDIAN 1 ++_ACEOF ++ ;; ++ no) ++ ;; ++ *) ++ { { echo "$as_me:$LINENO: error: unknown endianness ++presetting ac_cv_c_bigendian=no (or yes) will help" >&5 ++echo "$as_me: error: unknown endianness ++presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} ++ { (exit 1); exit 1; }; } ;; ++esac ++ ++ ++ ++ ++# Check whether --with-broken-qsort was given. ++if test "${with_broken_qsort+set}" = set; then ++ withval=$with_broken_qsort; ++fi ++ ++ { echo "$as_me:$LINENO: checking for broken qsort" >&5 ++echo $ECHO_N "checking for broken qsort... $ECHO_C" >&6; } ++ ++ if test "$with_broken_qsort" = "yes"; then ++ result="yes" ++ define_result=1 ++ else ++ result="no" ++ define_result=0 ++ fi ++ { echo "$as_me:$LINENO: result: $result" >&5 ++echo "${ECHO_T}$result" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_BROKEN_QSORT $define_result ++_ACEOF ++ ++ ++ ++{ echo "$as_me:$LINENO: checking if word-sized integers must be word-size aligned" >&5 ++echo $ECHO_N "checking if word-sized integers must be word-size aligned... $ECHO_C" >&6; } ++if test "${ompi_cv_c_word_size_align+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$cross_compiling" = yes; then ++ ompi_cv_c_word_size_align=yes ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ long data[2] = {0, 0}; ++ long *lp; ++ int *ip; ++ ip = (int*) data; ++ ip++; ++ lp = (long*) ip; ++ return lp[0]; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ompi_cv_c_word_size_align=no ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++ompi_cv_c_word_size_align=yes ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_word_size_align" >&5 ++echo "${ECHO_T}$ompi_cv_c_word_size_align" >&6; } ++if test $ompi_cv_c_word_size_align = yes; then ++ results=1 ++else ++ results=0 ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ALIGN_WORD_SIZE_INTEGERS $results ++_ACEOF ++ ++ ++# all: SYSV semaphores ++# all: SYSV shared memory ++# all: size of FD_SET ++# all: sizeof struct stat members ++# all: type of getsockopt optlen ++# all: type of recvfrom optlen ++ ++# ++# Check out what thread support we have ++# ++ ++ ++# ++# Arguments: none ++# ++# Dependencies: None ++# ++# Modifies: ++# none - see called tests ++# ++# configure threads ++# ++ ++# create templates ++ ++ ++ ++ ++ ++# ++# Check for thread types - add your type here... ++# ++ ++ ++ ++ompi_pthread_c_success=0 ++ompi_pthread_f77_success=0 ++ompi_pthread_cxx_success=0 ++ ++orig_CFLAGS="$CFLAGS" ++orig_FFLAGS="$FFLAGS" ++orig_CXXFLAGS="$CXXFLAGS" ++orig_CPPFLAGS="$CPPFLAGS" ++orig_CXXCPPFLAGS="$CXXCPPFLAGS" ++orig_LDFLAGS="$LDFLAGS" ++orig_LIBS="$LIBS" ++ ++PTRHEAD_CFLAGS= ++PTHREAD_FFLAGS= ++PTHREAD_CXXFLAGS= ++PTHREAD_CPPFLAGS= ++PTHREAD_CXXCPPFLAGS= ++PTHREAD_LDFLAGS= ++PTHREAD_LIBS= ++ ++# Try with the basics, mam. ++ ++# BEGIN: OMPI_INTL_POSIX_THREADS_PLAIN ++# ++# Check if can compile without any special flags ++# we throw -D_REENTRANT or -D_THREAD_SAFE in here, just in ++# case. Some systems (OS X, for example) generally don't need ++# the defines, but then will on one system header here or there ++# why take chances? ++# ++ ++# Only run C++ and Fortran if those compilers already configured ++ ++# ++# C compiler ++# ++if test "$ompi_pthread_c_success" = "0"; then ++ { echo "$as_me:$LINENO: checking if C compiler and POSIX threads work as is" >&5 ++echo $ECHO_N "checking if C compiler and POSIX threads work as is... $ECHO_C" >&6; } ++ if test "$HAVE_POSIX_THREADS" = "1" ; then ++ run_this_test=1 ++ else ++ case "${host_cpu}-${host_os}" in ++ *solaris*) ++ { echo "$as_me:$LINENO: result: no - Solaris, not checked" >&5 ++echo "${ECHO_T}no - Solaris, not checked" >&6; } ++ run_this_test=0 ++ ;; ++ *-aix* | *-freebsd*) ++ if test "`echo $CPPFLAGS | $GREP 'D_THREAD_SAFE'`" = ""; then ++ PTRHEAD_CPPFLAGS="-D_THREAD_SAFE" ++ CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS" ++ fi ++ run_this_test=1 ++ ;; ++ *) ++ if test "`echo $CPPFLAGS | $GREP 'D_REENTRANT'`" = ""; then ++ PTHREAD_CPPFLAGS="-D_REENTRANT" ++ CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS" ++ fi ++ run_this_test=1 ++ ;; ++ esac ++ fi ++ ++ if test "$run_this_test" = "1" ; then ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK ++# ++# Make sure that we can run a small application in C or C++, which ++# ever is the current language. Do make sure that C or C++ is the ++# current language. ++# ++# As long as this is not being run.... ++# pthread_t may be anything from an int to a struct -- init with self-tid. ++# ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++pthread_t th=pthread_self(); pthread_join(th, 0); ++ pthread_attr_init(0); pthread_cleanup_push(0, 0); ++ pthread_create(0,0,0,0); pthread_cleanup_pop(0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_pthread_c_success=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_pthread_c_success=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++# END: OMPI_INTL_PTHREAD_TRY_LINK ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_pthread_c_success" = "1"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ PTHREAD_CPPFLAGS= ++ CPPFLAGS="$orig_CPPFLAGS" ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ fi ++fi ++ ++ ++ ++# ++# C++ compiler ++# ++if test "$ompi_pthread_cxx_success" = "0"; then ++ { echo "$as_me:$LINENO: checking if C++ compiler and POSIX threads work as is" >&5 ++echo $ECHO_N "checking if C++ compiler and POSIX threads work as is... $ECHO_C" >&6; } ++ if test "$HAVE_POSIX_THREADS" = "1" ; then ++ run_this_test=1 ++ else ++ case "${host_cpu}-${host_os}" in ++ *solaris*) ++ { echo "$as_me:$LINENO: result: no - Solaris, not checked" >&5 ++echo "${ECHO_T}no - Solaris, not checked" >&6; } ++ run_this_test=0 ++ ;; ++ *-aix* | *-freebsd*) ++ if test "`echo $CXXCPPFLAGS | $GREP 'D_THREAD_SAFE'`" = ""; then ++ PTRHEAD_CXXCPPFLAGS="-D_THREAD_SAFE" ++ CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS" ++ fi ++ run_this_test=1 ++ ;; ++ *) ++ if test "`echo $CXXCPPFLAGS | $GREP 'D_REENTRANT'`" = ""; then ++ PTHREAD_CXXCPPFLAGS="-D_REENTRANT" ++ CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS" ++ fi ++ run_this_test=1 ++ ;; ++ esac ++ fi ++ ++ if test "$run_this_test" = "1" ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK ++# ++# Make sure that we can run a small application in C or C++, which ++# ever is the current language. Do make sure that C or C++ is the ++# current language. ++# ++# As long as this is not being run.... ++# pthread_t may be anything from an int to a struct -- init with self-tid. ++# ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++pthread_t th=pthread_self(); pthread_join(th, 0); ++ pthread_attr_init(0); pthread_cleanup_push(0, 0); ++ pthread_create(0,0,0,0); pthread_cleanup_pop(0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_pthread_cxx_success=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_pthread_cxx_success=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++# END: OMPI_INTL_PTHREAD_TRY_LINK ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_pthread_cxx_success" = "1"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ PTHREAD_CXXCPPFLAGS= ++ CXXCPPFLAGS="$orig_CXXCPPFLAGS" ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ fi ++fi ++ ++ ++ ++# ++# Fortran compiler ++# ++if test "$ompi_pthread_f77_success" = "0" -a "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ { echo "$as_me:$LINENO: checking if F77 compiler and POSIX threads work as is" >&5 ++echo $ECHO_N "checking if F77 compiler and POSIX threads work as is... $ECHO_C" >&6; } ++ if test "$HAVE_POSIX_THREADS" = "1" ; then ++ run_this_test=1 ++ else ++ case "${host_cpu}-${host_os}" in ++ *solaris*) ++ { echo "$as_me:$LINENO: result: no - Solaris, not checked" >&5 ++echo "${ECHO_T}no - Solaris, not checked" >&6; } ++ run_this_test=0 ++ ;; ++ *) ++ run_this_test=1 ++ ;; ++ esac ++ fi ++ ++ if test "$run_this_test" = "1" ; then ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK_F77 ++# ++# Make sure that we can run a small application in Fortran, with ++# pthreads living in a C object file ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo pthreadtest | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_thread_fn=pthreadtest__ ++ else ++ ompi_ac_thread_fn=pthreadtest_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_thread_fn=pthreadtest_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_thread_fn=pthreadtest ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_thread_fn=pthreadtest ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_thread_fn=PTHREADTEST ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ ++# Fortran module ++cat > conftestf.f < conftest.c < ++#include ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_thread_fn() ++{ ++ pthread_t th; ++ pthread_create(&th, NULL, NULL, NULL); ++ pthread_join(th, 0); ++ pthread_attr_init(0); ++ pthread_cleanup_push(0, 0); ++ pthread_create(0,0,0,0); ++ pthread_cleanup_pop(0); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++# Try the compile ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ HAPPY=1 ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++ ++if test "$HAPPY" = "1"; then ++ ompi_pthread_f77_success=1 ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the C program:" >&5 ++else ++ echo here is the C program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ if test -f conftest.h; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is contest.h:" >&5 ++else ++ echo here is contest.h: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.h" -a -f "conftest.h"; then ++ cat conftest.h >&5 ++fi ++ fi ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran program:" >&5 ++else ++ echo here is the fortran program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f" -a -f "conftestf.f"; then ++ cat conftestf.f >&5 ++fi ++ ompi_pthread_f77_success=0 ++fi ++ ++unset HAPPY ompi_conftest_h ++rm -rf conftest* ++# END: OMPI_INTL_PTHREAD_TRY_LINK_F77 ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_pthread_f77_success" = "1"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ fi ++fi ++ ++ ++# End: OMPI_INTL_POSIX_THREADS_PLAIN ++ ++ ++# Try the super-special compiler flags. ++ ++# Begin: OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS ++# ++# If above didn't work, try some super-special compiler flags ++# that get evaluated to the "right" things. ++# ++# -Kthread: ++# -kthread: FreeBSD kernel threads ++# -pthread: Modern GCC (most all platforms) ++# -pthreads: GCC on solaris ++# -mthreads: ++# -mt: Solaris native compilers / HP-UX aCC ++# ++# Put -mt before -mthreads because HP-UX aCC will properly compile ++# with -mthreads (reading as -mt), but emit a warning about unknown ++# flags hreads. Stupid compilers. ++ ++case "${host_cpu}-${host_os}" in ++ *solaris*) ++ pflags="-pthread -pthreads -mt" ++ ;; ++ *) ++ pflags="-Kthread -kthread -pthread -pthreads -mt -mthreads" ++ ;; ++esac ++ ++# Only run C++ and Fortran if those compilers already configured ++ ++# ++# C compiler ++# ++if test "$ompi_pthread_c_success" = "0"; then ++ for pf in $pflags; do ++ { echo "$as_me:$LINENO: checking if C compiler and POSIX threads work with $pf" >&5 ++echo $ECHO_N "checking if C compiler and POSIX threads work with $pf... $ECHO_C" >&6; } ++ CFLAGS="$orig_CFLAGS $pf" ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK ++# ++# Make sure that we can run a small application in C or C++, which ++# ever is the current language. Do make sure that C or C++ is the ++# current language. ++# ++# As long as this is not being run.... ++# pthread_t may be anything from an int to a struct -- init with self-tid. ++# ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++pthread_t th=pthread_self(); pthread_join(th, 0); ++ pthread_attr_init(0); pthread_cleanup_push(0, 0); ++ pthread_create(0,0,0,0); pthread_cleanup_pop(0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_pthread_c_success=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_pthread_c_success=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++# END: OMPI_INTL_PTHREAD_TRY_LINK ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_pthread_c_success" = "1"; then ++ PTHREAD_CFLAGS="$pf" ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ break ++ else ++ PTHREAD_CFLAGS= ++ CFLAGS="$orig_CFLAGS" ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ done ++fi ++ ++ ++ ++# ++# C++ compiler ++# ++if test "$ompi_pthread_cxx_success" = "0"; then ++ for pf in $pflags; do ++ { echo "$as_me:$LINENO: checking if C++ compiler and POSIX threads work with $pf" >&5 ++echo $ECHO_N "checking if C++ compiler and POSIX threads work with $pf... $ECHO_C" >&6; } ++ CXXFLAGS="$orig_CXXFLAGS $pf" ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK ++# ++# Make sure that we can run a small application in C or C++, which ++# ever is the current language. Do make sure that C or C++ is the ++# current language. ++# ++# As long as this is not being run.... ++# pthread_t may be anything from an int to a struct -- init with self-tid. ++# ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++pthread_t th=pthread_self(); pthread_join(th, 0); ++ pthread_attr_init(0); pthread_cleanup_push(0, 0); ++ pthread_create(0,0,0,0); pthread_cleanup_pop(0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_pthread_cxx_success=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_pthread_cxx_success=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++# END: OMPI_INTL_PTHREAD_TRY_LINK ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_pthread_cxx_success" = "1"; then ++ PTHREAD_CXXFLAGS="$pf" ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ break ++ else ++ PTHREAD_CXXFLAGS= ++ CXXFLAGS="$orig_CXXFLAGS" ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ done ++fi ++ ++ ++ ++# ++# Fortran compiler ++# ++if test "$ompi_pthread_f77_success" = "0" -a "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ for pf in $pflags; do ++ { echo "$as_me:$LINENO: checking if F77 compiler and POSIX threads work with $pf" >&5 ++echo $ECHO_N "checking if F77 compiler and POSIX threads work with $pf... $ECHO_C" >&6; } ++ FFLAGS="$orig_FFLAGS $pf" ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK_F77 ++# ++# Make sure that we can run a small application in Fortran, with ++# pthreads living in a C object file ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo pthreadtest | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_thread_fn=pthreadtest__ ++ else ++ ompi_ac_thread_fn=pthreadtest_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_thread_fn=pthreadtest_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_thread_fn=pthreadtest ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_thread_fn=pthreadtest ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_thread_fn=PTHREADTEST ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ ++# Fortran module ++cat > conftestf.f < conftest.c < ++#include ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_thread_fn() ++{ ++ pthread_t th; ++ pthread_create(&th, NULL, NULL, NULL); ++ pthread_join(th, 0); ++ pthread_attr_init(0); ++ pthread_cleanup_push(0, 0); ++ pthread_create(0,0,0,0); ++ pthread_cleanup_pop(0); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++# Try the compile ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ HAPPY=1 ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++ ++if test "$HAPPY" = "1"; then ++ ompi_pthread_f77_success=1 ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the C program:" >&5 ++else ++ echo here is the C program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ if test -f conftest.h; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is contest.h:" >&5 ++else ++ echo here is contest.h: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.h" -a -f "conftest.h"; then ++ cat conftest.h >&5 ++fi ++ fi ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran program:" >&5 ++else ++ echo here is the fortran program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f" -a -f "conftestf.f"; then ++ cat conftestf.f >&5 ++fi ++ ompi_pthread_f77_success=0 ++fi ++ ++unset HAPPY ompi_conftest_h ++rm -rf conftest* ++# END: OMPI_INTL_PTHREAD_TRY_LINK_F77 ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_pthread_f77_success" = "1"; then ++ PTHREAD_FFLAGS="$pf" ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ break ++ else ++ PTHREAD_FFLAGS= ++ FFLAGS="$orig_FFLAGS" ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ done ++fi ++ ++ ++# End: OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS ++ ++ ++# Try the normal linking methods (that's no fun) ++ ++# Begin: OMPI_INTL_POSIX_THREADS_LIBS ++# ++# if we can't find a super-special compiler flags, try some libraries. ++# we throw -D_REENTRANT or -D_THREAD_SAFE in here, just in case. Some ++# systems (OS X, for example) generally don't need the defines, but ++# then will on one system header here or there why take chances? ++# ++# libpthreads: AIX - must check before libpthread ++# liblthread: LinuxThreads on FreeBSD ++# libpthread: The usual place (like we can define usual!) ++plibs="-lpthreads -llthread -lpthread" ++ ++# Only run C++ and Fortran if those compilers already configured ++ ++# ++# C compiler ++# ++if test "$ompi_pthread_c_success" = "0"; then ++ for pl in $plibs; do ++ { echo "$as_me:$LINENO: checking if C compiler and POSIX threads work with $pl" >&5 ++echo $ECHO_N "checking if C compiler and POSIX threads work with $pl... $ECHO_C" >&6; } ++ case "${host_cpu}-${host-_os}" in ++ *-aix* | *-freebsd*) ++ if test "`echo $CPPFLAGS | $GREP 'D_THREAD_SAFE'`" = ""; then ++ PTRHEAD_CPPFLAGS="-D_THREAD_SAFE" ++ CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS" ++ fi ++ ;; ++ *) ++ if test "`echo $CPPFLAGS | $GREP 'D_REENTRANT'`" = ""; then ++ PTHREAD_CPPFLAGS="-D_REENTRANT" ++ CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS" ++ fi ++ ;; ++ esac ++ LIBS="$orig_LIBS $pl" ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK ++# ++# Make sure that we can run a small application in C or C++, which ++# ever is the current language. Do make sure that C or C++ is the ++# current language. ++# ++# As long as this is not being run.... ++# pthread_t may be anything from an int to a struct -- init with self-tid. ++# ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++pthread_t th=pthread_self(); pthread_join(th, 0); ++ pthread_attr_init(0); pthread_cleanup_push(0, 0); ++ pthread_create(0,0,0,0); pthread_cleanup_pop(0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_pthread_c_success=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_pthread_c_success=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++# END: OMPI_INTL_PTHREAD_TRY_LINK ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_pthread_c_success" = "1"; then ++ PTHREAD_LIBS="$pl" ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ PTHREAD_CPPFLAGS= ++ CPPFLAGS="$orig_CPPFLAGS" ++ LIBS="$orig_LIBS" ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ done ++fi ++ ++ ++ ++# ++# C++ compiler ++# ++if test "$ompi_pthread_cxx_success" = "0"; then ++ if test ! "$ompi_pthread_c_success" = "0" -a ! "$PTHREAD_LIBS" = "" ; then ++ { echo "$as_me:$LINENO: checking if C++ compiler and POSIX threads work with $PTHREAD_LIBS" >&5 ++echo $ECHO_N "checking if C++ compiler and POSIX threads work with $PTHREAD_LIBS... $ECHO_C" >&6; } ++ case "${host_cpu}-${host-_os}" in ++ *-aix* | *-freebsd*) ++ if test "`echo $CXXCPPFLAGS | $GREP 'D_THREAD_SAFE'`" = ""; then ++ PTRHEAD_CXXCPPFLAGS="-D_THREAD_SAFE" ++ CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS" ++ fi ++ ;; ++ *) ++ if test "`echo $CXXCPPFLAGS | $GREP 'D_REENTRANT'`" = ""; then ++ PTHREAD_CXXCPPFLAGS="-D_REENTRANT" ++ CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS" ++ fi ++ ;; ++ esac ++ LIBS="$orig_LIBS $PTHREAD_LIBS" ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK ++# ++# Make sure that we can run a small application in C or C++, which ++# ever is the current language. Do make sure that C or C++ is the ++# current language. ++# ++# As long as this is not being run.... ++# pthread_t may be anything from an int to a struct -- init with self-tid. ++# ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++pthread_t th=pthread_self(); pthread_join(th, 0); ++ pthread_attr_init(0); pthread_cleanup_push(0, 0); ++ pthread_create(0,0,0,0); pthread_cleanup_pop(0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_pthread_cxx_success=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_pthread_cxx_success=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++# END: OMPI_INTL_PTHREAD_TRY_LINK ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_pthread_cxx_success" = "1"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ CXXCPPFLAGS="$orig_CXXCPPFLAGS" ++ LIBS="$orig_LIBS" ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not find working threads configuration. aborting" >&5 ++echo "$as_me: error: Can not find working threads configuration. aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ else ++ for pl in $plibs; do ++ { echo "$as_me:$LINENO: checking if C++ compiler and POSIX threads work with $pl" >&5 ++echo $ECHO_N "checking if C++ compiler and POSIX threads work with $pl... $ECHO_C" >&6; } ++ case "${host_cpu}-${host-_os}" in ++ *-aix* | *-freebsd*) ++ if test "`echo $CXXCPPFLAGS | $GREP 'D_THREAD_SAFE'`" = ""; then ++ PTRHEAD_CXXCPPFLAGS="-D_THREAD_SAFE" ++ CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS" ++ fi ++ ;; ++ *) ++ if test "`echo $CXXCPPFLAGS | $GREP 'D_REENTRANT'`" = ""; then ++ PTHREAD_CXXCPPFLAGS="-D_REENTRANT" ++ CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS" ++ fi ++ ;; ++ esac ++ LIBS="$orig_LIBS $pl" ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK ++# ++# Make sure that we can run a small application in C or C++, which ++# ever is the current language. Do make sure that C or C++ is the ++# current language. ++# ++# As long as this is not being run.... ++# pthread_t may be anything from an int to a struct -- init with self-tid. ++# ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++pthread_t th=pthread_self(); pthread_join(th, 0); ++ pthread_attr_init(0); pthread_cleanup_push(0, 0); ++ pthread_create(0,0,0,0); pthread_cleanup_pop(0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_pthread_cxx_success=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_pthread_cxx_success=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++# END: OMPI_INTL_PTHREAD_TRY_LINK ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_pthread_cxx_success" = "1"; then ++ PTHREAD_LIBS="$pl" ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ PTHREAD_CXXCPPFLAGS= ++ CXXCPPFLAGS="$orig_CXXCPPFLAGS" ++ LIBS="$orig_LIBS" ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ done ++ fi ++fi ++ ++ ++ ++# ++# Fortran compiler ++# ++if test "$ompi_pthread_f77_success" = "0" -a "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ if test ! "$ompi_pthread_c_success" = "0" -a ! "$PTHREAD_LIBS" = "" ; then ++ { echo "$as_me:$LINENO: checking if F77 compiler and POSIX threads work with $PTHREAD_LIBS" >&5 ++echo $ECHO_N "checking if F77 compiler and POSIX threads work with $PTHREAD_LIBS... $ECHO_C" >&6; } ++ LIBS="$orig_LIBS $PTHREAD_LIBS" ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK_F77 ++# ++# Make sure that we can run a small application in Fortran, with ++# pthreads living in a C object file ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo pthreadtest | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_thread_fn=pthreadtest__ ++ else ++ ompi_ac_thread_fn=pthreadtest_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_thread_fn=pthreadtest_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_thread_fn=pthreadtest ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_thread_fn=pthreadtest ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_thread_fn=PTHREADTEST ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ ++# Fortran module ++cat > conftestf.f < conftest.c < ++#include ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_thread_fn() ++{ ++ pthread_t th; ++ pthread_create(&th, NULL, NULL, NULL); ++ pthread_join(th, 0); ++ pthread_attr_init(0); ++ pthread_cleanup_push(0, 0); ++ pthread_create(0,0,0,0); ++ pthread_cleanup_pop(0); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++# Try the compile ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ HAPPY=1 ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++ ++if test "$HAPPY" = "1"; then ++ ompi_pthread_f77_success=1 ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the C program:" >&5 ++else ++ echo here is the C program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ if test -f conftest.h; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is contest.h:" >&5 ++else ++ echo here is contest.h: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.h" -a -f "conftest.h"; then ++ cat conftest.h >&5 ++fi ++ fi ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran program:" >&5 ++else ++ echo here is the fortran program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f" -a -f "conftestf.f"; then ++ cat conftestf.f >&5 ++fi ++ ompi_pthread_f77_success=0 ++fi ++ ++unset HAPPY ompi_conftest_h ++rm -rf conftest* ++# END: OMPI_INTL_PTHREAD_TRY_LINK_F77 ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_pthread_f77_success" = "1"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ LIBS="$orig_LIBS" ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { { echo "$as_me:$LINENO: error: Can not find working threads configuration. aborting" >&5 ++echo "$as_me: error: Can not find working threads configuration. aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ else ++ for pl in $plibs; do ++ { echo "$as_me:$LINENO: checking if F77 compiler and POSIX threads work with $pl" >&5 ++echo $ECHO_N "checking if F77 compiler and POSIX threads work with $pl... $ECHO_C" >&6; } ++ LIBS="$orig_LIBS $pl" ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK_F77 ++# ++# Make sure that we can run a small application in Fortran, with ++# pthreads living in a C object file ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo pthreadtest | $GREP _ >/dev/null 2>&1 ; then ++ ompi_ac_thread_fn=pthreadtest__ ++ else ++ ompi_ac_thread_fn=pthreadtest_ ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_ac_thread_fn=pthreadtest_ ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_ac_thread_fn=pthreadtest ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_ac_thread_fn=pthreadtest ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_ac_thread_fn=PTHREADTEST ++ else ++ { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5 ++echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ ++# Fortran module ++cat > conftestf.f < conftest.c < ++#include ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_thread_fn() ++{ ++ pthread_t th; ++ pthread_create(&th, NULL, NULL, NULL); ++ pthread_join(th, 0); ++ pthread_attr_init(0); ++ pthread_cleanup_push(0, 0); ++ pthread_create(0,0,0,0); ++ pthread_cleanup_pop(0); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++# Try the compile ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ HAPPY=1 ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++ ++if test "$HAPPY" = "1"; then ++ ompi_pthread_f77_success=1 ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the C program:" >&5 ++else ++ echo here is the C program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ if test -f conftest.h; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is contest.h:" >&5 ++else ++ echo here is contest.h: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.h" -a -f "conftest.h"; then ++ cat conftest.h >&5 ++fi ++ fi ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran program:" >&5 ++else ++ echo here is the fortran program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f" -a -f "conftestf.f"; then ++ cat conftestf.f >&5 ++fi ++ ompi_pthread_f77_success=0 ++fi ++ ++unset HAPPY ompi_conftest_h ++rm -rf conftest* ++# END: OMPI_INTL_PTHREAD_TRY_LINK_F77 ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_pthread_f77_success" = "1"; then ++ PTHREAD_LIBS="$pl" ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ break ++ else ++ LIBS="$orig_LIBS" ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ done ++ fi ++fi ++ ++ ++# End: OMPI_INTL_POSIX_THREADS_LIBS ++ ++ ++ ++# ++# check to see if we can set error checking mutexes ++# ++ ++# LinuxThreads ++{ echo "$as_me:$LINENO: checking for PTHREAD_MUTEX_ERRORCHECK_NP" >&5 ++echo $ECHO_N "checking for PTHREAD_MUTEX_ERRORCHECK_NP... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++pthread_mutexattr_settype(NULL, PTHREAD_MUTEX_ERRORCHECK_NP); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ result="yes" defval=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ result="no" defval=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $result" >&5 ++echo "${ECHO_T}$result" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_PTHREAD_MUTEX_ERRORCHECK_NP $defval ++_ACEOF ++ ++ ++# Mac OS X ++{ echo "$as_me:$LINENO: checking for PTHREAD_MUTEX_ERRORCHECK" >&5 ++echo $ECHO_N "checking for PTHREAD_MUTEX_ERRORCHECK... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++pthread_mutexattr_settype(NULL, PTHREAD_MUTEX_ERRORCHECK); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ result="yes" defval=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ result="no" defval=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $result" >&5 ++echo "${ECHO_T}$result" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_PTHREAD_MUTEX_ERRORCHECK $defval ++_ACEOF ++ ++ ++CFLAGS="$orig_CFLAGS" ++FFLAGS="$orig_FFLAGS" ++CXXFLAGS="$orig_CXXFLAGS" ++CPPFLAGS="$orig_CPPFLAGS" ++CXXCPPFLAGS="$orig_CXXCPPFLAGS" ++LDFLAGS="$orig_LDFLAGS" ++LIBS="$orig_LIBS" ++ ++if test "$OMPI_WANT_F77_BINDINGS" != "1"; then ++ ompi_pthread_f77_success=1 ++fi ++ ++if test "$ompi_pthread_c_success" = "1" -a \ ++ "$ompi_pthread_cxx_success" = "1" -a \ ++ "$ompi_pthread_f77_success" = "1"; then ++ internal_useless=1 ++ HAVE_POSIX_THREADS=1 ++else ++ internal_useless=1 ++ HAVE_POSIX_THREADS=0 ++fi ++ ++unset ompi_pthread_c_success ompi_pthread_f77_success ompi_pthread_cxx_success ++unset internal_useless ++ ++{ echo "$as_me:$LINENO: checking for working POSIX threads package" >&5 ++echo $ECHO_N "checking for working POSIX threads package... $ECHO_C" >&6; } ++if test "$HAVE_POSIX_THREADS" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++export HAVE_POSIX_THREADS ++ ++ ++ompi_sthread_c_success=0 ++ompi_sthread_f77_success=0 ++ompi_sthread_cxx_success=0 ++ ++orig_CFLAGS="$CFLAGS" ++orig_FFLAGS="$FFLAGS" ++orig_CXXFLAGS="$CXXFLAGS" ++orig_CPPFLAGS="$CPPFLAGS" ++orig_CXXCPPFLAGS="$CXXCPPFLAGS" ++orig_LDFLAGS="$LDFLAGS" ++orig_LIBS="$LIBS" ++ ++STHREAD_CFLAGS= ++STHREAD_FFLAGS= ++STHREAD_CXXFLAGS= ++STHREAD_CPPFLAGS= ++STHREAD_CXXCPPFLAGS= ++STHREAD_LDFLAGS= ++STHREAD_LIBS= ++ ++# Only run C++ and Fortran if those compilers already configured ++ ++if test "$BASECC" = "cc"; then ++ STHREAD_CFLAGS="-mt" ++ style="Workshop/Forte" ++else ++ STHREAD_CPPFLAGS="-D_REENTRANT" ++ STHREAD_LIBS="-lthread" ++ style="-lthread" ++fi ++{ echo "$as_me:$LINENO: checking if C compiler and Solaris threads work" >&5 ++echo $ECHO_N "checking if C compiler and Solaris threads work... $ECHO_C" >&6; } ++CFLAGS="$STHREAD_CFLAGS $CFLAGS_orig" ++CPPFLAGS="$STHREAD_CPPFLAGS $CPPFLAGS_orig" ++LDFLAGS="$STHREAD_LDFLAGS $LDFLAGS_orig" ++LIBS="$STHREAD_LIBS $LIBS_orig" ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_SOLARIS_TRY_LINK ++# ++# Make sure that we can run a small application in C or C++, which ++# ever is the current language. Do make sure that C or C++ is the ++# current language. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++thread_t th; thr_join(th, 0, 0); ++ thr_create(0,0,0,0,0,0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_sthread_c_success=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_sthread_c_success=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++# END: OMPI_INTL_SOLARIS_TRY_LINK ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++if test "$ompi_sthread_c_success" = "1"; then ++ { echo "$as_me:$LINENO: result: yes - $style" >&5 ++echo "${ECHO_T}yes - $style" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ ++if test "$BASECXX" = "CC"; then ++ STHREAD_CXXFLAGS="-mt" ++ style="Workshop/Forte" ++elif test "$BASECXX" = "KCC"; then ++ STHREAD_CXXFLAGS="--backend -mt" ++ style="KCC" ++else ++ STHREAD_CXXCPPFLAGS="-D_REENTRANT" ++ STHREAD_LIBS="-lthread" ++ style="-lthread" ++fi ++CXXFLAGS="$STHREAD_CXXFLAGS $CXXFLAGS_orig" ++CXXCPPFLAGS="$STHREAD_CXXPPFLAGS $CXXPPFLAGS_orig" ++LDFLAGS="$STHREAD_LDFLAGS $LDFLAGS_orig" ++LIBS="$STHREAD_LIBS $LIBS_orig" ++{ echo "$as_me:$LINENO: checking if C++ compiler and Solaris threads work" >&5 ++echo $ECHO_N "checking if C++ compiler and Solaris threads work... $ECHO_C" >&6; } ++ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_SOLARIS_TRY_LINK ++# ++# Make sure that we can run a small application in C or C++, which ++# ever is the current language. Do make sure that C or C++ is the ++# current language. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++thread_t th; thr_join(th, 0, 0); ++ thr_create(0,0,0,0,0,0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_sthread_cxx_success=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_sthread_cxx_success=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++# END: OMPI_INTL_SOLARIS_TRY_LINK ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++if test "$ompi_sthread_cxx_success" = "1"; then ++ { echo "$as_me:$LINENO: result: yes - $style" >&5 ++echo "${ECHO_T}yes - $style" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ ++if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ if test "$BASEFC" = "f77"; then ++ STHREAD_FFLAGS="-mt" ++ style="Workshop/Forte" ++ else ++ STHREAD_LIBS="-lthread" ++ style="-lthread" ++ fi ++ FFLAGS="$STHREAD_FFLAGS $FFLAGS_orig" ++ CFLAGS="$STHREAD_CFLAGS $CFLAGS_orig" ++ CPPFLAGS="$STHREAD_CPPFLAGS $CPPFLAGS_orig" ++ LDFLAGS="$STHREAD_LDFLAGS $LDFLAGS_orig" ++ LIBS="$STHREAD_LIBS $LIBS_orig" ++ { echo "$as_me:$LINENO: checking if F77 compiler and Solaris threads work" >&5 ++echo $ECHO_N "checking if F77 compiler and Solaris threads work... $ECHO_C" >&6; } ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++# BEGIN: OMPI_INTL_SOLARIS_TRY_LINK_F77 ++# ++# Make sure that we can run a small application in Fortran, with ++# pthreads living in a C object file ++ ++# Fortran module ++cat > conftestf.f < conftest.c < ++#include ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void ompi_pthread() ++{ ++ thread_t th; ++ thr_join(th, 0, 0); ++ thr_create(0,0,0,0,0,0); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++# Try the compile ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS -I. -c conftest.c" >&5 ++$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ HAPPY=1 ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++ ++if test "$HAPPY" = "1"; then ++ ompi_sthread_f77_success=1 ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the C program:" >&5 ++else ++ echo here is the C program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ if test -f conftest.h; then ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is contest.h:" >&5 ++else ++ echo here is contest.h: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.h" -a -f "conftest.h"; then ++ cat conftest.h >&5 ++fi ++ fi ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: here is the fortran program:" >&5 ++else ++ echo here is the fortran program: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftestf.f" -a -f "conftestf.f"; then ++ cat conftestf.f >&5 ++fi ++ ompi_sthread_f77_success=0 ++fi ++ ++unset HAPPY ompi_conftest_h ++rm -rf conftest* ++# END: OMPI_INTL_SOLARIS_TRY_LINK_F77 ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ if test "$ompi_sthread_f77_success" = "1"; then ++ { echo "$as_me:$LINENO: result: yes - $style" >&5 ++echo "${ECHO_T}yes - $style" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++else ++ ompi_sthread_f77_success=1 ++fi ++ ++ ++CFLAGS="$orig_CFLAGS" ++FFLAGS="$orig_FFLAGS" ++CXXFLAGS="$orig_CXXFLAGS" ++CPPFLAGS="$orig_CPPFLAGS" ++CXXCPPFLAGS="$orig_CXXCPPFLAGS" ++LDFLAGS="$orig_LDFLAGS" ++LIBS="$orig_LIBS" ++ ++if test "$ompi_sthread_c_success" = "1" -a \ ++ "$ompi_sthread_cxx_success" = "1" -a \ ++ "$ompi_sthread_f77_success" = "1"; then ++ internal_useless=1 ++ HAVE_SOLARIS_THREADS=1 ++else ++ internal_useless=1 ++ HAVE_SOLARIS_THREADS=0 ++fi ++ ++unset ompi_sthread_c_success ompi_sthread_f77_success ompi_sthread_cxx_success ++unset internal_useless ++ ++{ echo "$as_me:$LINENO: checking for working Solaris threads package" >&5 ++echo $ECHO_N "checking for working Solaris threads package... $ECHO_C" >&6; } ++if test "$HAVE_SOLARIS_THREADS" = "1" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++export HAVE_SOLARIS_THREADS ++ ++# ++# Ask what threading we want (allow solaris / posix right now) ++# ++{ echo "$as_me:$LINENO: checking for type of thread support" >&5 ++echo $ECHO_N "checking for type of thread support... $ECHO_C" >&6; } ++ ++# Check whether --with-threads was given. ++if test "${with_threads+set}" = set; then ++ withval=$with_threads; THREAD_TYPE=$withval ++fi ++ ++ ++if test "$THREAD_TYPE" = "solaris"; then ++ ++ if test "$HAVE_SOLARIS_THREADS" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: \"*** You have chosen Solaris threads, which are not\"" >&5 ++echo "$as_me: WARNING: \"*** You have chosen Solaris threads, which are not\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: \"*** available on your system \"" >&5 ++echo "$as_me: WARNING: \"*** available on your system \"" >&2;} ++ { { echo "$as_me:$LINENO: error: \"*** Can not continue\"" >&5 ++echo "$as_me: error: \"*** Can not continue\"" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++elif test "$THREAD_TYPE" = "posix"; then ++ ++ if test "$HAVE_POSIX_THREADS" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: \"*** You have chosen POSIX threads, which are not\"" >&5 ++echo "$as_me: WARNING: \"*** You have chosen POSIX threads, which are not\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: \"*** available on your system \"" >&5 ++echo "$as_me: WARNING: \"*** available on your system \"" >&2;} ++ { { echo "$as_me:$LINENO: error: \"*** Can not continue\"" >&5 ++echo "$as_me: error: \"*** Can not continue\"" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++elif test "$THREAD_TYPE" = "no"; then ++ THREAD_TYPE="none" ++elif test -z "$THREAD_TYPE" -o "$THREAD_TYPE" = "yes"; then ++ ++ # Actual logic here - properly set THREAD_TYPE - we go for system ++ # optimized where ever possible ++ case "$host" in ++ *solaris*) ++ if test "$HAVE_SOLARIS_THREADS" = "1"; then ++ THREAD_TYPE="solaris" ++ elif test "$HAVE_POSIX_THREADS" = "1"; then ++ THREAD_TYPE="posix" ++ else ++ THEAD_TYPE="none found" ++ fi ++ ;; ++ *) ++ if test "$HAVE_POSIX_THREADS" = "1"; then ++ THREAD_TYPE="posix" ++ else ++ THREAD_TYPE="none found" ++ fi ++ ;; ++ esac ++else ++ ++ { echo "$as_me:$LINENO: WARNING: \"*** You have specified a thread type that I do not\"" >&5 ++echo "$as_me: WARNING: \"*** You have specified a thread type that I do not\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: \"*** understand. Valid options are posix and solaris\"" >&5 ++echo "$as_me: WARNING: \"*** understand. Valid options are posix and solaris\"" >&2;} ++ { { echo "$as_me:$LINENO: error: \"*** Can not continue.\"" >&5 ++echo "$as_me: error: \"*** Can not continue.\"" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++{ echo "$as_me:$LINENO: result: $THREAD_TYPE" >&5 ++echo "${ECHO_T}$THREAD_TYPE" >&6; } ++ ++ ++# ++# Ok, now run the configuration for that thread package. ++# ++# Blah - this should be made better, but I don't know how... ++# ++ ++ ++ ++if test "$THREAD_TYPE" = "solaris"; then ++ cat >>confdefs.h <<\_ACEOF ++@%:@define OMPI_HAVE_SOLARIS_THREADS 1 ++_ACEOF ++ ++ cat >>confdefs.h <<\_ACEOF ++@%:@define OMPI_HAVE_POSIX_THREADS 0 ++_ACEOF ++ ++ cat >>confdefs.h <<\_ACEOF ++@%:@define OMPI_THREADS_HAVE_DIFFERENT_PIDS 0 ++_ACEOF ++ ++ ++ THREAD_CFLAGS="$STHREAD_CFLAGS" ++ THREAD_FFLAGS="$STHREAD_FFLAGS" ++ THREAD_CXXFLAGS="$STHREAD_CXXFLAGS" ++ THREAD_CPPFLAGS="$STHREAD_CPPFLAGS" ++ THREAD_CXXCPPFLAGS="$STHREAD_CXXCPPFLAGS" ++ THREAD_LDFLAGS="$STHREAD_LDFLAGS" ++ THREAD_LIBS="$STHREAD_LIBS" ++elif test "$THREAD_TYPE" = "posix"; then ++ cat >>confdefs.h <<\_ACEOF ++@%:@define OMPI_HAVE_SOLARIS_THREADS 0 ++_ACEOF ++ ++ cat >>confdefs.h <<\_ACEOF ++@%:@define OMPI_HAVE_POSIX_THREADS 1 ++_ACEOF ++ ++ ++ THREAD_CFLAGS="$PTHREAD_CFLAGS" ++ THREAD_FFLAGS="$PTHREAD_FFLAGS" ++ THREAD_CXXFLAGS="$PTHREAD_CXXFLAGS" ++ THREAD_CPPFLAGS="$PTHREAD_CPPFLAGS" ++ THREAD_CXXCPPFLAGS="$PTHREAD_CXXCPPFLAGS" ++ THREAD_LDFLAGS="$PTHREAD_LDFLAGS" ++ THREAD_LIBS="$PTHREAD_LIBS" ++ ++ ++# ++# Arguments: none ++# ++# Dependencies: None ++# ++# Sets: ++# OMPI_THREADS_HAVE_DIFFERENT_PIDS (variable) ++# ++# Test for Linux-like threads in the system. We will need to handle things like ++# getpid() differently in the case of a Linux-like threads model. ++# ++ ++{ echo "$as_me:$LINENO: checking if threads have different pids (pthreads on linux)" >&5 ++echo $ECHO_N "checking if threads have different pids (pthreads on linux)... $ECHO_C" >&6; } ++CFLAGS_save="$CFLAGS" ++CFLAGS="$CFLAGS $THREAD_CFLAGS" ++CPPFLAGS_save="$CPPFLAGS" ++CPPFLAGS="$CPPFLAGS $THREAD_CPPFLAGS" ++LDFLAGS_save="$LDFLAGS" ++LDFLAGS="$LDFLAGS $THREAD_LDFLAGS" ++LIBS_save="$LIBS" ++LIBS="$LIBS $THREAD_LIBS" ++if test "$cross_compiling" = yes; then ++ case $host in ++ *-linux*) ++ MSG="cross compiling - assuming yes" ++ OMPI_THREADS_HAVE_DIFFERENT_PIDS=1 ++ ;; ++ *) ++ MSG="cross compiling - assuming no" ++ OMPI_THREADS_HAVE_DIFFERENT_PIDS=0 ++ ;; ++ esac ++ ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++#include ++#include ++void *checkpid(void *arg); ++int main() { ++ pthread_t thr; ++ int pid, *retval; ++ pid = getpid(); ++ pthread_create(&thr, NULL, checkpid, &pid); ++ pthread_join(thr, (void **) &retval); ++ exit(*retval); ++} ++static int ret; ++void *checkpid(void *arg) { ++ int ppid = *((int *) arg); ++ if (ppid == getpid()) ++ ret = 0; ++ else ++ ret = 1; ++ pthread_exit((void *) &ret); ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ MSG=no OMPI_THREADS_HAVE_DIFFERENT_PIDS=0 ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++MSG=yes OMPI_THREADS_HAVE_DIFFERENT_PIDS=1 ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ ++CFLAGS="$CFLAGS_save" ++CPPFLAGS="$CPPFLAGS_save" ++LDFLAGS="$LDFLAGS_save" ++LIBS="$LIBS_save" ++ ++{ echo "$as_me:$LINENO: result: $MSG" >&5 ++echo "${ECHO_T}$MSG" >&6; } ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_THREADS_HAVE_DIFFERENT_PIDS $OMPI_THREADS_HAVE_DIFFERENT_PIDS ++_ACEOF ++ ++ ++# ++# if pthreads is not available, then the system does not have an insane threads ++# model ++# ++unset MSG ++else ++ cat >>confdefs.h <<\_ACEOF ++@%:@define OMPI_HAVE_SOLARIS_THREADS 0 ++_ACEOF ++ ++ cat >>confdefs.h <<\_ACEOF ++@%:@define OMPI_HAVE_POSIX_THREADS 0 ++_ACEOF ++ ++ cat >>confdefs.h <<\_ACEOF ++@%:@define OMPI_THREADS_HAVE_DIFFERENT_PIDS 0 ++_ACEOF ++ ++ ++ TRHEAD_CFLAGS= ++ THREAD_FFLAGS= ++ THREAD_CXXFLAGS= ++ THREAD_CPPFLAGS= ++ THREAD_CXXCPPFLAGS= ++ THREAD_LDFLAGS= ++ THREAD_LIBS= ++ if test "$THREAD_TYPE" != "none" ; then ++ cat <&5 ++echo $ECHO_N "checking if want MPI thread support... $ECHO_C" >&6; } ++# Check whether --enable-mpi-threads was given. ++if test "${enable_mpi_threads+set}" = set; then ++ enableval=$enable_mpi_threads; enable_mpi_threads="$enableval" ++fi ++ ++ ++if test "$enable_mpi_threads" = "" ; then ++ # no argument - default to no ++ OMPI_ENABLE_MPI_THREADS=0 ++ enable_mpi_threads="no" ++elif test "$enable_mpi_threads" = "no" ; then ++ OMPI_ENABLE_MPI_THREADS=0 ++else ++ # they want MPI threads. Make sure we have threads ++ if test "$THREAD_TYPE" != "none" ; then ++ OMPI_ENABLE_MPI_THREADS=1 ++ enable_mpi_threads="yes" ++ else ++ { { echo "$as_me:$LINENO: error: User requested MPI threads, but no threading model supported" >&5 ++echo "$as_me: error: User requested MPI threads, but no threading model supported" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ENABLE_MPI_THREADS $OMPI_ENABLE_MPI_THREADS ++_ACEOF ++ ++{ echo "$as_me:$LINENO: result: $enable_mpi_threads" >&5 ++echo "${ECHO_T}$enable_mpi_threads" >&6; } ++ ++ ++{ echo "$as_me:$LINENO: checking if want asynchronous progress thread support" >&5 ++echo $ECHO_N "checking if want asynchronous progress thread support... $ECHO_C" >&6; } ++# Check whether --enable-progress-threads was given. ++if test "${enable_progress_threads+set}" = set; then ++ enableval=$enable_progress_threads; enable_progress_threads="$enableval" ++fi ++ ++ ++if test "$enable_progress_threads" = "" ; then ++ # no argument given either way. Default to no. ++ OMPI_ENABLE_PROGRESS_THREADS=0 ++ enable_progress_threads="no" ++elif test "$enable_progress_threads" = "no" ; then ++ OMPI_ENABLE_PROGRESS_THREADS=0 ++ enable_progress_threads="no" ++else ++ # they want threaded progress ++ if test "$THREAD_TYPE" != "none" ; then ++ OMPI_ENABLE_PROGRESS_THREADS=1 ++ enable_progress_threads="yes" ++ else ++ { { echo "$as_me:$LINENO: error: User requested progress threads, but no threading model supported" >&5 ++echo "$as_me: error: User requested progress threads, but no threading model supported" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ENABLE_PROGRESS_THREADS $OMPI_ENABLE_PROGRESS_THREADS ++_ACEOF ++ ++{ echo "$as_me:$LINENO: result: $enable_progress_threads" >&5 ++echo "${ECHO_T}$enable_progress_threads" >&6; } ++ ++# ++# Fault Tolerance Thread ++# ++# --enable-ft-thread ++# #if OPAL_ENABLE_FT_THREAD == 0 /* Disabled */ ++# #if OPAL_ENABLE_FT_THREAD == 1 /* Enabled */ ++# ++{ echo "$as_me:$LINENO: checking if want fault tolerance thread" >&5 ++echo $ECHO_N "checking if want fault tolerance thread... $ECHO_C" >&6; } ++# Check whether --enable-ft_thread was given. ++if test "${enable_ft_thread+set}" = set; then ++ enableval=$enable_ft_thread; enable_ft_thread="$enableval" ++else ++ enable_ft_thread="undef" ++fi ++ ++ ++# if they do not want FT support, then they do not want this thread either ++if test "$ompi_want_ft" = "0"; then ++ ompi_want_ft_thread=0 ++ { echo "$as_me:$LINENO: result: Disabled (fault tolerance disabled --without-ft)" >&5 ++echo "${ECHO_T}Disabled (fault tolerance disabled --without-ft)" >&6; } ++# if --disable-ft-thread ++elif test "$enable_ft_thread" = "no"; then ++ ompi_want_ft_thread=0 ++ { echo "$as_me:$LINENO: result: Disabled" >&5 ++echo "${ECHO_T}Disabled" >&6; } ++# if default, and no progress or MPI threads ++elif test "$enable_ft_thread" = "undef" -a "$enable_progress_threads" = "no" -a "$enable_mpi_threads" = "no" ; then ++ ompi_want_ft_thread=0 ++ { echo "$as_me:$LINENO: result: Disabled (Progress and MPI Threads Disabled)" >&5 ++echo "${ECHO_T}Disabled (Progress and MPI Threads Disabled)" >&6; } ++# if default, and either progress or MPI threads enabled ++else ++ # Default: Enable ++ # Make sure we have at least Progress Threads or MPI Threads enabled ++ if test "$enable_progress_threads" = "no" -a "$enable_mpi_threads" = "no"; then ++ { echo "$as_me:$LINENO: result: Must enable progress or MPI threads to use this option" >&5 ++echo "${ECHO_T}Must enable progress or MPI threads to use this option" >&6; } ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ompi_want_ft_thread=1 ++ { echo "$as_me:$LINENO: WARNING: **************************************************" >&5 ++echo "$as_me: WARNING: **************************************************" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Fault Tolerance with a thread in Open MPI *" >&5 ++echo "$as_me: WARNING: *** Fault Tolerance with a thread in Open MPI *" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** is an experimental, research quality option. *" >&5 ++echo "$as_me: WARNING: *** is an experimental, research quality option. *" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** It requires progress or MPI threads, and *" >&5 ++echo "$as_me: WARNING: *** It requires progress or MPI threads, and *" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** care should be used when enabling these *" >&5 ++echo "$as_me: WARNING: *** care should be used when enabling these *" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** options. *" >&5 ++echo "$as_me: WARNING: *** options. *" >&2;} ++ { echo "$as_me:$LINENO: WARNING: **************************************************" >&5 ++echo "$as_me: WARNING: **************************************************" >&2;} ++ fi ++fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_ENABLE_FT_THREAD $ompi_want_ft_thread ++_ACEOF ++ ++ if test "$ompi_want_ft_thread" = "1"; then ++ WANT_FT_THREAD_TRUE= ++ WANT_FT_THREAD_FALSE='#' ++else ++ WANT_FT_THREAD_TRUE='#' ++ WANT_FT_THREAD_FALSE= ++fi ++ ++ ++ ++CFLAGS="$CFLAGS $THREAD_CFLAGS" ++CXXFLAGS="$CXXFLAGS $THREAD_CXXFLAGS" ++CPPFLAGS="$CPPFLAGS $THREAD_CPPFLAGS" ++CXXCPPFLAGS="$CXXCPPFLAGS $THREAD_CXXCPPFLAGS" ++LDFLAGS="$LDFLAGS $THREAD_LDFLAGS" ++LIBS="$LIBS $THREAD_LIBS" ++ ++ ++WRAPPER_EXTRA_CPPFLAGS="$WRAPPER_EXTRA_CPPFLAGS $THREAD_CPPFLAGS" ++WRAPPER_EXTRA_CFLAGS="$WRAPPER_EXTRA_CFLAGS $THREAD_CFLAGS" ++WRAPPER_EXTRA_CXXFLAGS="$WRAPPER_EXTRA_CXXFLAGS $THREAD_CXXFLAGS" ++WRAPPER_EXTRA_FFLAGS="$WRAPPER_EXTRA_FFLAGS $THREAD_FFLAGS" ++WRAPPER_EXTRA_FCFLAGS="$WRAPPER_EXTRA_FCFLAGS $THREAD_FFLAGS" ++WRAPPER_EXTRA_LDFLAGS="$WRAPPER_EXTRA_LDFLAGS $THREAD_LDFLAGS" ++# no need to update WRAPPER_EXTRA_LIBS - we'll get it from LT later ++ ++# ++# What is the local equivalent of "ln -s" ++# ++ ++{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 ++echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } ++LN_S=$as_ln_s ++if test "$LN_S" = "ln -s"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 ++echo "${ECHO_T}no, using $LN_S" >&6; } ++fi ++ ++ ++{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 ++echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } ++if test "${ac_cv_path_GREP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Extract the first word of "grep ggrep" to use in msg output ++if test -z "$GREP"; then ++set dummy grep ggrep; ac_prog_name=$2 ++if test "${ac_cv_path_GREP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_path_GREP_found=false ++# Loop through the user's path and test for each of PROGNAME-LIST ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_prog in grep ggrep; do ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" ++ { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue ++ # Check for GNU ac_path_GREP and select it if it is found. ++ # Check for GNU $ac_path_GREP ++case `"$ac_path_GREP" --version 2>&1` in ++*GNU*) ++ ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; ++*) ++ ac_count=0 ++ echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" ++ while : ++ do ++ cat "conftest.in" "conftest.in" >"conftest.tmp" ++ mv "conftest.tmp" "conftest.in" ++ cp "conftest.in" "conftest.nl" ++ echo 'GREP' >> "conftest.nl" ++ "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break ++ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ++ ac_count=`expr $ac_count + 1` ++ if test $ac_count -gt ${ac_path_GREP_max-0}; then ++ # Best one so far, save it but keep looking for a better one ++ ac_cv_path_GREP="$ac_path_GREP" ++ ac_path_GREP_max=$ac_count ++ fi ++ # 10*(2^10) chars as input seems more than enough ++ test $ac_count -gt 10 && break ++ done ++ rm -f conftest.in conftest.tmp conftest.nl conftest.out;; ++esac ++ ++ ++ $ac_path_GREP_found && break 3 ++ done ++done ++ ++done ++IFS=$as_save_IFS ++ ++ ++fi ++ ++GREP="$ac_cv_path_GREP" ++if test -z "$GREP"; then ++ { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 ++echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ ac_cv_path_GREP=$GREP ++fi ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 ++echo "${ECHO_T}$ac_cv_path_GREP" >&6; } ++ GREP="$ac_cv_path_GREP" ++ ++ ++{ echo "$as_me:$LINENO: checking for egrep" >&5 ++echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } ++if test "${ac_cv_path_EGREP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 ++ then ac_cv_path_EGREP="$GREP -E" ++ else ++ # Extract the first word of "egrep" to use in msg output ++if test -z "$EGREP"; then ++set dummy egrep; ac_prog_name=$2 ++if test "${ac_cv_path_EGREP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_path_EGREP_found=false ++# Loop through the user's path and test for each of PROGNAME-LIST ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_prog in egrep; do ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" ++ { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue ++ # Check for GNU ac_path_EGREP and select it if it is found. ++ # Check for GNU $ac_path_EGREP ++case `"$ac_path_EGREP" --version 2>&1` in ++*GNU*) ++ ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; ++*) ++ ac_count=0 ++ echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" ++ while : ++ do ++ cat "conftest.in" "conftest.in" >"conftest.tmp" ++ mv "conftest.tmp" "conftest.in" ++ cp "conftest.in" "conftest.nl" ++ echo 'EGREP' >> "conftest.nl" ++ "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break ++ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ++ ac_count=`expr $ac_count + 1` ++ if test $ac_count -gt ${ac_path_EGREP_max-0}; then ++ # Best one so far, save it but keep looking for a better one ++ ac_cv_path_EGREP="$ac_path_EGREP" ++ ac_path_EGREP_max=$ac_count ++ fi ++ # 10*(2^10) chars as input seems more than enough ++ test $ac_count -gt 10 && break ++ done ++ rm -f conftest.in conftest.tmp conftest.nl conftest.out;; ++esac ++ ++ ++ $ac_path_EGREP_found && break 3 ++ done ++done ++ ++done ++IFS=$as_save_IFS ++ ++ ++fi ++ ++EGREP="$ac_cv_path_EGREP" ++if test -z "$EGREP"; then ++ { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 ++echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ ac_cv_path_EGREP=$EGREP ++fi ++ ++ ++ fi ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 ++echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } ++ EGREP="$ac_cv_path_EGREP" ++ ++ ++ ++# ++# We need as and lex ++# ++# By default we simply use the C compiler to build assembly code. ++ ++test "${CCAS+set}" = set || CCAS=$CC ++test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS ++ ++ ++ ++depcc="$CCAS" am_compiler_list= ++ ++{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 ++echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } ++if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then ++ # We make a subdir and do the tests there. Otherwise we can end up ++ # making bogus files that we don't know about and never remove. For ++ # instance it was reported that on HP-UX the gcc test will end up ++ # making a dummy file named `D' -- because `-MD' means `put the output ++ # in D'. ++ mkdir conftest.dir ++ # Copy depcomp to subdir because otherwise we won't find it if we're ++ # using a relative directory. ++ cp "$am_depcomp" conftest.dir ++ cd conftest.dir ++ # We will build objects and dependencies in a subdirectory because ++ # it helps to detect inapplicable dependency modes. For instance ++ # both Tru64's cc and ICC support -MD to output dependencies as a ++ # side effect of compilation, but ICC will put the dependencies in ++ # the current directory while Tru64 will put them in the object ++ # directory. ++ mkdir sub ++ ++ am_cv_CCAS_dependencies_compiler_type=none ++ if test "$am_compiler_list" = ""; then ++ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` ++ fi ++ for depmode in $am_compiler_list; do ++ # Setup a source with many dependencies, because some compilers ++ # like to wrap large dependency lists on column 80 (with \), and ++ # we should not choose a depcomp mode which is confused by this. ++ # ++ # We need to recreate these files for each test, as the compiler may ++ # overwrite some of them when testing with obscure command lines. ++ # This happens at least with the AIX C compiler. ++ : > sub/conftest.c ++ for i in 1 2 3 4 5 6; do ++ echo '#include "conftst'$i'.h"' >> sub/conftest.c ++ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with ++ # Solaris 8's {/usr,}/bin/sh. ++ touch sub/conftst$i.h ++ done ++ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf ++ ++ case $depmode in ++ nosideeffect) ++ # after this tag, mechanisms are not by side-effect, so they'll ++ # only be used when explicitly requested ++ if test "x$enable_dependency_tracking" = xyes; then ++ continue ++ else ++ break ++ fi ++ ;; ++ none) break ;; ++ esac ++ # We check with `-c' and `-o' for the sake of the "dashmstdout" ++ # mode. It turns out that the SunPro C++ compiler does not properly ++ # handle `-M -o', and we need to detect this. ++ if depmode=$depmode \ ++ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ ++ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ ++ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ ++ >/dev/null 2>conftest.err && ++ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ++ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then ++ # icc doesn't choke on unknown options, it will just issue warnings ++ # or remarks (even with -Werror). So we grep stderr for any message ++ # that says an option was ignored or not supported. ++ # When given -MP, icc 7.0 and 7.1 complain thusly: ++ # icc: Command line warning: ignoring option '-M'; no argument required ++ # The diagnosis changed in icc 8.0: ++ # icc: Command line remark: option '-MP' not supported ++ if (grep 'ignoring option' conftest.err || ++ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else ++ am_cv_CCAS_dependencies_compiler_type=$depmode ++ break ++ fi ++ fi ++ done ++ ++ cd .. ++ rm -rf conftest.dir ++else ++ am_cv_CCAS_dependencies_compiler_type=none ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5 ++echo "${ECHO_T}$am_cv_CCAS_dependencies_compiler_type" >&6; } ++CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type ++ ++ if ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then ++ am__fastdepCCAS_TRUE= ++ am__fastdepCCAS_FALSE='#' ++else ++ am__fastdepCCAS_TRUE='#' ++ am__fastdepCCAS_FALSE= ++fi ++ ++ ++for ac_prog in flex lex ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_LEX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$LEX"; then ++ ac_cv_prog_LEX="$LEX" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_LEX="$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++LEX=$ac_cv_prog_LEX ++if test -n "$LEX"; then ++ { echo "$as_me:$LINENO: result: $LEX" >&5 ++echo "${ECHO_T}$LEX" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$LEX" && break ++done ++test -n "$LEX" || LEX=":" ++ ++if test "x$LEX" != "x:"; then ++ cat >conftest.l <<_ACEOF ++%% ++a { ECHO; } ++b { REJECT; } ++c { yymore (); } ++d { yyless (1); } ++e { yyless (input () != 0); } ++f { unput (yytext[0]); } ++. { BEGIN INITIAL; } ++%% ++#ifdef YYTEXT_POINTER ++extern char *yytext; ++#endif ++int ++main (void) ++{ ++ return ! yylex () + ! yywrap (); ++} ++_ACEOF ++{ (ac_try="$LEX conftest.l" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$LEX conftest.l") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ echo "$as_me:$LINENO: checking lex output file root" >&5 ++echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } ++if test "${ac_cv_prog_lex_root+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++if test -f lex.yy.c; then ++ ac_cv_prog_lex_root=lex.yy ++elif test -f lexyy.c; then ++ ac_cv_prog_lex_root=lexyy ++else ++ { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 ++echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 ++echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } ++LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root ++ ++if test -z "${LEXLIB+set}"; then ++ { echo "$as_me:$LINENO: checking lex library" >&5 ++echo $ECHO_N "checking lex library... $ECHO_C" >&6; } ++if test "${ac_cv_lib_lex+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ ac_save_LIBS=$LIBS ++ ac_cv_lib_lex='none needed' ++ for ac_lib in '' -lfl -ll; do ++ LIBS="$ac_lib $ac_save_LIBS" ++ cat >conftest.$ac_ext <<_ACEOF ++`cat $LEX_OUTPUT_ROOT.c` ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_lex=$ac_lib ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ test "$ac_cv_lib_lex" != 'none needed' && break ++ done ++ LIBS=$ac_save_LIBS ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5 ++echo "${ECHO_T}$ac_cv_lib_lex" >&6; } ++ test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex ++fi ++ ++ ++{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 ++echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } ++if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # POSIX says lex can declare yytext either as a pointer or an array; the ++# default is implementation-dependent. Figure out which it is, since ++# not all implementations provide the %pointer and %array declarations. ++ac_cv_prog_lex_yytext_pointer=no ++ac_save_LIBS=$LIBS ++LIBS="$LEXLIB $ac_save_LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++#define YYTEXT_POINTER 1 ++`cat $LEX_OUTPUT_ROOT.c` ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_prog_lex_yytext_pointer=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_save_LIBS ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 ++echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } ++if test $ac_cv_prog_lex_yytext_pointer = yes; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define YYTEXT_POINTER 1 ++_ACEOF ++ ++fi ++rm -f conftest.l $LEX_OUTPUT_ROOT.c ++ ++fi ++if test "$LEX" = :; then ++ LEX=${am_missing_run}flex ++fi ++ ++# If we don't have GNU Flex and we don't have a generated .c file ++# (distribution tarballs will have the .c file included, but SVN ++# checkouts will not), then error. Must have GNU Flex -- other ++# versions of Lex are not workable (all things being equal, since this ++# is *only* required for developers, we decided that it really was not ++# worth it to be portable between different versions of lex ;-). ++ ++if test -z "$LEX" -o -n "`echo $LEX | $GREP missing`" -o \ ++ "`basename $LEX`" != "flex"; then ++ if test ! -f "$srcdir/opal/util/show_help_lex.c"; then ++ { echo "$as_me:$LINENO: WARNING: *** Could not find GNU Flex on your system." >&5 ++echo "$as_me: WARNING: *** Could not find GNU Flex on your system." >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** GNU Flex required for developer builds of Open MPI." >&5 ++echo "$as_me: WARNING: *** GNU Flex required for developer builds of Open MPI." >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Other versions of Lex are not supported." >&5 ++echo "$as_me: WARNING: *** Other versions of Lex are not supported." >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** YOU DO NOT NEED FLEX FOR DISTRIBUTION TARBALLS!" >&5 ++echo "$as_me: WARNING: *** YOU DO NOT NEED FLEX FOR DISTRIBUTION TARBALLS!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** If you absolutely cannot install GNU Flex on this system" >&5 ++echo "$as_me: WARNING: *** If you absolutely cannot install GNU Flex on this system" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** consider using a distribution tarball, or generate the" >&5 ++echo "$as_me: WARNING: *** consider using a distribution tarball, or generate the" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** following files on another system (using Flex) and" >&5 ++echo "$as_me: WARNING: *** following files on another system (using Flex) and" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** copy them here:" >&5 ++echo "$as_me: WARNING: *** copy them here:" >&2;} ++ for lfile in `find . -name \*.l -print`; do ++ cfile="`echo $lfile | cut -d. -f-2`" ++ { echo "$as_me:$LINENO: WARNING: *** $cfile.c" >&5 ++echo "$as_me: WARNING: *** $cfile.c" >&2;} ++ done ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++fi ++ ++# ++# Look for ps command and arguments for orte-clean ++# ++ ++{ echo "$as_me:$LINENO: checking for flavor of ps to use" >&5 ++echo $ECHO_N "checking for flavor of ps to use... $ECHO_C" >&6; } ++PS_FLAVOR="unknown" ++ps -A -o fname > /dev/null 2>&1 ++ ++if test "$?" = "0"; then ++ PS_FLAVOR="ps -A -o fname,pid,user" ++else ++ ps -A -o command > /dev/null 2>&1 ++ if test "$?" = "0"; then ++ PS_FLAVOR="ps -A -o command,pid,user" ++ fi ++fi ++{ echo "$as_me:$LINENO: result: $PS_FLAVOR" >&5 ++echo "${ECHO_T}$PS_FLAVOR" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define ORTE_CLEAN_PS_CMD "$PS_FLAVOR" ++_ACEOF ++ ++ ++ ++# ++# File system case sensitivity ++# ++ ++ ++# ++# Arguments: none ++# ++# Dependencies: None ++# ++# See if we are on a case sensitive filesystem. Some filesystems ++# (like HFS+ on MacOS X and MS Windows) are not case sensitive - mpicc ++# and mpiCC are the same file. ++# ++# Sets prefix_OS_HAVE_CASE_SENSITIVE_FS to 1 if filesystem is case ++# sensitive (ie, mpicc and mpiCC will be different files) or 0 if ++# filesystem is not case sensitive (ie, mpicc and mpiCC will be ++# the same file). ++# ++# ++ ++have_cs_fs=1 ++ ++{ echo "$as_me:$LINENO: checking if build filesystem is case sensitive" >&5 ++echo $ECHO_N "checking if build filesystem is case sensitive... $ECHO_C" >&6; } ++cat > conf_fs_test.$$ < CONF_FS_TEST.$$ <&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ have_cs_fs=0 ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++rm -f conf_fs_test.$$ CONF_FS_TEST.$$ ++ ++# ++# Now see what the user wants to do... ++# ++{ echo "$as_me:$LINENO: checking if configuring for case sensitive filesystem" >&5 ++echo $ECHO_N "checking if configuring for case sensitive filesystem... $ECHO_C" >&6; } ++ ++# Check whether --with-cs_fs was given. ++if test "${with_cs_fs+set}" = set; then ++ withval=$with_cs_fs; ++fi ++ ++ ++if test "$with_cs_fs" = "yes"; then ++ OMPI_WANT_CS_FS=1 ++elif test -z "$with_cs_fs"; then ++ OMPI_WANT_CS_FS=$have_cs_fs ++else ++ OMPI_WANT_CS_FS=0 ++fi ++ ++if test "$OMPI_WANT_CS_FS" = "1"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "$OMPI_WANT_CS_FS" = "1"; then ++ CASE_SENSITIVE_FS_TRUE= ++ CASE_SENSITIVE_FS_FALSE='#' ++else ++ CASE_SENSITIVE_FS_TRUE='#' ++ CASE_SENSITIVE_FS_FALSE= ++fi ++ ++ ++if test "$OMPI_WANT_CS_FS" = "0"; then ++ cat <? (e.g., Solaris does not) ++# ++ ++{ echo "$as_me:$LINENO: checking whether RLIMIT_NPROC is declared" >&5 ++echo $ECHO_N "checking whether RLIMIT_NPROC is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl_RLIMIT_NPROC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++$ac_includes_default ++#if HAVE_SYS_RESOURCE_H ++#include ++#endif ++ ++int ++main () ++{ ++#ifndef RLIMIT_NPROC ++ (void) RLIMIT_NPROC; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl_RLIMIT_NPROC=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl_RLIMIT_NPROC=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_RLIMIT_NPROC" >&5 ++echo "${ECHO_T}$ac_cv_have_decl_RLIMIT_NPROC" >&6; } ++if test $ac_cv_have_decl_RLIMIT_NPROC = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_RLIMIT_NPROC 1 ++_ACEOF ++ ++ ++else ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_RLIMIT_NPROC 0 ++_ACEOF ++ ++ ++fi ++ ++ ++ ++# checkpoint results ++cat >confcache <<\_ACEOF ++# This file is a shell script that caches the results of configure ++# tests run on this system so they can be shared between configure ++# scripts and configure runs, see configure's option --config-cache. ++# It is not useful on other systems. If it contains results you don't ++# want to keep, you may remove or edit it. ++# ++# config.status only pays attention to the cache file if you give it ++# the --recheck option to rerun configure. ++# ++# `ac_cv_env_foo' variables (set or unset) will be overridden when ++# loading this file, other *unset* `ac_cv_foo' will be assigned the ++# following values. ++ ++_ACEOF ++ ++# The following way of writing the cache mishandles newlines in values, ++# but we know of no workaround that is simple, portable, and efficient. ++# So, we kill variables containing newlines. ++# Ultrix sh set writes to stderr and can't be redirected directly, ++# and sets the high bit in the cache file unless we assign to the vars. ++( ++ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do ++ eval ac_val=\$$ac_var ++ case $ac_val in #( ++ *${as_nl}*) ++ case $ac_var in #( ++ *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 ++echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; ++ esac ++ case $ac_var in #( ++ _ | IFS | as_nl) ;; #( ++ *) $as_unset $ac_var ;; ++ esac ;; ++ esac ++ done ++ ++ (set) 2>&1 | ++ case $as_nl`(ac_space=' '; set) 2>&1` in #( ++ *${as_nl}ac_space=\ *) ++ # `set' does not quote correctly, so add quotes (double-quote ++ # substitution turns \\\\ into \\, and sed turns \\ into \). ++ sed -n \ ++ "s/'/'\\\\''/g; ++ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ++ ;; #( ++ *) ++ # `set' quotes correctly as required by POSIX, so do not add quotes. ++ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ++ ;; ++ esac | ++ sort ++) | ++ sed ' ++ /^ac_cv_env_/b end ++ t clear ++ :clear ++ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ ++ t end ++ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ ++ :end' >>confcache ++if diff "$cache_file" confcache >/dev/null 2>&1; then :; else ++ if test -w "$cache_file"; then ++ test "x$cache_file" != "x/dev/null" && ++ { echo "$as_me:$LINENO: updating cache $cache_file" >&5 ++echo "$as_me: updating cache $cache_file" >&6;} ++ cat confcache >$cache_file ++ else ++ { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 ++echo "$as_me: not updating unwritable cache $cache_file" >&6;} ++ fi ++fi ++rm -f confcache ++ ++ ++################################## ++# MCA ++################################## ++ ++ompi_show_title "Modular Component Architecture (MCA) setup" ++ ++{ echo "$as_me:$LINENO: checking for subdir args" >&5 ++echo $ECHO_N "checking for subdir args... $ECHO_C" >&6; } ++ ++# ++# Invoke configure in subdirectories. ++# ++# ompi_subdir_args is the name of the variable to assign the output to ++# ++ ++# ++# Make a list of command line args --eliminate the --srcdir and ++# --cache-file args, because we need to replace them with our own ++# values when invoking the sub-configure script. ++# ++ ++subdirs_args= ++subdirs_skip=no ++ ++eval "set x $ac_configure_args" ++shift ++for subdirs_arg ++do ++ if test "$subdirs_skip" = "yes"; then ++ subdirs_skip=no ++ else ++ case $subdirs_arg in ++ -cache-file | --cache-file | -cache | --cache) ++ subdirs_skip=yes ++ ;; ++ --config-cache | -C) ++ ;; ++ -cache-file=* | --cache-file=*) ++ ;; ++ -srcdir | --srcdir) ++ subdirs_skip=yes ++ ;; ++ -srcdir=* | --srcdir=*) ++ ;; ++ *) ++ case $subdir_arg in ++ *\'*) subdir_arg=`echo "$subdir_arg" | sed "s/'/'\\\\\\\\''/g"` ;; ++ esac ++ subdirs_args="$subdirs_args '$subdirs_arg'" ++ ;; ++ esac ++ fi ++done ++ ++# ++# Assign the output ++# ++ ++subdirs_str=ompi_subdir_args=\"$subdirs_args\" ++eval "$subdirs_str" ++ ++# ++# Clean up ++# ++ ++unset subdirs_str subdirs_skip subdirs_args subdirs_arg ++{ echo "$as_me:$LINENO: result: $ompi_subdir_args" >&5 ++echo "${ECHO_T}$ompi_subdir_args" >&6; } ++ ++ ++ ++ # Check whether --enable-emulate was given. ++if test "${enable_emulate+set}" = set; then ++ enableval=$enable_emulate; ++fi ++ ++ if test "$enable_emulate" = "yes"; then ++ plpa_emulate=yes ++ else ++ plpa_emulate=no ++ fi ++ ++ # Build and install the executables or no? ++ # Check whether --enable-executables was given. ++if test "${enable_executables+set}" = set; then ++ enableval=$enable_executables; ++fi ++ ++ if test "$enable_executables" = "yes" -o "$enable_executables" = ""; then ++ plpa_executables=yes ++ else ++ plpa_executables=no ++ fi ++ ++ # Included mode, or standalone? ++ # Check whether --enable-included-mode was given. ++if test "${enable_included_mode+set}" = set; then ++ enableval=$enable_included_mode; ++fi ++ ++ if test "$enable_included_mode" = "yes"; then ++ plpa_mode=included ++ if test "$enable_executables" = ""; then ++ plpa_executables=no ++ fi ++ else ++ plpa_mode=standalone ++ fi ++ ++ ++ # Change the symbol prefix? ++ ++# Check whether --with-plpa-symbol-prefix was given. ++if test "${with_plpa_symbol_prefix+set}" = set; then ++ withval=$with_plpa_symbol_prefix; ++fi ++ ++ if test "$with_plpa_symbol_prefix" = ""; then ++ plpa_symbol_prefix_value=plpa_ ++ else ++ plpa_symbol_prefix_value=$with_plpa_symbol_prefix ++ fi ++ ++ # Debug mode? ++ # Check whether --enable-debug was given. ++if test "${enable_debug+set}" = set; then ++ enableval=$enable_debug; ++fi ++ ++ if test "$enable_debug" = "yes"; then ++ plpa_debug=1 ++ plpa_debug_msg="enabled" ++ elif test "$enable_debug" = "" -a -d .svn; then ++ plpa_debug=1 ++ plpa_debug_msg="enabled (SVN checkout default)" ++ else ++ plpa_debug=0 ++ plpa_debug_msg="disabled" ++ fi ++ ++for ac_prog in 'bison -y' byacc ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_YACC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$YACC"; then ++ ac_cv_prog_YACC="$YACC" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_YACC="$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++YACC=$ac_cv_prog_YACC ++if test -n "$YACC"; then ++ { echo "$as_me:$LINENO: result: $YACC" >&5 ++echo "${ECHO_T}$YACC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$YACC" && break ++done ++test -n "$YACC" || YACC="yacc" ++ ++ac_ext=m ++ac_cpp='$OBJCPP $CPPFLAGS' ++ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_objc_compiler_gnu ++if test -n "$ac_tool_prefix"; then ++ for ac_prog in gcc objcc objc cc CC ++ do ++ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ++set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_OBJC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$OBJC"; then ++ ac_cv_prog_OBJC="$OBJC" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++OBJC=$ac_cv_prog_OBJC ++if test -n "$OBJC"; then ++ { echo "$as_me:$LINENO: result: $OBJC" >&5 ++echo "${ECHO_T}$OBJC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$OBJC" && break ++ done ++fi ++if test -z "$OBJC"; then ++ ac_ct_OBJC=$OBJC ++ for ac_prog in gcc objcc objc cc CC ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_OBJC"; then ++ ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_OBJC="$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC ++if test -n "$ac_ct_OBJC"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5 ++echo "${ECHO_T}$ac_ct_OBJC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$ac_ct_OBJC" && break ++done ++ ++ if test "x$ac_ct_OBJC" = x; then ++ OBJC="gcc" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ OBJC=$ac_ct_OBJC ++ fi ++fi ++ ++# Provide some information about the compiler. ++echo "$as_me:$LINENO: checking for Objective C compiler version" >&5 ++ac_compiler=`set X $ac_compile; echo $2` ++{ (ac_try="$ac_compiler --version >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler --version >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -v >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -v >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -V >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -V >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++ ++{ echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5 ++echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; } ++if test "${ac_cv_objc_compiler_gnu+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++#ifndef __GNUC__ ++ choke me ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_objc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_compiler_gnu=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_compiler_gnu=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ac_cv_objc_compiler_gnu=$ac_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5 ++echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; } ++GOBJC=`test $ac_compiler_gnu = yes && echo yes` ++ac_test_OBJCFLAGS=${OBJCFLAGS+set} ++ac_save_OBJCFLAGS=$OBJCFLAGS ++{ echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5 ++echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; } ++if test "${ac_cv_prog_objc_g+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_save_objc_werror_flag=$ac_objc_werror_flag ++ ac_objc_werror_flag=yes ++ ac_cv_prog_objc_g=no ++ OBJCFLAGS="-g" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_objc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_objc_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ OBJCFLAGS="" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_objc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ : ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_objc_werror_flag=$ac_save_objc_werror_flag ++ OBJCFLAGS="-g" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_objc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_objc_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_objc_werror_flag=$ac_save_objc_werror_flag ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5 ++echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; } ++if test "$ac_test_OBJCFLAGS" = set; then ++ OBJCFLAGS=$ac_save_OBJCFLAGS ++elif test $ac_cv_prog_objc_g = yes; then ++ if test "$GOBJC" = yes; then ++ OBJCFLAGS="-g -O2" ++ else ++ OBJCFLAGS="-g" ++ fi ++else ++ if test "$GOBJC" = yes; then ++ OBJCFLAGS="-O2" ++ else ++ OBJCFLAGS= ++ fi ++fi ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++depcc="$OBJC" am_compiler_list='gcc3 gcc' ++ ++{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 ++echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } ++if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then ++ # We make a subdir and do the tests there. Otherwise we can end up ++ # making bogus files that we don't know about and never remove. For ++ # instance it was reported that on HP-UX the gcc test will end up ++ # making a dummy file named `D' -- because `-MD' means `put the output ++ # in D'. ++ mkdir conftest.dir ++ # Copy depcomp to subdir because otherwise we won't find it if we're ++ # using a relative directory. ++ cp "$am_depcomp" conftest.dir ++ cd conftest.dir ++ # We will build objects and dependencies in a subdirectory because ++ # it helps to detect inapplicable dependency modes. For instance ++ # both Tru64's cc and ICC support -MD to output dependencies as a ++ # side effect of compilation, but ICC will put the dependencies in ++ # the current directory while Tru64 will put them in the object ++ # directory. ++ mkdir sub ++ ++ am_cv_OBJC_dependencies_compiler_type=none ++ if test "$am_compiler_list" = ""; then ++ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` ++ fi ++ for depmode in $am_compiler_list; do ++ # Setup a source with many dependencies, because some compilers ++ # like to wrap large dependency lists on column 80 (with \), and ++ # we should not choose a depcomp mode which is confused by this. ++ # ++ # We need to recreate these files for each test, as the compiler may ++ # overwrite some of them when testing with obscure command lines. ++ # This happens at least with the AIX C compiler. ++ : > sub/conftest.c ++ for i in 1 2 3 4 5 6; do ++ echo '#include "conftst'$i'.h"' >> sub/conftest.c ++ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with ++ # Solaris 8's {/usr,}/bin/sh. ++ touch sub/conftst$i.h ++ done ++ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf ++ ++ case $depmode in ++ nosideeffect) ++ # after this tag, mechanisms are not by side-effect, so they'll ++ # only be used when explicitly requested ++ if test "x$enable_dependency_tracking" = xyes; then ++ continue ++ else ++ break ++ fi ++ ;; ++ none) break ;; ++ esac ++ # We check with `-c' and `-o' for the sake of the "dashmstdout" ++ # mode. It turns out that the SunPro C++ compiler does not properly ++ # handle `-M -o', and we need to detect this. ++ if depmode=$depmode \ ++ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ ++ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ ++ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ ++ >/dev/null 2>conftest.err && ++ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ++ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then ++ # icc doesn't choke on unknown options, it will just issue warnings ++ # or remarks (even with -Werror). So we grep stderr for any message ++ # that says an option was ignored or not supported. ++ # When given -MP, icc 7.0 and 7.1 complain thusly: ++ # icc: Command line warning: ignoring option '-M'; no argument required ++ # The diagnosis changed in icc 8.0: ++ # icc: Command line remark: option '-MP' not supported ++ if (grep 'ignoring option' conftest.err || ++ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else ++ am_cv_OBJC_dependencies_compiler_type=$depmode ++ break ++ fi ++ fi ++ done ++ ++ cd .. ++ rm -rf conftest.dir ++else ++ am_cv_OBJC_dependencies_compiler_type=none ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5 ++echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; } ++OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type ++ ++ if ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then ++ am__fastdepOBJC_TRUE= ++ am__fastdepOBJC_FALSE='#' ++else ++ am__fastdepOBJC_TRUE='#' ++ am__fastdepOBJC_FALSE= ++fi ++ ++ ++ ++ ++ ++ ++ # Find which components should be built as run-time loadable components ++ # Acceptable combinations: ++ # ++ # [default -- no option given] ++ # --enable-mca-dso ++ # --enable-mca-dso=[.+,]*COMPONENT_TYPE[.+,]* ++ # --enable-mca-dso=[.+,]*COMPONENT_TYPE-COMPONENT_NAME[.+,]* ++ # --disable-mca-dso ++ # ++ # Check whether --enable-mca-no-build was given. ++if test "${enable_mca_no_build+set}" = set; then ++ enableval=$enable_mca_no_build; ++fi ++ ++ # Check whether --enable-mca-dso was given. ++if test "${enable_mca_dso+set}" = set; then ++ enableval=$enable_mca_dso; ++fi ++ ++ # Check whether --enable-mca-static was given. ++if test "${enable_mca_static+set}" = set; then ++ enableval=$enable_mca_static; ++fi ++ ++ # Check whether --enable-mca-direct was given. ++if test "${enable_mca_direct+set}" = set; then ++ enableval=$enable_mca_direct; ++fi ++ ++ ++ { echo "$as_me:$LINENO: checking which components should be disabled" >&5 ++echo $ECHO_N "checking which components should be disabled... $ECHO_C" >&6; } ++ if test "$enable_mca_no_build" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ { { echo "$as_me:$LINENO: error: *** The enable-mca-no-build flag requires an explicit list ++*** of type-component pairs. For example, --enable-mca-direct=pml-ob1" >&5 ++echo "$as_me: error: *** The enable-mca-no-build flag requires an explicit list ++*** of type-component pairs. For example, --enable-mca-direct=pml-ob1" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ ifs_save="$IFS" ++ IFS="${IFS}$PATH_SEPARATOR," ++ msg= ++ for item in $enable_mca_no_build; do ++ type="`echo $item | cut -s -f1 -d-`" ++ comp="`echo $item | cut -s -f2- -d-`" ++ if test -z $type ; then ++ type=$item ++ fi ++ if test -z $comp ; then ++ str="`echo DISABLE_${type}=1 | sed s/-/_/g`" ++ eval $str ++ msg="$item $msg" ++ else ++ str="`echo DISABLE_${type}_${comp}=1 | sed s/-/_/g`" ++ eval $str ++ msg="$item $msg" ++ fi ++ done ++ IFS="$ifs_save" ++ fi ++ { echo "$as_me:$LINENO: result: $msg" >&5 ++echo "${ECHO_T}$msg" >&6; } ++ unset msg ++ ++ # ++ # First, add all the mca-direct components / types into the mca-static ++ # lists and create a list of component types that are direct compile, ++ # in the form DIRECT_[type]=[component] ++ # ++ { echo "$as_me:$LINENO: checking which components should be direct-linked into the library" >&5 ++echo $ECHO_N "checking which components should be direct-linked into the library... $ECHO_C" >&6; } ++ if test "$enable_mca_direct" = "yes" ; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ { { echo "$as_me:$LINENO: error: *** The enable-mca-direct flag requires an explicit list of ++*** type-component pairs. For example, --enable-mca-direct=pml-ob1,coll-basic" >&5 ++echo "$as_me: error: *** The enable-mca-direct flag requires an explicit list of ++*** type-component pairs. For example, --enable-mca-direct=pml-ob1,coll-basic" >&2;} ++ { (exit 1); exit 1; }; } ++ elif test ! -z "$enable_mca_direct" -a "$enable_mca_direct" != "" ; then ++ # ++ # we need to add this into the static list, unless the static list ++ # is everything ++ # ++ if test "$enable_mca_static" = "no" ; then ++ { echo "$as_me:$LINENO: WARNING: *** Re-enabling static component support for direct call" >&5 ++echo "$as_me: WARNING: *** Re-enabling static component support for direct call" >&2;} ++ enable_mca_static="$enable_mca_direct" ++ elif test -z "$enable_mca_static" ; then ++ enable_mca_static="$enable_mca_direct" ++ elif test "$enable_mca_static" != "yes" ; then ++ enable_mca_static="$enable_mca_direct,$enable_mca_static" ++ fi ++ ++ ifs_save="$IFS" ++ IFS="${IFS}$PATH_SEPARATOR," ++ msg= ++ for item in $enable_mca_direct; do ++ type="`echo $item | cut -f1 -d-`" ++ comp="`echo $item | cut -f2- -d-`" ++ if test -z $type -o -z $comp ; then ++ { { echo "$as_me:$LINENO: error: *** The enable-mca-direct flag requires a ++*** list of type-component pairs. Invalid input detected." >&5 ++echo "$as_me: error: *** The enable-mca-direct flag requires a ++*** list of type-component pairs. Invalid input detected." >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ str="`echo DIRECT_$type=$comp | sed s/-/_/g`" ++ eval $str ++ msg="$item $msg" ++ fi ++ done ++ IFS="$ifs_save" ++ fi ++ { echo "$as_me:$LINENO: result: $msg" >&5 ++echo "${ECHO_T}$msg" >&6; } ++ unset msg ++ ++ # ++ # Second, set the DSO_all and STATIC_all variables. conflict ++ # resolution (prefer static) is done in the big loop below ++ # ++ { echo "$as_me:$LINENO: checking which components should be run-time loadable" >&5 ++echo $ECHO_N "checking which components should be run-time loadable... $ECHO_C" >&6; } ++ if test "$enable_static" != "no"; then ++ DSO_all=0 ++ msg=none ++ elif test -z "$enable_mca_dso" -o "$enable_mca_dso" = "yes"; then ++ DSO_all=1 ++ msg=all ++ elif test "$enable_mca_dso" = "no"; then ++ DSO_all=0 ++ msg=none ++ else ++ DSO_all=0 ++ ifs_save="$IFS" ++ IFS="${IFS}$PATH_SEPARATOR," ++ msg= ++ for item in $enable_mca_dso; do ++ str="`echo DSO_$item=1 | sed s/-/_/g`" ++ eval $str ++ msg="$item $msg" ++ done ++ IFS="$ifs_save" ++ fi ++ { echo "$as_me:$LINENO: result: $msg" >&5 ++echo "${ECHO_T}$msg" >&6; } ++ unset msg ++ if test "$enable_static" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: *** Shared libraries have been disabled (--disable-shared)" >&5 ++echo "$as_me: WARNING: *** Shared libraries have been disabled (--disable-shared)" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Building MCA components as DSOs automatically disabled" >&5 ++echo "$as_me: WARNING: *** Building MCA components as DSOs automatically disabled" >&2;} ++ fi ++ ++ { echo "$as_me:$LINENO: checking which components should be static" >&5 ++echo $ECHO_N "checking which components should be static... $ECHO_C" >&6; } ++ if test "$enable_mca_static" = "yes"; then ++ STATIC_all=1 ++ msg=all ++ elif test -z "$enable_mca_static" -o "$enable_mca_static" = "no"; then ++ STATIC_all=0 ++ msg=none ++ else ++ STATIC_all=0 ++ ifs_save="$IFS" ++ IFS="${IFS}$PATH_SEPARATOR," ++ msg= ++ for item in $enable_mca_static; do ++ str="`echo STATIC_$item=1 | sed s/-/_/g`" ++ eval $str ++ msg="$item $msg" ++ done ++ IFS="$ifs_save" ++ fi ++ { echo "$as_me:$LINENO: result: $msg" >&5 ++echo "${ECHO_T}$msg" >&6; } ++ unset msg ++ ++ { echo "$as_me:$LINENO: checking for projects containing MCA frameworks" >&5 ++echo $ECHO_N "checking for projects containing MCA frameworks... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: opal, orte, ompi" >&5 ++echo "${ECHO_T}opal, orte, ompi" >&6; } ++ ++ # if there isn't a project list, abort ++ ++ ++ # now configre all the projects, frameworks, and components. Most ++ # of the hard stuff is in here ++ MCA_PROJECT_SUBDIRS= ++ MCA_PROJECT_SUBDIRS="$MCA_PROJECT_SUBDIRS opal" ++ ++ # can't use a variable rename here because these need to be evaled ++ # at auto* time. ++ ++ ompi_show_subtitle "Configuring MCA for opal" ++ ++ { echo "$as_me:$LINENO: checking for frameworks for opal" >&5 ++echo $ECHO_N "checking for frameworks for opal... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: backtrace, carto, crs, installdirs, maffinity, memchecker, memcpy, memory, paffinity, timer" >&5 ++echo "${ECHO_T}backtrace, carto, crs, installdirs, maffinity, memchecker, memcpy, memory, paffinity, timer" >&6; } ++ ++ # iterate through the list of frameworks. There is something ++ # funky with m4 foreach if the list is defined, but empty. It ++ # will call the 3rd argument once with an empty value for the ++ # first argument. Protect against calling MCA_CONFIGURE_FRAMEWORK ++ # with an empty second argument. Grrr.... ++ # if there isn't a project list, abort ++ # ++ # Also setup two variables for Makefiles: ++ # MCA_project_FRAMEWORKS - list of frameworks in that project ++ # MCA_project_FRAMEWORK_LIBS - list of libraries (or variables pointing ++ # to more libraries) that must be included ++ # in the project's main library ++ ++ ++ MCA_opal_FRAMEWORKS= ++ MCA_opal_FRAMEWORKS_SUBDIRS= ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS= ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS= ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS= ++ MCA_opal_FRAMEWORK_LIBS= ++ ++ # common has to go up front ++ if test "backtrace" = "common" ; then ++ MCA_opal_FRAMEWORKS="backtrace $MCA_opal_FRAMEWORKS" ++ MCA_opal_FRAMEWORKS_SUBDIRS="mca/backtrace $MCA_opal_FRAMEWORKS_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_backtrace_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_backtrace_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_backtrace_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS backtrace" ++ MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/backtrace" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_backtrace_ALL_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_backtrace_DSO_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_backtrace_STATIC_SUBDIRS)" ++ fi ++ if test "backtrace" != "common" ; then ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/backtrace/libmca_backtrace.la" ++ fi ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_backtrace_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework backtrace" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "backtrace" = "common" ; then ++ outdir=opal/mca/common ++ else ++ outdir=opal/mca/backtrace/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework backtrace" >&5 ++echo $ECHO_N "checking for no configure components in framework backtrace... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework backtrace" >&5 ++echo $ECHO_N "checking for m4 configure components in framework backtrace... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: execinfo, printstack, darwin, none" >&5 ++echo "${ECHO_T}execinfo, printstack, darwin, none" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component backtrace:execinfo (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=backtrace ++ component=execinfo ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_backtrace" ; then ++ if test "$DIRECT_backtrace" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component backtrace:execinfo compile mode" >&5 ++echo $ECHO_N "checking for MCA component backtrace:execinfo compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++for ac_header in execinfo.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++ # FreeBSD has backtrace in -lexecinfo, usually in libc ++ ++ { echo "$as_me:$LINENO: checking if we need -lexecinfo for backtrace" >&5 ++echo $ECHO_N "checking if we need -lexecinfo for backtrace... $ECHO_C" >&6; } ++if test "${ompi_cv_func_lib_backtrace_execinfo+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define backtrace to an innocuous variant, in case declares backtrace. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define backtrace innocuous_backtrace ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char backtrace (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef backtrace ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char backtrace (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_backtrace || defined __stub___backtrace ++choke me ++#endif ++ ++int ++main () ++{ ++return backtrace (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_lib_backtrace_execinfo="no" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ LIBS_save="$LIBS" ++ LIBS="$LIBS -lexecinfo" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define backtrace to an innocuous variant, in case declares backtrace. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define backtrace innocuous_backtrace ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char backtrace (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef backtrace ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char backtrace (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_backtrace || defined __stub___backtrace ++choke me ++#endif ++ ++int ++main () ++{ ++return backtrace (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_lib_backtrace_execinfo="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_lib_backtrace_execinfo="not found" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LIBS="$LIBS_save" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_lib_backtrace_execinfo" >&5 ++echo "${ECHO_T}$ompi_cv_func_lib_backtrace_execinfo" >&6; } ++ if test "$ompi_cv_func_lib_backtrace_execinfo" = "yes"; then ++ LIBS="$LIBS -lexecinfo" ++fi ++ ++ ++ # see if we actually have backtrace. Use AC_CHECK_FUNCS so that it ++ # does the glibc "not implemented" check. Will use the current LIBS, ++ # so will check in -lexecinfo if we decided we needed it above ++ ++for ac_func in backtrace ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ backtrace_execinfo_happy="yes" ++else ++ backtrace_execinfo_happy="no" ++fi ++done ++ ++ ++ ++ if test "$backtrace_execinfo_happy" = "yes"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=backtrace ++ component=execinfo ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_backtrace" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_backtrace" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component backtrace:execinfo can compile" >&5 ++echo $ECHO_N "checking if MCA component backtrace:execinfo can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_backtrace" = "execinfo" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"execinfo\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"execinfo\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_backtrace" ; then ++ if test "$DIRECT_backtrace" = "execinfo" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"execinfo\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"execinfo\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components execinfo" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_backtrace_execinfo_DSO=1 ++else ++ BUILD_backtrace_execinfo_DSO=0 ++fi ++ ++ if test "$BUILD_backtrace_execinfo_DSO" = "1"; then ++ OMPI_BUILD_backtrace_execinfo_DSO_TRUE= ++ OMPI_BUILD_backtrace_execinfo_DSO_FALSE='#' ++else ++ OMPI_BUILD_backtrace_execinfo_DSO_TRUE='#' ++ OMPI_BUILD_backtrace_execinfo_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component backtrace:printstack (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=backtrace ++ component=printstack ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_backtrace" ; then ++ if test "$DIRECT_backtrace" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component backtrace:printstack compile mode" >&5 ++echo $ECHO_N "checking for MCA component backtrace:printstack compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++for ac_header in ucontext.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++ # FreeBSD has backtrace in -lexecinfo, usually in libc ++ ++for ac_func in printstack ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ backtrace_printstack_happy="yes" ++else ++ backtrace_printstack_happy="no" ++fi ++done ++ ++ ++ if test "$backtrace_printstack_happy" = "yes"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=backtrace ++ component=printstack ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_backtrace" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_backtrace" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component backtrace:printstack can compile" >&5 ++echo $ECHO_N "checking if MCA component backtrace:printstack can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_backtrace" = "printstack" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"printstack\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"printstack\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_backtrace" ; then ++ if test "$DIRECT_backtrace" = "printstack" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"printstack\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"printstack\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components printstack" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_backtrace_printstack_DSO=1 ++else ++ BUILD_backtrace_printstack_DSO=0 ++fi ++ ++ if test "$BUILD_backtrace_printstack_DSO" = "1"; then ++ OMPI_BUILD_backtrace_printstack_DSO_TRUE= ++ OMPI_BUILD_backtrace_printstack_DSO_FALSE='#' ++else ++ OMPI_BUILD_backtrace_printstack_DSO_TRUE='#' ++ OMPI_BUILD_backtrace_printstack_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component backtrace:darwin (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=backtrace ++ component=darwin ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_backtrace" ; then ++ if test "$DIRECT_backtrace" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component backtrace:darwin compile mode" >&5 ++echo $ECHO_N "checking for MCA component backtrace:darwin compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++for ac_func in vm_read_overwrite ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ backtrace_darwin_happy="yes" ++else ++ backtrace_darwin_happy="no" ++fi ++done ++ ++ ++ case "${host}" in ++ i?86-*|x86_64*) ++ if test "$ac_cv_sizeof_long" = "8" ; then ++ backtrace_darwin_happy="no" ++ fi ++ esac ++ ++ if test "$backtrace_darwin_happy" = "yes" ; then ++ if test "$OMPI_C_GCC_INLINE_ASSEMBLY" = "0" ; then ++ backtrace_darwin_happy="no" ++ fi ++ fi ++ ++ if test "$backtrace_darwin_happy" = "yes"; then ++ ++for ac_header in mach/mach_vm.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++ ++ ++for ac_func in mach_vm_region mach_vm_read ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++fi ++ ++ ++ backtrace_darwin_CFLAGS="`echo $CFLAGS | sed 's/-pedantic//g'`" ++ ++ ++ # see if registers are prefixed with __ or not. On systems ++ # previous to Leopard, they were not. On leopard, it depends on ++ # whether code is compiled in UNIX03 mode or not. Check PPC even ++ # if on x86 because x86 always has PPC includes, but the other way ++ # around is not guaranteed. ++ if test "$backtrace_darwin_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for ppc_thread_state_t.srr0" >&5 ++echo $ECHO_N "checking for ppc_thread_state_t.srr0... $ECHO_C" >&6; } ++if test "${ac_cv_member_ppc_thread_state_t_srr0+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++ ++int ++main () ++{ ++static ppc_thread_state_t ac_aggr; ++if (ac_aggr.srr0) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_ppc_thread_state_t_srr0=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++ ++int ++main () ++{ ++static ppc_thread_state_t ac_aggr; ++if (sizeof ac_aggr.srr0) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_ppc_thread_state_t_srr0=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_member_ppc_thread_state_t_srr0=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t_srr0" >&5 ++echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t_srr0" >&6; } ++if test $ac_cv_member_ppc_thread_state_t_srr0 = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_PPC_THREAD_STATE_T_SRR0 1 ++_ACEOF ++ ++ ++fi ++ ++fi ++ ++ ++ if test "$backtrace_darwin_happy" = "yes"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=backtrace ++ component=darwin ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_backtrace" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_backtrace" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component backtrace:darwin can compile" >&5 ++echo $ECHO_N "checking if MCA component backtrace:darwin can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_backtrace" = "darwin" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_backtrace" ; then ++ if test "$DIRECT_backtrace" = "darwin" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components darwin" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_backtrace_darwin_DSO=1 ++else ++ BUILD_backtrace_darwin_DSO=0 ++fi ++ ++ if test "$BUILD_backtrace_darwin_DSO" = "1"; then ++ OMPI_BUILD_backtrace_darwin_DSO_TRUE= ++ OMPI_BUILD_backtrace_darwin_DSO_FALSE='#' ++else ++ OMPI_BUILD_backtrace_darwin_DSO_TRUE='#' ++ OMPI_BUILD_backtrace_darwin_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component backtrace:none (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=backtrace ++ component=none ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_backtrace" ; then ++ if test "$DIRECT_backtrace" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component backtrace:none compile mode" >&5 ++echo $ECHO_N "checking for MCA component backtrace:none compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ should_build=1 ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=backtrace ++ component=none ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_backtrace" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_backtrace" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component backtrace:none can compile" >&5 ++echo $ECHO_N "checking if MCA component backtrace:none can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_backtrace" = "none" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"none\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"none\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_backtrace" ; then ++ if test "$DIRECT_backtrace" = "none" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"none\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"none\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components none" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_backtrace_none_DSO=1 ++else ++ BUILD_backtrace_none_DSO=0 ++fi ++ ++ if test "$BUILD_backtrace_none_DSO" = "1"; then ++ OMPI_BUILD_backtrace_none_DSO_TRUE= ++ OMPI_BUILD_backtrace_none_DSO_FALSE='#' ++else ++ OMPI_BUILD_backtrace_none_DSO_TRUE='#' ++ OMPI_BUILD_backtrace_none_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ ++ ++ MCA_backtrace_ALL_COMPONENTS="$all_components" ++ MCA_backtrace_STATIC_COMPONENTS="$static_components" ++ MCA_backtrace_DSO_COMPONENTS="$dso_components" ++ MCA_backtrace_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_backtrace_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_backtrace_ALL_SUBDIRS="$MCA_backtrace_ALL_SUBDIRS mca/backtrace/$item" ++ done ++ ++ ++ ++ MCA_backtrace_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_backtrace_STATIC_SUBDIRS="$MCA_backtrace_STATIC_SUBDIRS mca/backtrace/$item" ++ done ++ ++ ++ ++ MCA_backtrace_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_backtrace_DSO_SUBDIRS="$MCA_backtrace_DSO_SUBDIRS mca/backtrace/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "backtrace" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "carto" = "common" ; then ++ MCA_opal_FRAMEWORKS="carto $MCA_opal_FRAMEWORKS" ++ MCA_opal_FRAMEWORKS_SUBDIRS="mca/carto $MCA_opal_FRAMEWORKS_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_carto_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_carto_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_carto_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS carto" ++ MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/carto" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_carto_ALL_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_carto_DSO_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_carto_STATIC_SUBDIRS)" ++ fi ++ if test "carto" != "common" ; then ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/carto/libmca_carto.la" ++ fi ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_carto_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework carto" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "carto" = "common" ; then ++ outdir=opal/mca/common ++ else ++ outdir=opal/mca/carto/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework carto" >&5 ++echo $ECHO_N "checking for no configure components in framework carto... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: auto_detect, file" >&5 ++echo "${ECHO_T}auto_detect, file" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework carto" >&5 ++echo $ECHO_N "checking for m4 configure components in framework carto... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component carto:auto_detect (no configuration)" ++ ++ ++ ++ ++ project=opal ++ framework=carto ++ component=auto_detect ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_carto" ; then ++ if test "$DIRECT_carto" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=opal ++ framework=carto ++ component=auto_detect ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_carto" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=opal ++ framework=carto ++ component=auto_detect ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_carto" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_carto" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component carto:auto_detect can compile" >&5 ++echo $ECHO_N "checking if MCA component carto:auto_detect can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_carto" = "auto_detect" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"auto_detect\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"auto_detect\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_carto" ; then ++ if test "$DIRECT_carto" = "auto_detect" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"auto_detect\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"auto_detect\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components auto_detect" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_carto_auto_detect_DSO=1 ++ else ++ BUILD_carto_auto_detect_DSO=0 ++ fi ++ if test "$BUILD_carto_auto_detect_DSO" = "1"; then ++ OMPI_BUILD_carto_auto_detect_DSO_TRUE= ++ OMPI_BUILD_carto_auto_detect_DSO_FALSE='#' ++else ++ OMPI_BUILD_carto_auto_detect_DSO_TRUE='#' ++ OMPI_BUILD_carto_auto_detect_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component carto:file (no configuration)" ++ ++ ++ ++ ++ project=opal ++ framework=carto ++ component=file ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_carto" ; then ++ if test "$DIRECT_carto" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=opal ++ framework=carto ++ component=file ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_carto" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=opal ++ framework=carto ++ component=file ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_carto" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_carto" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component carto:file can compile" >&5 ++echo $ECHO_N "checking if MCA component carto:file can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_carto" = "file" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"file\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"file\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_carto" ; then ++ if test "$DIRECT_carto" = "file" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"file\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"file\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components file" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_carto_file_DSO=1 ++ else ++ BUILD_carto_file_DSO=0 ++ fi ++ if test "$BUILD_carto_file_DSO" = "1"; then ++ OMPI_BUILD_carto_file_DSO_TRUE= ++ OMPI_BUILD_carto_file_DSO_FALSE='#' ++else ++ OMPI_BUILD_carto_file_DSO_TRUE='#' ++ OMPI_BUILD_carto_file_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/opal/mca/carto/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component carto:$component (need to configure)" ++ ++ ++ ++ ++ project=opal ++ framework=carto ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_carto" ; then ++ if test "$DIRECT_carto" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=opal ++ framework=carto ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_carto" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# opal/mca/carto/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="opal/mca/carto/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=opal ++ framework=carto ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_carto" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_carto" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component carto:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component carto:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_carto" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_carto" ; then ++ if test "$DIRECT_carto" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_carto_ALL_COMPONENTS="$all_components" ++ MCA_carto_STATIC_COMPONENTS="$static_components" ++ MCA_carto_DSO_COMPONENTS="$dso_components" ++ MCA_carto_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_carto_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_carto_ALL_SUBDIRS="$MCA_carto_ALL_SUBDIRS mca/carto/$item" ++ done ++ ++ ++ ++ MCA_carto_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_carto_STATIC_SUBDIRS="$MCA_carto_STATIC_SUBDIRS mca/carto/$item" ++ done ++ ++ ++ ++ MCA_carto_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_carto_DSO_SUBDIRS="$MCA_carto_DSO_SUBDIRS mca/carto/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "carto" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "crs" = "common" ; then ++ MCA_opal_FRAMEWORKS="crs $MCA_opal_FRAMEWORKS" ++ MCA_opal_FRAMEWORKS_SUBDIRS="mca/crs $MCA_opal_FRAMEWORKS_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_crs_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_crs_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_crs_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS crs" ++ MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/crs" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_crs_ALL_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_crs_DSO_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_crs_STATIC_SUBDIRS)" ++ fi ++ if test "crs" != "common" ; then ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/crs/libmca_crs.la" ++ fi ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_crs_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework crs" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "crs" = "common" ; then ++ outdir=opal/mca/common ++ else ++ outdir=opal/mca/crs/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework crs" >&5 ++echo $ECHO_N "checking for no configure components in framework crs... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: none" >&5 ++echo "${ECHO_T}none" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework crs" >&5 ++echo $ECHO_N "checking for m4 configure components in framework crs... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: blcr, self" >&5 ++echo "${ECHO_T}blcr, self" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component crs:none (no configuration)" ++ ++ ++ ++ ++ project=opal ++ framework=crs ++ component=none ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_crs" ; then ++ if test "$DIRECT_crs" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=opal ++ framework=crs ++ component=none ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_crs" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=opal ++ framework=crs ++ component=none ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_crs" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_crs" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component crs:none can compile" >&5 ++echo $ECHO_N "checking if MCA component crs:none can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_crs" = "none" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"none\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"none\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_crs" ; then ++ if test "$DIRECT_crs" = "none" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"none\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"none\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components none" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_crs_none_DSO=1 ++ else ++ BUILD_crs_none_DSO=0 ++ fi ++ if test "$BUILD_crs_none_DSO" = "1"; then ++ OMPI_BUILD_crs_none_DSO_TRUE= ++ OMPI_BUILD_crs_none_DSO_FALSE='#' ++else ++ OMPI_BUILD_crs_none_DSO_TRUE='#' ++ OMPI_BUILD_crs_none_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component crs:blcr (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=crs ++ component=blcr ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_crs" ; then ++ if test "$DIRECT_crs" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=opal ++ framework=crs ++ component=blcr ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_crs" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++# Check whether --with-blcr was given. ++if test "${with_blcr+set}" = set; then ++ withval=$with_blcr; ++fi ++ ++ ++# Check whether --with-blcr-libdir was given. ++if test "${with_blcr_libdir+set}" = set; then ++ withval=$with_blcr_libdir; ++fi ++ ++ ++ check_crs_blcr_good="no" ++ # If we do not want BLCR, then do not compile it ++ if test "$with_blcr" = "no"; then ++ should_build=0 ++ check_crs_blcr_good="no" ++else ++ check_crs_blcr_good="yes" ++fi ++ ++ ++ # If we do not want FT, don't compile this component ++ if test "$ompi_want_ft" = "0"; then ++ should_build=0 ++ check_crs_blcr_good="no" ++else ++ check_crs_blcr_good="yes" ++fi ++ ++ ++ # Defaults ++ check_crs_blcr_dir_msg="compiler default" ++ check_crs_blcr_libdir_msg="linker default" ++ check_crs_blcr_dir="" ++ check_crs_blcr_libdir="" ++ ++ # Determine the search paths for the headers and libraries ++ if test "$check_crs_blcr_good" != "yes"; then ++ should_build=0 ++else ++ if test ! -z "$with_blcr" -a "$with_blcr" != "yes"; then ++ check_crs_blcr_dir="$with_blcr" ++ check_crs_blcr_dir_msg="$with_blcr (from --with-blcr)" ++fi ++ ++ if test ! -z "$with_blcr_libdir" -a "$with_blcr_libdir" != "yes"; then ++ check_crs_blcr_libdir="$with_blcr_libdir" ++ check_crs_blcr_libdir_msg="$with_blcr_libdir (from --with-blcr-libdir)" ++fi ++ ++ ++fi ++ ++ ++ crs_blcr_save_CFLAGS="$CFLAGS" ++ crs_blcr_save_CPPFLAGS="$CPPFLAGS" ++ crs_blcr_save_LDFLAGS="$LDFLAGS" ++ crs_blcr_save_LIBS="$LIBS" ++ ++ crs_blcr_CFLAGS="$CFLAGS" ++ crs_blcr_CPPFLAGS="$CPPFLAGS" ++ crs_blcr_LDFLAGS="$LDFLAGS" ++ crs_blcr_LIBS="$LIBS" ++ ++ if test "$check_crs_blcr_good" != "yes"; then ++ should_build=0 ++else ++ { echo "$as_me:$LINENO: checking for BLCR dir" >&5 ++echo $ECHO_N "checking for BLCR dir... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $check_crs_blcr_dir_msg" >&5 ++echo "${ECHO_T}$check_crs_blcr_dir_msg" >&6; } ++ { echo "$as_me:$LINENO: checking for BLCR library dir" >&5 ++echo $ECHO_N "checking for BLCR library dir... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $check_crs_blcr_libdir_msg" >&5 ++echo "${ECHO_T}$check_crs_blcr_libdir_msg" >&6; } ++ ++ ompi_check_package_crs_blcr_check_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_crs_blcr_check_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_crs_blcr_check_save_LIBS="$LIBS" ++ ++ ompi_check_package_crs_blcr_check_orig_CPPFLAGS="$crs_blcr_check_CPPFLAGS" ++ ompi_check_package_crs_blcr_check_orig_LDFLAGS="$crs_blcr_check_LDFLAGS" ++ ompi_check_package_crs_blcr_check_orig_LIBS="$crs_blcr_check_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_libcr_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$check_crs_blcr_dir" = "/usr" -o "$check_crs_blcr_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_libcr_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for libcr.h" >&5 ++echo $ECHO_N "checking for libcr.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_libcr_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_libcr_h" >&5 ++echo "${ECHO_T}$ac_cv_header_libcr_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking libcr.h usability" >&5 ++echo $ECHO_N "checking libcr.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking libcr.h presence" >&5 ++echo $ECHO_N "checking libcr.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: libcr.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: libcr.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: libcr.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: libcr.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: libcr.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: libcr.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: libcr.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: libcr.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: libcr.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: libcr.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: libcr.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: libcr.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: libcr.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: libcr.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: libcr.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: libcr.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for libcr.h" >&5 ++echo $ECHO_N "checking for libcr.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_libcr_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_libcr_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_libcr_h" >&5 ++echo "${ECHO_T}$ac_cv_header_libcr_h" >&6; } ++ ++fi ++if test $ac_cv_header_libcr_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_libcr_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$check_crs_blcr_dir" != ""; then ++ crs_blcr_check_CPPFLAGS="$crs_blcr_check_CPPFLAGS -I$check_crs_blcr_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$check_crs_blcr_dir/include" ++fi ++ ++ if test "${ac_cv_header_libcr_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for libcr.h" >&5 ++echo $ECHO_N "checking for libcr.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_libcr_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_libcr_h" >&5 ++echo "${ECHO_T}$ac_cv_header_libcr_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking libcr.h usability" >&5 ++echo $ECHO_N "checking libcr.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking libcr.h presence" >&5 ++echo $ECHO_N "checking libcr.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: libcr.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: libcr.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: libcr.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: libcr.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: libcr.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: libcr.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: libcr.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: libcr.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: libcr.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: libcr.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: libcr.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: libcr.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: libcr.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: libcr.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: libcr.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: libcr.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for libcr.h" >&5 ++echo $ECHO_N "checking for libcr.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_libcr_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_libcr_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_libcr_h" >&5 ++echo "${ECHO_T}$ac_cv_header_libcr_h" >&6; } ++ ++fi ++if test $ac_cv_header_libcr_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_cr_cr_init ++ ompi_check_package_lib_happy="no" ++ if test "$check_crs_blcr_libdir" != ""; then ++ # libdir was specified - search only there ++ crs_blcr_check_LDFLAGS="$crs_blcr_check_LDFLAGS -L$check_crs_blcr_libdir" ++ LDFLAGS="$LDFLAGS -L$check_crs_blcr_libdir" ++ { echo "$as_me:$LINENO: checking for cr_init in -lcr" >&5 ++echo $ECHO_N "checking for cr_init in -lcr... $ECHO_C" >&6; } ++if test "${ac_cv_lib_cr_cr_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lcr $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cr_init (); ++int ++main () ++{ ++return cr_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_cr_cr_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_cr_cr_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_cr_cr_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_cr_cr_init" >&6; } ++if test $ac_cv_lib_cr_cr_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS" ++ crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS" ++ unset ac_cv_lib_cr_cr_init ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$check_crs_blcr_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for cr_init in -lcr" >&5 ++echo $ECHO_N "checking for cr_init in -lcr... $ECHO_C" >&6; } ++if test "${ac_cv_lib_cr_cr_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lcr $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cr_init (); ++int ++main () ++{ ++return cr_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_cr_cr_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_cr_cr_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_cr_cr_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_cr_cr_init" >&6; } ++if test $ac_cv_lib_cr_cr_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS" ++ crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS" ++ unset ac_cv_lib_cr_cr_init ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ crs_blcr_check_LDFLAGS="$crs_blcr_check_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for cr_init in -lcr" >&5 ++echo $ECHO_N "checking for cr_init in -lcr... $ECHO_C" >&6; } ++if test "${ac_cv_lib_cr_cr_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lcr $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cr_init (); ++int ++main () ++{ ++return cr_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_cr_cr_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_cr_cr_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_cr_cr_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_cr_cr_init" >&6; } ++if test $ac_cv_lib_cr_cr_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS" ++ crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS" ++ unset ac_cv_lib_cr_cr_init ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ crs_blcr_check_LDFLAGS="$crs_blcr_check_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for cr_init in -lcr" >&5 ++echo $ECHO_N "checking for cr_init in -lcr... $ECHO_C" >&6; } ++if test "${ac_cv_lib_cr_cr_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lcr $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cr_init (); ++int ++main () ++{ ++return cr_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_cr_cr_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_cr_cr_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_cr_cr_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_cr_cr_init" >&6; } ++if test $ac_cv_lib_cr_cr_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS" ++ crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS" ++ unset ac_cv_lib_cr_cr_init ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ crs_blcr_check_LIBS="-lcr " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_cr_cr_init ++ ompi_check_package_lib_happy="no" ++ if test "$check_crs_blcr_libdir" != ""; then ++ # libdir was specified - search only there ++ crs_blcr_check_LDFLAGS="$crs_blcr_check_LDFLAGS -L$check_crs_blcr_libdir" ++ LDFLAGS="$LDFLAGS -L$check_crs_blcr_libdir" ++ { echo "$as_me:$LINENO: checking for cr_init in -lcr" >&5 ++echo $ECHO_N "checking for cr_init in -lcr... $ECHO_C" >&6; } ++if test "${ac_cv_lib_cr_cr_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lcr $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cr_init (); ++int ++main () ++{ ++return cr_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_cr_cr_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_cr_cr_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_cr_cr_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_cr_cr_init" >&6; } ++if test $ac_cv_lib_cr_cr_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS" ++ crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS" ++ unset ac_cv_lib_cr_cr_init ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$check_crs_blcr_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for cr_init in -lcr" >&5 ++echo $ECHO_N "checking for cr_init in -lcr... $ECHO_C" >&6; } ++if test "${ac_cv_lib_cr_cr_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lcr $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cr_init (); ++int ++main () ++{ ++return cr_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_cr_cr_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_cr_cr_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_cr_cr_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_cr_cr_init" >&6; } ++if test $ac_cv_lib_cr_cr_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS" ++ crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS" ++ unset ac_cv_lib_cr_cr_init ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ crs_blcr_check_LDFLAGS="$crs_blcr_check_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for cr_init in -lcr" >&5 ++echo $ECHO_N "checking for cr_init in -lcr... $ECHO_C" >&6; } ++if test "${ac_cv_lib_cr_cr_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lcr $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cr_init (); ++int ++main () ++{ ++return cr_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_cr_cr_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_cr_cr_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_cr_cr_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_cr_cr_init" >&6; } ++if test $ac_cv_lib_cr_cr_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS" ++ crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS" ++ unset ac_cv_lib_cr_cr_init ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ crs_blcr_check_LDFLAGS="$crs_blcr_check_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for cr_init in -lcr" >&5 ++echo $ECHO_N "checking for cr_init in -lcr... $ECHO_C" >&6; } ++if test "${ac_cv_lib_cr_cr_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lcr $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cr_init (); ++int ++main () ++{ ++return cr_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_cr_cr_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_cr_cr_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_cr_cr_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_cr_cr_init" >&6; } ++if test $ac_cv_lib_cr_cr_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS" ++ crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS" ++ unset ac_cv_lib_cr_cr_init ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ crs_blcr_check_LIBS="-lcr " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ check_crs_blcr_good="yes" ++else ++ crs_blcr_check_CPPFLAGS="$ompi_check_package_crs_blcr_check_orig_CPPFLAGS" ++ crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS" ++ crs_blcr_check_LIBS="$ompi_check_package_crs_blcr_check_orig_LIBS" ++ check_crs_blcr_good="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_crs_blcr_check_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS" ++ LIBS="$ompi_check_package_crs_blcr_check_save_LIBS" ++ ++ ++fi ++ ++ ++ # Check to see if we found the BLCR libcr.h library ++ # If we did then add the arguments to the wrapper compiler ++ if test "$check_crs_blcr_good" != "yes"; then ++ should_build=0 ++else ++ ++ # ++ # Since BLCR libraries are not fully ISO99 C compliant ++ # -pedantic and -Wundef raise a bunch of warnings, so ++ # we just strip them off for this component ++ { echo "$as_me:$LINENO: WARNING: Removed -pedantic and -Wundef from CFLAGS for blcr component because libcr.h is not really ANSI C" >&5 ++echo "$as_me: WARNING: Removed -pedantic and -Wundef from CFLAGS for blcr component because libcr.h is not really ANSI C" >&2;} ++ # Strip off problematic arguments ++ crs_blcr_CFLAGS="`echo $crs_blcr_check_CFLAGS | sed 's/-pedantic//g'`" ++ crs_blcr_CFLAGS="`echo $crs_blcr_CFLAGS | sed 's/-Wundef//g'`" ++ crs_blcr_CPPFLAGS="`echo $crs_blcr_check_CPPFLAGS | sed 's/-pedantic//g'`" ++ crs_blcr_CPPFLAGS="`echo $crs_blcr_CPPFLAGS | sed 's/-Wundef//g'`" ++ crs_blcr_LDFLAGS="$crs_blcr_check_LDFLAGS" ++ crs_blcr_LIBS="$crs_blcr_check_LIBS" ++ # ++ # Add to wrapper compiler ++ crs_blcr_WRAPPER_EXTRA_CFLAGS="$crs_blcr_CFLAGS" ++ crs_blcr_WRAPPER_EXTRA_CPPFLAGS="$crs_blcr_CPPFLAGS" ++ crs_blcr_WRAPPER_EXTRA_LDFLAGS="$crs_blcr_LDFLAGS" ++ crs_blcr_WRAPPER_EXTRA_LIBS="$crs_blcr_LIBS" ++ should_build=1 ++fi ++ ++ ++ ++ # ++ # Check for version difference which may have: ++ # - working cr_request_file ++ # - working cr_request_checkpoint (which should be used instead of cr_request_file) ++ # - 'requester' parameter to checkpoint_info ++ # ++ if test "$check_crs_blcr_good" != "yes"; then ++ should_build=0 ++else ++ ++ # ++ # First look for the cr_request_file function ++ # ++ crs_blcr_have_working_cr_request=0 ++ { echo "$as_me:$LINENO: checking for BLCR working cr_request" >&5 ++echo $ECHO_N "checking for BLCR working cr_request... $ECHO_C" >&6; } ++ ++ { echo "$as_me:$LINENO: checking if we need -lcr for cr_request_file" >&5 ++echo $ECHO_N "checking if we need -lcr for cr_request_file... $ECHO_C" >&6; } ++if test "${ompi_cv_func_lib_cr_request_file_cr+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define cr_request_file to an innocuous variant, in case declares cr_request_file. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define cr_request_file innocuous_cr_request_file ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char cr_request_file (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef cr_request_file ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cr_request_file (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_cr_request_file || defined __stub___cr_request_file ++choke me ++#endif ++ ++int ++main () ++{ ++return cr_request_file (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_lib_cr_request_file_cr="no" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ LIBS_save="$LIBS" ++ LIBS="$LIBS -lcr" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define cr_request_file to an innocuous variant, in case declares cr_request_file. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define cr_request_file innocuous_cr_request_file ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char cr_request_file (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef cr_request_file ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cr_request_file (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_cr_request_file || defined __stub___cr_request_file ++choke me ++#endif ++ ++int ++main () ++{ ++return cr_request_file (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_lib_cr_request_file_cr="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_lib_cr_request_file_cr="not found" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LIBS="$LIBS_save" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_lib_cr_request_file_cr" >&5 ++echo "${ECHO_T}$ompi_cv_func_lib_cr_request_file_cr" >&6; } ++ if test "$ompi_cv_func_lib_cr_request_file_cr" = "yes"; then ++ LIBS="$LIBS -lcr" ++fi ++ ++ ++ # see if we actually have cr_request_file. Use AC_CHECK_FUNCS so that it ++ # does the glibc "not implemented" check. Will use the current LIBS, ++ # so will check in -lcr if we decided we needed it above ++ ++for ac_func in cr_request_file ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++#if CR_RELEASE_MAJOR <= 0 && CR_RELEASE_MINOR < 6 ++ #error Version earlier than 0.6.0 ++ #endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ crs_blcr_have_working_cr_request=1 ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ crs_blcr_have_working_cr_request=0 ++ { echo "$as_me:$LINENO: WARNING: This BLCR version does not contain a known working version of cr_request_file" >&5 ++echo "$as_me: WARNING: This BLCR version does not contain a known working version of cr_request_file" >&2;} ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++else ++ crs_blcr_have_working_cr_request=0 ++ { echo "$as_me:$LINENO: WARNING: This BLCR version does not contain the cr_request_file function" >&5 ++echo "$as_me: WARNING: This BLCR version does not contain the cr_request_file function" >&2;} ++ ++fi ++done ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define CRS_BLCR_HAVE_CR_REQUEST $crs_blcr_have_working_cr_request ++_ACEOF ++ ++ ++ # ++ # Look for the cr_request_checkpoint function ++ # ++ crs_blcr_have_cr_request_checkpoint=0 ++ { echo "$as_me:$LINENO: checking for BLCR cr_request_checkpoint" >&5 ++echo $ECHO_N "checking for BLCR cr_request_checkpoint... $ECHO_C" >&6; } ++ ++ { echo "$as_me:$LINENO: checking if we need -lcr for cr_request_checkpoint" >&5 ++echo $ECHO_N "checking if we need -lcr for cr_request_checkpoint... $ECHO_C" >&6; } ++if test "${ompi_cv_func_lib_cr_request_checkpoint_cr+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define cr_request_checkpoint to an innocuous variant, in case declares cr_request_checkpoint. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define cr_request_checkpoint innocuous_cr_request_checkpoint ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char cr_request_checkpoint (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef cr_request_checkpoint ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cr_request_checkpoint (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_cr_request_checkpoint || defined __stub___cr_request_checkpoint ++choke me ++#endif ++ ++int ++main () ++{ ++return cr_request_checkpoint (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_lib_cr_request_checkpoint_cr="no" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ LIBS_save="$LIBS" ++ LIBS="$LIBS -lcr" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define cr_request_checkpoint to an innocuous variant, in case declares cr_request_checkpoint. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define cr_request_checkpoint innocuous_cr_request_checkpoint ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char cr_request_checkpoint (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef cr_request_checkpoint ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cr_request_checkpoint (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_cr_request_checkpoint || defined __stub___cr_request_checkpoint ++choke me ++#endif ++ ++int ++main () ++{ ++return cr_request_checkpoint (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_lib_cr_request_checkpoint_cr="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_lib_cr_request_checkpoint_cr="not found" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LIBS="$LIBS_save" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_lib_cr_request_checkpoint_cr" >&5 ++echo "${ECHO_T}$ompi_cv_func_lib_cr_request_checkpoint_cr" >&6; } ++ if test "$ompi_cv_func_lib_cr_request_checkpoint_cr" = "yes"; then ++ LIBS="$LIBS -lcr" ++fi ++ ++ ++ # see if we actually have cr_request_checkpoint. Use AC_CHECK_FUNCS so that it ++ # does the glibc "not implemented" check. Will use the current LIBS, ++ # so will check in -lcr if we decided we needed it above ++ ++for ac_func in cr_request_checkpoint ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ crs_blcr_have_cr_request_checkpoint=1 ++ ++else ++ crs_blcr_have_cr_request_checkpoint=0 ++ { echo "$as_me:$LINENO: WARNING: This BLCR version does not contain the cr_request_checkpoint function" >&5 ++echo "$as_me: WARNING: This BLCR version does not contain the cr_request_checkpoint function" >&2;} ++ ++fi ++done ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define CRS_BLCR_HAVE_CR_REQUEST_CHECKPOINT $crs_blcr_have_cr_request_checkpoint ++_ACEOF ++ ++ ++ # ++ # Look for the cr_checkpoint_info.requester member ++ # ++ crs_blcr_have_info_requester=0 ++ { echo "$as_me:$LINENO: checking for struct cr_checkpoint_info.requester" >&5 ++echo $ECHO_N "checking for struct cr_checkpoint_info.requester... $ECHO_C" >&6; } ++if test "${ac_cv_member_struct_cr_checkpoint_info_requester+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++static struct cr_checkpoint_info ac_aggr; ++if (ac_aggr.requester) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_struct_cr_checkpoint_info_requester=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++static struct cr_checkpoint_info ac_aggr; ++if (sizeof ac_aggr.requester) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_struct_cr_checkpoint_info_requester=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_member_struct_cr_checkpoint_info_requester=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_cr_checkpoint_info_requester" >&5 ++echo "${ECHO_T}$ac_cv_member_struct_cr_checkpoint_info_requester" >&6; } ++if test $ac_cv_member_struct_cr_checkpoint_info_requester = yes; then ++ crs_blcr_have_info_requester=1 ++else ++ { echo "$as_me:$LINENO: WARNING: This BLCR version does not contain a 'requester' member of the 'cr_checkpoint_info' struct" >&5 ++echo "$as_me: WARNING: This BLCR version does not contain a 'requester' member of the 'cr_checkpoint_info' struct" >&2;} ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define CRS_BLCR_HAVE_INFO_REQUESTER $crs_blcr_have_info_requester ++_ACEOF ++ ++ should_build=1 ++fi ++ ++ ++ CFLAGS="$crs_blcr_save_CFLAGS" ++ CPPFLAGS="$crs_blcr_save_CPPFLAGS" ++ LDFLAGS="$crs_blcr_save_LDFLAGS" ++ LIBS="$crs_blcr_save_LIBS" ++ ++ # ++ if test "$check_crs_blcr_good" = "yes"; then ++ ++ ++ ++ ++ ++ ++ ++ should_build=1 ++else ++ if test ! -z "$with_blcr" -a "$with_blcr" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: BLCR support requested but not found. Perhaps you need to specify the location of the BLCR libraries." >&5 ++echo "$as_me: WARNING: BLCR support requested but not found. Perhaps you need to specify the location of the BLCR libraries." >&2;} ++ { { echo "$as_me:$LINENO: error: Aborting." >&5 ++echo "$as_me: error: Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++fi ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=crs ++ component=blcr ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_crs" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_crs" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component crs:blcr can compile" >&5 ++echo $ECHO_N "checking if MCA component crs:blcr can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_crs" = "blcr" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"blcr\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"blcr\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_crs" ; then ++ if test "$DIRECT_crs" = "blcr" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"blcr\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"blcr\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components blcr" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_crs_blcr_DSO=1 ++else ++ BUILD_crs_blcr_DSO=0 ++fi ++ ++ if test "$BUILD_crs_blcr_DSO" = "1"; then ++ OMPI_BUILD_crs_blcr_DSO_TRUE= ++ OMPI_BUILD_crs_blcr_DSO_FALSE='#' ++else ++ OMPI_BUILD_crs_blcr_DSO_TRUE='#' ++ OMPI_BUILD_crs_blcr_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component crs:self (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=crs ++ component=self ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_crs" ; then ++ if test "$DIRECT_crs" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=opal ++ framework=crs ++ component=self ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_crs" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ # If we don't want FT, don't compile this component ++ if test "$ompi_want_ft" = "1"; then ++ crs_self_good="yes" ++else ++ should_build=0 ++fi ++ ++ ++ # We need to be able to dlopen the executable for this component to work. ++ if test "$OMPI_ENABLE_DLOPEN_SUPPORT" = "1" -a "$crs_self_good" = "yes"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=crs ++ component=self ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_crs" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_crs" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component crs:self can compile" >&5 ++echo $ECHO_N "checking if MCA component crs:self can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_crs" = "self" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_crs" ; then ++ if test "$DIRECT_crs" = "self" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components self" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_crs_self_DSO=1 ++else ++ BUILD_crs_self_DSO=0 ++fi ++ ++ if test "$BUILD_crs_self_DSO" = "1"; then ++ OMPI_BUILD_crs_self_DSO_TRUE= ++ OMPI_BUILD_crs_self_DSO_FALSE='#' ++else ++ OMPI_BUILD_crs_self_DSO_TRUE='#' ++ OMPI_BUILD_crs_self_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/opal/mca/crs/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component crs:$component (need to configure)" ++ ++ ++ ++ ++ project=opal ++ framework=crs ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_crs" ; then ++ if test "$DIRECT_crs" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=opal ++ framework=crs ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_crs" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# opal/mca/crs/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="opal/mca/crs/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=opal ++ framework=crs ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_crs" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_crs" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component crs:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component crs:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_crs" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_crs" ; then ++ if test "$DIRECT_crs" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_crs_ALL_COMPONENTS="$all_components" ++ MCA_crs_STATIC_COMPONENTS="$static_components" ++ MCA_crs_DSO_COMPONENTS="$dso_components" ++ MCA_crs_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_crs_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_crs_ALL_SUBDIRS="$MCA_crs_ALL_SUBDIRS mca/crs/$item" ++ done ++ ++ ++ ++ MCA_crs_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_crs_STATIC_SUBDIRS="$MCA_crs_STATIC_SUBDIRS mca/crs/$item" ++ done ++ ++ ++ ++ MCA_crs_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_crs_DSO_SUBDIRS="$MCA_crs_DSO_SUBDIRS mca/crs/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "crs" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "installdirs" = "common" ; then ++ MCA_opal_FRAMEWORKS="installdirs $MCA_opal_FRAMEWORKS" ++ MCA_opal_FRAMEWORKS_SUBDIRS="mca/installdirs $MCA_opal_FRAMEWORKS_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_installdirs_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_installdirs_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_installdirs_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS installdirs" ++ MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/installdirs" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_installdirs_ALL_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_installdirs_DSO_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_installdirs_STATIC_SUBDIRS)" ++ fi ++ if test "installdirs" != "common" ; then ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/installdirs/libmca_installdirs.la" ++ fi ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_installdirs_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework installdirs" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "installdirs" = "common" ; then ++ outdir=opal/mca/common ++ else ++ outdir=opal/mca/installdirs/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework installdirs" >&5 ++echo $ECHO_N "checking for no configure components in framework installdirs... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework installdirs" >&5 ++echo $ECHO_N "checking for m4 configure components in framework installdirs... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: env, config" >&5 ++echo "${ECHO_T}env, config" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component installdirs:env (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=installdirs ++ component=env ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_installdirs" ; then ++ if test "$DIRECT_installdirs" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component installdirs:env compile mode" >&5 ++echo $ECHO_N "checking for MCA component installdirs:env compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ should_build=1 ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=installdirs ++ component=env ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_installdirs" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_installdirs" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component installdirs:env can compile" >&5 ++echo $ECHO_N "checking if MCA component installdirs:env can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_installdirs" = "env" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"env\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_installdirs" ; then ++ if test "$DIRECT_installdirs" = "env" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"env\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components env" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_installdirs_env_DSO=1 ++else ++ BUILD_installdirs_env_DSO=0 ++fi ++ ++ if test "$BUILD_installdirs_env_DSO" = "1"; then ++ OMPI_BUILD_installdirs_env_DSO_TRUE= ++ OMPI_BUILD_installdirs_env_DSO_FALSE='#' ++else ++ OMPI_BUILD_installdirs_env_DSO_TRUE='#' ++ OMPI_BUILD_installdirs_env_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component installdirs:config (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=installdirs ++ component=config ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_installdirs" ; then ++ if test "$DIRECT_installdirs" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component installdirs:config compile mode" >&5 ++echo $ECHO_N "checking for MCA component installdirs:config compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ac_config_files="$ac_config_files opal/mca/installdirs/config/install_dirs.h" ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=installdirs ++ component=config ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_installdirs" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_installdirs" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component installdirs:config can compile" >&5 ++echo $ECHO_N "checking if MCA component installdirs:config can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_installdirs" = "config" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"config\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"config\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_installdirs" ; then ++ if test "$DIRECT_installdirs" = "config" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"config\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"config\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components config" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_installdirs_config_DSO=1 ++else ++ BUILD_installdirs_config_DSO=0 ++fi ++ ++ if test "$BUILD_installdirs_config_DSO" = "1"; then ++ OMPI_BUILD_installdirs_config_DSO_TRUE= ++ OMPI_BUILD_installdirs_config_DSO_FALSE='#' ++else ++ OMPI_BUILD_installdirs_config_DSO_TRUE='#' ++ OMPI_BUILD_installdirs_config_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/opal/mca/installdirs/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component installdirs:$component (need to configure)" ++ ++ ++ ++ ++ project=opal ++ framework=installdirs ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_installdirs" ; then ++ if test "$DIRECT_installdirs" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=opal ++ framework=installdirs ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_installdirs" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# opal/mca/installdirs/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="opal/mca/installdirs/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=opal ++ framework=installdirs ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_installdirs" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_installdirs" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component installdirs:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component installdirs:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_installdirs" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_installdirs" ; then ++ if test "$DIRECT_installdirs" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_installdirs_ALL_COMPONENTS="$all_components" ++ MCA_installdirs_STATIC_COMPONENTS="$static_components" ++ MCA_installdirs_DSO_COMPONENTS="$dso_components" ++ MCA_installdirs_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_installdirs_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_installdirs_ALL_SUBDIRS="$MCA_installdirs_ALL_SUBDIRS mca/installdirs/$item" ++ done ++ ++ ++ ++ MCA_installdirs_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_installdirs_STATIC_SUBDIRS="$MCA_installdirs_STATIC_SUBDIRS mca/installdirs/$item" ++ done ++ ++ ++ ++ MCA_installdirs_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_installdirs_DSO_SUBDIRS="$MCA_installdirs_DSO_SUBDIRS mca/installdirs/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "installdirs" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "maffinity" = "common" ; then ++ MCA_opal_FRAMEWORKS="maffinity $MCA_opal_FRAMEWORKS" ++ MCA_opal_FRAMEWORKS_SUBDIRS="mca/maffinity $MCA_opal_FRAMEWORKS_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_maffinity_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_maffinity_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_maffinity_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS maffinity" ++ MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/maffinity" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_maffinity_ALL_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_maffinity_DSO_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_maffinity_STATIC_SUBDIRS)" ++ fi ++ if test "maffinity" != "common" ; then ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/maffinity/libmca_maffinity.la" ++ fi ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_maffinity_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework maffinity" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "maffinity" = "common" ; then ++ outdir=opal/mca/common ++ else ++ outdir=opal/mca/maffinity/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework maffinity" >&5 ++echo $ECHO_N "checking for no configure components in framework maffinity... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: first_use" >&5 ++echo "${ECHO_T}first_use" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework maffinity" >&5 ++echo $ECHO_N "checking for m4 configure components in framework maffinity... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: libnuma" >&5 ++echo "${ECHO_T}libnuma" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component maffinity:first_use (no configuration)" ++ ++ ++ ++ ++ project=opal ++ framework=maffinity ++ component=first_use ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_maffinity" ; then ++ if test "$DIRECT_maffinity" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=opal ++ framework=maffinity ++ component=first_use ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_maffinity" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=opal ++ framework=maffinity ++ component=first_use ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_maffinity" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_maffinity" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component maffinity:first_use can compile" >&5 ++echo $ECHO_N "checking if MCA component maffinity:first_use can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_maffinity" = "first_use" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"first_use\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"first_use\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_maffinity" ; then ++ if test "$DIRECT_maffinity" = "first_use" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"first_use\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"first_use\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components first_use" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_maffinity_first_use_DSO=1 ++ else ++ BUILD_maffinity_first_use_DSO=0 ++ fi ++ if test "$BUILD_maffinity_first_use_DSO" = "1"; then ++ OMPI_BUILD_maffinity_first_use_DSO_TRUE= ++ OMPI_BUILD_maffinity_first_use_DSO_FALSE='#' ++else ++ OMPI_BUILD_maffinity_first_use_DSO_TRUE='#' ++ OMPI_BUILD_maffinity_first_use_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component maffinity:libnuma (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=maffinity ++ component=libnuma ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_maffinity" ; then ++ if test "$DIRECT_maffinity" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=opal ++ framework=maffinity ++ component=libnuma ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_maffinity" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++# Check whether --with-libnuma was given. ++if test "${with_libnuma+set}" = set; then ++ withval=$with_libnuma; ++fi ++ ++ ++ if test "$with_libnuma" = "no"; then ++ maffinity_libnuma_happy="no" ++else ++ maffinity_libnuma_happy="yes" ++fi ++ ++ ++ if test "$maffinity_libnuma_happy" = "yes"; then ++ ++ ompi_check_package_maffinity_libnuma_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_maffinity_libnuma_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_maffinity_libnuma_save_LIBS="$LIBS" ++ ++ ompi_check_package_maffinity_libnuma_orig_CPPFLAGS="$maffinity_libnuma_CPPFLAGS" ++ ompi_check_package_maffinity_libnuma_orig_LDFLAGS="$maffinity_libnuma_LDFLAGS" ++ ompi_check_package_maffinity_libnuma_orig_LIBS="$maffinity_libnuma_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_numa_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$with_libnuma" = "/usr" -o "$with_libnuma" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_numa_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for numa.h" >&5 ++echo $ECHO_N "checking for numa.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_numa_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_numa_h" >&5 ++echo "${ECHO_T}$ac_cv_header_numa_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking numa.h usability" >&5 ++echo $ECHO_N "checking numa.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking numa.h presence" >&5 ++echo $ECHO_N "checking numa.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: numa.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: numa.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: numa.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: numa.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: numa.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: numa.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: numa.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: numa.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: numa.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: numa.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: numa.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: numa.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: numa.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: numa.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: numa.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: numa.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for numa.h" >&5 ++echo $ECHO_N "checking for numa.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_numa_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_numa_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_numa_h" >&5 ++echo "${ECHO_T}$ac_cv_header_numa_h" >&6; } ++ ++fi ++if test $ac_cv_header_numa_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_numa_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$with_libnuma" != ""; then ++ maffinity_libnuma_CPPFLAGS="$maffinity_libnuma_CPPFLAGS -I$with_libnuma/include" ++ CPPFLAGS="$CPPFLAGS -I$with_libnuma/include" ++fi ++ ++ if test "${ac_cv_header_numa_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for numa.h" >&5 ++echo $ECHO_N "checking for numa.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_numa_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_numa_h" >&5 ++echo "${ECHO_T}$ac_cv_header_numa_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking numa.h usability" >&5 ++echo $ECHO_N "checking numa.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking numa.h presence" >&5 ++echo $ECHO_N "checking numa.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: numa.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: numa.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: numa.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: numa.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: numa.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: numa.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: numa.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: numa.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: numa.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: numa.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: numa.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: numa.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: numa.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: numa.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: numa.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: numa.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for numa.h" >&5 ++echo $ECHO_N "checking for numa.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_numa_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_numa_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_numa_h" >&5 ++echo "${ECHO_T}$ac_cv_header_numa_h" >&6; } ++ ++fi ++if test $ac_cv_header_numa_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_numa_numa_available ++ ompi_check_package_lib_happy="no" ++ if test "" != ""; then ++ # libdir was specified - search only there ++ maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L" ++ LDFLAGS="$LDFLAGS -L" ++ { echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5 ++echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6; } ++if test "${ac_cv_lib_numa_numa_available+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lnuma $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char numa_available (); ++int ++main () ++{ ++return numa_available (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_numa_numa_available=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_numa_numa_available=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5 ++echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6; } ++if test $ac_cv_lib_numa_numa_available = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS" ++ maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS" ++ unset ac_cv_lib_numa_numa_available ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$with_libnuma" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5 ++echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6; } ++if test "${ac_cv_lib_numa_numa_available+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lnuma $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char numa_available (); ++int ++main () ++{ ++return numa_available (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_numa_numa_available=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_numa_numa_available=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5 ++echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6; } ++if test $ac_cv_lib_numa_numa_available = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS" ++ maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS" ++ unset ac_cv_lib_numa_numa_available ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5 ++echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6; } ++if test "${ac_cv_lib_numa_numa_available+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lnuma $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char numa_available (); ++int ++main () ++{ ++return numa_available (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_numa_numa_available=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_numa_numa_available=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5 ++echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6; } ++if test $ac_cv_lib_numa_numa_available = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS" ++ maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS" ++ unset ac_cv_lib_numa_numa_available ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5 ++echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6; } ++if test "${ac_cv_lib_numa_numa_available+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lnuma $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char numa_available (); ++int ++main () ++{ ++return numa_available (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_numa_numa_available=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_numa_numa_available=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5 ++echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6; } ++if test $ac_cv_lib_numa_numa_available = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS" ++ maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS" ++ unset ac_cv_lib_numa_numa_available ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ maffinity_libnuma_LIBS="-lnuma " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_numa_numa_available ++ ompi_check_package_lib_happy="no" ++ if test "" != ""; then ++ # libdir was specified - search only there ++ maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L" ++ LDFLAGS="$LDFLAGS -L" ++ { echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5 ++echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6; } ++if test "${ac_cv_lib_numa_numa_available+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lnuma $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char numa_available (); ++int ++main () ++{ ++return numa_available (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_numa_numa_available=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_numa_numa_available=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5 ++echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6; } ++if test $ac_cv_lib_numa_numa_available = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS" ++ maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS" ++ unset ac_cv_lib_numa_numa_available ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$with_libnuma" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5 ++echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6; } ++if test "${ac_cv_lib_numa_numa_available+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lnuma $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char numa_available (); ++int ++main () ++{ ++return numa_available (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_numa_numa_available=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_numa_numa_available=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5 ++echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6; } ++if test $ac_cv_lib_numa_numa_available = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS" ++ maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS" ++ unset ac_cv_lib_numa_numa_available ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5 ++echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6; } ++if test "${ac_cv_lib_numa_numa_available+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lnuma $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char numa_available (); ++int ++main () ++{ ++return numa_available (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_numa_numa_available=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_numa_numa_available=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5 ++echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6; } ++if test $ac_cv_lib_numa_numa_available = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS" ++ maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS" ++ unset ac_cv_lib_numa_numa_available ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5 ++echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6; } ++if test "${ac_cv_lib_numa_numa_available+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lnuma $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char numa_available (); ++int ++main () ++{ ++return numa_available (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_numa_numa_available=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_numa_numa_available=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5 ++echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6; } ++if test $ac_cv_lib_numa_numa_available = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS" ++ maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS" ++ unset ac_cv_lib_numa_numa_available ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ maffinity_libnuma_LIBS="-lnuma " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ maffinity_libnuma_happy="yes" ++else ++ maffinity_libnuma_CPPFLAGS="$ompi_check_package_maffinity_libnuma_orig_CPPFLAGS" ++ maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS" ++ maffinity_libnuma_LIBS="$ompi_check_package_maffinity_libnuma_orig_LIBS" ++ maffinity_libnuma_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_maffinity_libnuma_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS" ++ LIBS="$ompi_check_package_maffinity_libnuma_save_LIBS" ++ ++fi ++ ++ ++ if test "$maffinity_libnuma_happy" = "yes"; then ++ maffinity_libnuma_WRAPPER_EXTRA_LDFLAGS="$maffinity_libnuma_LDFLAGS" ++ maffinity_libnuma_WRAPPER_EXTRA_LIBS="$maffinity_libnuma_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # sanity check ++ if test "$maffinity_libnuma_happy" = "no"; then ++ if test "$with_libnuma" != "no" -a ! -z "$with_libnuma"; then ++ { { echo "$as_me:$LINENO: error: maffinity:libnuma requested but not found. Aborting" >&5 ++echo "$as_me: error: maffinity:libnuma requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++fi ++ ++ ++ # Check for MPOL_MF_MOVE ++ if test "$maffinity_libnuma_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking whether MPOL_MF_MOVE is declared" >&5 ++echo $ECHO_N "checking whether MPOL_MF_MOVE is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl_MPOL_MF_MOVE+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++int ++main () ++{ ++#ifndef MPOL_MF_MOVE ++ (void) MPOL_MF_MOVE; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl_MPOL_MF_MOVE=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl_MPOL_MF_MOVE=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_MPOL_MF_MOVE" >&5 ++echo "${ECHO_T}$ac_cv_have_decl_MPOL_MF_MOVE" >&6; } ++if test $ac_cv_have_decl_MPOL_MF_MOVE = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_MPOL_MF_MOVE 1 ++_ACEOF ++ ++ ++else ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_MPOL_MF_MOVE 0 ++_ACEOF ++ ++ ++fi ++ ++ ++fi ++ ++ ++ # substitute in the things needed to build libnuma ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=maffinity ++ component=libnuma ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_maffinity" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_maffinity" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component maffinity:libnuma can compile" >&5 ++echo $ECHO_N "checking if MCA component maffinity:libnuma can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_maffinity" = "libnuma" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"libnuma\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"libnuma\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_maffinity" ; then ++ if test "$DIRECT_maffinity" = "libnuma" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"libnuma\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"libnuma\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components libnuma" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_maffinity_libnuma_DSO=1 ++else ++ BUILD_maffinity_libnuma_DSO=0 ++fi ++ ++ if test "$BUILD_maffinity_libnuma_DSO" = "1"; then ++ OMPI_BUILD_maffinity_libnuma_DSO_TRUE= ++ OMPI_BUILD_maffinity_libnuma_DSO_FALSE='#' ++else ++ OMPI_BUILD_maffinity_libnuma_DSO_TRUE='#' ++ OMPI_BUILD_maffinity_libnuma_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/opal/mca/maffinity/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component maffinity:$component (need to configure)" ++ ++ ++ ++ ++ project=opal ++ framework=maffinity ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_maffinity" ; then ++ if test "$DIRECT_maffinity" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=opal ++ framework=maffinity ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_maffinity" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# opal/mca/maffinity/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="opal/mca/maffinity/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=opal ++ framework=maffinity ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_maffinity" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_maffinity" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component maffinity:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component maffinity:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_maffinity" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_maffinity" ; then ++ if test "$DIRECT_maffinity" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_maffinity_ALL_COMPONENTS="$all_components" ++ MCA_maffinity_STATIC_COMPONENTS="$static_components" ++ MCA_maffinity_DSO_COMPONENTS="$dso_components" ++ MCA_maffinity_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_maffinity_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_maffinity_ALL_SUBDIRS="$MCA_maffinity_ALL_SUBDIRS mca/maffinity/$item" ++ done ++ ++ ++ ++ MCA_maffinity_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_maffinity_STATIC_SUBDIRS="$MCA_maffinity_STATIC_SUBDIRS mca/maffinity/$item" ++ done ++ ++ ++ ++ MCA_maffinity_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_maffinity_DSO_SUBDIRS="$MCA_maffinity_DSO_SUBDIRS mca/maffinity/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "maffinity" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "memchecker" = "common" ; then ++ MCA_opal_FRAMEWORKS="memchecker $MCA_opal_FRAMEWORKS" ++ MCA_opal_FRAMEWORKS_SUBDIRS="mca/memchecker $MCA_opal_FRAMEWORKS_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_memchecker_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_memchecker_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_memchecker_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS memchecker" ++ MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/memchecker" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_memchecker_ALL_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_memchecker_DSO_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_memchecker_STATIC_SUBDIRS)" ++ fi ++ if test "memchecker" != "common" ; then ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/memchecker/libmca_memchecker.la" ++ fi ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_memchecker_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Pre-configuring the framework memchecker" ++ ++ { echo "$as_me:$LINENO: checking if --enable-memchecker was specified" >&5 ++echo $ECHO_N "checking if --enable-memchecker was specified... $ECHO_C" >&6; } ++ # Check whether --enable-memchecker was given. ++if test "${enable_memchecker+set}" = set; then ++ enableval=$enable_memchecker; ++fi ++ ++ if test "$enable_memchecker" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ WANT_MEMCHECKER=1 ++ else ++ { echo "$as_me:$LINENO: result: no (adding \"memchecker\" to --enable-mca-no-build list)" >&5 ++echo "${ECHO_T}no (adding \"memchecker\" to --enable-mca-no-build list)" >&6; } ++ WANT_MEMCHECKER=0 ++ ++ # Setting this environment variable causes ++ # MCA_COMONENT_BUILD_CHECK (in ompi_mca.m4, invoked by ++ # MCA_CONFIGURE_FRAMEWORK, below) to rule that the component ++ # should not be built. It is effectively the same as adding ++ # "memchecker" to the --enable-mca-no-build list. ++ DISABLE_memchecker=1 ++ fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_WANT_MEMCHECKER $WANT_MEMCHECKER ++_ACEOF ++ ++ if test "$WANT_MEMCHECKER" = "1"; then ++ OMPI_WANT_MEMCHECKER_TRUE= ++ OMPI_WANT_MEMCHECKER_FALSE='#' ++else ++ OMPI_WANT_MEMCHECKER_TRUE='#' ++ OMPI_WANT_MEMCHECKER_FALSE= ++fi ++ ++ ++ # first, compile all the components ++ ++ ompi_show_subsubtitle "Configuring MCA framework memchecker" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "memchecker" = "common" ; then ++ outdir=opal/mca/common ++ else ++ outdir=opal/mca/memchecker/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework memchecker" >&5 ++echo $ECHO_N "checking for no configure components in framework memchecker... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework memchecker" >&5 ++echo $ECHO_N "checking for m4 configure components in framework memchecker... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: valgrind" >&5 ++echo "${ECHO_T}valgrind" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component memchecker:valgrind (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=memchecker ++ component=valgrind ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_memchecker" ; then ++ if test "$DIRECT_memchecker" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component memchecker:valgrind compile mode" >&5 ++echo $ECHO_N "checking for MCA component memchecker:valgrind compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in opal_memchecker_valgrind_save_CPPFLAGS opal_memchecker_valgrind_happy opal_memchecker_valgrind_CPPFLAGS; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"opal_memchecker_valgrind_save_CPPFLAGS opal_memchecker_valgrind_happy opal_memchecker_valgrind_CPPFLAGS\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ ++# Check whether --with-valgrind was given. ++if test "${with_valgrind+set}" = set; then ++ withval=$with_valgrind; ++fi ++ ++ ++ memchecker_valgrind_CPPFLAGS= ++ opal_memchecker_valgrind_CPPFLAGS= ++ opal_memchecker_valgrind_save_CPPFLAGS="$CPPFLAGS" ++ opal_memchecker_valgrind_happy=no ++ if test "$with_valgrind" != "no"; then ++ if test ! -z "$with_valgrind" -a "$with_valgrind" != "yes"; then ++ CPPFLAGS="$CPPFLAGS -I$with_valgrind/include" ++ opal_memchecker_valgrind_CPPFLAGS="-I$with_valgrind/include" ++fi ++ ++ ++for ac_header in valgrind/valgrind.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ { echo "$as_me:$LINENO: checking for VALGRIND_CHECK_MEM_IS_ADDRESSABLE" >&5 ++echo $ECHO_N "checking for VALGRIND_CHECK_MEM_IS_ADDRESSABLE... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include "valgrind/memcheck.h" ++ ++int ++main () ++{ ++char buffer = 0xff; ++ VALGRIND_CHECK_MEM_IS_ADDRESSABLE(&buffer, sizeof(buffer)); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ opal_memchecker_valgrind_happy=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { { echo "$as_me:$LINENO: error: Need Valgrind version 3.2.0 or later. Can not build component." >&5 ++echo "$as_me: error: Need Valgrind version 3.2.0 or later. Can not build component." >&2;} ++ { (exit 1); exit 1; }; } ++ { echo "$as_me:$LINENO: result: cross-compiling; assume yes...?" >&5 ++echo "${ECHO_T}cross-compiling; assume yes...?" >&6; } ++ { echo "$as_me:$LINENO: WARNING: OMPI will fail to compile if you do not have Valgrind version 3.2.0 or later" >&5 ++echo "$as_me: WARNING: OMPI will fail to compile if you do not have Valgrind version 3.2.0 or later" >&2;} ++ opal_memchecker_valgrind_happy=yes ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext, ++ ++else ++ { echo "$as_me:$LINENO: WARNING: valgrind.h not found" >&5 ++echo "$as_me: WARNING: valgrind.h not found" >&2;} ++ { echo "$as_me:$LINENO: WARNING: Cannot compile this component" >&5 ++echo "$as_me: WARNING: Cannot compile this component" >&2;} ++fi ++ ++done ++ ++fi ++ ++ CPPFLAGS="$opal_memchecker_valgrind_save_CPPFLAGS" ++ ++ if test "$opal_memchecker_valgrind_happy" = "yes"; then ++ memchecker_valgrind_CPPFLAGS=$opal_memchecker_valgrind_CPPFLAGS ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=memchecker ++ component=valgrind ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_memchecker" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_memchecker" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component memchecker:valgrind can compile" >&5 ++echo $ECHO_N "checking if MCA component memchecker:valgrind can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_memchecker" = "valgrind" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"valgrind\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"valgrind\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_memchecker" ; then ++ if test "$DIRECT_memchecker" = "valgrind" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"valgrind\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"valgrind\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components valgrind" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_memchecker_valgrind_DSO=1 ++else ++ BUILD_memchecker_valgrind_DSO=0 ++fi ++ ++ if test "$BUILD_memchecker_valgrind_DSO" = "1"; then ++ OMPI_BUILD_memchecker_valgrind_DSO_TRUE= ++ OMPI_BUILD_memchecker_valgrind_DSO_FALSE='#' ++else ++ OMPI_BUILD_memchecker_valgrind_DSO_TRUE='#' ++ OMPI_BUILD_memchecker_valgrind_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ ++ ++ MCA_memchecker_ALL_COMPONENTS="$all_components" ++ MCA_memchecker_STATIC_COMPONENTS="$static_components" ++ MCA_memchecker_DSO_COMPONENTS="$dso_components" ++ MCA_memchecker_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_memchecker_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_memchecker_ALL_SUBDIRS="$MCA_memchecker_ALL_SUBDIRS mca/memchecker/$item" ++ done ++ ++ ++ ++ MCA_memchecker_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_memchecker_STATIC_SUBDIRS="$MCA_memchecker_STATIC_SUBDIRS mca/memchecker/$item" ++ done ++ ++ ++ ++ MCA_memchecker_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_memchecker_DSO_SUBDIRS="$MCA_memchecker_DSO_SUBDIRS mca/memchecker/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "memchecker" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_MEMCHECKER_HAVE_COMPONENT $memchecker_base_found ++_ACEOF ++ ++# common has to go up front ++ if test "memcpy" = "common" ; then ++ MCA_opal_FRAMEWORKS="memcpy $MCA_opal_FRAMEWORKS" ++ MCA_opal_FRAMEWORKS_SUBDIRS="mca/memcpy $MCA_opal_FRAMEWORKS_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_memcpy_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_memcpy_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_memcpy_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS memcpy" ++ MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/memcpy" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_memcpy_ALL_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_memcpy_DSO_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_memcpy_STATIC_SUBDIRS)" ++ fi ++ if test "memcpy" != "common" ; then ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/memcpy/libmca_memcpy.la" ++ fi ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_memcpy_STATIC_LTLIBS)" ++ ++ memcpy_base_include= ++ ++ # first, compile all the components ++ ++ ompi_show_subsubtitle "Configuring MCA framework memcpy" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "memcpy" = "common" ; then ++ outdir=opal/mca/common ++ else ++ outdir=opal/mca/memcpy/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework memcpy" >&5 ++echo $ECHO_N "checking for no configure components in framework memcpy... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework memcpy" >&5 ++echo $ECHO_N "checking for m4 configure components in framework memcpy... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ ++ ++ MCA_memcpy_ALL_COMPONENTS="$all_components" ++ MCA_memcpy_STATIC_COMPONENTS="$static_components" ++ MCA_memcpy_DSO_COMPONENTS="$dso_components" ++ MCA_memcpy_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_memcpy_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_memcpy_ALL_SUBDIRS="$MCA_memcpy_ALL_SUBDIRS mca/memcpy/$item" ++ done ++ ++ ++ ++ MCA_memcpy_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_memcpy_STATIC_SUBDIRS="$MCA_memcpy_STATIC_SUBDIRS mca/memcpy/$item" ++ done ++ ++ ++ ++ MCA_memcpy_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_memcpy_DSO_SUBDIRS="$MCA_memcpy_DSO_SUBDIRS mca/memcpy/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "memcpy" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++ ++ ++ # someone should have set this... ++ if test "$memcpy_base_include" = "" ; then ++ memcpy_base_include="base/memcpy_base_default.h" ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MCA_memcpy_IMPLEMENTATION_HEADER "opal/mca/memcpy/$memcpy_base_include" ++_ACEOF ++ ++# common has to go up front ++ if test "memory" = "common" ; then ++ MCA_opal_FRAMEWORKS="memory $MCA_opal_FRAMEWORKS" ++ MCA_opal_FRAMEWORKS_SUBDIRS="mca/memory $MCA_opal_FRAMEWORKS_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_memory_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_memory_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_memory_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS memory" ++ MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/memory" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_memory_ALL_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_memory_DSO_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_memory_STATIC_SUBDIRS)" ++ fi ++ if test "memory" != "common" ; then ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/memory/libmca_memory.la" ++ fi ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_memory_STATIC_LTLIBS)" ++ ++ ++# Check whether --with-memory-manager was given. ++if test "${with_memory_manager+set}" = set; then ++ withval=$with_memory_manager; ++fi ++ ++ ++ memory_base_found=0 ++ ++ # first, compile all the components ++ ++ ompi_show_subsubtitle "Configuring MCA framework memory" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "memory" = "common" ; then ++ outdir=opal/mca/common ++ else ++ outdir=opal/mca/memory/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework memory" >&5 ++echo $ECHO_N "checking for no configure components in framework memory... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework memory" >&5 ++echo $ECHO_N "checking for m4 configure components in framework memory... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: ptmalloc2, malloc_solaris, mallopt" >&5 ++echo "${ECHO_T}ptmalloc2, malloc_solaris, mallopt" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component memory:ptmalloc2 (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=memory ++ component=ptmalloc2 ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_memory" ; then ++ if test "$DIRECT_memory" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component memory:ptmalloc2 compile mode" >&5 ++echo $ECHO_N "checking for MCA component memory:ptmalloc2 compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ # Check whether --enable-ptmalloc2-internal was given. ++if test "${enable_ptmalloc2_internal+set}" = set; then ++ enableval=$enable_ptmalloc2_internal; ++fi ++ ++ ++ { echo "$as_me:$LINENO: checking if ptmalloc2 should be part of libopen-pal" >&5 ++echo $ECHO_N "checking if ptmalloc2 should be part of libopen-pal... $ECHO_C" >&6; } ++ if test "$enable_ptmalloc2_internal" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ ++ if test "$with_memory_manager" = "ptmalloc2"; then ++ if test "`echo $host | grep apple-darwin`" != "" ; then ++ { echo "$as_me:$LINENO: WARNING: *** Using ptmalloc with OS X will result in failure." >&5 ++echo "$as_me: WARNING: *** Using ptmalloc with OS X will result in failure." >&2;} ++ { { echo "$as_me:$LINENO: error: *** Aborting to save you the effort" >&5 ++echo "$as_me: error: *** Aborting to save you the effort" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ memory_ptmalloc2_happy="yes" ++ memory_ptmalloc2_should_use=1 ++else ++ memory_ptmalloc2_should_use=0 ++ if test "$with_memory_manager" = ""; then ++ memory_ptmalloc2_happy="yes" ++else ++ memory_ptmalloc2_happy="no" ++fi ++ ++fi ++ ++ ++ ++ # Per ticket #227, Intel 9.0 v20051201 on ia64 with optimization ++ # of -O2 or higher will bork ptmalloc2 in strange in mysterious ++ # ways. Doh! So if the compiler vendor is intel and we're on an ++ # ia64 box, run "icc --version" and snarf the version string. If ++ # it's 9.0 and the version is <= 20051201, then disable ptmalloc2. ++ # Executive decision: ignore optimization levels (even though -O1 ++ # and -O0 seem to work). The upgrade to 9.1 is free, so that's a ++ # better path than trying to make a much more complicated test ++ # here. ++ ++ case $host in ++ ia64-*) ++ if test "$ompi_c_vendor" = "intel"; then ++ # check for v9.0 <= 20051201 ++ icc_major_ver="`$CC --version | head -n 1 | awk '{ print $3 }'`" ++ icc_minor_ver="`$CC --version | head -n 1 | awk '{ print $4 }'`" ++ if test "$icc_major_ver" = "9.0" -a "`expr $icc_minor_ver \<= 20051201`" = "1"; then ++ memory_ptmalloc2_happy="no" ++ { echo "$as_me:$LINENO: WARNING: *** Detected Intel C compiler v9.0 <= 20051201 on ia64" >&5 ++echo "$as_me: WARNING: *** Detected Intel C compiler v9.0 <= 20051201 on ia64" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** This compiler/platform combination has known problems with ptmalloc2" >&5 ++echo "$as_me: WARNING: *** This compiler/platform combination has known problems with ptmalloc2" >&2;} ++ { echo "$as_me:$LINENO: WARNING: *** Automatically disabling ptmalloc2" >&5 ++echo "$as_me: WARNING: *** Automatically disabling ptmalloc2" >&2;} ++fi ++ ++ unset icc_major_ver icc_minor_ver ++fi ++ ++ ;; ++ esac ++ ++ if test "$memory_ptmalloc2_happy" = "yes"; then ++ # check for malloc.h ++ if test "${ac_cv_header_malloc_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for malloc.h" >&5 ++echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_malloc_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 ++echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking malloc.h usability" >&5 ++echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking malloc.h presence" >&5 ++echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for malloc.h" >&5 ++echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_malloc_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_malloc_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 ++echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } ++ ++fi ++if test $ac_cv_header_malloc_h = yes; then ++ memory_ptmalloc2_happy="yes" ++else ++ memory_ptmalloc2_happy="no" ++fi ++ ++ ++fi ++ ++ ++ if test "$memory_ptmalloc2_happy" = "yes"; then ++ # check for init hook symbol ++ { echo "$as_me:$LINENO: checking whether __malloc_initialize_hook is declared" >&5 ++echo $ECHO_N "checking whether __malloc_initialize_hook is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl___malloc_initialize_hook+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ #include ++ ++int ++main () ++{ ++#ifndef __malloc_initialize_hook ++ (void) __malloc_initialize_hook; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl___malloc_initialize_hook=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl___malloc_initialize_hook=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___malloc_initialize_hook" >&5 ++echo "${ECHO_T}$ac_cv_have_decl___malloc_initialize_hook" >&6; } ++if test $ac_cv_have_decl___malloc_initialize_hook = yes; then ++ memory_ptmalloc2_happy="yes" ++else ++ memory_ptmalloc2_happy="no" ++fi ++ ++fi ++ ++ ++ # ++ # See if we have sbrk prototyped ++ # ++ if test "$memory_ptmalloc2_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking whether sbrk is declared" >&5 ++echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl_sbrk+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++int ++main () ++{ ++#ifndef sbrk ++ (void) sbrk; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl_sbrk=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl_sbrk=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5 ++echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6; } ++if test $ac_cv_have_decl_sbrk = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_SBRK 1 ++_ACEOF ++ ++ ++else ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_SBRK 0 ++_ACEOF ++ ++ ++fi ++ ++ ++fi ++ ++ ++ # ++ # Figure out how we're going to call mmap/munmap for real ++ # ++ if test "$memory_ptmalloc2_happy" = "yes"; then ++ memory_ptmalloc2_mmap=0 ++ memory_ptmalloc2_munmap=1 ++ ++ # it's nearly impossible to call mmap from syscall(), so ++ # only go this route if we can't get at munmap any other ++ # way. ++ if test "${ac_cv_header_syscall_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for syscall.h" >&5 ++echo $ECHO_N "checking for syscall.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_syscall_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_syscall_h" >&5 ++echo "${ECHO_T}$ac_cv_header_syscall_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking syscall.h usability" >&5 ++echo $ECHO_N "checking syscall.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking syscall.h presence" >&5 ++echo $ECHO_N "checking syscall.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: syscall.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: syscall.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: syscall.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: syscall.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: syscall.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: syscall.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: syscall.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: syscall.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: syscall.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: syscall.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: syscall.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: syscall.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: syscall.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: syscall.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: syscall.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: syscall.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for syscall.h" >&5 ++echo $ECHO_N "checking for syscall.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_syscall_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_syscall_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_syscall_h" >&5 ++echo "${ECHO_T}$ac_cv_header_syscall_h" >&6; } ++ ++fi ++if test $ac_cv_header_syscall_h = yes; then ++ ++for ac_func in syscall ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++else ++ memory_ptmalloc2_munmap=0 ++fi ++done ++ ++fi ++ ++ ++ ++ # Always look for __munmap and __mmap ++ ++for ac_func in __munmap ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ memory_ptmalloc2_mmap=1 ++fi ++done ++ ++ ++for ac_func in __mmap ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ ++ # only allow dlsym (and therefore add -ldl) if we ++ # really need to ++ if test "$memory_ptmalloc2_mmap" = "0"; then ++ memory_ptmalloc2_LIBS_SAVE="$LIBS" ++ { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 ++echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dl_dlsym+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldl $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dlsym (); ++int ++main () ++{ ++return dlsym (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dl_dlsym=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dl_dlsym=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 ++echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; } ++if test $ac_cv_lib_dl_dlsym = yes; then ++ LIBS="$LIBS -ldl" ++ memory_ptmalloc2_LIBS="-ldl" ++ memory_ptmalloc2_mmap=1 ++fi ++ ++ ++for ac_func in dlsym ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ LIBS="$memory_ptmalloc2_LIBS_SAVE" ++fi ++ ++ ++ if test "$memory_ptmalloc2_mmap" = "0" -a "$memory_ptmalloc2_munmap" = "0"; then ++ memory_ptmalloc2_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$memory_ptmalloc2_happy" = "yes"; then ++ memory_ptmalloc2_WRAPPER_EXTRA_LIBS="$memory_ptmalloc2_LIBS" ++fi ++ ++ ++ if test "$memory_ptmalloc2_happy" = "no" -a \ ++ "$memory_malloc_hoooks_should_use" = "1"; then ++ { { echo "$as_me:$LINENO: error: ptmalloc2 memory management requested but not available. Aborting." >&5 ++echo "$as_me: error: ptmalloc2 memory management requested but not available. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ ++ ++ if test "$memory_ptmalloc2_happy" = "yes"; then ++ memory_base_found=1 ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=memory ++ component=ptmalloc2 ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_memory" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_memory" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component memory:ptmalloc2 can compile" >&5 ++echo $ECHO_N "checking if MCA component memory:ptmalloc2 can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_memory" = "ptmalloc2" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"ptmalloc2\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"ptmalloc2\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_memory" ; then ++ if test "$DIRECT_memory" = "ptmalloc2" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"ptmalloc2\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"ptmalloc2\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components ptmalloc2" ++fi ++ ++ ++ ++ if test "$enable_ptmalloc2_internal" != "yes"; then ++ OMPI_WANT_EXTERNAL_PTMALLOC2_TRUE= ++ OMPI_WANT_EXTERNAL_PTMALLOC2_FALSE='#' ++else ++ OMPI_WANT_EXTERNAL_PTMALLOC2_TRUE='#' ++ OMPI_WANT_EXTERNAL_PTMALLOC2_FALSE= ++fi ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_memory_ptmalloc2_DSO=1 ++else ++ BUILD_memory_ptmalloc2_DSO=0 ++fi ++ ++ if test "$BUILD_memory_ptmalloc2_DSO" = "1"; then ++ OMPI_BUILD_memory_ptmalloc2_DSO_TRUE= ++ OMPI_BUILD_memory_ptmalloc2_DSO_FALSE='#' ++else ++ OMPI_BUILD_memory_ptmalloc2_DSO_TRUE='#' ++ OMPI_BUILD_memory_ptmalloc2_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component memory:malloc_solaris (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=memory ++ component=malloc_solaris ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_memory" ; then ++ if test "$DIRECT_memory" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component memory:malloc_solaris compile mode" >&5 ++echo $ECHO_N "checking for MCA component memory:malloc_solaris compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in memory_malloc_solaris_happy; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"memory_malloc_solaris_happy\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ { echo "$as_me:$LINENO: checking for Solaris" >&5 ++echo $ECHO_N "checking for Solaris... $ECHO_C" >&6; } ++ ++ case "$host" in ++ *solaris*) ++ ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ if test "$with_memory_manager" = "malloc_solaris"; then ++ memory_malloc_solaris_happy="yes" ++ memory_malloc_solaris_should_use=1 ++else ++ memory_malloc_solaris_should_use=0 ++ if test "$with_memory_manager" = ""; then ++ memory_malloc_solaris_happy="yes" ++else ++ memory_malloc_solaris_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$memory_malloc_solaris_happy" = "yes"; then ++ if test "${ac_cv_header_malloc_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for malloc.h" >&5 ++echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_malloc_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 ++echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking malloc.h usability" >&5 ++echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking malloc.h presence" >&5 ++echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for malloc.h" >&5 ++echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_malloc_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_malloc_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 ++echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } ++ ++fi ++if test $ac_cv_header_malloc_h = yes; then ++ : ++else ++ memory_malloc_solaris_happy="no" ++fi ++ ++ ++fi ++ ++ ++ if test "$memory_malloc_solaris_happy" = "yes"; then ++ memory_malloc_solaris_munmap=0 ++ ++ if test "${ac_cv_header_sys_syscall_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for sys/syscall.h" >&5 ++echo $ECHO_N "checking for sys/syscall.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_sys_syscall_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_syscall_h" >&5 ++echo "${ECHO_T}$ac_cv_header_sys_syscall_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking sys/syscall.h usability" >&5 ++echo $ECHO_N "checking sys/syscall.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking sys/syscall.h presence" >&5 ++echo $ECHO_N "checking sys/syscall.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: sys/syscall.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: sys/syscall.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: sys/syscall.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: sys/syscall.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: sys/syscall.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: sys/syscall.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: sys/syscall.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: sys/syscall.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for sys/syscall.h" >&5 ++echo $ECHO_N "checking for sys/syscall.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_sys_syscall_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_sys_syscall_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_syscall_h" >&5 ++echo "${ECHO_T}$ac_cv_header_sys_syscall_h" >&6; } ++ ++fi ++if test $ac_cv_header_sys_syscall_h = yes; then ++ ++for ac_func in syscall ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ memory_malloc_solaris_munmap=1 ++fi ++done ++ ++fi ++ ++ ++ ++ ++for ac_func in __munmap ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ memory_malloc_solaris_munmap=1 ++fi ++done ++ ++ ++ # only allow dlsym (and therefore add -ldl) if we ++ # really need to ++ if test "$memory_malloc_solaris_munmap" = "0"; then ++ memory_malloc_solaris_LIBS_SAVE="$LIBS" ++ { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 ++echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dl_dlsym+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldl $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dlsym (); ++int ++main () ++{ ++return dlsym (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dl_dlsym=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dl_dlsym=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 ++echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; } ++if test $ac_cv_lib_dl_dlsym = yes; then ++ memory_malloc_solaris_LIBS="-ldl" ++ memory_malloc_solaris_munmap=1 ++fi ++ ++ ++for ac_func in dlsym ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ LIBS="$memory_malloc_solaris_LIBS_SAVE" ++fi ++ ++ ++ if test "$memory_malloc_solaris_munmap" = "0"; then ++ memory_malloc_solaris_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$memory_malloc_solaris_happy" = "yes"; then ++ memory_malloc_solaris_WRAPPER_EXTRA_LIBS="$memory_malloc_solaris_LIBS" ++fi ++ ++ ++ if test "$memory_malloc_solaris_happy" = "no" -a \ ++ "$memory_malloc_solaris_should_use" = "1"; then ++ { { echo "$as_me:$LINENO: error: malloc_solaris memory management requested but not available. Aborting." >&5 ++echo "$as_me: error: malloc_solaris memory management requested but not available. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ ++ ++ ;; ++ *) ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ if test "$with_memory_manager" = "malloc_solaris"; then ++ memory_malloc_solaris_happy="no" ++ memory_malloc_solaris_should_use=0 ++fi ++ ++ ;; ++ esac ++ ++ if test "$memory_malloc_solaris_happy" = "yes"; then ++ memory_base_found=1 ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=memory ++ component=malloc_solaris ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_memory" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_memory" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component memory:malloc_solaris can compile" >&5 ++echo $ECHO_N "checking if MCA component memory:malloc_solaris can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_memory" = "malloc_solaris" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"malloc_solaris\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"malloc_solaris\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_memory" ; then ++ if test "$DIRECT_memory" = "malloc_solaris" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"malloc_solaris\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"malloc_solaris\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components malloc_solaris" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_memory_malloc_solaris_DSO=1 ++else ++ BUILD_memory_malloc_solaris_DSO=0 ++fi ++ ++ if test "$BUILD_memory_malloc_solaris_DSO" = "1"; then ++ OMPI_BUILD_memory_malloc_solaris_DSO_TRUE= ++ OMPI_BUILD_memory_malloc_solaris_DSO_FALSE='#' ++else ++ OMPI_BUILD_memory_malloc_solaris_DSO_TRUE='#' ++ OMPI_BUILD_memory_malloc_solaris_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component memory:mallopt (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=memory ++ component=mallopt ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_memory" ; then ++ if test "$DIRECT_memory" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component memory:mallopt compile mode" >&5 ++echo $ECHO_N "checking for MCA component memory:mallopt compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ if test "$with_memory_manager" = "mallopt"; then ++ memory_mallopt_happy="yes" ++ memory_mallopt_should_use=1 ++else ++ memory_mallopt_should_use=0 ++ if test "$with_memory_manager" = ""; then ++ memory_mallopt_happy="yes" ++else ++ memory_mallopt_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$memory_mallopt_happy" = "yes"; then ++ if test "${ac_cv_header_malloc_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for malloc.h" >&5 ++echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_malloc_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 ++echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking malloc.h usability" >&5 ++echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking malloc.h presence" >&5 ++echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for malloc.h" >&5 ++echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_malloc_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_malloc_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 ++echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } ++ ++fi ++if test $ac_cv_header_malloc_h = yes; then ++ : ++else ++ memory_mallopt_happy="no" ++fi ++ ++ ++fi ++ ++ ++ if test "$memory_mallopt_happy" = "yes"; then ++ ++for ac_func in mallopt ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++else ++ memory_mallopt_happy="no" ++fi ++done ++ ++fi ++ ++ ++ if test "$memory_mallopt_happy" = "yes"; then ++ memory_mallopt_munmap=0 ++ ++ if test "${ac_cv_header_syscall_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for syscall.h" >&5 ++echo $ECHO_N "checking for syscall.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_syscall_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_syscall_h" >&5 ++echo "${ECHO_T}$ac_cv_header_syscall_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking syscall.h usability" >&5 ++echo $ECHO_N "checking syscall.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking syscall.h presence" >&5 ++echo $ECHO_N "checking syscall.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: syscall.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: syscall.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: syscall.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: syscall.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: syscall.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: syscall.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: syscall.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: syscall.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: syscall.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: syscall.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: syscall.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: syscall.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: syscall.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: syscall.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: syscall.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: syscall.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for syscall.h" >&5 ++echo $ECHO_N "checking for syscall.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_syscall_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_syscall_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_syscall_h" >&5 ++echo "${ECHO_T}$ac_cv_header_syscall_h" >&6; } ++ ++fi ++if test $ac_cv_header_syscall_h = yes; then ++ ++for ac_func in syscall ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ memory_mallopt_munmap=1 ++fi ++done ++ ++fi ++ ++ ++ ++ ++for ac_func in __munmap ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ memory_mallopt_munmap=1 ++fi ++done ++ ++ ++ # only allow dlsym (and therefore add -ldl) if we ++ # really need to ++ if test "$memory_mallopt_munmap" = "0"; then ++ memory_mallopt_LIBS_SAVE="$LIBS" ++ { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 ++echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dl_dlsym+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldl $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dlsym (); ++int ++main () ++{ ++return dlsym (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dl_dlsym=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dl_dlsym=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 ++echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; } ++if test $ac_cv_lib_dl_dlsym = yes; then ++ memory_mallopt_LIBS="-ldl" ++ memory_mallopt_munmap=1 ++fi ++ ++ ++for ac_func in dlsym ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ LIBS="$memory_mallopt_LIBS_SAVE" ++fi ++ ++ ++ if test "$memory_mallopt_munmap" = "0"; then ++ memory_mallopt_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$memory_mallopt_happy" = "yes"; then ++ memory_mallopt_WRAPPER_EXTRA_LIBS="$memory_mallopt_LIBS" ++fi ++ ++ ++ if test "$memory_mallopt_happy" = "no" -a \ ++ "$memory_malloc_hoooks_should_use" = "1"; then ++ { { echo "$as_me:$LINENO: error: mallopt memory management requested but not available. Aborting." >&5 ++echo "$as_me: error: mallopt memory management requested but not available. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ ++ ++ if test "$memory_mallopt_happy" = "yes"; then ++ memory_base_found=1 ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=memory ++ component=mallopt ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_memory" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_memory" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component memory:mallopt can compile" >&5 ++echo $ECHO_N "checking if MCA component memory:mallopt can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_memory" = "mallopt" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"mallopt\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"mallopt\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_memory" ; then ++ if test "$DIRECT_memory" = "mallopt" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"mallopt\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"mallopt\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components mallopt" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_memory_mallopt_DSO=1 ++else ++ BUILD_memory_mallopt_DSO=0 ++fi ++ ++ if test "$BUILD_memory_mallopt_DSO" = "1"; then ++ OMPI_BUILD_memory_mallopt_DSO_TRUE= ++ OMPI_BUILD_memory_mallopt_DSO_FALSE='#' ++else ++ OMPI_BUILD_memory_mallopt_DSO_TRUE='#' ++ OMPI_BUILD_memory_mallopt_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ ++ ++ MCA_memory_ALL_COMPONENTS="$all_components" ++ MCA_memory_STATIC_COMPONENTS="$static_components" ++ MCA_memory_DSO_COMPONENTS="$dso_components" ++ MCA_memory_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_memory_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_memory_ALL_SUBDIRS="$MCA_memory_ALL_SUBDIRS mca/memory/$item" ++ done ++ ++ ++ ++ MCA_memory_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_memory_STATIC_SUBDIRS="$MCA_memory_STATIC_SUBDIRS mca/memory/$item" ++ done ++ ++ ++ ++ MCA_memory_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_memory_DSO_SUBDIRS="$MCA_memory_DSO_SUBDIRS mca/memory/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "memory" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_MEMORY_HAVE_COMPONENT $memory_base_found ++_ACEOF ++ ++# common has to go up front ++ if test "paffinity" = "common" ; then ++ MCA_opal_FRAMEWORKS="paffinity $MCA_opal_FRAMEWORKS" ++ MCA_opal_FRAMEWORKS_SUBDIRS="mca/paffinity $MCA_opal_FRAMEWORKS_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_paffinity_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_paffinity_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_paffinity_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS paffinity" ++ MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/paffinity" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_paffinity_ALL_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_paffinity_DSO_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_paffinity_STATIC_SUBDIRS)" ++ fi ++ if test "paffinity" != "common" ; then ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/paffinity/libmca_paffinity.la" ++ fi ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_paffinity_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework paffinity" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "paffinity" = "common" ; then ++ outdir=opal/mca/common ++ else ++ outdir=opal/mca/paffinity/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework paffinity" >&5 ++echo $ECHO_N "checking for no configure components in framework paffinity... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework paffinity" >&5 ++echo $ECHO_N "checking for m4 configure components in framework paffinity... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: linux, solaris, windows, darwin, posix" >&5 ++echo "${ECHO_T}linux, solaris, windows, darwin, posix" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ # get the component's priority... ++ infile="$srcdir/opal/mca/paffinity/linux/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component paffinity:linux (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=paffinity ++ component=linux ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_paffinity" ; then ++ if test "$DIRECT_paffinity" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=opal ++ framework=paffinity ++ component=linux ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_paffinity" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in PLPA_VERSION; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"PLPA_VERSION\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ # Setup PLPA ++ ++ ++ plpa_symbol_prefix_value=opal_paffinity_linux_plpa_ ++ ++ ++ ++ ++ ++ plpa_mode=included ++ ++ ++ plpa_executables=no ++ ++ ++ ++ # If we used the 2 param variant of PLPA_INIT, then assume the ++ # config prefix is ".". Otherwise, it's opal/mca/paffinity/linux/plpa. ++ ++ ++ ++ ++ ++ ++ ++ ++ # Check for syscall() ++ { echo "$as_me:$LINENO: checking for syscall" >&5 ++echo $ECHO_N "checking for syscall... $ECHO_C" >&6; } ++if test "${ac_cv_func_syscall+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define syscall to an innocuous variant, in case declares syscall. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define syscall innocuous_syscall ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char syscall (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef syscall ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char syscall (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_syscall || defined __stub___syscall ++choke me ++#endif ++ ++int ++main () ++{ ++return syscall (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_syscall=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_syscall=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_syscall" >&5 ++echo "${ECHO_T}$ac_cv_func_syscall" >&6; } ++if test $ac_cv_func_syscall = yes; then ++ plpa_config_happy=1 ++else ++ plpa_config_happy=0 ++fi ++ ++ ++ # Look for syscall.h ++ if test "$plpa_config_happy" = 1; then ++ if test "${ac_cv_header_sys_syscall_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for sys/syscall.h" >&5 ++echo $ECHO_N "checking for sys/syscall.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_sys_syscall_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_syscall_h" >&5 ++echo "${ECHO_T}$ac_cv_header_sys_syscall_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking sys/syscall.h usability" >&5 ++echo $ECHO_N "checking sys/syscall.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking sys/syscall.h presence" >&5 ++echo $ECHO_N "checking sys/syscall.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: sys/syscall.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: sys/syscall.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: sys/syscall.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: sys/syscall.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: sys/syscall.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: sys/syscall.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: sys/syscall.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/syscall.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: sys/syscall.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for sys/syscall.h" >&5 ++echo $ECHO_N "checking for sys/syscall.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_sys_syscall_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_sys_syscall_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_syscall_h" >&5 ++echo "${ECHO_T}$ac_cv_header_sys_syscall_h" >&6; } ++ ++fi ++if test $ac_cv_header_sys_syscall_h = yes; then ++ plpa_config_happy=1 ++else ++ plpa_config_happy=0 ++fi ++ ++ ++ fi ++ ++ # Look for unistd.h ++ if test "$plpa_config_happy" = 1; then ++ if test "${ac_cv_header_unistd_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for unistd.h" >&5 ++echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_unistd_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 ++echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking unistd.h usability" >&5 ++echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking unistd.h presence" >&5 ++echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for unistd.h" >&5 ++echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_unistd_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_unistd_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 ++echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } ++ ++fi ++if test $ac_cv_header_unistd_h = yes; then ++ plpa_config_happy=1 ++else ++ plpa_config_happy=0 ++fi ++ ++ ++ fi ++ ++ # Check for __NR_sched_setaffinity ++ if test "$plpa_config_happy" = 1; then ++ { echo "$as_me:$LINENO: checking for __NR_sched_setaffinity" >&5 ++echo $ECHO_N "checking for __NR_sched_setaffinity... $ECHO_C" >&6; } ++ if test "$plpa_emulate" = "yes"; then ++ { echo "$as_me:$LINENO: result: emulated" >&5 ++echo "${ECHO_T}emulated" >&6; } ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define __NR_sched_setaffinity 0 ++_ACEOF ++ ++ else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++int ++main () ++{ ++#ifndef __NR_sched_setaffinity ++#error __NR_sched_setaffinity_not found! ++#endif ++int i = 1; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ plpa_config_happy=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ plpa_config_happy=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ fi ++ fi ++ ++ # Check for __NR_sched_getaffinity (probably overkill, but what ++ # the heck?) ++ if test "$plpa_config_happy" = 1; then ++ { echo "$as_me:$LINENO: checking for __NR_sched_getaffinity" >&5 ++echo $ECHO_N "checking for __NR_sched_getaffinity... $ECHO_C" >&6; } ++ if test "$plpa_emulate" = "yes"; then ++ { echo "$as_me:$LINENO: result: emulated" >&5 ++echo "${ECHO_T}emulated" >&6; } ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define __NR_sched_getaffinity 0 ++_ACEOF ++ ++ else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++int ++main () ++{ ++#ifndef __NR_sched_getaffinity ++#error __NR_sched_getaffinity_not found! ++#endif ++int i = 1; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ plpa_config_happy=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ plpa_config_happy=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ fi ++ fi ++ ++ # If all was good, do the real init ++ if test "$plpa_config_happy" = "1"; then ++ ++ ++ ++ # Are we building as standalone or included? ++ { echo "$as_me:$LINENO: checking for PLPA building mode" >&5 ++echo $ECHO_N "checking for PLPA building mode... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $plpa_mode" >&5 ++echo "${ECHO_T}$plpa_mode" >&6; } ++ ++ # Debug mode? ++ { echo "$as_me:$LINENO: checking if want PLPA maintainer support" >&5 ++echo $ECHO_N "checking if want PLPA maintainer support... $ECHO_C" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define PLPA_DEBUG $plpa_debug ++_ACEOF ++ ++ { echo "$as_me:$LINENO: result: $plpa_debug_msg" >&5 ++echo "${ECHO_T}$plpa_debug_msg" >&6; } ++ ++ # We need to set a path for header, etc files depending on whether ++ # we're standalone or included. this is taken care of by PLPA_INCLUDED. ++ ++ { echo "$as_me:$LINENO: checking for PLPA config prefix" >&5 ++echo $ECHO_N "checking for PLPA config prefix... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: opal/mca/paffinity/linux/plpa" >&5 ++echo "${ECHO_T}opal/mca/paffinity/linux/plpa" >&6; } ++ ++ # Note that plpa_config.h *MUST* be listed first so that it ++ # becomes the "main" config header file. Any AM_CONFIG_HEADERs ++ # after that (plpa.h) will only have selective #defines replaced, ++ # not the entire file. ++ ac_config_headers="$ac_config_headers opal/mca/paffinity/linux/plpa/src/libplpa/plpa_config.h" ++ ++ ac_config_headers="$ac_config_headers opal/mca/paffinity/linux/plpa/src/libplpa/plpa.h" ++ ++ ++ # What prefix are we using? ++ { echo "$as_me:$LINENO: checking for PLPA symbol prefix" >&5 ++echo $ECHO_N "checking for PLPA symbol prefix... $ECHO_C" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define PLPA_SYM_PREFIX $plpa_symbol_prefix_value ++_ACEOF ++ ++ # Ensure to [] escape the whole next line so that we can get the ++ # proper tr tokens ++ plpa_symbol_prefix_value_caps="`echo $plpa_symbol_prefix_value | tr '[:lower:]' '[:upper:]'`" ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define PLPA_SYM_PREFIX_CAPS $plpa_symbol_prefix_value_caps ++_ACEOF ++ ++ { echo "$as_me:$LINENO: result: $plpa_symbol_prefix_value" >&5 ++echo "${ECHO_T}$plpa_symbol_prefix_value" >&6; } ++ ++ ++ # Check whether to build the exectuables or not ++ { echo "$as_me:$LINENO: checking whether to build PLPA executables" >&5 ++echo $ECHO_N "checking whether to build PLPA executables... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $plpa_executables" >&5 ++echo "${ECHO_T}$plpa_executables" >&6; } ++ ++ # If we're building executables, we need some things for plpa-taskset ++ if test "$plpa_executables" = "yes"; then ++ { echo "$as_me:$LINENO: checking for inline" >&5 ++echo $ECHO_N "checking for inline... $ECHO_C" >&6; } ++if test "${ac_cv_c_inline+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_c_inline=no ++for ac_kw in inline __inline__ __inline; do ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#ifndef __cplusplus ++typedef int foo_t; ++static $ac_kw foo_t static_foo () {return 0; } ++$ac_kw foo_t foo () {return 0; } ++#endif ++ ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_c_inline=$ac_kw ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ test "$ac_cv_c_inline" != no && break ++done ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 ++echo "${ECHO_T}$ac_cv_c_inline" >&6; } ++ ++ ++case $ac_cv_c_inline in ++ inline | yes) ;; ++ *) ++ case $ac_cv_c_inline in ++ no) ac_val=;; ++ *) ac_val=$ac_cv_c_inline;; ++ esac ++ cat >>confdefs.h <<_ACEOF ++#ifndef __cplusplus ++#define inline $ac_val ++#endif ++_ACEOF ++ ;; ++esac ++ ++ fi ++ ++ # Success ++ { echo "$as_me:$LINENO: checking for PLPA version" >&5 ++echo $ECHO_N "checking for PLPA version... $ECHO_C" >&6; } ++ PLPA_VERSION=`$srcdir/opal/mca/paffinity/linux/plpa/config/plpa_get_version.sh $srcdir/opal/mca/paffinity/linux/plpa/VERSION` ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define PAFFINITY_LINUX_PLPA_VERSION "$PLPA_VERSION" ++_ACEOF ++ ++ { echo "$as_me:$LINENO: result: $PLPA_VERSION" >&5 ++echo "${ECHO_T}$PLPA_VERSION" >&6; } ++ should_build=1 ++ ++else ++ should_build=0 ++fi ++ ++ ++ if test "$plpa_did_am_conditionals" != "yes"; then ++ if test "$plpa_mode" = "standalone"; then ++ PLPA_BUILD_STANDALONE_TRUE= ++ PLPA_BUILD_STANDALONE_FALSE='#' ++else ++ PLPA_BUILD_STANDALONE_TRUE='#' ++ PLPA_BUILD_STANDALONE_FALSE= ++fi ++ ++ if test "$plpa_executables" = "yes"; then ++ PLPA_BUILD_EXECUTABLES_TRUE= ++ PLPA_BUILD_EXECUTABLES_FALSE='#' ++else ++ PLPA_BUILD_EXECUTABLES_TRUE='#' ++ PLPA_BUILD_EXECUTABLES_FALSE= ++fi ++ ++ fi ++ plpa_did_am_conditionals=yes ++ ++ ++ ac_config_files="$ac_config_files opal/mca/paffinity/linux/plpa/Makefile opal/mca/paffinity/linux/plpa/config/Makefile opal/mca/paffinity/linux/plpa/src/Makefile opal/mca/paffinity/linux/plpa/src/libplpa/Makefile opal/mca/paffinity/linux/plpa/src/plpa-info/Makefile opal/mca/paffinity/linux/plpa/src/plpa-taskset/Makefile" ++ ++ ++ # Cleanup ++ unset plpa_config_happy ++ ++ ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=paffinity ++ component=linux ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_paffinity" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_paffinity" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component paffinity:linux can compile" >&5 ++echo $ECHO_N "checking if MCA component paffinity:linux can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_paffinity" = "linux" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"linux\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_paffinity" ; then ++ if test "$DIRECT_paffinity" = "linux" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"linux\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components linux" ++fi ++ ++ ++ ++ ++ if test "$plpa_did_am_conditionals" != "yes"; then ++ if test "$plpa_mode" = "standalone"; then ++ PLPA_BUILD_STANDALONE_TRUE= ++ PLPA_BUILD_STANDALONE_FALSE='#' ++else ++ PLPA_BUILD_STANDALONE_TRUE='#' ++ PLPA_BUILD_STANDALONE_FALSE= ++fi ++ ++ if test "$plpa_executables" = "yes"; then ++ PLPA_BUILD_EXECUTABLES_TRUE= ++ PLPA_BUILD_EXECUTABLES_FALSE='#' ++else ++ PLPA_BUILD_EXECUTABLES_TRUE='#' ++ PLPA_BUILD_EXECUTABLES_FALSE= ++fi ++ ++ fi ++ plpa_did_am_conditionals=yes ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_paffinity_linux_DSO=1 ++else ++ BUILD_paffinity_linux_DSO=0 ++fi ++ ++ if test "$BUILD_paffinity_linux_DSO" = "1"; then ++ OMPI_BUILD_paffinity_linux_DSO_TRUE= ++ OMPI_BUILD_paffinity_linux_DSO_FALSE='#' ++else ++ OMPI_BUILD_paffinity_linux_DSO_TRUE='#' ++ OMPI_BUILD_paffinity_linux_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/opal/mca/paffinity/solaris/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component paffinity:solaris (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=paffinity ++ component=solaris ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_paffinity" ; then ++ if test "$DIRECT_paffinity" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=opal ++ framework=paffinity ++ component=solaris ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_paffinity" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in paff_solaris_happy; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"paff_solaris_happy\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ #check to see if we have ++ if test "${ac_cv_header_sys_procset_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for sys/procset.h" >&5 ++echo $ECHO_N "checking for sys/procset.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_sys_procset_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_procset_h" >&5 ++echo "${ECHO_T}$ac_cv_header_sys_procset_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking sys/procset.h usability" >&5 ++echo $ECHO_N "checking sys/procset.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking sys/procset.h presence" >&5 ++echo $ECHO_N "checking sys/procset.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: sys/procset.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: sys/procset.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/procset.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: sys/procset.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: sys/procset.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: sys/procset.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/procset.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: sys/procset.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/procset.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: sys/procset.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/procset.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: sys/procset.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/procset.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: sys/procset.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sys/procset.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: sys/procset.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for sys/procset.h" >&5 ++echo $ECHO_N "checking for sys/procset.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_sys_procset_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_sys_procset_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_procset_h" >&5 ++echo "${ECHO_T}$ac_cv_header_sys_procset_h" >&6; } ++ ++fi ++if test $ac_cv_header_sys_procset_h = yes; then ++ paff_solaris_happy=yes ++else ++ paff_solaris_happy=no ++fi ++ ++ ++ ++ if test "$paff_solaris_happy" = "yes"; then ++ # check for processor_bind() ++ { echo "$as_me:$LINENO: checking for processor_bind" >&5 ++echo $ECHO_N "checking for processor_bind... $ECHO_C" >&6; } ++if test "${ac_cv_func_processor_bind+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define processor_bind to an innocuous variant, in case declares processor_bind. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define processor_bind innocuous_processor_bind ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char processor_bind (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef processor_bind ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char processor_bind (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_processor_bind || defined __stub___processor_bind ++choke me ++#endif ++ ++int ++main () ++{ ++return processor_bind (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_processor_bind=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_processor_bind=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_processor_bind" >&5 ++echo "${ECHO_T}$ac_cv_func_processor_bind" >&6; } ++if test $ac_cv_func_processor_bind = yes; then ++ paff_solaris_happy=yes ++else ++ paff_solaris_happy=no ++fi ++ ++ fi ++ ++ if test "$paff_solaris_happy" = "yes"; then ++ # check for whether header has P_PID defined ++ { echo "$as_me:$LINENO: checking if P_PID is defined" >&5 ++echo $ECHO_N "checking if P_PID is defined... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++int i = P_PID; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ paff_solaris_happy=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ paff_solaris_happy=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ { echo "$as_me:$LINENO: result: $paff_solaris_happy " >&5 ++echo "${ECHO_T}$paff_solaris_happy " >&6; } ++ fi ++ ++ if test "$paff_solaris_happy" = "yes"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=paffinity ++ component=solaris ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_paffinity" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_paffinity" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component paffinity:solaris can compile" >&5 ++echo $ECHO_N "checking if MCA component paffinity:solaris can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_paffinity" = "solaris" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"solaris\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_paffinity" ; then ++ if test "$DIRECT_paffinity" = "solaris" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"solaris\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components solaris" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_paffinity_solaris_DSO=1 ++else ++ BUILD_paffinity_solaris_DSO=0 ++fi ++ ++ if test "$BUILD_paffinity_solaris_DSO" = "1"; then ++ OMPI_BUILD_paffinity_solaris_DSO_TRUE= ++ OMPI_BUILD_paffinity_solaris_DSO_FALSE='#' ++else ++ OMPI_BUILD_paffinity_solaris_DSO_TRUE='#' ++ OMPI_BUILD_paffinity_solaris_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/opal/mca/paffinity/windows/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component paffinity:windows (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=paffinity ++ component=windows ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_paffinity" ; then ++ if test "$DIRECT_paffinity" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=opal ++ framework=paffinity ++ component=windows ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_paffinity" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ # check for GetProcessAffinityMask, which is defined only for some ++ # flavors of Windows. We should first check that the function is defined, ++ # and then check for it's presence in the kernel32 library. ++ { echo "$as_me:$LINENO: checking for working GetProcessAffinityMask" >&5 ++echo $ECHO_N "checking for working GetProcessAffinityMask... $ECHO_C" >&6; } ++ if test "$cross_compiling" = yes; then ++ cat >conftest.$ac_ext <<_ACEOF ++#include ++int main( int argc, char** argv ) { ++ DWORD aff, mask; ++ GetProcessAffinityMask( NULL, &aff, &mask ); ++ return 0; } ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ should_build=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ should_build=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int main( int argc, char** argv ) { ++ DWORD aff, mask; ++ GetProcessAffinityMask( NULL, &aff, &mask ); ++ return 0; } ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ should_build=1 ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ should_build=0 ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=paffinity ++ component=windows ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_paffinity" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_paffinity" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component paffinity:windows can compile" >&5 ++echo $ECHO_N "checking if MCA component paffinity:windows can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_paffinity" = "windows" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"windows\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_paffinity" ; then ++ if test "$DIRECT_paffinity" = "windows" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"windows\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components windows" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_paffinity_windows_DSO=1 ++else ++ BUILD_paffinity_windows_DSO=0 ++fi ++ ++ if test "$BUILD_paffinity_windows_DSO" = "1"; then ++ OMPI_BUILD_paffinity_windows_DSO_TRUE= ++ OMPI_BUILD_paffinity_windows_DSO_FALSE='#' ++else ++ OMPI_BUILD_paffinity_windows_DSO_TRUE='#' ++ OMPI_BUILD_paffinity_windows_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/opal/mca/paffinity/darwin/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component paffinity:darwin (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=paffinity ++ component=darwin ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_paffinity" ; then ++ if test "$DIRECT_paffinity" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=opal ++ framework=paffinity ++ component=darwin ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_paffinity" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in paff_darwin_happy; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"paff_darwin_happy\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ # check to see if we have ++ # as this is a Darwin-specific thing ++ if test "${ac_cv_header_mach_mach_host_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for mach/mach_host.h" >&5 ++echo $ECHO_N "checking for mach/mach_host.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_mach_mach_host_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_mach_mach_host_h" >&5 ++echo "${ECHO_T}$ac_cv_header_mach_mach_host_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking mach/mach_host.h usability" >&5 ++echo $ECHO_N "checking mach/mach_host.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking mach/mach_host.h presence" >&5 ++echo $ECHO_N "checking mach/mach_host.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: mach/mach_host.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: mach/mach_host.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: mach/mach_host.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: mach/mach_host.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: mach/mach_host.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: mach/mach_host.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: mach/mach_host.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: mach/mach_host.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: mach/mach_host.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: mach/mach_host.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: mach/mach_host.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: mach/mach_host.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: mach/mach_host.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: mach/mach_host.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: mach/mach_host.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: mach/mach_host.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for mach/mach_host.h" >&5 ++echo $ECHO_N "checking for mach/mach_host.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_mach_mach_host_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_mach_mach_host_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_mach_mach_host_h" >&5 ++echo "${ECHO_T}$ac_cv_header_mach_mach_host_h" >&6; } ++ ++fi ++if test $ac_cv_header_mach_mach_host_h = yes; then ++ paff_darwin_happy=yes ++else ++ paff_darwin_happy=no ++fi ++ ++ ++ ++ if test "$paff_darwin_happy" = "yes"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=paffinity ++ component=darwin ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_paffinity" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_paffinity" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component paffinity:darwin can compile" >&5 ++echo $ECHO_N "checking if MCA component paffinity:darwin can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_paffinity" = "darwin" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_paffinity" ; then ++ if test "$DIRECT_paffinity" = "darwin" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components darwin" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_paffinity_darwin_DSO=1 ++else ++ BUILD_paffinity_darwin_DSO=0 ++fi ++ ++ if test "$BUILD_paffinity_darwin_DSO" = "1"; then ++ OMPI_BUILD_paffinity_darwin_DSO_TRUE= ++ OMPI_BUILD_paffinity_darwin_DSO_FALSE='#' ++else ++ OMPI_BUILD_paffinity_darwin_DSO_TRUE='#' ++ OMPI_BUILD_paffinity_darwin_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/opal/mca/paffinity/posix/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component paffinity:posix (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=paffinity ++ component=posix ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_paffinity" ; then ++ if test "$DIRECT_paffinity" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=opal ++ framework=paffinity ++ component=posix ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_paffinity" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in paff_posix_happy; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"paff_posix_happy\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ # Check to see if we have ++ if test "${ac_cv_header_unistd_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for unistd.h" >&5 ++echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_unistd_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 ++echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking unistd.h usability" >&5 ++echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking unistd.h presence" >&5 ++echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for unistd.h" >&5 ++echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_unistd_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_unistd_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 ++echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } ++ ++fi ++if test $ac_cv_header_unistd_h = yes; then ++ paff_posix_happy=yes ++else ++ paff_posix_happy=no ++fi ++ ++ ++ ++ # Check to see if we have _SC_NPROCESSORS_ONLN ++ if test "$paff_posix_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for _SC_NPROCESSORS_ONLN" >&5 ++echo $ECHO_N "checking for _SC_NPROCESSORS_ONLN... $ECHO_C" >&6; } ++ if test "$OMPI_HAVE__SC_NPROCESSORS_ONLN" = "1"; then ++ paff_posix_happy=yes ++else ++ paff_posix_happy=no ++fi ++ ++ { echo "$as_me:$LINENO: result: (cached) $paff_posix_happy" >&5 ++echo "${ECHO_T}(cached) $paff_posix_happy" >&6; } ++fi ++ ++ ++ if test "$paff_posix_happy" = "yes"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=paffinity ++ component=posix ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_paffinity" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_paffinity" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component paffinity:posix can compile" >&5 ++echo $ECHO_N "checking if MCA component paffinity:posix can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_paffinity" = "posix" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"posix\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"posix\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_paffinity" ; then ++ if test "$DIRECT_paffinity" = "posix" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"posix\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"posix\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components posix" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_paffinity_posix_DSO=1 ++else ++ BUILD_paffinity_posix_DSO=0 ++fi ++ ++ if test "$BUILD_paffinity_posix_DSO" = "1"; then ++ OMPI_BUILD_paffinity_posix_DSO_TRUE= ++ OMPI_BUILD_paffinity_posix_DSO_FALSE='#' ++else ++ OMPI_BUILD_paffinity_posix_DSO_TRUE='#' ++ OMPI_BUILD_paffinity_posix_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ ++ ++ MCA_paffinity_ALL_COMPONENTS="$all_components" ++ MCA_paffinity_STATIC_COMPONENTS="$static_components" ++ MCA_paffinity_DSO_COMPONENTS="$dso_components" ++ MCA_paffinity_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_paffinity_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_paffinity_ALL_SUBDIRS="$MCA_paffinity_ALL_SUBDIRS mca/paffinity/$item" ++ done ++ ++ ++ ++ MCA_paffinity_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_paffinity_STATIC_SUBDIRS="$MCA_paffinity_STATIC_SUBDIRS mca/paffinity/$item" ++ done ++ ++ ++ ++ MCA_paffinity_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_paffinity_DSO_SUBDIRS="$MCA_paffinity_DSO_SUBDIRS mca/paffinity/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "paffinity" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "timer" = "common" ; then ++ MCA_opal_FRAMEWORKS="timer $MCA_opal_FRAMEWORKS" ++ MCA_opal_FRAMEWORKS_SUBDIRS="mca/timer $MCA_opal_FRAMEWORKS_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_timer_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_timer_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_timer_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS timer" ++ MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/timer" ++ MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_timer_ALL_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_timer_DSO_SUBDIRS)" ++ MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_timer_STATIC_SUBDIRS)" ++ fi ++ if test "timer" != "common" ; then ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/timer/libmca_timer.la" ++ fi ++ MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_timer_STATIC_LTLIBS)" ++ ++ timer_base_include= ++ ++ # first, compile all the components ++ ++ ompi_show_subsubtitle "Configuring MCA framework timer" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "timer" = "common" ; then ++ outdir=opal/mca/common ++ else ++ outdir=opal/mca/timer/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework timer" >&5 ++echo $ECHO_N "checking for no configure components in framework timer... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework timer" >&5 ++echo $ECHO_N "checking for m4 configure components in framework timer... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: catamount, aix, altix, darwin, solaris, windows, linux" >&5 ++echo "${ECHO_T}catamount, aix, altix, darwin, solaris, windows, linux" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component timer:catamount (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=timer ++ component=catamount ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component timer:catamount compile mode" >&5 ++echo $ECHO_N "checking for MCA component timer:catamount compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++# Check whether --with-timer was given. ++if test "${with_timer+set}" = set; then ++ withval=$with_timer; ++fi ++ ++ ++ if test "$with_timer" = "catamount"; then ++ timer_catamount_happy="yes" ++ timer_catamount_should_use=1 ++else ++ timer_catamount_should_use=0 ++ if test "$with_timer" = ""; then ++ timer_catamount_happy="yes" ++else ++ timer_catamount_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$timer_catamount_happy" = "yes"; then ++ ++for ac_header in catamount/dclock.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++else ++ timer_catamount_happy=no ++fi ++ ++done ++ ++fi ++ ++ ++ if test "$timer_catamount_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for __cpu_mhz" >&5 ++echo $ECHO_N "checking for __cpu_mhz... $ECHO_C" >&6; } ++if test "${ompi_cv_have___cpu_mhz+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++ ++int ++main () ++{ ++ ++unsigned int a = __cpu_mhz; ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_have___cpu_mhz=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_have___cpu_mhz=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_have___cpu_mhz" >&5 ++echo "${ECHO_T}$ompi_cv_have___cpu_mhz" >&6; } ++ if test "$ompi_cv_have___cpu_mhz" = "no"; then ++ timer_catamount_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$timer_catamount_happy" = "no" -a \ ++ "$timer_catamount_should_use" = "1"; then ++ { { echo "$as_me:$LINENO: error: Catamount timer requested but not available. Aborting." >&5 ++echo "$as_me: error: Catamount timer requested but not available. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ if test "$timer_catamount_happy" = "yes"; then ++ timer_base_include="catamount/timer_catamount.h" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=timer ++ component=catamount ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_timer" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_timer" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component timer:catamount can compile" >&5 ++echo $ECHO_N "checking if MCA component timer:catamount can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_timer" = "catamount" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"catamount\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"catamount\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "catamount" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"catamount\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"catamount\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components catamount" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_timer_catamount_DSO=1 ++else ++ BUILD_timer_catamount_DSO=0 ++fi ++ ++ if test "$BUILD_timer_catamount_DSO" = "1"; then ++ OMPI_BUILD_timer_catamount_DSO_TRUE= ++ OMPI_BUILD_timer_catamount_DSO_FALSE='#' ++else ++ OMPI_BUILD_timer_catamount_DSO_TRUE='#' ++ OMPI_BUILD_timer_catamount_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component timer:aix (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=timer ++ component=aix ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component timer:aix compile mode" >&5 ++echo $ECHO_N "checking for MCA component timer:aix compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++# Check whether --with-timer was given. ++if test "${with_timer+set}" = set; then ++ withval=$with_timer; ++fi ++ ++ ++ if test "$with_timer" = "aix"; then ++ timer_aix_happy="yes" ++ timer_aix_should_use=1 ++else ++ timer_aix_should_use=0 ++ if test "$with_timer" = ""; then ++ timer_aix_happy="yes" ++else ++ timer_aix_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$timer_aix_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for time_base_to_time" >&5 ++echo $ECHO_N "checking for time_base_to_time... $ECHO_C" >&6; } ++if test "${ac_cv_func_time_base_to_time+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define time_base_to_time to an innocuous variant, in case declares time_base_to_time. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define time_base_to_time innocuous_time_base_to_time ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char time_base_to_time (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef time_base_to_time ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char time_base_to_time (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_time_base_to_time || defined __stub___time_base_to_time ++choke me ++#endif ++ ++int ++main () ++{ ++return time_base_to_time (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_time_base_to_time=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_time_base_to_time=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_time_base_to_time" >&5 ++echo "${ECHO_T}$ac_cv_func_time_base_to_time" >&6; } ++if test $ac_cv_func_time_base_to_time = yes; then ++ timer_aix_happy="yes" ++else ++ timer_aix_happy="no" ++fi ++ ++fi ++ ++ ++ # look to see if -lpmapi is available ++ timer_aix_LIBS= ++ timer_aix_LIBS_SAVE="$LIBS" ++ if test "$timer_aix_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for pm_cycles in -lpmapi" >&5 ++echo $ECHO_N "checking for pm_cycles in -lpmapi... $ECHO_C" >&6; } ++if test "${ac_cv_lib_pmapi_pm_cycles+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpmapi $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char pm_cycles (); ++int ++main () ++{ ++return pm_cycles (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_pmapi_pm_cycles=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_pmapi_pm_cycles=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_pmapi_pm_cycles" >&5 ++echo "${ECHO_T}$ac_cv_lib_pmapi_pm_cycles" >&6; } ++if test $ac_cv_lib_pmapi_pm_cycles = yes; then ++ LIBS="$LIBS -lpmapi" ++ timer_aix_LIBS="-lpmapi" ++else ++ timer_aix_LIBS="" ++fi ++ ++fi ++ ++ ++ # get us a HAVE_PM_CYCLES #define ++ if test "$timer_aix_happy" = "yes"; then ++ ++for ac_func in pm_cycles ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ ++for ac_header in pmapi.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++fi ++ ++ LIBS="$timer_aix_LIBS_SAVE" ++ ++ if test "$timer_aix_happy" = "no" -a \ ++ "$timer_aix_should_use" = "1"; then ++ { { echo "$as_me:$LINENO: error: AIX timer requested but not available. Aborting." >&5 ++echo "$as_me: error: AIX timer requested but not available. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ ++ ++ if test "$timer_aix_happy" = "yes"; then ++ timer_aix_WRAPPER_EXTRA_LIBS="$timer_aix_LIBS" ++ timer_base_include="aix/timer_aix.h" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=timer ++ component=aix ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_timer" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_timer" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component timer:aix can compile" >&5 ++echo $ECHO_N "checking if MCA component timer:aix can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_timer" = "aix" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"aix\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"aix\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "aix" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"aix\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"aix\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components aix" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_timer_aix_DSO=1 ++else ++ BUILD_timer_aix_DSO=0 ++fi ++ ++ if test "$BUILD_timer_aix_DSO" = "1"; then ++ OMPI_BUILD_timer_aix_DSO_TRUE= ++ OMPI_BUILD_timer_aix_DSO_FALSE='#' ++else ++ OMPI_BUILD_timer_aix_DSO_TRUE='#' ++ OMPI_BUILD_timer_aix_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component timer:altix (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=timer ++ component=altix ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component timer:altix compile mode" >&5 ++echo $ECHO_N "checking for MCA component timer:altix compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++# Check whether --with-timer was given. ++if test "${with_timer+set}" = set; then ++ withval=$with_timer; ++fi ++ ++ ++ if test "$with_timer" = "altix"; then ++ timer_altix_happy="yes" ++ timer_altix_should_use=1 ++else ++ timer_altix_should_use=0 ++ if test "$with_timer" = ""; then ++ timer_altix_happy="yes" ++else ++ timer_altix_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$timer_altix_happy" = "yes"; then ++ if test "${ac_cv_header_sn_mmtimer_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for sn/mmtimer.h" >&5 ++echo $ECHO_N "checking for sn/mmtimer.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_sn_mmtimer_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_sn_mmtimer_h" >&5 ++echo "${ECHO_T}$ac_cv_header_sn_mmtimer_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking sn/mmtimer.h usability" >&5 ++echo $ECHO_N "checking sn/mmtimer.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking sn/mmtimer.h presence" >&5 ++echo $ECHO_N "checking sn/mmtimer.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: sn/mmtimer.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: sn/mmtimer.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: sn/mmtimer.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: sn/mmtimer.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: sn/mmtimer.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: sn/mmtimer.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: sn/mmtimer.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: sn/mmtimer.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for sn/mmtimer.h" >&5 ++echo $ECHO_N "checking for sn/mmtimer.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_sn_mmtimer_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_sn_mmtimer_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_sn_mmtimer_h" >&5 ++echo "${ECHO_T}$ac_cv_header_sn_mmtimer_h" >&6; } ++ ++fi ++if test $ac_cv_header_sn_mmtimer_h = yes; then ++ timer_altix_happy="yes" ++else ++ timer_altix_happy="no" ++fi ++ ++ ++fi ++ ++ ++ if test "$timer_altix_happy" = "yes"; then ++ ++ ++for ac_header in sys/ioctl.h sys/mman.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++fi ++ ++ ++ if test "$timer_altix_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking if MM timer can be opened" >&5 ++echo $ECHO_N "checking if MM timer can be opened... $ECHO_C" >&6; } ++if test "${ompi_cv_mm_timer_mmap+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++#include ++#include ++#include ++ ++int ++main () ++{ ++ ++ int fd; ++ fd = open(MMTIMER_FULLNAME, O_RDONLY); ++ if (-1 ==fd) return 1; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ompi_cv_mm_timer_mmap="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_mm_timer_mmap="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_mm_timer_mmap" >&5 ++echo "${ECHO_T}$ompi_cv_mm_timer_mmap" >&6; } ++ if test "$ompi_cv_mm_timer_mmap" = "yes"; then ++ timer_altix_happy="yes" ++else ++ timer_altix_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$timer_altix_happy" = "no" -a \ ++ "$timer_altix_should_use" = "1"; then ++ { { echo "$as_me:$LINENO: error: Altix timer requested but not available. Aborting." >&5 ++echo "$as_me: error: Altix timer requested but not available. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ if test "$timer_altix_happy" = "yes"; then ++ timer_base_include="altix/timer_altix.h" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=timer ++ component=altix ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_timer" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_timer" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component timer:altix can compile" >&5 ++echo $ECHO_N "checking if MCA component timer:altix can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_timer" = "altix" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"altix\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"altix\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "altix" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"altix\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"altix\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components altix" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_timer_altix_DSO=1 ++else ++ BUILD_timer_altix_DSO=0 ++fi ++ ++ if test "$BUILD_timer_altix_DSO" = "1"; then ++ OMPI_BUILD_timer_altix_DSO_TRUE= ++ OMPI_BUILD_timer_altix_DSO_FALSE='#' ++else ++ OMPI_BUILD_timer_altix_DSO_TRUE='#' ++ OMPI_BUILD_timer_altix_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component timer:darwin (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=timer ++ component=darwin ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component timer:darwin compile mode" >&5 ++echo $ECHO_N "checking for MCA component timer:darwin compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++# Check whether --with-timer was given. ++if test "${with_timer+set}" = set; then ++ withval=$with_timer; ++fi ++ ++ ++ if test "$with_timer" = "darwin"; then ++ timer_darwin_happy="yes" ++ timer_darwin_should_use=1 ++else ++ timer_darwin_should_use=0 ++ if test "$with_timer" = ""; then ++ timer_darwin_happy="yes" ++else ++ timer_darwin_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$timer_darwin_happy" = "yes"; then ++ ++for ac_header in mach/mach_time.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++ { echo "$as_me:$LINENO: checking for mach_absolute_time" >&5 ++echo $ECHO_N "checking for mach_absolute_time... $ECHO_C" >&6; } ++if test "${ac_cv_func_mach_absolute_time+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define mach_absolute_time to an innocuous variant, in case declares mach_absolute_time. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define mach_absolute_time innocuous_mach_absolute_time ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char mach_absolute_time (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef mach_absolute_time ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mach_absolute_time (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_mach_absolute_time || defined __stub___mach_absolute_time ++choke me ++#endif ++ ++int ++main () ++{ ++return mach_absolute_time (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_mach_absolute_time=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_mach_absolute_time=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_mach_absolute_time" >&5 ++echo "${ECHO_T}$ac_cv_func_mach_absolute_time" >&6; } ++if test $ac_cv_func_mach_absolute_time = yes; then ++ timer_darwin_happy="yes" ++else ++ timer_darwin_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$timer_darwin_happy" = "no" -a \ ++ "$timer_darwin_should_use" = "1"; then ++ { { echo "$as_me:$LINENO: error: Darwin timer requested but not available. Aborting." >&5 ++echo "$as_me: error: Darwin timer requested but not available. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ if test "$timer_darwin_happy" = "yes"; then ++ timer_base_include="darwin/timer_darwin.h" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=timer ++ component=darwin ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_timer" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_timer" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component timer:darwin can compile" >&5 ++echo $ECHO_N "checking if MCA component timer:darwin can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_timer" = "darwin" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "darwin" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components darwin" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_timer_darwin_DSO=1 ++else ++ BUILD_timer_darwin_DSO=0 ++fi ++ ++ if test "$BUILD_timer_darwin_DSO" = "1"; then ++ OMPI_BUILD_timer_darwin_DSO_TRUE= ++ OMPI_BUILD_timer_darwin_DSO_FALSE='#' ++else ++ OMPI_BUILD_timer_darwin_DSO_TRUE='#' ++ OMPI_BUILD_timer_darwin_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component timer:solaris (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=timer ++ component=solaris ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component timer:solaris compile mode" >&5 ++echo $ECHO_N "checking for MCA component timer:solaris compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++# Check whether --with-timer was given. ++if test "${with_timer+set}" = set; then ++ withval=$with_timer; ++fi ++ ++ ++ if test "$with_timer" = "solaris"; then ++ timer_solaris_happy="yes" ++ timer_solaris_should_use=1 ++else ++ timer_solaris_should_use=0 ++ if test "$with_timer" = ""; then ++ timer_solaris_happy="yes" ++else ++ timer_solaris_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$timer_solaris_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for gethrtime" >&5 ++echo $ECHO_N "checking for gethrtime... $ECHO_C" >&6; } ++if test "${ac_cv_func_gethrtime+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define gethrtime to an innocuous variant, in case declares gethrtime. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define gethrtime innocuous_gethrtime ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char gethrtime (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef gethrtime ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char gethrtime (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_gethrtime || defined __stub___gethrtime ++choke me ++#endif ++ ++int ++main () ++{ ++return gethrtime (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_gethrtime=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_gethrtime=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_gethrtime" >&5 ++echo "${ECHO_T}$ac_cv_func_gethrtime" >&6; } ++if test $ac_cv_func_gethrtime = yes; then ++ timer_solaris_happy="yes" ++else ++ timer_solaris_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$timer_solaris_happy" = "no" -a \ ++ "$timer_solaris_should_use" = "1"; then ++ { { echo "$as_me:$LINENO: error: Solaris timer requested but not available. Aborting." >&5 ++echo "$as_me: error: Solaris timer requested but not available. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ if test "$timer_solaris_happy" = "yes"; then ++ timer_base_include="solaris/timer_solaris.h" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=timer ++ component=solaris ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_timer" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_timer" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component timer:solaris can compile" >&5 ++echo $ECHO_N "checking if MCA component timer:solaris can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_timer" = "solaris" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"solaris\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "solaris" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"solaris\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components solaris" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_timer_solaris_DSO=1 ++else ++ BUILD_timer_solaris_DSO=0 ++fi ++ ++ if test "$BUILD_timer_solaris_DSO" = "1"; then ++ OMPI_BUILD_timer_solaris_DSO_TRUE= ++ OMPI_BUILD_timer_solaris_DSO_FALSE='#' ++else ++ OMPI_BUILD_timer_solaris_DSO_TRUE='#' ++ OMPI_BUILD_timer_solaris_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component timer:windows (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=timer ++ component=windows ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component timer:windows compile mode" >&5 ++echo $ECHO_N "checking for MCA component timer:windows compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++# Check whether --with-timer was given. ++if test "${with_timer+set}" = set; then ++ withval=$with_timer; ++fi ++ ++ ++ if test "$with_timer" = "windows"; then ++ timer_windows_happy="yes" ++ timer_windows_should_use=1 ++else ++ timer_windows_should_use=0 ++ if test "$with_timer" = ""; then ++ timer_windows_happy="yes" ++else ++ timer_windows_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$timer_windows_happy" = "yes"; then ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++LARGE_INTEGER now; ++ QueryPerformanceCounter( &now ); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ timer_windows_happy="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ timer_windows_happy="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ if test "$timer_windows_happy" = "no" -a \ ++ "$timer_windows_should_use" = "1"; then ++ { { echo "$as_me:$LINENO: error: Windows timer requested but not available. Aborting." >&5 ++echo "$as_me: error: Windows timer requested but not available. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ if test "$timer_windows_happy" = "yes"; then ++ timer_base_include="windows/timer_windows.h" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=timer ++ component=windows ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_timer" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_timer" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component timer:windows can compile" >&5 ++echo $ECHO_N "checking if MCA component timer:windows can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_timer" = "windows" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"windows\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "windows" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"windows\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components windows" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_timer_windows_DSO=1 ++else ++ BUILD_timer_windows_DSO=0 ++fi ++ ++ if test "$BUILD_timer_windows_DSO" = "1"; then ++ OMPI_BUILD_timer_windows_DSO_TRUE= ++ OMPI_BUILD_timer_windows_DSO_FALSE='#' ++else ++ OMPI_BUILD_timer_windows_DSO_TRUE='#' ++ OMPI_BUILD_timer_windows_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component timer:linux (m4 configuration macro)" ++ ++ ++ ++ ++ project=opal ++ framework=timer ++ component=linux ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ { echo "$as_me:$LINENO: checking for MCA component timer:linux compile mode" >&5 ++echo $ECHO_N "checking for MCA component timer:linux compile mode... $ECHO_C" >&6; } ++ compile_mode="static" ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++# Check whether --with-timer was given. ++if test "${with_timer+set}" = set; then ++ withval=$with_timer; ++fi ++ ++ ++ if test "$with_timer" = "linux"; then ++ timer_linux_happy="yes" ++ timer_linux_should_use=1 ++else ++ timer_linux_should_use=0 ++ if test "$with_timer" = ""; then ++ timer_linux_happy="yes" ++else ++ timer_linux_happy="no" ++fi ++ ++fi ++ ++ ++ case "${host}" in ++ i?86-*|x86_64*|ia64-*|powerpc-*|powerpc64-*|sparc*-*) ++ if test "$timer_linux_happy" = "yes"; then ++ if test -r "/proc/cpuinfo"; then ++ timer_linux_happy="yes" ++else ++ timer_linux_happy="no" ++fi ++ ++fi ++ ++ ;; ++ *) ++ timer_linux_happy="no" ++ ;; ++ esac ++ ++ if test "$timer_linux_happy" = "no" -a \ ++ "$timer_linux_should_use" = "1"; then ++ { { echo "$as_me:$LINENO: error: Linux timer requested but not available. Aborting." >&5 ++echo "$as_me: error: Linux timer requested but not available. Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ++ if test "$timer_linux_happy" = "yes"; then ++ timer_base_include="linux/timer_linux.h" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=opal ++ framework=timer ++ component=linux ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_timer" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_timer" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component timer:linux can compile" >&5 ++echo $ECHO_N "checking if MCA component timer:linux can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_timer" = "linux" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"linux\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_timer" ; then ++ if test "$DIRECT_timer" = "linux" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"linux\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components linux" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_timer_linux_DSO=1 ++else ++ BUILD_timer_linux_DSO=0 ++fi ++ ++ if test "$BUILD_timer_linux_DSO" = "1"; then ++ OMPI_BUILD_timer_linux_DSO_TRUE= ++ OMPI_BUILD_timer_linux_DSO_FALSE='#' ++else ++ OMPI_BUILD_timer_linux_DSO_TRUE='#' ++ OMPI_BUILD_timer_linux_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ if test $components_last_result -eq 1; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ ++ ++ MCA_timer_ALL_COMPONENTS="$all_components" ++ MCA_timer_STATIC_COMPONENTS="$static_components" ++ MCA_timer_DSO_COMPONENTS="$dso_components" ++ MCA_timer_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_timer_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_timer_ALL_SUBDIRS="$MCA_timer_ALL_SUBDIRS mca/timer/$item" ++ done ++ ++ ++ ++ MCA_timer_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_timer_STATIC_SUBDIRS="$MCA_timer_STATIC_SUBDIRS mca/timer/$item" ++ done ++ ++ ++ ++ MCA_timer_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_timer_DSO_SUBDIRS="$MCA_timer_DSO_SUBDIRS mca/timer/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "timer" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++ ++ ++ # someone should have set this... ++ if test "$timer_base_include" = "" ; then ++ timer_base_include="base/timer_base_null.h" ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MCA_timer_IMPLEMENTATION_HEADER "opal/mca/timer/$timer_base_include" ++_ACEOF ++ ++ ++ ++ ++ ++ ++ ++ ++ ++MCA_PROJECT_SUBDIRS="$MCA_PROJECT_SUBDIRS orte" ++ ++ # can't use a variable rename here because these need to be evaled ++ # at auto* time. ++ ++ ompi_show_subtitle "Configuring MCA for orte" ++ ++ { echo "$as_me:$LINENO: checking for frameworks for orte" >&5 ++echo $ECHO_N "checking for frameworks for orte... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: errmgr, ess, filem, grpcomm, iof, notifier, odls, oob, plm, ras, rmaps, rml, routed, snapc" >&5 ++echo "${ECHO_T}errmgr, ess, filem, grpcomm, iof, notifier, odls, oob, plm, ras, rmaps, rml, routed, snapc" >&6; } ++ ++ # iterate through the list of frameworks. There is something ++ # funky with m4 foreach if the list is defined, but empty. It ++ # will call the 3rd argument once with an empty value for the ++ # first argument. Protect against calling MCA_CONFIGURE_FRAMEWORK ++ # with an empty second argument. Grrr.... ++ # if there isn't a project list, abort ++ # ++ # Also setup two variables for Makefiles: ++ # MCA_project_FRAMEWORKS - list of frameworks in that project ++ # MCA_project_FRAMEWORK_LIBS - list of libraries (or variables pointing ++ # to more libraries) that must be included ++ # in the project's main library ++ ++ ++ MCA_orte_FRAMEWORKS= ++ MCA_orte_FRAMEWORKS_SUBDIRS= ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS= ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS= ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS= ++ MCA_orte_FRAMEWORK_LIBS= ++ ++ # common has to go up front ++ if test "errmgr" = "common" ; then ++ MCA_orte_FRAMEWORKS="errmgr $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/errmgr $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_errmgr_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_errmgr_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_errmgr_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS errmgr" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/errmgr" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_errmgr_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_errmgr_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_errmgr_STATIC_SUBDIRS)" ++ fi ++ if test "errmgr" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/errmgr/libmca_errmgr.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_errmgr_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework errmgr" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "errmgr" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/errmgr/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework errmgr" >&5 ++echo $ECHO_N "checking for no configure components in framework errmgr... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: default" >&5 ++echo "${ECHO_T}default" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework errmgr" >&5 ++echo $ECHO_N "checking for m4 configure components in framework errmgr... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component errmgr:default (no configuration)" ++ ++ ++ ++ ++ project=orte ++ framework=errmgr ++ component=default ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_errmgr" ; then ++ if test "$DIRECT_errmgr" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=errmgr ++ component=default ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_errmgr" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=errmgr ++ component=default ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_errmgr" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_errmgr" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component errmgr:default can compile" >&5 ++echo $ECHO_N "checking if MCA component errmgr:default can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_errmgr" = "default" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"default\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"default\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_errmgr" ; then ++ if test "$DIRECT_errmgr" = "default" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"default\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"default\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components default" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_errmgr_default_DSO=1 ++ else ++ BUILD_errmgr_default_DSO=0 ++ fi ++ if test "$BUILD_errmgr_default_DSO" = "1"; then ++ OMPI_BUILD_errmgr_default_DSO_TRUE= ++ OMPI_BUILD_errmgr_default_DSO_FALSE='#' ++else ++ OMPI_BUILD_errmgr_default_DSO_TRUE='#' ++ OMPI_BUILD_errmgr_default_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/orte/mca/errmgr/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component errmgr:$component (need to configure)" ++ ++ ++ ++ ++ project=orte ++ framework=errmgr ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_errmgr" ; then ++ if test "$DIRECT_errmgr" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=errmgr ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_errmgr" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# orte/mca/errmgr/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="orte/mca/errmgr/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=errmgr ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_errmgr" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_errmgr" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component errmgr:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component errmgr:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_errmgr" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_errmgr" ; then ++ if test "$DIRECT_errmgr" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_errmgr_ALL_COMPONENTS="$all_components" ++ MCA_errmgr_STATIC_COMPONENTS="$static_components" ++ MCA_errmgr_DSO_COMPONENTS="$dso_components" ++ MCA_errmgr_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_errmgr_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_errmgr_ALL_SUBDIRS="$MCA_errmgr_ALL_SUBDIRS mca/errmgr/$item" ++ done ++ ++ ++ ++ MCA_errmgr_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_errmgr_STATIC_SUBDIRS="$MCA_errmgr_STATIC_SUBDIRS mca/errmgr/$item" ++ done ++ ++ ++ ++ MCA_errmgr_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_errmgr_DSO_SUBDIRS="$MCA_errmgr_DSO_SUBDIRS mca/errmgr/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "errmgr" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "ess" = "common" ; then ++ MCA_orte_FRAMEWORKS="ess $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/ess $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_ess_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_ess_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_ess_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS ess" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/ess" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ess_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ess_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ess_STATIC_SUBDIRS)" ++ fi ++ if test "ess" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/ess/libmca_ess.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_ess_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework ess" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "ess" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/ess/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework ess" >&5 ++echo $ECHO_N "checking for no configure components in framework ess... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework ess" >&5 ++echo $ECHO_N "checking for m4 configure components in framework ess... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: portals_utcp, cnos, alps, env, hnp, lsf, singleton, slurm, tool" >&5 ++echo "${ECHO_T}portals_utcp, cnos, alps, env, hnp, lsf, singleton, slurm, tool" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ # get the component's priority... ++ infile="$srcdir/orte/mca/ess/portals_utcp/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component ess:portals_utcp (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ess ++ component=portals_utcp ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ess ++ component=portals_utcp ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ess" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ # save compiler flags so that we don't alter them for later ++ # components. ++ ess_portals_utcp_save_CPPFLAGS="$CPPFLAGS" ++ ess_portals_utcp_save_LDFLAGS="$LDFLAGS" ++ ess_portals_utcp_save_LIBS="$LIBS" ++ ++ # allow user a way to say where the Portals installation is ++ ++# Check whether --with-portals was given. ++if test "${with_portals+set}" = set; then ++ withval=$with_portals; ++fi ++ ++ ++ if test -n "$with_portals"; then ++ if test -d "$with_portals/include"; then ++ ess_portals_utcp_CPPFLAGS="-I$with_portals/include" ++ CPPFLAGS="$CPPFLAGS $ess_portals_utcp_CPPFLAGS" ++fi ++ ++ if test -d "$with_portals/lib"; then ++ ess_portals_utcp_LDFLAGS="-L$with_portals/lib" ++ LDFLAGS="$LDFLAGS $ess_portals_utcp_LDFLAGS" ++fi ++ ++fi ++ ++ ++ # Try to find all the portals libraries (this is not fun!) ++ ++# Check whether --with-portals-libs was given. ++if test "${with_portals_libs+set}" = set; then ++ withval=$with_portals_libs; ++fi ++ ++ if test -n "$with_portals_libs" ; then ++ ess_portals_utcp_LIBS="" ++ for lib in $with_portals_libs ; do ++ ess_portals_utcp_LIBS="$ess_portals_utcp_LIBS -l$lib" ++ done ++ fi ++ ++ ess_portals_utcp_LIBS="-lp3utcp -lp3api -lp3lib -lp3rt -lp3utcp" ++ ++ # check for portals ++ LIBS="$LIBS $ess_portals_utcp_LIBS" ++ { echo "$as_me:$LINENO: checking for PtlGetRank" >&5 ++echo $ECHO_N "checking for PtlGetRank... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++#include ++#include ++#include ++FILE *utcp_api_out; ++FILE *utcp_lib_out; ++int ++main () ++{ ++unsigned int nprocs, rank; ++int dummy; ++PtlInit(&dummy); ++PtlNIInit(PTL_IFACE_DEFAULT, PTL_PID_ANY, NULL, NULL, NULL); ++PtlGetRank(PTL_INVALID_HANDLE, &rank, &nprocs); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ should_build=1 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ should_build=0 ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ ++ # we don't actually need the Portals code for this component, ++ # so don't link against them... ++ ess_portals_utcp_CPPFLAGS= ++ ess_portals_utcp_LDFLAGS= ++ ess_portals_utcp_LIBS= ++ ++ # substitute in the things needed to build Portals ++ ++ ++ ++ ++ # reset the flags for the next test ++ CPPFLAGS="$ess_portals_utcp_save_CPPFLAGS" ++ LDFLAGS="$ess_portals_utcp_save_LDFLAGS" ++ LIBS="$ess_portals_utcp_save_LIBS" ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ess ++ component=portals_utcp ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ess" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ess" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ess:portals_utcp can compile" >&5 ++echo $ECHO_N "checking if MCA component ess:portals_utcp can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ess" = "portals_utcp" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"portals_utcp\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"portals_utcp\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "portals_utcp" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"portals_utcp\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"portals_utcp\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components portals_utcp" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ess_portals_utcp_DSO=1 ++else ++ BUILD_ess_portals_utcp_DSO=0 ++fi ++ ++ if test "$BUILD_ess_portals_utcp_DSO" = "1"; then ++ OMPI_BUILD_ess_portals_utcp_DSO_TRUE= ++ OMPI_BUILD_ess_portals_utcp_DSO_FALSE='#' ++else ++ OMPI_BUILD_ess_portals_utcp_DSO_TRUE='#' ++ OMPI_BUILD_ess_portals_utcp_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/orte/mca/ess/cnos/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component ess:cnos (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ess ++ component=cnos ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ess ++ component=cnos ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ess" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ # check for cnos functions ++ # a bit of a hack,,, we don't want ess_cnos if alps ++ # was requested, and we can't rely on build priority because ++ # ess_alps uses priorty 10 so that ess_hnp is built as well. ++ { echo "$as_me:$LINENO: checking for cnos_get_rank" >&5 ++echo $ECHO_N "checking for cnos_get_rank... $ECHO_C" >&6; } ++if test "${ac_cv_func_cnos_get_rank+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define cnos_get_rank to an innocuous variant, in case declares cnos_get_rank. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define cnos_get_rank innocuous_cnos_get_rank ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char cnos_get_rank (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef cnos_get_rank ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cnos_get_rank (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_cnos_get_rank || defined __stub___cnos_get_rank ++choke me ++#endif ++ ++int ++main () ++{ ++return cnos_get_rank (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_cnos_get_rank=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_cnos_get_rank=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_cnos_get_rank" >&5 ++echo "${ECHO_T}$ac_cv_func_cnos_get_rank" >&6; } ++if test $ac_cv_func_cnos_get_rank = yes; then ++ ++ ++# Check whether --with-alps was given. ++if test "${with_alps+set}" = set; then ++ withval=$with_alps; ++fi ++ ++ if test "$with_alps" = "yes" ; then ++ ompi_check_alps_happy="yes" ++ fi ++ if test "$ompi_check_alps_happy" = "yes"; then ++ should_build=0 ++else ++ should_build=1 ++fi ++ ++ ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ess ++ component=cnos ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ess" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ess" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ess:cnos can compile" >&5 ++echo $ECHO_N "checking if MCA component ess:cnos can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ess" = "cnos" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"cnos\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "cnos" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"cnos\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components cnos" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ess_cnos_DSO=1 ++else ++ BUILD_ess_cnos_DSO=0 ++fi ++ ++ if test "$BUILD_ess_cnos_DSO" = "1"; then ++ OMPI_BUILD_ess_cnos_DSO_TRUE= ++ OMPI_BUILD_ess_cnos_DSO_FALSE='#' ++else ++ OMPI_BUILD_ess_cnos_DSO_TRUE='#' ++ OMPI_BUILD_ess_cnos_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/orte/mca/ess/alps/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component ess:alps (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ess ++ component=alps ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ess ++ component=alps ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ess" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-alps was given. ++if test "${with_alps+set}" = set; then ++ withval=$with_alps; ++fi ++ ++ if test "$with_alps" = "yes" ; then ++ ompi_check_alps_happy="yes" ++ fi ++ if test "$ompi_check_alps_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for cnos_get_rank" >&5 ++echo $ECHO_N "checking for cnos_get_rank... $ECHO_C" >&6; } ++if test "${ac_cv_func_cnos_get_rank+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define cnos_get_rank to an innocuous variant, in case declares cnos_get_rank. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define cnos_get_rank innocuous_cnos_get_rank ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char cnos_get_rank (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef cnos_get_rank ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cnos_get_rank (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_cnos_get_rank || defined __stub___cnos_get_rank ++choke me ++#endif ++ ++int ++main () ++{ ++return cnos_get_rank (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_cnos_get_rank=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_cnos_get_rank=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_cnos_get_rank" >&5 ++echo "${ECHO_T}$ac_cv_func_cnos_get_rank" >&6; } ++if test $ac_cv_func_cnos_get_rank = yes; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++else ++ should_build=0 ++fi ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ess ++ component=alps ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ess" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ess" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ess:alps can compile" >&5 ++echo $ECHO_N "checking if MCA component ess:alps can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ess" = "alps" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"alps\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "alps" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"alps\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components alps" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ess_alps_DSO=1 ++else ++ BUILD_ess_alps_DSO=0 ++fi ++ ++ if test "$BUILD_ess_alps_DSO" = "1"; then ++ OMPI_BUILD_ess_alps_DSO_TRUE= ++ OMPI_BUILD_ess_alps_DSO_FALSE='#' ++else ++ OMPI_BUILD_ess_alps_DSO_TRUE='#' ++ OMPI_BUILD_ess_alps_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/orte/mca/ess/env/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component ess:env (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ess ++ component=env ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ess ++ component=env ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ess" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ should_build=1 ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ess ++ component=env ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ess" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ess" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ess:env can compile" >&5 ++echo $ECHO_N "checking if MCA component ess:env can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ess" = "env" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"env\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "env" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"env\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components env" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ess_env_DSO=1 ++else ++ BUILD_ess_env_DSO=0 ++fi ++ ++ if test "$BUILD_ess_env_DSO" = "1"; then ++ OMPI_BUILD_ess_env_DSO_TRUE= ++ OMPI_BUILD_ess_env_DSO_FALSE='#' ++else ++ OMPI_BUILD_ess_env_DSO_TRUE='#' ++ OMPI_BUILD_ess_env_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/orte/mca/ess/hnp/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component ess:hnp (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ess ++ component=hnp ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ess ++ component=hnp ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ess" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ should_build=1 ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ess ++ component=hnp ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ess" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ess" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ess:hnp can compile" >&5 ++echo $ECHO_N "checking if MCA component ess:hnp can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ess" = "hnp" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"hnp\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"hnp\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "hnp" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"hnp\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"hnp\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components hnp" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ess_hnp_DSO=1 ++else ++ BUILD_ess_hnp_DSO=0 ++fi ++ ++ if test "$BUILD_ess_hnp_DSO" = "1"; then ++ OMPI_BUILD_ess_hnp_DSO_TRUE= ++ OMPI_BUILD_ess_hnp_DSO_FALSE='#' ++else ++ OMPI_BUILD_ess_hnp_DSO_TRUE='#' ++ OMPI_BUILD_ess_hnp_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/orte/mca/ess/lsf/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component ess:lsf (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ess ++ component=lsf ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ess ++ component=lsf ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ess" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-lsf was given. ++if test "${with_lsf+set}" = set; then ++ withval=$with_lsf; ++fi ++ ++ ++# Check whether --with-lsf-libdir was given. ++if test "${with_lsf_libdir+set}" = set; then ++ withval=$with_lsf_libdir; ++fi ++ ++ ++ # Defaults ++ ompi_check_lsf_dir_msg="compiler default" ++ ompi_check_lsf_libdir_msg="linker default" ++ ++ # Save directory names if supplied ++ if test ! -z "$with_lsf" -a "$with_lsf" != "yes"; then ++ ompi_check_lsf_dir="$with_lsf" ++ ompi_check_lsf_dir_msg="$ompi_check_lsf_dir (from --with-lsf)" ++fi ++ ++ if test ! -z "$with_lsf_libdir" -a "$with_lsf_libdir" != "yes"; then ++ ompi_check_lsf_libdir="$with_lsf_libdir" ++ ompi_check_lsf_libdir_msg="$ompi_check_lsf_libdir (from --with-lsf-libdir)" ++fi ++ ++ ++ # If no directories were specified, look for LSF_LIBDIR, ++ # LSF_INCLUDEDIR, and/or LSF_ENVDIR. ++ if test -z "$ompi_check_lsf_dir" -a -z "$ompi_check_lsf_libdir"; then ++ if test ! -z "$LSF_ENVDIR" -a -z "$LSF_LIBDIR" -a -f "$LSF_ENVDIR/lsf.conf"; then ++ LSF_LIBDIR=`egrep ^LSF_LIBDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-` ++fi ++ ++ if test ! -z "$LSF_ENVDIR" -a -z "$LSF_INCLUDEDIR" -a -f "$LSF_ENVDIR/lsf.conf"; then ++ LSF_INCLUDEDIR=`egrep ^LSF_INCLUDEDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-` ++fi ++ ++ if test ! -z "$LSF_LIBDIR"; then ++ ompi_check_lsf_libdir=$LSF_LIBDIR ++ ompi_check_lsf_libdir_msg="$LSF_LIBDIR (from \$LSF_LIBDIR)" ++fi ++ ++ if test ! -z "$LSF_INCLUDEDIR"; then ++ ompi_check_lsf_dir=`dirname $LSF_INCLUDEDIR` ++ ompi_check_lsf_dir_msg="$ompi_check_lsf_dir (from \$LSF_INCLUDEDIR)" ++fi ++ ++fi ++ ++ ++ if test "$with_lsf" = "no"; then ++ ompi_check_lsf_happy="no" ++else ++ ompi_check_lsf_happy="yes" ++fi ++ ++ ++ ompi_check_lsf_ess_lsf_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_lsf_ess_lsf_save_LDFLAGS="$LDFLAGS" ++ ompi_check_lsf_ess_lsf_save_LIBS="$LIBS" ++ ++ if test "$ompi_check_lsf_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for LSF dir" >&5 ++echo $ECHO_N "checking for LSF dir... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $ompi_check_lsf_dir_msg" >&5 ++echo "${ECHO_T}$ompi_check_lsf_dir_msg" >&6; } ++ { echo "$as_me:$LINENO: checking for LSF library dir" >&5 ++echo $ECHO_N "checking for LSF library dir... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $ompi_check_lsf_libdir_msg" >&5 ++echo "${ECHO_T}$ompi_check_lsf_libdir_msg" >&6; } ++ ++ ompi_check_package_ess_lsf_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_ess_lsf_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_ess_lsf_save_LIBS="$LIBS" ++ ++ ompi_check_package_ess_lsf_orig_CPPFLAGS="$ess_lsf_CPPFLAGS" ++ ompi_check_package_ess_lsf_orig_LDFLAGS="$ess_lsf_LDFLAGS" ++ ompi_check_package_ess_lsf_orig_LIBS="$ess_lsf_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_lsf_lsbatch_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_lsf_dir" = "/usr" -o "$ompi_check_lsf_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5 ++echo $ECHO_N "checking for lsf/lsbatch.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5 ++echo "${ECHO_T}$ac_cv_header_lsf_lsbatch_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking lsf/lsbatch.h usability" >&5 ++echo $ECHO_N "checking lsf/lsbatch.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking lsf/lsbatch.h presence" >&5 ++echo $ECHO_N "checking lsf/lsbatch.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5 ++echo $ECHO_N "checking for lsf/lsbatch.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_lsf_lsbatch_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5 ++echo "${ECHO_T}$ac_cv_header_lsf_lsbatch_h" >&6; } ++ ++fi ++if test $ac_cv_header_lsf_lsbatch_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_lsf_lsbatch_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_lsf_dir" != ""; then ++ ess_lsf_CPPFLAGS="$ess_lsf_CPPFLAGS -I$ompi_check_lsf_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_lsf_dir/include" ++fi ++ ++ if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5 ++echo $ECHO_N "checking for lsf/lsbatch.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5 ++echo "${ECHO_T}$ac_cv_header_lsf_lsbatch_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking lsf/lsbatch.h usability" >&5 ++echo $ECHO_N "checking lsf/lsbatch.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking lsf/lsbatch.h presence" >&5 ++echo $ECHO_N "checking lsf/lsbatch.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5 ++echo $ECHO_N "checking for lsf/lsbatch.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_lsf_lsbatch_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5 ++echo "${ECHO_T}$ac_cv_header_lsf_lsbatch_h" >&6; } ++ ++fi ++if test $ac_cv_header_lsf_lsbatch_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_bat_lsb_launch ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_lsf_libdir" != ""; then ++ # libdir was specified - search only there ++ ess_lsf_LDFLAGS="$ess_lsf_LDFLAGS -L$ompi_check_lsf_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_lsf_libdir" ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS" ++ ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_lsf_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS" ++ ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ess_lsf_LDFLAGS="$ess_lsf_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS" ++ ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ess_lsf_LDFLAGS="$ess_lsf_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS" ++ ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ ess_lsf_LIBS="-lbat -llsf" ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_bat_lsb_launch ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_lsf_libdir" != ""; then ++ # libdir was specified - search only there ++ ess_lsf_LDFLAGS="$ess_lsf_LDFLAGS -L$ompi_check_lsf_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_lsf_libdir" ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS" ++ ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_lsf_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS" ++ ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ess_lsf_LDFLAGS="$ess_lsf_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS" ++ ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ess_lsf_LDFLAGS="$ess_lsf_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS" ++ ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ ess_lsf_LIBS="-lbat -llsf" ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ ompi_check_lsf_happy="yes" ++else ++ ess_lsf_CPPFLAGS="$ompi_check_package_ess_lsf_orig_CPPFLAGS" ++ ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS" ++ ess_lsf_LIBS="$ompi_check_package_ess_lsf_orig_LIBS" ++ ompi_check_lsf_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_ess_lsf_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS" ++ LIBS="$ompi_check_package_ess_lsf_save_LIBS" ++ ++fi ++ ++ ++ CPPFLAGS="$ompi_check_lsf_ess_lsf_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_lsf_ess_lsf_save_LDFLAGS" ++ LIBS="$ompi_check_lsf_ess_lsf_save_LIBS" ++ ++ # Reset for the next time we're called ++ ompi_check_lsf_dir= ++ ompi_check_lsf_libdir= ++ ++ if test "$ompi_check_lsf_happy" = "yes"; then ++ ess_lsf_good=1 ++else ++ if test ! -z "$with_lsf" -a "$with_lsf" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: LSF support requested (via --with-lsf) but not found." >&5 ++echo "$as_me: WARNING: LSF support requested (via --with-lsf) but not found." >&2;} ++ { { echo "$as_me:$LINENO: error: Aborting." >&5 ++echo "$as_me: error: Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ess_lsf_good=0 ++fi ++ ++ ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ if test "$ess_lsf_good" = "1"; then ++ ess_lsf_WRAPPER_EXTRA_LDFLAGS="$ess_lsf_LDFLAGS" ++ ess_lsf_WRAPPER_EXTRA_LIBS="$ess_lsf_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # set build flags to use in makefile ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ess ++ component=lsf ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ess" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ess" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ess:lsf can compile" >&5 ++echo $ECHO_N "checking if MCA component ess:lsf can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ess" = "lsf" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"lsf\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "lsf" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"lsf\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components lsf" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ess_lsf_DSO=1 ++else ++ BUILD_ess_lsf_DSO=0 ++fi ++ ++ if test "$BUILD_ess_lsf_DSO" = "1"; then ++ OMPI_BUILD_ess_lsf_DSO_TRUE= ++ OMPI_BUILD_ess_lsf_DSO_FALSE='#' ++else ++ OMPI_BUILD_ess_lsf_DSO_TRUE='#' ++ OMPI_BUILD_ess_lsf_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/orte/mca/ess/singleton/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component ess:singleton (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ess ++ component=singleton ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ess ++ component=singleton ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ess" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ should_build=1 ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ess ++ component=singleton ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ess" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ess" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ess:singleton can compile" >&5 ++echo $ECHO_N "checking if MCA component ess:singleton can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ess" = "singleton" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"singleton\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"singleton\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "singleton" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"singleton\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"singleton\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components singleton" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ess_singleton_DSO=1 ++else ++ BUILD_ess_singleton_DSO=0 ++fi ++ ++ if test "$BUILD_ess_singleton_DSO" = "1"; then ++ OMPI_BUILD_ess_singleton_DSO_TRUE= ++ OMPI_BUILD_ess_singleton_DSO_FALSE='#' ++else ++ OMPI_BUILD_ess_singleton_DSO_TRUE='#' ++ OMPI_BUILD_ess_singleton_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/orte/mca/ess/slurm/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component ess:slurm (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ess ++ component=slurm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ess ++ component=slurm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ess" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-slurm was given. ++if test "${with_slurm+set}" = set; then ++ withval=$with_slurm; ++fi ++ ++ ++ if test "$with_slurm" = "no" ; then ++ ompi_check_slurm_happy="no" ++ elif test "$with_slurm" = "" ; then ++ # unless user asked, only build slurm component on linux, AIX, ++ # and OS X systems (these are the platforms that SLURM ++ # supports) ++ case $host in ++ *-linux*|*-aix*|*-apple-darwin*) ++ ompi_check_slurm_happy="yes" ++ ;; ++ *) ++ { echo "$as_me:$LINENO: checking for SLURM srun in PATH" >&5 ++echo $ECHO_N "checking for SLURM srun in PATH... $ECHO_C" >&6; } ++ ++# 1 is the variable name to do "which" on ++# 2 is the variable name to assign the return value to ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ompi_prog=srun ++ ++IFS_SAVE=$IFS ++IFS="$PATH_SEPARATOR" ++for ompi_dir in $PATH; do ++ if test -x "$ompi_dir/$ompi_prog"; then ++ OMPI_CHECK_SLURM_SRUN="$ompi_dir/$ompi_prog" ++ break ++ fi ++done ++IFS=$IFS_SAVE ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ if test "$OMPI_CHECK_SLURM_SRUN" = ""; then ++ ompi_check_slurm_happy="no" ++ else ++ ompi_check_slurm_happy="yes" ++ fi ++ { echo "$as_me:$LINENO: result: $ompi_check_slurm_happy" >&5 ++echo "${ECHO_T}$ompi_check_slurm_happy" >&6; } ++ ;; ++ esac ++ else ++ ompi_check_slurm_happy="yes" ++ fi ++ ++ if test "$ompi_check_slurm_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for fork" >&5 ++echo $ECHO_N "checking for fork... $ECHO_C" >&6; } ++if test "${ac_cv_func_fork+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define fork to an innocuous variant, in case declares fork. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define fork innocuous_fork ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char fork (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef fork ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char fork (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_fork || defined __stub___fork ++choke me ++#endif ++ ++int ++main () ++{ ++return fork (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_fork=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_fork=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5 ++echo "${ECHO_T}$ac_cv_func_fork" >&6; } ++if test $ac_cv_func_fork = yes; then ++ ompi_check_slurm_happy="yes" ++else ++ ompi_check_slurm_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_slurm_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for execve" >&5 ++echo $ECHO_N "checking for execve... $ECHO_C" >&6; } ++if test "${ac_cv_func_execve+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define execve to an innocuous variant, in case declares execve. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define execve innocuous_execve ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char execve (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef execve ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char execve (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_execve || defined __stub___execve ++choke me ++#endif ++ ++int ++main () ++{ ++return execve (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_execve=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_execve=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_execve" >&5 ++echo "${ECHO_T}$ac_cv_func_execve" >&6; } ++if test $ac_cv_func_execve = yes; then ++ ompi_check_slurm_happy="yes" ++else ++ ompi_check_slurm_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_slurm_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for setpgid" >&5 ++echo $ECHO_N "checking for setpgid... $ECHO_C" >&6; } ++if test "${ac_cv_func_setpgid+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define setpgid to an innocuous variant, in case declares setpgid. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define setpgid innocuous_setpgid ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char setpgid (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef setpgid ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char setpgid (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_setpgid || defined __stub___setpgid ++choke me ++#endif ++ ++int ++main () ++{ ++return setpgid (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_setpgid=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_setpgid=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5 ++echo "${ECHO_T}$ac_cv_func_setpgid" >&6; } ++if test $ac_cv_func_setpgid = yes; then ++ ompi_check_slurm_happy="yes" ++else ++ ompi_check_slurm_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_slurm_happy" = "yes"; then ++ ess_slurm_good=1 ++else ++ ess_slurm_good=0 ++fi ++ ++ ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ if test "$ess_slurm_good" = "1"; then ++ ess_slurm_WRAPPER_EXTRA_LDFLAGS="$ess_slurm_LDFLAGS" ++ ess_slurm_WRAPPER_EXTRA_LIBS="$ess_slurm_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # set build flags to use in makefile ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ess ++ component=slurm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ess" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ess" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ess:slurm can compile" >&5 ++echo $ECHO_N "checking if MCA component ess:slurm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ess" = "slurm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "slurm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components slurm" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ess_slurm_DSO=1 ++else ++ BUILD_ess_slurm_DSO=0 ++fi ++ ++ if test "$BUILD_ess_slurm_DSO" = "1"; then ++ OMPI_BUILD_ess_slurm_DSO_TRUE= ++ OMPI_BUILD_ess_slurm_DSO_FALSE='#' ++else ++ OMPI_BUILD_ess_slurm_DSO_TRUE='#' ++ OMPI_BUILD_ess_slurm_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/orte/mca/ess/tool/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component ess:tool (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ess ++ component=tool ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ess ++ component=tool ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ess" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ should_build=1 ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ess ++ component=tool ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ess" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ess" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ess:tool can compile" >&5 ++echo $ECHO_N "checking if MCA component ess:tool can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ess" = "tool" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tool\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tool\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ess" ; then ++ if test "$DIRECT_ess" = "tool" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tool\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tool\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components tool" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ess_tool_DSO=1 ++else ++ BUILD_ess_tool_DSO=0 ++fi ++ ++ if test "$BUILD_ess_tool_DSO" = "1"; then ++ OMPI_BUILD_ess_tool_DSO_TRUE= ++ OMPI_BUILD_ess_tool_DSO_FALSE='#' ++else ++ OMPI_BUILD_ess_tool_DSO_TRUE='#' ++ OMPI_BUILD_ess_tool_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ ++ ++ MCA_ess_ALL_COMPONENTS="$all_components" ++ MCA_ess_STATIC_COMPONENTS="$static_components" ++ MCA_ess_DSO_COMPONENTS="$dso_components" ++ MCA_ess_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_ess_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_ess_ALL_SUBDIRS="$MCA_ess_ALL_SUBDIRS mca/ess/$item" ++ done ++ ++ ++ ++ MCA_ess_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_ess_STATIC_SUBDIRS="$MCA_ess_STATIC_SUBDIRS mca/ess/$item" ++ done ++ ++ ++ ++ MCA_ess_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_ess_DSO_SUBDIRS="$MCA_ess_DSO_SUBDIRS mca/ess/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "ess" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "filem" = "common" ; then ++ MCA_orte_FRAMEWORKS="filem $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/filem $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_filem_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_filem_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_filem_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS filem" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/filem" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_filem_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_filem_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_filem_STATIC_SUBDIRS)" ++ fi ++ if test "filem" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/filem/libmca_filem.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_filem_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework filem" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "filem" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/filem/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework filem" >&5 ++echo $ECHO_N "checking for no configure components in framework filem... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: rsh" >&5 ++echo "${ECHO_T}rsh" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework filem" >&5 ++echo $ECHO_N "checking for m4 configure components in framework filem... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component filem:rsh (no configuration)" ++ ++ ++ ++ ++ project=orte ++ framework=filem ++ component=rsh ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_filem" ; then ++ if test "$DIRECT_filem" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=filem ++ component=rsh ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_filem" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=filem ++ component=rsh ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_filem" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_filem" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component filem:rsh can compile" >&5 ++echo $ECHO_N "checking if MCA component filem:rsh can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_filem" = "rsh" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"rsh\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"rsh\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_filem" ; then ++ if test "$DIRECT_filem" = "rsh" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"rsh\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"rsh\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components rsh" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_filem_rsh_DSO=1 ++ else ++ BUILD_filem_rsh_DSO=0 ++ fi ++ if test "$BUILD_filem_rsh_DSO" = "1"; then ++ OMPI_BUILD_filem_rsh_DSO_TRUE= ++ OMPI_BUILD_filem_rsh_DSO_FALSE='#' ++else ++ OMPI_BUILD_filem_rsh_DSO_TRUE='#' ++ OMPI_BUILD_filem_rsh_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/orte/mca/filem/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component filem:$component (need to configure)" ++ ++ ++ ++ ++ project=orte ++ framework=filem ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_filem" ; then ++ if test "$DIRECT_filem" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=filem ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_filem" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# orte/mca/filem/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="orte/mca/filem/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=filem ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_filem" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_filem" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component filem:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component filem:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_filem" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_filem" ; then ++ if test "$DIRECT_filem" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_filem_ALL_COMPONENTS="$all_components" ++ MCA_filem_STATIC_COMPONENTS="$static_components" ++ MCA_filem_DSO_COMPONENTS="$dso_components" ++ MCA_filem_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_filem_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_filem_ALL_SUBDIRS="$MCA_filem_ALL_SUBDIRS mca/filem/$item" ++ done ++ ++ ++ ++ MCA_filem_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_filem_STATIC_SUBDIRS="$MCA_filem_STATIC_SUBDIRS mca/filem/$item" ++ done ++ ++ ++ ++ MCA_filem_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_filem_DSO_SUBDIRS="$MCA_filem_DSO_SUBDIRS mca/filem/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "filem" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "grpcomm" = "common" ; then ++ MCA_orte_FRAMEWORKS="grpcomm $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/grpcomm $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_grpcomm_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_grpcomm_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_grpcomm_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS grpcomm" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/grpcomm" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_grpcomm_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_grpcomm_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_grpcomm_STATIC_SUBDIRS)" ++ fi ++ if test "grpcomm" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/grpcomm/libmca_grpcomm.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_grpcomm_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework grpcomm" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "grpcomm" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/grpcomm/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework grpcomm" >&5 ++echo $ECHO_N "checking for no configure components in framework grpcomm... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework grpcomm" >&5 ++echo $ECHO_N "checking for m4 configure components in framework grpcomm... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: cnos, bad, basic" >&5 ++echo "${ECHO_T}cnos, bad, basic" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ # get the component's priority... ++ infile="$srcdir/orte/mca/grpcomm/cnos/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component grpcomm:cnos (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=grpcomm ++ component=cnos ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_grpcomm" ; then ++ if test "$DIRECT_grpcomm" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=grpcomm ++ component=cnos ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_grpcomm" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ grpcomm_cnos_happy="no" ++ # see if we should enable super secret utcp support ++ if test "$with_grpcomm_cnos" = "utcp" ; then ++ grpcomm_cnos_happy="yes" ++ grpcomm_cnos_barrier=0 ++ else ++ # check for cnos functions ++ { echo "$as_me:$LINENO: checking for cnos_barrier" >&5 ++echo $ECHO_N "checking for cnos_barrier... $ECHO_C" >&6; } ++if test "${ac_cv_func_cnos_barrier+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define cnos_barrier to an innocuous variant, in case declares cnos_barrier. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define cnos_barrier innocuous_cnos_barrier ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char cnos_barrier (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef cnos_barrier ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char cnos_barrier (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_cnos_barrier || defined __stub___cnos_barrier ++choke me ++#endif ++ ++int ++main () ++{ ++return cnos_barrier (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_cnos_barrier=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_cnos_barrier=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_cnos_barrier" >&5 ++echo "${ECHO_T}$ac_cv_func_cnos_barrier" >&6; } ++if test $ac_cv_func_cnos_barrier = yes; then ++ grpcomm_cnos_happy="yes" ++ grpcomm_cnos_barrier=1 ++else ++ grpcomm_cnos_happy="no" ++ grpcomm_cnos_barrier=0 ++fi ++ ++ fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_GRPCOMM_CNOS_HAVE_BARRIER $grpcomm_cnos_barrier ++_ACEOF ++ ++ if test "$grpcomm_cnos_happy" = "yes"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=grpcomm ++ component=cnos ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_grpcomm" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_grpcomm" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component grpcomm:cnos can compile" >&5 ++echo $ECHO_N "checking if MCA component grpcomm:cnos can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_grpcomm" = "cnos" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"cnos\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_grpcomm" ; then ++ if test "$DIRECT_grpcomm" = "cnos" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"cnos\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components cnos" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_grpcomm_cnos_DSO=1 ++else ++ BUILD_grpcomm_cnos_DSO=0 ++fi ++ ++ if test "$BUILD_grpcomm_cnos_DSO" = "1"; then ++ OMPI_BUILD_grpcomm_cnos_DSO_TRUE= ++ OMPI_BUILD_grpcomm_cnos_DSO_FALSE='#' ++else ++ OMPI_BUILD_grpcomm_cnos_DSO_TRUE='#' ++ OMPI_BUILD_grpcomm_cnos_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/orte/mca/grpcomm/bad/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component grpcomm:bad (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=grpcomm ++ component=bad ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_grpcomm" ; then ++ if test "$DIRECT_grpcomm" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=grpcomm ++ component=bad ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_grpcomm" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ should_build=1 ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=grpcomm ++ component=bad ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_grpcomm" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_grpcomm" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component grpcomm:bad can compile" >&5 ++echo $ECHO_N "checking if MCA component grpcomm:bad can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_grpcomm" = "bad" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"bad\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"bad\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_grpcomm" ; then ++ if test "$DIRECT_grpcomm" = "bad" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"bad\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"bad\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components bad" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_grpcomm_bad_DSO=1 ++else ++ BUILD_grpcomm_bad_DSO=0 ++fi ++ ++ if test "$BUILD_grpcomm_bad_DSO" = "1"; then ++ OMPI_BUILD_grpcomm_bad_DSO_TRUE= ++ OMPI_BUILD_grpcomm_bad_DSO_FALSE='#' ++else ++ OMPI_BUILD_grpcomm_bad_DSO_TRUE='#' ++ OMPI_BUILD_grpcomm_bad_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ # get the component's priority... ++ infile="$srcdir/orte/mca/grpcomm/basic/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ if test -z "$mca_component_priority"; then ++ mca_component_priority=0 ++fi ++ ++ if test $best_mca_component_priority -gt $mca_component_priority; then ++ components_looking_for_succeed=0 ++fi ++ ++ ++ ompi_show_subsubsubtitle "MCA component grpcomm:basic (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=grpcomm ++ component=basic ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_grpcomm" ; then ++ if test "$DIRECT_grpcomm" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=grpcomm ++ component=basic ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_grpcomm" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ should_build=1 ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=grpcomm ++ component=basic ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_grpcomm" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_grpcomm" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component grpcomm:basic can compile" >&5 ++echo $ECHO_N "checking if MCA component grpcomm:basic can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_grpcomm" = "basic" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_grpcomm" ; then ++ if test "$DIRECT_grpcomm" = "basic" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components basic" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_grpcomm_basic_DSO=1 ++else ++ BUILD_grpcomm_basic_DSO=0 ++fi ++ ++ if test "$BUILD_grpcomm_basic_DSO" = "1"; then ++ OMPI_BUILD_grpcomm_basic_DSO_TRUE= ++ OMPI_BUILD_grpcomm_basic_DSO_FALSE='#' ++else ++ OMPI_BUILD_grpcomm_basic_DSO_TRUE='#' ++ OMPI_BUILD_grpcomm_basic_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ if test $components_last_result -eq 1; then ++ best_mca_component_priority=$mca_component_priority ++fi ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ ++ ++ MCA_grpcomm_ALL_COMPONENTS="$all_components" ++ MCA_grpcomm_STATIC_COMPONENTS="$static_components" ++ MCA_grpcomm_DSO_COMPONENTS="$dso_components" ++ MCA_grpcomm_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_grpcomm_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_grpcomm_ALL_SUBDIRS="$MCA_grpcomm_ALL_SUBDIRS mca/grpcomm/$item" ++ done ++ ++ ++ ++ MCA_grpcomm_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_grpcomm_STATIC_SUBDIRS="$MCA_grpcomm_STATIC_SUBDIRS mca/grpcomm/$item" ++ done ++ ++ ++ ++ MCA_grpcomm_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_grpcomm_DSO_SUBDIRS="$MCA_grpcomm_DSO_SUBDIRS mca/grpcomm/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "grpcomm" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "iof" = "common" ; then ++ MCA_orte_FRAMEWORKS="iof $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/iof $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_iof_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_iof_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_iof_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS iof" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/iof" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_iof_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_iof_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_iof_STATIC_SUBDIRS)" ++ fi ++ if test "iof" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/iof/libmca_iof.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_iof_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework iof" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "iof" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/iof/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework iof" >&5 ++echo $ECHO_N "checking for no configure components in framework iof... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: hnp, orted, tool" >&5 ++echo "${ECHO_T}hnp, orted, tool" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework iof" >&5 ++echo $ECHO_N "checking for m4 configure components in framework iof... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component iof:hnp (no configuration)" ++ ++ ++ ++ ++ project=orte ++ framework=iof ++ component=hnp ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_iof" ; then ++ if test "$DIRECT_iof" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=iof ++ component=hnp ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_iof" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=iof ++ component=hnp ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_iof" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_iof" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component iof:hnp can compile" >&5 ++echo $ECHO_N "checking if MCA component iof:hnp can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_iof" = "hnp" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"hnp\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"hnp\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_iof" ; then ++ if test "$DIRECT_iof" = "hnp" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"hnp\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"hnp\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components hnp" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_iof_hnp_DSO=1 ++ else ++ BUILD_iof_hnp_DSO=0 ++ fi ++ if test "$BUILD_iof_hnp_DSO" = "1"; then ++ OMPI_BUILD_iof_hnp_DSO_TRUE= ++ OMPI_BUILD_iof_hnp_DSO_FALSE='#' ++else ++ OMPI_BUILD_iof_hnp_DSO_TRUE='#' ++ OMPI_BUILD_iof_hnp_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component iof:orted (no configuration)" ++ ++ ++ ++ ++ project=orte ++ framework=iof ++ component=orted ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_iof" ; then ++ if test "$DIRECT_iof" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=iof ++ component=orted ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_iof" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=iof ++ component=orted ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_iof" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_iof" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component iof:orted can compile" >&5 ++echo $ECHO_N "checking if MCA component iof:orted can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_iof" = "orted" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"orted\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"orted\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_iof" ; then ++ if test "$DIRECT_iof" = "orted" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"orted\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"orted\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components orted" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_iof_orted_DSO=1 ++ else ++ BUILD_iof_orted_DSO=0 ++ fi ++ if test "$BUILD_iof_orted_DSO" = "1"; then ++ OMPI_BUILD_iof_orted_DSO_TRUE= ++ OMPI_BUILD_iof_orted_DSO_FALSE='#' ++else ++ OMPI_BUILD_iof_orted_DSO_TRUE='#' ++ OMPI_BUILD_iof_orted_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component iof:tool (no configuration)" ++ ++ ++ ++ ++ project=orte ++ framework=iof ++ component=tool ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_iof" ; then ++ if test "$DIRECT_iof" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=iof ++ component=tool ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_iof" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=iof ++ component=tool ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_iof" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_iof" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component iof:tool can compile" >&5 ++echo $ECHO_N "checking if MCA component iof:tool can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_iof" = "tool" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tool\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tool\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_iof" ; then ++ if test "$DIRECT_iof" = "tool" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tool\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tool\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components tool" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_iof_tool_DSO=1 ++ else ++ BUILD_iof_tool_DSO=0 ++ fi ++ if test "$BUILD_iof_tool_DSO" = "1"; then ++ OMPI_BUILD_iof_tool_DSO_TRUE= ++ OMPI_BUILD_iof_tool_DSO_FALSE='#' ++else ++ OMPI_BUILD_iof_tool_DSO_TRUE='#' ++ OMPI_BUILD_iof_tool_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/orte/mca/iof/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component iof:$component (need to configure)" ++ ++ ++ ++ ++ project=orte ++ framework=iof ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_iof" ; then ++ if test "$DIRECT_iof" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=iof ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_iof" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# orte/mca/iof/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="orte/mca/iof/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=iof ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_iof" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_iof" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component iof:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component iof:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_iof" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_iof" ; then ++ if test "$DIRECT_iof" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_iof_ALL_COMPONENTS="$all_components" ++ MCA_iof_STATIC_COMPONENTS="$static_components" ++ MCA_iof_DSO_COMPONENTS="$dso_components" ++ MCA_iof_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_iof_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_iof_ALL_SUBDIRS="$MCA_iof_ALL_SUBDIRS mca/iof/$item" ++ done ++ ++ ++ ++ MCA_iof_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_iof_STATIC_SUBDIRS="$MCA_iof_STATIC_SUBDIRS mca/iof/$item" ++ done ++ ++ ++ ++ MCA_iof_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_iof_DSO_SUBDIRS="$MCA_iof_DSO_SUBDIRS mca/iof/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "iof" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "notifier" = "common" ; then ++ MCA_orte_FRAMEWORKS="notifier $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/notifier $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_notifier_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_notifier_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_notifier_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS notifier" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/notifier" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_notifier_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_notifier_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_notifier_STATIC_SUBDIRS)" ++ fi ++ if test "notifier" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/notifier/libmca_notifier.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_notifier_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework notifier" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "notifier" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/notifier/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework notifier" >&5 ++echo $ECHO_N "checking for no configure components in framework notifier... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework notifier" >&5 ++echo $ECHO_N "checking for m4 configure components in framework notifier... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: syslog" >&5 ++echo "${ECHO_T}syslog" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component notifier:syslog (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=notifier ++ component=syslog ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_notifier" ; then ++ if test "$DIRECT_notifier" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=notifier ++ component=syslog ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_notifier" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ should_build=1 ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=notifier ++ component=syslog ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_notifier" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_notifier" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component notifier:syslog can compile" >&5 ++echo $ECHO_N "checking if MCA component notifier:syslog can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_notifier" = "syslog" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"syslog\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"syslog\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_notifier" ; then ++ if test "$DIRECT_notifier" = "syslog" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"syslog\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"syslog\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components syslog" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_notifier_syslog_DSO=1 ++else ++ BUILD_notifier_syslog_DSO=0 ++fi ++ ++ if test "$BUILD_notifier_syslog_DSO" = "1"; then ++ OMPI_BUILD_notifier_syslog_DSO_TRUE= ++ OMPI_BUILD_notifier_syslog_DSO_FALSE='#' ++else ++ OMPI_BUILD_notifier_syslog_DSO_TRUE='#' ++ OMPI_BUILD_notifier_syslog_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/orte/mca/notifier/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component notifier:$component (need to configure)" ++ ++ ++ ++ ++ project=orte ++ framework=notifier ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_notifier" ; then ++ if test "$DIRECT_notifier" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=notifier ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_notifier" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# orte/mca/notifier/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="orte/mca/notifier/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=notifier ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_notifier" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_notifier" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component notifier:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component notifier:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_notifier" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_notifier" ; then ++ if test "$DIRECT_notifier" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_notifier_ALL_COMPONENTS="$all_components" ++ MCA_notifier_STATIC_COMPONENTS="$static_components" ++ MCA_notifier_DSO_COMPONENTS="$dso_components" ++ MCA_notifier_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_notifier_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_notifier_ALL_SUBDIRS="$MCA_notifier_ALL_SUBDIRS mca/notifier/$item" ++ done ++ ++ ++ ++ MCA_notifier_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_notifier_STATIC_SUBDIRS="$MCA_notifier_STATIC_SUBDIRS mca/notifier/$item" ++ done ++ ++ ++ ++ MCA_notifier_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_notifier_DSO_SUBDIRS="$MCA_notifier_DSO_SUBDIRS mca/notifier/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "notifier" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "odls" = "common" ; then ++ MCA_orte_FRAMEWORKS="odls $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/odls $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_odls_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_odls_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_odls_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS odls" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/odls" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_odls_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_odls_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_odls_STATIC_SUBDIRS)" ++ fi ++ if test "odls" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/odls/libmca_odls.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_odls_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework odls" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "odls" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/odls/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework odls" >&5 ++echo $ECHO_N "checking for no configure components in framework odls... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework odls" >&5 ++echo $ECHO_N "checking for m4 configure components in framework odls... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: default" >&5 ++echo "${ECHO_T}default" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component odls:default (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=odls ++ component=default ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_odls" ; then ++ if test "$DIRECT_odls" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=odls ++ component=default ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_odls" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ { echo "$as_me:$LINENO: checking for fork" >&5 ++echo $ECHO_N "checking for fork... $ECHO_C" >&6; } ++if test "${ac_cv_func_fork+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define fork to an innocuous variant, in case declares fork. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define fork innocuous_fork ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char fork (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef fork ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char fork (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_fork || defined __stub___fork ++choke me ++#endif ++ ++int ++main () ++{ ++return fork (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_fork=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_fork=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5 ++echo "${ECHO_T}$ac_cv_func_fork" >&6; } ++if test $ac_cv_func_fork = yes; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=odls ++ component=default ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_odls" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_odls" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component odls:default can compile" >&5 ++echo $ECHO_N "checking if MCA component odls:default can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_odls" = "default" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"default\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"default\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_odls" ; then ++ if test "$DIRECT_odls" = "default" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"default\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"default\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components default" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_odls_default_DSO=1 ++else ++ BUILD_odls_default_DSO=0 ++fi ++ ++ if test "$BUILD_odls_default_DSO" = "1"; then ++ OMPI_BUILD_odls_default_DSO_TRUE= ++ OMPI_BUILD_odls_default_DSO_FALSE='#' ++else ++ OMPI_BUILD_odls_default_DSO_TRUE='#' ++ OMPI_BUILD_odls_default_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/orte/mca/odls/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component odls:$component (need to configure)" ++ ++ ++ ++ ++ project=orte ++ framework=odls ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_odls" ; then ++ if test "$DIRECT_odls" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=odls ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_odls" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# orte/mca/odls/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="orte/mca/odls/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=odls ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_odls" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_odls" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component odls:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component odls:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_odls" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_odls" ; then ++ if test "$DIRECT_odls" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_odls_ALL_COMPONENTS="$all_components" ++ MCA_odls_STATIC_COMPONENTS="$static_components" ++ MCA_odls_DSO_COMPONENTS="$dso_components" ++ MCA_odls_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_odls_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_odls_ALL_SUBDIRS="$MCA_odls_ALL_SUBDIRS mca/odls/$item" ++ done ++ ++ ++ ++ MCA_odls_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_odls_STATIC_SUBDIRS="$MCA_odls_STATIC_SUBDIRS mca/odls/$item" ++ done ++ ++ ++ ++ MCA_odls_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_odls_DSO_SUBDIRS="$MCA_odls_DSO_SUBDIRS mca/odls/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "odls" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "oob" = "common" ; then ++ MCA_orte_FRAMEWORKS="oob $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/oob $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_oob_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_oob_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_oob_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS oob" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/oob" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_oob_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_oob_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_oob_STATIC_SUBDIRS)" ++ fi ++ if test "oob" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/oob/libmca_oob.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_oob_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework oob" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "oob" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/oob/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework oob" >&5 ++echo $ECHO_N "checking for no configure components in framework oob... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework oob" >&5 ++echo $ECHO_N "checking for m4 configure components in framework oob... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: tcp" >&5 ++echo "${ECHO_T}tcp" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component oob:tcp (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=oob ++ component=tcp ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_oob" ; then ++ if test "$DIRECT_oob" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=oob ++ component=tcp ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_oob" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ # check for sockaddr_in (a good sign we have TCP) ++ { echo "$as_me:$LINENO: checking for struct sockaddr_in" >&5 ++echo $ECHO_N "checking for struct sockaddr_in... $ECHO_C" >&6; } ++if test "${ac_cv_type_struct_sockaddr_in+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifdef HAVE_NETINET_IN_H ++#include ++#endif ++ ++typedef struct sockaddr_in ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_struct_sockaddr_in=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_struct_sockaddr_in=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in" >&5 ++echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in" >&6; } ++if test $ac_cv_type_struct_sockaddr_in = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_STRUCT_SOCKADDR_IN 1 ++_ACEOF ++ ++should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=oob ++ component=tcp ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_oob" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_oob" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component oob:tcp can compile" >&5 ++echo $ECHO_N "checking if MCA component oob:tcp can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_oob" = "tcp" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tcp\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_oob" ; then ++ if test "$DIRECT_oob" = "tcp" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tcp\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components tcp" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_oob_tcp_DSO=1 ++else ++ BUILD_oob_tcp_DSO=0 ++fi ++ ++ if test "$BUILD_oob_tcp_DSO" = "1"; then ++ OMPI_BUILD_oob_tcp_DSO_TRUE= ++ OMPI_BUILD_oob_tcp_DSO_FALSE='#' ++else ++ OMPI_BUILD_oob_tcp_DSO_TRUE='#' ++ OMPI_BUILD_oob_tcp_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/orte/mca/oob/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component oob:$component (need to configure)" ++ ++ ++ ++ ++ project=orte ++ framework=oob ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_oob" ; then ++ if test "$DIRECT_oob" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=oob ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_oob" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# orte/mca/oob/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="orte/mca/oob/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=oob ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_oob" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_oob" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component oob:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component oob:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_oob" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_oob" ; then ++ if test "$DIRECT_oob" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_oob_ALL_COMPONENTS="$all_components" ++ MCA_oob_STATIC_COMPONENTS="$static_components" ++ MCA_oob_DSO_COMPONENTS="$dso_components" ++ MCA_oob_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_oob_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_oob_ALL_SUBDIRS="$MCA_oob_ALL_SUBDIRS mca/oob/$item" ++ done ++ ++ ++ ++ MCA_oob_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_oob_STATIC_SUBDIRS="$MCA_oob_STATIC_SUBDIRS mca/oob/$item" ++ done ++ ++ ++ ++ MCA_oob_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_oob_DSO_SUBDIRS="$MCA_oob_DSO_SUBDIRS mca/oob/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "oob" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "plm" = "common" ; then ++ MCA_orte_FRAMEWORKS="plm $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/plm $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_plm_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_plm_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_plm_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS plm" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/plm" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_plm_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_plm_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_plm_STATIC_SUBDIRS)" ++ fi ++ if test "plm" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/plm/libmca_plm.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_plm_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework plm" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "plm" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/plm/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework plm" >&5 ++echo $ECHO_N "checking for no configure components in framework plm... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework plm" >&5 ++echo $ECHO_N "checking for m4 configure components in framework plm... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: alps, lsf, rsh, slurm, tm, xgrid" >&5 ++echo "${ECHO_T}alps, lsf, rsh, slurm, tm, xgrid" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component plm:alps (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=plm ++ component=alps ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=plm ++ component=alps ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_plm" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-alps was given. ++if test "${with_alps+set}" = set; then ++ withval=$with_alps; ++fi ++ ++ if test "$with_alps" = "yes" ; then ++ ompi_check_alps_happy="yes" ++ fi ++ if test "$ompi_check_alps_happy" = "yes"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=plm ++ component=alps ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_plm" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_plm" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component plm:alps can compile" >&5 ++echo $ECHO_N "checking if MCA component plm:alps can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_plm" = "alps" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"alps\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "alps" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"alps\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components alps" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_plm_alps_DSO=1 ++else ++ BUILD_plm_alps_DSO=0 ++fi ++ ++ if test "$BUILD_plm_alps_DSO" = "1"; then ++ OMPI_BUILD_plm_alps_DSO_TRUE= ++ OMPI_BUILD_plm_alps_DSO_FALSE='#' ++else ++ OMPI_BUILD_plm_alps_DSO_TRUE='#' ++ OMPI_BUILD_plm_alps_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component plm:lsf (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=plm ++ component=lsf ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=plm ++ component=lsf ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_plm" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-lsf was given. ++if test "${with_lsf+set}" = set; then ++ withval=$with_lsf; ++fi ++ ++ ++# Check whether --with-lsf-libdir was given. ++if test "${with_lsf_libdir+set}" = set; then ++ withval=$with_lsf_libdir; ++fi ++ ++ ++ # Defaults ++ ompi_check_lsf_dir_msg="compiler default" ++ ompi_check_lsf_libdir_msg="linker default" ++ ++ # Save directory names if supplied ++ if test ! -z "$with_lsf" -a "$with_lsf" != "yes"; then ++ ompi_check_lsf_dir="$with_lsf" ++ ompi_check_lsf_dir_msg="$ompi_check_lsf_dir (from --with-lsf)" ++fi ++ ++ if test ! -z "$with_lsf_libdir" -a "$with_lsf_libdir" != "yes"; then ++ ompi_check_lsf_libdir="$with_lsf_libdir" ++ ompi_check_lsf_libdir_msg="$ompi_check_lsf_libdir (from --with-lsf-libdir)" ++fi ++ ++ ++ # If no directories were specified, look for LSF_LIBDIR, ++ # LSF_INCLUDEDIR, and/or LSF_ENVDIR. ++ if test -z "$ompi_check_lsf_dir" -a -z "$ompi_check_lsf_libdir"; then ++ if test ! -z "$LSF_ENVDIR" -a -z "$LSF_LIBDIR" -a -f "$LSF_ENVDIR/lsf.conf"; then ++ LSF_LIBDIR=`egrep ^LSF_LIBDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-` ++fi ++ ++ if test ! -z "$LSF_ENVDIR" -a -z "$LSF_INCLUDEDIR" -a -f "$LSF_ENVDIR/lsf.conf"; then ++ LSF_INCLUDEDIR=`egrep ^LSF_INCLUDEDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-` ++fi ++ ++ if test ! -z "$LSF_LIBDIR"; then ++ ompi_check_lsf_libdir=$LSF_LIBDIR ++ ompi_check_lsf_libdir_msg="$LSF_LIBDIR (from \$LSF_LIBDIR)" ++fi ++ ++ if test ! -z "$LSF_INCLUDEDIR"; then ++ ompi_check_lsf_dir=`dirname $LSF_INCLUDEDIR` ++ ompi_check_lsf_dir_msg="$ompi_check_lsf_dir (from \$LSF_INCLUDEDIR)" ++fi ++ ++fi ++ ++ ++ if test "$with_lsf" = "no"; then ++ ompi_check_lsf_happy="no" ++else ++ ompi_check_lsf_happy="yes" ++fi ++ ++ ++ ompi_check_lsf_plm_lsf_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_lsf_plm_lsf_save_LDFLAGS="$LDFLAGS" ++ ompi_check_lsf_plm_lsf_save_LIBS="$LIBS" ++ ++ if test "$ompi_check_lsf_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for LSF dir" >&5 ++echo $ECHO_N "checking for LSF dir... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $ompi_check_lsf_dir_msg" >&5 ++echo "${ECHO_T}$ompi_check_lsf_dir_msg" >&6; } ++ { echo "$as_me:$LINENO: checking for LSF library dir" >&5 ++echo $ECHO_N "checking for LSF library dir... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $ompi_check_lsf_libdir_msg" >&5 ++echo "${ECHO_T}$ompi_check_lsf_libdir_msg" >&6; } ++ ++ ompi_check_package_plm_lsf_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_plm_lsf_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_plm_lsf_save_LIBS="$LIBS" ++ ++ ompi_check_package_plm_lsf_orig_CPPFLAGS="$plm_lsf_CPPFLAGS" ++ ompi_check_package_plm_lsf_orig_LDFLAGS="$plm_lsf_LDFLAGS" ++ ompi_check_package_plm_lsf_orig_LIBS="$plm_lsf_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_lsf_lsbatch_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_lsf_dir" = "/usr" -o "$ompi_check_lsf_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5 ++echo $ECHO_N "checking for lsf/lsbatch.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5 ++echo "${ECHO_T}$ac_cv_header_lsf_lsbatch_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking lsf/lsbatch.h usability" >&5 ++echo $ECHO_N "checking lsf/lsbatch.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking lsf/lsbatch.h presence" >&5 ++echo $ECHO_N "checking lsf/lsbatch.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5 ++echo $ECHO_N "checking for lsf/lsbatch.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_lsf_lsbatch_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5 ++echo "${ECHO_T}$ac_cv_header_lsf_lsbatch_h" >&6; } ++ ++fi ++if test $ac_cv_header_lsf_lsbatch_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_lsf_lsbatch_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_lsf_dir" != ""; then ++ plm_lsf_CPPFLAGS="$plm_lsf_CPPFLAGS -I$ompi_check_lsf_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_lsf_dir/include" ++fi ++ ++ if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5 ++echo $ECHO_N "checking for lsf/lsbatch.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5 ++echo "${ECHO_T}$ac_cv_header_lsf_lsbatch_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking lsf/lsbatch.h usability" >&5 ++echo $ECHO_N "checking lsf/lsbatch.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking lsf/lsbatch.h presence" >&5 ++echo $ECHO_N "checking lsf/lsbatch.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5 ++echo $ECHO_N "checking for lsf/lsbatch.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_lsf_lsbatch_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5 ++echo "${ECHO_T}$ac_cv_header_lsf_lsbatch_h" >&6; } ++ ++fi ++if test $ac_cv_header_lsf_lsbatch_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_bat_lsb_launch ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_lsf_libdir" != ""; then ++ # libdir was specified - search only there ++ plm_lsf_LDFLAGS="$plm_lsf_LDFLAGS -L$ompi_check_lsf_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_lsf_libdir" ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS" ++ plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_lsf_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS" ++ plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ plm_lsf_LDFLAGS="$plm_lsf_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS" ++ plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ plm_lsf_LDFLAGS="$plm_lsf_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS" ++ plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ plm_lsf_LIBS="-lbat -llsf" ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_bat_lsb_launch ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_lsf_libdir" != ""; then ++ # libdir was specified - search only there ++ plm_lsf_LDFLAGS="$plm_lsf_LDFLAGS -L$ompi_check_lsf_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_lsf_libdir" ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS" ++ plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_lsf_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS" ++ plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ plm_lsf_LDFLAGS="$plm_lsf_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS" ++ plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ plm_lsf_LDFLAGS="$plm_lsf_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS" ++ plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ plm_lsf_LIBS="-lbat -llsf" ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ ompi_check_lsf_happy="yes" ++else ++ plm_lsf_CPPFLAGS="$ompi_check_package_plm_lsf_orig_CPPFLAGS" ++ plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS" ++ plm_lsf_LIBS="$ompi_check_package_plm_lsf_orig_LIBS" ++ ompi_check_lsf_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_plm_lsf_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS" ++ LIBS="$ompi_check_package_plm_lsf_save_LIBS" ++ ++fi ++ ++ ++ CPPFLAGS="$ompi_check_lsf_plm_lsf_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_lsf_plm_lsf_save_LDFLAGS" ++ LIBS="$ompi_check_lsf_plm_lsf_save_LIBS" ++ ++ # Reset for the next time we're called ++ ompi_check_lsf_dir= ++ ompi_check_lsf_libdir= ++ ++ if test "$ompi_check_lsf_happy" = "yes"; then ++ plm_lsf_good=1 ++else ++ if test ! -z "$with_lsf" -a "$with_lsf" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: LSF support requested (via --with-lsf) but not found." >&5 ++echo "$as_me: WARNING: LSF support requested (via --with-lsf) but not found." >&2;} ++ { { echo "$as_me:$LINENO: error: Aborting." >&5 ++echo "$as_me: error: Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ plm_lsf_good=0 ++fi ++ ++ ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ if test "$plm_lsf_good" = "1"; then ++ plm_lsf_WRAPPER_EXTRA_LDFLAGS="$plm_lsf_LDFLAGS" ++ plm_lsf_WRAPPER_EXTRA_LIBS="$plm_lsf_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # set build flags to use in makefile ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=plm ++ component=lsf ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_plm" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_plm" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component plm:lsf can compile" >&5 ++echo $ECHO_N "checking if MCA component plm:lsf can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_plm" = "lsf" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"lsf\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "lsf" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"lsf\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components lsf" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_plm_lsf_DSO=1 ++else ++ BUILD_plm_lsf_DSO=0 ++fi ++ ++ if test "$BUILD_plm_lsf_DSO" = "1"; then ++ OMPI_BUILD_plm_lsf_DSO_TRUE= ++ OMPI_BUILD_plm_lsf_DSO_FALSE='#' ++else ++ OMPI_BUILD_plm_lsf_DSO_TRUE='#' ++ OMPI_BUILD_plm_lsf_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component plm:rsh (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=plm ++ component=rsh ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=plm ++ component=rsh ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_plm" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ { echo "$as_me:$LINENO: checking for fork" >&5 ++echo $ECHO_N "checking for fork... $ECHO_C" >&6; } ++if test "${ac_cv_func_fork+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define fork to an innocuous variant, in case declares fork. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define fork innocuous_fork ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char fork (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef fork ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char fork (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_fork || defined __stub___fork ++choke me ++#endif ++ ++int ++main () ++{ ++return fork (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_fork=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_fork=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5 ++echo "${ECHO_T}$ac_cv_func_fork" >&6; } ++if test $ac_cv_func_fork = yes; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=plm ++ component=rsh ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_plm" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_plm" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component plm:rsh can compile" >&5 ++echo $ECHO_N "checking if MCA component plm:rsh can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_plm" = "rsh" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"rsh\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"rsh\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "rsh" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"rsh\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"rsh\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components rsh" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_plm_rsh_DSO=1 ++else ++ BUILD_plm_rsh_DSO=0 ++fi ++ ++ if test "$BUILD_plm_rsh_DSO" = "1"; then ++ OMPI_BUILD_plm_rsh_DSO_TRUE= ++ OMPI_BUILD_plm_rsh_DSO_FALSE='#' ++else ++ OMPI_BUILD_plm_rsh_DSO_TRUE='#' ++ OMPI_BUILD_plm_rsh_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component plm:slurm (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=plm ++ component=slurm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=plm ++ component=slurm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_plm" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-slurm was given. ++if test "${with_slurm+set}" = set; then ++ withval=$with_slurm; ++fi ++ ++ ++ if test "$with_slurm" = "no" ; then ++ ompi_check_slurm_happy="no" ++ elif test "$with_slurm" = "" ; then ++ # unless user asked, only build slurm component on linux, AIX, ++ # and OS X systems (these are the platforms that SLURM ++ # supports) ++ case $host in ++ *-linux*|*-aix*|*-apple-darwin*) ++ ompi_check_slurm_happy="yes" ++ ;; ++ *) ++ { echo "$as_me:$LINENO: checking for SLURM srun in PATH" >&5 ++echo $ECHO_N "checking for SLURM srun in PATH... $ECHO_C" >&6; } ++ ++# 1 is the variable name to do "which" on ++# 2 is the variable name to assign the return value to ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ompi_prog=srun ++ ++IFS_SAVE=$IFS ++IFS="$PATH_SEPARATOR" ++for ompi_dir in $PATH; do ++ if test -x "$ompi_dir/$ompi_prog"; then ++ OMPI_CHECK_SLURM_SRUN="$ompi_dir/$ompi_prog" ++ break ++ fi ++done ++IFS=$IFS_SAVE ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ if test "$OMPI_CHECK_SLURM_SRUN" = ""; then ++ ompi_check_slurm_happy="no" ++ else ++ ompi_check_slurm_happy="yes" ++ fi ++ { echo "$as_me:$LINENO: result: $ompi_check_slurm_happy" >&5 ++echo "${ECHO_T}$ompi_check_slurm_happy" >&6; } ++ ;; ++ esac ++ else ++ ompi_check_slurm_happy="yes" ++ fi ++ ++ if test "$ompi_check_slurm_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for fork" >&5 ++echo $ECHO_N "checking for fork... $ECHO_C" >&6; } ++if test "${ac_cv_func_fork+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define fork to an innocuous variant, in case declares fork. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define fork innocuous_fork ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char fork (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef fork ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char fork (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_fork || defined __stub___fork ++choke me ++#endif ++ ++int ++main () ++{ ++return fork (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_fork=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_fork=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5 ++echo "${ECHO_T}$ac_cv_func_fork" >&6; } ++if test $ac_cv_func_fork = yes; then ++ ompi_check_slurm_happy="yes" ++else ++ ompi_check_slurm_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_slurm_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for execve" >&5 ++echo $ECHO_N "checking for execve... $ECHO_C" >&6; } ++if test "${ac_cv_func_execve+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define execve to an innocuous variant, in case declares execve. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define execve innocuous_execve ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char execve (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef execve ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char execve (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_execve || defined __stub___execve ++choke me ++#endif ++ ++int ++main () ++{ ++return execve (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_execve=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_execve=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_execve" >&5 ++echo "${ECHO_T}$ac_cv_func_execve" >&6; } ++if test $ac_cv_func_execve = yes; then ++ ompi_check_slurm_happy="yes" ++else ++ ompi_check_slurm_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_slurm_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for setpgid" >&5 ++echo $ECHO_N "checking for setpgid... $ECHO_C" >&6; } ++if test "${ac_cv_func_setpgid+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define setpgid to an innocuous variant, in case declares setpgid. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define setpgid innocuous_setpgid ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char setpgid (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef setpgid ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char setpgid (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_setpgid || defined __stub___setpgid ++choke me ++#endif ++ ++int ++main () ++{ ++return setpgid (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_setpgid=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_setpgid=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5 ++echo "${ECHO_T}$ac_cv_func_setpgid" >&6; } ++if test $ac_cv_func_setpgid = yes; then ++ ompi_check_slurm_happy="yes" ++else ++ ompi_check_slurm_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_slurm_happy" = "yes"; then ++ plm_slurm_good=1 ++else ++ plm_slurm_good=0 ++fi ++ ++ ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ if test "$plm_slurm_good" = "1"; then ++ plm_slurm_WRAPPER_EXTRA_LDFLAGS="$plm_slurm_LDFLAGS" ++ plm_slurm_WRAPPER_EXTRA_LIBS="$plm_slurm_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # set build flags to use in makefile ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=plm ++ component=slurm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_plm" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_plm" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component plm:slurm can compile" >&5 ++echo $ECHO_N "checking if MCA component plm:slurm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_plm" = "slurm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "slurm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components slurm" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_plm_slurm_DSO=1 ++else ++ BUILD_plm_slurm_DSO=0 ++fi ++ ++ if test "$BUILD_plm_slurm_DSO" = "1"; then ++ OMPI_BUILD_plm_slurm_DSO_TRUE= ++ OMPI_BUILD_plm_slurm_DSO_FALSE='#' ++else ++ OMPI_BUILD_plm_slurm_DSO_TRUE='#' ++ OMPI_BUILD_plm_slurm_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component plm:tm (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=plm ++ component=tm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=plm ++ component=tm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_plm" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-tm was given. ++if test "${with_tm+set}" = set; then ++ withval=$with_tm; ++fi ++ ++ ++ ompi_check_tm_found=no ++ if test "$with_tm" = "no"; then ++ ompi_check_tm_happy="no" ++else ++ ompi_check_tm_happy="yes" ++ if test ! -z "$with_tm" -a "$with_tm" != "yes"; then ++ ompi_check_tm_dir="$with_tm" ++else ++ ompi_check_tm_dir="" ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_tm_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for pbs-config" >&5 ++echo $ECHO_N "checking for pbs-config... $ECHO_C" >&6; } ++ ompi_check_tm_pbs_config="not found" ++ if test "$ompi_check_tm_dir" != "" -a -d "$ompi_check_tm_dir" -a -x "$ompi_check_tm_dir/bin/pbs-config"; then ++ ompi_check_tm_pbs_config="$ompi_check_tm_dir/bin/pbs-config" ++else ++ if pbs-config --prefix >/dev/null 2>&1; then ++ ompi_check_tm_pbs_config="pbs-config" ++fi ++ ++fi ++ ++ { echo "$as_me:$LINENO: result: $ompi_check_tm_pbs_config" >&5 ++echo "${ECHO_T}$ompi_check_tm_pbs_config" >&6; } ++fi ++ ++ ++ # If we have pbs-config, get the flags we need from there and then ++ # do simplistic tests looking for the tm headers and symbols ++ ++ if test "$ompi_check_tm_happy" = "yes" -a "$ompi_check_tm_pbs_config" != "not found"; then ++ plm_tm_CPPFLAGS=`$ompi_check_tm_pbs_config --cflags` ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: plm_tm_CPPFLAGS from pbs-config: $plm_tm_CPPFLAGS" >&5 ++else ++ echo plm_tm_CPPFLAGS from pbs-config: $plm_tm_CPPFLAGS >&5 ++fi ++ ++ ++ ompi_check_tm_flags=`$ompi_check_tm_pbs_config --libs` ++ for ompi_check_tm_val in $ompi_check_tm_flags; do ++ if test "`echo $ompi_check_tm_val | cut -c1-2`" = "-l"; then ++ if test "LDFLAGS" = "LIBS"; then ++ plm_tm_LDFLAGS="$plm_tm_LDFLAGS $ompi_check_tm_val" ++ fi ++ else ++ if test "LDFLAGS" = "LDFLAGS"; then ++ plm_tm_LDFLAGS="$plm_tm_LDFLAGS $ompi_check_tm_val" ++ fi ++ fi ++ done ++ ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: plm_tm_LDFLAGS from pbs-config: $plm_tm_LDFLAGS" >&5 ++else ++ echo plm_tm_LDFLAGS from pbs-config: $plm_tm_LDFLAGS >&5 ++fi ++ ++ ++ ompi_check_tm_flags=`$ompi_check_tm_pbs_config --libs` ++ for ompi_check_tm_val in $ompi_check_tm_flags; do ++ if test "`echo $ompi_check_tm_val | cut -c1-2`" = "-l"; then ++ if test "LIBS" = "LIBS"; then ++ plm_tm_LIBS="$plm_tm_LIBS $ompi_check_tm_val" ++ fi ++ else ++ if test "LIBS" = "LDFLAGS"; then ++ plm_tm_LIBS="$plm_tm_LIBS $ompi_check_tm_val" ++ fi ++ fi ++ done ++ ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: plm_tm_LIBS from pbs-config: $plm_tm_LIBS" >&5 ++else ++ echo plm_tm_LIBS from pbs-config: $plm_tm_LIBS >&5 ++fi ++ ++ # Now that we supposedly have the right flags, try them out. ++ ++ CPPFLAGS_save="$CPPFLAGS" ++ LDFLAGS_save="$LDFLAGS" ++ LIBS_save="$LIBS" ++ ++ CPPFLAGS="$CPPFLAGS $plm_tm_CPPFLAGS" ++ LIBS="$LIBS $plm_tm_LIBS" ++ LDFLAGS="$LDFLAGS $plm_tm_LDFLAGS" ++ ++ if test "${ac_cv_header_tm_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for tm.h" >&5 ++echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_tm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_tm_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking tm.h usability" >&5 ++echo $ECHO_N "checking tm.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking tm.h presence" >&5 ++echo $ECHO_N "checking tm.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: tm.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for tm.h" >&5 ++echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_tm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_tm_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_tm_h" >&6; } ++ ++fi ++if test $ac_cv_header_tm_h = yes; then ++ { echo "$as_me:$LINENO: checking for tm_finalize" >&5 ++echo $ECHO_N "checking for tm_finalize... $ECHO_C" >&6; } ++if test "${ac_cv_func_tm_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define tm_finalize to an innocuous variant, in case declares tm_finalize. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define tm_finalize innocuous_tm_finalize ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char tm_finalize (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef tm_finalize ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_finalize (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_tm_finalize || defined __stub___tm_finalize ++choke me ++#endif ++ ++int ++main () ++{ ++return tm_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_tm_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_tm_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_tm_finalize" >&5 ++echo "${ECHO_T}$ac_cv_func_tm_finalize" >&6; } ++if test $ac_cv_func_tm_finalize = yes; then ++ ompi_check_tm_found="yes" ++fi ++ ++fi ++ ++ ++ ++ CPPFLAGS="$CPPFLAGS_save" ++ LDFLAGS="$LDFLAGS_save" ++ LIBS="$LIBS_save" ++fi ++ ++ ++ # If we don't have pbs-config, then we have to look around ++ # manually. ++ ++ # Note that Torque 2.1.0 changed the name of their back-end ++ # library to "libtorque". So we have to check for both libpbs and ++ # libtorque. First, check for libpbs. ++ ++ ompi_check_package_plm_tm_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_plm_tm_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_plm_tm_save_LIBS="$LIBS" ++ ++ ompi_check_package_plm_tm_orig_CPPFLAGS="$plm_tm_CPPFLAGS" ++ ompi_check_package_plm_tm_orig_LDFLAGS="$plm_tm_LDFLAGS" ++ ompi_check_package_plm_tm_orig_LIBS="$plm_tm_LIBS" ++ ++ if test "$ompi_check_tm_found" = "no"; then ++ if test "$ompi_check_tm_happy" = "yes"; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_tm_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_tm_dir" = "/usr" -o "$ompi_check_tm_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_tm_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for tm.h" >&5 ++echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_tm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_tm_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking tm.h usability" >&5 ++echo $ECHO_N "checking tm.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking tm.h presence" >&5 ++echo $ECHO_N "checking tm.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: tm.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for tm.h" >&5 ++echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_tm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_tm_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_tm_h" >&6; } ++ ++fi ++if test $ac_cv_header_tm_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_tm_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_tm_dir" != ""; then ++ plm_tm_CPPFLAGS="$plm_tm_CPPFLAGS -I$ompi_check_tm_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_tm_dir/include" ++fi ++ ++ if test "${ac_cv_header_tm_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for tm.h" >&5 ++echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_tm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_tm_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking tm.h usability" >&5 ++echo $ECHO_N "checking tm.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking tm.h presence" >&5 ++echo $ECHO_N "checking tm.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: tm.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for tm.h" >&5 ++echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_tm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_tm_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_tm_h" >&6; } ++ ++fi ++if test $ac_cv_header_tm_h = yes; then ++ ompi_check_tm_found="yes" ++else ++ ompi_check_tm_found="no" ++fi ++ ++ ++else ++ ompi_check_tm_found="yes" ++fi ++ ++ unset ompi_check_package_header_happy ++fi ++ ++ ++ if test "$ompi_check_tm_found" = "yes"; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_pbs_tm_init ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_tm_libdir" != ""; then ++ # libdir was specified - search only there ++ plm_tm_LDFLAGS="$plm_tm_LDFLAGS -L$ompi_check_tm_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_tm_libdir" ++ { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5 ++echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_pbs_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_pbs_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_pbs_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; } ++if test $ac_cv_lib_pbs_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS" ++ plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS" ++ unset ac_cv_lib_pbs_tm_init ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_tm_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5 ++echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_pbs_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_pbs_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_pbs_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; } ++if test $ac_cv_lib_pbs_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS" ++ plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS" ++ unset ac_cv_lib_pbs_tm_init ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ plm_tm_LDFLAGS="$plm_tm_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5 ++echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_pbs_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_pbs_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_pbs_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; } ++if test $ac_cv_lib_pbs_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS" ++ plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS" ++ unset ac_cv_lib_pbs_tm_init ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ plm_tm_LDFLAGS="$plm_tm_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5 ++echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_pbs_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_pbs_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_pbs_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; } ++if test $ac_cv_lib_pbs_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS" ++ plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS" ++ unset ac_cv_lib_pbs_tm_init ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ plm_tm_LIBS="-lpbs " ++ ompi_check_tm_found="yes" ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_torque_tm_init ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_tm_libdir" != ""; then ++ # libdir was specified - search only there ++ plm_tm_LDFLAGS="$plm_tm_LDFLAGS -L$ompi_check_tm_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_tm_libdir" ++ { echo "$as_me:$LINENO: checking for tm_init in -ltorque" >&5 ++echo $ECHO_N "checking for tm_init in -ltorque... $ECHO_C" >&6; } ++if test "${ac_cv_lib_torque_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ltorque $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_torque_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_torque_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_torque_tm_init" >&6; } ++if test $ac_cv_lib_torque_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS" ++ plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS" ++ unset ac_cv_lib_torque_tm_init ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_tm_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for tm_init in -ltorque" >&5 ++echo $ECHO_N "checking for tm_init in -ltorque... $ECHO_C" >&6; } ++if test "${ac_cv_lib_torque_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ltorque $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_torque_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_torque_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_torque_tm_init" >&6; } ++if test $ac_cv_lib_torque_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS" ++ plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS" ++ unset ac_cv_lib_torque_tm_init ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ plm_tm_LDFLAGS="$plm_tm_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for tm_init in -ltorque" >&5 ++echo $ECHO_N "checking for tm_init in -ltorque... $ECHO_C" >&6; } ++if test "${ac_cv_lib_torque_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ltorque $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_torque_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_torque_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_torque_tm_init" >&6; } ++if test $ac_cv_lib_torque_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS" ++ plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS" ++ unset ac_cv_lib_torque_tm_init ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ plm_tm_LDFLAGS="$plm_tm_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for tm_init in -ltorque" >&5 ++echo $ECHO_N "checking for tm_init in -ltorque... $ECHO_C" >&6; } ++if test "${ac_cv_lib_torque_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ltorque $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_torque_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_torque_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_torque_tm_init" >&6; } ++if test $ac_cv_lib_torque_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS" ++ plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS" ++ unset ac_cv_lib_torque_tm_init ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ plm_tm_LIBS="-ltorque " ++ ompi_check_tm_found="yes" ++else ++ ompi_check_tm_found="no" ++fi ++ ++ ++ ++fi ++ ++ ++ ++fi ++ ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_plm_tm_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS" ++ LIBS="$ompi_check_package_plm_tm_save_LIBS" ++ ++ # Did we find the right stuff? ++ if test "$ompi_check_tm_happy" = "yes" -a "$ompi_check_tm_found" = "yes"; then ++ plm_tm_good=1 ++else ++ if test ! -z "$with_tm" -a "$with_tm" != "no"; then ++ { { echo "$as_me:$LINENO: error: TM support requested but not found. Aborting" >&5 ++echo "$as_me: error: TM support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ plm_tm_good=0 ++fi ++ ++ ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ if test "$plm_tm_good" = "1"; then ++ plm_tm_WRAPPER_EXTRA_LDFLAGS="$plm_tm_LDFLAGS" ++ plm_tm_WRAPPER_EXTRA_LIBS="$plm_tm_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # set build flags to use in makefile ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=plm ++ component=tm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_plm" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_plm" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component plm:tm can compile" >&5 ++echo $ECHO_N "checking if MCA component plm:tm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_plm" = "tm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "tm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components tm" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_plm_tm_DSO=1 ++else ++ BUILD_plm_tm_DSO=0 ++fi ++ ++ if test "$BUILD_plm_tm_DSO" = "1"; then ++ OMPI_BUILD_plm_tm_DSO_TRUE= ++ OMPI_BUILD_plm_tm_DSO_FALSE='#' ++else ++ OMPI_BUILD_plm_tm_DSO_TRUE='#' ++ OMPI_BUILD_plm_tm_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component plm:xgrid (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=plm ++ component=xgrid ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=plm ++ component=xgrid ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_plm" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++ ++ ++# Check whether --with-xgrid was given. ++if test "${with_xgrid+set}" = set; then ++ withval=$with_xgrid; ++fi ++ ++ ++ if test "$with_xgrid" != "no"; then ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if C and Objective C are link compatible" >&5 ++echo $ECHO_N "checking if C and Objective C are link compatible... $ECHO_C" >&6; } ++if test "${ompi_cv_c_link_Objective_C+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ testfunc_name="testfunc" ++ ++ # Write out C part ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ rm -f conftest_c.$ac_ext ++ cat > conftest_c.$ac_ext << EOF ++int $testfunc_name(int a); ++int $testfunc_name(int a) { return a; } ++EOF ++ ++ # Now compile both parts ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext" >&5 ++$CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ac_ext=m ++ac_cpp='$OBJCPP $CPPFLAGS' ++ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_objc_compiler_gnu ++ ++ ompi_lang_link_with_c_libs="$LIBS" ++ LIBS="conftest_c.o $LIBS" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#if defined(c_plusplus) || defined(__cplusplus) ++extern "C" int testfunc(int); ++#else ++extern int testfunc(int); ++#endif ++ ++int ++main () ++{ ++return testfunc(0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_objc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_c_link_Objective_C="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_c_link_Objective_C="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LIBS="$ompi_lang_link_with_c_libs" ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++else ++ unset ompi_status ++ ompi_cv_c_link_Objective_C="no" ++fi ++ rm -f conftest_c.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_c_link_Objective_C" >&5 ++echo "${ECHO_T}$ompi_cv_c_link_Objective_C" >&6; } ++ ++ if test "$ompi_cv_c_link_Objective_C" = "yes"; then ++ { echo "$as_me:$LINENO: checking for XgridFoundation Framework" >&5 ++echo $ECHO_N "checking for XgridFoundation Framework... $ECHO_C" >&6; } ++if test "${ompi_cv_check_xgrid_foundation+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ ac_ext=m ++ac_cpp='$OBJCPP $CPPFLAGS' ++ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_objc_compiler_gnu ++ ++ ompi_check_xgrid_save_LDFLAGS="$LDFLAGS" ++ LDFLAGS="$LDFLAGS -framework XgridFoundation -framework Foundation" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#import ++#import ++#import ++ ++int ++main () ++{ ++NSLog(@"%@", XGConnectionKeyIsOpened); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_objc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_check_xgrid_foundation="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_check_xgrid_foundation="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LDFLAGS="$ompi_check_xgrid_save_LDFLAGS" ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_check_xgrid_foundation" >&5 ++echo "${ECHO_T}$ompi_cv_check_xgrid_foundation" >&6; } ++ if test "$ompi_cv_check_xgrid_foundation" = "yes"; then ++ ompi_check_xgrid_happy="yes" ++else ++ ompi_check_xgrid_happy="no" ++fi ++ ++else ++ ompi_check_xgrid_happy="no" ++fi ++ ++ ++else ++ ompi_check_xgrid_happy="no" ++fi ++ ++ ++ if test "$ompi_check_xgrid_happy" = "yes"; then ++ plm_xgrid_LDFLAGS="$plm_xgrid_LDFLAGS -framework XgridFoundation -framework Foundation" ++ plm_xgrid_good=1 ++else ++ plm_xgrid_good=0 ++fi ++ ++ ++ ++ # For very dumb reasons involving linking, it's near impossible ++ # to build the XGrid components as static libraries. Disable if that's ++ # the case. ++ if test "$plm_xgrid_good" = "0"; then ++ should_build=0 ++else ++ if test "$compile_mode" = "dso"; then ++ # plm_xgrid_LDFLAGS will be set by OMPI_CHECK_XGRID ++ plm_xgrid_WRAPPER_EXTRA_LDFLAGS="$plm_xgrid_LDFLAGS" ++ should_build=1 ++else ++ { echo "$as_me:$LINENO: WARNING: XGrid components must be built as DSOs. Disabling" >&5 ++echo "$as_me: WARNING: XGrid components must be built as DSOs. Disabling" >&2;} ++ should_build=0 ++fi ++ ++fi ++ ++ ++ # set build flags to use in makefile ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=plm ++ component=xgrid ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_plm" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_plm" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component plm:xgrid can compile" >&5 ++echo $ECHO_N "checking if MCA component plm:xgrid can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_plm" = "xgrid" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"xgrid\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"xgrid\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "xgrid" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"xgrid\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"xgrid\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components xgrid" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_plm_xgrid_DSO=1 ++else ++ BUILD_plm_xgrid_DSO=0 ++fi ++ ++ if test "$BUILD_plm_xgrid_DSO" = "1"; then ++ OMPI_BUILD_plm_xgrid_DSO_TRUE= ++ OMPI_BUILD_plm_xgrid_DSO_FALSE='#' ++else ++ OMPI_BUILD_plm_xgrid_DSO_TRUE='#' ++ OMPI_BUILD_plm_xgrid_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/orte/mca/plm/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component plm:$component (need to configure)" ++ ++ ++ ++ ++ project=orte ++ framework=plm ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=plm ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_plm" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# orte/mca/plm/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="orte/mca/plm/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=plm ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_plm" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_plm" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component plm:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component plm:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_plm" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_plm" ; then ++ if test "$DIRECT_plm" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_plm_ALL_COMPONENTS="$all_components" ++ MCA_plm_STATIC_COMPONENTS="$static_components" ++ MCA_plm_DSO_COMPONENTS="$dso_components" ++ MCA_plm_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_plm_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_plm_ALL_SUBDIRS="$MCA_plm_ALL_SUBDIRS mca/plm/$item" ++ done ++ ++ ++ ++ MCA_plm_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_plm_STATIC_SUBDIRS="$MCA_plm_STATIC_SUBDIRS mca/plm/$item" ++ done ++ ++ ++ ++ MCA_plm_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_plm_DSO_SUBDIRS="$MCA_plm_DSO_SUBDIRS mca/plm/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "plm" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "ras" = "common" ; then ++ MCA_orte_FRAMEWORKS="ras $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/ras $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_ras_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_ras_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_ras_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS ras" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/ras" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ras_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ras_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ras_STATIC_SUBDIRS)" ++ fi ++ if test "ras" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/ras/libmca_ras.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_ras_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework ras" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "ras" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/ras/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework ras" >&5 ++echo $ECHO_N "checking for no configure components in framework ras... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework ras" >&5 ++echo $ECHO_N "checking for m4 configure components in framework ras... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: alps, gridengine, loadleveler, lsf, slurm, tm" >&5 ++echo "${ECHO_T}alps, gridengine, loadleveler, lsf, slurm, tm" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component ras:alps (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ras ++ component=alps ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ras ++ component=alps ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ras" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-alps was given. ++if test "${with_alps+set}" = set; then ++ withval=$with_alps; ++fi ++ ++ if test "$with_alps" = "yes" ; then ++ ompi_check_alps_happy="yes" ++ fi ++ if test "$ompi_check_alps_happy" = "yes"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ras ++ component=alps ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ras" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ras" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ras:alps can compile" >&5 ++echo $ECHO_N "checking if MCA component ras:alps can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ras" = "alps" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"alps\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "alps" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"alps\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components alps" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ras_alps_DSO=1 ++else ++ BUILD_ras_alps_DSO=0 ++fi ++ ++ if test "$BUILD_ras_alps_DSO" = "1"; then ++ OMPI_BUILD_ras_alps_DSO_TRUE= ++ OMPI_BUILD_ras_alps_DSO_FALSE='#' ++else ++ OMPI_BUILD_ras_alps_DSO_TRUE='#' ++ OMPI_BUILD_ras_alps_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component ras:gridengine (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ras ++ component=gridengine ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ras ++ component=gridengine ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ras" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-sge was given. ++if test "${with_sge+set}" = set; then ++ withval=$with_sge; ++fi ++ ++ ++ { echo "$as_me:$LINENO: checking if user requested SGE build" >&5 ++echo $ECHO_N "checking if user requested SGE build... $ECHO_C" >&6; } ++ ompi_gridengine_build= ++ if test "$with_sge" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ompi_gridengine_build=yes ++else ++ if test "$with_sge" = "no"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++else ++ { echo "$as_me:$LINENO: result: not specified; checking environment" >&5 ++echo "${ECHO_T}not specified; checking environment" >&6; } ++ # Extract the first word of "qrsh", so it can be a program name with args. ++set dummy qrsh; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_QRSH+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$QRSH"; then ++ ac_cv_prog_QRSH="$QRSH" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_QRSH="qrsh" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++QRSH=$ac_cv_prog_QRSH ++if test -n "$QRSH"; then ++ { echo "$as_me:$LINENO: result: $QRSH" >&5 ++echo "${ECHO_T}$QRSH" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ if test "$QRSH" != ""; then ++ ompi_gridengine_build=yes ++else ++ { echo "$as_me:$LINENO: checking for SGE_ROOT environment variable" >&5 ++echo $ECHO_N "checking for SGE_ROOT environment variable... $ECHO_C" >&6; } ++ if test "$SGE_ROOT" != ""; then ++ { echo "$as_me:$LINENO: result: found" >&5 ++echo "${ECHO_T}found" >&6; } ++ ompi_gridengine_build=yes ++else ++ { echo "$as_me:$LINENO: result: not found" >&5 ++echo "${ECHO_T}not found" >&6; } ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_gridengine_build" = "yes"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ras ++ component=gridengine ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ras" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ras" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ras:gridengine can compile" >&5 ++echo $ECHO_N "checking if MCA component ras:gridengine can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ras" = "gridengine" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"gridengine\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"gridengine\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "gridengine" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"gridengine\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"gridengine\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components gridengine" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ras_gridengine_DSO=1 ++else ++ BUILD_ras_gridengine_DSO=0 ++fi ++ ++ if test "$BUILD_ras_gridengine_DSO" = "1"; then ++ OMPI_BUILD_ras_gridengine_DSO_TRUE= ++ OMPI_BUILD_ras_gridengine_DSO_FALSE='#' ++else ++ OMPI_BUILD_ras_gridengine_DSO_TRUE='#' ++ OMPI_BUILD_ras_gridengine_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component ras:loadleveler (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ras ++ component=loadleveler ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ras ++ component=loadleveler ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ras" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-loadleveler was given. ++if test "${with_loadleveler+set}" = set; then ++ withval=$with_loadleveler; ++fi ++ ++ ++ if test "$with_loadleveler" = "no"; then ++ ompi_check_loadleveler_happy="no" ++else ++ ompi_check_loadleveler_happy="yes" ++ if test ! -z "$with_loadleveler" -a "$with_loadleveler" != "yes"; then ++ ompi_check_loadleveler_dir="$with_loadleveler" ++else ++ ompi_check_loadleveler_dir="" ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_loadleveler_happy" = "yes"; then ++ ++ ompi_check_package_ras_loadleveler_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_ras_loadleveler_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_ras_loadleveler_save_LIBS="$LIBS" ++ ++ ompi_check_package_ras_loadleveler_orig_CPPFLAGS="$ras_loadleveler_CPPFLAGS" ++ ompi_check_package_ras_loadleveler_orig_LDFLAGS="$ras_loadleveler_LDFLAGS" ++ ompi_check_package_ras_loadleveler_orig_LIBS="$ras_loadleveler_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_llapi_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_loadleveler_dir" = "/usr" -o "$ompi_check_loadleveler_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_llapi_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for llapi.h" >&5 ++echo $ECHO_N "checking for llapi.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_llapi_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_llapi_h" >&5 ++echo "${ECHO_T}$ac_cv_header_llapi_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking llapi.h usability" >&5 ++echo $ECHO_N "checking llapi.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking llapi.h presence" >&5 ++echo $ECHO_N "checking llapi.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: llapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: llapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: llapi.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: llapi.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: llapi.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: llapi.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: llapi.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: llapi.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: llapi.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: llapi.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: llapi.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: llapi.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: llapi.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: llapi.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: llapi.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: llapi.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for llapi.h" >&5 ++echo $ECHO_N "checking for llapi.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_llapi_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_llapi_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_llapi_h" >&5 ++echo "${ECHO_T}$ac_cv_header_llapi_h" >&6; } ++ ++fi ++if test $ac_cv_header_llapi_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_llapi_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_loadleveler_dir" != ""; then ++ ras_loadleveler_CPPFLAGS="$ras_loadleveler_CPPFLAGS -I$ompi_check_loadleveler_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_loadleveler_dir/include" ++fi ++ ++ if test "${ac_cv_header_llapi_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for llapi.h" >&5 ++echo $ECHO_N "checking for llapi.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_llapi_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_llapi_h" >&5 ++echo "${ECHO_T}$ac_cv_header_llapi_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking llapi.h usability" >&5 ++echo $ECHO_N "checking llapi.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking llapi.h presence" >&5 ++echo $ECHO_N "checking llapi.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: llapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: llapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: llapi.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: llapi.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: llapi.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: llapi.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: llapi.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: llapi.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: llapi.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: llapi.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: llapi.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: llapi.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: llapi.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: llapi.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: llapi.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: llapi.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for llapi.h" >&5 ++echo $ECHO_N "checking for llapi.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_llapi_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_llapi_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_llapi_h" >&5 ++echo "${ECHO_T}$ac_cv_header_llapi_h" >&6; } ++ ++fi ++if test $ac_cv_header_llapi_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_llapi_ll_query ++ ompi_check_package_lib_happy="no" ++ if test "" != ""; then ++ # libdir was specified - search only there ++ ras_loadleveler_LDFLAGS="$ras_loadleveler_LDFLAGS -L" ++ LDFLAGS="$LDFLAGS -L" ++ { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5 ++echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; } ++if test "${ac_cv_lib_llapi_ll_query+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lllapi $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ll_query (); ++int ++main () ++{ ++return ll_query (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_llapi_ll_query=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_llapi_ll_query=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5 ++echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; } ++if test $ac_cv_lib_llapi_ll_query = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS" ++ ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS" ++ unset ac_cv_lib_llapi_ll_query ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_loadleveler_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5 ++echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; } ++if test "${ac_cv_lib_llapi_ll_query+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lllapi $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ll_query (); ++int ++main () ++{ ++return ll_query (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_llapi_ll_query=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_llapi_ll_query=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5 ++echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; } ++if test $ac_cv_lib_llapi_ll_query = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS" ++ ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS" ++ unset ac_cv_lib_llapi_ll_query ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ras_loadleveler_LDFLAGS="$ras_loadleveler_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5 ++echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; } ++if test "${ac_cv_lib_llapi_ll_query+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lllapi $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ll_query (); ++int ++main () ++{ ++return ll_query (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_llapi_ll_query=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_llapi_ll_query=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5 ++echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; } ++if test $ac_cv_lib_llapi_ll_query = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS" ++ ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS" ++ unset ac_cv_lib_llapi_ll_query ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ras_loadleveler_LDFLAGS="$ras_loadleveler_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5 ++echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; } ++if test "${ac_cv_lib_llapi_ll_query+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lllapi $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ll_query (); ++int ++main () ++{ ++return ll_query (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_llapi_ll_query=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_llapi_ll_query=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5 ++echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; } ++if test $ac_cv_lib_llapi_ll_query = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS" ++ ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS" ++ unset ac_cv_lib_llapi_ll_query ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ ras_loadleveler_LIBS="-lllapi " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_llapi_ll_query ++ ompi_check_package_lib_happy="no" ++ if test "" != ""; then ++ # libdir was specified - search only there ++ ras_loadleveler_LDFLAGS="$ras_loadleveler_LDFLAGS -L" ++ LDFLAGS="$LDFLAGS -L" ++ { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5 ++echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; } ++if test "${ac_cv_lib_llapi_ll_query+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lllapi $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ll_query (); ++int ++main () ++{ ++return ll_query (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_llapi_ll_query=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_llapi_ll_query=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5 ++echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; } ++if test $ac_cv_lib_llapi_ll_query = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS" ++ ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS" ++ unset ac_cv_lib_llapi_ll_query ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_loadleveler_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5 ++echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; } ++if test "${ac_cv_lib_llapi_ll_query+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lllapi $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ll_query (); ++int ++main () ++{ ++return ll_query (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_llapi_ll_query=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_llapi_ll_query=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5 ++echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; } ++if test $ac_cv_lib_llapi_ll_query = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS" ++ ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS" ++ unset ac_cv_lib_llapi_ll_query ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ras_loadleveler_LDFLAGS="$ras_loadleveler_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5 ++echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; } ++if test "${ac_cv_lib_llapi_ll_query+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lllapi $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ll_query (); ++int ++main () ++{ ++return ll_query (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_llapi_ll_query=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_llapi_ll_query=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5 ++echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; } ++if test $ac_cv_lib_llapi_ll_query = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS" ++ ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS" ++ unset ac_cv_lib_llapi_ll_query ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ras_loadleveler_LDFLAGS="$ras_loadleveler_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5 ++echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; } ++if test "${ac_cv_lib_llapi_ll_query+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lllapi $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ll_query (); ++int ++main () ++{ ++return ll_query (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_llapi_ll_query=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_llapi_ll_query=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5 ++echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; } ++if test $ac_cv_lib_llapi_ll_query = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS" ++ ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS" ++ unset ac_cv_lib_llapi_ll_query ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ ras_loadleveler_LIBS="-lllapi " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ ompi_check_loadleveler_happy="yes" ++else ++ ras_loadleveler_CPPFLAGS="$ompi_check_package_ras_loadleveler_orig_CPPFLAGS" ++ ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS" ++ ras_loadleveler_LIBS="$ompi_check_package_ras_loadleveler_orig_LIBS" ++ ompi_check_loadleveler_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_ras_loadleveler_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS" ++ LIBS="$ompi_check_package_ras_loadleveler_save_LIBS" ++ ++fi ++ ++ ++ if test "$ompi_check_loadleveler_happy" = "yes"; then ++ ras_loadleveler_good=1 ++else ++ if test ! -z "$with_loadleveler" -a "$with_loadleveler" != "no"; then ++ { { echo "$as_me:$LINENO: error: LOADLEVELER support requested but not found. Aborting" >&5 ++echo "$as_me: error: LOADLEVELER support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ras_loadleveler_good=0 ++fi ++ ++ ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ if test "$ras_loadleveler_good" = "1"; then ++ ras_loadleveler_WRAPPER_EXTRA_LDFLAGS="$ras_loadleveler_LDFLAGS" ++ ras_loadleveler_WRAPPER_EXTRA_LIBS="$ras_loadleveler_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # set build flags to use in makefile ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ras ++ component=loadleveler ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ras" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ras" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ras:loadleveler can compile" >&5 ++echo $ECHO_N "checking if MCA component ras:loadleveler can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ras" = "loadleveler" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"loadleveler\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"loadleveler\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "loadleveler" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"loadleveler\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"loadleveler\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components loadleveler" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ras_loadleveler_DSO=1 ++else ++ BUILD_ras_loadleveler_DSO=0 ++fi ++ ++ if test "$BUILD_ras_loadleveler_DSO" = "1"; then ++ OMPI_BUILD_ras_loadleveler_DSO_TRUE= ++ OMPI_BUILD_ras_loadleveler_DSO_FALSE='#' ++else ++ OMPI_BUILD_ras_loadleveler_DSO_TRUE='#' ++ OMPI_BUILD_ras_loadleveler_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component ras:lsf (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ras ++ component=lsf ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ras ++ component=lsf ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ras" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-lsf was given. ++if test "${with_lsf+set}" = set; then ++ withval=$with_lsf; ++fi ++ ++ ++# Check whether --with-lsf-libdir was given. ++if test "${with_lsf_libdir+set}" = set; then ++ withval=$with_lsf_libdir; ++fi ++ ++ ++ # Defaults ++ ompi_check_lsf_dir_msg="compiler default" ++ ompi_check_lsf_libdir_msg="linker default" ++ ++ # Save directory names if supplied ++ if test ! -z "$with_lsf" -a "$with_lsf" != "yes"; then ++ ompi_check_lsf_dir="$with_lsf" ++ ompi_check_lsf_dir_msg="$ompi_check_lsf_dir (from --with-lsf)" ++fi ++ ++ if test ! -z "$with_lsf_libdir" -a "$with_lsf_libdir" != "yes"; then ++ ompi_check_lsf_libdir="$with_lsf_libdir" ++ ompi_check_lsf_libdir_msg="$ompi_check_lsf_libdir (from --with-lsf-libdir)" ++fi ++ ++ ++ # If no directories were specified, look for LSF_LIBDIR, ++ # LSF_INCLUDEDIR, and/or LSF_ENVDIR. ++ if test -z "$ompi_check_lsf_dir" -a -z "$ompi_check_lsf_libdir"; then ++ if test ! -z "$LSF_ENVDIR" -a -z "$LSF_LIBDIR" -a -f "$LSF_ENVDIR/lsf.conf"; then ++ LSF_LIBDIR=`egrep ^LSF_LIBDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-` ++fi ++ ++ if test ! -z "$LSF_ENVDIR" -a -z "$LSF_INCLUDEDIR" -a -f "$LSF_ENVDIR/lsf.conf"; then ++ LSF_INCLUDEDIR=`egrep ^LSF_INCLUDEDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-` ++fi ++ ++ if test ! -z "$LSF_LIBDIR"; then ++ ompi_check_lsf_libdir=$LSF_LIBDIR ++ ompi_check_lsf_libdir_msg="$LSF_LIBDIR (from \$LSF_LIBDIR)" ++fi ++ ++ if test ! -z "$LSF_INCLUDEDIR"; then ++ ompi_check_lsf_dir=`dirname $LSF_INCLUDEDIR` ++ ompi_check_lsf_dir_msg="$ompi_check_lsf_dir (from \$LSF_INCLUDEDIR)" ++fi ++ ++fi ++ ++ ++ if test "$with_lsf" = "no"; then ++ ompi_check_lsf_happy="no" ++else ++ ompi_check_lsf_happy="yes" ++fi ++ ++ ++ ompi_check_lsf_ras_lsf_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_lsf_ras_lsf_save_LDFLAGS="$LDFLAGS" ++ ompi_check_lsf_ras_lsf_save_LIBS="$LIBS" ++ ++ if test "$ompi_check_lsf_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for LSF dir" >&5 ++echo $ECHO_N "checking for LSF dir... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $ompi_check_lsf_dir_msg" >&5 ++echo "${ECHO_T}$ompi_check_lsf_dir_msg" >&6; } ++ { echo "$as_me:$LINENO: checking for LSF library dir" >&5 ++echo $ECHO_N "checking for LSF library dir... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $ompi_check_lsf_libdir_msg" >&5 ++echo "${ECHO_T}$ompi_check_lsf_libdir_msg" >&6; } ++ ++ ompi_check_package_ras_lsf_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_ras_lsf_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_ras_lsf_save_LIBS="$LIBS" ++ ++ ompi_check_package_ras_lsf_orig_CPPFLAGS="$ras_lsf_CPPFLAGS" ++ ompi_check_package_ras_lsf_orig_LDFLAGS="$ras_lsf_LDFLAGS" ++ ompi_check_package_ras_lsf_orig_LIBS="$ras_lsf_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_lsf_lsbatch_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_lsf_dir" = "/usr" -o "$ompi_check_lsf_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5 ++echo $ECHO_N "checking for lsf/lsbatch.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5 ++echo "${ECHO_T}$ac_cv_header_lsf_lsbatch_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking lsf/lsbatch.h usability" >&5 ++echo $ECHO_N "checking lsf/lsbatch.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking lsf/lsbatch.h presence" >&5 ++echo $ECHO_N "checking lsf/lsbatch.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5 ++echo $ECHO_N "checking for lsf/lsbatch.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_lsf_lsbatch_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5 ++echo "${ECHO_T}$ac_cv_header_lsf_lsbatch_h" >&6; } ++ ++fi ++if test $ac_cv_header_lsf_lsbatch_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_lsf_lsbatch_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_lsf_dir" != ""; then ++ ras_lsf_CPPFLAGS="$ras_lsf_CPPFLAGS -I$ompi_check_lsf_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_lsf_dir/include" ++fi ++ ++ if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5 ++echo $ECHO_N "checking for lsf/lsbatch.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5 ++echo "${ECHO_T}$ac_cv_header_lsf_lsbatch_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking lsf/lsbatch.h usability" >&5 ++echo $ECHO_N "checking lsf/lsbatch.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking lsf/lsbatch.h presence" >&5 ++echo $ECHO_N "checking lsf/lsbatch.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5 ++echo $ECHO_N "checking for lsf/lsbatch.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_lsf_lsbatch_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5 ++echo "${ECHO_T}$ac_cv_header_lsf_lsbatch_h" >&6; } ++ ++fi ++if test $ac_cv_header_lsf_lsbatch_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_bat_lsb_launch ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_lsf_libdir" != ""; then ++ # libdir was specified - search only there ++ ras_lsf_LDFLAGS="$ras_lsf_LDFLAGS -L$ompi_check_lsf_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_lsf_libdir" ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS" ++ ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_lsf_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS" ++ ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ras_lsf_LDFLAGS="$ras_lsf_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS" ++ ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ras_lsf_LDFLAGS="$ras_lsf_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS" ++ ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ ras_lsf_LIBS="-lbat -llsf" ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_bat_lsb_launch ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_lsf_libdir" != ""; then ++ # libdir was specified - search only there ++ ras_lsf_LDFLAGS="$ras_lsf_LDFLAGS -L$ompi_check_lsf_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_lsf_libdir" ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS" ++ ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_lsf_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS" ++ ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ras_lsf_LDFLAGS="$ras_lsf_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS" ++ ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ras_lsf_LDFLAGS="$ras_lsf_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5 ++echo $ECHO_N "checking for lsb_launch in -lbat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lbat -llsf $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char lsb_launch (); ++int ++main () ++{ ++return lsb_launch (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_bat_lsb_launch=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_bat_lsb_launch=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5 ++echo "${ECHO_T}$ac_cv_lib_bat_lsb_launch" >&6; } ++if test $ac_cv_lib_bat_lsb_launch = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS" ++ ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS" ++ unset ac_cv_lib_bat_lsb_launch ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ ras_lsf_LIBS="-lbat -llsf" ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ ompi_check_lsf_happy="yes" ++else ++ ras_lsf_CPPFLAGS="$ompi_check_package_ras_lsf_orig_CPPFLAGS" ++ ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS" ++ ras_lsf_LIBS="$ompi_check_package_ras_lsf_orig_LIBS" ++ ompi_check_lsf_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_ras_lsf_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS" ++ LIBS="$ompi_check_package_ras_lsf_save_LIBS" ++ ++fi ++ ++ ++ CPPFLAGS="$ompi_check_lsf_ras_lsf_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_lsf_ras_lsf_save_LDFLAGS" ++ LIBS="$ompi_check_lsf_ras_lsf_save_LIBS" ++ ++ # Reset for the next time we're called ++ ompi_check_lsf_dir= ++ ompi_check_lsf_libdir= ++ ++ if test "$ompi_check_lsf_happy" = "yes"; then ++ ras_lsf_good=1 ++else ++ if test ! -z "$with_lsf" -a "$with_lsf" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: LSF support requested (via --with-lsf) but not found." >&5 ++echo "$as_me: WARNING: LSF support requested (via --with-lsf) but not found." >&2;} ++ { { echo "$as_me:$LINENO: error: Aborting." >&5 ++echo "$as_me: error: Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ras_lsf_good=0 ++fi ++ ++ ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ if test "$ras_lsf_good" = "1"; then ++ ras_lsf_WRAPPER_EXTRA_LDFLAGS="$ras_lsf_LDFLAGS" ++ ras_lsf_WRAPPER_EXTRA_LIBS="$ras_lsf_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # set build flags to use in makefile ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ras ++ component=lsf ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ras" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ras" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ras:lsf can compile" >&5 ++echo $ECHO_N "checking if MCA component ras:lsf can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ras" = "lsf" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"lsf\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "lsf" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"lsf\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components lsf" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ras_lsf_DSO=1 ++else ++ BUILD_ras_lsf_DSO=0 ++fi ++ ++ if test "$BUILD_ras_lsf_DSO" = "1"; then ++ OMPI_BUILD_ras_lsf_DSO_TRUE= ++ OMPI_BUILD_ras_lsf_DSO_FALSE='#' ++else ++ OMPI_BUILD_ras_lsf_DSO_TRUE='#' ++ OMPI_BUILD_ras_lsf_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component ras:slurm (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ras ++ component=slurm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ras ++ component=slurm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ras" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-slurm was given. ++if test "${with_slurm+set}" = set; then ++ withval=$with_slurm; ++fi ++ ++ ++ if test "$with_slurm" = "no" ; then ++ ompi_check_slurm_happy="no" ++ elif test "$with_slurm" = "" ; then ++ # unless user asked, only build slurm component on linux, AIX, ++ # and OS X systems (these are the platforms that SLURM ++ # supports) ++ case $host in ++ *-linux*|*-aix*|*-apple-darwin*) ++ ompi_check_slurm_happy="yes" ++ ;; ++ *) ++ { echo "$as_me:$LINENO: checking for SLURM srun in PATH" >&5 ++echo $ECHO_N "checking for SLURM srun in PATH... $ECHO_C" >&6; } ++ ++# 1 is the variable name to do "which" on ++# 2 is the variable name to assign the return value to ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ompi_prog=srun ++ ++IFS_SAVE=$IFS ++IFS="$PATH_SEPARATOR" ++for ompi_dir in $PATH; do ++ if test -x "$ompi_dir/$ompi_prog"; then ++ OMPI_CHECK_SLURM_SRUN="$ompi_dir/$ompi_prog" ++ break ++ fi ++done ++IFS=$IFS_SAVE ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ if test "$OMPI_CHECK_SLURM_SRUN" = ""; then ++ ompi_check_slurm_happy="no" ++ else ++ ompi_check_slurm_happy="yes" ++ fi ++ { echo "$as_me:$LINENO: result: $ompi_check_slurm_happy" >&5 ++echo "${ECHO_T}$ompi_check_slurm_happy" >&6; } ++ ;; ++ esac ++ else ++ ompi_check_slurm_happy="yes" ++ fi ++ ++ if test "$ompi_check_slurm_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for fork" >&5 ++echo $ECHO_N "checking for fork... $ECHO_C" >&6; } ++if test "${ac_cv_func_fork+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define fork to an innocuous variant, in case declares fork. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define fork innocuous_fork ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char fork (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef fork ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char fork (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_fork || defined __stub___fork ++choke me ++#endif ++ ++int ++main () ++{ ++return fork (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_fork=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_fork=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5 ++echo "${ECHO_T}$ac_cv_func_fork" >&6; } ++if test $ac_cv_func_fork = yes; then ++ ompi_check_slurm_happy="yes" ++else ++ ompi_check_slurm_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_slurm_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for execve" >&5 ++echo $ECHO_N "checking for execve... $ECHO_C" >&6; } ++if test "${ac_cv_func_execve+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define execve to an innocuous variant, in case declares execve. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define execve innocuous_execve ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char execve (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef execve ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char execve (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_execve || defined __stub___execve ++choke me ++#endif ++ ++int ++main () ++{ ++return execve (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_execve=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_execve=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_execve" >&5 ++echo "${ECHO_T}$ac_cv_func_execve" >&6; } ++if test $ac_cv_func_execve = yes; then ++ ompi_check_slurm_happy="yes" ++else ++ ompi_check_slurm_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_slurm_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for setpgid" >&5 ++echo $ECHO_N "checking for setpgid... $ECHO_C" >&6; } ++if test "${ac_cv_func_setpgid+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define setpgid to an innocuous variant, in case declares setpgid. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define setpgid innocuous_setpgid ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char setpgid (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef setpgid ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char setpgid (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_setpgid || defined __stub___setpgid ++choke me ++#endif ++ ++int ++main () ++{ ++return setpgid (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_setpgid=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_setpgid=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5 ++echo "${ECHO_T}$ac_cv_func_setpgid" >&6; } ++if test $ac_cv_func_setpgid = yes; then ++ ompi_check_slurm_happy="yes" ++else ++ ompi_check_slurm_happy="no" ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_slurm_happy" = "yes"; then ++ ras_slurm_good=1 ++else ++ ras_slurm_good=0 ++fi ++ ++ ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ if test "$ras_slurm_good" = "1"; then ++ ras_slurm_WRAPPER_EXTRA_LDFLAGS="$ras_slurm_LDFLAGS" ++ ras_slurm_WRAPPER_EXTRA_LIBS="$ras_slurm_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # set build flags to use in makefile ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ras ++ component=slurm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ras" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ras" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ras:slurm can compile" >&5 ++echo $ECHO_N "checking if MCA component ras:slurm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ras" = "slurm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "slurm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components slurm" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ras_slurm_DSO=1 ++else ++ BUILD_ras_slurm_DSO=0 ++fi ++ ++ if test "$BUILD_ras_slurm_DSO" = "1"; then ++ OMPI_BUILD_ras_slurm_DSO_TRUE= ++ OMPI_BUILD_ras_slurm_DSO_FALSE='#' ++else ++ OMPI_BUILD_ras_slurm_DSO_TRUE='#' ++ OMPI_BUILD_ras_slurm_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component ras:tm (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=ras ++ component=tm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=ras ++ component=tm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ras" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-tm was given. ++if test "${with_tm+set}" = set; then ++ withval=$with_tm; ++fi ++ ++ ++ ompi_check_tm_found=no ++ if test "$with_tm" = "no"; then ++ ompi_check_tm_happy="no" ++else ++ ompi_check_tm_happy="yes" ++ if test ! -z "$with_tm" -a "$with_tm" != "yes"; then ++ ompi_check_tm_dir="$with_tm" ++else ++ ompi_check_tm_dir="" ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_tm_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for pbs-config" >&5 ++echo $ECHO_N "checking for pbs-config... $ECHO_C" >&6; } ++ ompi_check_tm_pbs_config="not found" ++ if test "$ompi_check_tm_dir" != "" -a -d "$ompi_check_tm_dir" -a -x "$ompi_check_tm_dir/bin/pbs-config"; then ++ ompi_check_tm_pbs_config="$ompi_check_tm_dir/bin/pbs-config" ++else ++ if pbs-config --prefix >/dev/null 2>&1; then ++ ompi_check_tm_pbs_config="pbs-config" ++fi ++ ++fi ++ ++ { echo "$as_me:$LINENO: result: $ompi_check_tm_pbs_config" >&5 ++echo "${ECHO_T}$ompi_check_tm_pbs_config" >&6; } ++fi ++ ++ ++ # If we have pbs-config, get the flags we need from there and then ++ # do simplistic tests looking for the tm headers and symbols ++ ++ if test "$ompi_check_tm_happy" = "yes" -a "$ompi_check_tm_pbs_config" != "not found"; then ++ ras_tm_CPPFLAGS=`$ompi_check_tm_pbs_config --cflags` ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: ras_tm_CPPFLAGS from pbs-config: $ras_tm_CPPFLAGS" >&5 ++else ++ echo ras_tm_CPPFLAGS from pbs-config: $ras_tm_CPPFLAGS >&5 ++fi ++ ++ ++ ompi_check_tm_flags=`$ompi_check_tm_pbs_config --libs` ++ for ompi_check_tm_val in $ompi_check_tm_flags; do ++ if test "`echo $ompi_check_tm_val | cut -c1-2`" = "-l"; then ++ if test "LDFLAGS" = "LIBS"; then ++ ras_tm_LDFLAGS="$ras_tm_LDFLAGS $ompi_check_tm_val" ++ fi ++ else ++ if test "LDFLAGS" = "LDFLAGS"; then ++ ras_tm_LDFLAGS="$ras_tm_LDFLAGS $ompi_check_tm_val" ++ fi ++ fi ++ done ++ ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: ras_tm_LDFLAGS from pbs-config: $ras_tm_LDFLAGS" >&5 ++else ++ echo ras_tm_LDFLAGS from pbs-config: $ras_tm_LDFLAGS >&5 ++fi ++ ++ ++ ompi_check_tm_flags=`$ompi_check_tm_pbs_config --libs` ++ for ompi_check_tm_val in $ompi_check_tm_flags; do ++ if test "`echo $ompi_check_tm_val | cut -c1-2`" = "-l"; then ++ if test "LIBS" = "LIBS"; then ++ ras_tm_LIBS="$ras_tm_LIBS $ompi_check_tm_val" ++ fi ++ else ++ if test "LIBS" = "LDFLAGS"; then ++ ras_tm_LIBS="$ras_tm_LIBS $ompi_check_tm_val" ++ fi ++ fi ++ done ++ ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: ras_tm_LIBS from pbs-config: $ras_tm_LIBS" >&5 ++else ++ echo ras_tm_LIBS from pbs-config: $ras_tm_LIBS >&5 ++fi ++ ++ # Now that we supposedly have the right flags, try them out. ++ ++ CPPFLAGS_save="$CPPFLAGS" ++ LDFLAGS_save="$LDFLAGS" ++ LIBS_save="$LIBS" ++ ++ CPPFLAGS="$CPPFLAGS $ras_tm_CPPFLAGS" ++ LIBS="$LIBS $ras_tm_LIBS" ++ LDFLAGS="$LDFLAGS $ras_tm_LDFLAGS" ++ ++ if test "${ac_cv_header_tm_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for tm.h" >&5 ++echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_tm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_tm_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking tm.h usability" >&5 ++echo $ECHO_N "checking tm.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking tm.h presence" >&5 ++echo $ECHO_N "checking tm.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: tm.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for tm.h" >&5 ++echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_tm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_tm_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_tm_h" >&6; } ++ ++fi ++if test $ac_cv_header_tm_h = yes; then ++ { echo "$as_me:$LINENO: checking for tm_finalize" >&5 ++echo $ECHO_N "checking for tm_finalize... $ECHO_C" >&6; } ++if test "${ac_cv_func_tm_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define tm_finalize to an innocuous variant, in case declares tm_finalize. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define tm_finalize innocuous_tm_finalize ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char tm_finalize (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef tm_finalize ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_finalize (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_tm_finalize || defined __stub___tm_finalize ++choke me ++#endif ++ ++int ++main () ++{ ++return tm_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_tm_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_tm_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_tm_finalize" >&5 ++echo "${ECHO_T}$ac_cv_func_tm_finalize" >&6; } ++if test $ac_cv_func_tm_finalize = yes; then ++ ompi_check_tm_found="yes" ++fi ++ ++fi ++ ++ ++ ++ CPPFLAGS="$CPPFLAGS_save" ++ LDFLAGS="$LDFLAGS_save" ++ LIBS="$LIBS_save" ++fi ++ ++ ++ # If we don't have pbs-config, then we have to look around ++ # manually. ++ ++ # Note that Torque 2.1.0 changed the name of their back-end ++ # library to "libtorque". So we have to check for both libpbs and ++ # libtorque. First, check for libpbs. ++ ++ ompi_check_package_ras_tm_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_ras_tm_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_ras_tm_save_LIBS="$LIBS" ++ ++ ompi_check_package_ras_tm_orig_CPPFLAGS="$ras_tm_CPPFLAGS" ++ ompi_check_package_ras_tm_orig_LDFLAGS="$ras_tm_LDFLAGS" ++ ompi_check_package_ras_tm_orig_LIBS="$ras_tm_LIBS" ++ ++ if test "$ompi_check_tm_found" = "no"; then ++ if test "$ompi_check_tm_happy" = "yes"; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_tm_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_tm_dir" = "/usr" -o "$ompi_check_tm_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_tm_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for tm.h" >&5 ++echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_tm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_tm_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking tm.h usability" >&5 ++echo $ECHO_N "checking tm.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking tm.h presence" >&5 ++echo $ECHO_N "checking tm.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: tm.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for tm.h" >&5 ++echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_tm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_tm_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_tm_h" >&6; } ++ ++fi ++if test $ac_cv_header_tm_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_tm_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_tm_dir" != ""; then ++ ras_tm_CPPFLAGS="$ras_tm_CPPFLAGS -I$ompi_check_tm_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_tm_dir/include" ++fi ++ ++ if test "${ac_cv_header_tm_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for tm.h" >&5 ++echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_tm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_tm_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking tm.h usability" >&5 ++echo $ECHO_N "checking tm.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking tm.h presence" >&5 ++echo $ECHO_N "checking tm.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: tm.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for tm.h" >&5 ++echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_tm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_tm_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_tm_h" >&6; } ++ ++fi ++if test $ac_cv_header_tm_h = yes; then ++ ompi_check_tm_found="yes" ++else ++ ompi_check_tm_found="no" ++fi ++ ++ ++else ++ ompi_check_tm_found="yes" ++fi ++ ++ unset ompi_check_package_header_happy ++fi ++ ++ ++ if test "$ompi_check_tm_found" = "yes"; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_pbs_tm_init ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_tm_libdir" != ""; then ++ # libdir was specified - search only there ++ ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_tm_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_tm_libdir" ++ { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5 ++echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_pbs_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_pbs_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_pbs_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; } ++if test $ac_cv_lib_pbs_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS" ++ ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS" ++ unset ac_cv_lib_pbs_tm_init ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_tm_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5 ++echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_pbs_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_pbs_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_pbs_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; } ++if test $ac_cv_lib_pbs_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS" ++ ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS" ++ unset ac_cv_lib_pbs_tm_init ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5 ++echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_pbs_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_pbs_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_pbs_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; } ++if test $ac_cv_lib_pbs_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS" ++ ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS" ++ unset ac_cv_lib_pbs_tm_init ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5 ++echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_pbs_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_pbs_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_pbs_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; } ++if test $ac_cv_lib_pbs_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS" ++ ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS" ++ unset ac_cv_lib_pbs_tm_init ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ ras_tm_LIBS="-lpbs " ++ ompi_check_tm_found="yes" ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_torque_tm_init ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_tm_libdir" != ""; then ++ # libdir was specified - search only there ++ ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_tm_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_tm_libdir" ++ { echo "$as_me:$LINENO: checking for tm_init in -ltorque" >&5 ++echo $ECHO_N "checking for tm_init in -ltorque... $ECHO_C" >&6; } ++if test "${ac_cv_lib_torque_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ltorque $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_torque_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_torque_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_torque_tm_init" >&6; } ++if test $ac_cv_lib_torque_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS" ++ ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS" ++ unset ac_cv_lib_torque_tm_init ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_tm_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for tm_init in -ltorque" >&5 ++echo $ECHO_N "checking for tm_init in -ltorque... $ECHO_C" >&6; } ++if test "${ac_cv_lib_torque_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ltorque $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_torque_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_torque_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_torque_tm_init" >&6; } ++if test $ac_cv_lib_torque_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS" ++ ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS" ++ unset ac_cv_lib_torque_tm_init ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for tm_init in -ltorque" >&5 ++echo $ECHO_N "checking for tm_init in -ltorque... $ECHO_C" >&6; } ++if test "${ac_cv_lib_torque_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ltorque $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_torque_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_torque_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_torque_tm_init" >&6; } ++if test $ac_cv_lib_torque_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS" ++ ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS" ++ unset ac_cv_lib_torque_tm_init ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for tm_init in -ltorque" >&5 ++echo $ECHO_N "checking for tm_init in -ltorque... $ECHO_C" >&6; } ++if test "${ac_cv_lib_torque_tm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ltorque $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tm_init (); ++int ++main () ++{ ++return tm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_torque_tm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_torque_tm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_torque_tm_init" >&6; } ++if test $ac_cv_lib_torque_tm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS" ++ ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS" ++ unset ac_cv_lib_torque_tm_init ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ ras_tm_LIBS="-ltorque " ++ ompi_check_tm_found="yes" ++else ++ ompi_check_tm_found="no" ++fi ++ ++ ++ ++fi ++ ++ ++ ++fi ++ ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_ras_tm_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS" ++ LIBS="$ompi_check_package_ras_tm_save_LIBS" ++ ++ # Did we find the right stuff? ++ if test "$ompi_check_tm_happy" = "yes" -a "$ompi_check_tm_found" = "yes"; then ++ ras_tm_good=1 ++else ++ if test ! -z "$with_tm" -a "$with_tm" != "no"; then ++ { { echo "$as_me:$LINENO: error: TM support requested but not found. Aborting" >&5 ++echo "$as_me: error: TM support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ ras_tm_good=0 ++fi ++ ++ ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ if test "$ras_tm_good" = "1"; then ++ ras_tm_WRAPPER_EXTRA_LDFLAGS="$ras_tm_LDFLAGS" ++ ras_tm_WRAPPER_EXTRA_LIBS="$ras_tm_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # set build flags to use in makefile ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=ras ++ component=tm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ras" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ras" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ras:tm can compile" >&5 ++echo $ECHO_N "checking if MCA component ras:tm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ras" = "tm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "tm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components tm" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_ras_tm_DSO=1 ++else ++ BUILD_ras_tm_DSO=0 ++fi ++ ++ if test "$BUILD_ras_tm_DSO" = "1"; then ++ OMPI_BUILD_ras_tm_DSO_TRUE= ++ OMPI_BUILD_ras_tm_DSO_FALSE='#' ++else ++ OMPI_BUILD_ras_tm_DSO_TRUE='#' ++ OMPI_BUILD_ras_tm_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/orte/mca/ras/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component ras:$component (need to configure)" ++ ++ ++ ++ ++ project=orte ++ framework=ras ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=ras ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_ras" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# orte/mca/ras/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="orte/mca/ras/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=ras ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_ras" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_ras" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component ras:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component ras:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_ras" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_ras" ; then ++ if test "$DIRECT_ras" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_ras_ALL_COMPONENTS="$all_components" ++ MCA_ras_STATIC_COMPONENTS="$static_components" ++ MCA_ras_DSO_COMPONENTS="$dso_components" ++ MCA_ras_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_ras_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_ras_ALL_SUBDIRS="$MCA_ras_ALL_SUBDIRS mca/ras/$item" ++ done ++ ++ ++ ++ MCA_ras_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_ras_STATIC_SUBDIRS="$MCA_ras_STATIC_SUBDIRS mca/ras/$item" ++ done ++ ++ ++ ++ MCA_ras_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_ras_DSO_SUBDIRS="$MCA_ras_DSO_SUBDIRS mca/ras/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "ras" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "rmaps" = "common" ; then ++ MCA_orte_FRAMEWORKS="rmaps $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/rmaps $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_rmaps_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_rmaps_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_rmaps_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS rmaps" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/rmaps" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_rmaps_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_rmaps_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_rmaps_STATIC_SUBDIRS)" ++ fi ++ if test "rmaps" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/rmaps/libmca_rmaps.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_rmaps_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework rmaps" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "rmaps" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/rmaps/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework rmaps" >&5 ++echo $ECHO_N "checking for no configure components in framework rmaps... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: rank_file, round_robin, seq" >&5 ++echo "${ECHO_T}rank_file, round_robin, seq" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework rmaps" >&5 ++echo $ECHO_N "checking for m4 configure components in framework rmaps... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component rmaps:rank_file (no configuration)" ++ ++ ++ ++ ++ project=orte ++ framework=rmaps ++ component=rank_file ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_rmaps" ; then ++ if test "$DIRECT_rmaps" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=rmaps ++ component=rank_file ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_rmaps" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=rmaps ++ component=rank_file ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_rmaps" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_rmaps" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component rmaps:rank_file can compile" >&5 ++echo $ECHO_N "checking if MCA component rmaps:rank_file can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_rmaps" = "rank_file" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"rank_file\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"rank_file\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_rmaps" ; then ++ if test "$DIRECT_rmaps" = "rank_file" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"rank_file\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"rank_file\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components rank_file" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_rmaps_rank_file_DSO=1 ++ else ++ BUILD_rmaps_rank_file_DSO=0 ++ fi ++ if test "$BUILD_rmaps_rank_file_DSO" = "1"; then ++ OMPI_BUILD_rmaps_rank_file_DSO_TRUE= ++ OMPI_BUILD_rmaps_rank_file_DSO_FALSE='#' ++else ++ OMPI_BUILD_rmaps_rank_file_DSO_TRUE='#' ++ OMPI_BUILD_rmaps_rank_file_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component rmaps:round_robin (no configuration)" ++ ++ ++ ++ ++ project=orte ++ framework=rmaps ++ component=round_robin ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_rmaps" ; then ++ if test "$DIRECT_rmaps" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=rmaps ++ component=round_robin ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_rmaps" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=rmaps ++ component=round_robin ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_rmaps" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_rmaps" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component rmaps:round_robin can compile" >&5 ++echo $ECHO_N "checking if MCA component rmaps:round_robin can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_rmaps" = "round_robin" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"round_robin\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"round_robin\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_rmaps" ; then ++ if test "$DIRECT_rmaps" = "round_robin" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"round_robin\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"round_robin\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components round_robin" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_rmaps_round_robin_DSO=1 ++ else ++ BUILD_rmaps_round_robin_DSO=0 ++ fi ++ if test "$BUILD_rmaps_round_robin_DSO" = "1"; then ++ OMPI_BUILD_rmaps_round_robin_DSO_TRUE= ++ OMPI_BUILD_rmaps_round_robin_DSO_FALSE='#' ++else ++ OMPI_BUILD_rmaps_round_robin_DSO_TRUE='#' ++ OMPI_BUILD_rmaps_round_robin_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component rmaps:seq (no configuration)" ++ ++ ++ ++ ++ project=orte ++ framework=rmaps ++ component=seq ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_rmaps" ; then ++ if test "$DIRECT_rmaps" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=rmaps ++ component=seq ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_rmaps" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=rmaps ++ component=seq ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_rmaps" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_rmaps" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component rmaps:seq can compile" >&5 ++echo $ECHO_N "checking if MCA component rmaps:seq can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_rmaps" = "seq" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"seq\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"seq\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_rmaps" ; then ++ if test "$DIRECT_rmaps" = "seq" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"seq\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"seq\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components seq" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_rmaps_seq_DSO=1 ++ else ++ BUILD_rmaps_seq_DSO=0 ++ fi ++ if test "$BUILD_rmaps_seq_DSO" = "1"; then ++ OMPI_BUILD_rmaps_seq_DSO_TRUE= ++ OMPI_BUILD_rmaps_seq_DSO_FALSE='#' ++else ++ OMPI_BUILD_rmaps_seq_DSO_TRUE='#' ++ OMPI_BUILD_rmaps_seq_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/orte/mca/rmaps/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component rmaps:$component (need to configure)" ++ ++ ++ ++ ++ project=orte ++ framework=rmaps ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_rmaps" ; then ++ if test "$DIRECT_rmaps" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=rmaps ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_rmaps" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# orte/mca/rmaps/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="orte/mca/rmaps/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=rmaps ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_rmaps" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_rmaps" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component rmaps:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component rmaps:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_rmaps" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_rmaps" ; then ++ if test "$DIRECT_rmaps" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_rmaps_ALL_COMPONENTS="$all_components" ++ MCA_rmaps_STATIC_COMPONENTS="$static_components" ++ MCA_rmaps_DSO_COMPONENTS="$dso_components" ++ MCA_rmaps_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_rmaps_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_rmaps_ALL_SUBDIRS="$MCA_rmaps_ALL_SUBDIRS mca/rmaps/$item" ++ done ++ ++ ++ ++ MCA_rmaps_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_rmaps_STATIC_SUBDIRS="$MCA_rmaps_STATIC_SUBDIRS mca/rmaps/$item" ++ done ++ ++ ++ ++ MCA_rmaps_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_rmaps_DSO_SUBDIRS="$MCA_rmaps_DSO_SUBDIRS mca/rmaps/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "rmaps" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "rml" = "common" ; then ++ MCA_orte_FRAMEWORKS="rml $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/rml $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_rml_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_rml_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_rml_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS rml" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/rml" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_rml_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_rml_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_rml_STATIC_SUBDIRS)" ++ fi ++ if test "rml" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/rml/libmca_rml.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_rml_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework rml" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "rml" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/rml/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework rml" >&5 ++echo $ECHO_N "checking for no configure components in framework rml... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: oob" >&5 ++echo "${ECHO_T}oob" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework rml" >&5 ++echo $ECHO_N "checking for m4 configure components in framework rml... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: ftrm" >&5 ++echo "${ECHO_T}ftrm" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component rml:oob (no configuration)" ++ ++ ++ ++ ++ project=orte ++ framework=rml ++ component=oob ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_rml" ; then ++ if test "$DIRECT_rml" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=rml ++ component=oob ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_rml" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=rml ++ component=oob ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_rml" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_rml" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component rml:oob can compile" >&5 ++echo $ECHO_N "checking if MCA component rml:oob can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_rml" = "oob" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"oob\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"oob\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_rml" ; then ++ if test "$DIRECT_rml" = "oob" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"oob\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"oob\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components oob" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_rml_oob_DSO=1 ++ else ++ BUILD_rml_oob_DSO=0 ++ fi ++ if test "$BUILD_rml_oob_DSO" = "1"; then ++ OMPI_BUILD_rml_oob_DSO_TRUE= ++ OMPI_BUILD_rml_oob_DSO_FALSE='#' ++else ++ OMPI_BUILD_rml_oob_DSO_TRUE='#' ++ OMPI_BUILD_rml_oob_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component rml:ftrm (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=rml ++ component=ftrm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_rml" ; then ++ if test "$DIRECT_rml" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=rml ++ component=ftrm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_rml" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ # If we don't want FT, don't compile this component ++ if test "$ompi_want_ft" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=rml ++ component=ftrm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_rml" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_rml" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component rml:ftrm can compile" >&5 ++echo $ECHO_N "checking if MCA component rml:ftrm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_rml" = "ftrm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"ftrm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"ftrm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_rml" ; then ++ if test "$DIRECT_rml" = "ftrm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"ftrm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"ftrm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components ftrm" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_rml_ftrm_DSO=1 ++else ++ BUILD_rml_ftrm_DSO=0 ++fi ++ ++ if test "$BUILD_rml_ftrm_DSO" = "1"; then ++ OMPI_BUILD_rml_ftrm_DSO_TRUE= ++ OMPI_BUILD_rml_ftrm_DSO_FALSE='#' ++else ++ OMPI_BUILD_rml_ftrm_DSO_TRUE='#' ++ OMPI_BUILD_rml_ftrm_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/orte/mca/rml/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component rml:$component (need to configure)" ++ ++ ++ ++ ++ project=orte ++ framework=rml ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_rml" ; then ++ if test "$DIRECT_rml" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=rml ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_rml" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# orte/mca/rml/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="orte/mca/rml/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=rml ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_rml" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_rml" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component rml:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component rml:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_rml" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_rml" ; then ++ if test "$DIRECT_rml" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_rml_ALL_COMPONENTS="$all_components" ++ MCA_rml_STATIC_COMPONENTS="$static_components" ++ MCA_rml_DSO_COMPONENTS="$dso_components" ++ MCA_rml_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_rml_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_rml_ALL_SUBDIRS="$MCA_rml_ALL_SUBDIRS mca/rml/$item" ++ done ++ ++ ++ ++ MCA_rml_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_rml_STATIC_SUBDIRS="$MCA_rml_STATIC_SUBDIRS mca/rml/$item" ++ done ++ ++ ++ ++ MCA_rml_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_rml_DSO_SUBDIRS="$MCA_rml_DSO_SUBDIRS mca/rml/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "rml" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "routed" = "common" ; then ++ MCA_orte_FRAMEWORKS="routed $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/routed $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_routed_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_routed_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_routed_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS routed" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/routed" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_routed_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_routed_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_routed_STATIC_SUBDIRS)" ++ fi ++ if test "routed" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/routed/libmca_routed.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_routed_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework routed" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "routed" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/routed/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework routed" >&5 ++echo $ECHO_N "checking for no configure components in framework routed... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: binomial, direct, linear" >&5 ++echo "${ECHO_T}binomial, direct, linear" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework routed" >&5 ++echo $ECHO_N "checking for m4 configure components in framework routed... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component routed:binomial (no configuration)" ++ ++ ++ ++ ++ project=orte ++ framework=routed ++ component=binomial ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_routed" ; then ++ if test "$DIRECT_routed" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=routed ++ component=binomial ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_routed" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=routed ++ component=binomial ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_routed" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_routed" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component routed:binomial can compile" >&5 ++echo $ECHO_N "checking if MCA component routed:binomial can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_routed" = "binomial" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"binomial\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"binomial\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_routed" ; then ++ if test "$DIRECT_routed" = "binomial" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"binomial\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"binomial\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components binomial" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_routed_binomial_DSO=1 ++ else ++ BUILD_routed_binomial_DSO=0 ++ fi ++ if test "$BUILD_routed_binomial_DSO" = "1"; then ++ OMPI_BUILD_routed_binomial_DSO_TRUE= ++ OMPI_BUILD_routed_binomial_DSO_FALSE='#' ++else ++ OMPI_BUILD_routed_binomial_DSO_TRUE='#' ++ OMPI_BUILD_routed_binomial_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component routed:direct (no configuration)" ++ ++ ++ ++ ++ project=orte ++ framework=routed ++ component=direct ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_routed" ; then ++ if test "$DIRECT_routed" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=routed ++ component=direct ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_routed" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=routed ++ component=direct ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_routed" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_routed" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component routed:direct can compile" >&5 ++echo $ECHO_N "checking if MCA component routed:direct can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_routed" = "direct" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"direct\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"direct\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_routed" ; then ++ if test "$DIRECT_routed" = "direct" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"direct\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"direct\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components direct" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_routed_direct_DSO=1 ++ else ++ BUILD_routed_direct_DSO=0 ++ fi ++ if test "$BUILD_routed_direct_DSO" = "1"; then ++ OMPI_BUILD_routed_direct_DSO_TRUE= ++ OMPI_BUILD_routed_direct_DSO_FALSE='#' ++else ++ OMPI_BUILD_routed_direct_DSO_TRUE='#' ++ OMPI_BUILD_routed_direct_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component routed:linear (no configuration)" ++ ++ ++ ++ ++ project=orte ++ framework=routed ++ component=linear ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_routed" ; then ++ if test "$DIRECT_routed" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=routed ++ component=linear ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_routed" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=routed ++ component=linear ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_routed" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_routed" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component routed:linear can compile" >&5 ++echo $ECHO_N "checking if MCA component routed:linear can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_routed" = "linear" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"linear\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"linear\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_routed" ; then ++ if test "$DIRECT_routed" = "linear" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"linear\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"linear\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components linear" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_routed_linear_DSO=1 ++ else ++ BUILD_routed_linear_DSO=0 ++ fi ++ if test "$BUILD_routed_linear_DSO" = "1"; then ++ OMPI_BUILD_routed_linear_DSO_TRUE= ++ OMPI_BUILD_routed_linear_DSO_FALSE='#' ++else ++ OMPI_BUILD_routed_linear_DSO_TRUE='#' ++ OMPI_BUILD_routed_linear_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/orte/mca/routed/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component routed:$component (need to configure)" ++ ++ ++ ++ ++ project=orte ++ framework=routed ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_routed" ; then ++ if test "$DIRECT_routed" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=routed ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_routed" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# orte/mca/routed/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="orte/mca/routed/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=routed ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_routed" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_routed" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component routed:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component routed:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_routed" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_routed" ; then ++ if test "$DIRECT_routed" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_routed_ALL_COMPONENTS="$all_components" ++ MCA_routed_STATIC_COMPONENTS="$static_components" ++ MCA_routed_DSO_COMPONENTS="$dso_components" ++ MCA_routed_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_routed_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_routed_ALL_SUBDIRS="$MCA_routed_ALL_SUBDIRS mca/routed/$item" ++ done ++ ++ ++ ++ MCA_routed_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_routed_STATIC_SUBDIRS="$MCA_routed_STATIC_SUBDIRS mca/routed/$item" ++ done ++ ++ ++ ++ MCA_routed_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_routed_DSO_SUBDIRS="$MCA_routed_DSO_SUBDIRS mca/routed/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "routed" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "snapc" = "common" ; then ++ MCA_orte_FRAMEWORKS="snapc $MCA_orte_FRAMEWORKS" ++ MCA_orte_FRAMEWORKS_SUBDIRS="mca/snapc $MCA_orte_FRAMEWORKS_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_snapc_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_snapc_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_snapc_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS snapc" ++ MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/snapc" ++ MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_snapc_ALL_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_snapc_DSO_SUBDIRS)" ++ MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_snapc_STATIC_SUBDIRS)" ++ fi ++ if test "snapc" != "common" ; then ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/snapc/libmca_snapc.la" ++ fi ++ MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_snapc_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework snapc" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "snapc" = "common" ; then ++ outdir=orte/mca/common ++ else ++ outdir=orte/mca/snapc/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework snapc" >&5 ++echo $ECHO_N "checking for no configure components in framework snapc... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework snapc" >&5 ++echo $ECHO_N "checking for m4 configure components in framework snapc... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: full" >&5 ++echo "${ECHO_T}full" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component snapc:full (m4 configuration macro)" ++ ++ ++ ++ ++ project=orte ++ framework=snapc ++ component=full ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_snapc" ; then ++ if test "$DIRECT_snapc" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=orte ++ framework=snapc ++ component=full ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_snapc" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ # If we don't want FT, don't compile this component ++ if test "$ompi_want_ft" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=orte ++ framework=snapc ++ component=full ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_snapc" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_snapc" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component snapc:full can compile" >&5 ++echo $ECHO_N "checking if MCA component snapc:full can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_snapc" = "full" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"full\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"full\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_snapc" ; then ++ if test "$DIRECT_snapc" = "full" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"full\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"full\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components full" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_snapc_full_DSO=1 ++else ++ BUILD_snapc_full_DSO=0 ++fi ++ ++ if test "$BUILD_snapc_full_DSO" = "1"; then ++ OMPI_BUILD_snapc_full_DSO_TRUE= ++ OMPI_BUILD_snapc_full_DSO_FALSE='#' ++else ++ OMPI_BUILD_snapc_full_DSO_TRUE='#' ++ OMPI_BUILD_snapc_full_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/orte/mca/snapc/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component snapc:$component (need to configure)" ++ ++ ++ ++ ++ project=orte ++ framework=snapc ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_snapc" ; then ++ if test "$DIRECT_snapc" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=orte ++ framework=snapc ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_snapc" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# orte/mca/snapc/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="orte/mca/snapc/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=orte ++ framework=snapc ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_snapc" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_snapc" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component snapc:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component snapc:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_snapc" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_snapc" ; then ++ if test "$DIRECT_snapc" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_snapc_ALL_COMPONENTS="$all_components" ++ MCA_snapc_STATIC_COMPONENTS="$static_components" ++ MCA_snapc_DSO_COMPONENTS="$dso_components" ++ MCA_snapc_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_snapc_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_snapc_ALL_SUBDIRS="$MCA_snapc_ALL_SUBDIRS mca/snapc/$item" ++ done ++ ++ ++ ++ MCA_snapc_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_snapc_STATIC_SUBDIRS="$MCA_snapc_STATIC_SUBDIRS mca/snapc/$item" ++ done ++ ++ ++ ++ MCA_snapc_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_snapc_DSO_SUBDIRS="$MCA_snapc_DSO_SUBDIRS mca/snapc/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "snapc" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++ ++ ++ ++ ++ ++ ++ ++ ++MCA_PROJECT_SUBDIRS="$MCA_PROJECT_SUBDIRS ompi" ++ ++ # can't use a variable rename here because these need to be evaled ++ # at auto* time. ++ ++ ompi_show_subtitle "Configuring MCA for ompi" ++ ++ { echo "$as_me:$LINENO: checking for frameworks for ompi" >&5 ++echo $ECHO_N "checking for frameworks for ompi... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: allocator, bml, btl, coll, common, crcp, dpm, io, mpool, mtl, osc, pml, pubsub, rcache, topo" >&5 ++echo "${ECHO_T}allocator, bml, btl, coll, common, crcp, dpm, io, mpool, mtl, osc, pml, pubsub, rcache, topo" >&6; } ++ ++ # iterate through the list of frameworks. There is something ++ # funky with m4 foreach if the list is defined, but empty. It ++ # will call the 3rd argument once with an empty value for the ++ # first argument. Protect against calling MCA_CONFIGURE_FRAMEWORK ++ # with an empty second argument. Grrr.... ++ # if there isn't a project list, abort ++ # ++ # Also setup two variables for Makefiles: ++ # MCA_project_FRAMEWORKS - list of frameworks in that project ++ # MCA_project_FRAMEWORK_LIBS - list of libraries (or variables pointing ++ # to more libraries) that must be included ++ # in the project's main library ++ ++ ++ MCA_ompi_FRAMEWORKS= ++ MCA_ompi_FRAMEWORKS_SUBDIRS= ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS= ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS= ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS= ++ MCA_ompi_FRAMEWORK_LIBS= ++ ++ # common has to go up front ++ if test "allocator" = "common" ; then ++ MCA_ompi_FRAMEWORKS="allocator $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/allocator $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_allocator_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_allocator_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_allocator_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS allocator" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/allocator" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_allocator_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_allocator_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_allocator_STATIC_SUBDIRS)" ++ fi ++ if test "allocator" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/allocator/libmca_allocator.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_allocator_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework allocator" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "allocator" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/allocator/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework allocator" >&5 ++echo $ECHO_N "checking for no configure components in framework allocator... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: basic, bucket" >&5 ++echo "${ECHO_T}basic, bucket" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework allocator" >&5 ++echo $ECHO_N "checking for m4 configure components in framework allocator... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component allocator:basic (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=allocator ++ component=basic ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_allocator" ; then ++ if test "$DIRECT_allocator" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=allocator ++ component=basic ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_allocator" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=allocator ++ component=basic ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_allocator" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_allocator" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component allocator:basic can compile" >&5 ++echo $ECHO_N "checking if MCA component allocator:basic can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_allocator" = "basic" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_allocator" ; then ++ if test "$DIRECT_allocator" = "basic" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components basic" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_allocator_basic_DSO=1 ++ else ++ BUILD_allocator_basic_DSO=0 ++ fi ++ if test "$BUILD_allocator_basic_DSO" = "1"; then ++ OMPI_BUILD_allocator_basic_DSO_TRUE= ++ OMPI_BUILD_allocator_basic_DSO_FALSE='#' ++else ++ OMPI_BUILD_allocator_basic_DSO_TRUE='#' ++ OMPI_BUILD_allocator_basic_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component allocator:bucket (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=allocator ++ component=bucket ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_allocator" ; then ++ if test "$DIRECT_allocator" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=allocator ++ component=bucket ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_allocator" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=allocator ++ component=bucket ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_allocator" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_allocator" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component allocator:bucket can compile" >&5 ++echo $ECHO_N "checking if MCA component allocator:bucket can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_allocator" = "bucket" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"bucket\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"bucket\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_allocator" ; then ++ if test "$DIRECT_allocator" = "bucket" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"bucket\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"bucket\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components bucket" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_allocator_bucket_DSO=1 ++ else ++ BUILD_allocator_bucket_DSO=0 ++ fi ++ if test "$BUILD_allocator_bucket_DSO" = "1"; then ++ OMPI_BUILD_allocator_bucket_DSO_TRUE= ++ OMPI_BUILD_allocator_bucket_DSO_FALSE='#' ++else ++ OMPI_BUILD_allocator_bucket_DSO_TRUE='#' ++ OMPI_BUILD_allocator_bucket_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/allocator/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component allocator:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=allocator ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_allocator" ; then ++ if test "$DIRECT_allocator" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=allocator ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_allocator" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/allocator/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/allocator/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=allocator ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_allocator" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_allocator" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component allocator:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component allocator:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_allocator" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_allocator" ; then ++ if test "$DIRECT_allocator" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_allocator_ALL_COMPONENTS="$all_components" ++ MCA_allocator_STATIC_COMPONENTS="$static_components" ++ MCA_allocator_DSO_COMPONENTS="$dso_components" ++ MCA_allocator_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_allocator_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_allocator_ALL_SUBDIRS="$MCA_allocator_ALL_SUBDIRS mca/allocator/$item" ++ done ++ ++ ++ ++ MCA_allocator_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_allocator_STATIC_SUBDIRS="$MCA_allocator_STATIC_SUBDIRS mca/allocator/$item" ++ done ++ ++ ++ ++ MCA_allocator_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_allocator_DSO_SUBDIRS="$MCA_allocator_DSO_SUBDIRS mca/allocator/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "allocator" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "bml" = "common" ; then ++ MCA_ompi_FRAMEWORKS="bml $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/bml $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_bml_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_bml_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_bml_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS bml" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/bml" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_bml_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_bml_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_bml_STATIC_SUBDIRS)" ++ fi ++ if test "bml" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/bml/libmca_bml.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_bml_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework bml" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "bml" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/bml/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework bml" >&5 ++echo $ECHO_N "checking for no configure components in framework bml... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: r2" >&5 ++echo "${ECHO_T}r2" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework bml" >&5 ++echo $ECHO_N "checking for m4 configure components in framework bml... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component bml:r2 (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=bml ++ component=r2 ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_bml" ; then ++ if test "$DIRECT_bml" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=bml ++ component=r2 ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_bml" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=bml ++ component=r2 ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_bml" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_bml" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component bml:r2 can compile" >&5 ++echo $ECHO_N "checking if MCA component bml:r2 can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_bml" = "r2" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"r2\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"r2\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_bml" ; then ++ if test "$DIRECT_bml" = "r2" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"r2\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"r2\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components r2" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_bml_r2_DSO=1 ++ else ++ BUILD_bml_r2_DSO=0 ++ fi ++ if test "$BUILD_bml_r2_DSO" = "1"; then ++ OMPI_BUILD_bml_r2_DSO_TRUE= ++ OMPI_BUILD_bml_r2_DSO_FALSE='#' ++else ++ OMPI_BUILD_bml_r2_DSO_TRUE='#' ++ OMPI_BUILD_bml_r2_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/bml/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component bml:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=bml ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_bml" ; then ++ if test "$DIRECT_bml" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=bml ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_bml" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/bml/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/bml/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=bml ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_bml" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_bml" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component bml:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component bml:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_bml" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_bml" ; then ++ if test "$DIRECT_bml" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_bml_ALL_COMPONENTS="$all_components" ++ MCA_bml_STATIC_COMPONENTS="$static_components" ++ MCA_bml_DSO_COMPONENTS="$dso_components" ++ MCA_bml_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_bml_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_bml_ALL_SUBDIRS="$MCA_bml_ALL_SUBDIRS mca/bml/$item" ++ done ++ ++ ++ ++ MCA_bml_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_bml_STATIC_SUBDIRS="$MCA_bml_STATIC_SUBDIRS mca/bml/$item" ++ done ++ ++ ++ ++ MCA_bml_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_bml_DSO_SUBDIRS="$MCA_bml_DSO_SUBDIRS mca/bml/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "bml" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "btl" = "common" ; then ++ MCA_ompi_FRAMEWORKS="btl $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/btl $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_btl_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_btl_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_btl_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS btl" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/btl" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_btl_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_btl_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_btl_STATIC_SUBDIRS)" ++ fi ++ if test "btl" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/btl/libmca_btl.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_btl_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework btl" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "btl" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/btl/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework btl" >&5 ++echo $ECHO_N "checking for no configure components in framework btl... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: self, sm" >&5 ++echo "${ECHO_T}self, sm" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework btl" >&5 ++echo $ECHO_N "checking for m4 configure components in framework btl... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: elan, gm, mx, ofud, openib, portals, tcp, udapl" >&5 ++echo "${ECHO_T}elan, gm, mx, ofud, openib, portals, tcp, udapl" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component btl:self (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=self ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=self ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=self ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_btl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_btl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component btl:self can compile" >&5 ++echo $ECHO_N "checking if MCA component btl:self can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_btl" = "self" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "self" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components self" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_btl_self_DSO=1 ++ else ++ BUILD_btl_self_DSO=0 ++ fi ++ if test "$BUILD_btl_self_DSO" = "1"; then ++ OMPI_BUILD_btl_self_DSO_TRUE= ++ OMPI_BUILD_btl_self_DSO_FALSE='#' ++else ++ OMPI_BUILD_btl_self_DSO_TRUE='#' ++ OMPI_BUILD_btl_self_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component btl:sm (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=sm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=sm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=sm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_btl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_btl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component btl:sm can compile" >&5 ++echo $ECHO_N "checking if MCA component btl:sm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_btl" = "sm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "sm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components sm" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_btl_sm_DSO=1 ++ else ++ BUILD_btl_sm_DSO=0 ++ fi ++ if test "$BUILD_btl_sm_DSO" = "1"; then ++ OMPI_BUILD_btl_sm_DSO_TRUE= ++ OMPI_BUILD_btl_sm_DSO_FALSE='#' ++else ++ OMPI_BUILD_btl_sm_DSO_TRUE='#' ++ OMPI_BUILD_btl_sm_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component btl:elan (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=elan ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=btl ++ component=elan ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-elan was given. ++if test "${with_elan+set}" = set; then ++ withval=$with_elan; ++fi ++ ++ ++# Check whether --with-elan-libdir was given. ++if test "${with_elan_libdir+set}" = set; then ++ withval=$with_elan_libdir; ++fi ++ ++ ++ if test "$with_elan" != "no"; then ++ if test ! -z "$with_elan" -a "$with_elan" != "yes"; then ++ ompi_check_elan_dir="$with_elan" ++fi ++ ++ if test ! -z "$with_elan_libdir" -a "$with_elan_libdir" != "yes"; then ++ ompi_check_elan_libdir="$with_elan_libdir" ++fi ++ ++ ++ ++ ompi_check_package_btl_elan_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_btl_elan_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_btl_elan_save_LIBS="$LIBS" ++ ++ ompi_check_package_btl_elan_orig_CPPFLAGS="$btl_elan_CPPFLAGS" ++ ompi_check_package_btl_elan_orig_LDFLAGS="$btl_elan_LDFLAGS" ++ ompi_check_package_btl_elan_orig_LIBS="$btl_elan_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_elan_elan_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_elan_dir" = "/usr" -o "$ompi_check_elan_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_elan_elan_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for elan/elan.h" >&5 ++echo $ECHO_N "checking for elan/elan.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_elan_elan_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_elan_elan_h" >&5 ++echo "${ECHO_T}$ac_cv_header_elan_elan_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking elan/elan.h usability" >&5 ++echo $ECHO_N "checking elan/elan.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking elan/elan.h presence" >&5 ++echo $ECHO_N "checking elan/elan.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: elan/elan.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: elan/elan.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: elan/elan.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: elan/elan.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: elan/elan.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: elan/elan.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: elan/elan.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: elan/elan.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for elan/elan.h" >&5 ++echo $ECHO_N "checking for elan/elan.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_elan_elan_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_elan_elan_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_elan_elan_h" >&5 ++echo "${ECHO_T}$ac_cv_header_elan_elan_h" >&6; } ++ ++fi ++if test $ac_cv_header_elan_elan_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_elan_elan_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_elan_dir" != ""; then ++ btl_elan_CPPFLAGS="$btl_elan_CPPFLAGS -I$ompi_check_elan_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_elan_dir/include" ++fi ++ ++ if test "${ac_cv_header_elan_elan_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for elan/elan.h" >&5 ++echo $ECHO_N "checking for elan/elan.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_elan_elan_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_elan_elan_h" >&5 ++echo "${ECHO_T}$ac_cv_header_elan_elan_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking elan/elan.h usability" >&5 ++echo $ECHO_N "checking elan/elan.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking elan/elan.h presence" >&5 ++echo $ECHO_N "checking elan/elan.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: elan/elan.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: elan/elan.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: elan/elan.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: elan/elan.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: elan/elan.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: elan/elan.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: elan/elan.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: elan/elan.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: elan/elan.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for elan/elan.h" >&5 ++echo $ECHO_N "checking for elan/elan.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_elan_elan_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_elan_elan_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_elan_elan_h" >&5 ++echo "${ECHO_T}$ac_cv_header_elan_elan_h" >&6; } ++ ++fi ++if test $ac_cv_header_elan_elan_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_elan_elan_init ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_elan_libdir" != ""; then ++ # libdir was specified - search only there ++ btl_elan_LDFLAGS="$btl_elan_LDFLAGS -L$ompi_check_elan_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_elan_libdir" ++ { echo "$as_me:$LINENO: checking for elan_init in -lelan" >&5 ++echo $ECHO_N "checking for elan_init in -lelan... $ECHO_C" >&6; } ++if test "${ac_cv_lib_elan_elan_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lelan $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char elan_init (); ++int ++main () ++{ ++return elan_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_elan_elan_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_elan_elan_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_elan_elan_init" >&6; } ++if test $ac_cv_lib_elan_elan_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS" ++ btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS" ++ unset ac_cv_lib_elan_elan_init ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_elan_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for elan_init in -lelan" >&5 ++echo $ECHO_N "checking for elan_init in -lelan... $ECHO_C" >&6; } ++if test "${ac_cv_lib_elan_elan_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lelan $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char elan_init (); ++int ++main () ++{ ++return elan_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_elan_elan_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_elan_elan_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_elan_elan_init" >&6; } ++if test $ac_cv_lib_elan_elan_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS" ++ btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS" ++ unset ac_cv_lib_elan_elan_init ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_elan_LDFLAGS="$btl_elan_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for elan_init in -lelan" >&5 ++echo $ECHO_N "checking for elan_init in -lelan... $ECHO_C" >&6; } ++if test "${ac_cv_lib_elan_elan_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lelan $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char elan_init (); ++int ++main () ++{ ++return elan_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_elan_elan_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_elan_elan_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_elan_elan_init" >&6; } ++if test $ac_cv_lib_elan_elan_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS" ++ btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS" ++ unset ac_cv_lib_elan_elan_init ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_elan_LDFLAGS="$btl_elan_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for elan_init in -lelan" >&5 ++echo $ECHO_N "checking for elan_init in -lelan... $ECHO_C" >&6; } ++if test "${ac_cv_lib_elan_elan_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lelan $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char elan_init (); ++int ++main () ++{ ++return elan_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_elan_elan_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_elan_elan_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_elan_elan_init" >&6; } ++if test $ac_cv_lib_elan_elan_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS" ++ btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS" ++ unset ac_cv_lib_elan_elan_init ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ btl_elan_LIBS="-lelan " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_elan_elan_init ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_elan_libdir" != ""; then ++ # libdir was specified - search only there ++ btl_elan_LDFLAGS="$btl_elan_LDFLAGS -L$ompi_check_elan_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_elan_libdir" ++ { echo "$as_me:$LINENO: checking for elan_init in -lelan" >&5 ++echo $ECHO_N "checking for elan_init in -lelan... $ECHO_C" >&6; } ++if test "${ac_cv_lib_elan_elan_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lelan $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char elan_init (); ++int ++main () ++{ ++return elan_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_elan_elan_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_elan_elan_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_elan_elan_init" >&6; } ++if test $ac_cv_lib_elan_elan_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS" ++ btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS" ++ unset ac_cv_lib_elan_elan_init ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_elan_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for elan_init in -lelan" >&5 ++echo $ECHO_N "checking for elan_init in -lelan... $ECHO_C" >&6; } ++if test "${ac_cv_lib_elan_elan_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lelan $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char elan_init (); ++int ++main () ++{ ++return elan_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_elan_elan_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_elan_elan_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_elan_elan_init" >&6; } ++if test $ac_cv_lib_elan_elan_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS" ++ btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS" ++ unset ac_cv_lib_elan_elan_init ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_elan_LDFLAGS="$btl_elan_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for elan_init in -lelan" >&5 ++echo $ECHO_N "checking for elan_init in -lelan... $ECHO_C" >&6; } ++if test "${ac_cv_lib_elan_elan_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lelan $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char elan_init (); ++int ++main () ++{ ++return elan_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_elan_elan_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_elan_elan_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_elan_elan_init" >&6; } ++if test $ac_cv_lib_elan_elan_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS" ++ btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS" ++ unset ac_cv_lib_elan_elan_init ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_elan_LDFLAGS="$btl_elan_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for elan_init in -lelan" >&5 ++echo $ECHO_N "checking for elan_init in -lelan... $ECHO_C" >&6; } ++if test "${ac_cv_lib_elan_elan_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lelan $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char elan_init (); ++int ++main () ++{ ++return elan_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_elan_elan_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_elan_elan_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_elan_elan_init" >&6; } ++if test $ac_cv_lib_elan_elan_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS" ++ btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS" ++ unset ac_cv_lib_elan_elan_init ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ btl_elan_LIBS="-lelan " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ ompi_check_elan_happy="yes" ++else ++ btl_elan_CPPFLAGS="$ompi_check_package_btl_elan_orig_CPPFLAGS" ++ btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS" ++ btl_elan_LIBS="$ompi_check_package_btl_elan_orig_LIBS" ++ ompi_check_elan_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_btl_elan_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS" ++ LIBS="$ompi_check_package_btl_elan_save_LIBS" ++ ++ ++else ++ ompi_check_elan_happy="no" ++fi ++ ++ ++ if test "$ompi_check_elan_happy" = "yes"; then ++ btl_elan_happy="yes" ++else ++ if test ! -z "$with_elan" -a "$with_elan" != "no"; then ++ { { echo "$as_me:$LINENO: error: Elan (QsNet2) support requested but not found. Aborting" >&5 ++echo "$as_me: error: Elan (QsNet2) support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ btl_elan_happy="no" ++fi ++ ++ ++ ++ if test "$btl_elan_happy" = "yes"; then ++ btl_elan_WRAPPER_EXTRA_LDFLAGS="$btl_elan_LDFLAGS" ++ btl_elan_WRAPPER_EXTRA_LIBS="$btl_elan_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # substitute in the things needed to build elan ++ ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=elan ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_btl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_btl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component btl:elan can compile" >&5 ++echo $ECHO_N "checking if MCA component btl:elan can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_btl" = "elan" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"elan\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"elan\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "elan" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"elan\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"elan\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components elan" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_btl_elan_DSO=1 ++else ++ BUILD_btl_elan_DSO=0 ++fi ++ ++ if test "$BUILD_btl_elan_DSO" = "1"; then ++ OMPI_BUILD_btl_elan_DSO_TRUE= ++ OMPI_BUILD_btl_elan_DSO_FALSE='#' ++else ++ OMPI_BUILD_btl_elan_DSO_TRUE='#' ++ OMPI_BUILD_btl_elan_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component btl:gm (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=gm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=btl ++ component=gm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-gm was given. ++if test "${with_gm+set}" = set; then ++ withval=$with_gm; ++fi ++ ++ ++# Check whether --with-gm-libdir was given. ++if test "${with_gm_libdir+set}" = set; then ++ withval=$with_gm_libdir; ++fi ++ ++ ++ if test "$with_gm" != "no"; then ++ if test ! -z "$with_gm" -a "$with_gm" != "yes"; then ++ ompi_check_gm_dir="$with_gm" ++fi ++ ++ if test ! -z "$with_gm_libdir" -a "$with_gm_libdir" != "yes"; then ++ ompi_check_gm_libdir="$with_gm_libdir" ++fi ++ ++ ++ ++ ompi_check_package_btl_gm_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_btl_gm_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_btl_gm_save_LIBS="$LIBS" ++ ++ ompi_check_package_btl_gm_orig_CPPFLAGS="$btl_gm_CPPFLAGS" ++ ompi_check_package_btl_gm_orig_LDFLAGS="$btl_gm_LDFLAGS" ++ ompi_check_package_btl_gm_orig_LIBS="$btl_gm_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_gm_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_gm_dir" = "/usr" -o "$ompi_check_gm_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_gm_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for gm.h" >&5 ++echo $ECHO_N "checking for gm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_gm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_gm_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking gm.h usability" >&5 ++echo $ECHO_N "checking gm.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking gm.h presence" >&5 ++echo $ECHO_N "checking gm.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: gm.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: gm.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: gm.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: gm.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: gm.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: gm.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: gm.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: gm.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: gm.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: gm.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: gm.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: gm.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for gm.h" >&5 ++echo $ECHO_N "checking for gm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_gm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_gm_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_gm_h" >&6; } ++ ++fi ++if test $ac_cv_header_gm_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_gm_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_gm_dir" != ""; then ++ btl_gm_CPPFLAGS="$btl_gm_CPPFLAGS -I$ompi_check_gm_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_gm_dir/include" ++fi ++ ++ if test "${ac_cv_header_gm_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for gm.h" >&5 ++echo $ECHO_N "checking for gm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_gm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_gm_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking gm.h usability" >&5 ++echo $ECHO_N "checking gm.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking gm.h presence" >&5 ++echo $ECHO_N "checking gm.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: gm.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: gm.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: gm.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: gm.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: gm.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: gm.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: gm.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: gm.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: gm.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: gm.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: gm.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: gm.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for gm.h" >&5 ++echo $ECHO_N "checking for gm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_gm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_gm_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_gm_h" >&6; } ++ ++fi ++if test $ac_cv_header_gm_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_gm_gm_init ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_gm_libdir" != ""; then ++ # libdir was specified - search only there ++ btl_gm_LDFLAGS="$btl_gm_LDFLAGS -L$ompi_check_gm_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_gm_libdir" ++ { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5 ++echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; } ++if test "${ac_cv_lib_gm_gm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lgm $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char gm_init (); ++int ++main () ++{ ++return gm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_gm_gm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_gm_gm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; } ++if test $ac_cv_lib_gm_gm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS" ++ btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS" ++ unset ac_cv_lib_gm_gm_init ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_gm_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5 ++echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; } ++if test "${ac_cv_lib_gm_gm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lgm $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char gm_init (); ++int ++main () ++{ ++return gm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_gm_gm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_gm_gm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; } ++if test $ac_cv_lib_gm_gm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS" ++ btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS" ++ unset ac_cv_lib_gm_gm_init ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_gm_LDFLAGS="$btl_gm_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5 ++echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; } ++if test "${ac_cv_lib_gm_gm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lgm $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char gm_init (); ++int ++main () ++{ ++return gm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_gm_gm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_gm_gm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; } ++if test $ac_cv_lib_gm_gm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS" ++ btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS" ++ unset ac_cv_lib_gm_gm_init ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_gm_LDFLAGS="$btl_gm_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5 ++echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; } ++if test "${ac_cv_lib_gm_gm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lgm $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char gm_init (); ++int ++main () ++{ ++return gm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_gm_gm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_gm_gm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; } ++if test $ac_cv_lib_gm_gm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS" ++ btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS" ++ unset ac_cv_lib_gm_gm_init ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ btl_gm_LIBS="-lgm " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_gm_gm_init ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_gm_libdir" != ""; then ++ # libdir was specified - search only there ++ btl_gm_LDFLAGS="$btl_gm_LDFLAGS -L$ompi_check_gm_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_gm_libdir" ++ { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5 ++echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; } ++if test "${ac_cv_lib_gm_gm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lgm $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char gm_init (); ++int ++main () ++{ ++return gm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_gm_gm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_gm_gm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; } ++if test $ac_cv_lib_gm_gm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS" ++ btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS" ++ unset ac_cv_lib_gm_gm_init ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_gm_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5 ++echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; } ++if test "${ac_cv_lib_gm_gm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lgm $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char gm_init (); ++int ++main () ++{ ++return gm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_gm_gm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_gm_gm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; } ++if test $ac_cv_lib_gm_gm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS" ++ btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS" ++ unset ac_cv_lib_gm_gm_init ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_gm_LDFLAGS="$btl_gm_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5 ++echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; } ++if test "${ac_cv_lib_gm_gm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lgm $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char gm_init (); ++int ++main () ++{ ++return gm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_gm_gm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_gm_gm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; } ++if test $ac_cv_lib_gm_gm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS" ++ btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS" ++ unset ac_cv_lib_gm_gm_init ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_gm_LDFLAGS="$btl_gm_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5 ++echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; } ++if test "${ac_cv_lib_gm_gm_init+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lgm $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char gm_init (); ++int ++main () ++{ ++return gm_init (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_gm_gm_init=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_gm_gm_init=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5 ++echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; } ++if test $ac_cv_lib_gm_gm_init = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS" ++ btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS" ++ unset ac_cv_lib_gm_gm_init ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ btl_gm_LIBS="-lgm " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ ompi_check_gm_happy="yes" ++else ++ btl_gm_CPPFLAGS="$ompi_check_package_btl_gm_orig_CPPFLAGS" ++ btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS" ++ btl_gm_LIBS="$ompi_check_package_btl_gm_orig_LIBS" ++ ompi_check_gm_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_btl_gm_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS" ++ LIBS="$ompi_check_package_btl_gm_save_LIBS" ++ ++else ++ ompi_check_gm_happy="no" ++fi ++ ++ ++ if test "$ompi_check_gm_happy" = "yes"; then ++ ++ u_OMPI_CHECK_GM_CONFIG_SAVE_CPPFLAGS="$CPPFLAGS" ++ u_OMPI_CHECK_GM_CONFIG_SAVE_LDFLAGS="$LDFLAGS" ++ u_OMPI_CHECK_GM_CONFIG_SAVE_LIBS="$LIBS" ++ ++ CPPFLAGS="$CPPFLAGS $btl_gm_CPPFLAGS" ++ LDFLAGS="$LDFLAGS $btl_gm_LDFLAGS" ++ LIBS="$LIBS $btl_gm_LIBS" ++ ++ # ++ # See if we have GM_API_VERSION. If we do, use it. If not, find the ++ # highest one available. It seems that GM_API_VERSION was introduced ++ # somewhere after 1.3 but before 1.6. :-\ ++ # ++ { echo "$as_me:$LINENO: checking for GM_API_VERSION" >&5 ++echo $ECHO_N "checking for GM_API_VERSION... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++int foo = GM_API_VERSION; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ have_gm_api_ver_msg=yes gm_api_ver=GM_API_VERSION ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ have_gm_api_ver_msg=no gm_api_ver="" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ { echo "$as_me:$LINENO: result: $have_gm_api_ver_msg" >&5 ++echo "${ECHO_T}$have_gm_api_ver_msg" >&6; } ++ if test "$gm_api_ver" = ""; then ++ found=0 ++ for val in 5 4 3; do ++ if test "$found" = "0"; then ++ var="GM_API_VERSION_1_$val" ++ { echo "$as_me:$LINENO: checking for $var" >&5 ++echo $ECHO_N "checking for $var... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++int foo = $var; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ msg=yes found=1 gm_api_ver=$var ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ msg=no found=0 gm_api_ver="" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ { echo "$as_me:$LINENO: result: $msg" >&5 ++echo "${ECHO_T}$msg" >&6; } ++ fi ++ done ++ fi ++ if test "$gm_api_ver" = ""; then ++ { echo "$as_me:$LINENO: WARNING: *** Could not find a supported GM_API_VERSION" >&5 ++echo "$as_me: WARNING: *** Could not find a supported GM_API_VERSION" >&2;} ++ { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 ++echo "$as_me: error: *** Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_MCA_BTL_GM_API_VERSION $gm_api_ver ++_ACEOF ++ ++ unset gm_api_ver have_gm_api_ver_msg found val msg ++ ++ # ++ # Do we have gm_put()? ++ # gm_put() was introduced in gm 2.0, and is exactly identical to gm ++ # 1.6's gm_directed_send_with_callback(). The name was simply changed ++ # for consistency/symmtery with gm_get(). ++ # ++ { echo "$as_me:$LINENO: checking for gm_put()" >&5 ++echo $ECHO_N "checking for gm_put()... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++gm_put(0, 0, 0, 0, 0, 0, 0, 0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ HAVE_RDMA_PUT=1 MSG=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ HAVE_RDMA_PUT=0 MSG="no, use gm_directed_send_with_callback()" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_MCA_BTL_GM_HAVE_RDMA_PUT $HAVE_RDMA_PUT ++_ACEOF ++ ++ { echo "$as_me:$LINENO: result: $MSG" >&5 ++echo "${ECHO_T}$MSG" >&6; } ++ ++ # ++ # Do we have gm_get()? ++ # gm_get() was introduced in gm 2.0. ++ # ++ { echo "$as_me:$LINENO: checking for gm_get()" >&5 ++echo $ECHO_N "checking for gm_get()... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++gm_get(0, 0, 0, 0, 0, 0, 0, 0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ HAVE_RDMA_GET=1 MSG=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ HAVE_RDMA_GET=0 MSG=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_MCA_BTL_GM_HAVE_RDMA_GET $HAVE_RDMA_GET ++_ACEOF ++ ++ { echo "$as_me:$LINENO: result: $MSG" >&5 ++echo "${ECHO_T}$MSG" >&6; } ++ ++ # Now test to see if the targetted GM is a broken one broken gm builds ++ { echo "$as_me:$LINENO: checking for broken GM 2.x RDMA gets build" >&5 ++echo $ECHO_N "checking for broken GM 2.x RDMA gets build... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ #include ++ ++int ++main () ++{ ++ ++ #if GM_API_VERSION_2_0 && \ ++ ((GM_API_VERSION_2_1_0 && GM_API_VERSION < 0x20102) || \ ++ GM_API_VERSION < 0x2000c) ++ #error GM build is broken ++ #endif ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ mca_gm_broken=0 gm_build_broken=no ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ mca_gm_broken=1 gm_build_broken=yes ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ { echo "$as_me:$LINENO: result: $gm_build_broken " >&5 ++echo "${ECHO_T}$gm_build_broken " >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_MCA_BTL_GM_GET_BROKEN $mca_gm_broken ++_ACEOF ++ ++ unset gm_build_broken mca_gm_broken ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_MCA_BTL_GM_SUPPORT_REGISTERING 1 ++_ACEOF ++ ++ ++ CPPFLAGS="$u_OMPI_CHECK_GM_CONFIG_SAVE_CPPFLAGS" ++ LDFLAGS="$u_OMPI_CHECK_GM_CONFIG_SAVE_LDFLAGS" ++ LIBS="$u_OMPI_CHECK_GM_CONFIG_SAVE_LIBS" ++ ++ btl_gm_happy="yes" ++else ++ if test ! -z "$with_gm" -a "$with_gm" != "no"; then ++ { { echo "$as_me:$LINENO: error: GM support requested but not found. Aborting" >&5 ++echo "$as_me: error: GM support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ btl_gm_happy="no" ++fi ++ ++ ++ ++ if test "$btl_gm_happy" = "yes"; then ++ btl_gm_WRAPPER_EXTRA_LDFLAGS="$btl_gm_LDFLAGS" ++ btl_gm_WRAPPER_EXTRA_LIBS="$btl_gm_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # substitute in the things needed to build gm ++ ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=gm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_btl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_btl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component btl:gm can compile" >&5 ++echo $ECHO_N "checking if MCA component btl:gm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_btl" = "gm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"gm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"gm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "gm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"gm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"gm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components gm" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_btl_gm_DSO=1 ++else ++ BUILD_btl_gm_DSO=0 ++fi ++ ++ if test "$BUILD_btl_gm_DSO" = "1"; then ++ OMPI_BUILD_btl_gm_DSO_TRUE= ++ OMPI_BUILD_btl_gm_DSO_FALSE='#' ++else ++ OMPI_BUILD_btl_gm_DSO_TRUE='#' ++ OMPI_BUILD_btl_gm_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component btl:mx (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=mx ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=btl ++ component=mx ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-mx was given. ++if test "${with_mx+set}" = set; then ++ withval=$with_mx; ++fi ++ ++ ++# Check whether --with-mx-libdir was given. ++if test "${with_mx_libdir+set}" = set; then ++ withval=$with_mx_libdir; ++fi ++ ++ ++ ompi_check_mx_btl_mx_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_mx_btl_mx_save_LDFLAGS="$LDFLAGS" ++ ompi_check_mx_btl_mx_save_LIBS="$LIBS" ++ ++ if test "$with_mx" != "no"; then ++ if test ! -z "$with_mx" -a "$with_mx" != "yes"; then ++ ompi_check_mx_dir="$with_mx" ++fi ++ ++ if test ! -z "$with_mx_libdir" -a "$with_mx_libdir" != "yes"; then ++ ompi_check_mx_libdir="$with_mx_libdir" ++fi ++ ++ ++ ++ ompi_check_package_btl_mx_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_btl_mx_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_btl_mx_save_LIBS="$LIBS" ++ ++ ompi_check_package_btl_mx_orig_CPPFLAGS="$btl_mx_CPPFLAGS" ++ ompi_check_package_btl_mx_orig_LDFLAGS="$btl_mx_LDFLAGS" ++ ompi_check_package_btl_mx_orig_LIBS="$btl_mx_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_myriexpress_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_mx_dir" = "/usr" -o "$ompi_check_mx_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for myriexpress.h" >&5 ++echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5 ++echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking myriexpress.h usability" >&5 ++echo $ECHO_N "checking myriexpress.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking myriexpress.h presence" >&5 ++echo $ECHO_N "checking myriexpress.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: myriexpress.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: myriexpress.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: myriexpress.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: myriexpress.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for myriexpress.h" >&5 ++echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_myriexpress_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5 ++echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; } ++ ++fi ++if test $ac_cv_header_myriexpress_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_myriexpress_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_mx_dir" != ""; then ++ btl_mx_CPPFLAGS="$btl_mx_CPPFLAGS -I$ompi_check_mx_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_mx_dir/include" ++fi ++ ++ if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for myriexpress.h" >&5 ++echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5 ++echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking myriexpress.h usability" >&5 ++echo $ECHO_N "checking myriexpress.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking myriexpress.h presence" >&5 ++echo $ECHO_N "checking myriexpress.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: myriexpress.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: myriexpress.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: myriexpress.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: myriexpress.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for myriexpress.h" >&5 ++echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_myriexpress_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5 ++echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; } ++ ++fi ++if test $ac_cv_header_myriexpress_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_myriexpress_mx_finalize ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_mx_libdir" != ""; then ++ # libdir was specified - search only there ++ btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_mx_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_mx_libdir" ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS" ++ btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_mx_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS" ++ btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS" ++ btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS" ++ btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ btl_mx_LIBS="-lmyriexpress " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_myriexpress_mx_finalize ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_mx_libdir" != ""; then ++ # libdir was specified - search only there ++ btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_mx_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_mx_libdir" ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS" ++ btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_mx_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS" ++ btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS" ++ btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS" ++ btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ btl_mx_LIBS="-lmyriexpress " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ ompi_check_mx_happy="yes" ++else ++ btl_mx_CPPFLAGS="$ompi_check_package_btl_mx_orig_CPPFLAGS" ++ btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS" ++ btl_mx_LIBS="$ompi_check_package_btl_mx_orig_LIBS" ++ ompi_check_mx_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_btl_mx_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS" ++ LIBS="$ompi_check_package_btl_mx_save_LIBS" ++ ++else ++ ompi_check_mx_happy="no" ++fi ++ ++ ++ CPPFLAGS="$CPPFLAGS $btl_mx_CPPFLAGS" ++ LDFLAGS="$LDFLAGS $btl_mx_LDFLAGS" ++ LIBS="$LIBS $btl_mx_LIBS" ++ ++ # need at least version 1.0 ++ if test "ompi_check_mx_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for MX version 1.0 or later" >&5 ++echo $ECHO_N "checking for MX version 1.0 or later... $ECHO_C" >&6; } ++if test "${ompi_cv_mx_version_ok+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++ ++int ++main () ++{ ++ ++#if MX_API < 0x300 ++#error "Version less than 0x300" ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ompi_cv_mx_version_ok="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_mx_version_ok="no" ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_mx_version_ok" >&5 ++echo "${ECHO_T}$ompi_cv_mx_version_ok" >&6; } ++fi ++ ++ if test "$ompi_cv_mx_version_ok" = "no"; then ++ ompi_check_mx_happy="no" ++fi ++ ++ ++ if test "$ompi_check_mx_happy" = "yes"; then ++ ++for ac_header in mx_extensions.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++ ++for ac_func in mx_forget mx_register_unexp_handler ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ ++ { echo "$as_me:$LINENO: checking for mx_open_board" >&5 ++echo $ECHO_N "checking for mx_open_board... $ECHO_C" >&6; } ++if test "${ompi_cv_func_mx_open_board+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++ ++int ++main () ++{ ++ ++mx_open_board(0, NULL); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_mx_open_board="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_mx_open_board="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_mx_open_board" >&5 ++echo "${ECHO_T}$ompi_cv_func_mx_open_board" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for mx__get_mapper_state" >&5 ++echo $ECHO_N "checking for mx__get_mapper_state... $ECHO_C" >&6; } ++if test "${ompi_cv_func_mx__get_mapper_state+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++ ++int ++main () ++{ ++ ++mx__get_mapper_state(NULL, NULL); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_mx__get_mapper_state="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_mx__get_mapper_state="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_mx__get_mapper_state" >&5 ++echo "${ECHO_T}$ompi_cv_func_mx__get_mapper_state" >&6; } ++ ++ if test "$ompi_cv_func_mx_open_board" = "yes" -a "$ompi_cv_func_mx__get_mapper_state" = "yes"; then ++ mx_provide_mapper_state=1 ++ ++else ++ mx_provide_mapper_state=0 ++ ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MX_HAVE_MAPPER_STATE $mx_provide_mapper_state ++_ACEOF ++ ++ ++else ++ { echo "$as_me:$LINENO: WARNING: The MX support for Open MPI will be compiled without the ++MX extensions, which may result in lower performance. Please upgrade ++to at least MX 1.2.0 to enable the MX extensions." >&5 ++echo "$as_me: WARNING: The MX support for Open MPI will be compiled without the ++MX extensions, which may result in lower performance. Please upgrade ++to at least MX 1.2.0 to enable the MX extensions." >&2;} ++fi ++ ++done ++ ++fi ++ ++ ++ CPPFLAGS="$ompi_check_mx_btl_mx_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_mx_btl_mx_save_LDFLAGS" ++ LIBS="$ompi_check_mx_btl_mx_save_LIBS" ++ ++ if test "$ompi_check_mx_happy" = "yes" -a "$enable_progress_threads" = "yes"; then ++ { echo "$as_me:$LINENO: WARNING: MX driver does not currently support progress threads. Disabling BTL." >&5 ++echo "$as_me: WARNING: MX driver does not currently support progress threads. Disabling BTL." >&2;} ++ ompi_check_mx_happy="no" ++fi ++ ++ ++ if test "$ompi_check_mx_happy" = "yes"; then ++ btl_mx_happy="yes" ++else ++ if test ! -z "$with_mx" -a "$with_mx" != "no"; then ++ { { echo "$as_me:$LINENO: error: MX support requested but not found. Aborting" >&5 ++echo "$as_me: error: MX support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ btl_mx_happy="no" ++fi ++ ++ ++ ++ if test "$btl_mx_happy" = "yes"; then ++ btl_mx_WRAPPER_EXTRA_LDFLAGS="$btl_mx_LDFLAGS" ++ btl_mx_WRAPPER_EXTRA_LIBS="$btl_mx_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # substitute in the things needed to build mx ++ ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=mx ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_btl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_btl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component btl:mx can compile" >&5 ++echo $ECHO_N "checking if MCA component btl:mx can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_btl" = "mx" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"mx\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "mx" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"mx\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components mx" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_btl_mx_DSO=1 ++else ++ BUILD_btl_mx_DSO=0 ++fi ++ ++ if test "$BUILD_btl_mx_DSO" = "1"; then ++ OMPI_BUILD_btl_mx_DSO_TRUE= ++ OMPI_BUILD_btl_mx_DSO_FALSE='#' ++else ++ OMPI_BUILD_btl_mx_DSO_TRUE='#' ++ OMPI_BUILD_btl_mx_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component btl:ofud (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=ofud ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=btl ++ component=ofud ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in btl_ofud_msg; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"btl_ofud_msg\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ # ++ # Openfabrics support ++ # ++ ++# Check whether --with-openib was given. ++if test "${with_openib+set}" = set; then ++ withval=$with_openib; ++fi ++ ++ ++# Check whether --with-openib-libdir was given. ++if test "${with_openib_libdir+set}" = set; then ++ withval=$with_openib_libdir; ++fi ++ ++ ++ # ++ # ConnectX XRC support ++ # ++ # Check whether --enable-openib-connectx-xrc was given. ++if test "${enable_openib_connectx_xrc+set}" = set; then ++ enableval=$enable_openib_connectx_xrc; enable_connectx_xrc="$enableval" ++else ++ enable_connectx_xrc="yes" ++fi ++ ++ # ++ # Openfabrics IBCM ++ # ++ # Check whether --enable-openib-ibcm was given. ++if test "${enable_openib_ibcm+set}" = set; then ++ enableval=$enable_openib_ibcm; enable_openib_ibcm="$enableval" ++else ++ enable_openib_ibcm="no" ++fi ++ ++ # ++ # Openfabrics RDMACM ++ # ++ # Check whether --enable-openib-rdmacm was given. ++if test "${enable_openib_rdmacm+set}" = set; then ++ enableval=$enable_openib_rdmacm; enable_openib_rdmacm="$enableval" ++else ++ enable_openib_rdmacm="yes" ++fi ++ ++ ++ if test ! -z "$with_openib" -a "$with_openib" != "yes"; then ++ ompi_check_openib_dir="$with_openib" ++fi ++ ++ if test ! -z "$with_openib_libdir" -a "$with_openib_libdir" != "yes"; then ++ ompi_check_openib_libdir="$with_openib_libdir" ++fi ++ ++ if test "$with_openib" = "no"; then ++ ompi_check_openib_happy="no" ++else ++ ompi_check_openib_happy="yes" ++fi ++ ++ ++ ompi_check_openib_btl_ofud_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_openib_btl_ofud_save_LDFLAGS="$LDFLAGS" ++ ompi_check_openib_btl_ofud_save_LIBS="$LIBS" ++ ++ if test "$ompi_check_openib_happy" = "yes"; then ++ if test "$THREAD_TYPE" != "posix" -a "$memory_ptmalloc2_happy" = "yes"; then ++ if test "$enable_ptmalloc2_internal" = "yes"; then ++ { echo "$as_me:$LINENO: WARNING: POSIX threads are disabled, but" >&5 ++echo "$as_me: WARNING: POSIX threads are disabled, but" >&2;} ++ { echo "$as_me:$LINENO: WARNING: --enable-ptmalloc2-internal was specified. This will" >&5 ++echo "$as_me: WARNING: --enable-ptmalloc2-internal was specified. This will" >&2;} ++ { echo "$as_me:$LINENO: WARNING: cause memory corruption with OpenFabrics." >&5 ++echo "$as_me: WARNING: cause memory corruption with OpenFabrics." >&2;} ++ { echo "$as_me:$LINENO: WARNING: Not building component." >&5 ++echo "$as_me: WARNING: Not building component." >&2;} ++ ompi_check_openib_happy="no" ++else ++ { echo "$as_me:$LINENO: WARNING: POSIX threads are disabled, but the ptmalloc2 memory" >&5 ++echo "$as_me: WARNING: POSIX threads are disabled, but the ptmalloc2 memory" >&2;} ++ { echo "$as_me:$LINENO: WARNING: manager is being built. Compiling MPI applications with" >&5 ++echo "$as_me: WARNING: manager is being built. Compiling MPI applications with" >&2;} ++ { echo "$as_me:$LINENO: WARNING: -lopenmpi-malloc will result in memory corruption; Open" >&5 ++echo "$as_me: WARNING: -lopenmpi-malloc will result in memory corruption; Open" >&2;} ++ { echo "$as_me:$LINENO: WARNING: MPI will disable the openib BTL at run-time if such a" >&5 ++echo "$as_me: WARNING: MPI will disable the openib BTL at run-time if such a" >&2;} ++ { echo "$as_me:$LINENO: WARNING: combination is detected." >&5 ++echo "$as_me: WARNING: combination is detected." >&2;} ++ { echo "$as_me:$LINENO: WARNING: You have been warned." >&5 ++echo "$as_me: WARNING: You have been warned." >&2;} ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_openib_happy" = "yes"; then ++ ++ ++for ac_header in fcntl.h sys/poll.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++else ++ { echo "$as_me:$LINENO: WARNING: fcntl.h sys/poll.h not found. Can not build component." >&5 ++echo "$as_me: WARNING: fcntl.h sys/poll.h not found. Can not build component." >&2;} ++ ompi_check_openib_happy="no" ++fi ++ ++done ++ ++fi ++ ++ ++ if test "$ompi_check_openib_happy" = "yes"; then ++ ++ ompi_check_package_btl_ofud_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_btl_ofud_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_btl_ofud_save_LIBS="$LIBS" ++ ++ ompi_check_package_btl_ofud_orig_CPPFLAGS="$btl_ofud_CPPFLAGS" ++ ompi_check_package_btl_ofud_orig_LDFLAGS="$btl_ofud_LDFLAGS" ++ ompi_check_package_btl_ofud_orig_LIBS="$btl_ofud_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_infiniband_verbs_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_openib_dir" = "/usr" -o "$ompi_check_openib_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5 ++echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5 ++echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking infiniband/verbs.h usability" >&5 ++echo $ECHO_N "checking infiniband/verbs.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking infiniband/verbs.h presence" >&5 ++echo $ECHO_N "checking infiniband/verbs.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5 ++echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_infiniband_verbs_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5 ++echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6; } ++ ++fi ++if test $ac_cv_header_infiniband_verbs_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_infiniband_verbs_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_openib_dir" != ""; then ++ btl_ofud_CPPFLAGS="$btl_ofud_CPPFLAGS -I$ompi_check_openib_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_openib_dir/include" ++fi ++ ++ if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5 ++echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5 ++echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking infiniband/verbs.h usability" >&5 ++echo $ECHO_N "checking infiniband/verbs.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking infiniband/verbs.h presence" >&5 ++echo $ECHO_N "checking infiniband/verbs.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5 ++echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_infiniband_verbs_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5 ++echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6; } ++ ++fi ++if test $ac_cv_header_infiniband_verbs_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_ibverbs_ibv_open_device ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_openib_libdir" != ""; then ++ # libdir was specified - search only there ++ btl_ofud_LDFLAGS="$btl_ofud_LDFLAGS -L$ompi_check_openib_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_openib_libdir" ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS" ++ btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_openib_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS" ++ btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_ofud_LDFLAGS="$btl_ofud_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS" ++ btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_ofud_LDFLAGS="$btl_ofud_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS" ++ btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ btl_ofud_LIBS="-libverbs " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_ibverbs_ibv_open_device ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_openib_libdir" != ""; then ++ # libdir was specified - search only there ++ btl_ofud_LDFLAGS="$btl_ofud_LDFLAGS -L$ompi_check_openib_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_openib_libdir" ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS" ++ btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_openib_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS" ++ btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_ofud_LDFLAGS="$btl_ofud_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS" ++ btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_ofud_LDFLAGS="$btl_ofud_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS" ++ btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ btl_ofud_LIBS="-libverbs " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ ompi_check_openib_happy="yes" ++else ++ btl_ofud_CPPFLAGS="$ompi_check_package_btl_ofud_orig_CPPFLAGS" ++ btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS" ++ btl_ofud_LIBS="$ompi_check_package_btl_ofud_orig_LIBS" ++ ompi_check_openib_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_btl_ofud_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS" ++ LIBS="$ompi_check_package_btl_ofud_save_LIBS" ++ ++fi ++ ++ ++ CPPFLAGS="$CPPFLAGS $btl_ofud_CPPFLAGS" ++ LDFLAGS="$LDFLAGS $btl_ofud_LDFLAGS" ++ LIBS="$LIBS $btl_ofud_LIBS" ++ ++ if test "$ompi_check_openib_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking number of arguments to ibv_create_cq" >&5 ++echo $ECHO_N "checking number of arguments to ibv_create_cq... $ECHO_C" >&6; } ++if test "${ompi_cv_func_ibv_create_cq_args+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ibv_create_cq(NULL, 0, NULL, NULL, 0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_ibv_create_cq_args=5 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ibv_create_cq(NULL, 0, NULL); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_ibv_create_cq_args=3 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_ibv_create_cq_args="unknown" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_ibv_create_cq_args" >&5 ++echo "${ECHO_T}$ompi_cv_func_ibv_create_cq_args" >&6; } ++ if test "$ompi_cv_func_ibv_create_cq_args" = "unknown"; then ++ { echo "$as_me:$LINENO: WARNING: Can not determine number of args to ibv_create_cq." >&5 ++echo "$as_me: WARNING: Can not determine number of args to ibv_create_cq." >&2;} ++ { echo "$as_me:$LINENO: WARNING: Not building component." >&5 ++echo "$as_me: WARNING: Not building component." >&2;} ++ ompi_check_openib_happy="no" ++else ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_IBV_CREATE_CQ_ARGS $ompi_cv_func_ibv_create_cq_args ++_ACEOF ++ ++fi ++ ++fi ++ ++ ++ # Set these up so that we can do an AC_DEFINE below ++ # (unconditionally) ++ btl_ofud_have_xrc=0 ++ btl_ofud_have_rdmacm=0 ++ btl_ofud_have_ibcm=0 ++ ++ # If we have the openib stuff available, find out what we've got ++ if test "$ompi_check_openib_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking whether IBV_EVENT_CLIENT_REREGISTER is declared" >&5 ++echo $ECHO_N "checking whether IBV_EVENT_CLIENT_REREGISTER is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++#ifndef IBV_EVENT_CLIENT_REREGISTER ++ (void) IBV_EVENT_CLIENT_REREGISTER; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER" >&5 ++echo "${ECHO_T}$ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER" >&6; } ++if test $ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER 1 ++_ACEOF ++ ++ ++else ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER 0 ++_ACEOF ++ ++ ++fi ++ ++ ++ ++ ++for ac_func in ibv_get_device_list ibv_resize_cq ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ ++ # struct ibv_device.transport_type was added in OFED v1.2 ++ { echo "$as_me:$LINENO: checking for struct ibv_device.transport_type" >&5 ++echo $ECHO_N "checking for struct ibv_device.transport_type... $ECHO_C" >&6; } ++if test "${ac_cv_member_struct_ibv_device_transport_type+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++static struct ibv_device ac_aggr; ++if (ac_aggr.transport_type) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_struct_ibv_device_transport_type=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++static struct ibv_device ac_aggr; ++if (sizeof ac_aggr.transport_type) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_struct_ibv_device_transport_type=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_member_struct_ibv_device_transport_type=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_ibv_device_transport_type" >&5 ++echo "${ECHO_T}$ac_cv_member_struct_ibv_device_transport_type" >&6; } ++if test $ac_cv_member_struct_ibv_device_transport_type = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_STRUCT_IBV_DEVICE_TRANSPORT_TYPE 1 ++_ACEOF ++ ++ ++fi ++ ++ ++ # ibv_create_xrc_rcv_qp was added in OFED 1.3 ++ if test "$enable_connectx_xrc" = "yes"; then ++ ++for ac_func in ibv_create_xrc_rcv_qp ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ btl_ofud_have_xrc=1 ++fi ++done ++ ++ fi ++ ++ # Do we have a recent enough RDMA CM? Need to have the ++ # rdma_get_peer_addr (inline) function (originally appeared ++ # in OFED v1.3). ++ if test "$enable_openib_rdmacm" = "yes"; then ++ ++for ac_header in rdma/rdma_cma.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ { echo "$as_me:$LINENO: checking for rdma_create_id in -lrdmacm" >&5 ++echo $ECHO_N "checking for rdma_create_id in -lrdmacm... $ECHO_C" >&6; } ++if test "${ac_cv_lib_rdmacm_rdma_create_id+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lrdmacm $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char rdma_create_id (); ++int ++main () ++{ ++return rdma_create_id (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_rdmacm_rdma_create_id=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_rdmacm_rdma_create_id=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_rdmacm_rdma_create_id" >&5 ++echo "${ECHO_T}$ac_cv_lib_rdmacm_rdma_create_id" >&6; } ++if test $ac_cv_lib_rdmacm_rdma_create_id = yes; then ++ { echo "$as_me:$LINENO: checking for rdma_get_peer_addr" >&5 ++echo $ECHO_N "checking for rdma_get_peer_addr... $ECHO_C" >&6; } ++ btl_ofud_msg=no ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include "rdma/rdma_cma.h" ++ ++int ++main () ++{ ++void *ret = (void*) rdma_get_peer_addr((struct rdma_cm_id*)0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ btl_ofud_have_rdmacm=1 ++ btl_ofud_msg=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ { echo "$as_me:$LINENO: result: $btl_ofud_msg" >&5 ++echo "${ECHO_T}$btl_ofud_msg" >&6; } ++fi ++ ++fi ++ ++done ++ ++ ++ if test "1" = "$btl_ofud_have_rdmacm"; then ++ btl_ofud_LIBS="-lrdmacm $btl_ofud_LIBS" ++ fi ++ fi ++ ++ # Do we have IB CM? (note that OFED IB CM depends on RDMA ++ # CM, so no need to add it into the other-libraries ++ # argument to AC_CHECK_ LIB). Note that we only want IBCM ++ # starting with OFED 1.2 or so, so check for ++ # ib_cm_open_device (introduced in libibcm 1.0/OFED 1.2). ++ if test "$enable_openib_ibcm" = "yes"; then ++ ++for ac_header in infiniband/cm.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ { echo "$as_me:$LINENO: checking for ib_cm_open_device in -libcm" >&5 ++echo $ECHO_N "checking for ib_cm_open_device in -libcm... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibcm_ib_cm_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libcm $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ib_cm_open_device (); ++int ++main () ++{ ++return ib_cm_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibcm_ib_cm_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibcm_ib_cm_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibcm_ib_cm_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibcm_ib_cm_open_device" >&6; } ++if test $ac_cv_lib_ibcm_ib_cm_open_device = yes; then ++ btl_ofud_have_ibcm=1 ++ btl_ofud_LIBS="-libcm $btl_ofud_LIBS" ++fi ++ ++fi ++ ++done ++ ++ fi ++ ++fi ++ ++ ++ # Check to see if works. It is known to ++ # create problems on some platforms with some compilers (e.g., ++ # RHEL4U3 with the PGI 32 bit compiler). Use undocumented (in AC ++ # 2.63) feature of AC_CHECK_HEADERS: if you explicitly pass in ++ # AC_INCLUDES_DEFAULT as the 4th arg to AC_CHECK_HEADERS, the test ++ # will fail if the header is present but not compilable, *but it ++ # will not print the big scary warning*. See ++ # http://lists.gnu.org/archive/html/autoconf/2008-10/msg00143.html. ++ if test "$ompi_check_openib_happy" = "yes"; then ++ ++for ac_header in infiniband/driver.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ eval "$as_ac_Header=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_Header=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++fi ++ ++ ++ { echo "$as_me:$LINENO: checking if ConnectX XRC support is enabled" >&5 ++echo $ECHO_N "checking if ConnectX XRC support is enabled... $ECHO_C" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_CONNECTX_XRC $btl_ofud_have_xrc ++_ACEOF ++ ++ if test "1" = "$btl_ofud_have_xrc"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ { echo "$as_me:$LINENO: checking if OpenFabrics RDMACM support is enabled" >&5 ++echo $ECHO_N "checking if OpenFabrics RDMACM support is enabled... $ECHO_C" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_RDMACM $btl_ofud_have_rdmacm ++_ACEOF ++ ++ if test "1" = "$btl_ofud_have_rdmacm"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ { echo "$as_me:$LINENO: checking if OpenFabrics IBCM support is enabled" >&5 ++echo $ECHO_N "checking if OpenFabrics IBCM support is enabled... $ECHO_C" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_IBCM $btl_ofud_have_ibcm ++_ACEOF ++ ++ if test "1" = "$btl_ofud_have_ibcm"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ CPPFLAGS="$ompi_check_openib_btl_ofud_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_openib_btl_ofud_save_LDFLAGS" ++ LIBS="$ompi_check_openib_btl_ofud_save_LIBS" ++ ++ if test "$ompi_check_openib_happy" = "yes"; then ++ btl_ofud_happy="yes" ++else ++ if test ! -z "$with_openib" -a "$with_openib" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: OpenFabrics support requested (via --with-openib) but not found." >&5 ++echo "$as_me: WARNING: OpenFabrics support requested (via --with-openib) but not found." >&2;} ++ { echo "$as_me:$LINENO: WARNING: If you are using libibverbs v1.0 (i.e., OFED v1.0 or v1.1), you *MUST* have both the libsysfs headers and libraries installed. Later versions of libibverbs do not require libsysfs." >&5 ++echo "$as_me: WARNING: If you are using libibverbs v1.0 (i.e., OFED v1.0 or v1.1), you *MUST* have both the libsysfs headers and libraries installed. Later versions of libibverbs do not require libsysfs." >&2;} ++ { { echo "$as_me:$LINENO: error: Aborting." >&5 ++echo "$as_me: error: Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ btl_ofud_happy="no" ++fi ++ ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ if test "$btl_ofud_happy" = "yes"; then ++ btl_ofud_WRAPPER_EXTRA_LDFLAGS="$btl_ofud_LDFLAGS" ++ btl_ofud_WRAPPER_EXTRA_LIBS="$btl_ofud_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ # substitute in the things needed to build OFUD ++ ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=ofud ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_btl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_btl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component btl:ofud can compile" >&5 ++echo $ECHO_N "checking if MCA component btl:ofud can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_btl" = "ofud" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"ofud\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"ofud\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "ofud" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"ofud\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"ofud\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components ofud" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_btl_ofud_DSO=1 ++else ++ BUILD_btl_ofud_DSO=0 ++fi ++ ++ if test "$BUILD_btl_ofud_DSO" = "1"; then ++ OMPI_BUILD_btl_ofud_DSO_TRUE= ++ OMPI_BUILD_btl_ofud_DSO_FALSE='#' ++else ++ OMPI_BUILD_btl_ofud_DSO_TRUE='#' ++ OMPI_BUILD_btl_ofud_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component btl:openib (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=openib ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=btl ++ component=openib ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in cpcs have_threads; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"cpcs have_threads\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ cpcs="oob" ++ ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in btl_openib_msg; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"btl_openib_msg\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ ++ # ++ # Openfabrics support ++ # ++ ++# Check whether --with-openib was given. ++if test "${with_openib+set}" = set; then ++ withval=$with_openib; ++fi ++ ++ ++# Check whether --with-openib-libdir was given. ++if test "${with_openib_libdir+set}" = set; then ++ withval=$with_openib_libdir; ++fi ++ ++ ++ # ++ # ConnectX XRC support ++ # ++ # Check whether --enable-openib-connectx-xrc was given. ++if test "${enable_openib_connectx_xrc+set}" = set; then ++ enableval=$enable_openib_connectx_xrc; enable_connectx_xrc="$enableval" ++else ++ enable_connectx_xrc="yes" ++fi ++ ++ # ++ # Openfabrics IBCM ++ # ++ # Check whether --enable-openib-ibcm was given. ++if test "${enable_openib_ibcm+set}" = set; then ++ enableval=$enable_openib_ibcm; enable_openib_ibcm="$enableval" ++else ++ enable_openib_ibcm="no" ++fi ++ ++ # ++ # Openfabrics RDMACM ++ # ++ # Check whether --enable-openib-rdmacm was given. ++if test "${enable_openib_rdmacm+set}" = set; then ++ enableval=$enable_openib_rdmacm; enable_openib_rdmacm="$enableval" ++else ++ enable_openib_rdmacm="yes" ++fi ++ ++ ++ if test ! -z "$with_openib" -a "$with_openib" != "yes"; then ++ ompi_check_openib_dir="$with_openib" ++fi ++ ++ if test ! -z "$with_openib_libdir" -a "$with_openib_libdir" != "yes"; then ++ ompi_check_openib_libdir="$with_openib_libdir" ++fi ++ ++ if test "$with_openib" = "no"; then ++ ompi_check_openib_happy="no" ++else ++ ompi_check_openib_happy="yes" ++fi ++ ++ ++ ompi_check_openib_btl_openib_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_openib_btl_openib_save_LDFLAGS="$LDFLAGS" ++ ompi_check_openib_btl_openib_save_LIBS="$LIBS" ++ ++ if test "$ompi_check_openib_happy" = "yes"; then ++ if test "$THREAD_TYPE" != "posix" -a "$memory_ptmalloc2_happy" = "yes"; then ++ if test "$enable_ptmalloc2_internal" = "yes"; then ++ { echo "$as_me:$LINENO: WARNING: POSIX threads are disabled, but" >&5 ++echo "$as_me: WARNING: POSIX threads are disabled, but" >&2;} ++ { echo "$as_me:$LINENO: WARNING: --enable-ptmalloc2-internal was specified. This will" >&5 ++echo "$as_me: WARNING: --enable-ptmalloc2-internal was specified. This will" >&2;} ++ { echo "$as_me:$LINENO: WARNING: cause memory corruption with OpenFabrics." >&5 ++echo "$as_me: WARNING: cause memory corruption with OpenFabrics." >&2;} ++ { echo "$as_me:$LINENO: WARNING: Not building component." >&5 ++echo "$as_me: WARNING: Not building component." >&2;} ++ ompi_check_openib_happy="no" ++else ++ { echo "$as_me:$LINENO: WARNING: POSIX threads are disabled, but the ptmalloc2 memory" >&5 ++echo "$as_me: WARNING: POSIX threads are disabled, but the ptmalloc2 memory" >&2;} ++ { echo "$as_me:$LINENO: WARNING: manager is being built. Compiling MPI applications with" >&5 ++echo "$as_me: WARNING: manager is being built. Compiling MPI applications with" >&2;} ++ { echo "$as_me:$LINENO: WARNING: -lopenmpi-malloc will result in memory corruption; Open" >&5 ++echo "$as_me: WARNING: -lopenmpi-malloc will result in memory corruption; Open" >&2;} ++ { echo "$as_me:$LINENO: WARNING: MPI will disable the openib BTL at run-time if such a" >&5 ++echo "$as_me: WARNING: MPI will disable the openib BTL at run-time if such a" >&2;} ++ { echo "$as_me:$LINENO: WARNING: combination is detected." >&5 ++echo "$as_me: WARNING: combination is detected." >&2;} ++ { echo "$as_me:$LINENO: WARNING: You have been warned." >&5 ++echo "$as_me: WARNING: You have been warned." >&2;} ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_openib_happy" = "yes"; then ++ ++ ++for ac_header in fcntl.h sys/poll.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++else ++ { echo "$as_me:$LINENO: WARNING: fcntl.h sys/poll.h not found. Can not build component." >&5 ++echo "$as_me: WARNING: fcntl.h sys/poll.h not found. Can not build component." >&2;} ++ ompi_check_openib_happy="no" ++fi ++ ++done ++ ++fi ++ ++ ++ if test "$ompi_check_openib_happy" = "yes"; then ++ ++ ompi_check_package_btl_openib_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_btl_openib_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_btl_openib_save_LIBS="$LIBS" ++ ++ ompi_check_package_btl_openib_orig_CPPFLAGS="$btl_openib_CPPFLAGS" ++ ompi_check_package_btl_openib_orig_LDFLAGS="$btl_openib_LDFLAGS" ++ ompi_check_package_btl_openib_orig_LIBS="$btl_openib_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_infiniband_verbs_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_openib_dir" = "/usr" -o "$ompi_check_openib_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5 ++echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5 ++echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking infiniband/verbs.h usability" >&5 ++echo $ECHO_N "checking infiniband/verbs.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking infiniband/verbs.h presence" >&5 ++echo $ECHO_N "checking infiniband/verbs.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5 ++echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_infiniband_verbs_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5 ++echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6; } ++ ++fi ++if test $ac_cv_header_infiniband_verbs_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_infiniband_verbs_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_openib_dir" != ""; then ++ btl_openib_CPPFLAGS="$btl_openib_CPPFLAGS -I$ompi_check_openib_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_openib_dir/include" ++fi ++ ++ if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5 ++echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5 ++echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking infiniband/verbs.h usability" >&5 ++echo $ECHO_N "checking infiniband/verbs.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking infiniband/verbs.h presence" >&5 ++echo $ECHO_N "checking infiniband/verbs.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5 ++echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_infiniband_verbs_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5 ++echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6; } ++ ++fi ++if test $ac_cv_header_infiniband_verbs_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_ibverbs_ibv_open_device ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_openib_libdir" != ""; then ++ # libdir was specified - search only there ++ btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_openib_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_openib_libdir" ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS" ++ btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_openib_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS" ++ btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS" ++ btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS" ++ btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ btl_openib_LIBS="-libverbs " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_ibverbs_ibv_open_device ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_openib_libdir" != ""; then ++ # libdir was specified - search only there ++ btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_openib_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_openib_libdir" ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS" ++ btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_openib_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS" ++ btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS" ++ btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5 ++echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libverbs $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ibv_open_device (); ++int ++main () ++{ ++return ibv_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibverbs_ibv_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibverbs_ibv_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; } ++if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS" ++ btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS" ++ unset ac_cv_lib_ibverbs_ibv_open_device ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ btl_openib_LIBS="-libverbs " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ ompi_check_openib_happy="yes" ++else ++ btl_openib_CPPFLAGS="$ompi_check_package_btl_openib_orig_CPPFLAGS" ++ btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS" ++ btl_openib_LIBS="$ompi_check_package_btl_openib_orig_LIBS" ++ ompi_check_openib_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_btl_openib_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS" ++ LIBS="$ompi_check_package_btl_openib_save_LIBS" ++ ++fi ++ ++ ++ CPPFLAGS="$CPPFLAGS $btl_openib_CPPFLAGS" ++ LDFLAGS="$LDFLAGS $btl_openib_LDFLAGS" ++ LIBS="$LIBS $btl_openib_LIBS" ++ ++ if test "$ompi_check_openib_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking number of arguments to ibv_create_cq" >&5 ++echo $ECHO_N "checking number of arguments to ibv_create_cq... $ECHO_C" >&6; } ++if test "${ompi_cv_func_ibv_create_cq_args+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ibv_create_cq(NULL, 0, NULL, NULL, 0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_ibv_create_cq_args=5 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ibv_create_cq(NULL, 0, NULL); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_ibv_create_cq_args=3 ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_ibv_create_cq_args="unknown" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_ibv_create_cq_args" >&5 ++echo "${ECHO_T}$ompi_cv_func_ibv_create_cq_args" >&6; } ++ if test "$ompi_cv_func_ibv_create_cq_args" = "unknown"; then ++ { echo "$as_me:$LINENO: WARNING: Can not determine number of args to ibv_create_cq." >&5 ++echo "$as_me: WARNING: Can not determine number of args to ibv_create_cq." >&2;} ++ { echo "$as_me:$LINENO: WARNING: Not building component." >&5 ++echo "$as_me: WARNING: Not building component." >&2;} ++ ompi_check_openib_happy="no" ++else ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_IBV_CREATE_CQ_ARGS $ompi_cv_func_ibv_create_cq_args ++_ACEOF ++ ++fi ++ ++fi ++ ++ ++ # Set these up so that we can do an AC_DEFINE below ++ # (unconditionally) ++ btl_openib_have_xrc=0 ++ btl_openib_have_rdmacm=0 ++ btl_openib_have_ibcm=0 ++ ++ # If we have the openib stuff available, find out what we've got ++ if test "$ompi_check_openib_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking whether IBV_EVENT_CLIENT_REREGISTER is declared" >&5 ++echo $ECHO_N "checking whether IBV_EVENT_CLIENT_REREGISTER is declared... $ECHO_C" >&6; } ++if test "${ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++#ifndef IBV_EVENT_CLIENT_REREGISTER ++ (void) IBV_EVENT_CLIENT_REREGISTER; ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER" >&5 ++echo "${ECHO_T}$ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER" >&6; } ++if test $ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER 1 ++_ACEOF ++ ++ ++else ++ cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER 0 ++_ACEOF ++ ++ ++fi ++ ++ ++ ++ ++for ac_func in ibv_get_device_list ibv_resize_cq ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ ++ # struct ibv_device.transport_type was added in OFED v1.2 ++ { echo "$as_me:$LINENO: checking for struct ibv_device.transport_type" >&5 ++echo $ECHO_N "checking for struct ibv_device.transport_type... $ECHO_C" >&6; } ++if test "${ac_cv_member_struct_ibv_device_transport_type+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++static struct ibv_device ac_aggr; ++if (ac_aggr.transport_type) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_struct_ibv_device_transport_type=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++int ++main () ++{ ++static struct ibv_device ac_aggr; ++if (sizeof ac_aggr.transport_type) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_member_struct_ibv_device_transport_type=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_member_struct_ibv_device_transport_type=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_ibv_device_transport_type" >&5 ++echo "${ECHO_T}$ac_cv_member_struct_ibv_device_transport_type" >&6; } ++if test $ac_cv_member_struct_ibv_device_transport_type = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_STRUCT_IBV_DEVICE_TRANSPORT_TYPE 1 ++_ACEOF ++ ++ ++fi ++ ++ ++ # ibv_create_xrc_rcv_qp was added in OFED 1.3 ++ if test "$enable_connectx_xrc" = "yes"; then ++ ++for ac_func in ibv_create_xrc_rcv_qp ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ btl_openib_have_xrc=1 ++fi ++done ++ ++ fi ++ ++ # Do we have a recent enough RDMA CM? Need to have the ++ # rdma_get_peer_addr (inline) function (originally appeared ++ # in OFED v1.3). ++ if test "$enable_openib_rdmacm" = "yes"; then ++ ++for ac_header in rdma/rdma_cma.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ { echo "$as_me:$LINENO: checking for rdma_create_id in -lrdmacm" >&5 ++echo $ECHO_N "checking for rdma_create_id in -lrdmacm... $ECHO_C" >&6; } ++if test "${ac_cv_lib_rdmacm_rdma_create_id+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lrdmacm $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char rdma_create_id (); ++int ++main () ++{ ++return rdma_create_id (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_rdmacm_rdma_create_id=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_rdmacm_rdma_create_id=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_rdmacm_rdma_create_id" >&5 ++echo "${ECHO_T}$ac_cv_lib_rdmacm_rdma_create_id" >&6; } ++if test $ac_cv_lib_rdmacm_rdma_create_id = yes; then ++ { echo "$as_me:$LINENO: checking for rdma_get_peer_addr" >&5 ++echo $ECHO_N "checking for rdma_get_peer_addr... $ECHO_C" >&6; } ++ btl_openib_msg=no ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include "rdma/rdma_cma.h" ++ ++int ++main () ++{ ++void *ret = (void*) rdma_get_peer_addr((struct rdma_cm_id*)0); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ btl_openib_have_rdmacm=1 ++ btl_openib_msg=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ { echo "$as_me:$LINENO: result: $btl_openib_msg" >&5 ++echo "${ECHO_T}$btl_openib_msg" >&6; } ++fi ++ ++fi ++ ++done ++ ++ ++ if test "1" = "$btl_openib_have_rdmacm"; then ++ btl_openib_LIBS="-lrdmacm $btl_openib_LIBS" ++ fi ++ fi ++ ++ # Do we have IB CM? (note that OFED IB CM depends on RDMA ++ # CM, so no need to add it into the other-libraries ++ # argument to AC_CHECK_ LIB). Note that we only want IBCM ++ # starting with OFED 1.2 or so, so check for ++ # ib_cm_open_device (introduced in libibcm 1.0/OFED 1.2). ++ if test "$enable_openib_ibcm" = "yes"; then ++ ++for ac_header in infiniband/cm.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ { echo "$as_me:$LINENO: checking for ib_cm_open_device in -libcm" >&5 ++echo $ECHO_N "checking for ib_cm_open_device in -libcm... $ECHO_C" >&6; } ++if test "${ac_cv_lib_ibcm_ib_cm_open_device+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-libcm $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char ib_cm_open_device (); ++int ++main () ++{ ++return ib_cm_open_device (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_ibcm_ib_cm_open_device=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_ibcm_ib_cm_open_device=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_ibcm_ib_cm_open_device" >&5 ++echo "${ECHO_T}$ac_cv_lib_ibcm_ib_cm_open_device" >&6; } ++if test $ac_cv_lib_ibcm_ib_cm_open_device = yes; then ++ btl_openib_have_ibcm=1 ++ btl_openib_LIBS="-libcm $btl_openib_LIBS" ++fi ++ ++fi ++ ++done ++ ++ fi ++ ++fi ++ ++ ++ # Check to see if works. It is known to ++ # create problems on some platforms with some compilers (e.g., ++ # RHEL4U3 with the PGI 32 bit compiler). Use undocumented (in AC ++ # 2.63) feature of AC_CHECK_HEADERS: if you explicitly pass in ++ # AC_INCLUDES_DEFAULT as the 4th arg to AC_CHECK_HEADERS, the test ++ # will fail if the header is present but not compilable, *but it ++ # will not print the big scary warning*. See ++ # http://lists.gnu.org/archive/html/autoconf/2008-10/msg00143.html. ++ if test "$ompi_check_openib_happy" = "yes"; then ++ ++for ac_header in infiniband/driver.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ eval "$as_ac_Header=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_Header=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++fi ++ ++ ++ { echo "$as_me:$LINENO: checking if ConnectX XRC support is enabled" >&5 ++echo $ECHO_N "checking if ConnectX XRC support is enabled... $ECHO_C" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_CONNECTX_XRC $btl_openib_have_xrc ++_ACEOF ++ ++ if test "1" = "$btl_openib_have_xrc"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ { echo "$as_me:$LINENO: checking if OpenFabrics RDMACM support is enabled" >&5 ++echo $ECHO_N "checking if OpenFabrics RDMACM support is enabled... $ECHO_C" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_RDMACM $btl_openib_have_rdmacm ++_ACEOF ++ ++ if test "1" = "$btl_openib_have_rdmacm"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ { echo "$as_me:$LINENO: checking if OpenFabrics IBCM support is enabled" >&5 ++echo $ECHO_N "checking if OpenFabrics IBCM support is enabled... $ECHO_C" >&6; } ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_HAVE_IBCM $btl_openib_have_ibcm ++_ACEOF ++ ++ if test "1" = "$btl_openib_have_ibcm"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ++ CPPFLAGS="$ompi_check_openib_btl_openib_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_openib_btl_openib_save_LDFLAGS" ++ LIBS="$ompi_check_openib_btl_openib_save_LIBS" ++ ++ if test "$ompi_check_openib_happy" = "yes"; then ++ btl_openib_happy="yes" ++else ++ if test ! -z "$with_openib" -a "$with_openib" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: OpenFabrics support requested (via --with-openib) but not found." >&5 ++echo "$as_me: WARNING: OpenFabrics support requested (via --with-openib) but not found." >&2;} ++ { echo "$as_me:$LINENO: WARNING: If you are using libibverbs v1.0 (i.e., OFED v1.0 or v1.1), you *MUST* have both the libsysfs headers and libraries installed. Later versions of libibverbs do not require libsysfs." >&5 ++echo "$as_me: WARNING: If you are using libibverbs v1.0 (i.e., OFED v1.0 or v1.1), you *MUST* have both the libsysfs headers and libraries installed. Later versions of libibverbs do not require libsysfs." >&2;} ++ { { echo "$as_me:$LINENO: error: Aborting." >&5 ++echo "$as_me: error: Aborting." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ btl_openib_happy="no" ++fi ++ ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++ ++ if test "$btl_openib_happy" = "yes"; then ++ btl_openib_WRAPPER_EXTRA_LDFLAGS="$btl_openib_LDFLAGS" ++ btl_openib_WRAPPER_EXTRA_LIBS="$btl_openib_LIBS" ++ ++ # With the new openib flags, look for ibv_fork_init ++ LDFLAGS_save="$LDFLAGS" ++ LIBS_save="$LIBS" ++ LDFLAGS="$LDFLAGS $btl_openib_LDFLAGS" ++ LIBS="$LIBS $btl_openib_LIBS" ++ ++for ac_func in ibv_fork_init ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ LDFLAGS="$LDFLAGS_save" ++ LIBS="$LIBS_save" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ { echo "$as_me:$LINENO: checking for thread support (needed for ibcm/rdmacm)" >&5 ++echo $ECHO_N "checking for thread support (needed for ibcm/rdmacm)... $ECHO_C" >&6; } ++ have_threads=`echo $THREAD_TYPE | awk '{ print $1 }'` ++ if test "x$have_threads" = "x"; then ++ have_threads=none ++ fi ++ { echo "$as_me:$LINENO: result: $have_threads" >&5 ++echo "${ECHO_T}$have_threads" >&6; } ++ ++ if test "$btl_openib_happy" = "yes"; then ++ if test "x$btl_openib_have_xrc" = "x1"; then ++ cpcs="$cpcs xoob" ++ fi ++ if test "x$btl_openib_have_rdmacm" = "x1" -a \ ++ "$have_threads" != "none"; then ++ cpcs="$cpcs rdmacm" ++ fi ++ if test "x$btl_openib_have_ibcm" = "x1" -a \ ++ "$have_threads" != "none"; then ++ cpcs="$cpcs ibcm" ++ fi ++ { echo "$as_me:$LINENO: checking which openib btl cpcs will be built" >&5 ++echo $ECHO_N "checking which openib btl cpcs will be built... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $cpcs" >&5 ++echo "${ECHO_T}$cpcs" >&6; } ++fi ++ ++ ++ # substitute in the things needed to build openib ++ ++ ++ ++ ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=openib ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_btl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_btl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component btl:openib can compile" >&5 ++echo $ECHO_N "checking if MCA component btl:openib can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_btl" = "openib" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"openib\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"openib\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "openib" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"openib\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"openib\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components openib" ++fi ++ ++ ++ ++ if test $should_build -eq 1 -a "x$btl_openib_have_xrc" = "x1"; then ++ MCA_btl_openib_have_xrc_TRUE= ++ MCA_btl_openib_have_xrc_FALSE='#' ++else ++ MCA_btl_openib_have_xrc_TRUE='#' ++ MCA_btl_openib_have_xrc_FALSE= ++fi ++ ++ if test $should_build -eq 1 -a "x$btl_openib_have_rdmacm" = "x1"; then ++ MCA_btl_openib_have_rdmacm_TRUE= ++ MCA_btl_openib_have_rdmacm_FALSE='#' ++else ++ MCA_btl_openib_have_rdmacm_TRUE='#' ++ MCA_btl_openib_have_rdmacm_FALSE= ++fi ++ ++ if test $should_build -eq 1 -a "x$btl_openib_have_ibcm" = "x1"; then ++ MCA_btl_openib_have_ibcm_TRUE= ++ MCA_btl_openib_have_ibcm_FALSE='#' ++else ++ MCA_btl_openib_have_ibcm_TRUE='#' ++ MCA_btl_openib_have_ibcm_FALSE= ++fi ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_btl_openib_DSO=1 ++else ++ BUILD_btl_openib_DSO=0 ++fi ++ ++ if test "$BUILD_btl_openib_DSO" = "1"; then ++ OMPI_BUILD_btl_openib_DSO_TRUE= ++ OMPI_BUILD_btl_openib_DSO_FALSE='#' ++else ++ OMPI_BUILD_btl_openib_DSO_TRUE='#' ++ OMPI_BUILD_btl_openib_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component btl:portals (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=portals ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=btl ++ component=portals ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ # save compiler flags so that we don't alter them for later ++ # components. ++ check_portals_save_CPPFLAGS="$CPPFLAGS" ++ check_portals_save_LDFLAGS="$LDFLAGS" ++ check_portals_save_LIBS="$LIBS" ++ ++ check_portals_CPPFLAGS= ++ check_portals_LDFLAGS= ++ check_portals_LIBS= ++ ++ check_portals_configuration="none" ++ ompi_check_portals_happy="yes" ++ ++ # Get some configuration information ++ ++# Check whether --with-portals was given. ++if test "${with_portals+set}" = set; then ++ withval=$with_portals; ++fi ++ ++ ++# Check whether --with-portals-config was given. ++if test "${with_portals_config+set}" = set; then ++ withval=$with_portals_config; ++fi ++ ++ ++# Check whether --with-portals-libs was given. ++if test "${with_portals_libs+set}" = set; then ++ withval=$with_portals_libs; ++fi ++ ++ ++ { echo "$as_me:$LINENO: checking for Portals configuration" >&5 ++echo $ECHO_N "checking for Portals configuration... $ECHO_C" >&6; } ++ if test "$with_portals_config" = "" ; then ++ with_portals_config="utcp" ++ elif test "$with_portals_config" = "redstorm" ; then ++ with_portals_config="xt3" ++ elif test "$with_portals_config" = "cnl_modex" ; then ++ with_portals_config="xt3-modex" ++ fi ++ OMPI_PORTALS_UTCP=0 ++ OMPI_PORTALS_CRAYXT3=0 ++ OMPI_PORTALS_CRAYXT3_MODEX=0 ++ case "$with_portals_config" in ++ "utcp") ++ OMPI_PORTALS_UTCP=1 ++ OMPI_PORTALS_HAVE_EVENT_UNLINK=1 ++ check_portals_LIBS="-lp3utcp -lp3api -lp3lib -lp3rt -lp3utcp" ++ check_portals_header_prefix= ++ { echo "$as_me:$LINENO: result: utcp" >&5 ++echo "${ECHO_T}utcp" >&6; } ++ ;; ++ "xt3") ++ OMPI_PORTALS_CRAYXT3=1 ++ OMPI_PORTALS_HAVE_EVENT_UNLINK=0 ++ check_portals_LIBS= ++ check_portals_header_prefix="portals/" ++ { echo "$as_me:$LINENO: result: Cray XT3" >&5 ++echo "${ECHO_T}Cray XT3" >&6; } ++ ;; ++ "xt3-modex") ++ OMPI_PORTALS_CRAYXT3_MODEX=1 ++ OMPI_PORTALS_HAVE_EVENT_UNLINK=0 ++ check_portals_LIBS= ++ check_portals_header_prefix="portals/" ++ { echo "$as_me:$LINENO: result: Cray XT3 - Modex" >&5 ++echo "${ECHO_T}Cray XT3 - Modex" >&6; } ++ ;; ++ *) ++ # ok to call ERROR here - the user specified something invalid. ++ # that should be brought to his attention ++ { { echo "$as_me:$LINENO: error: unknown Portals configuration. Can not continue" >&5 ++echo "$as_me: error: unknown Portals configuration. Can not continue" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PORTALS_HAVE_EVENT_UNLINK $OMPI_PORTALS_HAVE_EVENT_UNLINK ++_ACEOF ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PORTALS_UTCP $OMPI_PORTALS_UTCP ++_ACEOF ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PORTALS_CRAYXT3 $OMPI_PORTALS_CRAYXT3 ++_ACEOF ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PORTALS_CRAYXT3_MODEX $OMPI_PORTALS_CRAYXT3_MODEX ++_ACEOF ++ ++ ++ # Add correct -I and -L flags ++ if test -n "$with_portals"; then ++ if test -d "$with_portals/include"; then ++ check_portals_CPPFLAGS="-I$with_portals/include" ++ CPPFLAGS="$CPPFLAGS $check_portals_CPPFLAGS" ++fi ++ ++ if test -d "$with_portals/lib"; then ++ check_portals_LDFLAGS="-L$with_portals/lib" ++ LDFLAGS="$LDFLAGS $check_portals_LDFLAGS" ++fi ++ ++fi ++ ++ ++ # Try to find all the portals libraries (this is not fun!) ++ if test -n "$with_portals_libs" ; then ++ check_portals_LIBS="" ++ for lib in $with_portals_libs ; do ++ check_portals_LIBS="$check_portals_LIBS -l$lib" ++ done ++ fi ++ ++ # check for portals ++ LIBS="$LIBS $check_portals_LIBS" ++ ++for ac_header in ${check_portals_header_prefix}portals3.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ { echo "$as_me:$LINENO: checking if possible to link Portals application" >&5 ++echo $ECHO_N "checking if possible to link Portals application... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include <${check_portals_header_prefix}portals3.h> ++int ++main () ++{ ++int i; PtlInit(&i); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ompi_check_portals_happy="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ompi_check_portals_happy="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++else ++ ompi_check_portals_happy="no" ++fi ++ ++done ++ ++ ++ # Deal with static-only Portals UTCP libs. See note in ++ # ompi/mca/common/portals/configure.m4. Then possibly cry. ++ if test "$with_portals_config" = "utcp" ; then ++ if test "btl_portals" != "common_portals" ; then ++ check_portals_LIBS= ++ fi ++ fi ++ ++ # reset the flags for the next test ++ CPPFLAGS="$check_portals_save_CPPFLAGS" ++ LDFLAGS="$check_portals_save_LDFLAGS" ++ LIBS="$check_portals_save_LIBS" ++ ++ btl_portals_CPPFLAGS="$check_portals_CPPFLAGS" ++ btl_portals_LDFLAGS="$check_portals_LDFLAGS" ++ btl_portals_LIBS="$check_portals_LIBS" ++ ++ if test "$ompi_check_portals_happy" = "yes"; then ++ btl_portals_happy="yes" ++else ++ if test ! -z "$with_portals" -a "$with_portals" != "no"; then ++ { { echo "$as_me:$LINENO: error: Portals support requested but not found. Aborting" >&5 ++echo "$as_me: error: Portals support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ btl_portals_happy="no" ++fi ++ ++ ++ ++ if test "$btl_portals_happy" = "yes"; then ++ btl_portals_WRAPPER_EXTRA_LDFLAGS="$btl_portals_LDFLAGS" ++ btl_portals_WRAPPER_EXTRA_LIBS="$btl_portals_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # substitute in the things needed to build portals ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=portals ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_btl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_btl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component btl:portals can compile" >&5 ++echo $ECHO_N "checking if MCA component btl:portals can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_btl" = "portals" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"portals\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "portals" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"portals\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components portals" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_btl_portals_DSO=1 ++else ++ BUILD_btl_portals_DSO=0 ++fi ++ ++ if test "$BUILD_btl_portals_DSO" = "1"; then ++ OMPI_BUILD_btl_portals_DSO_TRUE= ++ OMPI_BUILD_btl_portals_DSO_FALSE='#' ++else ++ OMPI_BUILD_btl_portals_DSO_TRUE='#' ++ OMPI_BUILD_btl_portals_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component btl:tcp (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=tcp ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=btl ++ component=tcp ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ # check for sockaddr_in (a good sign we have TCP) ++ { echo "$as_me:$LINENO: checking for struct sockaddr_in" >&5 ++echo $ECHO_N "checking for struct sockaddr_in... $ECHO_C" >&6; } ++if test "${ac_cv_type_struct_sockaddr_in+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#ifdef HAVE_NETINET_IN_H ++#include ++#endif ++ ++typedef struct sockaddr_in ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_struct_sockaddr_in=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_struct_sockaddr_in=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in" >&5 ++echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in" >&6; } ++if test $ac_cv_type_struct_sockaddr_in = yes; then ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_STRUCT_SOCKADDR_IN 1 ++_ACEOF ++ ++should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=tcp ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_btl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_btl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component btl:tcp can compile" >&5 ++echo $ECHO_N "checking if MCA component btl:tcp can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_btl" = "tcp" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tcp\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "tcp" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tcp\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components tcp" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_btl_tcp_DSO=1 ++else ++ BUILD_btl_tcp_DSO=0 ++fi ++ ++ if test "$BUILD_btl_tcp_DSO" = "1"; then ++ OMPI_BUILD_btl_tcp_DSO_TRUE= ++ OMPI_BUILD_btl_tcp_DSO_FALSE='#' ++else ++ OMPI_BUILD_btl_tcp_DSO_TRUE='#' ++ OMPI_BUILD_btl_tcp_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component btl:udapl (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=udapl ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=btl ++ component=udapl ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-udapl was given. ++if test "${with_udapl+set}" = set; then ++ withval=$with_udapl; ++fi ++ ++ ++# Check whether --with-udapl-libdir was given. ++if test "${with_udapl_libdir+set}" = set; then ++ withval=$with_udapl_libdir; ++fi ++ ++ ++ # Special case for OFED/Linux: the default /etc/dat.conf that ++ # ships with OFED is broken in that it includes DAT providers that ++ # are not guarnateed to work (e.g., it includes providers for ib0, ++ # ib1, ib2, ib3, and bond0). Usually, a sysadmin will need to ++ # edit this file to configure it for the specific environment in ++ # which it will be used. Hence, if you run the udapl BTL on ++ # Linux/OFED, you'll get a bunch of warning messages about the ++ # providers that don't work. However, on Linux/OFED, you don't ++ # really want to use udapl anyway; you likely really want to use ++ # the openib BTL (i.e., native verbs, not udapl). ++ ++ # So after exploring many different scenarios, the least evil ++ # solution seemed to be to disable building the udapl BTL on ++ # Linux/OFED *unless the user specifically asks for it.* To be ++ # specific: on Linux/OFED, if you do not specify ++ # --with-udapl(=DIR), the udapl BTL will not be built. ++ if test -z "$with_udapl"; then ++ case $host in ++ *linux*) ++ { echo "$as_me:$LINENO: WARNING: On Linux and --with-udapl was not specified" >&5 ++echo "$as_me: WARNING: On Linux and --with-udapl was not specified" >&2;} ++ { echo "$as_me:$LINENO: WARNING: Not building the udapl BTL" >&5 ++echo "$as_me: WARNING: Not building the udapl BTL" >&2;} ++ with_udapl=no ++ ;; ++ esac ++fi ++ ++ ++ if test ! -z "$with_udapl" -a "$with_udapl" != "yes"; then ++ ompi_check_udapl_dir="$with_udapl" ++fi ++ ++ if test ! -z "$with_udapl_libdir" -a "$with_udapl_libdir" != "yes"; then ++ ompi_check_udapl_libdir="$with_udapl_libdir" ++fi ++ ++ if test "$with_udapl" = "no"; then ++ ompi_check_udapl_happy="no" ++else ++ ompi_check_udapl_happy="yes" ++fi ++ ++ ++ ++ ompi_check_package_btl_udapl_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_btl_udapl_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_btl_udapl_save_LIBS="$LIBS" ++ ++ ompi_check_package_btl_udapl_orig_CPPFLAGS="$btl_udapl_CPPFLAGS" ++ ompi_check_package_btl_udapl_orig_LDFLAGS="$btl_udapl_LDFLAGS" ++ ompi_check_package_btl_udapl_orig_LIBS="$btl_udapl_LIBS" ++ ++ if test "$ompi_check_udapl_happy" = "yes"; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_dat_udat_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_udapl_dir" = "/usr" -o "$ompi_check_udapl_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_dat_udat_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for dat/udat.h" >&5 ++echo $ECHO_N "checking for dat/udat.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_dat_udat_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_dat_udat_h" >&5 ++echo "${ECHO_T}$ac_cv_header_dat_udat_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking dat/udat.h usability" >&5 ++echo $ECHO_N "checking dat/udat.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking dat/udat.h presence" >&5 ++echo $ECHO_N "checking dat/udat.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: dat/udat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: dat/udat.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: dat/udat.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: dat/udat.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: dat/udat.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: dat/udat.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: dat/udat.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: dat/udat.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for dat/udat.h" >&5 ++echo $ECHO_N "checking for dat/udat.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_dat_udat_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_dat_udat_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_dat_udat_h" >&5 ++echo "${ECHO_T}$ac_cv_header_dat_udat_h" >&6; } ++ ++fi ++if test $ac_cv_header_dat_udat_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_dat_udat_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_udapl_dir" != ""; then ++ btl_udapl_CPPFLAGS="$btl_udapl_CPPFLAGS -I$ompi_check_udapl_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_udapl_dir/include" ++fi ++ ++ if test "${ac_cv_header_dat_udat_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for dat/udat.h" >&5 ++echo $ECHO_N "checking for dat/udat.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_dat_udat_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_dat_udat_h" >&5 ++echo "${ECHO_T}$ac_cv_header_dat_udat_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking dat/udat.h usability" >&5 ++echo $ECHO_N "checking dat/udat.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking dat/udat.h presence" >&5 ++echo $ECHO_N "checking dat/udat.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: dat/udat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: dat/udat.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: dat/udat.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: dat/udat.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: dat/udat.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: dat/udat.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: dat/udat.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: dat/udat.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: dat/udat.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for dat/udat.h" >&5 ++echo $ECHO_N "checking for dat/udat.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_dat_udat_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_dat_udat_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_dat_udat_h" >&5 ++echo "${ECHO_T}$ac_cv_header_dat_udat_h" >&6; } ++ ++fi ++if test $ac_cv_header_dat_udat_h = yes; then ++ ompi_check_udapl_happy="yes" ++else ++ ompi_check_udapl_happy="no" ++fi ++ ++ ++else ++ ompi_check_udapl_happy="yes" ++fi ++ ++ unset ompi_check_package_header_happy ++fi ++ ++ ++ if test "$ompi_check_udapl_happy" = "yes"; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_dat_dat_registry_list_providers ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_udapl_libdir" != ""; then ++ # libdir was specified - search only there ++ btl_udapl_LDFLAGS="$btl_udapl_LDFLAGS -L$ompi_check_udapl_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_udapl_libdir" ++ { echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5 ++echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldat $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dat_registry_list_providers (); ++int ++main () ++{ ++return dat_registry_list_providers (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dat_dat_registry_list_providers=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dat_dat_registry_list_providers=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5 ++echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; } ++if test $ac_cv_lib_dat_dat_registry_list_providers = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS" ++ btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS" ++ unset ac_cv_lib_dat_dat_registry_list_providers ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_udapl_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5 ++echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldat $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dat_registry_list_providers (); ++int ++main () ++{ ++return dat_registry_list_providers (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dat_dat_registry_list_providers=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dat_dat_registry_list_providers=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5 ++echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; } ++if test $ac_cv_lib_dat_dat_registry_list_providers = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS" ++ btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS" ++ unset ac_cv_lib_dat_dat_registry_list_providers ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_udapl_LDFLAGS="$btl_udapl_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5 ++echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldat $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dat_registry_list_providers (); ++int ++main () ++{ ++return dat_registry_list_providers (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dat_dat_registry_list_providers=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dat_dat_registry_list_providers=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5 ++echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; } ++if test $ac_cv_lib_dat_dat_registry_list_providers = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS" ++ btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS" ++ unset ac_cv_lib_dat_dat_registry_list_providers ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_udapl_LDFLAGS="$btl_udapl_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5 ++echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldat $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dat_registry_list_providers (); ++int ++main () ++{ ++return dat_registry_list_providers (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dat_dat_registry_list_providers=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dat_dat_registry_list_providers=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5 ++echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; } ++if test $ac_cv_lib_dat_dat_registry_list_providers = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS" ++ btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS" ++ unset ac_cv_lib_dat_dat_registry_list_providers ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ btl_udapl_LIBS="-ldat " ++ ompi_check_udapl_happy="yes" ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_dat_dat_registry_list_providers ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_udapl_libdir" != ""; then ++ # libdir was specified - search only there ++ btl_udapl_LDFLAGS="$btl_udapl_LDFLAGS -L$ompi_check_udapl_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_udapl_libdir" ++ { echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5 ++echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldat -ldapl $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dat_registry_list_providers (); ++int ++main () ++{ ++return dat_registry_list_providers (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dat_dat_registry_list_providers=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dat_dat_registry_list_providers=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5 ++echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; } ++if test $ac_cv_lib_dat_dat_registry_list_providers = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS" ++ btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS" ++ unset ac_cv_lib_dat_dat_registry_list_providers ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_udapl_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5 ++echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldat -ldapl $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dat_registry_list_providers (); ++int ++main () ++{ ++return dat_registry_list_providers (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dat_dat_registry_list_providers=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dat_dat_registry_list_providers=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5 ++echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; } ++if test $ac_cv_lib_dat_dat_registry_list_providers = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS" ++ btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS" ++ unset ac_cv_lib_dat_dat_registry_list_providers ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_udapl_LDFLAGS="$btl_udapl_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5 ++echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldat -ldapl $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dat_registry_list_providers (); ++int ++main () ++{ ++return dat_registry_list_providers (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dat_dat_registry_list_providers=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dat_dat_registry_list_providers=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5 ++echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; } ++if test $ac_cv_lib_dat_dat_registry_list_providers = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS" ++ btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS" ++ unset ac_cv_lib_dat_dat_registry_list_providers ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ btl_udapl_LDFLAGS="$btl_udapl_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5 ++echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldat -ldapl $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dat_registry_list_providers (); ++int ++main () ++{ ++return dat_registry_list_providers (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dat_dat_registry_list_providers=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dat_dat_registry_list_providers=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5 ++echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; } ++if test $ac_cv_lib_dat_dat_registry_list_providers = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS" ++ btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS" ++ unset ac_cv_lib_dat_dat_registry_list_providers ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ btl_udapl_LIBS="-ldat -ldapl" ++ ompi_check_udapl_happy="yes" ++else ++ ompi_check_udapl_happy="no" ++fi ++ ++ ++ ++fi ++ ++ ++ ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_btl_udapl_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS" ++ LIBS="$ompi_check_package_btl_udapl_save_LIBS" ++ ++ if test "$ompi_check_udapl_happy" = "yes"; then ++ btl_udapl_happy="yes" ++else ++ if test ! -z "$with_udapl" -a "$with_udapl" != "no"; then ++ { { echo "$as_me:$LINENO: error: uDAPL support requested but not found. Aborting" >&5 ++echo "$as_me: error: uDAPL support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ btl_udapl_happy="no" ++fi ++ ++ ++ ++ if test "$btl_udapl_happy" = "yes"; then ++ btl_udapl_WRAPPER_EXTRA_LDFLAGS="$btl_udapl_LDFLAGS" ++ btl_udapl_WRAPPER_EXTRA_LIBS="$btl_udapl_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # Borrowed from MVAPI BTL - a data structure in the uDAPL headers ++ # is not fully ISO C. Remove -pedantic to silence a warning. ++ btl_udapl_CFLAGS="`echo $CFLAGS | sed 's/-pedantic//g'`" ++ if test "$btl_udapl_CFLAGS" != "$CFLAGS" -a "$btl_udapl_happy" = "yes"; then ++ { echo "$as_me:$LINENO: WARNING: Removed -pedantic from CFLAGS for ++uDAPL component because the uDAPL headers are not fully ISO C" >&5 ++echo "$as_me: WARNING: Removed -pedantic from CFLAGS for ++uDAPL component because the uDAPL headers are not fully ISO C" >&2;} ++fi ++ ++ ++ # substitute in the things needed to build udapl ++ ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=udapl ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_btl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_btl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component btl:udapl can compile" >&5 ++echo $ECHO_N "checking if MCA component btl:udapl can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_btl" = "udapl" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"udapl\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"udapl\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "udapl" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"udapl\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"udapl\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components udapl" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_btl_udapl_DSO=1 ++else ++ BUILD_btl_udapl_DSO=0 ++fi ++ ++ if test "$BUILD_btl_udapl_DSO" = "1"; then ++ OMPI_BUILD_btl_udapl_DSO_TRUE= ++ OMPI_BUILD_btl_udapl_DSO_FALSE='#' ++else ++ OMPI_BUILD_btl_udapl_DSO_TRUE='#' ++ OMPI_BUILD_btl_udapl_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/btl/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component btl:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/btl/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/btl/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=btl ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_btl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_btl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component btl:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component btl:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_btl" ; then ++ if test "$DIRECT_btl" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_btl_ALL_COMPONENTS="$all_components" ++ MCA_btl_STATIC_COMPONENTS="$static_components" ++ MCA_btl_DSO_COMPONENTS="$dso_components" ++ MCA_btl_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_btl_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_btl_ALL_SUBDIRS="$MCA_btl_ALL_SUBDIRS mca/btl/$item" ++ done ++ ++ ++ ++ MCA_btl_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_btl_STATIC_SUBDIRS="$MCA_btl_STATIC_SUBDIRS mca/btl/$item" ++ done ++ ++ ++ ++ MCA_btl_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_btl_DSO_SUBDIRS="$MCA_btl_DSO_SUBDIRS mca/btl/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "btl" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "coll" = "common" ; then ++ MCA_ompi_FRAMEWORKS="coll $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/coll $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_coll_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_coll_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_coll_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS coll" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/coll" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_coll_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_coll_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_coll_STATIC_SUBDIRS)" ++ fi ++ if test "coll" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/coll/libmca_coll.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_coll_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework coll" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "coll" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/coll/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework coll" >&5 ++echo $ECHO_N "checking for no configure components in framework coll... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: basic, hierarch, inter, self, sm, tuned" >&5 ++echo "${ECHO_T}basic, hierarch, inter, self, sm, tuned" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework coll" >&5 ++echo $ECHO_N "checking for m4 configure components in framework coll... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component coll:basic (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=basic ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=basic ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_coll" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=basic ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_coll" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_coll" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component coll:basic can compile" >&5 ++echo $ECHO_N "checking if MCA component coll:basic can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_coll" = "basic" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "basic" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components basic" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_coll_basic_DSO=1 ++ else ++ BUILD_coll_basic_DSO=0 ++ fi ++ if test "$BUILD_coll_basic_DSO" = "1"; then ++ OMPI_BUILD_coll_basic_DSO_TRUE= ++ OMPI_BUILD_coll_basic_DSO_FALSE='#' ++else ++ OMPI_BUILD_coll_basic_DSO_TRUE='#' ++ OMPI_BUILD_coll_basic_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component coll:hierarch (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=hierarch ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=hierarch ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_coll" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=hierarch ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_coll" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_coll" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component coll:hierarch can compile" >&5 ++echo $ECHO_N "checking if MCA component coll:hierarch can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_coll" = "hierarch" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"hierarch\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"hierarch\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "hierarch" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"hierarch\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"hierarch\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components hierarch" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_coll_hierarch_DSO=1 ++ else ++ BUILD_coll_hierarch_DSO=0 ++ fi ++ if test "$BUILD_coll_hierarch_DSO" = "1"; then ++ OMPI_BUILD_coll_hierarch_DSO_TRUE= ++ OMPI_BUILD_coll_hierarch_DSO_FALSE='#' ++else ++ OMPI_BUILD_coll_hierarch_DSO_TRUE='#' ++ OMPI_BUILD_coll_hierarch_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component coll:inter (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=inter ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=inter ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_coll" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=inter ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_coll" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_coll" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component coll:inter can compile" >&5 ++echo $ECHO_N "checking if MCA component coll:inter can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_coll" = "inter" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"inter\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"inter\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "inter" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"inter\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"inter\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components inter" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_coll_inter_DSO=1 ++ else ++ BUILD_coll_inter_DSO=0 ++ fi ++ if test "$BUILD_coll_inter_DSO" = "1"; then ++ OMPI_BUILD_coll_inter_DSO_TRUE= ++ OMPI_BUILD_coll_inter_DSO_FALSE='#' ++else ++ OMPI_BUILD_coll_inter_DSO_TRUE='#' ++ OMPI_BUILD_coll_inter_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component coll:self (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=self ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=self ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_coll" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=self ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_coll" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_coll" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component coll:self can compile" >&5 ++echo $ECHO_N "checking if MCA component coll:self can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_coll" = "self" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "self" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components self" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_coll_self_DSO=1 ++ else ++ BUILD_coll_self_DSO=0 ++ fi ++ if test "$BUILD_coll_self_DSO" = "1"; then ++ OMPI_BUILD_coll_self_DSO_TRUE= ++ OMPI_BUILD_coll_self_DSO_FALSE='#' ++else ++ OMPI_BUILD_coll_self_DSO_TRUE='#' ++ OMPI_BUILD_coll_self_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component coll:sm (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=sm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=sm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_coll" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=sm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_coll" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_coll" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component coll:sm can compile" >&5 ++echo $ECHO_N "checking if MCA component coll:sm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_coll" = "sm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "sm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components sm" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_coll_sm_DSO=1 ++ else ++ BUILD_coll_sm_DSO=0 ++ fi ++ if test "$BUILD_coll_sm_DSO" = "1"; then ++ OMPI_BUILD_coll_sm_DSO_TRUE= ++ OMPI_BUILD_coll_sm_DSO_FALSE='#' ++else ++ OMPI_BUILD_coll_sm_DSO_TRUE='#' ++ OMPI_BUILD_coll_sm_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component coll:tuned (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=tuned ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=tuned ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_coll" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=tuned ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_coll" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_coll" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component coll:tuned can compile" >&5 ++echo $ECHO_N "checking if MCA component coll:tuned can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_coll" = "tuned" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tuned\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tuned\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "tuned" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"tuned\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"tuned\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components tuned" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_coll_tuned_DSO=1 ++ else ++ BUILD_coll_tuned_DSO=0 ++ fi ++ if test "$BUILD_coll_tuned_DSO" = "1"; then ++ OMPI_BUILD_coll_tuned_DSO_TRUE= ++ OMPI_BUILD_coll_tuned_DSO_FALSE='#' ++else ++ OMPI_BUILD_coll_tuned_DSO_TRUE='#' ++ OMPI_BUILD_coll_tuned_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/coll/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component coll:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_coll" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/coll/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/coll/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=coll ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_coll" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_coll" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component coll:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component coll:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_coll" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_coll" ; then ++ if test "$DIRECT_coll" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_coll_ALL_COMPONENTS="$all_components" ++ MCA_coll_STATIC_COMPONENTS="$static_components" ++ MCA_coll_DSO_COMPONENTS="$dso_components" ++ MCA_coll_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_coll_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_coll_ALL_SUBDIRS="$MCA_coll_ALL_SUBDIRS mca/coll/$item" ++ done ++ ++ ++ ++ MCA_coll_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_coll_STATIC_SUBDIRS="$MCA_coll_STATIC_SUBDIRS mca/coll/$item" ++ done ++ ++ ++ ++ MCA_coll_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_coll_DSO_SUBDIRS="$MCA_coll_DSO_SUBDIRS mca/coll/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "coll" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "common" = "common" ; then ++ MCA_ompi_FRAMEWORKS="common $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/common $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_common_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_common_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_common_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS common" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/common" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_common_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_common_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_common_STATIC_SUBDIRS)" ++ fi ++ if test "common" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/common/libmca_common.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_common_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework common" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "common" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/common/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework common" >&5 ++echo $ECHO_N "checking for no configure components in framework common... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: sm" >&5 ++echo "${ECHO_T}sm" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework common" >&5 ++echo $ECHO_N "checking for m4 configure components in framework common... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: mx, portals" >&5 ++echo "${ECHO_T}mx, portals" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component common:sm (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=common ++ component=sm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_common" ; then ++ if test "$DIRECT_common" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=common ++ component=sm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_common" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=common ++ component=sm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_common" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_common" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component common:sm can compile" >&5 ++echo $ECHO_N "checking if MCA component common:sm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_common" = "sm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_common" ; then ++ if test "$DIRECT_common" = "sm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components sm" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_common_sm_DSO=1 ++ else ++ BUILD_common_sm_DSO=0 ++ fi ++ if test "$BUILD_common_sm_DSO" = "1"; then ++ OMPI_BUILD_common_sm_DSO_TRUE= ++ OMPI_BUILD_common_sm_DSO_FALSE='#' ++else ++ OMPI_BUILD_common_sm_DSO_TRUE='#' ++ OMPI_BUILD_common_sm_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component common:mx (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=common ++ component=mx ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_common" ; then ++ if test "$DIRECT_common" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=common ++ component=mx ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_common" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-mx was given. ++if test "${with_mx+set}" = set; then ++ withval=$with_mx; ++fi ++ ++ ++# Check whether --with-mx-libdir was given. ++if test "${with_mx_libdir+set}" = set; then ++ withval=$with_mx_libdir; ++fi ++ ++ ++ ompi_check_mx_common_mx_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_mx_common_mx_save_LDFLAGS="$LDFLAGS" ++ ompi_check_mx_common_mx_save_LIBS="$LIBS" ++ ++ if test "$with_mx" != "no"; then ++ if test ! -z "$with_mx" -a "$with_mx" != "yes"; then ++ ompi_check_mx_dir="$with_mx" ++fi ++ ++ if test ! -z "$with_mx_libdir" -a "$with_mx_libdir" != "yes"; then ++ ompi_check_mx_libdir="$with_mx_libdir" ++fi ++ ++ ++ ++ ompi_check_package_common_mx_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_common_mx_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_common_mx_save_LIBS="$LIBS" ++ ++ ompi_check_package_common_mx_orig_CPPFLAGS="$common_mx_CPPFLAGS" ++ ompi_check_package_common_mx_orig_LDFLAGS="$common_mx_LDFLAGS" ++ ompi_check_package_common_mx_orig_LIBS="$common_mx_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_myriexpress_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_mx_dir" = "/usr" -o "$ompi_check_mx_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for myriexpress.h" >&5 ++echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5 ++echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking myriexpress.h usability" >&5 ++echo $ECHO_N "checking myriexpress.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking myriexpress.h presence" >&5 ++echo $ECHO_N "checking myriexpress.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: myriexpress.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: myriexpress.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: myriexpress.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: myriexpress.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for myriexpress.h" >&5 ++echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_myriexpress_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5 ++echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; } ++ ++fi ++if test $ac_cv_header_myriexpress_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_myriexpress_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_mx_dir" != ""; then ++ common_mx_CPPFLAGS="$common_mx_CPPFLAGS -I$ompi_check_mx_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_mx_dir/include" ++fi ++ ++ if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for myriexpress.h" >&5 ++echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5 ++echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking myriexpress.h usability" >&5 ++echo $ECHO_N "checking myriexpress.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking myriexpress.h presence" >&5 ++echo $ECHO_N "checking myriexpress.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: myriexpress.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: myriexpress.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: myriexpress.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: myriexpress.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for myriexpress.h" >&5 ++echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_myriexpress_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5 ++echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; } ++ ++fi ++if test $ac_cv_header_myriexpress_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_myriexpress_mx_finalize ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_mx_libdir" != ""; then ++ # libdir was specified - search only there ++ common_mx_LDFLAGS="$common_mx_LDFLAGS -L$ompi_check_mx_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_mx_libdir" ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS" ++ common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_mx_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS" ++ common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ common_mx_LDFLAGS="$common_mx_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS" ++ common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ common_mx_LDFLAGS="$common_mx_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS" ++ common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ common_mx_LIBS="-lmyriexpress " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_myriexpress_mx_finalize ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_mx_libdir" != ""; then ++ # libdir was specified - search only there ++ common_mx_LDFLAGS="$common_mx_LDFLAGS -L$ompi_check_mx_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_mx_libdir" ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS" ++ common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_mx_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS" ++ common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ common_mx_LDFLAGS="$common_mx_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS" ++ common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ common_mx_LDFLAGS="$common_mx_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS" ++ common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ common_mx_LIBS="-lmyriexpress " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ ompi_check_mx_happy="yes" ++else ++ common_mx_CPPFLAGS="$ompi_check_package_common_mx_orig_CPPFLAGS" ++ common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS" ++ common_mx_LIBS="$ompi_check_package_common_mx_orig_LIBS" ++ ompi_check_mx_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_common_mx_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS" ++ LIBS="$ompi_check_package_common_mx_save_LIBS" ++ ++else ++ ompi_check_mx_happy="no" ++fi ++ ++ ++ CPPFLAGS="$CPPFLAGS $common_mx_CPPFLAGS" ++ LDFLAGS="$LDFLAGS $common_mx_LDFLAGS" ++ LIBS="$LIBS $common_mx_LIBS" ++ ++ # need at least version 1.0 ++ if test "ompi_check_mx_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for MX version 1.0 or later" >&5 ++echo $ECHO_N "checking for MX version 1.0 or later... $ECHO_C" >&6; } ++if test "${ompi_cv_mx_version_ok+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++ ++int ++main () ++{ ++ ++#if MX_API < 0x300 ++#error "Version less than 0x300" ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ompi_cv_mx_version_ok="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_mx_version_ok="no" ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_mx_version_ok" >&5 ++echo "${ECHO_T}$ompi_cv_mx_version_ok" >&6; } ++fi ++ ++ if test "$ompi_cv_mx_version_ok" = "no"; then ++ ompi_check_mx_happy="no" ++fi ++ ++ ++ if test "$ompi_check_mx_happy" = "yes"; then ++ ++for ac_header in mx_extensions.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++ ++for ac_func in mx_forget mx_register_unexp_handler ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ ++ { echo "$as_me:$LINENO: checking for mx_open_board" >&5 ++echo $ECHO_N "checking for mx_open_board... $ECHO_C" >&6; } ++if test "${ompi_cv_func_mx_open_board+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++ ++int ++main () ++{ ++ ++mx_open_board(0, NULL); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_mx_open_board="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_mx_open_board="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_mx_open_board" >&5 ++echo "${ECHO_T}$ompi_cv_func_mx_open_board" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for mx__get_mapper_state" >&5 ++echo $ECHO_N "checking for mx__get_mapper_state... $ECHO_C" >&6; } ++if test "${ompi_cv_func_mx__get_mapper_state+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++ ++int ++main () ++{ ++ ++mx__get_mapper_state(NULL, NULL); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_mx__get_mapper_state="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_mx__get_mapper_state="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_mx__get_mapper_state" >&5 ++echo "${ECHO_T}$ompi_cv_func_mx__get_mapper_state" >&6; } ++ ++ if test "$ompi_cv_func_mx_open_board" = "yes" -a "$ompi_cv_func_mx__get_mapper_state" = "yes"; then ++ mx_provide_mapper_state=1 ++ ++else ++ mx_provide_mapper_state=0 ++ ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MX_HAVE_MAPPER_STATE $mx_provide_mapper_state ++_ACEOF ++ ++ ++else ++ { echo "$as_me:$LINENO: WARNING: The MX support for Open MPI will be compiled without the ++MX extensions, which may result in lower performance. Please upgrade ++to at least MX 1.2.0 to enable the MX extensions." >&5 ++echo "$as_me: WARNING: The MX support for Open MPI will be compiled without the ++MX extensions, which may result in lower performance. Please upgrade ++to at least MX 1.2.0 to enable the MX extensions." >&2;} ++fi ++ ++done ++ ++fi ++ ++ ++ CPPFLAGS="$ompi_check_mx_common_mx_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_mx_common_mx_save_LDFLAGS" ++ LIBS="$ompi_check_mx_common_mx_save_LIBS" ++ ++ if test "$ompi_check_mx_happy" = "yes" -a "$enable_progress_threads" = "yes"; then ++ { echo "$as_me:$LINENO: WARNING: MX driver does not currently support progress threads. Disabling BTL." >&5 ++echo "$as_me: WARNING: MX driver does not currently support progress threads. Disabling BTL." >&2;} ++ ompi_check_mx_happy="no" ++fi ++ ++ ++ if test "$ompi_check_mx_happy" = "yes"; then ++ common_mx_happy="yes" ++else ++ if test ! -z "$with_mx" -a "$with_mx" != "no"; then ++ { { echo "$as_me:$LINENO: error: MX support requested but not found. Aborting" >&5 ++echo "$as_me: error: MX support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ common_mx_happy="no" ++fi ++ ++ ++ ++ if test "$common_mx_happy" = "yes"; then ++ common_mx_WRAPPER_EXTRA_LDFLAGS="$common_mx_LDFLAGS" ++ common_mx_WRAPPER_EXTRA_LIBS="$common_mx_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # substitute in the things needed to build mx ++ ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=common ++ component=mx ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_common" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_common" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component common:mx can compile" >&5 ++echo $ECHO_N "checking if MCA component common:mx can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_common" = "mx" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"mx\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_common" ; then ++ if test "$DIRECT_common" = "mx" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"mx\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components mx" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_common_mx_DSO=1 ++else ++ BUILD_common_mx_DSO=0 ++fi ++ ++ if test "$BUILD_common_mx_DSO" = "1"; then ++ OMPI_BUILD_common_mx_DSO_TRUE= ++ OMPI_BUILD_common_mx_DSO_FALSE='#' ++else ++ OMPI_BUILD_common_mx_DSO_TRUE='#' ++ OMPI_BUILD_common_mx_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component common:portals (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=common ++ component=portals ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_common" ; then ++ if test "$DIRECT_common" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=common ++ component=portals ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_common" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ # save compiler flags so that we don't alter them for later ++ # components. ++ check_portals_save_CPPFLAGS="$CPPFLAGS" ++ check_portals_save_LDFLAGS="$LDFLAGS" ++ check_portals_save_LIBS="$LIBS" ++ ++ check_portals_CPPFLAGS= ++ check_portals_LDFLAGS= ++ check_portals_LIBS= ++ ++ check_portals_configuration="none" ++ ompi_check_portals_happy="yes" ++ ++ # Get some configuration information ++ ++# Check whether --with-portals was given. ++if test "${with_portals+set}" = set; then ++ withval=$with_portals; ++fi ++ ++ ++# Check whether --with-portals-config was given. ++if test "${with_portals_config+set}" = set; then ++ withval=$with_portals_config; ++fi ++ ++ ++# Check whether --with-portals-libs was given. ++if test "${with_portals_libs+set}" = set; then ++ withval=$with_portals_libs; ++fi ++ ++ ++ { echo "$as_me:$LINENO: checking for Portals configuration" >&5 ++echo $ECHO_N "checking for Portals configuration... $ECHO_C" >&6; } ++ if test "$with_portals_config" = "" ; then ++ with_portals_config="utcp" ++ elif test "$with_portals_config" = "redstorm" ; then ++ with_portals_config="xt3" ++ elif test "$with_portals_config" = "cnl_modex" ; then ++ with_portals_config="xt3-modex" ++ fi ++ OMPI_PORTALS_UTCP=0 ++ OMPI_PORTALS_CRAYXT3=0 ++ OMPI_PORTALS_CRAYXT3_MODEX=0 ++ case "$with_portals_config" in ++ "utcp") ++ OMPI_PORTALS_UTCP=1 ++ OMPI_PORTALS_HAVE_EVENT_UNLINK=1 ++ check_portals_LIBS="-lp3utcp -lp3api -lp3lib -lp3rt -lp3utcp" ++ check_portals_header_prefix= ++ { echo "$as_me:$LINENO: result: utcp" >&5 ++echo "${ECHO_T}utcp" >&6; } ++ ;; ++ "xt3") ++ OMPI_PORTALS_CRAYXT3=1 ++ OMPI_PORTALS_HAVE_EVENT_UNLINK=0 ++ check_portals_LIBS= ++ check_portals_header_prefix="portals/" ++ { echo "$as_me:$LINENO: result: Cray XT3" >&5 ++echo "${ECHO_T}Cray XT3" >&6; } ++ ;; ++ "xt3-modex") ++ OMPI_PORTALS_CRAYXT3_MODEX=1 ++ OMPI_PORTALS_HAVE_EVENT_UNLINK=0 ++ check_portals_LIBS= ++ check_portals_header_prefix="portals/" ++ { echo "$as_me:$LINENO: result: Cray XT3 - Modex" >&5 ++echo "${ECHO_T}Cray XT3 - Modex" >&6; } ++ ;; ++ *) ++ # ok to call ERROR here - the user specified something invalid. ++ # that should be brought to his attention ++ { { echo "$as_me:$LINENO: error: unknown Portals configuration. Can not continue" >&5 ++echo "$as_me: error: unknown Portals configuration. Can not continue" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PORTALS_HAVE_EVENT_UNLINK $OMPI_PORTALS_HAVE_EVENT_UNLINK ++_ACEOF ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PORTALS_UTCP $OMPI_PORTALS_UTCP ++_ACEOF ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PORTALS_CRAYXT3 $OMPI_PORTALS_CRAYXT3 ++_ACEOF ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PORTALS_CRAYXT3_MODEX $OMPI_PORTALS_CRAYXT3_MODEX ++_ACEOF ++ ++ ++ # Add correct -I and -L flags ++ if test -n "$with_portals"; then ++ if test -d "$with_portals/include"; then ++ check_portals_CPPFLAGS="-I$with_portals/include" ++ CPPFLAGS="$CPPFLAGS $check_portals_CPPFLAGS" ++fi ++ ++ if test -d "$with_portals/lib"; then ++ check_portals_LDFLAGS="-L$with_portals/lib" ++ LDFLAGS="$LDFLAGS $check_portals_LDFLAGS" ++fi ++ ++fi ++ ++ ++ # Try to find all the portals libraries (this is not fun!) ++ if test -n "$with_portals_libs" ; then ++ check_portals_LIBS="" ++ for lib in $with_portals_libs ; do ++ check_portals_LIBS="$check_portals_LIBS -l$lib" ++ done ++ fi ++ ++ # check for portals ++ LIBS="$LIBS $check_portals_LIBS" ++ ++for ac_header in ${check_portals_header_prefix}portals3.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ { echo "$as_me:$LINENO: checking if possible to link Portals application" >&5 ++echo $ECHO_N "checking if possible to link Portals application... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include <${check_portals_header_prefix}portals3.h> ++int ++main () ++{ ++int i; PtlInit(&i); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ompi_check_portals_happy="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ompi_check_portals_happy="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++else ++ ompi_check_portals_happy="no" ++fi ++ ++done ++ ++ ++ # Deal with static-only Portals UTCP libs. See note in ++ # ompi/mca/common/portals/configure.m4. Then possibly cry. ++ if test "$with_portals_config" = "utcp" ; then ++ if test "common_portals" != "common_portals" ; then ++ check_portals_LIBS= ++ fi ++ fi ++ ++ # reset the flags for the next test ++ CPPFLAGS="$check_portals_save_CPPFLAGS" ++ LDFLAGS="$check_portals_save_LDFLAGS" ++ LIBS="$check_portals_save_LIBS" ++ ++ common_portals_CPPFLAGS="$check_portals_CPPFLAGS" ++ common_portals_LDFLAGS="$check_portals_LDFLAGS" ++ common_portals_LIBS="$check_portals_LIBS" ++ ++ if test "$ompi_check_portals_happy" = "yes"; then ++ common_portals_happy="yes" ++else ++ if test ! -z "$with_portals" -a "$with_portals" != "no"; then ++ { { echo "$as_me:$LINENO: error: Portals support requested but not found. Aborting" >&5 ++echo "$as_me: error: Portals support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ common_portals_happy="no" ++fi ++ ++ ++ ++ if test "$common_portals_happy" = "yes" -a "$with_portals_config" = "utcp" ; then ++ # Portals interface ++ symbols="PtlInit PtlFini PtlNIInit" ++ symbols="$symbols PtlNIFini PtlNIStatus PtlNIDist PtlNIHandle" ++ symbols="$symbols PtlGetUid PtlGetId PtlGetJid " ++ symbols="$symbols PtlMEAttach PtlMEAttachAny PtlMEInsert PtlMEUnlink" ++ symbols="$symbols PtlMDAttach PtlMDBind PtlMDUnlink PtlMDUpdate" ++ symbols="$symbols PtlEQAlloc PtlEQFree PtlEQGet PtlEQWait" ++ symbols="$symbols PtlEQPoll PtlACEntry" ++ symbols="$symbols PtlPut PtlPutRegion PtlGet PtlGetRegon PtlGetPut" ++ ++ # Portals reference implementation debugging stuff ++ symbols="$symbols PtlMEDump PtlNIEqDump PtlTblDump PtlNIDebug" ++ symbols="$symbols PtlErrorStr PtlEventKindStr PtlNIFailStr" ++ ++ # Portals reference implementation RTE interface ++ symbols="$symbols PtlGetNIDMap PtlGetPIDMap PtlGetRank PtlGetRankId" ++ symbols="$symbols PtlSetJID PtlSetNIDMap PtlSetPIDMap PtlSetRank" ++ ++ flags= ++ for symbol in $symbols ; do ++ case $host in ++ *-darwin*) ++ flags="$flags -Wl,-u,=_$symbol" ++ ;; ++ *-linux*) ++ flags="$flags -Wl,-undefined=$symbol" ++ ;; ++ esac ++ done ++ ++ OMPI_LIBMPI_EXTRA_LDFLAGS="$common_portals_LDFLAGS $flags" ++ OMPI_LIBMPI_EXTRA_LIBS="$common_portals_LIBS" ++ ++ commmon_portals_LIBS= ++ fi ++ ++ if test "$common_portals_happy" = "yes"; then ++ common_portals_WRAPPER_EXTRA_LDFLAGS="$common_portals_LDFLAGS" ++ common_portals_WRAPPER_EXTRA_LIBS="$common_portals_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # substitute in the things needed to build portals ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=common ++ component=portals ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_common" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_common" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component common:portals can compile" >&5 ++echo $ECHO_N "checking if MCA component common:portals can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_common" = "portals" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"portals\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_common" ; then ++ if test "$DIRECT_common" = "portals" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"portals\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components portals" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_common_portals_DSO=1 ++else ++ BUILD_common_portals_DSO=0 ++fi ++ ++ if test "$BUILD_common_portals_DSO" = "1"; then ++ OMPI_BUILD_common_portals_DSO_TRUE= ++ OMPI_BUILD_common_portals_DSO_FALSE='#' ++else ++ OMPI_BUILD_common_portals_DSO_TRUE='#' ++ OMPI_BUILD_common_portals_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/common/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component common:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=common ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_common" ; then ++ if test "$DIRECT_common" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=common ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_common" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/common/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/common/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=common ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_common" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_common" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component common:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component common:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_common" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_common" ; then ++ if test "$DIRECT_common" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_common_ALL_COMPONENTS="$all_components" ++ MCA_common_STATIC_COMPONENTS="$static_components" ++ MCA_common_DSO_COMPONENTS="$dso_components" ++ MCA_common_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_common_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_common_ALL_SUBDIRS="$MCA_common_ALL_SUBDIRS mca/common/$item" ++ done ++ ++ ++ ++ MCA_common_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_common_STATIC_SUBDIRS="$MCA_common_STATIC_SUBDIRS mca/common/$item" ++ done ++ ++ ++ ++ MCA_common_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_common_DSO_SUBDIRS="$MCA_common_DSO_SUBDIRS mca/common/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "common" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "crcp" = "common" ; then ++ MCA_ompi_FRAMEWORKS="crcp $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/crcp $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_crcp_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_crcp_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_crcp_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS crcp" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/crcp" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_crcp_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_crcp_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_crcp_STATIC_SUBDIRS)" ++ fi ++ if test "crcp" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/crcp/libmca_crcp.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_crcp_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework crcp" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "crcp" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/crcp/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework crcp" >&5 ++echo $ECHO_N "checking for no configure components in framework crcp... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework crcp" >&5 ++echo $ECHO_N "checking for m4 configure components in framework crcp... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: bkmrk" >&5 ++echo "${ECHO_T}bkmrk" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component crcp:bkmrk (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=crcp ++ component=bkmrk ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_crcp" ; then ++ if test "$DIRECT_crcp" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=crcp ++ component=bkmrk ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_crcp" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ # If we don't want FT, don't compile this component ++ if test "$ompi_want_ft" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=crcp ++ component=bkmrk ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_crcp" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_crcp" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component crcp:bkmrk can compile" >&5 ++echo $ECHO_N "checking if MCA component crcp:bkmrk can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_crcp" = "bkmrk" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"bkmrk\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"bkmrk\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_crcp" ; then ++ if test "$DIRECT_crcp" = "bkmrk" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"bkmrk\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"bkmrk\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components bkmrk" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_crcp_bkmrk_DSO=1 ++else ++ BUILD_crcp_bkmrk_DSO=0 ++fi ++ ++ if test "$BUILD_crcp_bkmrk_DSO" = "1"; then ++ OMPI_BUILD_crcp_bkmrk_DSO_TRUE= ++ OMPI_BUILD_crcp_bkmrk_DSO_FALSE='#' ++else ++ OMPI_BUILD_crcp_bkmrk_DSO_TRUE='#' ++ OMPI_BUILD_crcp_bkmrk_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/crcp/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component crcp:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=crcp ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_crcp" ; then ++ if test "$DIRECT_crcp" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=crcp ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_crcp" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/crcp/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/crcp/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=crcp ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_crcp" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_crcp" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component crcp:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component crcp:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_crcp" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_crcp" ; then ++ if test "$DIRECT_crcp" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_crcp_ALL_COMPONENTS="$all_components" ++ MCA_crcp_STATIC_COMPONENTS="$static_components" ++ MCA_crcp_DSO_COMPONENTS="$dso_components" ++ MCA_crcp_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_crcp_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_crcp_ALL_SUBDIRS="$MCA_crcp_ALL_SUBDIRS mca/crcp/$item" ++ done ++ ++ ++ ++ MCA_crcp_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_crcp_STATIC_SUBDIRS="$MCA_crcp_STATIC_SUBDIRS mca/crcp/$item" ++ done ++ ++ ++ ++ MCA_crcp_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_crcp_DSO_SUBDIRS="$MCA_crcp_DSO_SUBDIRS mca/crcp/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "crcp" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "dpm" = "common" ; then ++ MCA_ompi_FRAMEWORKS="dpm $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/dpm $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_dpm_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_dpm_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_dpm_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS dpm" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/dpm" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_dpm_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_dpm_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_dpm_STATIC_SUBDIRS)" ++ fi ++ if test "dpm" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/dpm/libmca_dpm.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_dpm_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework dpm" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "dpm" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/dpm/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework dpm" >&5 ++echo $ECHO_N "checking for no configure components in framework dpm... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: orte" >&5 ++echo "${ECHO_T}orte" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework dpm" >&5 ++echo $ECHO_N "checking for m4 configure components in framework dpm... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component dpm:orte (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=dpm ++ component=orte ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_dpm" ; then ++ if test "$DIRECT_dpm" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=dpm ++ component=orte ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_dpm" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=dpm ++ component=orte ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_dpm" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_dpm" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component dpm:orte can compile" >&5 ++echo $ECHO_N "checking if MCA component dpm:orte can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_dpm" = "orte" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"orte\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"orte\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_dpm" ; then ++ if test "$DIRECT_dpm" = "orte" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"orte\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"orte\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components orte" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_dpm_orte_DSO=1 ++ else ++ BUILD_dpm_orte_DSO=0 ++ fi ++ if test "$BUILD_dpm_orte_DSO" = "1"; then ++ OMPI_BUILD_dpm_orte_DSO_TRUE= ++ OMPI_BUILD_dpm_orte_DSO_FALSE='#' ++else ++ OMPI_BUILD_dpm_orte_DSO_TRUE='#' ++ OMPI_BUILD_dpm_orte_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/dpm/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component dpm:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=dpm ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_dpm" ; then ++ if test "$DIRECT_dpm" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=dpm ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_dpm" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/dpm/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/dpm/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=dpm ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_dpm" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_dpm" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component dpm:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component dpm:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_dpm" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_dpm" ; then ++ if test "$DIRECT_dpm" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_dpm_ALL_COMPONENTS="$all_components" ++ MCA_dpm_STATIC_COMPONENTS="$static_components" ++ MCA_dpm_DSO_COMPONENTS="$dso_components" ++ MCA_dpm_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_dpm_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_dpm_ALL_SUBDIRS="$MCA_dpm_ALL_SUBDIRS mca/dpm/$item" ++ done ++ ++ ++ ++ MCA_dpm_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_dpm_STATIC_SUBDIRS="$MCA_dpm_STATIC_SUBDIRS mca/dpm/$item" ++ done ++ ++ ++ ++ MCA_dpm_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_dpm_DSO_SUBDIRS="$MCA_dpm_DSO_SUBDIRS mca/dpm/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "dpm" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "io" = "common" ; then ++ MCA_ompi_FRAMEWORKS="io $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/io $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_io_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_io_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_io_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS io" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/io" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_io_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_io_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_io_STATIC_SUBDIRS)" ++ fi ++ if test "io" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/io/libmca_io.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_io_STATIC_LTLIBS)" ++ ++ # Check whether --enable-mpi-io was given. ++if test "${enable_mpi_io+set}" = set; then ++ enableval=$enable_mpi_io; ++fi ++ ++ ++ if test "$enable_mpi_io" != "no"; then ++ define_mpi_io=1 ++ OMPI_MPIF_MPI_IO_INCLUDE="include \"mpif-mpi-io.h\"" ++else ++ define_mpi_io=0 ++ OMPI_MPIF_MPI_IO_INCLUDE="" ++fi ++ ++ ++ ++ ompi_show_subsubtitle "Configuring MCA framework io" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "io" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/io/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework io" >&5 ++echo $ECHO_N "checking for no configure components in framework io... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework io" >&5 ++echo $ECHO_N "checking for m4 configure components in framework io... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: romio" >&5 ++echo "${ECHO_T}romio" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=$define_mpi_io ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component io:romio (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=io ++ component=romio ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_io" ; then ++ if test "$DIRECT_io" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=io ++ component=romio ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_io" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in io_romio_flags io_romio_flags_define io_romio_happy io_romio_save_LIBS; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ { echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5 ++echo "$as_me: WARNING: Found configure shell variable clash!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;} ++ { echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5 ++echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"io_romio_flags io_romio_flags_define io_romio_happy io_romio_save_LIBS\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++ ++ # Check whether --enable-io-romio was given. ++if test "${enable_io_romio+set}" = set; then ++ enableval=$enable_io_romio; ++fi ++ ++ ++# Check whether --with-io-romio-flags was given. ++if test "${with_io_romio_flags+set}" = set; then ++ withval=$with_io_romio_flags; ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MCA_io_romio_USER_CONFIGURE_FLAGS "$with_io_romio_flags" ++_ACEOF ++ ++ { echo "$as_me:$LINENO: checking if want ROMIO component" >&5 ++echo $ECHO_N "checking if want ROMIO component... $ECHO_C" >&6; } ++ if test "$enable_io_romio" = "no"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ should_build=0 ++else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ { echo "$as_me:$LINENO: checking if MPI profiling is enabled" >&5 ++echo $ECHO_N "checking if MPI profiling is enabled... $ECHO_C" >&6; } ++ if test "$enable_mpi_profile" = "no"; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ { echo "$as_me:$LINENO: WARNING: *** The ROMIO io component requires the MPI profiling layer" >&5 ++echo "$as_me: WARNING: *** The ROMIO io component requires the MPI profiling layer" >&2;} ++ if test "$enable_io_romio" = "yes"; then ++ { { echo "$as_me:$LINENO: error: *** ROMIO requested but not available. Aborting" >&5 ++echo "$as_me: error: *** ROMIO requested but not available. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ should_build=0 ++else ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ if test -n "$with_io_romio_flags" -a "$with_io_romio_flags" != "no"; then ++ io_romio_flags="$with_io_romio_flags $io_romio_flags" ++else ++ io_romio_flags= ++fi ++ ++ # If ROMIO is going to end up in a DSO, all we need is ++ # shared library-ized objects, as we're only building a ++ # DSO (which is always shared). Otherwise, build with ++ # same flags as OMPI, as we might need any combination of ++ # shared and static-ized objects... ++ if test "$compile_mode" = "dso"; then ++ io_romio_shared=enable ++ io_romio_static=disable ++else ++ if test "$enable_shared" = "yes"; then ++ io_romio_shared=enable ++else ++ io_romio_shared=disable ++fi ++ ++ if test "$enable_static" = "yes"; then ++ io_romio_static=enable ++else ++ io_romio_static=disable ++fi ++ ++fi ++ ++ if test -n "$prefix" -a "$prefix" != "NONE"; then ++ io_romio_prefix_arg="--prefix=$prefix" ++else ++ io_romio_prefix_arg= ++fi ++ ++ ++ if test "$cross_compiling" = "yes"; then ++ if test ! -z $build; then ++ io_romio_flags="$io_romio_flags --build=$build" ++fi ++ ++ if test ! -z $host; then ++ io_romio_flags="$io_romio_flags --host=$host" ++fi ++ ++ if test ! -z $target; then ++ io_romio_flags="$io_romio_flags --target=$target" ++fi ++ ++fi ++ ++ io_romio_flags_define="$io_romio_flags CFLAGS='$CFLAGS' CPPFLAGS='$CPPFLAGS' FFLAGS='$FFLAGS' LDFLAGS='$LDFLAGS' --$io_romio_shared-shared --$io_romio_static-static $io_romio_flags $io_romio_prefix_arg --with-mpi=open_mpi --disable-aio" ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MCA_io_romio_COMPLETE_CONFIGURE_FLAGS "$io_romio_flags_define" ++_ACEOF ++ ++ ++ io_romio_flags="$io_romio_flags CFLAGS="'"'"$CFLAGS"'"'" CPPFLAGS="'"'"$CPPFLAGS"'"'" FFLAGS="'"'"$FFLAGS"'"'" LDFLAGS="'"'"$LDFLAGS"'"'" --$io_romio_shared-shared --$io_romio_static-static $io_romio_flags $io_romio_prefix_arg --with-mpi=open_mpi --disable-aio" ++ ++ ompi_show_subtitle "Configuring ROMIO distribution" ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/io/romio/romio is the directory to invoke in ++# $io_romio_flags is the list of arguments to pass ++# io_romio_happy=1 is actions to execute upon success ++# io_romio_happy=0 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/io/romio/romio" ++subdir_args="$io_romio_flags" ++subdir_success="io_romio_happy=1" ++subdir_failure="io_romio_happy=0" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ ++ if test "$io_romio_happy" = "1"; then ++ # grab the libraries list from ROMIO. We don't ++ # need this for building the component, as libtool ++ # will figure that part out. But we do need it for ++ # the wrapper settings ++ io_romio_save_LIBS="$LIBS" ++ LIBS= ++ . ompi/mca/io/romio/romio/localdefs ++ io_romio_LIBS="$LIBS" ++ LIBS="$io_romio_save_LIBS" ++ ++ echo "ROMIO distribution configured successfully" ++ io_romio_WRAPPER_EXTRA_LIBS="$io_romio_LIBS" ++ should_build=1 ++else ++ if test "$enable_io_romio" = "yes"; then ++ { { echo "$as_me:$LINENO: error: ROMIO distribution did not configure successfully" >&5 ++echo "$as_me: error: ROMIO distribution did not configure successfully" >&2;} ++ { (exit 1); exit 1; }; } ++else ++ { echo "$as_me:$LINENO: WARNING: ROMIO distribution did not configure successfully" >&5 ++echo "$as_me: WARNING: ROMIO distribution did not configure successfully" >&2;} ++fi ++ ++ should_build=0 ++fi ++ ++fi ++ ++fi ++ ++ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ { echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5 ++echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;} ++ { echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5 ++echo "$as_me: WARNING: This usually indicates an error in configure." >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=io ++ component=romio ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_io" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_io" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component io:romio can compile" >&5 ++echo $ECHO_N "checking if MCA component io:romio can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_io" = "romio" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"romio\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"romio\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_io" ; then ++ if test "$DIRECT_io" = "romio" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"romio\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"romio\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components romio" ++fi ++ ++ ++ ++ if test $should_build -eq 0 -a "$enable_dist" = "yes"; then ++ { { echo "$as_me:$LINENO: error: ROMIO disabled but --enable-dist specifed. This will result in a bad tarball. Aborting configure." >&5 ++echo "$as_me: error: ROMIO disabled but --enable-dist specifed. This will result in a bad tarball. Aborting configure." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ if test $should_build -eq 1; then ++ MCA_io_romio_SHOULD_BUILD_TRUE= ++ MCA_io_romio_SHOULD_BUILD_FALSE='#' ++else ++ MCA_io_romio_SHOULD_BUILD_TRUE='#' ++ MCA_io_romio_SHOULD_BUILD_FALSE= ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_io_romio_DSO=1 ++else ++ BUILD_io_romio_DSO=0 ++fi ++ ++ if test "$BUILD_io_romio_DSO" = "1"; then ++ OMPI_BUILD_io_romio_DSO_TRUE= ++ OMPI_BUILD_io_romio_DSO_FALSE='#' ++else ++ OMPI_BUILD_io_romio_DSO_TRUE='#' ++ OMPI_BUILD_io_romio_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "$define_mpi_io" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/io/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component io:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=io ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_io" ; then ++ if test "$DIRECT_io" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=io ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_io" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/io/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/io/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=io ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_io" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_io" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component io:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component io:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_io" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_io" ; then ++ if test "$DIRECT_io" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_io_ALL_COMPONENTS="$all_components" ++ MCA_io_STATIC_COMPONENTS="$static_components" ++ MCA_io_DSO_COMPONENTS="$dso_components" ++ MCA_io_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_io_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_io_ALL_SUBDIRS="$MCA_io_ALL_SUBDIRS mca/io/$item" ++ done ++ ++ ++ ++ MCA_io_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_io_STATIC_SUBDIRS="$MCA_io_STATIC_SUBDIRS mca/io/$item" ++ done ++ ++ ++ ++ MCA_io_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_io_DSO_SUBDIRS="$MCA_io_DSO_SUBDIRS mca/io/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "io" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PROVIDE_MPI_FILE_INTERFACE $define_mpi_io ++_ACEOF ++ ++ if test "$define_mpi_io" = "1"; then ++ OMPI_PROVIDE_MPI_FILE_INTERFACE_TRUE= ++ OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE='#' ++else ++ OMPI_PROVIDE_MPI_FILE_INTERFACE_TRUE='#' ++ OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE= ++fi ++ ++ ++# common has to go up front ++ if test "mpool" = "common" ; then ++ MCA_ompi_FRAMEWORKS="mpool $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/mpool $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_mpool_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_mpool_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_mpool_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS mpool" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/mpool" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_mpool_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_mpool_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_mpool_STATIC_SUBDIRS)" ++ fi ++ if test "mpool" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/mpool/libmca_mpool.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_mpool_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework mpool" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "mpool" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/mpool/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework mpool" >&5 ++echo $ECHO_N "checking for no configure components in framework mpool... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: fake, rdma, sm" >&5 ++echo "${ECHO_T}fake, rdma, sm" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework mpool" >&5 ++echo $ECHO_N "checking for m4 configure components in framework mpool... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component mpool:fake (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=mpool ++ component=fake ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_mpool" ; then ++ if test "$DIRECT_mpool" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=mpool ++ component=fake ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_mpool" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=mpool ++ component=fake ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_mpool" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_mpool" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component mpool:fake can compile" >&5 ++echo $ECHO_N "checking if MCA component mpool:fake can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_mpool" = "fake" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"fake\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"fake\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_mpool" ; then ++ if test "$DIRECT_mpool" = "fake" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"fake\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"fake\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components fake" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_mpool_fake_DSO=1 ++ else ++ BUILD_mpool_fake_DSO=0 ++ fi ++ if test "$BUILD_mpool_fake_DSO" = "1"; then ++ OMPI_BUILD_mpool_fake_DSO_TRUE= ++ OMPI_BUILD_mpool_fake_DSO_FALSE='#' ++else ++ OMPI_BUILD_mpool_fake_DSO_TRUE='#' ++ OMPI_BUILD_mpool_fake_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component mpool:rdma (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=mpool ++ component=rdma ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_mpool" ; then ++ if test "$DIRECT_mpool" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=mpool ++ component=rdma ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_mpool" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=mpool ++ component=rdma ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_mpool" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_mpool" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component mpool:rdma can compile" >&5 ++echo $ECHO_N "checking if MCA component mpool:rdma can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_mpool" = "rdma" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"rdma\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"rdma\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_mpool" ; then ++ if test "$DIRECT_mpool" = "rdma" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"rdma\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"rdma\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components rdma" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_mpool_rdma_DSO=1 ++ else ++ BUILD_mpool_rdma_DSO=0 ++ fi ++ if test "$BUILD_mpool_rdma_DSO" = "1"; then ++ OMPI_BUILD_mpool_rdma_DSO_TRUE= ++ OMPI_BUILD_mpool_rdma_DSO_FALSE='#' ++else ++ OMPI_BUILD_mpool_rdma_DSO_TRUE='#' ++ OMPI_BUILD_mpool_rdma_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component mpool:sm (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=mpool ++ component=sm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_mpool" ; then ++ if test "$DIRECT_mpool" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=mpool ++ component=sm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_mpool" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=mpool ++ component=sm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_mpool" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_mpool" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component mpool:sm can compile" >&5 ++echo $ECHO_N "checking if MCA component mpool:sm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_mpool" = "sm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_mpool" ; then ++ if test "$DIRECT_mpool" = "sm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components sm" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_mpool_sm_DSO=1 ++ else ++ BUILD_mpool_sm_DSO=0 ++ fi ++ if test "$BUILD_mpool_sm_DSO" = "1"; then ++ OMPI_BUILD_mpool_sm_DSO_TRUE= ++ OMPI_BUILD_mpool_sm_DSO_FALSE='#' ++else ++ OMPI_BUILD_mpool_sm_DSO_TRUE='#' ++ OMPI_BUILD_mpool_sm_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/mpool/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component mpool:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=mpool ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_mpool" ; then ++ if test "$DIRECT_mpool" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=mpool ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_mpool" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/mpool/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/mpool/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=mpool ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_mpool" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_mpool" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component mpool:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component mpool:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_mpool" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_mpool" ; then ++ if test "$DIRECT_mpool" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_mpool_ALL_COMPONENTS="$all_components" ++ MCA_mpool_STATIC_COMPONENTS="$static_components" ++ MCA_mpool_DSO_COMPONENTS="$dso_components" ++ MCA_mpool_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_mpool_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_mpool_ALL_SUBDIRS="$MCA_mpool_ALL_SUBDIRS mca/mpool/$item" ++ done ++ ++ ++ ++ MCA_mpool_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_mpool_STATIC_SUBDIRS="$MCA_mpool_STATIC_SUBDIRS mca/mpool/$item" ++ done ++ ++ ++ ++ MCA_mpool_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_mpool_DSO_SUBDIRS="$MCA_mpool_DSO_SUBDIRS mca/mpool/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "mpool" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "mtl" = "common" ; then ++ MCA_ompi_FRAMEWORKS="mtl $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/mtl $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_mtl_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_mtl_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_mtl_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS mtl" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/mtl" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_mtl_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_mtl_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_mtl_STATIC_SUBDIRS)" ++ fi ++ if test "mtl" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/mtl/libmca_mtl.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_mtl_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework mtl" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "mtl" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/mtl/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework mtl" >&5 ++echo $ECHO_N "checking for no configure components in framework mtl... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework mtl" >&5 ++echo $ECHO_N "checking for m4 configure components in framework mtl... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: mx, portals, psm" >&5 ++echo "${ECHO_T}mx, portals, psm" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component mtl:mx (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=mtl ++ component=mx ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_mtl" ; then ++ if test "$DIRECT_mtl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=mtl ++ component=mx ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_mtl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-mx was given. ++if test "${with_mx+set}" = set; then ++ withval=$with_mx; ++fi ++ ++ ++# Check whether --with-mx-libdir was given. ++if test "${with_mx_libdir+set}" = set; then ++ withval=$with_mx_libdir; ++fi ++ ++ ++ ompi_check_mx_mtl_mx_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_mx_mtl_mx_save_LDFLAGS="$LDFLAGS" ++ ompi_check_mx_mtl_mx_save_LIBS="$LIBS" ++ ++ if test "$with_mx" != "no"; then ++ if test ! -z "$with_mx" -a "$with_mx" != "yes"; then ++ ompi_check_mx_dir="$with_mx" ++fi ++ ++ if test ! -z "$with_mx_libdir" -a "$with_mx_libdir" != "yes"; then ++ ompi_check_mx_libdir="$with_mx_libdir" ++fi ++ ++ ++ ++ ompi_check_package_mtl_mx_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_mtl_mx_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_mtl_mx_save_LIBS="$LIBS" ++ ++ ompi_check_package_mtl_mx_orig_CPPFLAGS="$mtl_mx_CPPFLAGS" ++ ompi_check_package_mtl_mx_orig_LDFLAGS="$mtl_mx_LDFLAGS" ++ ompi_check_package_mtl_mx_orig_LIBS="$mtl_mx_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_myriexpress_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_mx_dir" = "/usr" -o "$ompi_check_mx_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for myriexpress.h" >&5 ++echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5 ++echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking myriexpress.h usability" >&5 ++echo $ECHO_N "checking myriexpress.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking myriexpress.h presence" >&5 ++echo $ECHO_N "checking myriexpress.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: myriexpress.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: myriexpress.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: myriexpress.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: myriexpress.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for myriexpress.h" >&5 ++echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_myriexpress_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5 ++echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; } ++ ++fi ++if test $ac_cv_header_myriexpress_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_myriexpress_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_mx_dir" != ""; then ++ mtl_mx_CPPFLAGS="$mtl_mx_CPPFLAGS -I$ompi_check_mx_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_mx_dir/include" ++fi ++ ++ if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for myriexpress.h" >&5 ++echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5 ++echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking myriexpress.h usability" >&5 ++echo $ECHO_N "checking myriexpress.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking myriexpress.h presence" >&5 ++echo $ECHO_N "checking myriexpress.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: myriexpress.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: myriexpress.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: myriexpress.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: myriexpress.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for myriexpress.h" >&5 ++echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_myriexpress_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_myriexpress_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5 ++echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; } ++ ++fi ++if test $ac_cv_header_myriexpress_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_myriexpress_mx_finalize ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_mx_libdir" != ""; then ++ # libdir was specified - search only there ++ mtl_mx_LDFLAGS="$mtl_mx_LDFLAGS -L$ompi_check_mx_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_mx_libdir" ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS" ++ mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_mx_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS" ++ mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ mtl_mx_LDFLAGS="$mtl_mx_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS" ++ mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ mtl_mx_LDFLAGS="$mtl_mx_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS" ++ mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ mtl_mx_LIBS="-lmyriexpress " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_myriexpress_mx_finalize ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_mx_libdir" != ""; then ++ # libdir was specified - search only there ++ mtl_mx_LDFLAGS="$mtl_mx_LDFLAGS -L$ompi_check_mx_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_mx_libdir" ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS" ++ mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_mx_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS" ++ mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ mtl_mx_LDFLAGS="$mtl_mx_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS" ++ mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ mtl_mx_LDFLAGS="$mtl_mx_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5 ++echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; } ++if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lmyriexpress $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char mx_finalize (); ++int ++main () ++{ ++return mx_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_myriexpress_mx_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_myriexpress_mx_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; } ++if test $ac_cv_lib_myriexpress_mx_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS" ++ mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS" ++ unset ac_cv_lib_myriexpress_mx_finalize ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ mtl_mx_LIBS="-lmyriexpress " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ ompi_check_mx_happy="yes" ++else ++ mtl_mx_CPPFLAGS="$ompi_check_package_mtl_mx_orig_CPPFLAGS" ++ mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS" ++ mtl_mx_LIBS="$ompi_check_package_mtl_mx_orig_LIBS" ++ ompi_check_mx_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_mtl_mx_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS" ++ LIBS="$ompi_check_package_mtl_mx_save_LIBS" ++ ++else ++ ompi_check_mx_happy="no" ++fi ++ ++ ++ CPPFLAGS="$CPPFLAGS $mtl_mx_CPPFLAGS" ++ LDFLAGS="$LDFLAGS $mtl_mx_LDFLAGS" ++ LIBS="$LIBS $mtl_mx_LIBS" ++ ++ # need at least version 1.0 ++ if test "ompi_check_mx_happy" = "yes"; then ++ { echo "$as_me:$LINENO: checking for MX version 1.0 or later" >&5 ++echo $ECHO_N "checking for MX version 1.0 or later... $ECHO_C" >&6; } ++if test "${ompi_cv_mx_version_ok+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++ ++int ++main () ++{ ++ ++#if MX_API < 0x300 ++#error "Version less than 0x300" ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ompi_cv_mx_version_ok="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_mx_version_ok="no" ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_mx_version_ok" >&5 ++echo "${ECHO_T}$ompi_cv_mx_version_ok" >&6; } ++fi ++ ++ if test "$ompi_cv_mx_version_ok" = "no"; then ++ ompi_check_mx_happy="no" ++fi ++ ++ ++ if test "$ompi_check_mx_happy" = "yes"; then ++ ++for ac_header in mx_extensions.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++ ++for ac_func in mx_forget mx_register_unexp_handler ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ ++ { echo "$as_me:$LINENO: checking for mx_open_board" >&5 ++echo $ECHO_N "checking for mx_open_board... $ECHO_C" >&6; } ++if test "${ompi_cv_func_mx_open_board+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++ ++int ++main () ++{ ++ ++mx_open_board(0, NULL); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_mx_open_board="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_mx_open_board="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_mx_open_board" >&5 ++echo "${ECHO_T}$ompi_cv_func_mx_open_board" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for mx__get_mapper_state" >&5 ++echo $ECHO_N "checking for mx__get_mapper_state... $ECHO_C" >&6; } ++if test "${ompi_cv_func_mx__get_mapper_state+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#include ++#include ++ ++int ++main () ++{ ++ ++mx__get_mapper_state(NULL, NULL); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ompi_cv_func_mx__get_mapper_state="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_func_mx__get_mapper_state="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_func_mx__get_mapper_state" >&5 ++echo "${ECHO_T}$ompi_cv_func_mx__get_mapper_state" >&6; } ++ ++ if test "$ompi_cv_func_mx_open_board" = "yes" -a "$ompi_cv_func_mx__get_mapper_state" = "yes"; then ++ mx_provide_mapper_state=1 ++ ++else ++ mx_provide_mapper_state=0 ++ ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MX_HAVE_MAPPER_STATE $mx_provide_mapper_state ++_ACEOF ++ ++ ++else ++ { echo "$as_me:$LINENO: WARNING: The MX support for Open MPI will be compiled without the ++MX extensions, which may result in lower performance. Please upgrade ++to at least MX 1.2.0 to enable the MX extensions." >&5 ++echo "$as_me: WARNING: The MX support for Open MPI will be compiled without the ++MX extensions, which may result in lower performance. Please upgrade ++to at least MX 1.2.0 to enable the MX extensions." >&2;} ++fi ++ ++done ++ ++fi ++ ++ ++ CPPFLAGS="$ompi_check_mx_mtl_mx_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_mx_mtl_mx_save_LDFLAGS" ++ LIBS="$ompi_check_mx_mtl_mx_save_LIBS" ++ ++ if test "$ompi_check_mx_happy" = "yes" -a "$enable_progress_threads" = "yes"; then ++ { echo "$as_me:$LINENO: WARNING: MX driver does not currently support progress threads. Disabling BTL." >&5 ++echo "$as_me: WARNING: MX driver does not currently support progress threads. Disabling BTL." >&2;} ++ ompi_check_mx_happy="no" ++fi ++ ++ ++ if test "$ompi_check_mx_happy" = "yes"; then ++ mtl_mx_happy="yes" ++else ++ if test ! -z "$with_mx" -a "$with_mx" != "no"; then ++ { { echo "$as_me:$LINENO: error: MX support requested but not found. Aborting" >&5 ++echo "$as_me: error: MX support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ mtl_mx_happy="no" ++fi ++ ++ ++ ++ if test "$mtl_mx_happy" = "yes"; then ++ mtl_mx_WRAPPER_EXTRA_LDFLAGS="$mtl_mx_LDFLAGS" ++ mtl_mx_WRAPPER_EXTRA_LIBS="$mtl_mx_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # substitute in the things needed to build mx ++ ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=mtl ++ component=mx ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_mtl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_mtl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component mtl:mx can compile" >&5 ++echo $ECHO_N "checking if MCA component mtl:mx can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_mtl" = "mx" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"mx\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_mtl" ; then ++ if test "$DIRECT_mtl" = "mx" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"mx\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components mx" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_mtl_mx_DSO=1 ++else ++ BUILD_mtl_mx_DSO=0 ++fi ++ ++ if test "$BUILD_mtl_mx_DSO" = "1"; then ++ OMPI_BUILD_mtl_mx_DSO_TRUE= ++ OMPI_BUILD_mtl_mx_DSO_FALSE='#' ++else ++ OMPI_BUILD_mtl_mx_DSO_TRUE='#' ++ OMPI_BUILD_mtl_mx_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component mtl:portals (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=mtl ++ component=portals ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_mtl" ; then ++ if test "$DIRECT_mtl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=mtl ++ component=portals ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_mtl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ # save compiler flags so that we don't alter them for later ++ # components. ++ check_portals_save_CPPFLAGS="$CPPFLAGS" ++ check_portals_save_LDFLAGS="$LDFLAGS" ++ check_portals_save_LIBS="$LIBS" ++ ++ check_portals_CPPFLAGS= ++ check_portals_LDFLAGS= ++ check_portals_LIBS= ++ ++ check_portals_configuration="none" ++ ompi_check_portals_happy="yes" ++ ++ # Get some configuration information ++ ++# Check whether --with-portals was given. ++if test "${with_portals+set}" = set; then ++ withval=$with_portals; ++fi ++ ++ ++# Check whether --with-portals-config was given. ++if test "${with_portals_config+set}" = set; then ++ withval=$with_portals_config; ++fi ++ ++ ++# Check whether --with-portals-libs was given. ++if test "${with_portals_libs+set}" = set; then ++ withval=$with_portals_libs; ++fi ++ ++ ++ { echo "$as_me:$LINENO: checking for Portals configuration" >&5 ++echo $ECHO_N "checking for Portals configuration... $ECHO_C" >&6; } ++ if test "$with_portals_config" = "" ; then ++ with_portals_config="utcp" ++ elif test "$with_portals_config" = "redstorm" ; then ++ with_portals_config="xt3" ++ elif test "$with_portals_config" = "cnl_modex" ; then ++ with_portals_config="xt3-modex" ++ fi ++ OMPI_PORTALS_UTCP=0 ++ OMPI_PORTALS_CRAYXT3=0 ++ OMPI_PORTALS_CRAYXT3_MODEX=0 ++ case "$with_portals_config" in ++ "utcp") ++ OMPI_PORTALS_UTCP=1 ++ OMPI_PORTALS_HAVE_EVENT_UNLINK=1 ++ check_portals_LIBS="-lp3utcp -lp3api -lp3lib -lp3rt -lp3utcp" ++ check_portals_header_prefix= ++ { echo "$as_me:$LINENO: result: utcp" >&5 ++echo "${ECHO_T}utcp" >&6; } ++ ;; ++ "xt3") ++ OMPI_PORTALS_CRAYXT3=1 ++ OMPI_PORTALS_HAVE_EVENT_UNLINK=0 ++ check_portals_LIBS= ++ check_portals_header_prefix="portals/" ++ { echo "$as_me:$LINENO: result: Cray XT3" >&5 ++echo "${ECHO_T}Cray XT3" >&6; } ++ ;; ++ "xt3-modex") ++ OMPI_PORTALS_CRAYXT3_MODEX=1 ++ OMPI_PORTALS_HAVE_EVENT_UNLINK=0 ++ check_portals_LIBS= ++ check_portals_header_prefix="portals/" ++ { echo "$as_me:$LINENO: result: Cray XT3 - Modex" >&5 ++echo "${ECHO_T}Cray XT3 - Modex" >&6; } ++ ;; ++ *) ++ # ok to call ERROR here - the user specified something invalid. ++ # that should be brought to his attention ++ { { echo "$as_me:$LINENO: error: unknown Portals configuration. Can not continue" >&5 ++echo "$as_me: error: unknown Portals configuration. Can not continue" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PORTALS_HAVE_EVENT_UNLINK $OMPI_PORTALS_HAVE_EVENT_UNLINK ++_ACEOF ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PORTALS_UTCP $OMPI_PORTALS_UTCP ++_ACEOF ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PORTALS_CRAYXT3 $OMPI_PORTALS_CRAYXT3 ++_ACEOF ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_PORTALS_CRAYXT3_MODEX $OMPI_PORTALS_CRAYXT3_MODEX ++_ACEOF ++ ++ ++ # Add correct -I and -L flags ++ if test -n "$with_portals"; then ++ if test -d "$with_portals/include"; then ++ check_portals_CPPFLAGS="-I$with_portals/include" ++ CPPFLAGS="$CPPFLAGS $check_portals_CPPFLAGS" ++fi ++ ++ if test -d "$with_portals/lib"; then ++ check_portals_LDFLAGS="-L$with_portals/lib" ++ LDFLAGS="$LDFLAGS $check_portals_LDFLAGS" ++fi ++ ++fi ++ ++ ++ # Try to find all the portals libraries (this is not fun!) ++ if test -n "$with_portals_libs" ; then ++ check_portals_LIBS="" ++ for lib in $with_portals_libs ; do ++ check_portals_LIBS="$check_portals_LIBS -l$lib" ++ done ++ fi ++ ++ # check for portals ++ LIBS="$LIBS $check_portals_LIBS" ++ ++for ac_header in ${check_portals_header_prefix}portals3.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ { echo "$as_me:$LINENO: checking if possible to link Portals application" >&5 ++echo $ECHO_N "checking if possible to link Portals application... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include <${check_portals_header_prefix}portals3.h> ++int ++main () ++{ ++int i; PtlInit(&i); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ompi_check_portals_happy="yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ompi_check_portals_happy="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++else ++ ompi_check_portals_happy="no" ++fi ++ ++done ++ ++ ++ # Deal with static-only Portals UTCP libs. See note in ++ # ompi/mca/common/portals/configure.m4. Then possibly cry. ++ if test "$with_portals_config" = "utcp" ; then ++ if test "mtl_portals" != "common_portals" ; then ++ check_portals_LIBS= ++ fi ++ fi ++ ++ # reset the flags for the next test ++ CPPFLAGS="$check_portals_save_CPPFLAGS" ++ LDFLAGS="$check_portals_save_LDFLAGS" ++ LIBS="$check_portals_save_LIBS" ++ ++ mtl_portals_CPPFLAGS="$check_portals_CPPFLAGS" ++ mtl_portals_LDFLAGS="$check_portals_LDFLAGS" ++ mtl_portals_LIBS="$check_portals_LIBS" ++ ++ if test "$ompi_check_portals_happy" = "yes"; then ++ mtl_portals_happy="yes" ++else ++ if test ! -z "$with_portals" -a "$with_portals" != "no"; then ++ { { echo "$as_me:$LINENO: error: Portals support requested but not found. Aborting" >&5 ++echo "$as_me: error: Portals support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ mtl_portals_happy="no" ++fi ++ ++ ++ ++ if test "$mtl_portals_happy" = "yes"; then ++ mtl_portals_WRAPPER_EXTRA_LDFLAGS="$mtl_portals_LDFLAGS" ++ mtl_portals_WRAPPER_EXTRA_LIBS="$mtl_portals_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # substitute in the things needed to build portals ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=mtl ++ component=portals ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_mtl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_mtl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component mtl:portals can compile" >&5 ++echo $ECHO_N "checking if MCA component mtl:portals can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_mtl" = "portals" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"portals\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_mtl" ; then ++ if test "$DIRECT_mtl" = "portals" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"portals\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components portals" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_mtl_portals_DSO=1 ++else ++ BUILD_mtl_portals_DSO=0 ++fi ++ ++ if test "$BUILD_mtl_portals_DSO" = "1"; then ++ OMPI_BUILD_mtl_portals_DSO_TRUE= ++ OMPI_BUILD_mtl_portals_DSO_FALSE='#' ++else ++ OMPI_BUILD_mtl_portals_DSO_TRUE='#' ++ OMPI_BUILD_mtl_portals_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component mtl:psm (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=mtl ++ component=psm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_mtl" ; then ++ if test "$DIRECT_mtl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=mtl ++ component=psm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_mtl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ ++ ++# Check whether --with-psm was given. ++if test "${with_psm+set}" = set; then ++ withval=$with_psm; ++fi ++ ++ ++# Check whether --with-psm-libdir was given. ++if test "${with_psm_libdir+set}" = set; then ++ withval=$with_psm_libdir; ++fi ++ ++ ++ ompi_check_psm_mtl_psm_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_psm_mtl_psm_save_LDFLAGS="$LDFLAGS" ++ ompi_check_psm_mtl_psm_save_LIBS="$LIBS" ++ ++ if test "$with_psm" != "no"; then ++ if test ! -z "$with_psm" -a "$with_psm" != "yes"; then ++ ompi_check_psm_dir="$with_psm" ++fi ++ ++ if test ! -z "$with_psm_libdir" -a "$with_psm_libdir" != "yes"; then ++ ompi_check_psm_libdir="$with_psm_libdir" ++fi ++ ++ ++ ++ ompi_check_package_mtl_psm_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_mtl_psm_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_mtl_psm_save_LIBS="$LIBS" ++ ++ ompi_check_package_mtl_psm_orig_CPPFLAGS="$mtl_psm_CPPFLAGS" ++ ompi_check_package_mtl_psm_orig_LDFLAGS="$mtl_psm_LDFLAGS" ++ ompi_check_package_mtl_psm_orig_LIBS="$mtl_psm_LIBS" ++ ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ac_cv_header_psm_h ++ ++ ompi_check_package_header_happy="no" ++ if test "$ompi_check_psm_dir" = "/usr" -o "$ompi_check_psm_dir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for header without includes" >&5 ++echo "${ECHO_T}looking for header without includes" >&6; } ++ if test "${ac_cv_header_psm_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for psm.h" >&5 ++echo $ECHO_N "checking for psm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_psm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_psm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_psm_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking psm.h usability" >&5 ++echo $ECHO_N "checking psm.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking psm.h presence" >&5 ++echo $ECHO_N "checking psm.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: psm.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: psm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: psm.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: psm.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: psm.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: psm.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: psm.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: psm.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: psm.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: psm.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: psm.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: psm.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: psm.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: psm.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: psm.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: psm.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for psm.h" >&5 ++echo $ECHO_N "checking for psm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_psm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_psm_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_psm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_psm_h" >&6; } ++ ++fi ++if test $ac_cv_header_psm_h = yes; then ++ ompi_check_package_header_happy="yes" ++else ++ ompi_check_package_header_happy="no" ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ # no go on the as is - reset the cache and try again ++ unset ac_cv_header_psm_h ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_header_happy" = "no"; then ++ if test "$ompi_check_psm_dir" != ""; then ++ mtl_psm_CPPFLAGS="$mtl_psm_CPPFLAGS -I$ompi_check_psm_dir/include" ++ CPPFLAGS="$CPPFLAGS -I$ompi_check_psm_dir/include" ++fi ++ ++ if test "${ac_cv_header_psm_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for psm.h" >&5 ++echo $ECHO_N "checking for psm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_psm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_psm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_psm_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking psm.h usability" >&5 ++echo $ECHO_N "checking psm.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking psm.h presence" >&5 ++echo $ECHO_N "checking psm.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: psm.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: psm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: psm.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: psm.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: psm.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: psm.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: psm.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: psm.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: psm.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: psm.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: psm.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: psm.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: psm.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: psm.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: psm.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: psm.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for psm.h" >&5 ++echo $ECHO_N "checking for psm.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_psm_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_psm_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_psm_h" >&5 ++echo "${ECHO_T}$ac_cv_header_psm_h" >&6; } ++ ++fi ++if test $ac_cv_header_psm_h = yes; then ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_psm_infinipath_psm_finalize ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_psm_libdir" != ""; then ++ # libdir was specified - search only there ++ mtl_psm_LDFLAGS="$mtl_psm_LDFLAGS -L$ompi_check_psm_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_psm_libdir" ++ { echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5 ++echo $ECHO_N "checking for psm_finalize in -lpsm_infinipath... $ECHO_C" >&6; } ++if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpsm_infinipath $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char psm_finalize (); ++int ++main () ++{ ++return psm_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_psm_infinipath_psm_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_psm_infinipath_psm_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_psm_infinipath_psm_finalize" >&6; } ++if test $ac_cv_lib_psm_infinipath_psm_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS" ++ mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS" ++ unset ac_cv_lib_psm_infinipath_psm_finalize ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_psm_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5 ++echo $ECHO_N "checking for psm_finalize in -lpsm_infinipath... $ECHO_C" >&6; } ++if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpsm_infinipath $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char psm_finalize (); ++int ++main () ++{ ++return psm_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_psm_infinipath_psm_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_psm_infinipath_psm_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_psm_infinipath_psm_finalize" >&6; } ++if test $ac_cv_lib_psm_infinipath_psm_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS" ++ mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS" ++ unset ac_cv_lib_psm_infinipath_psm_finalize ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ mtl_psm_LDFLAGS="$mtl_psm_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5 ++echo $ECHO_N "checking for psm_finalize in -lpsm_infinipath... $ECHO_C" >&6; } ++if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpsm_infinipath $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char psm_finalize (); ++int ++main () ++{ ++return psm_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_psm_infinipath_psm_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_psm_infinipath_psm_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_psm_infinipath_psm_finalize" >&6; } ++if test $ac_cv_lib_psm_infinipath_psm_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS" ++ mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS" ++ unset ac_cv_lib_psm_infinipath_psm_finalize ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ mtl_psm_LDFLAGS="$mtl_psm_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5 ++echo $ECHO_N "checking for psm_finalize in -lpsm_infinipath... $ECHO_C" >&6; } ++if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpsm_infinipath $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char psm_finalize (); ++int ++main () ++{ ++return psm_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_psm_infinipath_psm_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_psm_infinipath_psm_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_psm_infinipath_psm_finalize" >&6; } ++if test $ac_cv_lib_psm_infinipath_psm_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS" ++ mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS" ++ unset ac_cv_lib_psm_infinipath_psm_finalize ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ mtl_psm_LIBS="-lpsm_infinipath " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++else ++ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ ++ # see comment above ++ unset ac_cv_lib_psm_infinipath_psm_finalize ++ ompi_check_package_lib_happy="no" ++ if test "$ompi_check_psm_libdir" != ""; then ++ # libdir was specified - search only there ++ mtl_psm_LDFLAGS="$mtl_psm_LDFLAGS -L$ompi_check_psm_libdir" ++ LDFLAGS="$LDFLAGS -L$ompi_check_psm_libdir" ++ { echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5 ++echo $ECHO_N "checking for psm_finalize in -lpsm_infinipath... $ECHO_C" >&6; } ++if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpsm_infinipath $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char psm_finalize (); ++int ++main () ++{ ++return psm_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_psm_infinipath_psm_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_psm_infinipath_psm_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_psm_infinipath_psm_finalize" >&6; } ++if test $ac_cv_lib_psm_infinipath_psm_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS" ++ mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS" ++ unset ac_cv_lib_psm_infinipath_psm_finalize ++fi ++ ++else ++ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$ompi_check_psm_dir" ++ if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then ++ # try as is... ++ { echo "$as_me:$LINENO: result: looking for library without search path" >&5 ++echo "${ECHO_T}looking for library without search path" >&6; } ++ { echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5 ++echo $ECHO_N "checking for psm_finalize in -lpsm_infinipath... $ECHO_C" >&6; } ++if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpsm_infinipath $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char psm_finalize (); ++int ++main () ++{ ++return psm_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_psm_infinipath_psm_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_psm_infinipath_psm_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_psm_infinipath_psm_finalize" >&6; } ++if test $ac_cv_lib_psm_infinipath_psm_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS" ++ mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS" ++ unset ac_cv_lib_psm_infinipath_psm_finalize ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ mtl_psm_LDFLAGS="$mtl_psm_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ { echo "$as_me:$LINENO: result: looking for library in lib" >&5 ++echo "${ECHO_T}looking for library in lib" >&6; } ++ { echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5 ++echo $ECHO_N "checking for psm_finalize in -lpsm_infinipath... $ECHO_C" >&6; } ++if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpsm_infinipath $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char psm_finalize (); ++int ++main () ++{ ++return psm_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_psm_infinipath_psm_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_psm_infinipath_psm_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_psm_infinipath_psm_finalize" >&6; } ++if test $ac_cv_lib_psm_infinipath_psm_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS" ++ mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS" ++ unset ac_cv_lib_psm_infinipath_psm_finalize ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ if test "$ompi_check_package_libdir" != ""; then ++ mtl_psm_LDFLAGS="$mtl_psm_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ { echo "$as_me:$LINENO: result: looking for library in lib64" >&5 ++echo "${ECHO_T}looking for library in lib64" >&6; } ++ { echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5 ++echo $ECHO_N "checking for psm_finalize in -lpsm_infinipath... $ECHO_C" >&6; } ++if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lpsm_infinipath $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char psm_finalize (); ++int ++main () ++{ ++return psm_finalize (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_psm_infinipath_psm_finalize=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_psm_infinipath_psm_finalize=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5 ++echo "${ECHO_T}$ac_cv_lib_psm_infinipath_psm_finalize" >&6; } ++if test $ac_cv_lib_psm_infinipath_psm_finalize = yes; then ++ ompi_check_package_lib_happy="yes" ++else ++ ompi_check_package_lib_happy="no" ++fi ++ ++ if test "$ompi_check_package_lib_happy" = "no"; then ++ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS" ++ mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS" ++ unset ac_cv_lib_psm_infinipath_psm_finalize ++fi ++ ++fi ++ ++fi ++ ++fi ++ ++ ++ if test "$ompi_check_package_lib_happy" = "yes"; then ++ mtl_psm_LIBS="-lpsm_infinipath " ++ ompi_check_package_happy="yes" ++else ++ ompi_check_package_happy="no" ++fi ++ ++ ++ ++fi ++ ++ unset ompi_check_package_header_happy ++ ++ if test "$ompi_check_package_happy" = "yes"; then ++ ompi_check_psm_happy="yes" ++else ++ mtl_psm_CPPFLAGS="$ompi_check_package_mtl_psm_orig_CPPFLAGS" ++ mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS" ++ mtl_psm_LIBS="$ompi_check_package_mtl_psm_orig_LIBS" ++ ompi_check_psm_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_package_mtl_psm_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS" ++ LIBS="$ompi_check_package_mtl_psm_save_LIBS" ++ ++else ++ ompi_check_psm_happy="no" ++fi ++ ++ ++ CPPFLAGS="$ompi_check_psm_mtl_psm_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_psm_mtl_psm_save_LDFLAGS" ++ LIBS="$ompi_check_psm_mtl_psm_save_LIBS" ++ ++ if test "$ompi_check_psm_happy" = "yes" -a "$enable_progress_threads" = "yes"; then ++ { echo "$as_me:$LINENO: WARNING: PSM driver does not currently support progress threads. Disabling BTL." >&5 ++echo "$as_me: WARNING: PSM driver does not currently support progress threads. Disabling BTL." >&2;} ++ ompi_check_psm_happy="no" ++fi ++ ++ ++ if test "$ompi_check_psm_happy" = "yes"; then ++ mtl_psm_happy="yes" ++else ++ if test ! -z "$with_psm" -a "$with_psm" != "no"; then ++ { { echo "$as_me:$LINENO: error: PSM support requested but not found. Aborting" >&5 ++echo "$as_me: error: PSM support requested but not found. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++ mtl_psm_happy="no" ++fi ++ ++ ++ ++ if test "$mtl_psm_happy" = "yes"; then ++ mtl_psm_WRAPPER_EXTRA_LDFLAGS="$mtl_psm_LDFLAGS" ++ mtl_psm_WRAPPER_EXTRA_LIBS="$mtl_psm_LIBS" ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ # substitute in the things needed to build psm ++ ++ ++ ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=mtl ++ component=psm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_mtl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_mtl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component mtl:psm can compile" >&5 ++echo $ECHO_N "checking if MCA component mtl:psm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_mtl" = "psm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"psm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"psm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_mtl" ; then ++ if test "$DIRECT_mtl" = "psm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"psm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"psm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components psm" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_mtl_psm_DSO=1 ++else ++ BUILD_mtl_psm_DSO=0 ++fi ++ ++ if test "$BUILD_mtl_psm_DSO" = "1"; then ++ OMPI_BUILD_mtl_psm_DSO_TRUE= ++ OMPI_BUILD_mtl_psm_DSO_FALSE='#' ++else ++ OMPI_BUILD_mtl_psm_DSO_TRUE='#' ++ OMPI_BUILD_mtl_psm_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/mtl/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component mtl:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=mtl ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_mtl" ; then ++ if test "$DIRECT_mtl" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=mtl ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_mtl" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/mtl/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/mtl/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=mtl ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_mtl" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_mtl" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component mtl:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component mtl:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_mtl" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_mtl" ; then ++ if test "$DIRECT_mtl" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_mtl_ALL_COMPONENTS="$all_components" ++ MCA_mtl_STATIC_COMPONENTS="$static_components" ++ MCA_mtl_DSO_COMPONENTS="$dso_components" ++ MCA_mtl_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_mtl_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_mtl_ALL_SUBDIRS="$MCA_mtl_ALL_SUBDIRS mca/mtl/$item" ++ done ++ ++ ++ ++ MCA_mtl_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_mtl_STATIC_SUBDIRS="$MCA_mtl_STATIC_SUBDIRS mca/mtl/$item" ++ done ++ ++ ++ ++ MCA_mtl_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_mtl_DSO_SUBDIRS="$MCA_mtl_DSO_SUBDIRS mca/mtl/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "mtl" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "osc" = "common" ; then ++ MCA_ompi_FRAMEWORKS="osc $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/osc $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_osc_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_osc_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_osc_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS osc" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/osc" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_osc_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_osc_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_osc_STATIC_SUBDIRS)" ++ fi ++ if test "osc" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/osc/libmca_osc.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_osc_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework osc" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "osc" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/osc/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework osc" >&5 ++echo $ECHO_N "checking for no configure components in framework osc... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: pt2pt, rdma" >&5 ++echo "${ECHO_T}pt2pt, rdma" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework osc" >&5 ++echo $ECHO_N "checking for m4 configure components in framework osc... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component osc:pt2pt (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=osc ++ component=pt2pt ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_osc" ; then ++ if test "$DIRECT_osc" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=osc ++ component=pt2pt ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_osc" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=osc ++ component=pt2pt ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_osc" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_osc" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component osc:pt2pt can compile" >&5 ++echo $ECHO_N "checking if MCA component osc:pt2pt can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_osc" = "pt2pt" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"pt2pt\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"pt2pt\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_osc" ; then ++ if test "$DIRECT_osc" = "pt2pt" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"pt2pt\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"pt2pt\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components pt2pt" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_osc_pt2pt_DSO=1 ++ else ++ BUILD_osc_pt2pt_DSO=0 ++ fi ++ if test "$BUILD_osc_pt2pt_DSO" = "1"; then ++ OMPI_BUILD_osc_pt2pt_DSO_TRUE= ++ OMPI_BUILD_osc_pt2pt_DSO_FALSE='#' ++else ++ OMPI_BUILD_osc_pt2pt_DSO_TRUE='#' ++ OMPI_BUILD_osc_pt2pt_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component osc:rdma (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=osc ++ component=rdma ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_osc" ; then ++ if test "$DIRECT_osc" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=osc ++ component=rdma ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_osc" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=osc ++ component=rdma ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_osc" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_osc" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component osc:rdma can compile" >&5 ++echo $ECHO_N "checking if MCA component osc:rdma can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_osc" = "rdma" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"rdma\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"rdma\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_osc" ; then ++ if test "$DIRECT_osc" = "rdma" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"rdma\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"rdma\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components rdma" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_osc_rdma_DSO=1 ++ else ++ BUILD_osc_rdma_DSO=0 ++ fi ++ if test "$BUILD_osc_rdma_DSO" = "1"; then ++ OMPI_BUILD_osc_rdma_DSO_TRUE= ++ OMPI_BUILD_osc_rdma_DSO_FALSE='#' ++else ++ OMPI_BUILD_osc_rdma_DSO_TRUE='#' ++ OMPI_BUILD_osc_rdma_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/osc/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component osc:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=osc ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_osc" ; then ++ if test "$DIRECT_osc" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=osc ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_osc" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/osc/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/osc/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=osc ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_osc" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_osc" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component osc:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component osc:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_osc" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_osc" ; then ++ if test "$DIRECT_osc" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_osc_ALL_COMPONENTS="$all_components" ++ MCA_osc_STATIC_COMPONENTS="$static_components" ++ MCA_osc_DSO_COMPONENTS="$dso_components" ++ MCA_osc_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_osc_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_osc_ALL_SUBDIRS="$MCA_osc_ALL_SUBDIRS mca/osc/$item" ++ done ++ ++ ++ ++ MCA_osc_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_osc_STATIC_SUBDIRS="$MCA_osc_STATIC_SUBDIRS mca/osc/$item" ++ done ++ ++ ++ ++ MCA_osc_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_osc_DSO_SUBDIRS="$MCA_osc_DSO_SUBDIRS mca/osc/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "osc" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "pml" = "common" ; then ++ MCA_ompi_FRAMEWORKS="pml $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/pml $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_pml_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_pml_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_pml_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS pml" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/pml" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pml_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pml_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pml_STATIC_SUBDIRS)" ++ fi ++ if test "pml" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/pml/libmca_pml.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_pml_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework pml" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "pml" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/pml/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework pml" >&5 ++echo $ECHO_N "checking for no configure components in framework pml... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: cm, ob1" >&5 ++echo "${ECHO_T}cm, ob1" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework pml" >&5 ++echo $ECHO_N "checking for m4 configure components in framework pml... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: crcpw, v" >&5 ++echo "${ECHO_T}crcpw, v" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component pml:cm (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=pml ++ component=cm ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_pml" ; then ++ if test "$DIRECT_pml" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=pml ++ component=cm ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_pml" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=pml ++ component=cm ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_pml" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_pml" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component pml:cm can compile" >&5 ++echo $ECHO_N "checking if MCA component pml:cm can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_pml" = "cm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"cm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"cm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_pml" ; then ++ if test "$DIRECT_pml" = "cm" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"cm\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"cm\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components cm" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_pml_cm_DSO=1 ++ else ++ BUILD_pml_cm_DSO=0 ++ fi ++ if test "$BUILD_pml_cm_DSO" = "1"; then ++ OMPI_BUILD_pml_cm_DSO_TRUE= ++ OMPI_BUILD_pml_cm_DSO_FALSE='#' ++else ++ OMPI_BUILD_pml_cm_DSO_TRUE='#' ++ OMPI_BUILD_pml_cm_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ompi_show_subsubsubtitle "MCA component pml:ob1 (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=pml ++ component=ob1 ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_pml" ; then ++ if test "$DIRECT_pml" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=pml ++ component=ob1 ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_pml" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=pml ++ component=ob1 ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_pml" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_pml" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component pml:ob1 can compile" >&5 ++echo $ECHO_N "checking if MCA component pml:ob1 can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_pml" = "ob1" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"ob1\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"ob1\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_pml" ; then ++ if test "$DIRECT_pml" = "ob1" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"ob1\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"ob1\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components ob1" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_pml_ob1_DSO=1 ++ else ++ BUILD_pml_ob1_DSO=0 ++ fi ++ if test "$BUILD_pml_ob1_DSO" = "1"; then ++ OMPI_BUILD_pml_ob1_DSO_TRUE= ++ OMPI_BUILD_pml_ob1_DSO_FALSE='#' ++else ++ OMPI_BUILD_pml_ob1_DSO_TRUE='#' ++ OMPI_BUILD_pml_ob1_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ ompi_show_subsubsubtitle "MCA component pml:crcpw (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=pml ++ component=crcpw ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_pml" ; then ++ if test "$DIRECT_pml" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=pml ++ component=crcpw ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_pml" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ # If we don't want FT, don't compile this component ++ if test "$ompi_want_ft" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ ++ ++ ++ project=ompi ++ framework=pml ++ component=crcpw ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_pml" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_pml" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component pml:crcpw can compile" >&5 ++echo $ECHO_N "checking if MCA component pml:crcpw can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_pml" = "crcpw" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"crcpw\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"crcpw\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_pml" ; then ++ if test "$DIRECT_pml" = "crcpw" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"crcpw\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"crcpw\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components crcpw" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_pml_crcpw_DSO=1 ++else ++ BUILD_pml_crcpw_DSO=0 ++fi ++ ++ if test "$BUILD_pml_crcpw_DSO" = "1"; then ++ OMPI_BUILD_pml_crcpw_DSO_TRUE= ++ OMPI_BUILD_pml_crcpw_DSO_FALSE='#' ++else ++ OMPI_BUILD_pml_crcpw_DSO_TRUE='#' ++ OMPI_BUILD_pml_crcpw_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component pml:v (m4 configuration macro)" ++ ++ ++ ++ ++ project=ompi ++ framework=pml ++ component=v ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_pml" ; then ++ if test "$DIRECT_pml" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$components_looking_for_succeed ++else ++ should_build=0 ++fi ++ ++ ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ ++ project=ompi ++ framework=pml ++ component=v ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_pml" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ if test "$should_build" = "1"; then ++ ++ # This unmatched fi allows for recursing in the vprotocols, even if ++ # pml v is disabled by configure ++ eval ++ fi ++ ++ # We are going to make recursive call in shell, nothing is impossible ++ # Still, we need to be extra careful ++ ( ++ vprotocol_parent_component=$component ++ # Move the root of our project to the current component ++ srcdir=`cd $srcdir && pwd`/$project/mca/$framework ++ cd "$project/mca/$framework" ++ ++ ++ ompi_show_subsubtitle "Configuring MCA framework vprotocol" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "vprotocol" = "common" ; then ++ outdir=$vprotocol_parent_component/mca/common ++ else ++ outdir=$vprotocol_parent_component/mca/vprotocol/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework vprotocol" >&5 ++echo $ECHO_N "checking for no configure components in framework vprotocol... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: pessimist" >&5 ++echo "${ECHO_T}pessimist" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework vprotocol" >&5 ++echo $ECHO_N "checking for m4 configure components in framework vprotocol... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component vprotocol:pessimist (no configuration)" ++ ++ ++ ++ ++ project=$vprotocol_parent_component ++ framework=vprotocol ++ component=pessimist ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_vprotocol" ; then ++ if test "$DIRECT_vprotocol" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=$should_build ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=$vprotocol_parent_component ++ framework=vprotocol ++ component=pessimist ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_vprotocol" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=$vprotocol_parent_component ++ framework=vprotocol ++ component=pessimist ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ $vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS="$$vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ $vprotocol_parent_component_WRAPPER_EXTRA_LIBS="$$vprotocol_parent_component_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_vprotocol" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_vprotocol" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ $vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS="$$vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ $vprotocol_parent_component_WRAPPER_EXTRA_LIBS="$$vprotocol_parent_component_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component vprotocol:pessimist can compile" >&5 ++echo $ECHO_N "checking if MCA component vprotocol:pessimist can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_vprotocol" = "pessimist" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"pessimist\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"pessimist\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_vprotocol" ; then ++ if test "$DIRECT_vprotocol" = "pessimist" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"pessimist\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"pessimist\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components pessimist" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_vprotocol_pessimist_DSO=1 ++ else ++ BUILD_vprotocol_pessimist_DSO=0 ++ fi ++ if test "$BUILD_vprotocol_pessimist_DSO" = "1"; then ++ OMPI_BUILD_vprotocol_pessimist_DSO_TRUE= ++ OMPI_BUILD_vprotocol_pessimist_DSO_FALSE='#' ++else ++ OMPI_BUILD_vprotocol_pessimist_DSO_TRUE='#' ++ OMPI_BUILD_vprotocol_pessimist_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=$should_build ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "$should_build" != "0"; then ++ ++ for component_path in $srcdir/$vprotocol_parent_component/mca/vprotocol/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component vprotocol:$component (need to configure)" ++ ++ ++ ++ ++ project=$vprotocol_parent_component ++ framework=vprotocol ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_vprotocol" ; then ++ if test "$DIRECT_vprotocol" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=$vprotocol_parent_component ++ framework=vprotocol ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_vprotocol" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# $vprotocol_parent_component/mca/vprotocol/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="$vprotocol_parent_component/mca/vprotocol/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=$vprotocol_parent_component ++ framework=vprotocol ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ $vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS="$$vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ $vprotocol_parent_component_WRAPPER_EXTRA_LIBS="$$vprotocol_parent_component_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_vprotocol" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_vprotocol" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ $vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS="$$vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ $vprotocol_parent_component_WRAPPER_EXTRA_LIBS="$$vprotocol_parent_component_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component vprotocol:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component vprotocol:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_vprotocol" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_vprotocol" ; then ++ if test "$DIRECT_vprotocol" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_vprotocol_ALL_COMPONENTS="$all_components" ++ MCA_vprotocol_STATIC_COMPONENTS="$static_components" ++ MCA_vprotocol_DSO_COMPONENTS="$dso_components" ++ MCA_vprotocol_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_vprotocol_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_vprotocol_ALL_SUBDIRS="$MCA_vprotocol_ALL_SUBDIRS mca/vprotocol/$item" ++ done ++ ++ ++ ++ MCA_vprotocol_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_vprotocol_STATIC_SUBDIRS="$MCA_vprotocol_STATIC_SUBDIRS mca/vprotocol/$item" ++ done ++ ++ ++ ++ MCA_vprotocol_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_vprotocol_DSO_SUBDIRS="$MCA_vprotocol_DSO_SUBDIRS mca/vprotocol/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "vprotocol" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++ ++ ++ # Save results ++ cat >$vprotocol_parent_component/mca_vprotocol_config_output <> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_pml" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_pml" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++else ++ ++ { echo "$as_me:$LINENO: checking if MCA component pml:v can compile" >&5 ++echo $ECHO_N "checking if MCA component pml:v can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_pml" = "v" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"v\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"v\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_pml" ; then ++ if test "$DIRECT_pml" = "v" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"v\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"v\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components v" ++fi ++ ++ ++ ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso"; then ++ BUILD_pml_v_DSO=1 ++else ++ BUILD_pml_v_DSO=0 ++fi ++ ++ if test "$BUILD_pml_v_DSO" = "1"; then ++ OMPI_BUILD_pml_v_DSO_TRUE= ++ OMPI_BUILD_pml_v_DSO_FALSE='#' ++else ++ OMPI_BUILD_pml_v_DSO_TRUE='#' ++ OMPI_BUILD_pml_v_DSO_FALSE= ++fi ++ ++ ++ if test "$should_build" = "1"; then ++ components_last_result=1 ++else ++ components_last_result=0 ++fi ++ ++ ++ unset compile_mode ++ ++ ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/pml/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component pml:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=pml ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_pml" ; then ++ if test "$DIRECT_pml" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=pml ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_pml" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/pml/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/pml/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=pml ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_pml" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_pml" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component pml:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component pml:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_pml" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_pml" ; then ++ if test "$DIRECT_pml" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_pml_ALL_COMPONENTS="$all_components" ++ MCA_pml_STATIC_COMPONENTS="$static_components" ++ MCA_pml_DSO_COMPONENTS="$dso_components" ++ MCA_pml_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_pml_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_pml_ALL_SUBDIRS="$MCA_pml_ALL_SUBDIRS mca/pml/$item" ++ done ++ ++ ++ ++ MCA_pml_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_pml_STATIC_SUBDIRS="$MCA_pml_STATIC_SUBDIRS mca/pml/$item" ++ done ++ ++ ++ ++ MCA_pml_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_pml_DSO_SUBDIRS="$MCA_pml_DSO_SUBDIRS mca/pml/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "pml" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "pubsub" = "common" ; then ++ MCA_ompi_FRAMEWORKS="pubsub $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/pubsub $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_pubsub_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_pubsub_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_pubsub_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS pubsub" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/pubsub" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pubsub_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pubsub_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pubsub_STATIC_SUBDIRS)" ++ fi ++ if test "pubsub" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/pubsub/libmca_pubsub.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_pubsub_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework pubsub" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "pubsub" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/pubsub/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework pubsub" >&5 ++echo $ECHO_N "checking for no configure components in framework pubsub... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: orte" >&5 ++echo "${ECHO_T}orte" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework pubsub" >&5 ++echo $ECHO_N "checking for m4 configure components in framework pubsub... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component pubsub:orte (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=pubsub ++ component=orte ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_pubsub" ; then ++ if test "$DIRECT_pubsub" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=pubsub ++ component=orte ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_pubsub" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=pubsub ++ component=orte ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_pubsub" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_pubsub" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component pubsub:orte can compile" >&5 ++echo $ECHO_N "checking if MCA component pubsub:orte can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_pubsub" = "orte" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"orte\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"orte\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_pubsub" ; then ++ if test "$DIRECT_pubsub" = "orte" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"orte\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"orte\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components orte" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_pubsub_orte_DSO=1 ++ else ++ BUILD_pubsub_orte_DSO=0 ++ fi ++ if test "$BUILD_pubsub_orte_DSO" = "1"; then ++ OMPI_BUILD_pubsub_orte_DSO_TRUE= ++ OMPI_BUILD_pubsub_orte_DSO_FALSE='#' ++else ++ OMPI_BUILD_pubsub_orte_DSO_TRUE='#' ++ OMPI_BUILD_pubsub_orte_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/pubsub/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component pubsub:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=pubsub ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_pubsub" ; then ++ if test "$DIRECT_pubsub" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=pubsub ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_pubsub" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/pubsub/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/pubsub/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=pubsub ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_pubsub" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_pubsub" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component pubsub:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component pubsub:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_pubsub" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_pubsub" ; then ++ if test "$DIRECT_pubsub" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_pubsub_ALL_COMPONENTS="$all_components" ++ MCA_pubsub_STATIC_COMPONENTS="$static_components" ++ MCA_pubsub_DSO_COMPONENTS="$dso_components" ++ MCA_pubsub_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_pubsub_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_pubsub_ALL_SUBDIRS="$MCA_pubsub_ALL_SUBDIRS mca/pubsub/$item" ++ done ++ ++ ++ ++ MCA_pubsub_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_pubsub_STATIC_SUBDIRS="$MCA_pubsub_STATIC_SUBDIRS mca/pubsub/$item" ++ done ++ ++ ++ ++ MCA_pubsub_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_pubsub_DSO_SUBDIRS="$MCA_pubsub_DSO_SUBDIRS mca/pubsub/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "pubsub" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "rcache" = "common" ; then ++ MCA_ompi_FRAMEWORKS="rcache $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/rcache $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_rcache_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_rcache_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_rcache_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS rcache" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/rcache" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_rcache_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_rcache_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_rcache_STATIC_SUBDIRS)" ++ fi ++ if test "rcache" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/rcache/libmca_rcache.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_rcache_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework rcache" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "rcache" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/rcache/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework rcache" >&5 ++echo $ECHO_N "checking for no configure components in framework rcache... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: vma" >&5 ++echo "${ECHO_T}vma" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework rcache" >&5 ++echo $ECHO_N "checking for m4 configure components in framework rcache... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component rcache:vma (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=rcache ++ component=vma ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_rcache" ; then ++ if test "$DIRECT_rcache" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=rcache ++ component=vma ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_rcache" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=rcache ++ component=vma ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_rcache" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_rcache" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component rcache:vma can compile" >&5 ++echo $ECHO_N "checking if MCA component rcache:vma can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_rcache" = "vma" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"vma\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"vma\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_rcache" ; then ++ if test "$DIRECT_rcache" = "vma" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"vma\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"vma\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components vma" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_rcache_vma_DSO=1 ++ else ++ BUILD_rcache_vma_DSO=0 ++ fi ++ if test "$BUILD_rcache_vma_DSO" = "1"; then ++ OMPI_BUILD_rcache_vma_DSO_TRUE= ++ OMPI_BUILD_rcache_vma_DSO_FALSE='#' ++else ++ OMPI_BUILD_rcache_vma_DSO_TRUE='#' ++ OMPI_BUILD_rcache_vma_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/rcache/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component rcache:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=rcache ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_rcache" ; then ++ if test "$DIRECT_rcache" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=rcache ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_rcache" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/rcache/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/rcache/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=rcache ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_rcache" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_rcache" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component rcache:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component rcache:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_rcache" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_rcache" ; then ++ if test "$DIRECT_rcache" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_rcache_ALL_COMPONENTS="$all_components" ++ MCA_rcache_STATIC_COMPONENTS="$static_components" ++ MCA_rcache_DSO_COMPONENTS="$dso_components" ++ MCA_rcache_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_rcache_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_rcache_ALL_SUBDIRS="$MCA_rcache_ALL_SUBDIRS mca/rcache/$item" ++ done ++ ++ ++ ++ MCA_rcache_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_rcache_STATIC_SUBDIRS="$MCA_rcache_STATIC_SUBDIRS mca/rcache/$item" ++ done ++ ++ ++ ++ MCA_rcache_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_rcache_DSO_SUBDIRS="$MCA_rcache_DSO_SUBDIRS mca/rcache/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "rcache" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++# common has to go up front ++ if test "topo" = "common" ; then ++ MCA_ompi_FRAMEWORKS="topo $MCA_ompi_FRAMEWORKS" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="mca/topo $MCA_ompi_FRAMEWORKS_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_topo_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_topo_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_topo_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS topo" ++ MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/topo" ++ MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_topo_ALL_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_topo_DSO_SUBDIRS)" ++ MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_topo_STATIC_SUBDIRS)" ++ fi ++ if test "topo" != "common" ; then ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/topo/libmca_topo.la" ++ fi ++ MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_topo_STATIC_LTLIBS)" ++ ++ ompi_show_subsubtitle "Configuring MCA framework topo" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "topo" = "common" ; then ++ outdir=ompi/mca/common ++ else ++ outdir=ompi/mca/topo/base ++ fi ++ { as_dir=$outdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ { echo "$as_me:$LINENO: checking for no configure components in framework topo" >&5 ++echo $ECHO_N "checking for no configure components in framework topo... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: unity" >&5 ++echo "${ECHO_T}unity" >&6; } ++ { echo "$as_me:$LINENO: checking for m4 configure components in framework topo" >&5 ++echo $ECHO_N "checking for m4 configure components in framework topo... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: " >&5 ++echo "${ECHO_T}" >&6; } ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ ++ # make sure priority stuff set right ++ ++ ++ ++ ompi_show_subsubsubtitle "MCA component topo:unity (no configuration)" ++ ++ ++ ++ ++ project=ompi ++ framework=topo ++ component=unity ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_topo" ; then ++ if test "$DIRECT_topo" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=topo ++ component=unity ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_topo" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=topo ++ component=unity ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_topo" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_topo" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component topo:unity can compile" >&5 ++echo $ECHO_N "checking if MCA component topo:unity can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_topo" = "unity" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"unity\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"unity\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_topo" ; then ++ if test "$DIRECT_topo" = "unity" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"unity\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"unity\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ # add component to all component list ++ all_components="$all_components unity" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_topo_unity_DSO=1 ++ else ++ BUILD_topo_unity_DSO=0 ++ fi ++ if test "$BUILD_topo_unity_DSO" = "1"; then ++ OMPI_BUILD_topo_unity_DSO_TRUE= ++ OMPI_BUILD_topo_unity_DSO_FALSE='#' ++else ++ OMPI_BUILD_topo_unity_DSO_TRUE='#' ++ OMPI_BUILD_topo_unity_DSO_FALSE= ++fi ++ ++ ++ unset compile_mode ++ ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ ++ best_mca_component_priority=0 ++ components_looking_for_succeed=1 ++ components_last_result=0 ++ ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ if test "1" != "0"; then ++ ++ for component_path in $srcdir/ompi/mca/topo/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component topo:$component (need to configure)" ++ ++ ++ ++ ++ project=ompi ++ framework=topo ++ component=$component ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_topo" ; then ++ if test "$DIRECT_topo" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ if test "$want_component" = "1"; then ++ should_build=1 ++else ++ should_build=0 ++fi ++ ++ ++ ++ project=ompi ++ framework=topo ++ component=$component ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ compile_mode="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ compile_mode="dso" ++ else ++ compile_mode="static" ++ fi ++ ++ { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5 ++echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; } ++ if test "$DIRECT_topo" = "$component" ; then ++ { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5 ++echo "${ECHO_T}$compile_mode - direct" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: $compile_mode" >&5 ++echo "${ECHO_T}$compile_mode" >&6; } ++ fi ++ ++ ++ if test "$should_build" = "1" ; then ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/mca/topo/$component is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# should_build=1 is actions to execute upon success ++# should_build=2 is actions to execute upon failure ++# ++subdir_dir="ompi/mca/topo/$component" ++subdir_args="$ompi_subdir_args" ++subdir_success="should_build=1" ++subdir_failure="should_build=2" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ fi ++ ++ if test "$should_build" = "1" ; then ++ ++ ++ ++ project=ompi ++ framework=topo ++ component=$component ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ all_components="$all_components $component" ++ ++ if test "$compile_mode" = "dso" ; then ++ dso_components="$dso_components $component" ++ else ++ static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ static_components="$static_components $component" ++ fi ++ ++ # Output pretty results ++ { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5 ++echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot continue" >&5 ++echo "$as_me: error: cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`" ++ eval "line=$line" ++ if test -n "$line"; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ if test "$DIRECT_topo" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_topo" = "$component" ; then ++{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&5 ++echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$compile_mode" = "static"; then ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line" ++ fi ++ str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS" ++ eval "$str" ++ if test -n "$line" ; then ++ ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line" ++ fi ++ fi ++ ++ else ++ ++ { echo "$as_me:$LINENO: checking if MCA component topo:$component can compile" >&5 ++echo $ECHO_N "checking if MCA component topo:$component can compile... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_topo" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5 ++echo "$as_me: WARNING: This component was selected as the default" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_topo" ; then ++ if test "$DIRECT_topo" = "$component" ; then ++ { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5 ++echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;} ++ { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5 ++echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;} ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ exit 1 ++ fi ++ fi ++ ++ fi ++ fi ++ done ++ ++fi ++ ++ ++ MCA_topo_ALL_COMPONENTS="$all_components" ++ MCA_topo_STATIC_COMPONENTS="$static_components" ++ MCA_topo_DSO_COMPONENTS="$dso_components" ++ MCA_topo_STATIC_LTLIBS="$static_ltlibs" ++ ++ ++ ++ ++ ++ ++ ++ MCA_topo_ALL_SUBDIRS= ++ for item in $all_components ; do ++ MCA_topo_ALL_SUBDIRS="$MCA_topo_ALL_SUBDIRS mca/topo/$item" ++ done ++ ++ ++ ++ MCA_topo_STATIC_SUBDIRS= ++ for item in $static_components ; do ++ MCA_topo_STATIC_SUBDIRS="$MCA_topo_STATIC_SUBDIRS mca/topo/$item" ++ done ++ ++ ++ ++ MCA_topo_DSO_SUBDIRS= ++ for item in $dso_components ; do ++ MCA_topo_DSO_SUBDIRS="$MCA_topo_DSO_SUBDIRS mca/topo/$item" ++ done ++ ++ ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "topo" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ # BWB - fix me... need to automate this somehow ++ ++ if test ! -z "$DIRECT_pml" ; then ++ MCA_pml_DIRECT_CALL_COMPONENT=$DIRECT_pml ++ MCA_pml_DIRECT_CALL=1 ++ else ++ MCA_pml_DIRECT_CALL_COMPONENT= ++ MCA_pml_DIRECT_CALL=0 ++ fi ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MCA_pml_DIRECT_CALL $MCA_pml_DIRECT_CALL ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MCA_pml_DIRECT_CALL_COMPONENT $MCA_pml_DIRECT_CALL_COMPONENT ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MCA_pml_DIRECT_CALL_HEADER "$MCA_pml_DIRECT_CALL_HEADER" ++_ACEOF ++ ++ ++ ++ if test ! -z "$DIRECT_mtl" ; then ++ MCA_mtl_DIRECT_CALL_COMPONENT=$DIRECT_mtl ++ MCA_mtl_DIRECT_CALL=1 ++ else ++ MCA_mtl_DIRECT_CALL_COMPONENT= ++ MCA_mtl_DIRECT_CALL=0 ++ fi ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MCA_mtl_DIRECT_CALL $MCA_mtl_DIRECT_CALL ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MCA_mtl_DIRECT_CALL_COMPONENT $MCA_mtl_DIRECT_CALL_COMPONENT ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define MCA_mtl_DIRECT_CALL_HEADER "$MCA_mtl_DIRECT_CALL_HEADER" ++_ACEOF ++ ++ ++ ++ # make all the config output statements for the no configure ++ # components ++ ++ ++ac_config_files="$ac_config_files opal/mca/backtrace/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/backtrace/darwin/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/backtrace/execinfo/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/backtrace/none/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/backtrace/printstack/Makefile" ++ ++ac_config_files="$ac_config_files opal/mca/carto/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/carto/auto_detect/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/carto/file/Makefile" ++ ++ac_config_files="$ac_config_files opal/mca/crs/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/crs/blcr/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/crs/none/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/crs/self/Makefile" ++ ++ac_config_files="$ac_config_files opal/mca/installdirs/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/installdirs/config/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/installdirs/env/Makefile" ++ ++ac_config_files="$ac_config_files opal/mca/maffinity/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/maffinity/first_use/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/maffinity/libnuma/Makefile" ++ ++ac_config_files="$ac_config_files opal/mca/memchecker/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/memchecker/valgrind/Makefile" ++ ++ac_config_files="$ac_config_files opal/mca/memcpy/Makefile" ++ ++ac_config_files="$ac_config_files opal/mca/memory/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/memory/malloc_solaris/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/memory/mallopt/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/memory/ptmalloc2/Makefile" ++ ++ac_config_files="$ac_config_files opal/mca/paffinity/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/paffinity/darwin/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/paffinity/linux/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/paffinity/posix/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/paffinity/solaris/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/paffinity/windows/Makefile" ++ ++ac_config_files="$ac_config_files opal/mca/timer/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/timer/aix/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/timer/altix/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/timer/catamount/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/timer/darwin/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/timer/linux/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/timer/solaris/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files opal/mca/timer/windows/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/errmgr/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/errmgr/default/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/ess/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ess/alps/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ess/cnos/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ess/env/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ess/hnp/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ess/lsf/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ess/portals_utcp/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ess/singleton/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ess/slurm/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ess/tool/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/filem/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/filem/rsh/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/grpcomm/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/grpcomm/bad/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/grpcomm/basic/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/grpcomm/cnos/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/iof/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/iof/hnp/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/iof/orted/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/iof/tool/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/notifier/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/notifier/syslog/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/odls/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/odls/default/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/oob/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/oob/tcp/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/plm/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/plm/alps/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/plm/lsf/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/plm/rsh/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/plm/slurm/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/plm/tm/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/plm/xgrid/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/ras/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ras/alps/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ras/gridengine/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ras/loadleveler/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ras/lsf/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ras/slurm/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/ras/tm/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/rmaps/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/rmaps/rank_file/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/rmaps/round_robin/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/rmaps/seq/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/rml/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/rml/ftrm/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/rml/oob/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/routed/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/routed/binomial/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/routed/direct/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/routed/linear/Makefile" ++ ++ac_config_files="$ac_config_files orte/mca/snapc/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files orte/mca/snapc/full/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/allocator/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/allocator/basic/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/allocator/bucket/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/bml/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/bml/r2/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/btl/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/btl/elan/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/btl/gm/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/btl/mx/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/btl/ofud/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/btl/openib/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/btl/portals/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/btl/self/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/btl/sm/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/btl/tcp/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/btl/udapl/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/coll/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/coll/basic/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/coll/hierarch/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/coll/inter/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/coll/self/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/coll/sm/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/coll/tuned/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/common/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/common/mx/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/common/portals/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/common/sm/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/crcp/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/crcp/bkmrk/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/dpm/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/dpm/orte/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/io/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/io/romio/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/mpool/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/mpool/fake/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/mpool/rdma/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/mpool/sm/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/mtl/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/mtl/mx/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/mtl/portals/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/mtl/psm/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/osc/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/osc/pt2pt/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/osc/rdma/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/pml/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/pml/cm/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/pml/crcpw/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/pml/ob1/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/pml/v/mca/vprotocol/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/pml/v/mca/vprotocol/pessimist/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/pml/v/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/pubsub/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/pubsub/orte/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/rcache/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/rcache/vma/Makefile" ++ ++ac_config_files="$ac_config_files ompi/mca/topo/Makefile" ++ ++ ++ ++ac_config_files="$ac_config_files ompi/mca/topo/unity/Makefile" ++ ++ ++ ++ ++ ++ ++# checkpoint results ++cat >confcache <<\_ACEOF ++# This file is a shell script that caches the results of configure ++# tests run on this system so they can be shared between configure ++# scripts and configure runs, see configure's option --config-cache. ++# It is not useful on other systems. If it contains results you don't ++# want to keep, you may remove or edit it. ++# ++# config.status only pays attention to the cache file if you give it ++# the --recheck option to rerun configure. ++# ++# `ac_cv_env_foo' variables (set or unset) will be overridden when ++# loading this file, other *unset* `ac_cv_foo' will be assigned the ++# following values. ++ ++_ACEOF ++ ++# The following way of writing the cache mishandles newlines in values, ++# but we know of no workaround that is simple, portable, and efficient. ++# So, we kill variables containing newlines. ++# Ultrix sh set writes to stderr and can't be redirected directly, ++# and sets the high bit in the cache file unless we assign to the vars. ++( ++ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do ++ eval ac_val=\$$ac_var ++ case $ac_val in #( ++ *${as_nl}*) ++ case $ac_var in #( ++ *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 ++echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; ++ esac ++ case $ac_var in #( ++ _ | IFS | as_nl) ;; #( ++ *) $as_unset $ac_var ;; ++ esac ;; ++ esac ++ done ++ ++ (set) 2>&1 | ++ case $as_nl`(ac_space=' '; set) 2>&1` in #( ++ *${as_nl}ac_space=\ *) ++ # `set' does not quote correctly, so add quotes (double-quote ++ # substitution turns \\\\ into \\, and sed turns \\ into \). ++ sed -n \ ++ "s/'/'\\\\''/g; ++ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ++ ;; #( ++ *) ++ # `set' quotes correctly as required by POSIX, so do not add quotes. ++ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ++ ;; ++ esac | ++ sort ++) | ++ sed ' ++ /^ac_cv_env_/b end ++ t clear ++ :clear ++ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ ++ t end ++ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ ++ :end' >>confcache ++if diff "$cache_file" confcache >/dev/null 2>&1; then :; else ++ if test -w "$cache_file"; then ++ test "x$cache_file" != "x/dev/null" && ++ { echo "$as_me:$LINENO: updating cache $cache_file" >&5 ++echo "$as_me: updating cache $cache_file" >&6;} ++ cat confcache >$cache_file ++ else ++ { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 ++echo "$as_me: not updating unwritable cache $cache_file" >&6;} ++ fi ++fi ++rm -f confcache ++ ++################################## ++# visibility ++################################## ++ ++# check the visbility stuff at the end to avoid problem with ++# the previous tests that are not necessarily prepeare for ++# the visibility feature. ++ompi_show_title "Symbol Visibility Feature" ++ ++ ++ ++ ++ # Check if the compiler has support for visibility, like some versions of gcc, icc. ++ # Check whether --enable-visibility was given. ++if test "${enable_visibility+set}" = set; then ++ enableval=$enable_visibility; ++fi ++ ++ if test "$enable_visibility" = "no"; then ++ { echo "$as_me:$LINENO: checking enable symbol visibility" >&5 ++echo $ECHO_N "checking enable symbol visibility... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ have_visibility=0 ++ else ++ CFLAGS_orig="$CFLAGS" ++ CFLAGS="$CFLAGS_orig -fvisibility=hidden" ++ add= ++ { echo "$as_me:$LINENO: checking if $CC supports -fvisibility" >&5 ++echo $ECHO_N "checking if $CC supports -fvisibility... $ECHO_C" >&6; } ++if test "${ompi_cv_cc_fvisibility+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++ #include ++ __attribute__((visibility("default"))) int foo; ++ void bar(void) { fprintf(stderr, "bar\n"); }; ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ if test -s conftest.err ; then ++ $GREP -iq "visibility" conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv_cc_fvisibility="no" ++ else ++ ompi_cv_cc_fvisibility="yes" ++ fi ++ else ++ ompi_cv_cc_fvisibility="yes" ++ fi ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ompi_cv_cc_fvisibility="no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ ++fi ++{ echo "$as_me:$LINENO: result: $ompi_cv_cc_fvisibility" >&5 ++echo "${ECHO_T}$ompi_cv_cc_fvisibility" >&6; } ++ ++ if test "$ompi_cv_cc_fvisibility" = "yes" ; then ++ add=" -fvisibility=hidden" ++ have_visibility=1 ++ { echo "$as_me:$LINENO: checking enable symbol visibility" >&5 ++echo $ECHO_N "checking enable symbol visibility... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ { echo "$as_me:$LINENO: WARNING: $add has been added to CFLAGS" >&5 ++echo "$as_me: WARNING: $add has been added to CFLAGS" >&2;} ++ elif test "$enable_visibility" = "yes"; then ++ { { echo "$as_me:$LINENO: error: Symbol visibility support requested but compiler does not seem to support it. Aborting" >&5 ++echo "$as_me: error: Symbol visibility support requested but compiler does not seem to support it. Aborting" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me:$LINENO: checking enable symbol visibility" >&5 ++echo $ECHO_N "checking enable symbol visibility... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ have_visibility=0 ++ fi ++ CFLAGS="$CFLAGS_orig$add" ++ unset add ++ fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_C_HAVE_VISIBILITY $have_visibility ++_ACEOF ++ ++ ++ ++ ++################################## ++# Contributed software ++################################## ++ ++ompi_show_title "Contributed software setup" ++ ++ ++ ++ ++ # Option to not build some of the contributed software packages ++ # Check whether --enable-contrib-no-build was given. ++if test "${enable_contrib_no_build+set}" = set; then ++ enableval=$enable_contrib_no_build; ++fi ++ ++ ++ # Parse the list to see what we should not build ++ ompi_show_subtitle "Configuring contributed software packages" ++ { echo "$as_me:$LINENO: checking which contributed software packages should be disabled" >&5 ++echo $ECHO_N "checking which contributed software packages should be disabled... $ECHO_C" >&6; } ++ if test "$enable_contrib_no_build" = "yes"; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ { { echo "$as_me:$LINENO: error: *** The enable-contrib-no-build flag requires an explicit list ++*** of packages to not build. For example, --enable-contrib-no-build=vt" >&5 ++echo "$as_me: error: *** The enable-contrib-no-build flag requires an explicit list ++*** of packages to not build. For example, --enable-contrib-no-build=vt" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ ifs_save="$IFS" ++ IFS="${IFS}$PATH_SEPARATOR," ++ msg= ++ for item in $enable_contrib_no_build; do ++ str="`echo DISABLE_contrib_${item}=1 | sed s/-/_/g`" ++ eval $str ++ msg="$item $msg" ++ done ++ IFS="$ifs_save" ++ fi ++ { echo "$as_me:$LINENO: result: $msg" >&5 ++echo "${ECHO_T}$msg" >&6; } ++ unset msg ++ ++ # List of contrib subdirs to traverse into ++ OMPI_CONTRIB_SUBDIRS= ++ OMPI_CONTRIB_DIST_SUBDIRS= ++ ++ # Cycle through each of the hard-coded software packages and ++ # configure them if not disabled. May someday be expanded to have ++ # autogen find the packages instead of this hard-coded list ++ # (https://svn.open-mpi.org/trac/ompi/ticket/1162). ++ # m4_define([contrib_software_list], [libnbc, vt]) ++ ++ # -*- shell-script -*- ++# ++# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana ++# University Research and Technology ++# Corporation. All rights reserved. ++# Copyright (c) 2004-2005 The University of Tennessee and The University ++# of Tennessee Research Foundation. All rights ++# reserved. ++# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, ++# University of Stuttgart. All rights reserved. ++# Copyright (c) 2004-2005 The Regents of the University of California. ++# All rights reserved. ++# Copyright (c) 2007 Cisco, Inc. All rights reserved. ++# $COPYRIGHT$ ++# ++# Additional copyrights may follow ++# ++# $HEADER$ ++# ++ ++# OMPI_contrib_vt_CONFIG([action-if-can-compile], ++# [action-if-cant-compile]) ++# ------------------------------------------------ ++ ++ ++ ++ ompi_show_subsubsubtitle "vt (m4 configuration macro)" ++ ++ OMPI_CONTRIB_HAPPY=0 ++ if test "$DISABLE_contrib_vt" = "" -a "$DISABLE_contrib_all" = ""; then ++ ++ contrib_vt_args="--disable-option-checking 'MPICC=$CC' --with-openmpi '--with-mpi-inc-dir=$top_ompi_builddir/ompi/include' --with-mpi-status-size=5 --disable-config-titles --disable-config-summary" ++ ++ contrib_vt_skip=no ++ eval "set x $ac_configure_args"; shift ++ for contrib_vt_arg ++ do ++ if test "$contrib_vt_skip" = "yes"; then ++ contrib_vt_skip=no ++ else ++ case $contrib_vt_arg in ++ -with-contrib-vt-flags | --with-contrib-vt-flags) ++ contrib_vt_skip=yes ++ ;; ++ -with-contrib-vt-flags=* | --with-contrib-vt-flags=*) ++ ;; ++ -with-platform | --with-platform) ++ contrib_vt_skip=yes ++ ;; ++ -with-platform=* | --with-platform=*) ++ ;; ++ *) ++ case $contrib_vt_arg in ++ *\'*) contrib_vt_arg=`echo "$contrib_vt_arg" | sed "s/'/'\\\\\\\\''/g"` ;; ++ esac ++ contrib_vt_args="$contrib_vt_args '$contrib_vt_arg'" ++ ;; ++ esac ++ fi ++ done ++ ++ ++# Check whether --with-contrib-vt-flags was given. ++if test "${with_contrib_vt_flags+set}" = set; then ++ withval=$with_contrib_vt_flags; ++fi ++ ++ if test "$with_contrib_vt_flags" != "yes" -a "$with_contrib_vt_flags" != "no"; then ++ contrib_vt_args="$contrib_vt_args $with_contrib_vt_flags" ++fi ++ ++ ++ # Run VampirTrace's configure and see if it succeeded ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# ompi/contrib/vt/vt is the directory to invoke in ++# $contrib_vt_args is the list of arguments to pass ++# contrib_vt_happy=1 is actions to execute upon success ++# contrib_vt_happy=0 is actions to execute upon failure ++# ++subdir_dir="ompi/contrib/vt/vt" ++subdir_args="$contrib_vt_args" ++subdir_success="contrib_vt_happy=1" ++subdir_failure="contrib_vt_happy=0" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ ++ # If VampirTrace configured itself successfully, setup OMPI-specific ++ # VampirTrace glue code to build. ++ if test "$contrib_vt_happy" = "1"; then ++ OMPI_CONTRIB_HAPPY=1 ++ ac_config_files="$ac_config_files ompi/contrib/vt/Makefile ompi/contrib/vt/wrappers/Makefile ompi/contrib/vt/wrappers/mpicc-vt-wrapper-data.txt ompi/contrib/vt/wrappers/mpic++-vt-wrapper-data.txt ompi/contrib/vt/wrappers/mpif77-vt-wrapper-data.txt ompi/contrib/vt/wrappers/mpif90-vt-wrapper-data.txt" ++ ++fi ++ ++ ++ { echo "$as_me:$LINENO: checking if contributed component vt can compile" >&5 ++echo $ECHO_N "checking if contributed component vt can compile... $ECHO_C" >&6; } ++ if test "$OMPI_CONTRIB_HAPPY" = "1"; then ++ OMPI_CONTRIB_SUBDIRS="$OMPI_CONTRIB_SUBDIRS contrib/vt" ++ OMPI_CONTRIB_DIST_SUBDIRS="$OMPI_CONTRIB_DIST_SUBDIRS contrib/vt" ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ else ++ { echo "$as_me:$LINENO: disabled via command line switch" >&5 ++echo "$as_me: disabled via command line switch" >&6;} ++ fi ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_ENABLE_CONTRIB_vt $OMPI_CONTRIB_HAPPY ++_ACEOF ++ ++ unset OMPI_CONTRIB_HAPPY ++ ++ ++ # Setup the top-level glue ++ ++ ++ ++ ++# checkpoint results ++cat >confcache <<\_ACEOF ++# This file is a shell script that caches the results of configure ++# tests run on this system so they can be shared between configure ++# scripts and configure runs, see configure's option --config-cache. ++# It is not useful on other systems. If it contains results you don't ++# want to keep, you may remove or edit it. ++# ++# config.status only pays attention to the cache file if you give it ++# the --recheck option to rerun configure. ++# ++# `ac_cv_env_foo' variables (set or unset) will be overridden when ++# loading this file, other *unset* `ac_cv_foo' will be assigned the ++# following values. ++ ++_ACEOF ++ ++# The following way of writing the cache mishandles newlines in values, ++# but we know of no workaround that is simple, portable, and efficient. ++# So, we kill variables containing newlines. ++# Ultrix sh set writes to stderr and can't be redirected directly, ++# and sets the high bit in the cache file unless we assign to the vars. ++( ++ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do ++ eval ac_val=\$$ac_var ++ case $ac_val in #( ++ *${as_nl}*) ++ case $ac_var in #( ++ *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 ++echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; ++ esac ++ case $ac_var in #( ++ _ | IFS | as_nl) ;; #( ++ *) $as_unset $ac_var ;; ++ esac ;; ++ esac ++ done ++ ++ (set) 2>&1 | ++ case $as_nl`(ac_space=' '; set) 2>&1` in #( ++ *${as_nl}ac_space=\ *) ++ # `set' does not quote correctly, so add quotes (double-quote ++ # substitution turns \\\\ into \\, and sed turns \\ into \). ++ sed -n \ ++ "s/'/'\\\\''/g; ++ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ++ ;; #( ++ *) ++ # `set' quotes correctly as required by POSIX, so do not add quotes. ++ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ++ ;; ++ esac | ++ sort ++) | ++ sed ' ++ /^ac_cv_env_/b end ++ t clear ++ :clear ++ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ ++ t end ++ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ ++ :end' >>confcache ++if diff "$cache_file" confcache >/dev/null 2>&1; then :; else ++ if test -w "$cache_file"; then ++ test "x$cache_file" != "x/dev/null" && ++ { echo "$as_me:$LINENO: updating cache $cache_file" >&5 ++echo "$as_me: updating cache $cache_file" >&6;} ++ cat confcache >$cache_file ++ else ++ { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 ++echo "$as_me: not updating unwritable cache $cache_file" >&6;} ++ fi ++fi ++rm -f confcache ++ ++ ++############################################################################ ++# Final top-level OMPI configuration ++############################################################################ ++ ++ompi_show_title "Final top-level OMPI configuration" ++ ++############################################################################ ++# Libevent setup ++############################################################################ ++ ++ompi_show_subtitle "Libevent 3rd party event handler" ++CFLAGS_save="$CFLAGS" ++CFLAGS="$OMPI_CFLAGS_BEFORE_PICKY" ++ ++ ++sources= ++ ++ ++# Check whether --with-event-rtsig was given. ++if test "${with_event_rtsig+set}" = set; then ++ withval=$with_event_rtsig; usertsig=yes ++else ++ usertsig=no ++fi ++ ++ ++ ++{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 ++echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } ++if test "${ac_cv_header_stdc+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++#include ++#include ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_header_stdc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_header_stdc=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++if test $ac_cv_header_stdc = yes; then ++ # SunOS 4.x string.h does not declare mem*, contrary to ANSI. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++_ACEOF ++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ++ $EGREP "memchr" >/dev/null 2>&1; then ++ : ++else ++ ac_cv_header_stdc=no ++fi ++rm -f conftest* ++ ++fi ++ ++if test $ac_cv_header_stdc = yes; then ++ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++_ACEOF ++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ++ $EGREP "free" >/dev/null 2>&1; then ++ : ++else ++ ac_cv_header_stdc=no ++fi ++rm -f conftest* ++ ++fi ++ ++if test $ac_cv_header_stdc = yes; then ++ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. ++ if test "$cross_compiling" = yes; then ++ : ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++#if ((' ' & 0x0FF) == 0x020) ++# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') ++# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) ++#else ++# define ISLOWER(c) \ ++ (('a' <= (c) && (c) <= 'i') \ ++ || ('j' <= (c) && (c) <= 'r') \ ++ || ('s' <= (c) && (c) <= 'z')) ++# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) ++#endif ++ ++#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) ++int ++main () ++{ ++ int i; ++ for (i = 0; i < 256; i++) ++ if (XOR (islower (i), ISLOWER (i)) ++ || toupper (i) != TOUPPER (i)) ++ return 2; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ : ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++ac_cv_header_stdc=no ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 ++echo "${ECHO_T}$ac_cv_header_stdc" >&6; } ++if test $ac_cv_header_stdc = yes; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define STDC_HEADERS 1 ++_ACEOF ++ ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++for ac_header in fcntl.h stdarg.h inttypes.h stdint.h poll.h signal.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h sys/ioctl.h sys/devpoll.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ { echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include <$ac_header> ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++@%:@@%:@ Report this to http://www.open-mpi.org/community/help/ @%:@@%:@ ++@%:@@%:@ ------------------------------------------------------ @%:@@%:@ ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ eval "$as_ac_Header=\$ac_header_preproc" ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++ ++fi ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++if test "x$ac_cv_header_sys_queue_h" = "xyes"; then ++ { echo "$as_me:$LINENO: checking for TAILQ_FOREACH in sys/queue.h" >&5 ++echo $ECHO_N "checking for TAILQ_FOREACH in sys/queue.h... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#ifdef TAILQ_FOREACH ++ yes ++#endif ++ ++_ACEOF ++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ++ $EGREP "yes" >/dev/null 2>&1; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define HAVE_TAILQFOREACH 1 ++_ACEOF ++ ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++fi ++rm -f conftest* ++ ++fi ++ ++if test "x$ac_cv_header_sys_time_h" = "xyes"; then ++ { echo "$as_me:$LINENO: checking for timeradd in sys/time.h" >&5 ++echo $ECHO_N "checking for timeradd in sys/time.h... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include ++#ifdef timeradd ++ yes ++#endif ++ ++_ACEOF ++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ++ $EGREP "yes" >/dev/null 2>&1; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define HAVE_TIMERADD 1 ++_ACEOF ++ ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ++fi ++rm -f conftest* ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 ++echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } ++if test "${ac_cv_header_time+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++#include ++ ++int ++main () ++{ ++if ((struct tm *) 0) ++return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_header_time=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_header_time=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 ++echo "${ECHO_T}$ac_cv_header_time" >&6; } ++if test $ac_cv_header_time = yes; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define TIME_WITH_SYS_TIME 1 ++_ACEOF ++ ++fi ++ ++ ++ ++ ++ ++for ac_func in gettimeofday vasprintf fcntl ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ ++{ echo "$as_me:$LINENO: checking for F_SETFD in fcntl.h" >&5 ++echo $ECHO_N "checking for F_SETFD in fcntl.h... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#define _GNU_SOURCE ++#include ++#ifdef F_SETFD ++yes ++#endif ++ ++_ACEOF ++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ++ $EGREP "yes" >/dev/null 2>&1; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define HAVE_SETFD 1 ++_ACEOF ++ ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++rm -f conftest* ++ ++ ++needsignal=no ++haveselect=no ++ ++for ac_func in select ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ haveselect=yes ++fi ++done ++ ++if test "x$haveselect" = "xyes" ; then ++ # OMPI: Don't use AC_LIBOBJ ++ sources="select.c $sources" ++ needsignal=yes ++fi ++ ++havepoll=no ++havertsig=no ++ ++for ac_func in poll ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ havepoll=yes ++fi ++done ++ ++case "$host" in ++ *apple-darwin*) ++ haveworkingpoll=0 ++ ;; ++ *) ++ if test "$havepoll" = "yes" ; then ++ haveworkingpoll=1 ++ else ++ haveworkingpoll=0 ++ fi ++ ;; ++esac ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define HAVE_WORKING_POLL $haveworkingpoll ++_ACEOF ++ ++if test "x$havepoll" = "xyes" -a "$haveworkingpoll" = "1" ; then ++ # OMPI: Don't use AC_LIBOBJ ++ sources="poll.c $sources" ++ needsignal=yes ++ ++ if test "x$usertsig" = "xyes" ; then ++ ++for ac_func in sigtimedwait ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ havertsig=yes ++fi ++done ++ ++ fi ++fi ++if test "x$havertsig" = "xyes" ; then ++ { echo "$as_me:$LINENO: checking for F_SETSIG in fcntl.h" >&5 ++echo $ECHO_N "checking for F_SETSIG in fcntl.h... $ECHO_C" >&6; } ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#define _GNU_SOURCE ++#include ++#ifdef F_SETSIG ++yes ++#endif ++ ++_ACEOF ++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ++ $EGREP "yes" >/dev/null 2>&1; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; }; havertsig=no ++fi ++rm -f conftest* ++ ++fi ++if test "x$havertsig" = "xyes" ; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define HAVE_RTSIG 1 ++_ACEOF ++ ++ # OMPI: Don't use AC_LIBOBJ ++ sources="rtsig.c $sources" ++ { echo "$as_me:$LINENO: checking for working rtsig on pipes" >&5 ++echo $ECHO_N "checking for working rtsig on pipes... $ECHO_C" >&6; } ++ if test "$cross_compiling" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot run test program while cross compiling ++See \`config.log' for more details." >&2;} ++ { (exit 1); exit 1; }; } ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#define _GNU_SOURCE ++#include ++#include ++#include ++#include ++ ++int sigio() ++{ ++ exit(0); ++} ++ ++int main() ++{ ++ int fd[2]; ++ ++ pipe(fd); ++ signal(SIGIO, sigio); ++ fcntl(fd[0], F_SETOWN, getpid()); ++ fcntl(fd[0], F_SETSIG, SIGIO); ++ fcntl(fd[0], F_SETFL, fcntl(fd[0], F_GETFL) | O_ASYNC); ++ write(fd[1], "", 1); ++ return 1; ++} ++ ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define HAVE_WORKING_RTSIG 1 ++_ACEOF ++ ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++fi ++ ++haveepoll=no ++ ++for ac_func in epoll_ctl ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ haveepoll=yes ++fi ++done ++ ++if test "x$haveepoll" = "xyes" -a "$cross_compiling" != "yes" ; then ++ ++ # OMPI: Unfortunately, this test is not sufficient on some ++ # Linux distros (e.g., RH 9), where the function is defined ++ # and you can link against it, but it's hardwired to return ++ # ENOSYS -- and /usr/include/gnu/stubs.h fails to define ++ # __stub_epoll_ctl (the usual mechanism in glibc to indicate ++ # that a function is a stub and isn't really implemented). ++ # Hence, the test succeeds because it thinks it can use ++ # epoll_ctl (and friends). So we have to do a better test ++ # after we determine that epoll_ctl is linkable. Grumble. ++ # If we are cross compiling, just trust AC_CHECK_FUNCS ++ ++ # OMPI: Unfortunately, this test is not sufficient for another ++ # reason. The event_poll struct is defined in the sys/epoll.h ++ # file. The structure is the interface between the application ++ # and the kernel and is therefore compiled into both. The ++ # event_poll struct is defined with a compiler directive ++ # __attribute__ ((__packed__). It turns out that there is ++ # at least one compiler (Sun Studio) that does not currently ++ # recognize this directive. This means that the event_poll ++ # struct may be packed in the kernel, but not in the OMPI ++ # library. Badness ensues. Therefore, check to see that ++ # this struct gets correctly passed between OMPI and the ++ # kernel. ++ ++ haveepoll=no ++ { echo "$as_me:$LINENO: checking for working epoll library interface" >&5 ++echo $ECHO_N "checking for working epoll library interface... $ECHO_C" >&6; } ++ if test "$cross_compiling" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot run test program while cross compiling ++See \`config.log' for more details." >&2;} ++ { (exit 1); exit 1; }; } ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++$ac_includes_default ++#include ++int ++main () ++{ ++ ++ struct epoll_event epevin; ++ struct epoll_event epevout; ++ int res; ++ int epfd; ++ int fildes[2]; ++ ++ if ((epfd = epoll_create(1)) == -1) ++ exit(1); ++ if (pipe(&fildes[0]) < 0) ++ exit(1); ++ memset(&epevin, 0, sizeof(epevin)); ++ memset(&epevout, 0, sizeof(epevout)); ++ memset(&epevin.data.ptr, 5, sizeof(epevin.data.ptr)); ++ epevin.events = EPOLLIN | EPOLLOUT; ++ ++ if (epoll_ctl(epfd, EPOLL_CTL_ADD, fildes[0], &epevin) == -1) ++ exit(1); ++ ++ res = epoll_wait(epfd, &epevout, 1, 0); ++ if (res != 1) { ++ exit(1); ++ } else { ++ if (epevout.data.ptr != epevin.data.ptr) { ++ exit(1); ++ } ++ } ++ /* SUCCESS */ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ haveepoll=yes ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define HAVE_EPOLL 1 ++_ACEOF ++ ++ # OMPI: Don't use AC_LIBOBJ ++ sources="epoll.c $sources" ++ needsignal=yes ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ { echo "$as_me:$LINENO: result: $haveepoll" >&5 ++echo "${ECHO_T}$haveepoll" >&6; } ++fi ++ ++haveepollsyscall=no ++if test "x$ac_cv_header_sys_epoll_h" = "xyes" -a "x$haveepoll" = "xno" -a "$cross_compiling" != "yes"; then ++ # OMPI: See comment above. This test uses the epoll system call ++ # interface instead of the library interface. ++ { echo "$as_me:$LINENO: checking for working epoll system call" >&5 ++echo $ECHO_N "checking for working epoll system call... $ECHO_C" >&6; } ++ if test "$cross_compiling" = yes; then ++ { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling ++See \`config.log' for more details." >&5 ++echo "$as_me: error: cannot run test program while cross compiling ++See \`config.log' for more details." >&2;} ++ { (exit 1); exit 1; }; } ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++$ac_includes_default ++#include ++#include ++int ++main () ++{ ++ ++ struct epoll_event epevin; ++ struct epoll_event epevout; ++ int res; ++ int epfd; ++ int fildes[2]; ++ ++ if ((epfd = syscall(__NR_epoll_create, 1)) == -1) ++ exit(1); ++ if (pipe(&fildes[0]) < 0) ++ exit(1); ++ memset(&epevin, 0, sizeof(epevin)); ++ memset(&epevout, 0, sizeof(epevout)); ++ memset(&epevin.data.ptr, 5, sizeof(epevin.data.ptr)); ++ epevin.events = EPOLLIN | EPOLLOUT; ++ ++ if (syscall(__NR_epoll_ctl, epfd, ++ EPOLL_CTL_ADD, fildes[0], &epevin) == -1) ++ exit(1); ++ ++ res = syscall(__NR_epoll_wait, epfd, &epevout, 1, 0); ++ if (res != 1) { ++ exit(1); ++ } else { ++ if (epevout.data.ptr != epevin.data.ptr) { ++ exit(1); ++ } ++ } ++ /* SUCCESS */ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ haveepollsyscall=yes ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define HAVE_EPOLL 1 ++_ACEOF ++ ++ # OMPI: don't use AC_LIBOBJ ++ sources="epoll_sub.c epoll.c $sources" ++ needsignal=yes ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ { echo "$as_me:$LINENO: result: $haveepollsyscall" >&5 ++echo "${ECHO_T}$haveepollsyscall" >&6; } ++fi ++ ++havedevpoll=no ++if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define HAVE_DEVPOLL 1 ++_ACEOF ++ ++ # OMPI: Don't use AC_LIBOBJ(devpoll) ++ sources="devpoll.c $sources" ++ needsignal=yes ++fi ++ ++havekqueue=no ++if test "x$ac_cv_header_sys_event_h" = "xyes"; then ++ # All versions of MAC OS X before at least 10.5.2 are ++ # completely broken when kqueue is used with pty. So, until ++ # they get fixed, completely disable kqueue on MAC OS X. ++ case "$host" in ++ *apple-darwin*) ++ { echo "$as_me:$LINENO: checking for working kqueue" >&5 ++echo $ECHO_N "checking for working kqueue... $ECHO_C" >&6; } ++ havekqueue="no" ++ { echo "$as_me:$LINENO: result: no (MAC OS X)" >&5 ++echo "${ECHO_T}no (MAC OS X)" >&6; } ++ ;; ++ *) ++ ++for ac_func in kqueue ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ havekqueue=yes ++fi ++done ++ ++ ;; ++ esac ++ if test "x$havekqueue" = "xyes" ; then ++ { echo "$as_me:$LINENO: checking for working kqueue" >&5 ++echo $ECHO_N "checking for working kqueue... $ECHO_C" >&6; } ++ if test "$cross_compiling" = yes; then ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++ ++int ++main() ++{ ++ int kq; ++ int n; ++ int fd[2]; ++ struct kevent ev; ++ struct timespec ts; ++ char buf[8000]; ++ ++ if (pipe(fd) == -1) ++ exit(1); ++ if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1) ++ exit(1); ++ ++ while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf)) ++ ; ++ ++ if ((kq = kqueue()) == -1) ++ exit(1); ++ ++ ev.ident = fd[1]; ++ ev.filter = EVFILT_WRITE; ++ ev.flags = EV_ADD | EV_ENABLE; ++ n = kevent(kq, &ev, 1, NULL, 0, NULL); ++ if (n == -1) ++ exit(1); ++ ++ read(fd[0], buf, sizeof(buf)); ++ ++ ts.tv_sec = 0; ++ ts.tv_nsec = 0; ++ n = kevent(kq, NULL, 0, &ev, 1, &ts); ++ if (n == -1 || n == 0) ++ exit(1); ++ ++ exit(0); ++} ++_ACEOF ++rm -f conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ++ { (case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_try") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define HAVE_WORKING_KQUEUE 1 ++_ACEOF ++ ++ sources="kqueue.c $sources" ++else ++ echo "$as_me: program exited with status $ac_status" >&5 ++echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++( exit $ac_status ) ++{ echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ++fi ++ ++ ++ # OMPI: don't use AC_LIBOBJ ++ fi ++fi ++ ++haveeventports=no ++ ++for ac_func in port_create ++do ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_func" >&5 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } ++if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define $ac_func to an innocuous variant, in case declares $ac_func. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define $ac_func innocuous_$ac_func ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef $ac_func ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char $ac_func (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_$ac_func || defined __stub___$ac_func ++choke me ++#endif ++ ++int ++main () ++{ ++return $ac_func (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ eval "$as_ac_var=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_var=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_var'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_var'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ haveeventports=yes ++fi ++done ++ ++# JMS Per #1273, Solaris event ports are temporarily disabled. ++haveeventports=no ++if test "x$haveeventports" = "xyes" ; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define HAVE_EVENT_PORTS 1 ++_ACEOF ++ ++ sources="evport.c $sources" ++ needsignal=yes ++fi ++ ++if test "x$needsignal" = "xyes" ; then ++ # OMPI: don't use AC_LIBOBJ ++ sources="signal.c $sources" ++fi ++ ++# OMPI: AC_REPLACE_FUNCS doesn't have much meaning here because it ++# uses AC_LIBOBJ; use our own test ++#AC_REPLACE_FUNCS(err) ++ ++{ echo "$as_me:$LINENO: checking for pid_t" >&5 ++echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_pid_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef pid_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_pid_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_pid_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 ++echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } ++if test $ac_cv_type_pid_t = yes; then ++ : ++else ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define pid_t int ++_ACEOF ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for size_t" >&5 ++echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_size_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef size_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_size_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_size_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 ++echo "${ECHO_T}$ac_cv_type_size_t" >&6; } ++if test $ac_cv_type_size_t = yes; then ++ : ++else ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define size_t unsigned int ++_ACEOF ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for u_int64_t" >&5 ++echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_u_int64_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef u_int64_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_u_int64_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_u_int64_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 ++echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } ++if test $ac_cv_type_u_int64_t = yes; then ++ : ++else ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define u_int64_t unsigned long long ++_ACEOF ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for u_int32_t" >&5 ++echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_u_int32_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef u_int32_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_u_int32_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_u_int32_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 ++echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; } ++if test $ac_cv_type_u_int32_t = yes; then ++ : ++else ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define u_int32_t unsigned int ++_ACEOF ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for u_int16_t" >&5 ++echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_u_int16_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef u_int16_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_u_int16_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_u_int16_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 ++echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; } ++if test $ac_cv_type_u_int16_t = yes; then ++ : ++else ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define u_int16_t unsigned short ++_ACEOF ++ ++fi ++ ++{ echo "$as_me:$LINENO: checking for u_int8_t" >&5 ++echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; } ++if test "${ac_cv_type_u_int8_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++typedef u_int8_t ac__type_new_; ++int ++main () ++{ ++if ((ac__type_new_ *) 0) ++ return 0; ++if (sizeof (ac__type_new_)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_type_u_int8_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_type_u_int8_t=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5 ++echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; } ++if test $ac_cv_type_u_int8_t = yes; then ++ : ++else ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define u_int8_t unsigned char ++_ACEOF ++ ++fi ++ ++ ++ ++# OMPI: Save the libobj sources ++OMPI_LIBEVENT_SOURCES="$sources" ++ ++ ++# OMPI: All done ++unset sources ++CFLAGS="$CFLAGS_save" ++ ++ ++############################################################################ ++# Libtool: part two ++# (after C compiler setup = no compiler/linker tests after this) ++############################################################################ ++ ++ompi_show_subtitle "Libtool configuration" ++ ++# Use the undocumented solaris_use_stlport4 libtool variable to turn off any ++# Cstd/stlport4 linkage. This allows Open MPI to be C++ STL agnostic. ++if test "x$ompi_cv_c_compiler_vendor" = "xsun"; then ++ solaris_use_stlport4="yes" ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++case $enable_ltdl_convenience in ++ no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5 ++echo "$as_me: error: this package needs a convenience libltdl" >&2;} ++ { (exit 1); exit 1; }; } ;; ++ "") enable_ltdl_convenience=yes ++ ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; ++esac ++LIBLTDL='${top_builddir}/'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" ++LTDLDEPS=$LIBLTDL ++LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" ++ ++ ++ ++ ++ ++# For backwards non-gettext consistent compatibility... ++INCLTDL="$LTDLINCL" ++ ++ ++ ++case `pwd` in ++ *\ * | *\ *) ++ { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 ++echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; ++esac ++ ++ ++ ++macro_version='2.2.6' ++macro_revision='1.3012' ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ltmain="$ac_aux_dir/ltmain.sh" ++ ++{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 ++echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } ++if test "${ac_cv_path_SED+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ ++ for ac_i in 1 2 3 4 5 6 7; do ++ ac_script="$ac_script$as_nl$ac_script" ++ done ++ echo "$ac_script" | sed 99q >conftest.sed ++ $as_unset ac_script || ac_script= ++ # Extract the first word of "sed gsed" to use in msg output ++if test -z "$SED"; then ++set dummy sed gsed; ac_prog_name=$2 ++if test "${ac_cv_path_SED+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_path_SED_found=false ++# Loop through the user's path and test for each of PROGNAME-LIST ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_prog in sed gsed; do ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" ++ { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue ++ # Check for GNU ac_path_SED and select it if it is found. ++ # Check for GNU $ac_path_SED ++case `"$ac_path_SED" --version 2>&1` in ++*GNU*) ++ ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; ++*) ++ ac_count=0 ++ echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" ++ while : ++ do ++ cat "conftest.in" "conftest.in" >"conftest.tmp" ++ mv "conftest.tmp" "conftest.in" ++ cp "conftest.in" "conftest.nl" ++ echo '' >> "conftest.nl" ++ "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break ++ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ++ ac_count=`expr $ac_count + 1` ++ if test $ac_count -gt ${ac_path_SED_max-0}; then ++ # Best one so far, save it but keep looking for a better one ++ ac_cv_path_SED="$ac_path_SED" ++ ac_path_SED_max=$ac_count ++ fi ++ # 10*(2^10) chars as input seems more than enough ++ test $ac_count -gt 10 && break ++ done ++ rm -f conftest.in conftest.tmp conftest.nl conftest.out;; ++esac ++ ++ ++ $ac_path_SED_found && break 3 ++ done ++done ++ ++done ++IFS=$as_save_IFS ++ ++ ++fi ++ ++SED="$ac_cv_path_SED" ++if test -z "$SED"; then ++ { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 ++echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++else ++ ac_cv_path_SED=$SED ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 ++echo "${ECHO_T}$ac_cv_path_SED" >&6; } ++ SED="$ac_cv_path_SED" ++ rm -f conftest.sed ++ ++test -z "$SED" && SED=sed ++Xsed="$SED -e 1s/^X//" ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++test -z "$GREP" && GREP=grep ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++# Check whether --with-gnu-ld was given. ++if test "${with_gnu_ld+set}" = set; then ++ withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes ++else ++ with_gnu_ld=no ++fi ++ ++ac_prog=ld ++if test "$GCC" = yes; then ++ # Check if gcc -print-prog-name=ld gives a path. ++ { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 ++echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } ++ case $host in ++ *-*-mingw*) ++ # gcc leaves a trailing carriage return which upsets mingw ++ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; ++ *) ++ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; ++ esac ++ case $ac_prog in ++ # Accept absolute paths. ++ [\\/]* | ?:[\\/]*) ++ re_direlt='/[^/][^/]*/\.\./' ++ # Canonicalize the pathname of ld ++ ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` ++ while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ++ ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` ++ done ++ test -z "$LD" && LD="$ac_prog" ++ ;; ++ "") ++ # If it fails, then pretend we aren't using GCC. ++ ac_prog=ld ++ ;; ++ *) ++ # If it is relative, then search for the first ld in PATH. ++ with_gnu_ld=unknown ++ ;; ++ esac ++elif test "$with_gnu_ld" = yes; then ++ { echo "$as_me:$LINENO: checking for GNU ld" >&5 ++echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } ++else ++ { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 ++echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } ++fi ++if test "${lt_cv_path_LD+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -z "$LD"; then ++ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ++ for ac_dir in $PATH; do ++ IFS="$lt_save_ifs" ++ test -z "$ac_dir" && ac_dir=. ++ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then ++ lt_cv_path_LD="$ac_dir/$ac_prog" ++ # Check to see if the program is GNU ld. I'd rather use --version, ++ # but apparently some variants of GNU ld only accept -v. ++ # Break only if it was the GNU/non-GNU ld that we prefer. ++ case `"$lt_cv_path_LD" -v 2>&1 &5 ++echo "${ECHO_T}$LD" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 ++echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} ++ { (exit 1); exit 1; }; } ++{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 ++echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } ++if test "${lt_cv_prog_gnu_ld+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # I'd rather use --version here, but apparently some GNU lds only accept -v. ++case `$LD -v 2>&1 &5 ++echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } ++with_gnu_ld=$lt_cv_prog_gnu_ld ++ ++ ++ ++ ++ ++ ++ ++ ++ ++# find the maximum length of command line arguments ++{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 ++echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } ++if test "${lt_cv_sys_max_cmd_len+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ i=0 ++ teststring="ABCD" ++ ++ case $build_os in ++ msdosdjgpp*) ++ # On DJGPP, this test can blow up pretty badly due to problems in libc ++ # (any single argument exceeding 2000 bytes causes a buffer overrun ++ # during glob expansion). Even if it were fixed, the result of this ++ # check would be larger than it should be. ++ lt_cv_sys_max_cmd_len=12288; # 12K is about right ++ ;; ++ ++ gnu*) ++ # Under GNU Hurd, this test is not required because there is ++ # no limit to the length of command line arguments. ++ # Libtool will interpret -1 as no limit whatsoever ++ lt_cv_sys_max_cmd_len=-1; ++ ;; ++ ++ cygwin* | mingw* | cegcc*) ++ # On Win9x/ME, this test blows up -- it succeeds, but takes ++ # about 5 minutes as the teststring grows exponentially. ++ # Worse, since 9x/ME are not pre-emptively multitasking, ++ # you end up with a "frozen" computer, even though with patience ++ # the test eventually succeeds (with a max line length of 256k). ++ # Instead, let's just punt: use the minimum linelength reported by ++ # all of the supported platforms: 8192 (on NT/2K/XP). ++ lt_cv_sys_max_cmd_len=8192; ++ ;; ++ ++ amigaos*) ++ # On AmigaOS with pdksh, this test takes hours, literally. ++ # So we just punt and use a minimum line length of 8192. ++ lt_cv_sys_max_cmd_len=8192; ++ ;; ++ ++ netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) ++ # This has been around since 386BSD, at least. Likely further. ++ if test -x /sbin/sysctl; then ++ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` ++ elif test -x /usr/sbin/sysctl; then ++ lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` ++ else ++ lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs ++ fi ++ # And add a safety zone ++ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` ++ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ++ ;; ++ ++ interix*) ++ # We know the value 262144 and hardcode it with a safety zone (like BSD) ++ lt_cv_sys_max_cmd_len=196608 ++ ;; ++ ++ osf*) ++ # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure ++ # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not ++ # nice to cause kernel panics so lets avoid the loop below. ++ # First set a reasonable default. ++ lt_cv_sys_max_cmd_len=16384 ++ # ++ if test -x /sbin/sysconfig; then ++ case `/sbin/sysconfig -q proc exec_disable_arg_limit` in ++ *1*) lt_cv_sys_max_cmd_len=-1 ;; ++ esac ++ fi ++ ;; ++ sco3.2v5*) ++ lt_cv_sys_max_cmd_len=102400 ++ ;; ++ sysv5* | sco5v6* | sysv4.2uw2*) ++ kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` ++ if test -n "$kargmax"; then ++ lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` ++ else ++ lt_cv_sys_max_cmd_len=32768 ++ fi ++ ;; ++ *) ++ lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` ++ if test -n "$lt_cv_sys_max_cmd_len"; then ++ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` ++ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ++ else ++ # Make teststring a little bigger before we do anything with it. ++ # a 1K string should be a reasonable start. ++ for i in 1 2 3 4 5 6 7 8 ; do ++ teststring=$teststring$teststring ++ done ++ SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} ++ # If test is not a shell built-in, we'll probably end up computing a ++ # maximum length that is only half of the actual maximum length, but ++ # we can't tell. ++ while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ ++ = "XX$teststring$teststring"; } >/dev/null 2>&1 && ++ test $i != 17 # 1/2 MB should be enough ++ do ++ i=`expr $i + 1` ++ teststring=$teststring$teststring ++ done ++ # Only check the string length outside the loop. ++ lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` ++ teststring= ++ # Add a significant safety factor because C++ compilers can tack on ++ # massive amounts of additional arguments before passing them to the ++ # linker. It appears as though 1/2 is a usable value. ++ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` ++ fi ++ ;; ++ esac ++ ++fi ++ ++if test -n $lt_cv_sys_max_cmd_len ; then ++ { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 ++echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } ++else ++ { echo "$as_me:$LINENO: result: none" >&5 ++echo "${ECHO_T}none" >&6; } ++fi ++max_cmd_len=$lt_cv_sys_max_cmd_len ++ ++ ++ ++ ++ ++ ++: ${CP="cp -f"} ++: ${MV="mv -f"} ++: ${RM="rm -f"} ++ ++{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 ++echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; } ++# Try some XSI features ++xsi_shell=no ++( _lt_dummy="a/b/c" ++ test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ ++ = c,a/b,, \ ++ && eval 'test $(( 1 + 1 )) -eq 2 \ ++ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ ++ && xsi_shell=yes ++{ echo "$as_me:$LINENO: result: $xsi_shell" >&5 ++echo "${ECHO_T}$xsi_shell" >&6; } ++ ++ ++{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 ++echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; } ++lt_shell_append=no ++( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ ++ >/dev/null 2>&1 \ ++ && lt_shell_append=yes ++{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5 ++echo "${ECHO_T}$lt_shell_append" >&6; } ++ ++ ++if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then ++ lt_unset=unset ++else ++ lt_unset=false ++fi ++ ++ ++ ++ ++ ++# test EBCDIC or ASCII ++case `echo X|tr X '\101'` in ++ A) # ASCII based system ++ # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr ++ lt_SP2NL='tr \040 \012' ++ lt_NL2SP='tr \015\012 \040\040' ++ ;; ++ *) # EBCDIC based system ++ lt_SP2NL='tr \100 \n' ++ lt_NL2SP='tr \r\n \100\100' ++ ;; ++esac ++ ++ ++ ++ ++ ++ ++ ++ ++ ++{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 ++echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } ++if test "${lt_cv_ld_reload_flag+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_ld_reload_flag='-r' ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 ++echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } ++reload_flag=$lt_cv_ld_reload_flag ++case $reload_flag in ++"" | " "*) ;; ++*) reload_flag=" $reload_flag" ;; ++esac ++reload_cmds='$LD$reload_flag -o $output$reload_objs' ++case $host_os in ++ darwin*) ++ if test "$GCC" = yes; then ++ reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' ++ else ++ reload_cmds='$LD$reload_flag -o $output$reload_objs' ++ fi ++ ;; ++esac ++ ++ ++ ++ ++ ++ ++ ++ ++ ++if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. ++set dummy ${ac_tool_prefix}objdump; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_OBJDUMP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$OBJDUMP"; then ++ ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++OBJDUMP=$ac_cv_prog_OBJDUMP ++if test -n "$OBJDUMP"; then ++ { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 ++echo "${ECHO_T}$OBJDUMP" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_OBJDUMP"; then ++ ac_ct_OBJDUMP=$OBJDUMP ++ # Extract the first word of "objdump", so it can be a program name with args. ++set dummy objdump; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_OBJDUMP"; then ++ ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_OBJDUMP="objdump" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP ++if test -n "$ac_ct_OBJDUMP"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 ++echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_OBJDUMP" = x; then ++ OBJDUMP="false" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ OBJDUMP=$ac_ct_OBJDUMP ++ fi ++else ++ OBJDUMP="$ac_cv_prog_OBJDUMP" ++fi ++ ++test -z "$OBJDUMP" && OBJDUMP=objdump ++ ++ ++ ++ ++ ++ ++{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 ++echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } ++if test "${lt_cv_deplibs_check_method+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_file_magic_cmd='$MAGIC_CMD' ++lt_cv_file_magic_test_file= ++lt_cv_deplibs_check_method='unknown' ++# Need to set the preceding variable on all platforms that support ++# interlibrary dependencies. ++# 'none' -- dependencies not supported. ++# `unknown' -- same as none, but documents that we really don't know. ++# 'pass_all' -- all dependencies passed with no checks. ++# 'test_compile' -- check by making test program. ++# 'file_magic [[regex]]' -- check by looking for files in library path ++# which responds to the $file_magic_cmd with a given extended regex. ++# If you have `file' or equivalent on your system and you're not sure ++# whether `pass_all' will *always* work, you probably want this one. ++ ++case $host_os in ++aix[4-9]*) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ ++beos*) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ ++bsdi[45]*) ++ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' ++ lt_cv_file_magic_cmd='/usr/bin/file -L' ++ lt_cv_file_magic_test_file=/shlib/libc.so ++ ;; ++ ++cygwin*) ++ # func_win32_libid is a shell function defined in ltmain.sh ++ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' ++ lt_cv_file_magic_cmd='func_win32_libid' ++ ;; ++ ++mingw* | pw32*) ++ # Base MSYS/MinGW do not provide the 'file' command needed by ++ # func_win32_libid shell function, so use a weaker test based on 'objdump', ++ # unless we find 'file', for example because we are cross-compiling. ++ if ( file / ) >/dev/null 2>&1; then ++ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' ++ lt_cv_file_magic_cmd='func_win32_libid' ++ else ++ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' ++ lt_cv_file_magic_cmd='$OBJDUMP -f' ++ fi ++ ;; ++ ++cegcc) ++ # use the weaker test based on 'objdump'. See mingw*. ++ lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' ++ lt_cv_file_magic_cmd='$OBJDUMP -f' ++ ;; ++ ++darwin* | rhapsody*) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ ++freebsd* | dragonfly*) ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then ++ case $host_cpu in ++ i*86 ) ++ # Not sure whether the presence of OpenBSD here was a mistake. ++ # Let's accept both of them until this is cleared up. ++ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' ++ lt_cv_file_magic_cmd=/usr/bin/file ++ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ++ ;; ++ esac ++ else ++ lt_cv_deplibs_check_method=pass_all ++ fi ++ ;; ++ ++gnu*) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ ++hpux10.20* | hpux11*) ++ lt_cv_file_magic_cmd=/usr/bin/file ++ case $host_cpu in ++ ia64*) ++ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' ++ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ++ ;; ++ hppa*64*) ++ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' ++ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ++ ;; ++ *) ++ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' ++ lt_cv_file_magic_test_file=/usr/lib/libc.sl ++ ;; ++ esac ++ ;; ++ ++interix[3-9]*) ++ # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here ++ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ++ ;; ++ ++irix5* | irix6* | nonstopux*) ++ case $LD in ++ *-32|*"-32 ") libmagic=32-bit;; ++ *-n32|*"-n32 ") libmagic=N32;; ++ *-64|*"-64 ") libmagic=64-bit;; ++ *) libmagic=never-match;; ++ esac ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ ++# This must be Linux ELF. ++linux* | k*bsd*-gnu) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ ++netbsd*) ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then ++ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' ++ else ++ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' ++ fi ++ ;; ++ ++newos6*) ++ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' ++ lt_cv_file_magic_cmd=/usr/bin/file ++ lt_cv_file_magic_test_file=/usr/lib/libnls.so ++ ;; ++ ++*nto* | *qnx*) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ ++openbsd*) ++ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ++ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' ++ else ++ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' ++ fi ++ ;; ++ ++osf3* | osf4* | osf5*) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ ++rdos*) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ ++solaris*) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ ++sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ ++sysv4 | sysv4.3*) ++ case $host_vendor in ++ motorola) ++ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' ++ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ++ ;; ++ ncr) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ sequent) ++ lt_cv_file_magic_cmd='/bin/file' ++ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ++ ;; ++ sni) ++ lt_cv_file_magic_cmd='/bin/file' ++ lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" ++ lt_cv_file_magic_test_file=/lib/libc.so ++ ;; ++ siemens) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ pc) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ esac ++ ;; ++ ++tpf*) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++esac ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 ++echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } ++file_magic_cmd=$lt_cv_file_magic_cmd ++deplibs_check_method=$lt_cv_deplibs_check_method ++test -z "$deplibs_check_method" && deplibs_check_method=unknown ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. ++set dummy ${ac_tool_prefix}ar; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_AR+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$AR"; then ++ ac_cv_prog_AR="$AR" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_AR="${ac_tool_prefix}ar" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++AR=$ac_cv_prog_AR ++if test -n "$AR"; then ++ { echo "$as_me:$LINENO: result: $AR" >&5 ++echo "${ECHO_T}$AR" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_AR"; then ++ ac_ct_AR=$AR ++ # Extract the first word of "ar", so it can be a program name with args. ++set dummy ar; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_AR+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_AR"; then ++ ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_AR="ar" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_AR=$ac_cv_prog_ac_ct_AR ++if test -n "$ac_ct_AR"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 ++echo "${ECHO_T}$ac_ct_AR" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_AR" = x; then ++ AR="false" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ AR=$ac_ct_AR ++ fi ++else ++ AR="$ac_cv_prog_AR" ++fi ++ ++test -z "$AR" && AR=ar ++test -z "$AR_FLAGS" && AR_FLAGS=cru ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. ++set dummy ${ac_tool_prefix}strip; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_STRIP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$STRIP"; then ++ ac_cv_prog_STRIP="$STRIP" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_STRIP="${ac_tool_prefix}strip" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++STRIP=$ac_cv_prog_STRIP ++if test -n "$STRIP"; then ++ { echo "$as_me:$LINENO: result: $STRIP" >&5 ++echo "${ECHO_T}$STRIP" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_STRIP"; then ++ ac_ct_STRIP=$STRIP ++ # Extract the first word of "strip", so it can be a program name with args. ++set dummy strip; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_STRIP"; then ++ ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_STRIP="strip" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP ++if test -n "$ac_ct_STRIP"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 ++echo "${ECHO_T}$ac_ct_STRIP" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_STRIP" = x; then ++ STRIP=":" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ STRIP=$ac_ct_STRIP ++ fi ++else ++ STRIP="$ac_cv_prog_STRIP" ++fi ++ ++test -z "$STRIP" && STRIP=: ++ ++ ++ ++ ++ ++ ++if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. ++set dummy ${ac_tool_prefix}ranlib; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_RANLIB+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$RANLIB"; then ++ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++RANLIB=$ac_cv_prog_RANLIB ++if test -n "$RANLIB"; then ++ { echo "$as_me:$LINENO: result: $RANLIB" >&5 ++echo "${ECHO_T}$RANLIB" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_RANLIB"; then ++ ac_ct_RANLIB=$RANLIB ++ # Extract the first word of "ranlib", so it can be a program name with args. ++set dummy ranlib; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_RANLIB"; then ++ ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_RANLIB="ranlib" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB ++if test -n "$ac_ct_RANLIB"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 ++echo "${ECHO_T}$ac_ct_RANLIB" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_RANLIB" = x; then ++ RANLIB=":" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ RANLIB=$ac_ct_RANLIB ++ fi ++else ++ RANLIB="$ac_cv_prog_RANLIB" ++fi ++ ++test -z "$RANLIB" && RANLIB=: ++ ++ ++ ++ ++ ++ ++# Determine commands to create old-style static archives. ++old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' ++old_postinstall_cmds='chmod 644 $oldlib' ++old_postuninstall_cmds= ++ ++if test -n "$RANLIB"; then ++ case $host_os in ++ openbsd*) ++ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ++ ;; ++ *) ++ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ++ ;; ++ esac ++ old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++# If no C compiler was specified, use CC. ++LTCC=${LTCC-"$CC"} ++ ++# If no C compiler flags were specified, use CFLAGS. ++LTCFLAGS=${LTCFLAGS-"$CFLAGS"} ++ ++# Allow CC to be a program name with arguments. ++compiler=$CC ++ ++ ++# Check for command to grab the raw symbol name followed by C symbol from nm. ++{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 ++echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } ++if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++# These are sane defaults that work on at least a few old systems. ++# [They come from Ultrix. What could be older than Ultrix?!! ;)] ++ ++# Character class describing NM global symbol codes. ++symcode='[BCDEGRST]' ++ ++# Regexp to match symbols that can be accessed directly from C. ++sympat='\([_A-Za-z][_A-Za-z0-9]*\)' ++ ++# Define system-specific variables. ++case $host_os in ++aix*) ++ symcode='[BCDT]' ++ ;; ++cygwin* | mingw* | pw32* | cegcc*) ++ symcode='[ABCDGISTW]' ++ ;; ++hpux*) ++ if test "$host_cpu" = ia64; then ++ symcode='[ABCDEGRST]' ++ fi ++ ;; ++irix* | nonstopux*) ++ symcode='[BCDEGRST]' ++ ;; ++osf*) ++ symcode='[BCDEGQRST]' ++ ;; ++solaris*) ++ symcode='[BDRT]' ++ ;; ++sco3.2v5*) ++ symcode='[DT]' ++ ;; ++sysv4.2uw2*) ++ symcode='[DT]' ++ ;; ++sysv5* | sco5v6* | unixware* | OpenUNIX*) ++ symcode='[ABDT]' ++ ;; ++sysv4) ++ symcode='[DFNSTU]' ++ ;; ++esac ++ ++# If we're using GNU nm, then use its standard symbol codes. ++case `$NM -V 2>&1` in ++*GNU* | *'with BFD'*) ++ symcode='[ABCDGIRSTW]' ;; ++esac ++ ++# Transform an extracted symbol line into a proper C declaration. ++# Some systems (esp. on ia64) link data and code symbols differently, ++# so use this general approach. ++lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" ++ ++# Transform an extracted symbol line into symbol name and symbol address ++lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" ++lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" ++ ++# Handle CRLF in mingw tool chain ++opt_cr= ++case $build_os in ++mingw*) ++ opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ++ ;; ++esac ++ ++# Try without a prefix underscore, then with it. ++for ac_symprfx in "" "_"; do ++ ++ # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. ++ symxfrm="\\1 $ac_symprfx\\2 \\2" ++ ++ # Write the raw and C identifiers. ++ if test "$lt_cv_nm_interface" = "MS dumpbin"; then ++ # Fake it for dumpbin and say T for any non-static function ++ # and D for any global variable. ++ # Also find C++ and __fastcall symbols from MSVC++, ++ # which start with @ or ?. ++ lt_cv_sys_global_symbol_pipe="$AWK '"\ ++" {last_section=section; section=\$ 3};"\ ++" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ ++" \$ 0!~/External *\|/{next};"\ ++" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ ++" {if(hide[section]) next};"\ ++" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ ++" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ ++" s[1]~/^[@?]/{print s[1], s[1]; next};"\ ++" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ ++" ' prfx=^$ac_symprfx" ++ else ++ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" ++ fi ++ ++ # Check to see that the pipe works correctly. ++ pipe_works=no ++ ++ rm -f conftest* ++ cat > conftest.$ac_ext <<_LT_EOF ++#ifdef __cplusplus ++extern "C" { ++#endif ++char nm_test_var; ++void nm_test_func(void); ++void nm_test_func(void){} ++#ifdef __cplusplus ++} ++#endif ++int main(){nm_test_var='a';nm_test_func();return(0);} ++_LT_EOF ++ ++ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # Now try to grab the symbols. ++ nlist=conftest.nm ++ if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 ++ (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && test -s "$nlist"; then ++ # Try sorting and uniquifying the output. ++ if sort "$nlist" | uniq > "$nlist"T; then ++ mv -f "$nlist"T "$nlist" ++ else ++ rm -f "$nlist"T ++ fi ++ ++ # Make sure that we snagged all the symbols we need. ++ if $GREP ' nm_test_var$' "$nlist" >/dev/null; then ++ if $GREP ' nm_test_func$' "$nlist" >/dev/null; then ++ cat <<_LT_EOF > conftest.$ac_ext ++#ifdef __cplusplus ++extern "C" { ++#endif ++ ++_LT_EOF ++ # Now generate the symbol file. ++ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' ++ ++ cat <<_LT_EOF >> conftest.$ac_ext ++ ++/* The mapping between symbol names and symbols. */ ++const struct { ++ const char *name; ++ void *address; ++} ++lt__PROGRAM__LTX_preloaded_symbols[] = ++{ ++ { "@PROGRAM@", (void *) 0 }, ++_LT_EOF ++ $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext ++ cat <<\_LT_EOF >> conftest.$ac_ext ++ {0, (void *) 0} ++}; ++ ++/* This works around a problem in FreeBSD linker */ ++#ifdef FREEBSD_WORKAROUND ++static const void *lt_preloaded_setup() { ++ return lt__PROGRAM__LTX_preloaded_symbols; ++} ++#endif ++ ++#ifdef __cplusplus ++} ++#endif ++_LT_EOF ++ # Now try linking the two files. ++ mv conftest.$ac_objext conftstm.$ac_objext ++ lt_save_LIBS="$LIBS" ++ lt_save_CFLAGS="$CFLAGS" ++ LIBS="conftstm.$ac_objext" ++ CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" ++ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ++ (eval $ac_link) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && test -s conftest${ac_exeext}; then ++ pipe_works=yes ++ fi ++ LIBS="$lt_save_LIBS" ++ CFLAGS="$lt_save_CFLAGS" ++ else ++ echo "cannot find nm_test_func in $nlist" >&5 ++ fi ++ else ++ echo "cannot find nm_test_var in $nlist" >&5 ++ fi ++ else ++ echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 ++ fi ++ else ++ echo "$progname: failed program was:" >&5 ++ cat conftest.$ac_ext >&5 ++ fi ++ rm -rf conftest* conftst* ++ ++ # Do not use the global_symbol_pipe unless it works. ++ if test "$pipe_works" = yes; then ++ break ++ else ++ lt_cv_sys_global_symbol_pipe= ++ fi ++done ++ ++fi ++ ++if test -z "$lt_cv_sys_global_symbol_pipe"; then ++ lt_cv_sys_global_symbol_to_cdecl= ++fi ++if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then ++ { echo "$as_me:$LINENO: result: failed" >&5 ++echo "${ECHO_T}failed" >&6; } ++else ++ { echo "$as_me:$LINENO: result: ok" >&5 ++echo "${ECHO_T}ok" >&6; } ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++# Check whether --enable-libtool-lock was given. ++if test "${enable_libtool_lock+set}" = set; then ++ enableval=$enable_libtool_lock; ++fi ++ ++test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes ++ ++# Some flags need to be propagated to the compiler or linker for good ++# libtool support. ++case $host in ++ia64-*-hpux*) ++ # Find out which ABI we are using. ++ echo 'int i;' > conftest.$ac_ext ++ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ case `/usr/bin/file conftest.$ac_objext` in ++ *ELF-32*) ++ HPUX_IA64_MODE="32" ++ ;; ++ *ELF-64*) ++ HPUX_IA64_MODE="64" ++ ;; ++ esac ++ fi ++ rm -rf conftest* ++ ;; ++*-*-irix6*) ++ # Find out which ABI we are using. ++ echo '#line __oline__ "configure"' > conftest.$ac_ext ++ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ if test "$lt_cv_prog_gnu_ld" = yes; then ++ case `/usr/bin/file conftest.$ac_objext` in ++ *32-bit*) ++ LD="${LD-ld} -melf32bsmip" ++ ;; ++ *N32*) ++ LD="${LD-ld} -melf32bmipn32" ++ ;; ++ *64-bit*) ++ LD="${LD-ld} -melf64bmip" ++ ;; ++ esac ++ else ++ case `/usr/bin/file conftest.$ac_objext` in ++ *32-bit*) ++ LD="${LD-ld} -32" ++ ;; ++ *N32*) ++ LD="${LD-ld} -n32" ++ ;; ++ *64-bit*) ++ LD="${LD-ld} -64" ++ ;; ++ esac ++ fi ++ fi ++ rm -rf conftest* ++ ;; ++ ++x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ ++s390*-*linux*|s390*-*tpf*|sparc*-*linux*) ++ # Find out which ABI we are using. ++ echo 'int i;' > conftest.$ac_ext ++ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ case `/usr/bin/file conftest.o` in ++ *32-bit*) ++ case $host in ++ x86_64-*kfreebsd*-gnu) ++ LD="${LD-ld} -m elf_i386_fbsd" ++ ;; ++ x86_64-*linux*) ++ LD="${LD-ld} -m elf_i386" ++ ;; ++ ppc64-*linux*|powerpc64-*linux*) ++ LD="${LD-ld} -m elf32ppclinux" ++ ;; ++ s390x-*linux*) ++ LD="${LD-ld} -m elf_s390" ++ ;; ++ sparc64-*linux*) ++ LD="${LD-ld} -m elf32_sparc" ++ ;; ++ esac ++ ;; ++ *64-bit*) ++ case $host in ++ x86_64-*kfreebsd*-gnu) ++ LD="${LD-ld} -m elf_x86_64_fbsd" ++ ;; ++ x86_64-*linux*) ++ LD="${LD-ld} -m elf_x86_64" ++ ;; ++ ppc*-*linux*|powerpc*-*linux*) ++ LD="${LD-ld} -m elf64ppc" ++ ;; ++ s390*-*linux*|s390*-*tpf*) ++ LD="${LD-ld} -m elf64_s390" ++ ;; ++ sparc*-*linux*) ++ LD="${LD-ld} -m elf64_sparc" ++ ;; ++ esac ++ ;; ++ esac ++ fi ++ rm -rf conftest* ++ ;; ++ ++*-*-sco3.2v5*) ++ # On SCO OpenServer 5, we need -belf to get full-featured binaries. ++ SAVE_CFLAGS="$CFLAGS" ++ CFLAGS="$CFLAGS -belf" ++ { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 ++echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } ++if test "${lt_cv_cc_needs_belf+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ lt_cv_cc_needs_belf=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ lt_cv_cc_needs_belf=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 ++echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } ++ if test x"$lt_cv_cc_needs_belf" != x"yes"; then ++ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf ++ CFLAGS="$SAVE_CFLAGS" ++ fi ++ ;; ++sparc*-*solaris*) ++ # Find out which ABI we are using. ++ echo 'int i;' > conftest.$ac_ext ++ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ case `/usr/bin/file conftest.o` in ++ *64-bit*) ++ case $lt_cv_prog_gnu_ld in ++ yes*) LD="${LD-ld} -m elf64_sparc" ;; ++ *) ++ if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then ++ LD="${LD-ld} -64" ++ fi ++ ;; ++ esac ++ ;; ++ esac ++ fi ++ rm -rf conftest* ++ ;; ++esac ++ ++need_locks="$enable_libtool_lock" ++ ++ ++ case $host_os in ++ rhapsody* | darwin*) ++ if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. ++set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_DSYMUTIL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$DSYMUTIL"; then ++ ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++DSYMUTIL=$ac_cv_prog_DSYMUTIL ++if test -n "$DSYMUTIL"; then ++ { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 ++echo "${ECHO_T}$DSYMUTIL" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_DSYMUTIL"; then ++ ac_ct_DSYMUTIL=$DSYMUTIL ++ # Extract the first word of "dsymutil", so it can be a program name with args. ++set dummy dsymutil; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_DSYMUTIL"; then ++ ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL ++if test -n "$ac_ct_DSYMUTIL"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 ++echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_DSYMUTIL" = x; then ++ DSYMUTIL=":" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ DSYMUTIL=$ac_ct_DSYMUTIL ++ fi ++else ++ DSYMUTIL="$ac_cv_prog_DSYMUTIL" ++fi ++ ++ if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. ++set dummy ${ac_tool_prefix}nmedit; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_NMEDIT+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$NMEDIT"; then ++ ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++NMEDIT=$ac_cv_prog_NMEDIT ++if test -n "$NMEDIT"; then ++ { echo "$as_me:$LINENO: result: $NMEDIT" >&5 ++echo "${ECHO_T}$NMEDIT" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_NMEDIT"; then ++ ac_ct_NMEDIT=$NMEDIT ++ # Extract the first word of "nmedit", so it can be a program name with args. ++set dummy nmedit; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_NMEDIT"; then ++ ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_NMEDIT="nmedit" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT ++if test -n "$ac_ct_NMEDIT"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 ++echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_NMEDIT" = x; then ++ NMEDIT=":" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ NMEDIT=$ac_ct_NMEDIT ++ fi ++else ++ NMEDIT="$ac_cv_prog_NMEDIT" ++fi ++ ++ if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. ++set dummy ${ac_tool_prefix}lipo; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_LIPO+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$LIPO"; then ++ ac_cv_prog_LIPO="$LIPO" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_LIPO="${ac_tool_prefix}lipo" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++LIPO=$ac_cv_prog_LIPO ++if test -n "$LIPO"; then ++ { echo "$as_me:$LINENO: result: $LIPO" >&5 ++echo "${ECHO_T}$LIPO" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_LIPO"; then ++ ac_ct_LIPO=$LIPO ++ # Extract the first word of "lipo", so it can be a program name with args. ++set dummy lipo; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_LIPO"; then ++ ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_LIPO="lipo" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO ++if test -n "$ac_ct_LIPO"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 ++echo "${ECHO_T}$ac_ct_LIPO" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_LIPO" = x; then ++ LIPO=":" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ LIPO=$ac_ct_LIPO ++ fi ++else ++ LIPO="$ac_cv_prog_LIPO" ++fi ++ ++ if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. ++set dummy ${ac_tool_prefix}otool; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_OTOOL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$OTOOL"; then ++ ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_OTOOL="${ac_tool_prefix}otool" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++OTOOL=$ac_cv_prog_OTOOL ++if test -n "$OTOOL"; then ++ { echo "$as_me:$LINENO: result: $OTOOL" >&5 ++echo "${ECHO_T}$OTOOL" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_OTOOL"; then ++ ac_ct_OTOOL=$OTOOL ++ # Extract the first word of "otool", so it can be a program name with args. ++set dummy otool; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_OTOOL"; then ++ ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_OTOOL="otool" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL ++if test -n "$ac_ct_OTOOL"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 ++echo "${ECHO_T}$ac_ct_OTOOL" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_OTOOL" = x; then ++ OTOOL=":" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ OTOOL=$ac_ct_OTOOL ++ fi ++else ++ OTOOL="$ac_cv_prog_OTOOL" ++fi ++ ++ if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. ++set dummy ${ac_tool_prefix}otool64; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_OTOOL64+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$OTOOL64"; then ++ ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++OTOOL64=$ac_cv_prog_OTOOL64 ++if test -n "$OTOOL64"; then ++ { echo "$as_me:$LINENO: result: $OTOOL64" >&5 ++echo "${ECHO_T}$OTOOL64" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_OTOOL64"; then ++ ac_ct_OTOOL64=$OTOOL64 ++ # Extract the first word of "otool64", so it can be a program name with args. ++set dummy otool64; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_OTOOL64"; then ++ ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_OTOOL64="otool64" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 ++if test -n "$ac_ct_OTOOL64"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 ++echo "${ECHO_T}$ac_ct_OTOOL64" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_OTOOL64" = x; then ++ OTOOL64=":" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ OTOOL64=$ac_ct_OTOOL64 ++ fi ++else ++ OTOOL64="$ac_cv_prog_OTOOL64" ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 ++echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } ++if test "${lt_cv_apple_cc_single_mod+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_apple_cc_single_mod=no ++ if test -z "${LT_MULTI_MODULE}"; then ++ # By default we will add the -single_module flag. You can override ++ # by either setting the environment variable LT_MULTI_MODULE ++ # non-empty at configure time, or by adding -multi_module to the ++ # link flags. ++ rm -rf libconftest.dylib* ++ echo "int foo(void){return 1;}" > conftest.c ++ echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ ++-dynamiclib -Wl,-single_module conftest.c" >&5 ++ $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ ++ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err ++ _lt_result=$? ++ if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then ++ lt_cv_apple_cc_single_mod=yes ++ else ++ cat conftest.err >&5 ++ fi ++ rm -rf libconftest.dylib* ++ rm -f conftest.* ++ fi ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 ++echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } ++ { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 ++echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } ++if test "${lt_cv_ld_exported_symbols_list+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_ld_exported_symbols_list=no ++ save_LDFLAGS=$LDFLAGS ++ echo "_main" > conftest.sym ++ LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ lt_cv_ld_exported_symbols_list=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ lt_cv_ld_exported_symbols_list=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LDFLAGS="$save_LDFLAGS" ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 ++echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } ++ case $host_os in ++ rhapsody* | darwin1.[012]) ++ _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; ++ darwin1.*) ++ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; ++ darwin*) # darwin 5.x on ++ # if running on 10.5 or later, the deployment target defaults ++ # to the OS version, if on x86, and 10.4, the deployment ++ # target defaults to 10.4. Don't you love it? ++ case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in ++ 10.0,*86*-darwin8*|10.0,*-darwin[91]*) ++ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; ++ 10.[012]*) ++ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; ++ 10.*) ++ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; ++ esac ++ ;; ++ esac ++ if test "$lt_cv_apple_cc_single_mod" = "yes"; then ++ _lt_dar_single_mod='$single_module' ++ fi ++ if test "$lt_cv_ld_exported_symbols_list" = "yes"; then ++ _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' ++ else ++ _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' ++ fi ++ if test "$DSYMUTIL" != ":"; then ++ _lt_dsymutil='~$DSYMUTIL $lib || :' ++ else ++ _lt_dsymutil= ++ fi ++ ;; ++ esac ++ ++ ++for ac_header in dlfcn.h ++do ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ++{ echo "$as_me:$LINENO: checking for $ac_header" >&5 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } ++if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++ ++@%:@include <$ac_header> ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ eval "$as_ac_Header=yes" ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ eval "$as_ac_Header=no" ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ac_res=`eval echo '${'$as_ac_Header'}'` ++ { echo "$as_me:$LINENO: result: $ac_res" >&5 ++echo "${ECHO_T}$ac_res" >&6; } ++if test `eval echo '${'$as_ac_Header'}'` = yes; then ++ cat >>confdefs.h <<_ACEOF ++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++ ++ ++ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++if test -z "$CXX"; then ++ if test -n "$CCC"; then ++ CXX=$CCC ++ else ++ if test -n "$ac_tool_prefix"; then ++ for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC ++ do ++ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ++set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_CXX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$CXX"; then ++ ac_cv_prog_CXX="$CXX" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++CXX=$ac_cv_prog_CXX ++if test -n "$CXX"; then ++ { echo "$as_me:$LINENO: result: $CXX" >&5 ++echo "${ECHO_T}$CXX" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$CXX" && break ++ done ++fi ++if test -z "$CXX"; then ++ ac_ct_CXX=$CXX ++ for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_CXX"; then ++ ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_CXX="$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_CXX=$ac_cv_prog_ac_ct_CXX ++if test -n "$ac_ct_CXX"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 ++echo "${ECHO_T}$ac_ct_CXX" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$ac_ct_CXX" && break ++done ++ ++ if test "x$ac_ct_CXX" = x; then ++ CXX="g++" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ CXX=$ac_ct_CXX ++ fi ++fi ++ ++ fi ++fi ++# Provide some information about the compiler. ++echo "$as_me:$LINENO: checking for C++ compiler version" >&5 ++ac_compiler=`set X $ac_compile; echo $2` ++{ (ac_try="$ac_compiler --version >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler --version >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -v >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -v >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -V >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -V >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++ ++{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 ++echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } ++if test "${ac_cv_cxx_compiler_gnu+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++#ifndef __GNUC__ ++ choke me ++#endif ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_compiler_gnu=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_compiler_gnu=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ac_cv_cxx_compiler_gnu=$ac_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 ++echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } ++GXX=`test $ac_compiler_gnu = yes && echo yes` ++ac_test_CXXFLAGS=${CXXFLAGS+set} ++ac_save_CXXFLAGS=$CXXFLAGS ++{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 ++echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } ++if test "${ac_cv_prog_cxx_g+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_save_cxx_werror_flag=$ac_cxx_werror_flag ++ ac_cxx_werror_flag=yes ++ ac_cv_prog_cxx_g=no ++ CXXFLAGS="-g" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_cxx_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ CXXFLAGS="" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ : ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cxx_werror_flag=$ac_save_cxx_werror_flag ++ CXXFLAGS="-g" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_cxx_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_cxx_werror_flag=$ac_save_cxx_werror_flag ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 ++echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } ++if test "$ac_test_CXXFLAGS" = set; then ++ CXXFLAGS=$ac_save_CXXFLAGS ++elif test $ac_cv_prog_cxx_g = yes; then ++ if test "$GXX" = yes; then ++ CXXFLAGS="-g -O2" ++ else ++ CXXFLAGS="-g" ++ fi ++else ++ if test "$GXX" = yes; then ++ CXXFLAGS="-O2" ++ else ++ CXXFLAGS= ++ fi ++fi ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++depcc="$CXX" am_compiler_list= ++ ++{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 ++echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } ++if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then ++ # We make a subdir and do the tests there. Otherwise we can end up ++ # making bogus files that we don't know about and never remove. For ++ # instance it was reported that on HP-UX the gcc test will end up ++ # making a dummy file named `D' -- because `-MD' means `put the output ++ # in D'. ++ mkdir conftest.dir ++ # Copy depcomp to subdir because otherwise we won't find it if we're ++ # using a relative directory. ++ cp "$am_depcomp" conftest.dir ++ cd conftest.dir ++ # We will build objects and dependencies in a subdirectory because ++ # it helps to detect inapplicable dependency modes. For instance ++ # both Tru64's cc and ICC support -MD to output dependencies as a ++ # side effect of compilation, but ICC will put the dependencies in ++ # the current directory while Tru64 will put them in the object ++ # directory. ++ mkdir sub ++ ++ am_cv_CXX_dependencies_compiler_type=none ++ if test "$am_compiler_list" = ""; then ++ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` ++ fi ++ for depmode in $am_compiler_list; do ++ # Setup a source with many dependencies, because some compilers ++ # like to wrap large dependency lists on column 80 (with \), and ++ # we should not choose a depcomp mode which is confused by this. ++ # ++ # We need to recreate these files for each test, as the compiler may ++ # overwrite some of them when testing with obscure command lines. ++ # This happens at least with the AIX C compiler. ++ : > sub/conftest.c ++ for i in 1 2 3 4 5 6; do ++ echo '#include "conftst'$i'.h"' >> sub/conftest.c ++ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with ++ # Solaris 8's {/usr,}/bin/sh. ++ touch sub/conftst$i.h ++ done ++ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf ++ ++ case $depmode in ++ nosideeffect) ++ # after this tag, mechanisms are not by side-effect, so they'll ++ # only be used when explicitly requested ++ if test "x$enable_dependency_tracking" = xyes; then ++ continue ++ else ++ break ++ fi ++ ;; ++ none) break ;; ++ esac ++ # We check with `-c' and `-o' for the sake of the "dashmstdout" ++ # mode. It turns out that the SunPro C++ compiler does not properly ++ # handle `-M -o', and we need to detect this. ++ if depmode=$depmode \ ++ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ ++ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ ++ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ ++ >/dev/null 2>conftest.err && ++ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ++ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then ++ # icc doesn't choke on unknown options, it will just issue warnings ++ # or remarks (even with -Werror). So we grep stderr for any message ++ # that says an option was ignored or not supported. ++ # When given -MP, icc 7.0 and 7.1 complain thusly: ++ # icc: Command line warning: ignoring option '-M'; no argument required ++ # The diagnosis changed in icc 8.0: ++ # icc: Command line remark: option '-MP' not supported ++ if (grep 'ignoring option' conftest.err || ++ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else ++ am_cv_CXX_dependencies_compiler_type=$depmode ++ break ++ fi ++ fi ++ done ++ ++ cd .. ++ rm -rf conftest.dir ++else ++ am_cv_CXX_dependencies_compiler_type=none ++fi ++ ++fi ++{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 ++echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } ++CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type ++ ++ if ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then ++ am__fastdepCXX_TRUE= ++ am__fastdepCXX_FALSE='#' ++else ++ am__fastdepCXX_TRUE='#' ++ am__fastdepCXX_FALSE= ++fi ++ ++ ++if test -n "$CXX" && ( test "X$CXX" != "Xno" && ++ ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || ++ (test "X$CXX" != "Xg++"))) ; then ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 ++echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } ++if test -z "$CXXCPP"; then ++ if test "${ac_cv_prog_CXXCPP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # Double quotes because CXXCPP needs to be expanded ++ for CXXCPP in "$CXX -E" "/lib/cpp" ++ do ++ ac_preproc_ok=false ++for ac_cxx_preproc_warn_flag in '' yes ++do ++ # Use a header file that comes with gcc, so configuring glibc ++ # with a fresh cross-compiler works. ++ # Prefer to if __STDC__ is defined, since ++ # exists even on freestanding compilers. ++ # On the NeXT, cc -E runs the code through the compiler's parser, ++ # not just through cpp. "Syntax error" is here to catch this case. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@ifdef __STDC__ ++@%:@ include ++@%:@else ++@%:@ include ++@%:@endif ++ Syntax error ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ : ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # Broken: fails on valid input. ++continue ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++ ++ # OK, works on sane cases. Now check whether nonexistent headers ++ # can be detected and how. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ # Broken: success on invalid input. ++continue ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # Passes both tests. ++ac_preproc_ok=: ++break ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++ ++done ++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ++rm -f conftest.err conftest.$ac_ext ++if $ac_preproc_ok; then ++ break ++fi ++ ++ done ++ ac_cv_prog_CXXCPP=$CXXCPP ++ ++fi ++ CXXCPP=$ac_cv_prog_CXXCPP ++else ++ ac_cv_prog_CXXCPP=$CXXCPP ++fi ++{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 ++echo "${ECHO_T}$CXXCPP" >&6; } ++ac_preproc_ok=false ++for ac_cxx_preproc_warn_flag in '' yes ++do ++ # Use a header file that comes with gcc, so configuring glibc ++ # with a fresh cross-compiler works. ++ # Prefer to if __STDC__ is defined, since ++ # exists even on freestanding compilers. ++ # On the NeXT, cc -E runs the code through the compiler's parser, ++ # not just through cpp. "Syntax error" is here to catch this case. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@ifdef __STDC__ ++@%:@ include ++@%:@else ++@%:@ include ++@%:@endif ++ Syntax error ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ : ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # Broken: fails on valid input. ++continue ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++ ++ # OK, works on sane cases. Now check whether nonexistent headers ++ # can be detected and how. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++@%:@include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ # Broken: success on invalid input. ++continue ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ # Passes both tests. ++ac_preproc_ok=: ++break ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++ ++done ++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ++rm -f conftest.err conftest.$ac_ext ++if $ac_preproc_ok; then ++ : ++else ++ _lt_caught_CXX_error=yes ++fi ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++else ++ _lt_caught_CXX_error=yes ++fi ++ ++ ++ ++ ++ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++if test -n "$ac_tool_prefix"; then ++ for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn ++ do ++ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ++set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_F77+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$F77"; then ++ ac_cv_prog_F77="$F77" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_F77="$ac_tool_prefix$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++F77=$ac_cv_prog_F77 ++if test -n "$F77"; then ++ { echo "$as_me:$LINENO: result: $F77" >&5 ++echo "${ECHO_T}$F77" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$F77" && break ++ done ++fi ++if test -z "$F77"; then ++ ac_ct_F77=$F77 ++ for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_F77+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_F77"; then ++ ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_F77="$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_F77=$ac_cv_prog_ac_ct_F77 ++if test -n "$ac_ct_F77"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 ++echo "${ECHO_T}$ac_ct_F77" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$ac_ct_F77" && break ++done ++ ++ if test "x$ac_ct_F77" = x; then ++ F77="" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ F77=$ac_ct_F77 ++ fi ++fi ++ ++ ++# Provide some information about the compiler. ++echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 ++ac_compiler=`set X $ac_compile; echo $2` ++{ (ac_try="$ac_compiler --version >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler --version >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -v >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -v >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -V >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -V >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++rm -f a.out ++ ++# If we don't use `.F' as extension, the preprocessor is not run on the ++# input file. (Note that this only needs to work for GNU compilers.) ++ac_save_ext=$ac_ext ++ac_ext=F ++{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 ++echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } ++if test "${ac_cv_f77_compiler_gnu+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++#ifndef __GNUC__ ++ choke me ++#endif ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_compiler_gnu=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_compiler_gnu=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ac_cv_f77_compiler_gnu=$ac_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 ++echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } ++ac_ext=$ac_save_ext ++ac_test_FFLAGS=${FFLAGS+set} ++ac_save_FFLAGS=$FFLAGS ++FFLAGS= ++{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 ++echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } ++if test "${ac_cv_prog_f77_g+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ FFLAGS=-g ++cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_f77_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_prog_f77_g=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 ++echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } ++if test "$ac_test_FFLAGS" = set; then ++ FFLAGS=$ac_save_FFLAGS ++elif test $ac_cv_prog_f77_g = yes; then ++ if test "x$ac_cv_f77_compiler_gnu" = xyes; then ++ FFLAGS="-g -O2" ++ else ++ FFLAGS="-g" ++ fi ++else ++ if test "x$ac_cv_f77_compiler_gnu" = xyes; then ++ FFLAGS="-O2" ++ else ++ FFLAGS= ++ fi ++fi ++ ++G77=`test $ac_compiler_gnu = yes && echo yes` ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++if test -z "$F77" || test "X$F77" = "Xno"; then ++ _lt_disable_F77=yes ++fi ++ ++ ++ ++ ++ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++if test -n "$ac_tool_prefix"; then ++ for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 ++ do ++ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ++set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_FC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$FC"; then ++ ac_cv_prog_FC="$FC" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_FC="$ac_tool_prefix$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++FC=$ac_cv_prog_FC ++if test -n "$FC"; then ++ { echo "$as_me:$LINENO: result: $FC" >&5 ++echo "${ECHO_T}$FC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$FC" && break ++ done ++fi ++if test -z "$FC"; then ++ ac_ct_FC=$FC ++ for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_FC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_FC"; then ++ ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_FC="$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_FC=$ac_cv_prog_ac_ct_FC ++if test -n "$ac_ct_FC"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 ++echo "${ECHO_T}$ac_ct_FC" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ test -n "$ac_ct_FC" && break ++done ++ ++ if test "x$ac_ct_FC" = x; then ++ FC="" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ FC=$ac_ct_FC ++ fi ++fi ++ ++ ++# Provide some information about the compiler. ++echo "$as_me:$LINENO: checking for Fortran compiler version" >&5 ++ac_compiler=`set X $ac_compile; echo $2` ++{ (ac_try="$ac_compiler --version >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler --version >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -v >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -v >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++{ (ac_try="$ac_compiler -V >&5" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compiler -V >&5") 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++rm -f a.out ++ ++# If we don't use `.F' as extension, the preprocessor is not run on the ++# input file. (Note that this only needs to work for GNU compilers.) ++ac_save_ext=$ac_ext ++ac_ext=F ++{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 ++echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6; } ++if test "${ac_cv_fc_compiler_gnu+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++#ifndef __GNUC__ ++ choke me ++#endif ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_compiler_gnu=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_compiler_gnu=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ac_cv_fc_compiler_gnu=$ac_compiler_gnu ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 ++echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6; } ++ac_ext=$ac_save_ext ++ac_test_FFLAGS=${FCFLAGS+set} ++ac_save_FFLAGS=$FCFLAGS ++FCFLAGS= ++{ echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 ++echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6; } ++if test "${ac_cv_prog_fc_g+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ FCFLAGS=-g ++cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_fc_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_prog_fc_g=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 ++echo "${ECHO_T}$ac_cv_prog_fc_g" >&6; } ++if test "$ac_test_FFLAGS" = set; then ++ FCFLAGS=$ac_save_FFLAGS ++elif test $ac_cv_prog_fc_g = yes; then ++ if test "x$ac_cv_fc_compiler_gnu" = xyes; then ++ FCFLAGS="-g -O2" ++ else ++ FCFLAGS="-g" ++ fi ++else ++ if test "x$ac_cv_fc_compiler_gnu" = xyes; then ++ FCFLAGS="-O2" ++ else ++ FCFLAGS= ++ fi ++fi ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++if test -z "$FC" || test "X$FC" = "Xno"; then ++ _lt_disable_FC=yes ++fi ++ ++ ++ ++ ++# Set options ++enable_dlopen=yes ++enable_win32_dll=yes ++ ++case $host in ++*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) ++ if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. ++set dummy ${ac_tool_prefix}as; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_AS+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$AS"; then ++ ac_cv_prog_AS="$AS" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_AS="${ac_tool_prefix}as" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++AS=$ac_cv_prog_AS ++if test -n "$AS"; then ++ { echo "$as_me:$LINENO: result: $AS" >&5 ++echo "${ECHO_T}$AS" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_AS"; then ++ ac_ct_AS=$AS ++ # Extract the first word of "as", so it can be a program name with args. ++set dummy as; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_AS+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_AS"; then ++ ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_AS="as" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_AS=$ac_cv_prog_ac_ct_AS ++if test -n "$ac_ct_AS"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 ++echo "${ECHO_T}$ac_ct_AS" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_AS" = x; then ++ AS="false" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ AS=$ac_ct_AS ++ fi ++else ++ AS="$ac_cv_prog_AS" ++fi ++ ++ if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. ++set dummy ${ac_tool_prefix}dlltool; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_DLLTOOL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$DLLTOOL"; then ++ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++DLLTOOL=$ac_cv_prog_DLLTOOL ++if test -n "$DLLTOOL"; then ++ { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 ++echo "${ECHO_T}$DLLTOOL" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_DLLTOOL"; then ++ ac_ct_DLLTOOL=$DLLTOOL ++ # Extract the first word of "dlltool", so it can be a program name with args. ++set dummy dlltool; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_DLLTOOL"; then ++ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_DLLTOOL="dlltool" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL ++if test -n "$ac_ct_DLLTOOL"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 ++echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_DLLTOOL" = x; then ++ DLLTOOL="false" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ DLLTOOL=$ac_ct_DLLTOOL ++ fi ++else ++ DLLTOOL="$ac_cv_prog_DLLTOOL" ++fi ++ ++ if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. ++set dummy ${ac_tool_prefix}objdump; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_OBJDUMP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$OBJDUMP"; then ++ ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++OBJDUMP=$ac_cv_prog_OBJDUMP ++if test -n "$OBJDUMP"; then ++ { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 ++echo "${ECHO_T}$OBJDUMP" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++fi ++if test -z "$ac_cv_prog_OBJDUMP"; then ++ ac_ct_OBJDUMP=$OBJDUMP ++ # Extract the first word of "objdump", so it can be a program name with args. ++set dummy objdump; ac_word=$2 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } ++if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_OBJDUMP"; then ++ ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_prog_ac_ct_OBJDUMP="objdump" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++IFS=$as_save_IFS ++ ++fi ++fi ++ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP ++if test -n "$ac_ct_OBJDUMP"; then ++ { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 ++echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ if test "x$ac_ct_OBJDUMP" = x; then ++ OBJDUMP="false" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac ++ OBJDUMP=$ac_ct_OBJDUMP ++ fi ++else ++ OBJDUMP="$ac_cv_prog_OBJDUMP" ++fi ++ ++ ;; ++esac ++ ++test -z "$AS" && AS=as ++ ++ ++ ++ ++ ++test -z "$DLLTOOL" && DLLTOOL=dlltool ++ ++ ++ ++ ++ ++test -z "$OBJDUMP" && OBJDUMP=objdump ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++# Check whether --with-pic was given. ++if test "${with_pic+set}" = set; then ++ withval=$with_pic; pic_mode="$withval" ++else ++ pic_mode=default ++fi ++ ++ ++test -z "$pic_mode" && pic_mode=default ++ ++ ++ ++ ++ ++ ++ ++ # Check whether --enable-fast-install was given. ++if test "${enable_fast_install+set}" = set; then ++ enableval=$enable_fast_install; p=${PACKAGE-default} ++ case $enableval in ++ yes) enable_fast_install=yes ;; ++ no) enable_fast_install=no ;; ++ *) ++ enable_fast_install=no ++ # Look at the argument we got. We use all the common list separators. ++ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," ++ for pkg in $enableval; do ++ IFS="$lt_save_ifs" ++ if test "X$pkg" = "X$p"; then ++ enable_fast_install=yes ++ fi ++ done ++ IFS="$lt_save_ifs" ++ ;; ++ esac ++else ++ enable_fast_install=yes ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++# This can be used to rebuild libtool when needed ++LIBTOOL_DEPS="$ltmain" ++ ++# Always use our own libtool. ++LIBTOOL='$(SHELL) $(top_builddir)/libtool' ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++test -z "$LN_S" && LN_S="ln -s" ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++if test -n "${ZSH_VERSION+set}" ; then ++ setopt NO_GLOB_SUBST ++fi ++ ++{ echo "$as_me:$LINENO: checking for objdir" >&5 ++echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } ++if test "${lt_cv_objdir+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ rm -f .libs 2>/dev/null ++mkdir .libs 2>/dev/null ++if test -d .libs; then ++ lt_cv_objdir=.libs ++else ++ # MS-DOS does not allow filenames that begin with a dot. ++ lt_cv_objdir=_libs ++fi ++rmdir .libs 2>/dev/null ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 ++echo "${ECHO_T}$lt_cv_objdir" >&6; } ++objdir=$lt_cv_objdir ++ ++ ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define LT_OBJDIR "$lt_cv_objdir/" ++_ACEOF ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++case $host_os in ++aix3*) ++ # AIX sometimes has problems with the GCC collect2 program. For some ++ # reason, if we set the COLLECT_NAMES environment variable, the problems ++ # vanish in a puff of smoke. ++ if test "X${COLLECT_NAMES+set}" != Xset; then ++ COLLECT_NAMES= ++ export COLLECT_NAMES ++ fi ++ ;; ++esac ++ ++# Sed substitution that helps us do robust quoting. It backslashifies ++# metacharacters that are still active within double-quoted strings. ++sed_quote_subst='s/\(["`$\\]\)/\\\1/g' ++ ++# Same as above, but do not quote variable references. ++double_quote_subst='s/\(["`\\]\)/\\\1/g' ++ ++# Sed substitution to delay expansion of an escaped shell variable in a ++# double_quote_subst'ed string. ++delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' ++ ++# Sed substitution to delay expansion of an escaped single quote. ++delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' ++ ++# Sed substitution to avoid accidental globbing in evaled expressions ++no_glob_subst='s/\*/\\\*/g' ++ ++# Global variables: ++ofile=libtool ++can_build_shared=yes ++ ++# All known linkers require a `.a' archive for static linking (except MSVC, ++# which needs '.lib'). ++libext=a ++ ++with_gnu_ld="$lt_cv_prog_gnu_ld" ++ ++old_CC="$CC" ++old_CFLAGS="$CFLAGS" ++ ++# Set sane defaults for various variables ++test -z "$CC" && CC=cc ++test -z "$LTCC" && LTCC=$CC ++test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS ++test -z "$LD" && LD=ld ++test -z "$ac_objext" && ac_objext=o ++ ++for cc_temp in $compiler""; do ++ case $cc_temp in ++ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; ++ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; ++ \-*) ;; ++ *) break;; ++ esac ++done ++cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` ++ ++ ++# Only perform the check for file, if the check method requires it ++test -z "$MAGIC_CMD" && MAGIC_CMD=file ++case $deplibs_check_method in ++file_magic*) ++ if test "$file_magic_cmd" = '$MAGIC_CMD'; then ++ { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 ++echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } ++if test "${lt_cv_path_MAGIC_CMD+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ case $MAGIC_CMD in ++[\\/*] | ?:[\\/]*) ++ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ++ ;; ++*) ++ lt_save_MAGIC_CMD="$MAGIC_CMD" ++ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ++ ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" ++ for ac_dir in $ac_dummy; do ++ IFS="$lt_save_ifs" ++ test -z "$ac_dir" && ac_dir=. ++ if test -f $ac_dir/${ac_tool_prefix}file; then ++ lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" ++ if test -n "$file_magic_test_file"; then ++ case $deplibs_check_method in ++ "file_magic "*) ++ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` ++ MAGIC_CMD="$lt_cv_path_MAGIC_CMD" ++ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | ++ $EGREP "$file_magic_regex" > /dev/null; then ++ : ++ else ++ cat <<_LT_EOF 1>&2 ++ ++*** Warning: the command libtool uses to detect shared libraries, ++*** $file_magic_cmd, produces output that libtool cannot recognize. ++*** The result is that libtool may fail to recognize shared libraries ++*** as such. This will affect the creation of libtool libraries that ++*** depend on shared libraries, but programs linked with such libtool ++*** libraries will work regardless of this problem. Nevertheless, you ++*** may want to report the problem to your system manager and/or to ++*** bug-libtool@gnu.org ++ ++_LT_EOF ++ fi ;; ++ esac ++ fi ++ break ++ fi ++ done ++ IFS="$lt_save_ifs" ++ MAGIC_CMD="$lt_save_MAGIC_CMD" ++ ;; ++esac ++fi ++ ++MAGIC_CMD="$lt_cv_path_MAGIC_CMD" ++if test -n "$MAGIC_CMD"; then ++ { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 ++echo "${ECHO_T}$MAGIC_CMD" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ ++ ++ ++if test -z "$lt_cv_path_MAGIC_CMD"; then ++ if test -n "$ac_tool_prefix"; then ++ { echo "$as_me:$LINENO: checking for file" >&5 ++echo $ECHO_N "checking for file... $ECHO_C" >&6; } ++if test "${lt_cv_path_MAGIC_CMD+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ case $MAGIC_CMD in ++[\\/*] | ?:[\\/]*) ++ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ++ ;; ++*) ++ lt_save_MAGIC_CMD="$MAGIC_CMD" ++ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ++ ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" ++ for ac_dir in $ac_dummy; do ++ IFS="$lt_save_ifs" ++ test -z "$ac_dir" && ac_dir=. ++ if test -f $ac_dir/file; then ++ lt_cv_path_MAGIC_CMD="$ac_dir/file" ++ if test -n "$file_magic_test_file"; then ++ case $deplibs_check_method in ++ "file_magic "*) ++ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` ++ MAGIC_CMD="$lt_cv_path_MAGIC_CMD" ++ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | ++ $EGREP "$file_magic_regex" > /dev/null; then ++ : ++ else ++ cat <<_LT_EOF 1>&2 ++ ++*** Warning: the command libtool uses to detect shared libraries, ++*** $file_magic_cmd, produces output that libtool cannot recognize. ++*** The result is that libtool may fail to recognize shared libraries ++*** as such. This will affect the creation of libtool libraries that ++*** depend on shared libraries, but programs linked with such libtool ++*** libraries will work regardless of this problem. Nevertheless, you ++*** may want to report the problem to your system manager and/or to ++*** bug-libtool@gnu.org ++ ++_LT_EOF ++ fi ;; ++ esac ++ fi ++ break ++ fi ++ done ++ IFS="$lt_save_ifs" ++ MAGIC_CMD="$lt_save_MAGIC_CMD" ++ ;; ++esac ++fi ++ ++MAGIC_CMD="$lt_cv_path_MAGIC_CMD" ++if test -n "$MAGIC_CMD"; then ++ { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 ++echo "${ECHO_T}$MAGIC_CMD" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++ ++ ++ else ++ MAGIC_CMD=: ++ fi ++fi ++ ++ fi ++ ;; ++esac ++ ++# Use C for the default configuration in the libtool script ++ ++lt_save_CC="$CC" ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++# Source file extension for C test sources. ++ac_ext=c ++ ++# Object file extension for compiled C test sources. ++objext=o ++objext=$objext ++ ++# Code to be used in simple compile tests ++lt_simple_compile_test_code="int some_variable = 0;" ++ ++# Code to be used in simple link tests ++lt_simple_link_test_code='int main(){return(0);}' ++ ++ ++ ++ ++ ++ ++ ++# If no C compiler was specified, use CC. ++LTCC=${LTCC-"$CC"} ++ ++# If no C compiler flags were specified, use CFLAGS. ++LTCFLAGS=${LTCFLAGS-"$CFLAGS"} ++ ++# Allow CC to be a program name with arguments. ++compiler=$CC ++ ++# Save the default compiler, since it gets overwritten when the other ++# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. ++compiler_DEFAULT=$CC ++ ++# save warnings/boilerplate of simple test code ++ac_outfile=conftest.$ac_objext ++echo "$lt_simple_compile_test_code" >conftest.$ac_ext ++eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err ++_lt_compiler_boilerplate=`cat conftest.err` ++$RM conftest* ++ ++ac_outfile=conftest.$ac_objext ++echo "$lt_simple_link_test_code" >conftest.$ac_ext ++eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err ++_lt_linker_boilerplate=`cat conftest.err` ++$RM -r conftest* ++ ++ ++## CAVEAT EMPTOR: ++## There is no encapsulation within the following macros, do not change ++## the running order or otherwise move them around unless you know exactly ++## what you are doing... ++if test -n "$compiler"; then ++ ++lt_prog_compiler_no_builtin_flag= ++ ++if test "$GCC" = yes; then ++ lt_prog_compiler_no_builtin_flag=' -fno-builtin' ++ ++ { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 ++echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_rtti_exceptions=no ++ ac_outfile=conftest.$ac_objext ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ lt_compiler_flag="-fno-rtti -fno-exceptions" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ # The option is referenced via a variable to avoid confusing sed. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>conftest.err) ++ ac_status=$? ++ cat conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s "$ac_outfile"; then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings other than the usual output. ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp ++ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 ++ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_rtti_exceptions=yes ++ fi ++ fi ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } ++ ++if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then ++ lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" ++else ++ : ++fi ++ ++fi ++ ++ ++ ++ ++ ++ ++ lt_prog_compiler_wl= ++lt_prog_compiler_pic= ++lt_prog_compiler_static= ++ ++{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 ++echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } ++ ++ if test "$GCC" = yes; then ++ lt_prog_compiler_wl='-Wl,' ++ lt_prog_compiler_static='-static' ++ ++ case $host_os in ++ aix*) ++ # All AIX code is PIC. ++ if test "$host_cpu" = ia64; then ++ # AIX 5 now supports IA64 processor ++ lt_prog_compiler_static='-Bstatic' ++ fi ++ ;; ++ ++ amigaos*) ++ case $host_cpu in ++ powerpc) ++ # see comment about AmigaOS4 .so support ++ lt_prog_compiler_pic='-fPIC' ++ ;; ++ m68k) ++ # FIXME: we need at least 68020 code to build shared libraries, but ++ # adding the `-m68020' flag to GCC prevents building anything better, ++ # like `-m68040'. ++ lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ++ ;; ++ esac ++ ;; ++ ++ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) ++ # PIC is the default for these OSes. ++ ;; ++ ++ mingw* | cygwin* | pw32* | os2* | cegcc*) ++ # This hack is so that the source file can tell whether it is being ++ # built for inclusion in a dll (and should export symbols for example). ++ # Although the cygwin gcc ignores -fPIC, still need this for old-style ++ # (--disable-auto-import) libraries ++ lt_prog_compiler_pic='-DDLL_EXPORT' ++ ;; ++ ++ darwin* | rhapsody*) ++ # PIC is the default on this platform ++ # Common symbols not allowed in MH_DYLIB files ++ lt_prog_compiler_pic='-fno-common' ++ ;; ++ ++ hpux*) ++ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit ++ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag ++ # sets the default TLS model and affects inlining. ++ case $host_cpu in ++ hppa*64*) ++ # +Z the default ++ ;; ++ *) ++ lt_prog_compiler_pic='-fPIC' ++ ;; ++ esac ++ ;; ++ ++ interix[3-9]*) ++ # Interix 3.x gcc -fpic/-fPIC options generate broken code. ++ # Instead, we relocate shared libraries at runtime. ++ ;; ++ ++ msdosdjgpp*) ++ # Just because we use GCC doesn't mean we suddenly get shared libraries ++ # on systems that don't support them. ++ lt_prog_compiler_can_build_shared=no ++ enable_shared=no ++ ;; ++ ++ *nto* | *qnx*) ++ # QNX uses GNU C++, but need to define -shared option too, otherwise ++ # it will coredump. ++ lt_prog_compiler_pic='-fPIC -shared' ++ ;; ++ ++ sysv4*MP*) ++ if test -d /usr/nec; then ++ lt_prog_compiler_pic=-Kconform_pic ++ fi ++ ;; ++ ++ *) ++ lt_prog_compiler_pic='-fPIC' ++ ;; ++ esac ++ else ++ # PORTME Check for flag to pass linker flags through the system compiler. ++ case $host_os in ++ aix*) ++ lt_prog_compiler_wl='-Wl,' ++ if test "$host_cpu" = ia64; then ++ # AIX 5 now supports IA64 processor ++ lt_prog_compiler_static='-Bstatic' ++ else ++ lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' ++ fi ++ ;; ++ ++ mingw* | cygwin* | pw32* | os2* | cegcc*) ++ # This hack is so that the source file can tell whether it is being ++ # built for inclusion in a dll (and should export symbols for example). ++ lt_prog_compiler_pic='-DDLL_EXPORT' ++ ;; ++ ++ hpux9* | hpux10* | hpux11*) ++ lt_prog_compiler_wl='-Wl,' ++ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but ++ # not for PA HP-UX. ++ case $host_cpu in ++ hppa*64*|ia64*) ++ # +Z the default ++ ;; ++ *) ++ lt_prog_compiler_pic='+Z' ++ ;; ++ esac ++ # Is there a better lt_prog_compiler_static that works with the bundled CC? ++ lt_prog_compiler_static='${wl}-a ${wl}archive' ++ ;; ++ ++ irix5* | irix6* | nonstopux*) ++ lt_prog_compiler_wl='-Wl,' ++ # PIC (with -KPIC) is the default. ++ lt_prog_compiler_static='-non_shared' ++ ;; ++ ++ linux* | k*bsd*-gnu) ++ case $cc_basename in ++ # old Intel for x86_64 which still supported -KPIC. ++ ecc*) ++ lt_prog_compiler_wl='-Wl,' ++ lt_prog_compiler_pic='-KPIC' ++ lt_prog_compiler_static='-static' ++ ;; ++ # icc used to be incompatible with GCC. ++ # ICC 10 doesn't accept -KPIC any more. ++ icc* | ifort*) ++ lt_prog_compiler_wl='-Wl,' ++ lt_prog_compiler_pic='-fPIC' ++ lt_prog_compiler_static='-static' ++ ;; ++ # Lahey Fortran 8.1. ++ lf95*) ++ lt_prog_compiler_wl='-Wl,' ++ lt_prog_compiler_pic='--shared' ++ lt_prog_compiler_static='--static' ++ ;; ++ pgcc* | pgf77* | pgf90* | pgf95*) ++ # Portland Group compilers (*not* the Pentium gcc compiler, ++ # which looks to be a dead project) ++ lt_prog_compiler_wl='-Wl,' ++ lt_prog_compiler_pic='-fpic' ++ lt_prog_compiler_static='-Bstatic' ++ ;; ++ ccc*) ++ lt_prog_compiler_wl='-Wl,' ++ # All Alpha code is PIC. ++ lt_prog_compiler_static='-non_shared' ++ ;; ++ xl*) ++ # IBM XL C 8.0/Fortran 10.1 on PPC ++ lt_prog_compiler_wl='-Wl,' ++ lt_prog_compiler_pic='-qpic' ++ lt_prog_compiler_static='-qstaticlink' ++ ;; ++ *) ++ case `$CC -V 2>&1 | sed 5q` in ++ *Sun\ F* | *Sun*Fortran*) ++ # Sun Fortran 8.3 passes all unrecognized flags to the linker ++ lt_prog_compiler_pic='-KPIC' ++ lt_prog_compiler_static='-Bstatic' ++ lt_prog_compiler_wl='' ++ ;; ++ *Sun\ C*) ++ # Sun C 5.9 ++ lt_prog_compiler_pic='-KPIC' ++ lt_prog_compiler_static='-Bstatic' ++ lt_prog_compiler_wl='-Wl,' ++ ;; ++ esac ++ ;; ++ esac ++ ;; ++ ++ newsos6) ++ lt_prog_compiler_pic='-KPIC' ++ lt_prog_compiler_static='-Bstatic' ++ ;; ++ ++ *nto* | *qnx*) ++ # QNX uses GNU C++, but need to define -shared option too, otherwise ++ # it will coredump. ++ lt_prog_compiler_pic='-fPIC -shared' ++ ;; ++ ++ osf3* | osf4* | osf5*) ++ lt_prog_compiler_wl='-Wl,' ++ # All OSF/1 code is PIC. ++ lt_prog_compiler_static='-non_shared' ++ ;; ++ ++ rdos*) ++ lt_prog_compiler_static='-non_shared' ++ ;; ++ ++ solaris*) ++ lt_prog_compiler_pic='-KPIC' ++ lt_prog_compiler_static='-Bstatic' ++ case $cc_basename in ++ f77* | f90* | f95*) ++ lt_prog_compiler_wl='-Qoption ld ';; ++ *) ++ lt_prog_compiler_wl='-Wl,';; ++ esac ++ ;; ++ ++ sunos4*) ++ lt_prog_compiler_wl='-Qoption ld ' ++ lt_prog_compiler_pic='-PIC' ++ lt_prog_compiler_static='-Bstatic' ++ ;; ++ ++ sysv4 | sysv4.2uw2* | sysv4.3*) ++ lt_prog_compiler_wl='-Wl,' ++ lt_prog_compiler_pic='-KPIC' ++ lt_prog_compiler_static='-Bstatic' ++ ;; ++ ++ sysv4*MP*) ++ if test -d /usr/nec ;then ++ lt_prog_compiler_pic='-Kconform_pic' ++ lt_prog_compiler_static='-Bstatic' ++ fi ++ ;; ++ ++ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) ++ lt_prog_compiler_wl='-Wl,' ++ lt_prog_compiler_pic='-KPIC' ++ lt_prog_compiler_static='-Bstatic' ++ ;; ++ ++ unicos*) ++ lt_prog_compiler_wl='-Wl,' ++ lt_prog_compiler_can_build_shared=no ++ ;; ++ ++ uts4*) ++ lt_prog_compiler_pic='-pic' ++ lt_prog_compiler_static='-Bstatic' ++ ;; ++ ++ *) ++ lt_prog_compiler_can_build_shared=no ++ ;; ++ esac ++ fi ++ ++case $host_os in ++ # For platforms which do not support PIC, -DPIC is meaningless: ++ *djgpp*) ++ lt_prog_compiler_pic= ++ ;; ++ *) ++ lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC" ++ ;; ++esac ++{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 ++echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } ++ ++ ++ ++ ++ ++ ++# ++# Check to make sure the PIC flag actually works. ++# ++if test -n "$lt_prog_compiler_pic"; then ++ { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 ++echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_pic_works+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_pic_works=no ++ ac_outfile=conftest.$ac_objext ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ # The option is referenced via a variable to avoid confusing sed. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>conftest.err) ++ ac_status=$? ++ cat conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s "$ac_outfile"; then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings other than the usual output. ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp ++ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 ++ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_pic_works=yes ++ fi ++ fi ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } ++ ++if test x"$lt_cv_prog_compiler_pic_works" = xyes; then ++ case $lt_prog_compiler_pic in ++ "" | " "*) ;; ++ *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; ++ esac ++else ++ lt_prog_compiler_pic= ++ lt_prog_compiler_can_build_shared=no ++fi ++ ++fi ++ ++ ++ ++ ++ ++ ++# ++# Check to make sure the static flag actually works. ++# ++wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" ++{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 ++echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_static_works+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_static_works=no ++ save_LDFLAGS="$LDFLAGS" ++ LDFLAGS="$LDFLAGS $lt_tmp_static_flag" ++ echo "$lt_simple_link_test_code" > conftest.$ac_ext ++ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then ++ # The linker can only warn and ignore the option if not recognized ++ # So say no if there are warnings ++ if test -s conftest.err; then ++ # Append any errors to the config.log. ++ cat conftest.err 1>&5 ++ $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp ++ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 ++ if diff conftest.exp conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_static_works=yes ++ fi ++ else ++ lt_cv_prog_compiler_static_works=yes ++ fi ++ fi ++ $RM -r conftest* ++ LDFLAGS="$save_LDFLAGS" ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } ++ ++if test x"$lt_cv_prog_compiler_static_works" = xyes; then ++ : ++else ++ lt_prog_compiler_static= ++fi ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 ++echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_c_o+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_c_o=no ++ $RM -r conftest 2>/dev/null ++ mkdir conftest ++ cd conftest ++ mkdir out ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ ++ lt_compiler_flag="-o out/conftest2.$ac_objext" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>out/conftest.err) ++ ac_status=$? ++ cat out/conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s out/conftest2.$ac_objext ++ then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp ++ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 ++ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_c_o=yes ++ fi ++ fi ++ chmod u+w . 2>&5 ++ $RM conftest* ++ # SGI C++ compiler will create directory out/ii_files/ for ++ # template instantiation ++ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files ++ $RM out/* && rmdir out ++ cd .. ++ $RM -r conftest ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 ++echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_c_o+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_c_o=no ++ $RM -r conftest 2>/dev/null ++ mkdir conftest ++ cd conftest ++ mkdir out ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ ++ lt_compiler_flag="-o out/conftest2.$ac_objext" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>out/conftest.err) ++ ac_status=$? ++ cat out/conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s out/conftest2.$ac_objext ++ then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp ++ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 ++ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_c_o=yes ++ fi ++ fi ++ chmod u+w . 2>&5 ++ $RM conftest* ++ # SGI C++ compiler will create directory out/ii_files/ for ++ # template instantiation ++ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files ++ $RM out/* && rmdir out ++ cd .. ++ $RM -r conftest ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } ++ ++ ++ ++ ++hard_links="nottested" ++if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then ++ # do not overwrite the value of need_locks provided by the user ++ { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 ++echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } ++ hard_links=yes ++ $RM conftest* ++ ln conftest.a conftest.b 2>/dev/null && hard_links=no ++ touch conftest.a ++ ln conftest.a conftest.b 2>&5 || hard_links=no ++ ln conftest.a conftest.b 2>/dev/null && hard_links=no ++ { echo "$as_me:$LINENO: result: $hard_links" >&5 ++echo "${ECHO_T}$hard_links" >&6; } ++ if test "$hard_links" = no; then ++ { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 ++echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} ++ need_locks=warn ++ fi ++else ++ need_locks=no ++fi ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 ++echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } ++ ++ runpath_var= ++ allow_undefined_flag= ++ always_export_symbols=no ++ archive_cmds= ++ archive_expsym_cmds= ++ compiler_needs_object=no ++ enable_shared_with_static_runtimes=no ++ export_dynamic_flag_spec= ++ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ++ hardcode_automatic=no ++ hardcode_direct=no ++ hardcode_direct_absolute=no ++ hardcode_libdir_flag_spec= ++ hardcode_libdir_flag_spec_ld= ++ hardcode_libdir_separator= ++ hardcode_minus_L=no ++ hardcode_shlibpath_var=unsupported ++ inherit_rpath=no ++ link_all_deplibs=unknown ++ module_cmds= ++ module_expsym_cmds= ++ old_archive_from_new_cmds= ++ old_archive_from_expsyms_cmds= ++ thread_safe_flag_spec= ++ whole_archive_flag_spec= ++ # include_expsyms should be a list of space-separated symbols to be *always* ++ # included in the symbol list ++ include_expsyms= ++ # exclude_expsyms can be an extended regexp of symbols to exclude ++ # it will be wrapped by ` (' and `)$', so one must not match beginning or ++ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', ++ # as well as any symbol that contains `d'. ++ exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' ++ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out ++ # platforms (ab)use it in PIC code, but their linkers get confused if ++ # the symbol is explicitly referenced. Since portable code cannot ++ # rely on this symbol name, it's probably fine to never include it in ++ # preloaded symbol tables. ++ # Exclude shared library initialization/finalization symbols. ++ extract_expsyms_cmds= ++ ++ case $host_os in ++ cygwin* | mingw* | pw32* | cegcc*) ++ # FIXME: the MSVC++ port hasn't been tested in a loooong time ++ # When not using gcc, we currently assume that we are using ++ # Microsoft Visual C++. ++ if test "$GCC" != yes; then ++ with_gnu_ld=no ++ fi ++ ;; ++ interix*) ++ # we just hope/assume this is gcc and not c89 (= MSVC++) ++ with_gnu_ld=yes ++ ;; ++ openbsd*) ++ with_gnu_ld=no ++ ;; ++ esac ++ ++ ld_shlibs=yes ++ if test "$with_gnu_ld" = yes; then ++ # If archive_cmds runs LD, not CC, wlarc should be empty ++ wlarc='${wl}' ++ ++ # Set some defaults for GNU ld with shared library support. These ++ # are reset later if shared libraries are not supported. Putting them ++ # here allows them to be overridden if necessary. ++ runpath_var=LD_RUN_PATH ++ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' ++ export_dynamic_flag_spec='${wl}--export-dynamic' ++ # ancient GNU ld didn't support --whole-archive et. al. ++ if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then ++ whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' ++ else ++ whole_archive_flag_spec= ++ fi ++ supports_anon_versioning=no ++ case `$LD -v 2>&1` in ++ *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 ++ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... ++ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... ++ *\ 2.11.*) ;; # other 2.11 versions ++ *) supports_anon_versioning=yes ;; ++ esac ++ ++ # See if GNU ld supports shared libraries. ++ case $host_os in ++ aix[3-9]*) ++ # On AIX/PPC, the GNU linker is very broken ++ if test "$host_cpu" != ia64; then ++ ld_shlibs=no ++ cat <<_LT_EOF 1>&2 ++ ++*** Warning: the GNU linker, at least up to release 2.9.1, is reported ++*** to be unable to reliably create shared libraries on AIX. ++*** Therefore, libtool is disabling shared libraries support. If you ++*** really care for shared libraries, you may want to modify your PATH ++*** so that a non-GNU linker is found, and then restart. ++ ++_LT_EOF ++ fi ++ ;; ++ ++ amigaos*) ++ case $host_cpu in ++ powerpc) ++ # see comment about AmigaOS4 .so support ++ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds='' ++ ;; ++ m68k) ++ archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' ++ hardcode_libdir_flag_spec='-L$libdir' ++ hardcode_minus_L=yes ++ ;; ++ esac ++ ;; ++ ++ beos*) ++ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ allow_undefined_flag=unsupported ++ # Joseph Beckenbach says some releases of gcc ++ # support --undefined. This deserves some investigation. FIXME ++ archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ else ++ ld_shlibs=no ++ fi ++ ;; ++ ++ cygwin* | mingw* | pw32* | cegcc*) ++ # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, ++ # as there is no search path for DLLs. ++ hardcode_libdir_flag_spec='-L$libdir' ++ allow_undefined_flag=unsupported ++ always_export_symbols=no ++ enable_shared_with_static_runtimes=yes ++ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' ++ ++ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then ++ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' ++ # If the export-symbols file already is a .def file (1st line ++ # is EXPORTS), use it as is; otherwise, prepend... ++ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then ++ cp $export_symbols $output_objdir/$soname.def; ++ else ++ echo EXPORTS > $output_objdir/$soname.def; ++ cat $export_symbols >> $output_objdir/$soname.def; ++ fi~ ++ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' ++ else ++ ld_shlibs=no ++ fi ++ ;; ++ ++ interix[3-9]*) ++ hardcode_direct=no ++ hardcode_shlibpath_var=no ++ hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ++ export_dynamic_flag_spec='${wl}-E' ++ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. ++ # Instead, shared libraries are loaded at an image base (0x10000000 by ++ # default) and relocated if they conflict, which is a slow very memory ++ # consuming and fragmenting process. To avoid this, we pick a random, ++ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link ++ # time. Moving up from 0x10000000 also allows more sbrk(2) space. ++ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ++ archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ++ ;; ++ ++ gnu* | linux* | tpf* | k*bsd*-gnu) ++ tmp_diet=no ++ if test "$host_os" = linux-dietlibc; then ++ case $cc_basename in ++ diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) ++ esac ++ fi ++ if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ ++ && test "$tmp_diet" = no ++ then ++ tmp_addflag= ++ tmp_sharedflag='-shared' ++ case $cc_basename,$host_cpu in ++ pgcc*) # Portland Group C compiler ++ whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ++ tmp_addflag=' $pic_flag' ++ ;; ++ pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers ++ whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ++ tmp_addflag=' $pic_flag -Mnomain' ;; ++ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 ++ tmp_addflag=' -i_dynamic' ;; ++ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 ++ tmp_addflag=' -i_dynamic -nofor_main' ;; ++ ifc* | ifort*) # Intel Fortran compiler ++ tmp_addflag=' -nofor_main' ;; ++ lf95*) # Lahey Fortran 8.1 ++ whole_archive_flag_spec= ++ tmp_sharedflag='--shared' ;; ++ xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) ++ tmp_sharedflag='-qmkshrobj' ++ tmp_addflag= ;; ++ esac ++ case `$CC -V 2>&1 | sed 5q` in ++ *Sun\ C*) # Sun C 5.9 ++ whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ++ compiler_needs_object=yes ++ tmp_sharedflag='-G' ;; ++ *Sun\ F*) # Sun Fortran 8.3 ++ tmp_sharedflag='-G' ;; ++ esac ++ archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ ++ if test "x$supports_anon_versioning" = xyes; then ++ archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ ++ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ ++ echo "local: *; };" >> $output_objdir/$libname.ver~ ++ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' ++ fi ++ ++ case $cc_basename in ++ xlf*) ++ # IBM XL Fortran 10.1 on PPC cannot create shared libs itself ++ whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' ++ hardcode_libdir_flag_spec= ++ hardcode_libdir_flag_spec_ld='-rpath $libdir' ++ archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' ++ if test "x$supports_anon_versioning" = xyes; then ++ archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ ++ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ ++ echo "local: *; };" >> $output_objdir/$libname.ver~ ++ $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' ++ fi ++ ;; ++ esac ++ else ++ ld_shlibs=no ++ fi ++ ;; ++ ++ netbsd*) ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then ++ archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' ++ wlarc= ++ else ++ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ fi ++ ;; ++ ++ solaris*) ++ if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ++ ld_shlibs=no ++ cat <<_LT_EOF 1>&2 ++ ++*** Warning: The releases 2.8.* of the GNU linker cannot reliably ++*** create shared libraries on Solaris systems. Therefore, libtool ++*** is disabling shared libraries support. We urge you to upgrade GNU ++*** binutils to release 2.9.1 or newer. Another option is to modify ++*** your PATH or compiler configuration so that the native linker is ++*** used, and then restart. ++ ++_LT_EOF ++ elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ else ++ ld_shlibs=no ++ fi ++ ;; ++ ++ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) ++ case `$LD -v 2>&1` in ++ *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ++ ld_shlibs=no ++ cat <<_LT_EOF 1>&2 ++ ++*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not ++*** reliably create shared libraries on SCO systems. Therefore, libtool ++*** is disabling shared libraries support. We urge you to upgrade GNU ++*** binutils to release 2.16.91.0.3 or newer. Another option is to modify ++*** your PATH or compiler configuration so that the native linker is ++*** used, and then restart. ++ ++_LT_EOF ++ ;; ++ *) ++ # For security reasons, it is highly recommended that you always ++ # use absolute paths for naming shared libraries, and exclude the ++ # DT_RUNPATH tag from executables and libraries. But doing so ++ # requires that you compile everything twice, which is a pain. ++ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' ++ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ else ++ ld_shlibs=no ++ fi ++ ;; ++ esac ++ ;; ++ ++ sunos4*) ++ archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' ++ wlarc= ++ hardcode_direct=yes ++ hardcode_shlibpath_var=no ++ ;; ++ ++ *) ++ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ else ++ ld_shlibs=no ++ fi ++ ;; ++ esac ++ ++ if test "$ld_shlibs" = no; then ++ runpath_var= ++ hardcode_libdir_flag_spec= ++ export_dynamic_flag_spec= ++ whole_archive_flag_spec= ++ fi ++ else ++ # PORTME fill in a description of your system's linker (not GNU ld) ++ case $host_os in ++ aix3*) ++ allow_undefined_flag=unsupported ++ always_export_symbols=yes ++ archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' ++ # Note: this linker hardcodes the directories in LIBPATH if there ++ # are no directories specified by -L. ++ hardcode_minus_L=yes ++ if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then ++ # Neither direct hardcoding nor static linking is supported with a ++ # broken collect2. ++ hardcode_direct=unsupported ++ fi ++ ;; ++ ++ aix[4-9]*) ++ if test "$host_cpu" = ia64; then ++ # On IA64, the linker does run time linking by default, so we don't ++ # have to do anything special. ++ aix_use_runtimelinking=no ++ exp_sym_flag='-Bexport' ++ no_entry_flag="" ++ else ++ # If we're using GNU nm, then we don't want the "-C" option. ++ # -C means demangle to AIX nm, but means don't demangle with GNU nm ++ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then ++ export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' ++ else ++ export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' ++ fi ++ aix_use_runtimelinking=no ++ ++ # Test if we are trying to use run time linking or normal ++ # AIX style linking. If -brtl is somewhere in LDFLAGS, we ++ # need to do runtime linking. ++ case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) ++ for ld_flag in $LDFLAGS; do ++ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then ++ aix_use_runtimelinking=yes ++ break ++ fi ++ done ++ ;; ++ esac ++ ++ exp_sym_flag='-bexport' ++ no_entry_flag='-bnoentry' ++ fi ++ ++ # When large executables or shared objects are built, AIX ld can ++ # have problems creating the table of contents. If linking a library ++ # or program results in "error TOC overflow" add -mminimal-toc to ++ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not ++ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. ++ ++ archive_cmds='' ++ hardcode_direct=yes ++ hardcode_direct_absolute=yes ++ hardcode_libdir_separator=':' ++ link_all_deplibs=yes ++ file_list_spec='${wl}-f,' ++ ++ if test "$GCC" = yes; then ++ case $host_os in aix4.[012]|aix4.[012].*) ++ # We only want to do this on AIX 4.2 and lower, the check ++ # below for broken collect2 doesn't work under 4.3+ ++ collect2name=`${CC} -print-prog-name=collect2` ++ if test -f "$collect2name" && ++ strings "$collect2name" | $GREP resolve_lib_name >/dev/null ++ then ++ # We have reworked collect2 ++ : ++ else ++ # We have old collect2 ++ hardcode_direct=unsupported ++ # It fails to find uninstalled libraries when the uninstalled ++ # path is not listed in the libpath. Setting hardcode_minus_L ++ # to unsupported forces relinking ++ hardcode_minus_L=yes ++ hardcode_libdir_flag_spec='-L$libdir' ++ hardcode_libdir_separator= ++ fi ++ ;; ++ esac ++ shared_flag='-shared' ++ if test "$aix_use_runtimelinking" = yes; then ++ shared_flag="$shared_flag "'${wl}-G' ++ fi ++ else ++ # not using gcc ++ if test "$host_cpu" = ia64; then ++ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release ++ # chokes on -Wl,-G. The following line is correct: ++ shared_flag='-G' ++ else ++ if test "$aix_use_runtimelinking" = yes; then ++ shared_flag='${wl}-G' ++ else ++ shared_flag='${wl}-bM:SRE' ++ fi ++ fi ++ fi ++ ++ export_dynamic_flag_spec='${wl}-bexpall' ++ # It seems that -bexpall does not export symbols beginning with ++ # underscore (_), so it is better to generate a list of symbols to export. ++ always_export_symbols=yes ++ if test "$aix_use_runtimelinking" = yes; then ++ # Warning - without using the other runtime loading flags (-brtl), ++ # -berok will link without error, but may produce a broken library. ++ allow_undefined_flag='-berok' ++ # Determine the default libpath from the value encoded in an ++ # empty executable. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ++lt_aix_libpath_sed=' ++ /Import File Strings/,/^$/ { ++ /^0/ { ++ s/^0 *\(.*\)$/\1/ ++ p ++ } ++ }' ++aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++# Check for a 64-bit object if we didn't find anything. ++if test -z "$aix_libpath"; then ++ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++fi ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ++ ++ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" ++ archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" ++ else ++ if test "$host_cpu" = ia64; then ++ hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' ++ allow_undefined_flag="-z nodefs" ++ archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" ++ else ++ # Determine the default libpath from the value encoded in an ++ # empty executable. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ++lt_aix_libpath_sed=' ++ /Import File Strings/,/^$/ { ++ /^0/ { ++ s/^0 *\(.*\)$/\1/ ++ p ++ } ++ }' ++aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++# Check for a 64-bit object if we didn't find anything. ++if test -z "$aix_libpath"; then ++ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++fi ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ++ ++ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" ++ # Warning - without using the other run time loading flags, ++ # -berok will link without error, but may produce a broken library. ++ no_undefined_flag=' ${wl}-bernotok' ++ allow_undefined_flag=' ${wl}-berok' ++ # Exported symbols can be pulled into shared objects from archives ++ whole_archive_flag_spec='$convenience' ++ archive_cmds_need_lc=yes ++ # This is similar to how AIX traditionally builds its shared libraries. ++ archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' ++ fi ++ fi ++ ;; ++ ++ amigaos*) ++ case $host_cpu in ++ powerpc) ++ # see comment about AmigaOS4 .so support ++ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds='' ++ ;; ++ m68k) ++ archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' ++ hardcode_libdir_flag_spec='-L$libdir' ++ hardcode_minus_L=yes ++ ;; ++ esac ++ ;; ++ ++ bsdi[45]*) ++ export_dynamic_flag_spec=-rdynamic ++ ;; ++ ++ cygwin* | mingw* | pw32* | cegcc*) ++ # When not using gcc, we currently assume that we are using ++ # Microsoft Visual C++. ++ # hardcode_libdir_flag_spec is actually meaningless, as there is ++ # no search path for DLLs. ++ hardcode_libdir_flag_spec=' ' ++ allow_undefined_flag=unsupported ++ # Tell ltmain to make .lib files, not .a files. ++ libext=lib ++ # Tell ltmain to make .dll files, not .so files. ++ shrext_cmds=".dll" ++ # FIXME: Setting linknames here is a bad hack. ++ archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' ++ # The linker will automatically build a .lib file if we build a DLL. ++ old_archive_from_new_cmds='true' ++ # FIXME: Should let the user specify the lib program. ++ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' ++ fix_srcfile_path='`cygpath -w "$srcfile"`' ++ enable_shared_with_static_runtimes=yes ++ ;; ++ ++ darwin* | rhapsody*) ++ ++ ++ archive_cmds_need_lc=no ++ hardcode_direct=no ++ hardcode_automatic=yes ++ hardcode_shlibpath_var=unsupported ++ whole_archive_flag_spec='' ++ link_all_deplibs=yes ++ allow_undefined_flag="$_lt_dar_allow_undefined" ++ case $cc_basename in ++ ifort*) _lt_dar_can_shared=yes ;; ++ *) _lt_dar_can_shared=$GCC ;; ++ esac ++ if test "$_lt_dar_can_shared" = "yes"; then ++ output_verbose_link_cmd=echo ++ archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" ++ module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" ++ archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" ++ module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" ++ ++ else ++ ld_shlibs=no ++ fi ++ ++ ;; ++ ++ dgux*) ++ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_libdir_flag_spec='-L$libdir' ++ hardcode_shlibpath_var=no ++ ;; ++ ++ freebsd1*) ++ ld_shlibs=no ++ ;; ++ ++ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor ++ # support. Future versions do this automatically, but an explicit c++rt0.o ++ # does not break anything, and helps significantly (at the cost of a little ++ # extra space). ++ freebsd2.2*) ++ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' ++ hardcode_libdir_flag_spec='-R$libdir' ++ hardcode_direct=yes ++ hardcode_shlibpath_var=no ++ ;; ++ ++ # Unfortunately, older versions of FreeBSD 2 do not have this feature. ++ freebsd2*) ++ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_direct=yes ++ hardcode_minus_L=yes ++ hardcode_shlibpath_var=no ++ ;; ++ ++ # FreeBSD 3 and greater uses gcc -shared to do shared libraries. ++ freebsd* | dragonfly*) ++ archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' ++ hardcode_libdir_flag_spec='-R$libdir' ++ hardcode_direct=yes ++ hardcode_shlibpath_var=no ++ ;; ++ ++ hpux9*) ++ if test "$GCC" = yes; then ++ archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ++ else ++ archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ++ fi ++ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' ++ hardcode_libdir_separator=: ++ hardcode_direct=yes ++ ++ # hardcode_minus_L: Not really in the search PATH, ++ # but as the default location of the library. ++ hardcode_minus_L=yes ++ export_dynamic_flag_spec='${wl}-E' ++ ;; ++ ++ hpux10*) ++ if test "$GCC" = yes -a "$with_gnu_ld" = no; then ++ archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ++ else ++ archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ++ fi ++ if test "$with_gnu_ld" = no; then ++ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' ++ hardcode_libdir_flag_spec_ld='+b $libdir' ++ hardcode_libdir_separator=: ++ hardcode_direct=yes ++ hardcode_direct_absolute=yes ++ export_dynamic_flag_spec='${wl}-E' ++ # hardcode_minus_L: Not really in the search PATH, ++ # but as the default location of the library. ++ hardcode_minus_L=yes ++ fi ++ ;; ++ ++ hpux11*) ++ if test "$GCC" = yes -a "$with_gnu_ld" = no; then ++ case $host_cpu in ++ hppa*64*) ++ archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ ia64*) ++ archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ *) ++ archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ esac ++ else ++ case $host_cpu in ++ hppa*64*) ++ archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ ia64*) ++ archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ *) ++ archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ esac ++ fi ++ if test "$with_gnu_ld" = no; then ++ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' ++ hardcode_libdir_separator=: ++ ++ case $host_cpu in ++ hppa*64*|ia64*) ++ hardcode_direct=no ++ hardcode_shlibpath_var=no ++ ;; ++ *) ++ hardcode_direct=yes ++ hardcode_direct_absolute=yes ++ export_dynamic_flag_spec='${wl}-E' ++ ++ # hardcode_minus_L: Not really in the search PATH, ++ # but as the default location of the library. ++ hardcode_minus_L=yes ++ ;; ++ esac ++ fi ++ ;; ++ ++ irix5* | irix6* | nonstopux*) ++ if test "$GCC" = yes; then ++ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ++ # Try to use the -exported_symbol ld option, if it does not ++ # work, assume that -exports_file does not work either and ++ # implicitly export all symbols. ++ save_LDFLAGS="$LDFLAGS" ++ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" ++ cat >conftest.$ac_ext <<_ACEOF ++int foo(void) {} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LDFLAGS="$save_LDFLAGS" ++ else ++ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' ++ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' ++ fi ++ archive_cmds_need_lc='no' ++ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' ++ hardcode_libdir_separator=: ++ inherit_rpath=yes ++ link_all_deplibs=yes ++ ;; ++ ++ netbsd*) ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then ++ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out ++ else ++ archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF ++ fi ++ hardcode_libdir_flag_spec='-R$libdir' ++ hardcode_direct=yes ++ hardcode_shlibpath_var=no ++ ;; ++ ++ newsos6) ++ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_direct=yes ++ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' ++ hardcode_libdir_separator=: ++ hardcode_shlibpath_var=no ++ ;; ++ ++ *nto* | *qnx*) ++ ;; ++ ++ openbsd*) ++ if test -f /usr/libexec/ld.so; then ++ hardcode_direct=yes ++ hardcode_shlibpath_var=no ++ hardcode_direct_absolute=yes ++ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ++ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' ++ hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ++ export_dynamic_flag_spec='${wl}-E' ++ else ++ case $host_os in ++ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) ++ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_libdir_flag_spec='-R$libdir' ++ ;; ++ *) ++ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ++ hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ++ ;; ++ esac ++ fi ++ else ++ ld_shlibs=no ++ fi ++ ;; ++ ++ os2*) ++ hardcode_libdir_flag_spec='-L$libdir' ++ hardcode_minus_L=yes ++ allow_undefined_flag=unsupported ++ archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' ++ old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ++ ;; ++ ++ osf3*) ++ if test "$GCC" = yes; then ++ allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' ++ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ++ else ++ allow_undefined_flag=' -expect_unresolved \*' ++ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' ++ fi ++ archive_cmds_need_lc='no' ++ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' ++ hardcode_libdir_separator=: ++ ;; ++ ++ osf4* | osf5*) # as osf3* with the addition of -msym flag ++ if test "$GCC" = yes; then ++ allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' ++ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ++ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' ++ else ++ allow_undefined_flag=' -expect_unresolved \*' ++ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' ++ archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ ++ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' ++ ++ # Both c and cxx compiler support -rpath directly ++ hardcode_libdir_flag_spec='-rpath $libdir' ++ fi ++ archive_cmds_need_lc='no' ++ hardcode_libdir_separator=: ++ ;; ++ ++ solaris*) ++ no_undefined_flag=' -z defs' ++ if test "$GCC" = yes; then ++ wlarc='${wl}' ++ archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ ++ $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ++ else ++ case `$CC -V 2>&1` in ++ *"Compilers 5.0"*) ++ wlarc='' ++ archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ ++ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ++ ;; ++ *) ++ wlarc='${wl}' ++ archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ ++ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ++ ;; ++ esac ++ fi ++ hardcode_libdir_flag_spec='-R$libdir' ++ hardcode_shlibpath_var=no ++ case $host_os in ++ solaris2.[0-5] | solaris2.[0-5].*) ;; ++ *) ++ # The compiler driver will combine and reorder linker options, ++ # but understands `-z linker_flag'. GCC discards it without `$wl', ++ # but is careful enough not to reorder. ++ # Supported since Solaris 2.6 (maybe 2.5.1?) ++ if test "$GCC" = yes; then ++ whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ++ else ++ whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ++ fi ++ ;; ++ esac ++ link_all_deplibs=yes ++ ;; ++ ++ sunos4*) ++ if test "x$host_vendor" = xsequent; then ++ # Use $CC to link under sequent, because it throws in some extra .o ++ # files that make .init and .fini sections work. ++ archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' ++ else ++ archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' ++ fi ++ hardcode_libdir_flag_spec='-L$libdir' ++ hardcode_direct=yes ++ hardcode_minus_L=yes ++ hardcode_shlibpath_var=no ++ ;; ++ ++ sysv4) ++ case $host_vendor in ++ sni) ++ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_direct=yes # is this really true??? ++ ;; ++ siemens) ++ ## LD is ld it makes a PLAMLIB ++ ## CC just makes a GrossModule. ++ archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' ++ reload_cmds='$CC -r -o $output$reload_objs' ++ hardcode_direct=no ++ ;; ++ motorola) ++ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_direct=no #Motorola manual says yes, but my tests say they lie ++ ;; ++ esac ++ runpath_var='LD_RUN_PATH' ++ hardcode_shlibpath_var=no ++ ;; ++ ++ sysv4.3*) ++ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_shlibpath_var=no ++ export_dynamic_flag_spec='-Bexport' ++ ;; ++ ++ sysv4*MP*) ++ if test -d /usr/nec; then ++ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_shlibpath_var=no ++ runpath_var=LD_RUN_PATH ++ hardcode_runpath_var=yes ++ ld_shlibs=yes ++ fi ++ ;; ++ ++ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) ++ no_undefined_flag='${wl}-z,text' ++ archive_cmds_need_lc=no ++ hardcode_shlibpath_var=no ++ runpath_var='LD_RUN_PATH' ++ ++ if test "$GCC" = yes; then ++ archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ else ++ archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ fi ++ ;; ++ ++ sysv5* | sco3.2v5* | sco5v6*) ++ # Note: We can NOT use -z defs as we might desire, because we do not ++ # link with -lc, and that would cause any symbols used from libc to ++ # always be unresolved, which means just about no library would ++ # ever link correctly. If we're not using GNU ld we use -z text ++ # though, which does catch some bad symbols but isn't as heavy-handed ++ # as -z defs. ++ no_undefined_flag='${wl}-z,text' ++ allow_undefined_flag='${wl}-z,nodefs' ++ archive_cmds_need_lc=no ++ hardcode_shlibpath_var=no ++ hardcode_libdir_flag_spec='${wl}-R,$libdir' ++ hardcode_libdir_separator=':' ++ link_all_deplibs=yes ++ export_dynamic_flag_spec='${wl}-Bexport' ++ runpath_var='LD_RUN_PATH' ++ ++ if test "$GCC" = yes; then ++ archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ else ++ archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ fi ++ ;; ++ ++ uts4*) ++ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_libdir_flag_spec='-L$libdir' ++ hardcode_shlibpath_var=no ++ ;; ++ ++ *) ++ ld_shlibs=no ++ ;; ++ esac ++ ++ if test x$host_vendor = xsni; then ++ case $host in ++ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ++ export_dynamic_flag_spec='${wl}-Blargedynsym' ++ ;; ++ esac ++ fi ++ fi ++ ++{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 ++echo "${ECHO_T}$ld_shlibs" >&6; } ++test "$ld_shlibs" = no && can_build_shared=no ++ ++with_gnu_ld=$with_gnu_ld ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++# ++# Do we need to explicitly link libc? ++# ++case "x$archive_cmds_need_lc" in ++x|xyes) ++ # Assume -lc should be added ++ archive_cmds_need_lc=yes ++ ++ if test "$enable_shared" = yes && test "$GCC" = yes; then ++ case $archive_cmds in ++ *'~'*) ++ # FIXME: we may have to deal with multi-command sequences. ++ ;; ++ '$CC '*) ++ # Test whether the compiler implicitly links with -lc since on some ++ # systems, -lgcc has to come before -lc. If gcc already passes -lc ++ # to ld, don't add -lc before -lgcc. ++ { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 ++echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } ++ $RM conftest* ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ ++ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } 2>conftest.err; then ++ soname=conftest ++ lib=conftest ++ libobjs=conftest.$ac_objext ++ deplibs= ++ wl=$lt_prog_compiler_wl ++ pic_flag=$lt_prog_compiler_pic ++ compiler_flags=-v ++ linker_flags=-v ++ verstring= ++ output_objdir=. ++ libname=conftest ++ lt_save_allow_undefined_flag=$allow_undefined_flag ++ allow_undefined_flag= ++ if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 ++ (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++ then ++ archive_cmds_need_lc=no ++ else ++ archive_cmds_need_lc=yes ++ fi ++ allow_undefined_flag=$lt_save_allow_undefined_flag ++ else ++ cat conftest.err 1>&5 ++ fi ++ $RM conftest* ++ { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 ++echo "${ECHO_T}$archive_cmds_need_lc" >&6; } ++ ;; ++ esac ++ fi ++ ;; ++esac ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 ++echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } ++ ++if test "$GCC" = yes; then ++ case $host_os in ++ darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; ++ *) lt_awk_arg="/^libraries:/" ;; ++ esac ++ lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` ++ if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then ++ # if the path contains ";" then we assume it to be the separator ++ # otherwise default to the standard path separator (i.e. ":") - it is ++ # assumed that no part of a normal pathname contains ";" but that should ++ # okay in the real world where ";" in dirpaths is itself problematic. ++ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` ++ else ++ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ++ fi ++ # Ok, now we have the path, separated by spaces, we can step through it ++ # and add multilib dir if necessary. ++ lt_tmp_lt_search_path_spec= ++ lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` ++ for lt_sys_path in $lt_search_path_spec; do ++ if test -d "$lt_sys_path/$lt_multi_os_dir"; then ++ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" ++ else ++ test -d "$lt_sys_path" && \ ++ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" ++ fi ++ done ++ lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' ++BEGIN {RS=" "; FS="/|\n";} { ++ lt_foo=""; ++ lt_count=0; ++ for (lt_i = NF; lt_i > 0; lt_i--) { ++ if ($lt_i != "" && $lt_i != ".") { ++ if ($lt_i == "..") { ++ lt_count++; ++ } else { ++ if (lt_count == 0) { ++ lt_foo="/" $lt_i lt_foo; ++ } else { ++ lt_count--; ++ } ++ } ++ } ++ } ++ if (lt_foo != "") { lt_freq[lt_foo]++; } ++ if (lt_freq[lt_foo] == 1) { print lt_foo; } ++}'` ++ sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` ++else ++ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" ++fi ++library_names_spec= ++libname_spec='lib$name' ++soname_spec= ++shrext_cmds=".so" ++postinstall_cmds= ++postuninstall_cmds= ++finish_cmds= ++finish_eval= ++shlibpath_var= ++shlibpath_overrides_runpath=unknown ++version_type=none ++dynamic_linker="$host_os ld.so" ++sys_lib_dlsearch_path_spec="/lib /usr/lib" ++need_lib_prefix=unknown ++hardcode_into_libs=no ++ ++# when you set need_version to no, make sure it does not cause -set_version ++# flags to be left without arguments ++need_version=unknown ++ ++case $host_os in ++aix3*) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' ++ shlibpath_var=LIBPATH ++ ++ # AIX 3 has no versioning support, so we append a major version to the name. ++ soname_spec='${libname}${release}${shared_ext}$major' ++ ;; ++ ++aix[4-9]*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ hardcode_into_libs=yes ++ if test "$host_cpu" = ia64; then ++ # AIX 5 supports IA64 ++ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ else ++ # With GCC up to 2.95.x, collect2 would create an import file ++ # for dependence libraries. The import file would start with ++ # the line `#! .'. This would cause the generated library to ++ # depend on `.', always an invalid library. This was fixed in ++ # development snapshots of GCC prior to 3.0. ++ case $host_os in ++ aix4 | aix4.[01] | aix4.[01].*) ++ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' ++ echo ' yes ' ++ echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then ++ : ++ else ++ can_build_shared=no ++ fi ++ ;; ++ esac ++ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct ++ # soname into executable. Probably we can add versioning support to ++ # collect2, so additional links can be useful in future. ++ if test "$aix_use_runtimelinking" = yes; then ++ # If using run time linking (on AIX 4.2 or later) use lib.so ++ # instead of lib.a to let people know that these are not ++ # typical AIX shared libraries. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ else ++ # We preserve .a as extension for shared libraries through AIX4.2 ++ # and later when we are not doing run time linking. ++ library_names_spec='${libname}${release}.a $libname.a' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ fi ++ shlibpath_var=LIBPATH ++ fi ++ ;; ++ ++amigaos*) ++ case $host_cpu in ++ powerpc) ++ # Since July 2007 AmigaOS4 officially supports .so libraries. ++ # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ ;; ++ m68k) ++ library_names_spec='$libname.ixlibrary $libname.a' ++ # Create ${libname}_ixlibrary.a entries in /sys/libs. ++ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ++ ;; ++ esac ++ ;; ++ ++beos*) ++ library_names_spec='${libname}${shared_ext}' ++ dynamic_linker="$host_os ld.so" ++ shlibpath_var=LIBRARY_PATH ++ ;; ++ ++bsdi[45]*) ++ version_type=linux ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" ++ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" ++ # the default ld.so.conf also contains /usr/contrib/lib and ++ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow ++ # libtool to hard-code these into programs ++ ;; ++ ++cygwin* | mingw* | pw32* | cegcc*) ++ version_type=windows ++ shrext_cmds=".dll" ++ need_version=no ++ need_lib_prefix=no ++ ++ case $GCC,$host_os in ++ yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ library_names_spec='$libname.dll.a' ++ # DLL is installed to $(libdir)/../bin by postinstall_cmds ++ postinstall_cmds='base_file=`basename \${file}`~ ++ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ ++ dldir=$destdir/`dirname \$dlpath`~ ++ test -d \$dldir || mkdir -p \$dldir~ ++ $install_prog $dir/$dlname \$dldir/$dlname~ ++ chmod a+x \$dldir/$dlname~ ++ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then ++ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; ++ fi' ++ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ ++ dlpath=$dir/\$dldll~ ++ $RM \$dlpath' ++ shlibpath_overrides_runpath=yes ++ ++ case $host_os in ++ cygwin*) ++ # Cygwin DLLs use 'cyg' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ++ ;; ++ mingw* | cegcc*) ++ # MinGW DLLs use traditional 'lib' prefix ++ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` ++ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then ++ # It is most probably a Windows format PATH printed by ++ # mingw gcc, but we are running on Cygwin. Gcc prints its search ++ # path with ; separators, and with drive letters. We can handle the ++ # drive letters (cygwin fileutils understands them), so leave them, ++ # especially as we might pass files found there to a mingw objdump, ++ # which wouldn't understand a cygwinified path. Ahh. ++ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` ++ else ++ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ++ fi ++ ;; ++ pw32*) ++ # pw32 DLLs use 'pw' prefix rather than 'lib' ++ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ;; ++ esac ++ ;; ++ ++ *) ++ library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ++ ;; ++ esac ++ dynamic_linker='Win32 ld.exe' ++ # FIXME: first we should search . and the directory the executable is in ++ shlibpath_var=PATH ++ ;; ++ ++darwin* | rhapsody*) ++ dynamic_linker="$host_os dyld" ++ version_type=darwin ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' ++ soname_spec='${libname}${release}${major}$shared_ext' ++ shlibpath_overrides_runpath=yes ++ shlibpath_var=DYLD_LIBRARY_PATH ++ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' ++ ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" ++ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ++ ;; ++ ++dgux*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ ;; ++ ++freebsd1*) ++ dynamic_linker=no ++ ;; ++ ++freebsd* | dragonfly*) ++ # DragonFly does not have aout. When/if they implement a new ++ # versioning mechanism, adjust this. ++ if test -x /usr/bin/objformat; then ++ objformat=`/usr/bin/objformat` ++ else ++ case $host_os in ++ freebsd[123]*) objformat=aout ;; ++ *) objformat=elf ;; ++ esac ++ fi ++ version_type=freebsd-$objformat ++ case $version_type in ++ freebsd-elf*) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' ++ need_version=no ++ need_lib_prefix=no ++ ;; ++ freebsd-*) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' ++ need_version=yes ++ ;; ++ esac ++ shlibpath_var=LD_LIBRARY_PATH ++ case $host_os in ++ freebsd2*) ++ shlibpath_overrides_runpath=yes ++ ;; ++ freebsd3.[01]* | freebsdelf3.[01]*) ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ ;; ++ freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ ++ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ ;; ++ *) # from 4.6 on, and DragonFly ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ ;; ++ esac ++ ;; ++ ++gnu*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ hardcode_into_libs=yes ++ ;; ++ ++hpux9* | hpux10* | hpux11*) ++ # Give a soname corresponding to the major version so that dld.sl refuses to ++ # link against other versions. ++ version_type=sunos ++ need_lib_prefix=no ++ need_version=no ++ case $host_cpu in ++ ia64*) ++ shrext_cmds='.so' ++ hardcode_into_libs=yes ++ dynamic_linker="$host_os dld.so" ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ if test "X$HPUX_IA64_MODE" = X32; then ++ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" ++ else ++ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" ++ fi ++ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ++ ;; ++ hppa*64*) ++ shrext_cmds='.sl' ++ hardcode_into_libs=yes ++ dynamic_linker="$host_os dld.sl" ++ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH ++ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" ++ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ++ ;; ++ *) ++ shrext_cmds='.sl' ++ dynamic_linker="$host_os dld.sl" ++ shlibpath_var=SHLIB_PATH ++ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ ;; ++ esac ++ # HP-UX runs *really* slowly unless shared libraries are mode 555. ++ postinstall_cmds='chmod 555 $lib' ++ ;; ++ ++interix[3-9]*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ ;; ++ ++irix5* | irix6* | nonstopux*) ++ case $host_os in ++ nonstopux*) version_type=nonstopux ;; ++ *) ++ if test "$lt_cv_prog_gnu_ld" = yes; then ++ version_type=linux ++ else ++ version_type=irix ++ fi ;; ++ esac ++ need_lib_prefix=no ++ need_version=no ++ soname_spec='${libname}${release}${shared_ext}$major' ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' ++ case $host_os in ++ irix5* | nonstopux*) ++ libsuff= shlibsuff= ++ ;; ++ *) ++ case $LD in # libtool.m4 will add one of these switches to LD ++ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") ++ libsuff= shlibsuff= libmagic=32-bit;; ++ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") ++ libsuff=32 shlibsuff=N32 libmagic=N32;; ++ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") ++ libsuff=64 shlibsuff=64 libmagic=64-bit;; ++ *) libsuff= shlibsuff= libmagic=never-match;; ++ esac ++ ;; ++ esac ++ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH ++ shlibpath_overrides_runpath=no ++ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" ++ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" ++ hardcode_into_libs=yes ++ ;; ++ ++# No shared lib support for Linux oldld, aout, or coff. ++linux*oldld* | linux*aout* | linux*coff*) ++ dynamic_linker=no ++ ;; ++ ++# This must be Linux ELF. ++linux* | k*bsd*-gnu) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ # Some binutils ld are patched to set DT_RUNPATH ++ save_LDFLAGS=$LDFLAGS ++ save_libdir=$libdir ++ eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ ++ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then ++ shlibpath_overrides_runpath=yes ++fi ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LDFLAGS=$save_LDFLAGS ++ libdir=$save_libdir ++ ++ # This implies no fast_install, which is unacceptable. ++ # Some rework will be needed to allow for fast_install ++ # before this can be enabled. ++ hardcode_into_libs=yes ++ ++ # Append ld.so.conf contents to the search path ++ if test -f /etc/ld.so.conf; then ++ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` ++ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" ++ fi ++ ++ # We used to test for /lib/ld.so.1 and disable shared libraries on ++ # powerpc, because MkLinux only supported shared libraries with the ++ # GNU dynamic linker. Since this was broken with cross compilers, ++ # most powerpc-linux boxes support dynamic linking these days and ++ # people can always --disable-shared, the test was removed, and we ++ # assume the GNU/Linux dynamic linker is in use. ++ dynamic_linker='GNU/Linux ld.so' ++ ;; ++ ++netbsd*) ++ version_type=sunos ++ need_lib_prefix=no ++ need_version=no ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ++ dynamic_linker='NetBSD (a.out) ld.so' ++ else ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ dynamic_linker='NetBSD ld.elf_so' ++ fi ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ ;; ++ ++newsos6) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ ;; ++ ++*nto* | *qnx*) ++ version_type=qnx ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ dynamic_linker='ldqnx.so' ++ ;; ++ ++openbsd*) ++ version_type=sunos ++ sys_lib_dlsearch_path_spec="/usr/lib" ++ need_lib_prefix=no ++ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. ++ case $host_os in ++ openbsd3.3 | openbsd3.3.*) need_version=yes ;; ++ *) need_version=no ;; ++ esac ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ++ case $host_os in ++ openbsd2.[89] | openbsd2.[89].*) ++ shlibpath_overrides_runpath=no ++ ;; ++ *) ++ shlibpath_overrides_runpath=yes ++ ;; ++ esac ++ else ++ shlibpath_overrides_runpath=yes ++ fi ++ ;; ++ ++os2*) ++ libname_spec='$name' ++ shrext_cmds=".dll" ++ need_lib_prefix=no ++ library_names_spec='$libname${shared_ext} $libname.a' ++ dynamic_linker='OS/2 ld.exe' ++ shlibpath_var=LIBPATH ++ ;; ++ ++osf3* | osf4* | osf5*) ++ version_type=osf ++ need_lib_prefix=no ++ need_version=no ++ soname_spec='${libname}${release}${shared_ext}$major' ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" ++ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ++ ;; ++ ++rdos*) ++ dynamic_linker=no ++ ;; ++ ++solaris*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ # ldd complains unless libraries are executable ++ postinstall_cmds='chmod +x $lib' ++ ;; ++ ++sunos4*) ++ version_type=sunos ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ++ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ if test "$with_gnu_ld" = yes; then ++ need_lib_prefix=no ++ fi ++ need_version=yes ++ ;; ++ ++sysv4 | sysv4.3*) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ case $host_vendor in ++ sni) ++ shlibpath_overrides_runpath=no ++ need_lib_prefix=no ++ runpath_var=LD_RUN_PATH ++ ;; ++ siemens) ++ need_lib_prefix=no ++ ;; ++ motorola) ++ need_lib_prefix=no ++ need_version=no ++ shlibpath_overrides_runpath=no ++ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ++ ;; ++ esac ++ ;; ++ ++sysv4*MP*) ++ if test -d /usr/nec ;then ++ version_type=linux ++ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' ++ soname_spec='$libname${shared_ext}.$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ fi ++ ;; ++ ++sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) ++ version_type=freebsd-elf ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ if test "$with_gnu_ld" = yes; then ++ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' ++ else ++ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' ++ case $host_os in ++ sco3.2v5*) ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ++ ;; ++ esac ++ fi ++ sys_lib_dlsearch_path_spec='/usr/lib' ++ ;; ++ ++tpf*) ++ # TPF is a cross-target only. Preferred cross-host = GNU/Linux. ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ ;; ++ ++uts4*) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ ;; ++ ++*) ++ dynamic_linker=no ++ ;; ++esac ++{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 ++echo "${ECHO_T}$dynamic_linker" >&6; } ++test "$dynamic_linker" = no && can_build_shared=no ++ ++variables_saved_for_relink="PATH $shlibpath_var $runpath_var" ++if test "$GCC" = yes; then ++ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" ++fi ++ ++if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then ++ sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" ++fi ++if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then ++ sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 ++echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } ++hardcode_action= ++if test -n "$hardcode_libdir_flag_spec" || ++ test -n "$runpath_var" || ++ test "X$hardcode_automatic" = "Xyes" ; then ++ ++ # We can hardcode non-existent directories. ++ if test "$hardcode_direct" != no && ++ # If the only mechanism to avoid hardcoding is shlibpath_var, we ++ # have to relink, otherwise we might link with an installed library ++ # when we should be linking with a yet-to-be-installed one ++ ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && ++ test "$hardcode_minus_L" != no; then ++ # Linking always hardcodes the temporary library directory. ++ hardcode_action=relink ++ else ++ # We can link without hardcoding, and we can hardcode nonexisting dirs. ++ hardcode_action=immediate ++ fi ++else ++ # We cannot hardcode anything, or else we can only hardcode existing ++ # directories. ++ hardcode_action=unsupported ++fi ++{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 ++echo "${ECHO_T}$hardcode_action" >&6; } ++ ++if test "$hardcode_action" = relink || ++ test "$inherit_rpath" = yes; then ++ # Fast installation is not supported ++ enable_fast_install=no ++elif test "$shlibpath_overrides_runpath" = yes || ++ test "$enable_shared" = no; then ++ # Fast installation is not necessary ++ enable_fast_install=needless ++fi ++ ++ ++ ++ ++ ++ ++ if test "x$enable_dlopen" != xyes; then ++ enable_dlopen=unknown ++ enable_dlopen_self=unknown ++ enable_dlopen_self_static=unknown ++else ++ lt_cv_dlopen=no ++ lt_cv_dlopen_libs= ++ ++ case $host_os in ++ beos*) ++ lt_cv_dlopen="load_add_on" ++ lt_cv_dlopen_libs= ++ lt_cv_dlopen_self=yes ++ ;; ++ ++ mingw* | pw32* | cegcc*) ++ lt_cv_dlopen="LoadLibrary" ++ lt_cv_dlopen_libs= ++ ;; ++ ++ cygwin*) ++ lt_cv_dlopen="dlopen" ++ lt_cv_dlopen_libs= ++ ;; ++ ++ darwin*) ++ # if libdl is installed we need to link against it ++ { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 ++echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dl_dlopen+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldl $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dlopen (); ++int ++main () ++{ ++return dlopen (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dl_dlopen=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dl_dlopen=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 ++echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } ++if test $ac_cv_lib_dl_dlopen = yes; then ++ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" ++else ++ ++ lt_cv_dlopen="dyld" ++ lt_cv_dlopen_libs= ++ lt_cv_dlopen_self=yes ++ ++fi ++ ++ ;; ++ ++ *) ++ { echo "$as_me:$LINENO: checking for shl_load" >&5 ++echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } ++if test "${ac_cv_func_shl_load+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define shl_load to an innocuous variant, in case declares shl_load. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define shl_load innocuous_shl_load ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char shl_load (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef shl_load ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char shl_load (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_shl_load || defined __stub___shl_load ++choke me ++#endif ++ ++int ++main () ++{ ++return shl_load (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_shl_load=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_shl_load=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 ++echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } ++if test $ac_cv_func_shl_load = yes; then ++ lt_cv_dlopen="shl_load" ++else ++ { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 ++echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dld_shl_load+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldld $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char shl_load (); ++int ++main () ++{ ++return shl_load (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dld_shl_load=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dld_shl_load=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 ++echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } ++if test $ac_cv_lib_dld_shl_load = yes; then ++ lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" ++else ++ { echo "$as_me:$LINENO: checking for dlopen" >&5 ++echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } ++if test "${ac_cv_func_dlopen+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++/* Define dlopen to an innocuous variant, in case declares dlopen. ++ For example, HP-UX 11i declares gettimeofday. */ ++#define dlopen innocuous_dlopen ++ ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char dlopen (); below. ++ Prefer to if __STDC__ is defined, since ++ exists even on freestanding compilers. */ ++ ++#ifdef __STDC__ ++# include ++#else ++# include ++#endif ++ ++#undef dlopen ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dlopen (); ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined __stub_dlopen || defined __stub___dlopen ++choke me ++#endif ++ ++int ++main () ++{ ++return dlopen (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_func_dlopen=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_func_dlopen=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 ++echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } ++if test $ac_cv_func_dlopen = yes; then ++ lt_cv_dlopen="dlopen" ++else ++ { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 ++echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dl_dlopen+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldl $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dlopen (); ++int ++main () ++{ ++return dlopen (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dl_dlopen=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dl_dlopen=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 ++echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } ++if test $ac_cv_lib_dl_dlopen = yes; then ++ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" ++else ++ { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 ++echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } ++if test "${ac_cv_lib_svld_dlopen+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lsvld $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dlopen (); ++int ++main () ++{ ++return dlopen (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_svld_dlopen=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_svld_dlopen=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 ++echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } ++if test $ac_cv_lib_svld_dlopen = yes; then ++ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" ++else ++ { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 ++echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } ++if test "${ac_cv_lib_dld_dld_link+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ldld $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char dld_link (); ++int ++main () ++{ ++return dld_link (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_dld_dld_link=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_dld_dld_link=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 ++echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } ++if test $ac_cv_lib_dld_dld_link = yes; then ++ lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" ++fi ++ ++ ++fi ++ ++ ++fi ++ ++ ++fi ++ ++ ++fi ++ ++ ++fi ++ ++ ;; ++ esac ++ ++ if test "x$lt_cv_dlopen" != xno; then ++ enable_dlopen=yes ++ else ++ enable_dlopen=no ++ fi ++ ++ case $lt_cv_dlopen in ++ dlopen) ++ save_CPPFLAGS="$CPPFLAGS" ++ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" ++ ++ save_LDFLAGS="$LDFLAGS" ++ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" ++ ++ save_LIBS="$LIBS" ++ LIBS="$lt_cv_dlopen_libs $LIBS" ++ ++ { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 ++echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } ++if test "${lt_cv_dlopen_self+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then : ++ lt_cv_dlopen_self=cross ++else ++ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 ++ lt_status=$lt_dlunknown ++ cat > conftest.$ac_ext <<_LT_EOF ++#line __oline__ "configure" ++#include "confdefs.h" ++ ++#if HAVE_DLFCN_H ++#include ++#endif ++ ++#include ++ ++#ifdef RTLD_GLOBAL ++# define LT_DLGLOBAL RTLD_GLOBAL ++#else ++# ifdef DL_GLOBAL ++# define LT_DLGLOBAL DL_GLOBAL ++# else ++# define LT_DLGLOBAL 0 ++# endif ++#endif ++ ++/* We may have to define LT_DLLAZY_OR_NOW in the command line if we ++ find out it does not work in some platform. */ ++#ifndef LT_DLLAZY_OR_NOW ++# ifdef RTLD_LAZY ++# define LT_DLLAZY_OR_NOW RTLD_LAZY ++# else ++# ifdef DL_LAZY ++# define LT_DLLAZY_OR_NOW DL_LAZY ++# else ++# ifdef RTLD_NOW ++# define LT_DLLAZY_OR_NOW RTLD_NOW ++# else ++# ifdef DL_NOW ++# define LT_DLLAZY_OR_NOW DL_NOW ++# else ++# define LT_DLLAZY_OR_NOW 0 ++# endif ++# endif ++# endif ++# endif ++#endif ++ ++void fnord() { int i=42;} ++int main () ++{ ++ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); ++ int status = $lt_dlunknown; ++ ++ if (self) ++ { ++ if (dlsym (self,"fnord")) status = $lt_dlno_uscore; ++ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; ++ /* dlclose (self); */ ++ } ++ else ++ puts (dlerror ()); ++ ++ return status; ++} ++_LT_EOF ++ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ++ (eval $ac_link) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then ++ (./conftest; exit; ) >&5 2>/dev/null ++ lt_status=$? ++ case x$lt_status in ++ x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; ++ x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; ++ x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; ++ esac ++ else : ++ # compilation failed ++ lt_cv_dlopen_self=no ++ fi ++fi ++rm -fr conftest* ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 ++echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } ++ ++ if test "x$lt_cv_dlopen_self" = xyes; then ++ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" ++ { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 ++echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } ++if test "${lt_cv_dlopen_self_static+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test "$cross_compiling" = yes; then : ++ lt_cv_dlopen_self_static=cross ++else ++ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 ++ lt_status=$lt_dlunknown ++ cat > conftest.$ac_ext <<_LT_EOF ++#line __oline__ "configure" ++#include "confdefs.h" ++ ++#if HAVE_DLFCN_H ++#include ++#endif ++ ++#include ++ ++#ifdef RTLD_GLOBAL ++# define LT_DLGLOBAL RTLD_GLOBAL ++#else ++# ifdef DL_GLOBAL ++# define LT_DLGLOBAL DL_GLOBAL ++# else ++# define LT_DLGLOBAL 0 ++# endif ++#endif ++ ++/* We may have to define LT_DLLAZY_OR_NOW in the command line if we ++ find out it does not work in some platform. */ ++#ifndef LT_DLLAZY_OR_NOW ++# ifdef RTLD_LAZY ++# define LT_DLLAZY_OR_NOW RTLD_LAZY ++# else ++# ifdef DL_LAZY ++# define LT_DLLAZY_OR_NOW DL_LAZY ++# else ++# ifdef RTLD_NOW ++# define LT_DLLAZY_OR_NOW RTLD_NOW ++# else ++# ifdef DL_NOW ++# define LT_DLLAZY_OR_NOW DL_NOW ++# else ++# define LT_DLLAZY_OR_NOW 0 ++# endif ++# endif ++# endif ++# endif ++#endif ++ ++void fnord() { int i=42;} ++int main () ++{ ++ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); ++ int status = $lt_dlunknown; ++ ++ if (self) ++ { ++ if (dlsym (self,"fnord")) status = $lt_dlno_uscore; ++ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; ++ /* dlclose (self); */ ++ } ++ else ++ puts (dlerror ()); ++ ++ return status; ++} ++_LT_EOF ++ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ++ (eval $ac_link) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then ++ (./conftest; exit; ) >&5 2>/dev/null ++ lt_status=$? ++ case x$lt_status in ++ x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; ++ x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; ++ x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; ++ esac ++ else : ++ # compilation failed ++ lt_cv_dlopen_self_static=no ++ fi ++fi ++rm -fr conftest* ++ ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 ++echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } ++ fi ++ ++ CPPFLAGS="$save_CPPFLAGS" ++ LDFLAGS="$save_LDFLAGS" ++ LIBS="$save_LIBS" ++ ;; ++ esac ++ ++ case $lt_cv_dlopen_self in ++ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; ++ *) enable_dlopen_self=unknown ;; ++ esac ++ ++ case $lt_cv_dlopen_self_static in ++ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; ++ *) enable_dlopen_self_static=unknown ;; ++ esac ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++striplib= ++old_striplib= ++{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 ++echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } ++if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then ++ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" ++ test -z "$striplib" && striplib="$STRIP --strip-unneeded" ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++else ++# FIXME - insert some real tests, host_os isn't really good enough ++ case $host_os in ++ darwin*) ++ if test -n "$STRIP" ; then ++ striplib="$STRIP -x" ++ old_striplib="$STRIP -S" ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } ++ else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ fi ++ ;; ++ *) ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++ ;; ++ esac ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ # Report which library types will actually be built ++ { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 ++echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $can_build_shared" >&5 ++echo "${ECHO_T}$can_build_shared" >&6; } ++ ++ { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 ++echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } ++ test "$can_build_shared" = "no" && enable_shared=no ++ ++ # On AIX, shared libraries and static libraries use the same namespace, and ++ # are all built from PIC. ++ case $host_os in ++ aix3*) ++ test "$enable_shared" = yes && enable_static=no ++ if test -n "$RANLIB"; then ++ archive_cmds="$archive_cmds~\$RANLIB \$lib" ++ postinstall_cmds='$RANLIB $lib' ++ fi ++ ;; ++ ++ aix[4-9]*) ++ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then ++ test "$enable_shared" = yes && enable_static=no ++ fi ++ ;; ++ esac ++ { echo "$as_me:$LINENO: result: $enable_shared" >&5 ++echo "${ECHO_T}$enable_shared" >&6; } ++ ++ { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 ++echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } ++ # Make sure either enable_shared or enable_static is yes. ++ test "$enable_shared" = yes || enable_static=yes ++ { echo "$as_me:$LINENO: result: $enable_static" >&5 ++echo "${ECHO_T}$enable_static" >&6; } ++ ++ ++ ++ ++fi ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++CC="$lt_save_CC" ++ ++ ++ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++archive_cmds_need_lc_CXX=no ++allow_undefined_flag_CXX= ++always_export_symbols_CXX=no ++archive_expsym_cmds_CXX= ++compiler_needs_object_CXX=no ++export_dynamic_flag_spec_CXX= ++hardcode_direct_CXX=no ++hardcode_direct_absolute_CXX=no ++hardcode_libdir_flag_spec_CXX= ++hardcode_libdir_flag_spec_ld_CXX= ++hardcode_libdir_separator_CXX= ++hardcode_minus_L_CXX=no ++hardcode_shlibpath_var_CXX=unsupported ++hardcode_automatic_CXX=no ++inherit_rpath_CXX=no ++module_cmds_CXX= ++module_expsym_cmds_CXX= ++link_all_deplibs_CXX=unknown ++old_archive_cmds_CXX=$old_archive_cmds ++no_undefined_flag_CXX= ++whole_archive_flag_spec_CXX= ++enable_shared_with_static_runtimes_CXX=no ++ ++# Source file extension for C++ test sources. ++ac_ext=cpp ++ ++# Object file extension for compiled C++ test sources. ++objext=o ++objext_CXX=$objext ++ ++# No sense in running all these tests if we already determined that ++# the CXX compiler isn't working. Some variables (like enable_shared) ++# are currently assumed to apply to all compilers on this platform, ++# and will be corrupted by setting them based on a non-working compiler. ++if test "$_lt_caught_CXX_error" != yes; then ++ # Code to be used in simple compile tests ++ lt_simple_compile_test_code="int some_variable = 0;" ++ ++ # Code to be used in simple link tests ++ lt_simple_link_test_code='int main(int, char *[]) { return(0); }' ++ ++ # ltmain only uses $CC for tagged configurations so make sure $CC is set. ++ ++ ++ ++ ++ ++ ++# If no C compiler was specified, use CC. ++LTCC=${LTCC-"$CC"} ++ ++# If no C compiler flags were specified, use CFLAGS. ++LTCFLAGS=${LTCFLAGS-"$CFLAGS"} ++ ++# Allow CC to be a program name with arguments. ++compiler=$CC ++ ++ ++ # save warnings/boilerplate of simple test code ++ ac_outfile=conftest.$ac_objext ++echo "$lt_simple_compile_test_code" >conftest.$ac_ext ++eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err ++_lt_compiler_boilerplate=`cat conftest.err` ++$RM conftest* ++ ++ ac_outfile=conftest.$ac_objext ++echo "$lt_simple_link_test_code" >conftest.$ac_ext ++eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err ++_lt_linker_boilerplate=`cat conftest.err` ++$RM -r conftest* ++ ++ ++ # Allow CC to be a program name with arguments. ++ lt_save_CC=$CC ++ lt_save_LD=$LD ++ lt_save_GCC=$GCC ++ GCC=$GXX ++ lt_save_with_gnu_ld=$with_gnu_ld ++ lt_save_path_LD=$lt_cv_path_LD ++ if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then ++ lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx ++ else ++ $as_unset lt_cv_prog_gnu_ld ++ fi ++ if test -n "${lt_cv_path_LDCXX+set}"; then ++ lt_cv_path_LD=$lt_cv_path_LDCXX ++ else ++ $as_unset lt_cv_path_LD ++ fi ++ test -z "${LDCXX+set}" || LD=$LDCXX ++ CC=${CXX-"c++"} ++ compiler=$CC ++ compiler_CXX=$CC ++ for cc_temp in $compiler""; do ++ case $cc_temp in ++ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; ++ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; ++ \-*) ;; ++ *) break;; ++ esac ++done ++cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` ++ ++ ++ if test -n "$compiler"; then ++ # We don't want -fno-exception when compiling C++ code, so set the ++ # no_builtin_flag separately ++ if test "$GXX" = yes; then ++ lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' ++ else ++ lt_prog_compiler_no_builtin_flag_CXX= ++ fi ++ ++ if test "$GXX" = yes; then ++ # Set up default GNU C++ configuration ++ ++ ++ ++# Check whether --with-gnu-ld was given. ++if test "${with_gnu_ld+set}" = set; then ++ withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes ++else ++ with_gnu_ld=no ++fi ++ ++ac_prog=ld ++if test "$GCC" = yes; then ++ # Check if gcc -print-prog-name=ld gives a path. ++ { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 ++echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } ++ case $host in ++ *-*-mingw*) ++ # gcc leaves a trailing carriage return which upsets mingw ++ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; ++ *) ++ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; ++ esac ++ case $ac_prog in ++ # Accept absolute paths. ++ [\\/]* | ?:[\\/]*) ++ re_direlt='/[^/][^/]*/\.\./' ++ # Canonicalize the pathname of ld ++ ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` ++ while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ++ ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` ++ done ++ test -z "$LD" && LD="$ac_prog" ++ ;; ++ "") ++ # If it fails, then pretend we aren't using GCC. ++ ac_prog=ld ++ ;; ++ *) ++ # If it is relative, then search for the first ld in PATH. ++ with_gnu_ld=unknown ++ ;; ++ esac ++elif test "$with_gnu_ld" = yes; then ++ { echo "$as_me:$LINENO: checking for GNU ld" >&5 ++echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } ++else ++ { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 ++echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } ++fi ++if test "${lt_cv_path_LD+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -z "$LD"; then ++ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ++ for ac_dir in $PATH; do ++ IFS="$lt_save_ifs" ++ test -z "$ac_dir" && ac_dir=. ++ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then ++ lt_cv_path_LD="$ac_dir/$ac_prog" ++ # Check to see if the program is GNU ld. I'd rather use --version, ++ # but apparently some variants of GNU ld only accept -v. ++ # Break only if it was the GNU/non-GNU ld that we prefer. ++ case `"$lt_cv_path_LD" -v 2>&1 &5 ++echo "${ECHO_T}$LD" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } ++fi ++test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 ++echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} ++ { (exit 1); exit 1; }; } ++{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 ++echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } ++if test "${lt_cv_prog_gnu_ld+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ # I'd rather use --version here, but apparently some GNU lds only accept -v. ++case `$LD -v 2>&1 &5 ++echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } ++with_gnu_ld=$lt_cv_prog_gnu_ld ++ ++ ++ ++ ++ ++ ++ ++ # Check if GNU C++ uses GNU ld as the underlying linker, since the ++ # archiving commands below assume that GNU ld is being used. ++ if test "$with_gnu_ld" = yes; then ++ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ ++ hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' ++ export_dynamic_flag_spec_CXX='${wl}--export-dynamic' ++ ++ # If archive_cmds runs LD, not CC, wlarc should be empty ++ # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to ++ # investigate it a little bit more. (MM) ++ wlarc='${wl}' ++ ++ # ancient GNU ld didn't support --whole-archive et. al. ++ if eval "`$CC -print-prog-name=ld` --help 2>&1" | ++ $GREP 'no-whole-archive' > /dev/null; then ++ whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' ++ else ++ whole_archive_flag_spec_CXX= ++ fi ++ else ++ with_gnu_ld=no ++ wlarc= ++ ++ # A generic and very simple default shared library creation ++ # command for GNU C++ for the case where it uses the native ++ # linker, instead of GNU ld. If possible, this setting should ++ # overridden to take advantage of the native linker features on ++ # the platform it is being used on. ++ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' ++ fi ++ ++ # Commands to make compiler produce verbose output that lists ++ # what "hidden" libraries, object files and flags are used when ++ # linking a shared library. ++ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' ++ ++ else ++ GXX=no ++ with_gnu_ld=no ++ wlarc= ++ fi ++ ++ # PORTME: fill in a description of your system's C++ link characteristics ++ { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 ++echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } ++ ld_shlibs_CXX=yes ++ case $host_os in ++ aix3*) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ aix[4-9]*) ++ if test "$host_cpu" = ia64; then ++ # On IA64, the linker does run time linking by default, so we don't ++ # have to do anything special. ++ aix_use_runtimelinking=no ++ exp_sym_flag='-Bexport' ++ no_entry_flag="" ++ else ++ aix_use_runtimelinking=no ++ ++ # Test if we are trying to use run time linking or normal ++ # AIX style linking. If -brtl is somewhere in LDFLAGS, we ++ # need to do runtime linking. ++ case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) ++ for ld_flag in $LDFLAGS; do ++ case $ld_flag in ++ *-brtl*) ++ aix_use_runtimelinking=yes ++ break ++ ;; ++ esac ++ done ++ ;; ++ esac ++ ++ exp_sym_flag='-bexport' ++ no_entry_flag='-bnoentry' ++ fi ++ ++ # When large executables or shared objects are built, AIX ld can ++ # have problems creating the table of contents. If linking a library ++ # or program results in "error TOC overflow" add -mminimal-toc to ++ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not ++ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. ++ ++ archive_cmds_CXX='' ++ hardcode_direct_CXX=yes ++ hardcode_direct_absolute_CXX=yes ++ hardcode_libdir_separator_CXX=':' ++ link_all_deplibs_CXX=yes ++ file_list_spec_CXX='${wl}-f,' ++ ++ if test "$GXX" = yes; then ++ case $host_os in aix4.[012]|aix4.[012].*) ++ # We only want to do this on AIX 4.2 and lower, the check ++ # below for broken collect2 doesn't work under 4.3+ ++ collect2name=`${CC} -print-prog-name=collect2` ++ if test -f "$collect2name" && ++ strings "$collect2name" | $GREP resolve_lib_name >/dev/null ++ then ++ # We have reworked collect2 ++ : ++ else ++ # We have old collect2 ++ hardcode_direct_CXX=unsupported ++ # It fails to find uninstalled libraries when the uninstalled ++ # path is not listed in the libpath. Setting hardcode_minus_L ++ # to unsupported forces relinking ++ hardcode_minus_L_CXX=yes ++ hardcode_libdir_flag_spec_CXX='-L$libdir' ++ hardcode_libdir_separator_CXX= ++ fi ++ esac ++ shared_flag='-shared' ++ if test "$aix_use_runtimelinking" = yes; then ++ shared_flag="$shared_flag "'${wl}-G' ++ fi ++ else ++ # not using gcc ++ if test "$host_cpu" = ia64; then ++ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release ++ # chokes on -Wl,-G. The following line is correct: ++ shared_flag='-G' ++ else ++ if test "$aix_use_runtimelinking" = yes; then ++ shared_flag='${wl}-G' ++ else ++ shared_flag='${wl}-bM:SRE' ++ fi ++ fi ++ fi ++ ++ export_dynamic_flag_spec_CXX='${wl}-bexpall' ++ # It seems that -bexpall does not export symbols beginning with ++ # underscore (_), so it is better to generate a list of symbols to ++ # export. ++ always_export_symbols_CXX=yes ++ if test "$aix_use_runtimelinking" = yes; then ++ # Warning - without using the other runtime loading flags (-brtl), ++ # -berok will link without error, but may produce a broken library. ++ allow_undefined_flag_CXX='-berok' ++ # Determine the default libpath from the value encoded in an empty ++ # executable. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ++lt_aix_libpath_sed=' ++ /Import File Strings/,/^$/ { ++ /^0/ { ++ s/^0 *\(.*\)$/\1/ ++ p ++ } ++ }' ++aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++# Check for a 64-bit object if we didn't find anything. ++if test -z "$aix_libpath"; then ++ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++fi ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ++ ++ hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" ++ ++ archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" ++ else ++ if test "$host_cpu" = ia64; then ++ hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' ++ allow_undefined_flag_CXX="-z nodefs" ++ archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" ++ else ++ # Determine the default libpath from the value encoded in an ++ # empty executable. ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ++lt_aix_libpath_sed=' ++ /Import File Strings/,/^$/ { ++ /^0/ { ++ s/^0 *\(.*\)$/\1/ ++ p ++ } ++ }' ++aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++# Check for a 64-bit object if we didn't find anything. ++if test -z "$aix_libpath"; then ++ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++fi ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ++ ++ hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" ++ # Warning - without using the other run time loading flags, ++ # -berok will link without error, but may produce a broken library. ++ no_undefined_flag_CXX=' ${wl}-bernotok' ++ allow_undefined_flag_CXX=' ${wl}-berok' ++ # Exported symbols can be pulled into shared objects from archives ++ whole_archive_flag_spec_CXX='$convenience' ++ archive_cmds_need_lc_CXX=yes ++ # This is similar to how AIX traditionally builds its shared ++ # libraries. ++ archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' ++ fi ++ fi ++ ;; ++ ++ beos*) ++ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ allow_undefined_flag_CXX=unsupported ++ # Joseph Beckenbach says some releases of gcc ++ # support --undefined. This deserves some investigation. FIXME ++ archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ else ++ ld_shlibs_CXX=no ++ fi ++ ;; ++ ++ chorus*) ++ case $cc_basename in ++ *) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ esac ++ ;; ++ ++ cygwin* | mingw* | pw32* | cegcc*) ++ # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, ++ # as there is no search path for DLLs. ++ hardcode_libdir_flag_spec_CXX='-L$libdir' ++ allow_undefined_flag_CXX=unsupported ++ always_export_symbols_CXX=no ++ enable_shared_with_static_runtimes_CXX=yes ++ ++ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then ++ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' ++ # If the export-symbols file already is a .def file (1st line ++ # is EXPORTS), use it as is; otherwise, prepend... ++ archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then ++ cp $export_symbols $output_objdir/$soname.def; ++ else ++ echo EXPORTS > $output_objdir/$soname.def; ++ cat $export_symbols >> $output_objdir/$soname.def; ++ fi~ ++ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' ++ else ++ ld_shlibs_CXX=no ++ fi ++ ;; ++ darwin* | rhapsody*) ++ ++ ++ archive_cmds_need_lc_CXX=no ++ hardcode_direct_CXX=no ++ hardcode_automatic_CXX=yes ++ hardcode_shlibpath_var_CXX=unsupported ++ whole_archive_flag_spec_CXX='' ++ link_all_deplibs_CXX=yes ++ allow_undefined_flag_CXX="$_lt_dar_allow_undefined" ++ case $cc_basename in ++ ifort*) _lt_dar_can_shared=yes ;; ++ *) _lt_dar_can_shared=$GCC ;; ++ esac ++ if test "$_lt_dar_can_shared" = "yes"; then ++ output_verbose_link_cmd=echo ++ archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" ++ module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" ++ archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" ++ module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" ++ if test "$lt_cv_apple_cc_single_mod" != "yes"; then ++ archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" ++ archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" ++ fi ++ ++ else ++ ld_shlibs_CXX=no ++ fi ++ ++ ;; ++ ++ dgux*) ++ case $cc_basename in ++ ec++*) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ ghcx*) ++ # Green Hills C++ Compiler ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ *) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ esac ++ ;; ++ ++ freebsd[12]*) ++ # C++ shared libraries reported to be fairly broken before ++ # switch to ELF ++ ld_shlibs_CXX=no ++ ;; ++ ++ freebsd-elf*) ++ archive_cmds_need_lc_CXX=no ++ ;; ++ ++ freebsd* | dragonfly*) ++ # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF ++ # conventions ++ ld_shlibs_CXX=yes ++ ;; ++ ++ gnu*) ++ ;; ++ ++ hpux9*) ++ hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' ++ hardcode_libdir_separator_CXX=: ++ export_dynamic_flag_spec_CXX='${wl}-E' ++ hardcode_direct_CXX=yes ++ hardcode_minus_L_CXX=yes # Not in the search PATH, ++ # but as the default ++ # location of the library. ++ ++ case $cc_basename in ++ CC*) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ aCC*) ++ archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ++ # Commands to make compiler produce verbose output that lists ++ # what "hidden" libraries, object files and flags are used when ++ # linking a shared library. ++ # ++ # There doesn't appear to be a way to prevent this compiler from ++ # explicitly linking system object files so we need to strip them ++ # from the output so that they don't get included in the library ++ # dependencies. ++ output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ++ ;; ++ *) ++ if test "$GXX" = yes; then ++ archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ++ else ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ fi ++ ;; ++ esac ++ ;; ++ ++ hpux10*|hpux11*) ++ if test $with_gnu_ld = no; then ++ hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' ++ hardcode_libdir_separator_CXX=: ++ ++ case $host_cpu in ++ hppa*64*|ia64*) ++ ;; ++ *) ++ export_dynamic_flag_spec_CXX='${wl}-E' ++ ;; ++ esac ++ fi ++ case $host_cpu in ++ hppa*64*|ia64*) ++ hardcode_direct_CXX=no ++ hardcode_shlibpath_var_CXX=no ++ ;; ++ *) ++ hardcode_direct_CXX=yes ++ hardcode_direct_absolute_CXX=yes ++ hardcode_minus_L_CXX=yes # Not in the search PATH, ++ # but as the default ++ # location of the library. ++ ;; ++ esac ++ ++ case $cc_basename in ++ CC*) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ aCC*) ++ case $host_cpu in ++ hppa*64*) ++ archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ++ ;; ++ ia64*) ++ archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ++ ;; ++ *) ++ archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ++ ;; ++ esac ++ # Commands to make compiler produce verbose output that lists ++ # what "hidden" libraries, object files and flags are used when ++ # linking a shared library. ++ # ++ # There doesn't appear to be a way to prevent this compiler from ++ # explicitly linking system object files so we need to strip them ++ # from the output so that they don't get included in the library ++ # dependencies. ++ output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ++ ;; ++ *) ++ if test "$GXX" = yes; then ++ if test $with_gnu_ld = no; then ++ case $host_cpu in ++ hppa*64*) ++ archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ++ ;; ++ ia64*) ++ archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ++ ;; ++ *) ++ archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ++ ;; ++ esac ++ fi ++ else ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ fi ++ ;; ++ esac ++ ;; ++ ++ interix[3-9]*) ++ hardcode_direct_CXX=no ++ hardcode_shlibpath_var_CXX=no ++ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' ++ export_dynamic_flag_spec_CXX='${wl}-E' ++ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. ++ # Instead, shared libraries are loaded at an image base (0x10000000 by ++ # default) and relocated if they conflict, which is a slow very memory ++ # consuming and fragmenting process. To avoid this, we pick a random, ++ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link ++ # time. Moving up from 0x10000000 also allows more sbrk(2) space. ++ archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ++ archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ++ ;; ++ irix5* | irix6*) ++ case $cc_basename in ++ CC*) ++ # SGI C++ ++ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' ++ ++ # Archives containing C++ object files must be created using ++ # "CC -ar", where "CC" is the IRIX C++ compiler. This is ++ # necessary to make sure instantiated templates are included ++ # in the archive. ++ old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ++ ;; ++ *) ++ if test "$GXX" = yes; then ++ if test "$with_gnu_ld" = no; then ++ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ++ else ++ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' ++ fi ++ fi ++ link_all_deplibs_CXX=yes ++ ;; ++ esac ++ hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' ++ hardcode_libdir_separator_CXX=: ++ inherit_rpath_CXX=yes ++ ;; ++ ++ linux* | k*bsd*-gnu) ++ case $cc_basename in ++ KCC*) ++ # Kuck and Associates, Inc. (KAI) C++ Compiler ++ ++ # KCC will only create a shared library if the output file ++ # ends with ".so" (or ".sl" for HP-UX), so rename the library ++ # to its proper name (with version) after linking. ++ archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' ++ archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' ++ # Commands to make compiler produce verbose output that lists ++ # what "hidden" libraries, object files and flags are used when ++ # linking a shared library. ++ # ++ # There doesn't appear to be a way to prevent this compiler from ++ # explicitly linking system object files so we need to strip them ++ # from the output so that they don't get included in the library ++ # dependencies. ++ output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ++ ++ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' ++ export_dynamic_flag_spec_CXX='${wl}--export-dynamic' ++ ++ # Archives containing C++ object files must be created using ++ # "CC -Bstatic", where "CC" is the KAI C++ compiler. ++ old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ++ ;; ++ icpc* | ecpc* ) ++ # Intel C++ ++ with_gnu_ld=yes ++ # version 8.0 and above of icpc choke on multiply defined symbols ++ # if we add $predep_objects and $postdep_objects, however 7.1 and ++ # earlier do not add the objects themselves. ++ case `$CC -V 2>&1` in ++ *"Version 7."*) ++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ ;; ++ *) # Version 8.0 or newer ++ tmp_idyn= ++ case $host_cpu in ++ ia64*) tmp_idyn=' -i_dynamic';; ++ esac ++ archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ ;; ++ esac ++ archive_cmds_need_lc_CXX=no ++ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' ++ export_dynamic_flag_spec_CXX='${wl}--export-dynamic' ++ whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ++ ;; ++ pgCC* | pgcpp*) ++ # Portland Group C++ compiler ++ case `$CC -V` in ++ *pgCC\ [1-5]* | *pgcpp\ [1-5]*) ++ prelink_cmds_CXX='tpldir=Template.dir~ ++ rm -rf $tpldir~ ++ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ ++ compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' ++ old_archive_cmds_CXX='tpldir=Template.dir~ ++ rm -rf $tpldir~ ++ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ ++ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ ++ $RANLIB $oldlib' ++ archive_cmds_CXX='tpldir=Template.dir~ ++ rm -rf $tpldir~ ++ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ ++ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' ++ archive_expsym_cmds_CXX='tpldir=Template.dir~ ++ rm -rf $tpldir~ ++ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ ++ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ++ ;; ++ *) # Version 6 will use weak symbols ++ archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' ++ archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ++ ;; ++ esac ++ ++ hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' ++ export_dynamic_flag_spec_CXX='${wl}--export-dynamic' ++ whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ++ ;; ++ cxx*) ++ # Compaq C++ ++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' ++ ++ runpath_var=LD_RUN_PATH ++ hardcode_libdir_flag_spec_CXX='-rpath $libdir' ++ hardcode_libdir_separator_CXX=: ++ ++ # Commands to make compiler produce verbose output that lists ++ # what "hidden" libraries, object files and flags are used when ++ # linking a shared library. ++ # ++ # There doesn't appear to be a way to prevent this compiler from ++ # explicitly linking system object files so we need to strip them ++ # from the output so that they don't get included in the library ++ # dependencies. ++ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ++ ;; ++ xl*) ++ # IBM XL 8.0 on PPC, with GNU ld ++ hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' ++ export_dynamic_flag_spec_CXX='${wl}--export-dynamic' ++ archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ if test "x$supports_anon_versioning" = xyes; then ++ archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ ++ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ ++ echo "local: *; };" >> $output_objdir/$libname.ver~ ++ $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' ++ fi ++ ;; ++ *) ++ case `$CC -V 2>&1 | sed 5q` in ++ *Sun\ C*) ++ # Sun C++ 5.9 ++ no_undefined_flag_CXX=' -zdefs' ++ archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ++ archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' ++ hardcode_libdir_flag_spec_CXX='-R$libdir' ++ whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ++ compiler_needs_object_CXX=yes ++ ++ # Not sure whether something based on ++ # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 ++ # would be better. ++ output_verbose_link_cmd='echo' ++ ++ # Archives containing C++ object files must be created using ++ # "CC -xar", where "CC" is the Sun C++ compiler. This is ++ # necessary to make sure instantiated templates are included ++ # in the archive. ++ old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ++ ;; ++ esac ++ ;; ++ esac ++ ;; ++ ++ lynxos*) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ ++ m88k*) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ ++ mvs*) ++ case $cc_basename in ++ cxx*) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ *) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ esac ++ ;; ++ ++ netbsd*) ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then ++ archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' ++ wlarc= ++ hardcode_libdir_flag_spec_CXX='-R$libdir' ++ hardcode_direct_CXX=yes ++ hardcode_shlibpath_var_CXX=no ++ fi ++ # Workaround some broken pre-1.5 toolchains ++ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ++ ;; ++ ++ *nto* | *qnx*) ++ ld_shlibs_CXX=yes ++ ;; ++ ++ openbsd2*) ++ # C++ shared libraries are fairly broken ++ ld_shlibs_CXX=no ++ ;; ++ ++ openbsd*) ++ if test -f /usr/libexec/ld.so; then ++ hardcode_direct_CXX=yes ++ hardcode_shlibpath_var_CXX=no ++ hardcode_direct_absolute_CXX=yes ++ archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' ++ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' ++ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ++ archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' ++ export_dynamic_flag_spec_CXX='${wl}-E' ++ whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' ++ fi ++ output_verbose_link_cmd=echo ++ else ++ ld_shlibs_CXX=no ++ fi ++ ;; ++ ++ osf3* | osf4* | osf5*) ++ case $cc_basename in ++ KCC*) ++ # Kuck and Associates, Inc. (KAI) C++ Compiler ++ ++ # KCC will only create a shared library if the output file ++ # ends with ".so" (or ".sl" for HP-UX), so rename the library ++ # to its proper name (with version) after linking. ++ archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' ++ ++ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' ++ hardcode_libdir_separator_CXX=: ++ ++ # Archives containing C++ object files must be created using ++ # the KAI C++ compiler. ++ case $host in ++ osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; ++ *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; ++ esac ++ ;; ++ RCC*) ++ # Rational C++ 2.4.1 ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ cxx*) ++ case $host in ++ osf3*) ++ allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' ++ archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' ++ hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' ++ ;; ++ *) ++ allow_undefined_flag_CXX=' -expect_unresolved \*' ++ archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' ++ archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ ++ echo "-hidden">> $lib.exp~ ++ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ ++ $RM $lib.exp' ++ hardcode_libdir_flag_spec_CXX='-rpath $libdir' ++ ;; ++ esac ++ ++ hardcode_libdir_separator_CXX=: ++ ++ # Commands to make compiler produce verbose output that lists ++ # what "hidden" libraries, object files and flags are used when ++ # linking a shared library. ++ # ++ # There doesn't appear to be a way to prevent this compiler from ++ # explicitly linking system object files so we need to strip them ++ # from the output so that they don't get included in the library ++ # dependencies. ++ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ++ ;; ++ *) ++ if test "$GXX" = yes && test "$with_gnu_ld" = no; then ++ allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' ++ case $host in ++ osf3*) ++ archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ++ ;; ++ *) ++ archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ++ ;; ++ esac ++ ++ hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' ++ hardcode_libdir_separator_CXX=: ++ ++ # Commands to make compiler produce verbose output that lists ++ # what "hidden" libraries, object files and flags are used when ++ # linking a shared library. ++ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' ++ ++ else ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ fi ++ ;; ++ esac ++ ;; ++ ++ psos*) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ ++ sunos4*) ++ case $cc_basename in ++ CC*) ++ # Sun C++ 4.x ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ lcc*) ++ # Lucid ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ *) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ esac ++ ;; ++ ++ solaris*) ++ case $cc_basename in ++ CC*) ++ # Sun C++ 4.2, 5.x and Centerline C++ ++ archive_cmds_need_lc_CXX=yes ++ no_undefined_flag_CXX=' -zdefs' ++ archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ++ archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ ++ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' ++ ++ hardcode_libdir_flag_spec_CXX='-R$libdir' ++ hardcode_shlibpath_var_CXX=no ++ case $host_os in ++ solaris2.[0-5] | solaris2.[0-5].*) ;; ++ *) ++ # The compiler driver will combine and reorder linker options, ++ # but understands `-z linker_flag'. ++ # Supported since Solaris 2.6 (maybe 2.5.1?) ++ whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' ++ ;; ++ esac ++ link_all_deplibs_CXX=yes ++ ++ output_verbose_link_cmd='echo' ++ ++ # Archives containing C++ object files must be created using ++ # "CC -xar", where "CC" is the Sun C++ compiler. This is ++ # necessary to make sure instantiated templates are included ++ # in the archive. ++ old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ++ ;; ++ gcx*) ++ # Green Hills C++ Compiler ++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' ++ ++ # The C++ compiler must be used to create the archive. ++ old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ++ ;; ++ *) ++ # GNU C++ compiler with Solaris linker ++ if test "$GXX" = yes && test "$with_gnu_ld" = no; then ++ no_undefined_flag_CXX=' ${wl}-z ${wl}defs' ++ if $CC --version | $GREP -v '^2\.7' > /dev/null; then ++ archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' ++ archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ ++ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' ++ ++ # Commands to make compiler produce verbose output that lists ++ # what "hidden" libraries, object files and flags are used when ++ # linking a shared library. ++ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' ++ else ++ # g++ 2.7 appears to require `-G' NOT `-shared' on this ++ # platform. ++ archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' ++ archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ ++ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' ++ ++ # Commands to make compiler produce verbose output that lists ++ # what "hidden" libraries, object files and flags are used when ++ # linking a shared library. ++ output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' ++ fi ++ ++ hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' ++ case $host_os in ++ solaris2.[0-5] | solaris2.[0-5].*) ;; ++ *) ++ whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ++ ;; ++ esac ++ fi ++ ;; ++ esac ++ ;; ++ ++ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) ++ no_undefined_flag_CXX='${wl}-z,text' ++ archive_cmds_need_lc_CXX=no ++ hardcode_shlibpath_var_CXX=no ++ runpath_var='LD_RUN_PATH' ++ ++ case $cc_basename in ++ CC*) ++ archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ *) ++ archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ esac ++ ;; ++ ++ sysv5* | sco3.2v5* | sco5v6*) ++ # Note: We can NOT use -z defs as we might desire, because we do not ++ # link with -lc, and that would cause any symbols used from libc to ++ # always be unresolved, which means just about no library would ++ # ever link correctly. If we're not using GNU ld we use -z text ++ # though, which does catch some bad symbols but isn't as heavy-handed ++ # as -z defs. ++ no_undefined_flag_CXX='${wl}-z,text' ++ allow_undefined_flag_CXX='${wl}-z,nodefs' ++ archive_cmds_need_lc_CXX=no ++ hardcode_shlibpath_var_CXX=no ++ hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' ++ hardcode_libdir_separator_CXX=':' ++ link_all_deplibs_CXX=yes ++ export_dynamic_flag_spec_CXX='${wl}-Bexport' ++ runpath_var='LD_RUN_PATH' ++ ++ case $cc_basename in ++ CC*) ++ archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ *) ++ archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ esac ++ ;; ++ ++ tandem*) ++ case $cc_basename in ++ NCC*) ++ # NonStop-UX NCC 3.20 ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ *) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ esac ++ ;; ++ ++ vxworks*) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ ++ *) ++ # FIXME: insert proper C++ library support ++ ld_shlibs_CXX=no ++ ;; ++ esac ++ ++ { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 ++echo "${ECHO_T}$ld_shlibs_CXX" >&6; } ++ test "$ld_shlibs_CXX" = no && can_build_shared=no ++ ++ GCC_CXX="$GXX" ++ LD_CXX="$LD" ++ ++ ## CAVEAT EMPTOR: ++ ## There is no encapsulation within the following macros, do not change ++ ## the running order or otherwise move them around unless you know exactly ++ ## what you are doing... ++ # Dependencies to place before and after the object being linked: ++predep_objects_CXX= ++postdep_objects_CXX= ++predeps_CXX= ++postdeps_CXX= ++compiler_lib_search_path_CXX= ++ ++cat > conftest.$ac_ext <<_LT_EOF ++class Foo ++{ ++public: ++ Foo (void) { a = 0; } ++private: ++ int a; ++}; ++_LT_EOF ++ ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # Parse the compiler output and extract the necessary ++ # objects, libraries and library flags. ++ ++ # Sentinel used to keep track of whether or not we are before ++ # the conftest object file. ++ pre_test_object_deps_done=no ++ ++ for p in `eval "$output_verbose_link_cmd"`; do ++ case $p in ++ ++ -L* | -R* | -l*) ++ # Some compilers place space between "-{L,R}" and the path. ++ # Remove the space. ++ if test $p = "-L" || ++ test $p = "-R"; then ++ prev=$p ++ continue ++ else ++ prev= ++ fi ++ ++ if test "$pre_test_object_deps_done" = no; then ++ case $p in ++ -L* | -R*) ++ # Internal compiler library paths should come after those ++ # provided the user. The postdeps already come after the ++ # user supplied libs so there is no need to process them. ++ if test -z "$compiler_lib_search_path_CXX"; then ++ compiler_lib_search_path_CXX="${prev}${p}" ++ else ++ compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" ++ fi ++ ;; ++ # The "-l" case would never come before the object being ++ # linked, so don't bother handling this case. ++ esac ++ else ++ if test -z "$postdeps_CXX"; then ++ postdeps_CXX="${prev}${p}" ++ else ++ postdeps_CXX="${postdeps_CXX} ${prev}${p}" ++ fi ++ fi ++ ;; ++ ++ *.$objext) ++ # This assumes that the test object file only shows up ++ # once in the compiler output. ++ if test "$p" = "conftest.$objext"; then ++ pre_test_object_deps_done=yes ++ continue ++ fi ++ ++ if test "$pre_test_object_deps_done" = no; then ++ if test -z "$predep_objects_CXX"; then ++ predep_objects_CXX="$p" ++ else ++ predep_objects_CXX="$predep_objects_CXX $p" ++ fi ++ else ++ if test -z "$postdep_objects_CXX"; then ++ postdep_objects_CXX="$p" ++ else ++ postdep_objects_CXX="$postdep_objects_CXX $p" ++ fi ++ fi ++ ;; ++ ++ *) ;; # Ignore the rest. ++ ++ esac ++ done ++ ++ # Clean up. ++ rm -f a.out a.exe ++else ++ echo "libtool.m4: error: problem compiling CXX test program" ++fi ++ ++$RM -f confest.$objext ++ ++# PORTME: override above test on systems where it is broken ++case $host_os in ++interix[3-9]*) ++ # Interix 3.5 installs completely hosed .la files for C++, so rather than ++ # hack all around it, let's just trust "g++" to DTRT. ++ predep_objects_CXX= ++ postdep_objects_CXX= ++ postdeps_CXX= ++ ;; ++ ++linux*) ++ case `$CC -V 2>&1 | sed 5q` in ++ *Sun\ C*) ++ # Sun C++ 5.9 ++ ++ # The more standards-conforming stlport4 library is ++ # incompatible with the Cstd library. Avoid specifying ++ # it if it's in CXXFLAGS. Ignore libCrun as ++ # -library=stlport4 depends on it. ++ case " $CXX $CXXFLAGS " in ++ *" -library=stlport4 "*) ++ solaris_use_stlport4=yes ++ ;; ++ esac ++ ++ if test "$solaris_use_stlport4" != yes; then ++ postdeps_CXX='-library=Cstd -library=Crun' ++ fi ++ ;; ++ esac ++ ;; ++ ++solaris*) ++ case $cc_basename in ++ CC*) ++ # The more standards-conforming stlport4 library is ++ # incompatible with the Cstd library. Avoid specifying ++ # it if it's in CXXFLAGS. Ignore libCrun as ++ # -library=stlport4 depends on it. ++ case " $CXX $CXXFLAGS " in ++ *" -library=stlport4 "*) ++ solaris_use_stlport4=yes ++ ;; ++ esac ++ ++ # Adding this requires a known-good setup of shared libraries for ++ # Sun compiler versions before 5.6, else PIC objects from an old ++ # archive will be linked into the output, leading to subtle bugs. ++ if test "$solaris_use_stlport4" != yes; then ++ postdeps_CXX='-library=Cstd -library=Crun' ++ fi ++ ;; ++ esac ++ ;; ++esac ++ ++ ++case " $postdeps_CXX " in ++*" -lc "*) archive_cmds_need_lc_CXX=no ;; ++esac ++ compiler_lib_search_dirs_CXX= ++if test -n "${compiler_lib_search_path_CXX}"; then ++ compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ lt_prog_compiler_wl_CXX= ++lt_prog_compiler_pic_CXX= ++lt_prog_compiler_static_CXX= ++ ++{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 ++echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } ++ ++ # C++ specific cases for pic, static, wl, etc. ++ if test "$GXX" = yes; then ++ lt_prog_compiler_wl_CXX='-Wl,' ++ lt_prog_compiler_static_CXX='-static' ++ ++ case $host_os in ++ aix*) ++ # All AIX code is PIC. ++ if test "$host_cpu" = ia64; then ++ # AIX 5 now supports IA64 processor ++ lt_prog_compiler_static_CXX='-Bstatic' ++ fi ++ ;; ++ ++ amigaos*) ++ case $host_cpu in ++ powerpc) ++ # see comment about AmigaOS4 .so support ++ lt_prog_compiler_pic_CXX='-fPIC' ++ ;; ++ m68k) ++ # FIXME: we need at least 68020 code to build shared libraries, but ++ # adding the `-m68020' flag to GCC prevents building anything better, ++ # like `-m68040'. ++ lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' ++ ;; ++ esac ++ ;; ++ ++ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) ++ # PIC is the default for these OSes. ++ ;; ++ mingw* | cygwin* | os2* | pw32* | cegcc*) ++ # This hack is so that the source file can tell whether it is being ++ # built for inclusion in a dll (and should export symbols for example). ++ # Although the cygwin gcc ignores -fPIC, still need this for old-style ++ # (--disable-auto-import) libraries ++ lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ++ ;; ++ darwin* | rhapsody*) ++ # PIC is the default on this platform ++ # Common symbols not allowed in MH_DYLIB files ++ lt_prog_compiler_pic_CXX='-fno-common' ++ ;; ++ *djgpp*) ++ # DJGPP does not support shared libraries at all ++ lt_prog_compiler_pic_CXX= ++ ;; ++ interix[3-9]*) ++ # Interix 3.x gcc -fpic/-fPIC options generate broken code. ++ # Instead, we relocate shared libraries at runtime. ++ ;; ++ sysv4*MP*) ++ if test -d /usr/nec; then ++ lt_prog_compiler_pic_CXX=-Kconform_pic ++ fi ++ ;; ++ hpux*) ++ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit ++ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag ++ # sets the default TLS model and affects inlining. ++ case $host_cpu in ++ hppa*64*) ++ ;; ++ *) ++ lt_prog_compiler_pic_CXX='-fPIC' ++ ;; ++ esac ++ ;; ++ *qnx* | *nto*) ++ # QNX uses GNU C++, but need to define -shared option too, otherwise ++ # it will coredump. ++ lt_prog_compiler_pic_CXX='-fPIC -shared' ++ ;; ++ *) ++ lt_prog_compiler_pic_CXX='-fPIC' ++ ;; ++ esac ++ else ++ case $host_os in ++ aix[4-9]*) ++ # All AIX code is PIC. ++ if test "$host_cpu" = ia64; then ++ # AIX 5 now supports IA64 processor ++ lt_prog_compiler_static_CXX='-Bstatic' ++ else ++ lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' ++ fi ++ ;; ++ chorus*) ++ case $cc_basename in ++ cxch68*) ++ # Green Hills C++ Compiler ++ # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ++ ;; ++ esac ++ ;; ++ dgux*) ++ case $cc_basename in ++ ec++*) ++ lt_prog_compiler_pic_CXX='-KPIC' ++ ;; ++ ghcx*) ++ # Green Hills C++ Compiler ++ lt_prog_compiler_pic_CXX='-pic' ++ ;; ++ *) ++ ;; ++ esac ++ ;; ++ freebsd* | dragonfly*) ++ # FreeBSD uses GNU C++ ++ ;; ++ hpux9* | hpux10* | hpux11*) ++ case $cc_basename in ++ CC*) ++ lt_prog_compiler_wl_CXX='-Wl,' ++ lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' ++ if test "$host_cpu" != ia64; then ++ lt_prog_compiler_pic_CXX='+Z' ++ fi ++ ;; ++ aCC*) ++ lt_prog_compiler_wl_CXX='-Wl,' ++ lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' ++ case $host_cpu in ++ hppa*64*|ia64*) ++ # +Z the default ++ ;; ++ *) ++ lt_prog_compiler_pic_CXX='+Z' ++ ;; ++ esac ++ ;; ++ *) ++ ;; ++ esac ++ ;; ++ interix*) ++ # This is c89, which is MS Visual C++ (no shared libs) ++ # Anyone wants to do a port? ++ ;; ++ irix5* | irix6* | nonstopux*) ++ case $cc_basename in ++ CC*) ++ lt_prog_compiler_wl_CXX='-Wl,' ++ lt_prog_compiler_static_CXX='-non_shared' ++ # CC pic flag -KPIC is the default. ++ ;; ++ *) ++ ;; ++ esac ++ ;; ++ linux* | k*bsd*-gnu) ++ case $cc_basename in ++ KCC*) ++ # KAI C++ Compiler ++ lt_prog_compiler_wl_CXX='--backend -Wl,' ++ lt_prog_compiler_pic_CXX='-fPIC' ++ ;; ++ ecpc* ) ++ # old Intel C++ for x86_64 which still supported -KPIC. ++ lt_prog_compiler_wl_CXX='-Wl,' ++ lt_prog_compiler_pic_CXX='-KPIC' ++ lt_prog_compiler_static_CXX='-static' ++ ;; ++ icpc* ) ++ # Intel C++, used to be incompatible with GCC. ++ # ICC 10 doesn't accept -KPIC any more. ++ lt_prog_compiler_wl_CXX='-Wl,' ++ lt_prog_compiler_pic_CXX='-fPIC' ++ lt_prog_compiler_static_CXX='-static' ++ ;; ++ pgCC* | pgcpp*) ++ # Portland Group C++ compiler ++ lt_prog_compiler_wl_CXX='-Wl,' ++ lt_prog_compiler_pic_CXX='-fpic' ++ lt_prog_compiler_static_CXX='-Bstatic' ++ ;; ++ cxx*) ++ # Compaq C++ ++ # Make sure the PIC flag is empty. It appears that all Alpha ++ # Linux and Compaq Tru64 Unix objects are PIC. ++ lt_prog_compiler_pic_CXX= ++ lt_prog_compiler_static_CXX='-non_shared' ++ ;; ++ xlc* | xlC*) ++ # IBM XL 8.0 on PPC ++ lt_prog_compiler_wl_CXX='-Wl,' ++ lt_prog_compiler_pic_CXX='-qpic' ++ lt_prog_compiler_static_CXX='-qstaticlink' ++ ;; ++ *) ++ case `$CC -V 2>&1 | sed 5q` in ++ *Sun\ C*) ++ # Sun C++ 5.9 ++ lt_prog_compiler_pic_CXX='-KPIC' ++ lt_prog_compiler_static_CXX='-Bstatic' ++ lt_prog_compiler_wl_CXX='-Qoption ld ' ++ ;; ++ esac ++ ;; ++ esac ++ ;; ++ lynxos*) ++ ;; ++ m88k*) ++ ;; ++ mvs*) ++ case $cc_basename in ++ cxx*) ++ lt_prog_compiler_pic_CXX='-W c,exportall' ++ ;; ++ *) ++ ;; ++ esac ++ ;; ++ netbsd*) ++ ;; ++ *qnx* | *nto*) ++ # QNX uses GNU C++, but need to define -shared option too, otherwise ++ # it will coredump. ++ lt_prog_compiler_pic_CXX='-fPIC -shared' ++ ;; ++ osf3* | osf4* | osf5*) ++ case $cc_basename in ++ KCC*) ++ lt_prog_compiler_wl_CXX='--backend -Wl,' ++ ;; ++ RCC*) ++ # Rational C++ 2.4.1 ++ lt_prog_compiler_pic_CXX='-pic' ++ ;; ++ cxx*) ++ # Digital/Compaq C++ ++ lt_prog_compiler_wl_CXX='-Wl,' ++ # Make sure the PIC flag is empty. It appears that all Alpha ++ # Linux and Compaq Tru64 Unix objects are PIC. ++ lt_prog_compiler_pic_CXX= ++ lt_prog_compiler_static_CXX='-non_shared' ++ ;; ++ *) ++ ;; ++ esac ++ ;; ++ psos*) ++ ;; ++ solaris*) ++ case $cc_basename in ++ CC*) ++ # Sun C++ 4.2, 5.x and Centerline C++ ++ lt_prog_compiler_pic_CXX='-KPIC' ++ lt_prog_compiler_static_CXX='-Bstatic' ++ lt_prog_compiler_wl_CXX='-Qoption ld ' ++ ;; ++ gcx*) ++ # Green Hills C++ Compiler ++ lt_prog_compiler_pic_CXX='-PIC' ++ ;; ++ *) ++ ;; ++ esac ++ ;; ++ sunos4*) ++ case $cc_basename in ++ CC*) ++ # Sun C++ 4.x ++ lt_prog_compiler_pic_CXX='-pic' ++ lt_prog_compiler_static_CXX='-Bstatic' ++ ;; ++ lcc*) ++ # Lucid ++ lt_prog_compiler_pic_CXX='-pic' ++ ;; ++ *) ++ ;; ++ esac ++ ;; ++ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) ++ case $cc_basename in ++ CC*) ++ lt_prog_compiler_wl_CXX='-Wl,' ++ lt_prog_compiler_pic_CXX='-KPIC' ++ lt_prog_compiler_static_CXX='-Bstatic' ++ ;; ++ esac ++ ;; ++ tandem*) ++ case $cc_basename in ++ NCC*) ++ # NonStop-UX NCC 3.20 ++ lt_prog_compiler_pic_CXX='-KPIC' ++ ;; ++ *) ++ ;; ++ esac ++ ;; ++ vxworks*) ++ ;; ++ *) ++ lt_prog_compiler_can_build_shared_CXX=no ++ ;; ++ esac ++ fi ++ ++case $host_os in ++ # For platforms which do not support PIC, -DPIC is meaningless: ++ *djgpp*) ++ lt_prog_compiler_pic_CXX= ++ ;; ++ *) ++ lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC" ++ ;; ++esac ++{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 ++echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } ++ ++ ++ ++# ++# Check to make sure the PIC flag actually works. ++# ++if test -n "$lt_prog_compiler_pic_CXX"; then ++ { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 ++echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_pic_works_CXX=no ++ ac_outfile=conftest.$ac_objext ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ # The option is referenced via a variable to avoid confusing sed. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>conftest.err) ++ ac_status=$? ++ cat conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s "$ac_outfile"; then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings other than the usual output. ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp ++ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 ++ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_pic_works_CXX=yes ++ fi ++ fi ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; } ++ ++if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then ++ case $lt_prog_compiler_pic_CXX in ++ "" | " "*) ;; ++ *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; ++ esac ++else ++ lt_prog_compiler_pic_CXX= ++ lt_prog_compiler_can_build_shared_CXX=no ++fi ++ ++fi ++ ++ ++ ++# ++# Check to make sure the static flag actually works. ++# ++wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" ++{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 ++echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_static_works_CXX=no ++ save_LDFLAGS="$LDFLAGS" ++ LDFLAGS="$LDFLAGS $lt_tmp_static_flag" ++ echo "$lt_simple_link_test_code" > conftest.$ac_ext ++ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then ++ # The linker can only warn and ignore the option if not recognized ++ # So say no if there are warnings ++ if test -s conftest.err; then ++ # Append any errors to the config.log. ++ cat conftest.err 1>&5 ++ $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp ++ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 ++ if diff conftest.exp conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_static_works_CXX=yes ++ fi ++ else ++ lt_cv_prog_compiler_static_works_CXX=yes ++ fi ++ fi ++ $RM -r conftest* ++ LDFLAGS="$save_LDFLAGS" ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; } ++ ++if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then ++ : ++else ++ lt_prog_compiler_static_CXX= ++fi ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 ++echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_c_o_CXX=no ++ $RM -r conftest 2>/dev/null ++ mkdir conftest ++ cd conftest ++ mkdir out ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ ++ lt_compiler_flag="-o out/conftest2.$ac_objext" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>out/conftest.err) ++ ac_status=$? ++ cat out/conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s out/conftest2.$ac_objext ++ then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp ++ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 ++ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_c_o_CXX=yes ++ fi ++ fi ++ chmod u+w . 2>&5 ++ $RM conftest* ++ # SGI C++ compiler will create directory out/ii_files/ for ++ # template instantiation ++ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files ++ $RM out/* && rmdir out ++ cd .. ++ $RM -r conftest ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 ++echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_c_o_CXX=no ++ $RM -r conftest 2>/dev/null ++ mkdir conftest ++ cd conftest ++ mkdir out ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ ++ lt_compiler_flag="-o out/conftest2.$ac_objext" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>out/conftest.err) ++ ac_status=$? ++ cat out/conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s out/conftest2.$ac_objext ++ then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp ++ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 ++ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_c_o_CXX=yes ++ fi ++ fi ++ chmod u+w . 2>&5 ++ $RM conftest* ++ # SGI C++ compiler will create directory out/ii_files/ for ++ # template instantiation ++ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files ++ $RM out/* && rmdir out ++ cd .. ++ $RM -r conftest ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } ++ ++ ++ ++ ++hard_links="nottested" ++if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then ++ # do not overwrite the value of need_locks provided by the user ++ { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 ++echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } ++ hard_links=yes ++ $RM conftest* ++ ln conftest.a conftest.b 2>/dev/null && hard_links=no ++ touch conftest.a ++ ln conftest.a conftest.b 2>&5 || hard_links=no ++ ln conftest.a conftest.b 2>/dev/null && hard_links=no ++ { echo "$as_me:$LINENO: result: $hard_links" >&5 ++echo "${ECHO_T}$hard_links" >&6; } ++ if test "$hard_links" = no; then ++ { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 ++echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} ++ need_locks=warn ++ fi ++else ++ need_locks=no ++fi ++ ++ ++ ++ { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 ++echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } ++ ++ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ++ case $host_os in ++ aix[4-9]*) ++ # If we're using GNU nm, then we don't want the "-C" option. ++ # -C means demangle to AIX nm, but means don't demangle with GNU nm ++ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then ++ export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' ++ else ++ export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' ++ fi ++ ;; ++ pw32*) ++ export_symbols_cmds_CXX="$ltdll_cmds" ++ ;; ++ cygwin* | mingw* | cegcc*) ++ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' ++ ;; ++ *) ++ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ++ ;; ++ esac ++ exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' ++ ++{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 ++echo "${ECHO_T}$ld_shlibs_CXX" >&6; } ++test "$ld_shlibs_CXX" = no && can_build_shared=no ++ ++with_gnu_ld_CXX=$with_gnu_ld ++ ++ ++ ++ ++ ++ ++# ++# Do we need to explicitly link libc? ++# ++case "x$archive_cmds_need_lc_CXX" in ++x|xyes) ++ # Assume -lc should be added ++ archive_cmds_need_lc_CXX=yes ++ ++ if test "$enable_shared" = yes && test "$GCC" = yes; then ++ case $archive_cmds_CXX in ++ *'~'*) ++ # FIXME: we may have to deal with multi-command sequences. ++ ;; ++ '$CC '*) ++ # Test whether the compiler implicitly links with -lc since on some ++ # systems, -lgcc has to come before -lc. If gcc already passes -lc ++ # to ld, don't add -lc before -lgcc. ++ { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 ++echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } ++ $RM conftest* ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ ++ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } 2>conftest.err; then ++ soname=conftest ++ lib=conftest ++ libobjs=conftest.$ac_objext ++ deplibs= ++ wl=$lt_prog_compiler_wl_CXX ++ pic_flag=$lt_prog_compiler_pic_CXX ++ compiler_flags=-v ++ linker_flags=-v ++ verstring= ++ output_objdir=. ++ libname=conftest ++ lt_save_allow_undefined_flag=$allow_undefined_flag_CXX ++ allow_undefined_flag_CXX= ++ if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 ++ (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++ then ++ archive_cmds_need_lc_CXX=no ++ else ++ archive_cmds_need_lc_CXX=yes ++ fi ++ allow_undefined_flag_CXX=$lt_save_allow_undefined_flag ++ else ++ cat conftest.err 1>&5 ++ fi ++ $RM conftest* ++ { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 ++echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } ++ ;; ++ esac ++ fi ++ ;; ++esac ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 ++echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } ++ ++library_names_spec= ++libname_spec='lib$name' ++soname_spec= ++shrext_cmds=".so" ++postinstall_cmds= ++postuninstall_cmds= ++finish_cmds= ++finish_eval= ++shlibpath_var= ++shlibpath_overrides_runpath=unknown ++version_type=none ++dynamic_linker="$host_os ld.so" ++sys_lib_dlsearch_path_spec="/lib /usr/lib" ++need_lib_prefix=unknown ++hardcode_into_libs=no ++ ++# when you set need_version to no, make sure it does not cause -set_version ++# flags to be left without arguments ++need_version=unknown ++ ++case $host_os in ++aix3*) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' ++ shlibpath_var=LIBPATH ++ ++ # AIX 3 has no versioning support, so we append a major version to the name. ++ soname_spec='${libname}${release}${shared_ext}$major' ++ ;; ++ ++aix[4-9]*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ hardcode_into_libs=yes ++ if test "$host_cpu" = ia64; then ++ # AIX 5 supports IA64 ++ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ else ++ # With GCC up to 2.95.x, collect2 would create an import file ++ # for dependence libraries. The import file would start with ++ # the line `#! .'. This would cause the generated library to ++ # depend on `.', always an invalid library. This was fixed in ++ # development snapshots of GCC prior to 3.0. ++ case $host_os in ++ aix4 | aix4.[01] | aix4.[01].*) ++ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' ++ echo ' yes ' ++ echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then ++ : ++ else ++ can_build_shared=no ++ fi ++ ;; ++ esac ++ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct ++ # soname into executable. Probably we can add versioning support to ++ # collect2, so additional links can be useful in future. ++ if test "$aix_use_runtimelinking" = yes; then ++ # If using run time linking (on AIX 4.2 or later) use lib.so ++ # instead of lib.a to let people know that these are not ++ # typical AIX shared libraries. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ else ++ # We preserve .a as extension for shared libraries through AIX4.2 ++ # and later when we are not doing run time linking. ++ library_names_spec='${libname}${release}.a $libname.a' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ fi ++ shlibpath_var=LIBPATH ++ fi ++ ;; ++ ++amigaos*) ++ case $host_cpu in ++ powerpc) ++ # Since July 2007 AmigaOS4 officially supports .so libraries. ++ # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ ;; ++ m68k) ++ library_names_spec='$libname.ixlibrary $libname.a' ++ # Create ${libname}_ixlibrary.a entries in /sys/libs. ++ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ++ ;; ++ esac ++ ;; ++ ++beos*) ++ library_names_spec='${libname}${shared_ext}' ++ dynamic_linker="$host_os ld.so" ++ shlibpath_var=LIBRARY_PATH ++ ;; ++ ++bsdi[45]*) ++ version_type=linux ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" ++ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" ++ # the default ld.so.conf also contains /usr/contrib/lib and ++ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow ++ # libtool to hard-code these into programs ++ ;; ++ ++cygwin* | mingw* | pw32* | cegcc*) ++ version_type=windows ++ shrext_cmds=".dll" ++ need_version=no ++ need_lib_prefix=no ++ ++ case $GCC,$host_os in ++ yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ library_names_spec='$libname.dll.a' ++ # DLL is installed to $(libdir)/../bin by postinstall_cmds ++ postinstall_cmds='base_file=`basename \${file}`~ ++ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ ++ dldir=$destdir/`dirname \$dlpath`~ ++ test -d \$dldir || mkdir -p \$dldir~ ++ $install_prog $dir/$dlname \$dldir/$dlname~ ++ chmod a+x \$dldir/$dlname~ ++ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then ++ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; ++ fi' ++ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ ++ dlpath=$dir/\$dldll~ ++ $RM \$dlpath' ++ shlibpath_overrides_runpath=yes ++ ++ case $host_os in ++ cygwin*) ++ # Cygwin DLLs use 'cyg' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ++ ;; ++ mingw* | cegcc*) ++ # MinGW DLLs use traditional 'lib' prefix ++ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` ++ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then ++ # It is most probably a Windows format PATH printed by ++ # mingw gcc, but we are running on Cygwin. Gcc prints its search ++ # path with ; separators, and with drive letters. We can handle the ++ # drive letters (cygwin fileutils understands them), so leave them, ++ # especially as we might pass files found there to a mingw objdump, ++ # which wouldn't understand a cygwinified path. Ahh. ++ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` ++ else ++ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ++ fi ++ ;; ++ pw32*) ++ # pw32 DLLs use 'pw' prefix rather than 'lib' ++ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ;; ++ esac ++ ;; ++ ++ *) ++ library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ++ ;; ++ esac ++ dynamic_linker='Win32 ld.exe' ++ # FIXME: first we should search . and the directory the executable is in ++ shlibpath_var=PATH ++ ;; ++ ++darwin* | rhapsody*) ++ dynamic_linker="$host_os dyld" ++ version_type=darwin ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' ++ soname_spec='${libname}${release}${major}$shared_ext' ++ shlibpath_overrides_runpath=yes ++ shlibpath_var=DYLD_LIBRARY_PATH ++ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' ++ ++ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ++ ;; ++ ++dgux*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ ;; ++ ++freebsd1*) ++ dynamic_linker=no ++ ;; ++ ++freebsd* | dragonfly*) ++ # DragonFly does not have aout. When/if they implement a new ++ # versioning mechanism, adjust this. ++ if test -x /usr/bin/objformat; then ++ objformat=`/usr/bin/objformat` ++ else ++ case $host_os in ++ freebsd[123]*) objformat=aout ;; ++ *) objformat=elf ;; ++ esac ++ fi ++ version_type=freebsd-$objformat ++ case $version_type in ++ freebsd-elf*) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' ++ need_version=no ++ need_lib_prefix=no ++ ;; ++ freebsd-*) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' ++ need_version=yes ++ ;; ++ esac ++ shlibpath_var=LD_LIBRARY_PATH ++ case $host_os in ++ freebsd2*) ++ shlibpath_overrides_runpath=yes ++ ;; ++ freebsd3.[01]* | freebsdelf3.[01]*) ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ ;; ++ freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ ++ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ ;; ++ *) # from 4.6 on, and DragonFly ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ ;; ++ esac ++ ;; ++ ++gnu*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ hardcode_into_libs=yes ++ ;; ++ ++hpux9* | hpux10* | hpux11*) ++ # Give a soname corresponding to the major version so that dld.sl refuses to ++ # link against other versions. ++ version_type=sunos ++ need_lib_prefix=no ++ need_version=no ++ case $host_cpu in ++ ia64*) ++ shrext_cmds='.so' ++ hardcode_into_libs=yes ++ dynamic_linker="$host_os dld.so" ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ if test "X$HPUX_IA64_MODE" = X32; then ++ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" ++ else ++ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" ++ fi ++ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ++ ;; ++ hppa*64*) ++ shrext_cmds='.sl' ++ hardcode_into_libs=yes ++ dynamic_linker="$host_os dld.sl" ++ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH ++ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" ++ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ++ ;; ++ *) ++ shrext_cmds='.sl' ++ dynamic_linker="$host_os dld.sl" ++ shlibpath_var=SHLIB_PATH ++ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ ;; ++ esac ++ # HP-UX runs *really* slowly unless shared libraries are mode 555. ++ postinstall_cmds='chmod 555 $lib' ++ ;; ++ ++interix[3-9]*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ ;; ++ ++irix5* | irix6* | nonstopux*) ++ case $host_os in ++ nonstopux*) version_type=nonstopux ;; ++ *) ++ if test "$lt_cv_prog_gnu_ld" = yes; then ++ version_type=linux ++ else ++ version_type=irix ++ fi ;; ++ esac ++ need_lib_prefix=no ++ need_version=no ++ soname_spec='${libname}${release}${shared_ext}$major' ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' ++ case $host_os in ++ irix5* | nonstopux*) ++ libsuff= shlibsuff= ++ ;; ++ *) ++ case $LD in # libtool.m4 will add one of these switches to LD ++ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") ++ libsuff= shlibsuff= libmagic=32-bit;; ++ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") ++ libsuff=32 shlibsuff=N32 libmagic=N32;; ++ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") ++ libsuff=64 shlibsuff=64 libmagic=64-bit;; ++ *) libsuff= shlibsuff= libmagic=never-match;; ++ esac ++ ;; ++ esac ++ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH ++ shlibpath_overrides_runpath=no ++ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" ++ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" ++ hardcode_into_libs=yes ++ ;; ++ ++# No shared lib support for Linux oldld, aout, or coff. ++linux*oldld* | linux*aout* | linux*coff*) ++ dynamic_linker=no ++ ;; ++ ++# This must be Linux ELF. ++linux* | k*bsd*-gnu) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ # Some binutils ld are patched to set DT_RUNPATH ++ save_LDFLAGS=$LDFLAGS ++ save_libdir=$libdir ++ eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ ++ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then ++ shlibpath_overrides_runpath=yes ++fi ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LDFLAGS=$save_LDFLAGS ++ libdir=$save_libdir ++ ++ # This implies no fast_install, which is unacceptable. ++ # Some rework will be needed to allow for fast_install ++ # before this can be enabled. ++ hardcode_into_libs=yes ++ ++ # Append ld.so.conf contents to the search path ++ if test -f /etc/ld.so.conf; then ++ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` ++ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" ++ fi ++ ++ # We used to test for /lib/ld.so.1 and disable shared libraries on ++ # powerpc, because MkLinux only supported shared libraries with the ++ # GNU dynamic linker. Since this was broken with cross compilers, ++ # most powerpc-linux boxes support dynamic linking these days and ++ # people can always --disable-shared, the test was removed, and we ++ # assume the GNU/Linux dynamic linker is in use. ++ dynamic_linker='GNU/Linux ld.so' ++ ;; ++ ++netbsd*) ++ version_type=sunos ++ need_lib_prefix=no ++ need_version=no ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ++ dynamic_linker='NetBSD (a.out) ld.so' ++ else ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ dynamic_linker='NetBSD ld.elf_so' ++ fi ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ ;; ++ ++newsos6) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ ;; ++ ++*nto* | *qnx*) ++ version_type=qnx ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ dynamic_linker='ldqnx.so' ++ ;; ++ ++openbsd*) ++ version_type=sunos ++ sys_lib_dlsearch_path_spec="/usr/lib" ++ need_lib_prefix=no ++ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. ++ case $host_os in ++ openbsd3.3 | openbsd3.3.*) need_version=yes ;; ++ *) need_version=no ;; ++ esac ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ++ case $host_os in ++ openbsd2.[89] | openbsd2.[89].*) ++ shlibpath_overrides_runpath=no ++ ;; ++ *) ++ shlibpath_overrides_runpath=yes ++ ;; ++ esac ++ else ++ shlibpath_overrides_runpath=yes ++ fi ++ ;; ++ ++os2*) ++ libname_spec='$name' ++ shrext_cmds=".dll" ++ need_lib_prefix=no ++ library_names_spec='$libname${shared_ext} $libname.a' ++ dynamic_linker='OS/2 ld.exe' ++ shlibpath_var=LIBPATH ++ ;; ++ ++osf3* | osf4* | osf5*) ++ version_type=osf ++ need_lib_prefix=no ++ need_version=no ++ soname_spec='${libname}${release}${shared_ext}$major' ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" ++ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ++ ;; ++ ++rdos*) ++ dynamic_linker=no ++ ;; ++ ++solaris*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ # ldd complains unless libraries are executable ++ postinstall_cmds='chmod +x $lib' ++ ;; ++ ++sunos4*) ++ version_type=sunos ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ++ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ if test "$with_gnu_ld" = yes; then ++ need_lib_prefix=no ++ fi ++ need_version=yes ++ ;; ++ ++sysv4 | sysv4.3*) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ case $host_vendor in ++ sni) ++ shlibpath_overrides_runpath=no ++ need_lib_prefix=no ++ runpath_var=LD_RUN_PATH ++ ;; ++ siemens) ++ need_lib_prefix=no ++ ;; ++ motorola) ++ need_lib_prefix=no ++ need_version=no ++ shlibpath_overrides_runpath=no ++ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ++ ;; ++ esac ++ ;; ++ ++sysv4*MP*) ++ if test -d /usr/nec ;then ++ version_type=linux ++ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' ++ soname_spec='$libname${shared_ext}.$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ fi ++ ;; ++ ++sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) ++ version_type=freebsd-elf ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ if test "$with_gnu_ld" = yes; then ++ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' ++ else ++ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' ++ case $host_os in ++ sco3.2v5*) ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ++ ;; ++ esac ++ fi ++ sys_lib_dlsearch_path_spec='/usr/lib' ++ ;; ++ ++tpf*) ++ # TPF is a cross-target only. Preferred cross-host = GNU/Linux. ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ ;; ++ ++uts4*) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ ;; ++ ++*) ++ dynamic_linker=no ++ ;; ++esac ++{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 ++echo "${ECHO_T}$dynamic_linker" >&6; } ++test "$dynamic_linker" = no && can_build_shared=no ++ ++variables_saved_for_relink="PATH $shlibpath_var $runpath_var" ++if test "$GCC" = yes; then ++ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" ++fi ++ ++if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then ++ sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" ++fi ++if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then ++ sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 ++echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } ++hardcode_action_CXX= ++if test -n "$hardcode_libdir_flag_spec_CXX" || ++ test -n "$runpath_var_CXX" || ++ test "X$hardcode_automatic_CXX" = "Xyes" ; then ++ ++ # We can hardcode non-existent directories. ++ if test "$hardcode_direct_CXX" != no && ++ # If the only mechanism to avoid hardcoding is shlibpath_var, we ++ # have to relink, otherwise we might link with an installed library ++ # when we should be linking with a yet-to-be-installed one ++ ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && ++ test "$hardcode_minus_L_CXX" != no; then ++ # Linking always hardcodes the temporary library directory. ++ hardcode_action_CXX=relink ++ else ++ # We can link without hardcoding, and we can hardcode nonexisting dirs. ++ hardcode_action_CXX=immediate ++ fi ++else ++ # We cannot hardcode anything, or else we can only hardcode existing ++ # directories. ++ hardcode_action_CXX=unsupported ++fi ++{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 ++echo "${ECHO_T}$hardcode_action_CXX" >&6; } ++ ++if test "$hardcode_action_CXX" = relink || ++ test "$inherit_rpath_CXX" = yes; then ++ # Fast installation is not supported ++ enable_fast_install=no ++elif test "$shlibpath_overrides_runpath" = yes || ++ test "$enable_shared" = no; then ++ # Fast installation is not necessary ++ enable_fast_install=needless ++fi ++ ++ ++ ++ ++ ++ ++ ++ fi # test -n "$compiler" ++ ++ CC=$lt_save_CC ++ LDCXX=$LD ++ LD=$lt_save_LD ++ GCC=$lt_save_GCC ++ with_gnu_ld=$lt_save_with_gnu_ld ++ lt_cv_path_LDCXX=$lt_cv_path_LD ++ lt_cv_path_LD=$lt_save_path_LD ++ lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld ++ lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld ++fi # test "$_lt_caught_CXX_error" != yes ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ ++ ac_ext=f ++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_f77_compiler_gnu ++ ++ ++archive_cmds_need_lc_F77=no ++allow_undefined_flag_F77= ++always_export_symbols_F77=no ++archive_expsym_cmds_F77= ++export_dynamic_flag_spec_F77= ++hardcode_direct_F77=no ++hardcode_direct_absolute_F77=no ++hardcode_libdir_flag_spec_F77= ++hardcode_libdir_flag_spec_ld_F77= ++hardcode_libdir_separator_F77= ++hardcode_minus_L_F77=no ++hardcode_automatic_F77=no ++inherit_rpath_F77=no ++module_cmds_F77= ++module_expsym_cmds_F77= ++link_all_deplibs_F77=unknown ++old_archive_cmds_F77=$old_archive_cmds ++no_undefined_flag_F77= ++whole_archive_flag_spec_F77= ++enable_shared_with_static_runtimes_F77=no ++ ++# Source file extension for f77 test sources. ++ac_ext=f ++ ++# Object file extension for compiled f77 test sources. ++objext=o ++objext_F77=$objext ++ ++# No sense in running all these tests if we already determined that ++# the F77 compiler isn't working. Some variables (like enable_shared) ++# are currently assumed to apply to all compilers on this platform, ++# and will be corrupted by setting them based on a non-working compiler. ++if test "$_lt_disable_F77" != yes; then ++ # Code to be used in simple compile tests ++ lt_simple_compile_test_code="\ ++ subroutine t ++ return ++ end ++" ++ ++ # Code to be used in simple link tests ++ lt_simple_link_test_code="\ ++ program t ++ end ++" ++ ++ # ltmain only uses $CC for tagged configurations so make sure $CC is set. ++ ++ ++ ++ ++ ++ ++# If no C compiler was specified, use CC. ++LTCC=${LTCC-"$CC"} ++ ++# If no C compiler flags were specified, use CFLAGS. ++LTCFLAGS=${LTCFLAGS-"$CFLAGS"} ++ ++# Allow CC to be a program name with arguments. ++compiler=$CC ++ ++ ++ # save warnings/boilerplate of simple test code ++ ac_outfile=conftest.$ac_objext ++echo "$lt_simple_compile_test_code" >conftest.$ac_ext ++eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err ++_lt_compiler_boilerplate=`cat conftest.err` ++$RM conftest* ++ ++ ac_outfile=conftest.$ac_objext ++echo "$lt_simple_link_test_code" >conftest.$ac_ext ++eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err ++_lt_linker_boilerplate=`cat conftest.err` ++$RM -r conftest* ++ ++ ++ # Allow CC to be a program name with arguments. ++ lt_save_CC="$CC" ++ lt_save_GCC=$GCC ++ CC=${F77-"f77"} ++ compiler=$CC ++ compiler_F77=$CC ++ for cc_temp in $compiler""; do ++ case $cc_temp in ++ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; ++ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; ++ \-*) ;; ++ *) break;; ++ esac ++done ++cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` ++ ++ GCC=$G77 ++ if test -n "$compiler"; then ++ { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 ++echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $can_build_shared" >&5 ++echo "${ECHO_T}$can_build_shared" >&6; } ++ ++ { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 ++echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } ++ test "$can_build_shared" = "no" && enable_shared=no ++ ++ # On AIX, shared libraries and static libraries use the same namespace, and ++ # are all built from PIC. ++ case $host_os in ++ aix3*) ++ test "$enable_shared" = yes && enable_static=no ++ if test -n "$RANLIB"; then ++ archive_cmds="$archive_cmds~\$RANLIB \$lib" ++ postinstall_cmds='$RANLIB $lib' ++ fi ++ ;; ++ aix[4-9]*) ++ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then ++ test "$enable_shared" = yes && enable_static=no ++ fi ++ ;; ++ esac ++ { echo "$as_me:$LINENO: result: $enable_shared" >&5 ++echo "${ECHO_T}$enable_shared" >&6; } ++ ++ { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 ++echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } ++ # Make sure either enable_shared or enable_static is yes. ++ test "$enable_shared" = yes || enable_static=yes ++ { echo "$as_me:$LINENO: result: $enable_static" >&5 ++echo "${ECHO_T}$enable_static" >&6; } ++ ++ GCC_F77="$G77" ++ LD_F77="$LD" ++ ++ ## CAVEAT EMPTOR: ++ ## There is no encapsulation within the following macros, do not change ++ ## the running order or otherwise move them around unless you know exactly ++ ## what you are doing... ++ lt_prog_compiler_wl_F77= ++lt_prog_compiler_pic_F77= ++lt_prog_compiler_static_F77= ++ ++{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 ++echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } ++ ++ if test "$GCC" = yes; then ++ lt_prog_compiler_wl_F77='-Wl,' ++ lt_prog_compiler_static_F77='-static' ++ ++ case $host_os in ++ aix*) ++ # All AIX code is PIC. ++ if test "$host_cpu" = ia64; then ++ # AIX 5 now supports IA64 processor ++ lt_prog_compiler_static_F77='-Bstatic' ++ fi ++ ;; ++ ++ amigaos*) ++ case $host_cpu in ++ powerpc) ++ # see comment about AmigaOS4 .so support ++ lt_prog_compiler_pic_F77='-fPIC' ++ ;; ++ m68k) ++ # FIXME: we need at least 68020 code to build shared libraries, but ++ # adding the `-m68020' flag to GCC prevents building anything better, ++ # like `-m68040'. ++ lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' ++ ;; ++ esac ++ ;; ++ ++ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) ++ # PIC is the default for these OSes. ++ ;; ++ ++ mingw* | cygwin* | pw32* | os2* | cegcc*) ++ # This hack is so that the source file can tell whether it is being ++ # built for inclusion in a dll (and should export symbols for example). ++ # Although the cygwin gcc ignores -fPIC, still need this for old-style ++ # (--disable-auto-import) libraries ++ lt_prog_compiler_pic_F77='-DDLL_EXPORT' ++ ;; ++ ++ darwin* | rhapsody*) ++ # PIC is the default on this platform ++ # Common symbols not allowed in MH_DYLIB files ++ lt_prog_compiler_pic_F77='-fno-common' ++ ;; ++ ++ hpux*) ++ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit ++ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag ++ # sets the default TLS model and affects inlining. ++ case $host_cpu in ++ hppa*64*) ++ # +Z the default ++ ;; ++ *) ++ lt_prog_compiler_pic_F77='-fPIC' ++ ;; ++ esac ++ ;; ++ ++ interix[3-9]*) ++ # Interix 3.x gcc -fpic/-fPIC options generate broken code. ++ # Instead, we relocate shared libraries at runtime. ++ ;; ++ ++ msdosdjgpp*) ++ # Just because we use GCC doesn't mean we suddenly get shared libraries ++ # on systems that don't support them. ++ lt_prog_compiler_can_build_shared_F77=no ++ enable_shared=no ++ ;; ++ ++ *nto* | *qnx*) ++ # QNX uses GNU C++, but need to define -shared option too, otherwise ++ # it will coredump. ++ lt_prog_compiler_pic_F77='-fPIC -shared' ++ ;; ++ ++ sysv4*MP*) ++ if test -d /usr/nec; then ++ lt_prog_compiler_pic_F77=-Kconform_pic ++ fi ++ ;; ++ ++ *) ++ lt_prog_compiler_pic_F77='-fPIC' ++ ;; ++ esac ++ else ++ # PORTME Check for flag to pass linker flags through the system compiler. ++ case $host_os in ++ aix*) ++ lt_prog_compiler_wl_F77='-Wl,' ++ if test "$host_cpu" = ia64; then ++ # AIX 5 now supports IA64 processor ++ lt_prog_compiler_static_F77='-Bstatic' ++ else ++ lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' ++ fi ++ ;; ++ ++ mingw* | cygwin* | pw32* | os2* | cegcc*) ++ # This hack is so that the source file can tell whether it is being ++ # built for inclusion in a dll (and should export symbols for example). ++ lt_prog_compiler_pic_F77='-DDLL_EXPORT' ++ ;; ++ ++ hpux9* | hpux10* | hpux11*) ++ lt_prog_compiler_wl_F77='-Wl,' ++ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but ++ # not for PA HP-UX. ++ case $host_cpu in ++ hppa*64*|ia64*) ++ # +Z the default ++ ;; ++ *) ++ lt_prog_compiler_pic_F77='+Z' ++ ;; ++ esac ++ # Is there a better lt_prog_compiler_static that works with the bundled CC? ++ lt_prog_compiler_static_F77='${wl}-a ${wl}archive' ++ ;; ++ ++ irix5* | irix6* | nonstopux*) ++ lt_prog_compiler_wl_F77='-Wl,' ++ # PIC (with -KPIC) is the default. ++ lt_prog_compiler_static_F77='-non_shared' ++ ;; ++ ++ linux* | k*bsd*-gnu) ++ case $cc_basename in ++ # old Intel for x86_64 which still supported -KPIC. ++ ecc*) ++ lt_prog_compiler_wl_F77='-Wl,' ++ lt_prog_compiler_pic_F77='-KPIC' ++ lt_prog_compiler_static_F77='-static' ++ ;; ++ # icc used to be incompatible with GCC. ++ # ICC 10 doesn't accept -KPIC any more. ++ icc* | ifort*) ++ lt_prog_compiler_wl_F77='-Wl,' ++ lt_prog_compiler_pic_F77='-fPIC' ++ lt_prog_compiler_static_F77='-static' ++ ;; ++ # Lahey Fortran 8.1. ++ lf95*) ++ lt_prog_compiler_wl_F77='-Wl,' ++ lt_prog_compiler_pic_F77='--shared' ++ lt_prog_compiler_static_F77='--static' ++ ;; ++ pgcc* | pgf77* | pgf90* | pgf95*) ++ # Portland Group compilers (*not* the Pentium gcc compiler, ++ # which looks to be a dead project) ++ lt_prog_compiler_wl_F77='-Wl,' ++ lt_prog_compiler_pic_F77='-fpic' ++ lt_prog_compiler_static_F77='-Bstatic' ++ ;; ++ ccc*) ++ lt_prog_compiler_wl_F77='-Wl,' ++ # All Alpha code is PIC. ++ lt_prog_compiler_static_F77='-non_shared' ++ ;; ++ xl*) ++ # IBM XL C 8.0/Fortran 10.1 on PPC ++ lt_prog_compiler_wl_F77='-Wl,' ++ lt_prog_compiler_pic_F77='-qpic' ++ lt_prog_compiler_static_F77='-qstaticlink' ++ ;; ++ *) ++ case `$CC -V 2>&1 | sed 5q` in ++ *Sun\ F* | *Sun*Fortran*) ++ # Sun Fortran 8.3 passes all unrecognized flags to the linker ++ lt_prog_compiler_pic_F77='-KPIC' ++ lt_prog_compiler_static_F77='-Bstatic' ++ lt_prog_compiler_wl_F77='' ++ ;; ++ *Sun\ C*) ++ # Sun C 5.9 ++ lt_prog_compiler_pic_F77='-KPIC' ++ lt_prog_compiler_static_F77='-Bstatic' ++ lt_prog_compiler_wl_F77='-Wl,' ++ ;; ++ esac ++ ;; ++ esac ++ ;; ++ ++ newsos6) ++ lt_prog_compiler_pic_F77='-KPIC' ++ lt_prog_compiler_static_F77='-Bstatic' ++ ;; ++ ++ *nto* | *qnx*) ++ # QNX uses GNU C++, but need to define -shared option too, otherwise ++ # it will coredump. ++ lt_prog_compiler_pic_F77='-fPIC -shared' ++ ;; ++ ++ osf3* | osf4* | osf5*) ++ lt_prog_compiler_wl_F77='-Wl,' ++ # All OSF/1 code is PIC. ++ lt_prog_compiler_static_F77='-non_shared' ++ ;; ++ ++ rdos*) ++ lt_prog_compiler_static_F77='-non_shared' ++ ;; ++ ++ solaris*) ++ lt_prog_compiler_pic_F77='-KPIC' ++ lt_prog_compiler_static_F77='-Bstatic' ++ case $cc_basename in ++ f77* | f90* | f95*) ++ lt_prog_compiler_wl_F77='-Qoption ld ';; ++ *) ++ lt_prog_compiler_wl_F77='-Wl,';; ++ esac ++ ;; ++ ++ sunos4*) ++ lt_prog_compiler_wl_F77='-Qoption ld ' ++ lt_prog_compiler_pic_F77='-PIC' ++ lt_prog_compiler_static_F77='-Bstatic' ++ ;; ++ ++ sysv4 | sysv4.2uw2* | sysv4.3*) ++ lt_prog_compiler_wl_F77='-Wl,' ++ lt_prog_compiler_pic_F77='-KPIC' ++ lt_prog_compiler_static_F77='-Bstatic' ++ ;; ++ ++ sysv4*MP*) ++ if test -d /usr/nec ;then ++ lt_prog_compiler_pic_F77='-Kconform_pic' ++ lt_prog_compiler_static_F77='-Bstatic' ++ fi ++ ;; ++ ++ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) ++ lt_prog_compiler_wl_F77='-Wl,' ++ lt_prog_compiler_pic_F77='-KPIC' ++ lt_prog_compiler_static_F77='-Bstatic' ++ ;; ++ ++ unicos*) ++ lt_prog_compiler_wl_F77='-Wl,' ++ lt_prog_compiler_can_build_shared_F77=no ++ ;; ++ ++ uts4*) ++ lt_prog_compiler_pic_F77='-pic' ++ lt_prog_compiler_static_F77='-Bstatic' ++ ;; ++ ++ *) ++ lt_prog_compiler_can_build_shared_F77=no ++ ;; ++ esac ++ fi ++ ++case $host_os in ++ # For platforms which do not support PIC, -DPIC is meaningless: ++ *djgpp*) ++ lt_prog_compiler_pic_F77= ++ ;; ++ *) ++ lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77@&t@" ++ ;; ++esac ++{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 ++echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } ++ ++ ++ ++# ++# Check to make sure the PIC flag actually works. ++# ++if test -n "$lt_prog_compiler_pic_F77"; then ++ { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 ++echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_pic_works_F77=no ++ ac_outfile=conftest.$ac_objext ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ lt_compiler_flag="$lt_prog_compiler_pic_F77@&t@" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ # The option is referenced via a variable to avoid confusing sed. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>conftest.err) ++ ac_status=$? ++ cat conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s "$ac_outfile"; then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings other than the usual output. ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp ++ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 ++ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_pic_works_F77=yes ++ fi ++ fi ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; } ++ ++if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then ++ case $lt_prog_compiler_pic_F77 in ++ "" | " "*) ;; ++ *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; ++ esac ++else ++ lt_prog_compiler_pic_F77= ++ lt_prog_compiler_can_build_shared_F77=no ++fi ++ ++fi ++ ++ ++ ++# ++# Check to make sure the static flag actually works. ++# ++wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" ++{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 ++echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_static_works_F77=no ++ save_LDFLAGS="$LDFLAGS" ++ LDFLAGS="$LDFLAGS $lt_tmp_static_flag" ++ echo "$lt_simple_link_test_code" > conftest.$ac_ext ++ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then ++ # The linker can only warn and ignore the option if not recognized ++ # So say no if there are warnings ++ if test -s conftest.err; then ++ # Append any errors to the config.log. ++ cat conftest.err 1>&5 ++ $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp ++ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 ++ if diff conftest.exp conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_static_works_F77=yes ++ fi ++ else ++ lt_cv_prog_compiler_static_works_F77=yes ++ fi ++ fi ++ $RM -r conftest* ++ LDFLAGS="$save_LDFLAGS" ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; } ++ ++if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then ++ : ++else ++ lt_prog_compiler_static_F77= ++fi ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 ++echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_c_o_F77=no ++ $RM -r conftest 2>/dev/null ++ mkdir conftest ++ cd conftest ++ mkdir out ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ ++ lt_compiler_flag="-o out/conftest2.$ac_objext" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>out/conftest.err) ++ ac_status=$? ++ cat out/conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s out/conftest2.$ac_objext ++ then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp ++ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 ++ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_c_o_F77=yes ++ fi ++ fi ++ chmod u+w . 2>&5 ++ $RM conftest* ++ # SGI C++ compiler will create directory out/ii_files/ for ++ # template instantiation ++ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files ++ $RM out/* && rmdir out ++ cd .. ++ $RM -r conftest ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 ++echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_c_o_F77=no ++ $RM -r conftest 2>/dev/null ++ mkdir conftest ++ cd conftest ++ mkdir out ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ ++ lt_compiler_flag="-o out/conftest2.$ac_objext" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>out/conftest.err) ++ ac_status=$? ++ cat out/conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s out/conftest2.$ac_objext ++ then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp ++ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 ++ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_c_o_F77=yes ++ fi ++ fi ++ chmod u+w . 2>&5 ++ $RM conftest* ++ # SGI C++ compiler will create directory out/ii_files/ for ++ # template instantiation ++ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files ++ $RM out/* && rmdir out ++ cd .. ++ $RM -r conftest ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } ++ ++ ++ ++ ++hard_links="nottested" ++if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then ++ # do not overwrite the value of need_locks provided by the user ++ { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 ++echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } ++ hard_links=yes ++ $RM conftest* ++ ln conftest.a conftest.b 2>/dev/null && hard_links=no ++ touch conftest.a ++ ln conftest.a conftest.b 2>&5 || hard_links=no ++ ln conftest.a conftest.b 2>/dev/null && hard_links=no ++ { echo "$as_me:$LINENO: result: $hard_links" >&5 ++echo "${ECHO_T}$hard_links" >&6; } ++ if test "$hard_links" = no; then ++ { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 ++echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} ++ need_locks=warn ++ fi ++else ++ need_locks=no ++fi ++ ++ ++ ++ { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 ++echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } ++ ++ runpath_var= ++ allow_undefined_flag_F77= ++ always_export_symbols_F77=no ++ archive_cmds_F77= ++ archive_expsym_cmds_F77= ++ compiler_needs_object_F77=no ++ enable_shared_with_static_runtimes_F77=no ++ export_dynamic_flag_spec_F77= ++ export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ++ hardcode_automatic_F77=no ++ hardcode_direct_F77=no ++ hardcode_direct_absolute_F77=no ++ hardcode_libdir_flag_spec_F77= ++ hardcode_libdir_flag_spec_ld_F77= ++ hardcode_libdir_separator_F77= ++ hardcode_minus_L_F77=no ++ hardcode_shlibpath_var_F77=unsupported ++ inherit_rpath_F77=no ++ link_all_deplibs_F77=unknown ++ module_cmds_F77= ++ module_expsym_cmds_F77= ++ old_archive_from_new_cmds_F77= ++ old_archive_from_expsyms_cmds_F77= ++ thread_safe_flag_spec_F77= ++ whole_archive_flag_spec_F77= ++ # include_expsyms should be a list of space-separated symbols to be *always* ++ # included in the symbol list ++ include_expsyms_F77= ++ # exclude_expsyms can be an extended regexp of symbols to exclude ++ # it will be wrapped by ` (' and `)$', so one must not match beginning or ++ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', ++ # as well as any symbol that contains `d'. ++ exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' ++ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out ++ # platforms (ab)use it in PIC code, but their linkers get confused if ++ # the symbol is explicitly referenced. Since portable code cannot ++ # rely on this symbol name, it's probably fine to never include it in ++ # preloaded symbol tables. ++ # Exclude shared library initialization/finalization symbols. ++ extract_expsyms_cmds= ++ ++ case $host_os in ++ cygwin* | mingw* | pw32* | cegcc*) ++ # FIXME: the MSVC++ port hasn't been tested in a loooong time ++ # When not using gcc, we currently assume that we are using ++ # Microsoft Visual C++. ++ if test "$GCC" != yes; then ++ with_gnu_ld=no ++ fi ++ ;; ++ interix*) ++ # we just hope/assume this is gcc and not c89 (= MSVC++) ++ with_gnu_ld=yes ++ ;; ++ openbsd*) ++ with_gnu_ld=no ++ ;; ++ esac ++ ++ ld_shlibs_F77=yes ++ if test "$with_gnu_ld" = yes; then ++ # If archive_cmds runs LD, not CC, wlarc should be empty ++ wlarc='${wl}' ++ ++ # Set some defaults for GNU ld with shared library support. These ++ # are reset later if shared libraries are not supported. Putting them ++ # here allows them to be overridden if necessary. ++ runpath_var=LD_RUN_PATH ++ hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' ++ export_dynamic_flag_spec_F77='${wl}--export-dynamic' ++ # ancient GNU ld didn't support --whole-archive et. al. ++ if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then ++ whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' ++ else ++ whole_archive_flag_spec_F77= ++ fi ++ supports_anon_versioning=no ++ case `$LD -v 2>&1` in ++ *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 ++ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... ++ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... ++ *\ 2.11.*) ;; # other 2.11 versions ++ *) supports_anon_versioning=yes ;; ++ esac ++ ++ # See if GNU ld supports shared libraries. ++ case $host_os in ++ aix[3-9]*) ++ # On AIX/PPC, the GNU linker is very broken ++ if test "$host_cpu" != ia64; then ++ ld_shlibs_F77=no ++ cat <<_LT_EOF 1>&2 ++ ++*** Warning: the GNU linker, at least up to release 2.9.1, is reported ++*** to be unable to reliably create shared libraries on AIX. ++*** Therefore, libtool is disabling shared libraries support. If you ++*** really care for shared libraries, you may want to modify your PATH ++*** so that a non-GNU linker is found, and then restart. ++ ++_LT_EOF ++ fi ++ ;; ++ ++ amigaos*) ++ case $host_cpu in ++ powerpc) ++ # see comment about AmigaOS4 .so support ++ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_F77='' ++ ;; ++ m68k) ++ archive_cmds_F77='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' ++ hardcode_libdir_flag_spec_F77='-L$libdir' ++ hardcode_minus_L_F77=yes ++ ;; ++ esac ++ ;; ++ ++ beos*) ++ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ allow_undefined_flag_F77=unsupported ++ # Joseph Beckenbach says some releases of gcc ++ # support --undefined. This deserves some investigation. FIXME ++ archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ else ++ ld_shlibs_F77=no ++ fi ++ ;; ++ ++ cygwin* | mingw* | pw32* | cegcc*) ++ # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, ++ # as there is no search path for DLLs. ++ hardcode_libdir_flag_spec_F77='-L$libdir' ++ allow_undefined_flag_F77=unsupported ++ always_export_symbols_F77=no ++ enable_shared_with_static_runtimes_F77=yes ++ export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' ++ ++ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then ++ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' ++ # If the export-symbols file already is a .def file (1st line ++ # is EXPORTS), use it as is; otherwise, prepend... ++ archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then ++ cp $export_symbols $output_objdir/$soname.def; ++ else ++ echo EXPORTS > $output_objdir/$soname.def; ++ cat $export_symbols >> $output_objdir/$soname.def; ++ fi~ ++ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' ++ else ++ ld_shlibs_F77=no ++ fi ++ ;; ++ ++ interix[3-9]*) ++ hardcode_direct_F77=no ++ hardcode_shlibpath_var_F77=no ++ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' ++ export_dynamic_flag_spec_F77='${wl}-E' ++ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. ++ # Instead, shared libraries are loaded at an image base (0x10000000 by ++ # default) and relocated if they conflict, which is a slow very memory ++ # consuming and fragmenting process. To avoid this, we pick a random, ++ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link ++ # time. Moving up from 0x10000000 also allows more sbrk(2) space. ++ archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ++ archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ++ ;; ++ ++ gnu* | linux* | tpf* | k*bsd*-gnu) ++ tmp_diet=no ++ if test "$host_os" = linux-dietlibc; then ++ case $cc_basename in ++ diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) ++ esac ++ fi ++ if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ ++ && test "$tmp_diet" = no ++ then ++ tmp_addflag= ++ tmp_sharedflag='-shared' ++ case $cc_basename,$host_cpu in ++ pgcc*) # Portland Group C compiler ++ whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ++ tmp_addflag=' $pic_flag' ++ ;; ++ pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers ++ whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ++ tmp_addflag=' $pic_flag -Mnomain' ;; ++ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 ++ tmp_addflag=' -i_dynamic' ;; ++ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 ++ tmp_addflag=' -i_dynamic -nofor_main' ;; ++ ifc* | ifort*) # Intel Fortran compiler ++ tmp_addflag=' -nofor_main' ;; ++ lf95*) # Lahey Fortran 8.1 ++ whole_archive_flag_spec_F77= ++ tmp_sharedflag='--shared' ;; ++ xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) ++ tmp_sharedflag='-qmkshrobj' ++ tmp_addflag= ;; ++ esac ++ case `$CC -V 2>&1 | sed 5q` in ++ *Sun\ C*) # Sun C 5.9 ++ whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ++ compiler_needs_object_F77=yes ++ tmp_sharedflag='-G' ;; ++ *Sun\ F*) # Sun Fortran 8.3 ++ tmp_sharedflag='-G' ;; ++ esac ++ archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ ++ if test "x$supports_anon_versioning" = xyes; then ++ archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ ++ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ ++ echo "local: *; };" >> $output_objdir/$libname.ver~ ++ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' ++ fi ++ ++ case $cc_basename in ++ xlf*) ++ # IBM XL Fortran 10.1 on PPC cannot create shared libs itself ++ whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive' ++ hardcode_libdir_flag_spec_F77= ++ hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' ++ archive_cmds_F77='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' ++ if test "x$supports_anon_versioning" = xyes; then ++ archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ ++ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ ++ echo "local: *; };" >> $output_objdir/$libname.ver~ ++ $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' ++ fi ++ ;; ++ esac ++ else ++ ld_shlibs_F77=no ++ fi ++ ;; ++ ++ netbsd*) ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then ++ archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' ++ wlarc= ++ else ++ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ fi ++ ;; ++ ++ solaris*) ++ if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ++ ld_shlibs_F77=no ++ cat <<_LT_EOF 1>&2 ++ ++*** Warning: The releases 2.8.* of the GNU linker cannot reliably ++*** create shared libraries on Solaris systems. Therefore, libtool ++*** is disabling shared libraries support. We urge you to upgrade GNU ++*** binutils to release 2.9.1 or newer. Another option is to modify ++*** your PATH or compiler configuration so that the native linker is ++*** used, and then restart. ++ ++_LT_EOF ++ elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ else ++ ld_shlibs_F77=no ++ fi ++ ;; ++ ++ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) ++ case `$LD -v 2>&1` in ++ *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ++ ld_shlibs_F77=no ++ cat <<_LT_EOF 1>&2 ++ ++*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not ++*** reliably create shared libraries on SCO systems. Therefore, libtool ++*** is disabling shared libraries support. We urge you to upgrade GNU ++*** binutils to release 2.16.91.0.3 or newer. Another option is to modify ++*** your PATH or compiler configuration so that the native linker is ++*** used, and then restart. ++ ++_LT_EOF ++ ;; ++ *) ++ # For security reasons, it is highly recommended that you always ++ # use absolute paths for naming shared libraries, and exclude the ++ # DT_RUNPATH tag from executables and libraries. But doing so ++ # requires that you compile everything twice, which is a pain. ++ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' ++ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ else ++ ld_shlibs_F77=no ++ fi ++ ;; ++ esac ++ ;; ++ ++ sunos4*) ++ archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' ++ wlarc= ++ hardcode_direct_F77=yes ++ hardcode_shlibpath_var_F77=no ++ ;; ++ ++ *) ++ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ else ++ ld_shlibs_F77=no ++ fi ++ ;; ++ esac ++ ++ if test "$ld_shlibs_F77" = no; then ++ runpath_var= ++ hardcode_libdir_flag_spec_F77= ++ export_dynamic_flag_spec_F77= ++ whole_archive_flag_spec_F77= ++ fi ++ else ++ # PORTME fill in a description of your system's linker (not GNU ld) ++ case $host_os in ++ aix3*) ++ allow_undefined_flag_F77=unsupported ++ always_export_symbols_F77=yes ++ archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' ++ # Note: this linker hardcodes the directories in LIBPATH if there ++ # are no directories specified by -L. ++ hardcode_minus_L_F77=yes ++ if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then ++ # Neither direct hardcoding nor static linking is supported with a ++ # broken collect2. ++ hardcode_direct_F77=unsupported ++ fi ++ ;; ++ ++ aix[4-9]*) ++ if test "$host_cpu" = ia64; then ++ # On IA64, the linker does run time linking by default, so we don't ++ # have to do anything special. ++ aix_use_runtimelinking=no ++ exp_sym_flag='-Bexport' ++ no_entry_flag="" ++ else ++ # If we're using GNU nm, then we don't want the "-C" option. ++ # -C means demangle to AIX nm, but means don't demangle with GNU nm ++ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then ++ export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' ++ else ++ export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' ++ fi ++ aix_use_runtimelinking=no ++ ++ # Test if we are trying to use run time linking or normal ++ # AIX style linking. If -brtl is somewhere in LDFLAGS, we ++ # need to do runtime linking. ++ case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) ++ for ld_flag in $LDFLAGS; do ++ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then ++ aix_use_runtimelinking=yes ++ break ++ fi ++ done ++ ;; ++ esac ++ ++ exp_sym_flag='-bexport' ++ no_entry_flag='-bnoentry' ++ fi ++ ++ # When large executables or shared objects are built, AIX ld can ++ # have problems creating the table of contents. If linking a library ++ # or program results in "error TOC overflow" add -mminimal-toc to ++ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not ++ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. ++ ++ archive_cmds_F77='' ++ hardcode_direct_F77=yes ++ hardcode_direct_absolute_F77=yes ++ hardcode_libdir_separator_F77=':' ++ link_all_deplibs_F77=yes ++ file_list_spec_F77='${wl}-f,' ++ ++ if test "$GCC" = yes; then ++ case $host_os in aix4.[012]|aix4.[012].*) ++ # We only want to do this on AIX 4.2 and lower, the check ++ # below for broken collect2 doesn't work under 4.3+ ++ collect2name=`${CC} -print-prog-name=collect2` ++ if test -f "$collect2name" && ++ strings "$collect2name" | $GREP resolve_lib_name >/dev/null ++ then ++ # We have reworked collect2 ++ : ++ else ++ # We have old collect2 ++ hardcode_direct_F77=unsupported ++ # It fails to find uninstalled libraries when the uninstalled ++ # path is not listed in the libpath. Setting hardcode_minus_L ++ # to unsupported forces relinking ++ hardcode_minus_L_F77=yes ++ hardcode_libdir_flag_spec_F77='-L$libdir' ++ hardcode_libdir_separator_F77= ++ fi ++ ;; ++ esac ++ shared_flag='-shared' ++ if test "$aix_use_runtimelinking" = yes; then ++ shared_flag="$shared_flag "'${wl}-G' ++ fi ++ else ++ # not using gcc ++ if test "$host_cpu" = ia64; then ++ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release ++ # chokes on -Wl,-G. The following line is correct: ++ shared_flag='-G' ++ else ++ if test "$aix_use_runtimelinking" = yes; then ++ shared_flag='${wl}-G' ++ else ++ shared_flag='${wl}-bM:SRE' ++ fi ++ fi ++ fi ++ ++ export_dynamic_flag_spec_F77='${wl}-bexpall' ++ # It seems that -bexpall does not export symbols beginning with ++ # underscore (_), so it is better to generate a list of symbols to export. ++ always_export_symbols_F77=yes ++ if test "$aix_use_runtimelinking" = yes; then ++ # Warning - without using the other runtime loading flags (-brtl), ++ # -berok will link without error, but may produce a broken library. ++ allow_undefined_flag_F77='-berok' ++ # Determine the default libpath from the value encoded in an ++ # empty executable. ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ++lt_aix_libpath_sed=' ++ /Import File Strings/,/^$/ { ++ /^0/ { ++ s/^0 *\(.*\)$/\1/ ++ p ++ } ++ }' ++aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++# Check for a 64-bit object if we didn't find anything. ++if test -z "$aix_libpath"; then ++ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++fi ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ++ ++ hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" ++ archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" ++ else ++ if test "$host_cpu" = ia64; then ++ hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' ++ allow_undefined_flag_F77="-z nodefs" ++ archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" ++ else ++ # Determine the default libpath from the value encoded in an ++ # empty executable. ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ++lt_aix_libpath_sed=' ++ /Import File Strings/,/^$/ { ++ /^0/ { ++ s/^0 *\(.*\)$/\1/ ++ p ++ } ++ }' ++aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++# Check for a 64-bit object if we didn't find anything. ++if test -z "$aix_libpath"; then ++ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++fi ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ++ ++ hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" ++ # Warning - without using the other run time loading flags, ++ # -berok will link without error, but may produce a broken library. ++ no_undefined_flag_F77=' ${wl}-bernotok' ++ allow_undefined_flag_F77=' ${wl}-berok' ++ # Exported symbols can be pulled into shared objects from archives ++ whole_archive_flag_spec_F77='$convenience' ++ archive_cmds_need_lc_F77=yes ++ # This is similar to how AIX traditionally builds its shared libraries. ++ archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' ++ fi ++ fi ++ ;; ++ ++ amigaos*) ++ case $host_cpu in ++ powerpc) ++ # see comment about AmigaOS4 .so support ++ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_F77='' ++ ;; ++ m68k) ++ archive_cmds_F77='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' ++ hardcode_libdir_flag_spec_F77='-L$libdir' ++ hardcode_minus_L_F77=yes ++ ;; ++ esac ++ ;; ++ ++ bsdi[45]*) ++ export_dynamic_flag_spec_F77=-rdynamic ++ ;; ++ ++ cygwin* | mingw* | pw32* | cegcc*) ++ # When not using gcc, we currently assume that we are using ++ # Microsoft Visual C++. ++ # hardcode_libdir_flag_spec is actually meaningless, as there is ++ # no search path for DLLs. ++ hardcode_libdir_flag_spec_F77=' ' ++ allow_undefined_flag_F77=unsupported ++ # Tell ltmain to make .lib files, not .a files. ++ libext=lib ++ # Tell ltmain to make .dll files, not .so files. ++ shrext_cmds=".dll" ++ # FIXME: Setting linknames here is a bad hack. ++ archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' ++ # The linker will automatically build a .lib file if we build a DLL. ++ old_archive_from_new_cmds_F77='true' ++ # FIXME: Should let the user specify the lib program. ++ old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' ++ fix_srcfile_path_F77='`cygpath -w "$srcfile"`' ++ enable_shared_with_static_runtimes_F77=yes ++ ;; ++ ++ darwin* | rhapsody*) ++ ++ ++ archive_cmds_need_lc_F77=no ++ hardcode_direct_F77=no ++ hardcode_automatic_F77=yes ++ hardcode_shlibpath_var_F77=unsupported ++ whole_archive_flag_spec_F77='' ++ link_all_deplibs_F77=yes ++ allow_undefined_flag_F77="$_lt_dar_allow_undefined" ++ case $cc_basename in ++ ifort*) _lt_dar_can_shared=yes ;; ++ *) _lt_dar_can_shared=$GCC ;; ++ esac ++ if test "$_lt_dar_can_shared" = "yes"; then ++ output_verbose_link_cmd=echo ++ archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" ++ module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" ++ archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" ++ module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" ++ ++ else ++ ld_shlibs_F77=no ++ fi ++ ++ ;; ++ ++ dgux*) ++ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_libdir_flag_spec_F77='-L$libdir' ++ hardcode_shlibpath_var_F77=no ++ ;; ++ ++ freebsd1*) ++ ld_shlibs_F77=no ++ ;; ++ ++ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor ++ # support. Future versions do this automatically, but an explicit c++rt0.o ++ # does not break anything, and helps significantly (at the cost of a little ++ # extra space). ++ freebsd2.2*) ++ archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' ++ hardcode_libdir_flag_spec_F77='-R$libdir' ++ hardcode_direct_F77=yes ++ hardcode_shlibpath_var_F77=no ++ ;; ++ ++ # Unfortunately, older versions of FreeBSD 2 do not have this feature. ++ freebsd2*) ++ archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_direct_F77=yes ++ hardcode_minus_L_F77=yes ++ hardcode_shlibpath_var_F77=no ++ ;; ++ ++ # FreeBSD 3 and greater uses gcc -shared to do shared libraries. ++ freebsd* | dragonfly*) ++ archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' ++ hardcode_libdir_flag_spec_F77='-R$libdir' ++ hardcode_direct_F77=yes ++ hardcode_shlibpath_var_F77=no ++ ;; ++ ++ hpux9*) ++ if test "$GCC" = yes; then ++ archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ++ else ++ archive_cmds_F77='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ++ fi ++ hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' ++ hardcode_libdir_separator_F77=: ++ hardcode_direct_F77=yes ++ ++ # hardcode_minus_L: Not really in the search PATH, ++ # but as the default location of the library. ++ hardcode_minus_L_F77=yes ++ export_dynamic_flag_spec_F77='${wl}-E' ++ ;; ++ ++ hpux10*) ++ if test "$GCC" = yes -a "$with_gnu_ld" = no; then ++ archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ++ else ++ archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ++ fi ++ if test "$with_gnu_ld" = no; then ++ hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' ++ hardcode_libdir_flag_spec_ld_F77='+b $libdir' ++ hardcode_libdir_separator_F77=: ++ hardcode_direct_F77=yes ++ hardcode_direct_absolute_F77=yes ++ export_dynamic_flag_spec_F77='${wl}-E' ++ # hardcode_minus_L: Not really in the search PATH, ++ # but as the default location of the library. ++ hardcode_minus_L_F77=yes ++ fi ++ ;; ++ ++ hpux11*) ++ if test "$GCC" = yes -a "$with_gnu_ld" = no; then ++ case $host_cpu in ++ hppa*64*) ++ archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ ia64*) ++ archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ *) ++ archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ esac ++ else ++ case $host_cpu in ++ hppa*64*) ++ archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ ia64*) ++ archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ *) ++ archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ esac ++ fi ++ if test "$with_gnu_ld" = no; then ++ hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' ++ hardcode_libdir_separator_F77=: ++ ++ case $host_cpu in ++ hppa*64*|ia64*) ++ hardcode_direct_F77=no ++ hardcode_shlibpath_var_F77=no ++ ;; ++ *) ++ hardcode_direct_F77=yes ++ hardcode_direct_absolute_F77=yes ++ export_dynamic_flag_spec_F77='${wl}-E' ++ ++ # hardcode_minus_L: Not really in the search PATH, ++ # but as the default location of the library. ++ hardcode_minus_L_F77=yes ++ ;; ++ esac ++ fi ++ ;; ++ ++ irix5* | irix6* | nonstopux*) ++ if test "$GCC" = yes; then ++ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ++ # Try to use the -exported_symbol ld option, if it does not ++ # work, assume that -exports_file does not work either and ++ # implicitly export all symbols. ++ save_LDFLAGS="$LDFLAGS" ++ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" ++ cat >conftest.$ac_ext <<_ACEOF ++int foo(void) {} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LDFLAGS="$save_LDFLAGS" ++ else ++ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' ++ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' ++ fi ++ archive_cmds_need_lc_F77='no' ++ hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' ++ hardcode_libdir_separator_F77=: ++ inherit_rpath_F77=yes ++ link_all_deplibs_F77=yes ++ ;; ++ ++ netbsd*) ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then ++ archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out ++ else ++ archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF ++ fi ++ hardcode_libdir_flag_spec_F77='-R$libdir' ++ hardcode_direct_F77=yes ++ hardcode_shlibpath_var_F77=no ++ ;; ++ ++ newsos6) ++ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_direct_F77=yes ++ hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' ++ hardcode_libdir_separator_F77=: ++ hardcode_shlibpath_var_F77=no ++ ;; ++ ++ *nto* | *qnx*) ++ ;; ++ ++ openbsd*) ++ if test -f /usr/libexec/ld.so; then ++ hardcode_direct_F77=yes ++ hardcode_shlibpath_var_F77=no ++ hardcode_direct_absolute_F77=yes ++ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ++ archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' ++ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' ++ export_dynamic_flag_spec_F77='${wl}-E' ++ else ++ case $host_os in ++ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) ++ archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_libdir_flag_spec_F77='-R$libdir' ++ ;; ++ *) ++ archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ++ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' ++ ;; ++ esac ++ fi ++ else ++ ld_shlibs_F77=no ++ fi ++ ;; ++ ++ os2*) ++ hardcode_libdir_flag_spec_F77='-L$libdir' ++ hardcode_minus_L_F77=yes ++ allow_undefined_flag_F77=unsupported ++ archive_cmds_F77='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' ++ old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ++ ;; ++ ++ osf3*) ++ if test "$GCC" = yes; then ++ allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' ++ archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ++ else ++ allow_undefined_flag_F77=' -expect_unresolved \*' ++ archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' ++ fi ++ archive_cmds_need_lc_F77='no' ++ hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' ++ hardcode_libdir_separator_F77=: ++ ;; ++ ++ osf4* | osf5*) # as osf3* with the addition of -msym flag ++ if test "$GCC" = yes; then ++ allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' ++ archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ++ hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' ++ else ++ allow_undefined_flag_F77=' -expect_unresolved \*' ++ archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' ++ archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ ++ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' ++ ++ # Both c and cxx compiler support -rpath directly ++ hardcode_libdir_flag_spec_F77='-rpath $libdir' ++ fi ++ archive_cmds_need_lc_F77='no' ++ hardcode_libdir_separator_F77=: ++ ;; ++ ++ solaris*) ++ no_undefined_flag_F77=' -z defs' ++ if test "$GCC" = yes; then ++ wlarc='${wl}' ++ archive_cmds_F77='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ ++ $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ++ else ++ case `$CC -V 2>&1` in ++ *"Compilers 5.0"*) ++ wlarc='' ++ archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ ++ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ++ ;; ++ *) ++ wlarc='${wl}' ++ archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ ++ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ++ ;; ++ esac ++ fi ++ hardcode_libdir_flag_spec_F77='-R$libdir' ++ hardcode_shlibpath_var_F77=no ++ case $host_os in ++ solaris2.[0-5] | solaris2.[0-5].*) ;; ++ *) ++ # The compiler driver will combine and reorder linker options, ++ # but understands `-z linker_flag'. GCC discards it without `$wl', ++ # but is careful enough not to reorder. ++ # Supported since Solaris 2.6 (maybe 2.5.1?) ++ if test "$GCC" = yes; then ++ whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ++ else ++ whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ++ fi ++ ;; ++ esac ++ link_all_deplibs_F77=yes ++ ;; ++ ++ sunos4*) ++ if test "x$host_vendor" = xsequent; then ++ # Use $CC to link under sequent, because it throws in some extra .o ++ # files that make .init and .fini sections work. ++ archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' ++ else ++ archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' ++ fi ++ hardcode_libdir_flag_spec_F77='-L$libdir' ++ hardcode_direct_F77=yes ++ hardcode_minus_L_F77=yes ++ hardcode_shlibpath_var_F77=no ++ ;; ++ ++ sysv4) ++ case $host_vendor in ++ sni) ++ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_direct_F77=yes # is this really true??? ++ ;; ++ siemens) ++ ## LD is ld it makes a PLAMLIB ++ ## CC just makes a GrossModule. ++ archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' ++ reload_cmds_F77='$CC -r -o $output$reload_objs' ++ hardcode_direct_F77=no ++ ;; ++ motorola) ++ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie ++ ;; ++ esac ++ runpath_var='LD_RUN_PATH' ++ hardcode_shlibpath_var_F77=no ++ ;; ++ ++ sysv4.3*) ++ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_shlibpath_var_F77=no ++ export_dynamic_flag_spec_F77='-Bexport' ++ ;; ++ ++ sysv4*MP*) ++ if test -d /usr/nec; then ++ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_shlibpath_var_F77=no ++ runpath_var=LD_RUN_PATH ++ hardcode_runpath_var=yes ++ ld_shlibs_F77=yes ++ fi ++ ;; ++ ++ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) ++ no_undefined_flag_F77='${wl}-z,text' ++ archive_cmds_need_lc_F77=no ++ hardcode_shlibpath_var_F77=no ++ runpath_var='LD_RUN_PATH' ++ ++ if test "$GCC" = yes; then ++ archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ else ++ archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ fi ++ ;; ++ ++ sysv5* | sco3.2v5* | sco5v6*) ++ # Note: We can NOT use -z defs as we might desire, because we do not ++ # link with -lc, and that would cause any symbols used from libc to ++ # always be unresolved, which means just about no library would ++ # ever link correctly. If we're not using GNU ld we use -z text ++ # though, which does catch some bad symbols but isn't as heavy-handed ++ # as -z defs. ++ no_undefined_flag_F77='${wl}-z,text' ++ allow_undefined_flag_F77='${wl}-z,nodefs' ++ archive_cmds_need_lc_F77=no ++ hardcode_shlibpath_var_F77=no ++ hardcode_libdir_flag_spec_F77='${wl}-R,$libdir' ++ hardcode_libdir_separator_F77=':' ++ link_all_deplibs_F77=yes ++ export_dynamic_flag_spec_F77='${wl}-Bexport' ++ runpath_var='LD_RUN_PATH' ++ ++ if test "$GCC" = yes; then ++ archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ else ++ archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ fi ++ ;; ++ ++ uts4*) ++ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_libdir_flag_spec_F77='-L$libdir' ++ hardcode_shlibpath_var_F77=no ++ ;; ++ ++ *) ++ ld_shlibs_F77=no ++ ;; ++ esac ++ ++ if test x$host_vendor = xsni; then ++ case $host in ++ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ++ export_dynamic_flag_spec_F77='${wl}-Blargedynsym' ++ ;; ++ esac ++ fi ++ fi ++ ++{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 ++echo "${ECHO_T}$ld_shlibs_F77" >&6; } ++test "$ld_shlibs_F77" = no && can_build_shared=no ++ ++with_gnu_ld_F77=$with_gnu_ld ++ ++ ++ ++ ++ ++ ++# ++# Do we need to explicitly link libc? ++# ++case "x$archive_cmds_need_lc_F77" in ++x|xyes) ++ # Assume -lc should be added ++ archive_cmds_need_lc_F77=yes ++ ++ if test "$enable_shared" = yes && test "$GCC" = yes; then ++ case $archive_cmds_F77 in ++ *'~'*) ++ # FIXME: we may have to deal with multi-command sequences. ++ ;; ++ '$CC '*) ++ # Test whether the compiler implicitly links with -lc since on some ++ # systems, -lgcc has to come before -lc. If gcc already passes -lc ++ # to ld, don't add -lc before -lgcc. ++ { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 ++echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } ++ $RM conftest* ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ ++ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } 2>conftest.err; then ++ soname=conftest ++ lib=conftest ++ libobjs=conftest.$ac_objext ++ deplibs= ++ wl=$lt_prog_compiler_wl_F77 ++ pic_flag=$lt_prog_compiler_pic_F77 ++ compiler_flags=-v ++ linker_flags=-v ++ verstring= ++ output_objdir=. ++ libname=conftest ++ lt_save_allow_undefined_flag=$allow_undefined_flag_F77 ++ allow_undefined_flag_F77= ++ if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 ++ (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++ then ++ archive_cmds_need_lc_F77=no ++ else ++ archive_cmds_need_lc_F77=yes ++ fi ++ allow_undefined_flag_F77=$lt_save_allow_undefined_flag ++ else ++ cat conftest.err 1>&5 ++ fi ++ $RM conftest* ++ { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 ++echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } ++ ;; ++ esac ++ fi ++ ;; ++esac ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 ++echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } ++ ++library_names_spec= ++libname_spec='lib$name' ++soname_spec= ++shrext_cmds=".so" ++postinstall_cmds= ++postuninstall_cmds= ++finish_cmds= ++finish_eval= ++shlibpath_var= ++shlibpath_overrides_runpath=unknown ++version_type=none ++dynamic_linker="$host_os ld.so" ++sys_lib_dlsearch_path_spec="/lib /usr/lib" ++need_lib_prefix=unknown ++hardcode_into_libs=no ++ ++# when you set need_version to no, make sure it does not cause -set_version ++# flags to be left without arguments ++need_version=unknown ++ ++case $host_os in ++aix3*) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' ++ shlibpath_var=LIBPATH ++ ++ # AIX 3 has no versioning support, so we append a major version to the name. ++ soname_spec='${libname}${release}${shared_ext}$major' ++ ;; ++ ++aix[4-9]*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ hardcode_into_libs=yes ++ if test "$host_cpu" = ia64; then ++ # AIX 5 supports IA64 ++ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ else ++ # With GCC up to 2.95.x, collect2 would create an import file ++ # for dependence libraries. The import file would start with ++ # the line `#! .'. This would cause the generated library to ++ # depend on `.', always an invalid library. This was fixed in ++ # development snapshots of GCC prior to 3.0. ++ case $host_os in ++ aix4 | aix4.[01] | aix4.[01].*) ++ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' ++ echo ' yes ' ++ echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then ++ : ++ else ++ can_build_shared=no ++ fi ++ ;; ++ esac ++ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct ++ # soname into executable. Probably we can add versioning support to ++ # collect2, so additional links can be useful in future. ++ if test "$aix_use_runtimelinking" = yes; then ++ # If using run time linking (on AIX 4.2 or later) use lib.so ++ # instead of lib.a to let people know that these are not ++ # typical AIX shared libraries. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ else ++ # We preserve .a as extension for shared libraries through AIX4.2 ++ # and later when we are not doing run time linking. ++ library_names_spec='${libname}${release}.a $libname.a' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ fi ++ shlibpath_var=LIBPATH ++ fi ++ ;; ++ ++amigaos*) ++ case $host_cpu in ++ powerpc) ++ # Since July 2007 AmigaOS4 officially supports .so libraries. ++ # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ ;; ++ m68k) ++ library_names_spec='$libname.ixlibrary $libname.a' ++ # Create ${libname}_ixlibrary.a entries in /sys/libs. ++ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ++ ;; ++ esac ++ ;; ++ ++beos*) ++ library_names_spec='${libname}${shared_ext}' ++ dynamic_linker="$host_os ld.so" ++ shlibpath_var=LIBRARY_PATH ++ ;; ++ ++bsdi[45]*) ++ version_type=linux ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" ++ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" ++ # the default ld.so.conf also contains /usr/contrib/lib and ++ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow ++ # libtool to hard-code these into programs ++ ;; ++ ++cygwin* | mingw* | pw32* | cegcc*) ++ version_type=windows ++ shrext_cmds=".dll" ++ need_version=no ++ need_lib_prefix=no ++ ++ case $GCC,$host_os in ++ yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ library_names_spec='$libname.dll.a' ++ # DLL is installed to $(libdir)/../bin by postinstall_cmds ++ postinstall_cmds='base_file=`basename \${file}`~ ++ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ ++ dldir=$destdir/`dirname \$dlpath`~ ++ test -d \$dldir || mkdir -p \$dldir~ ++ $install_prog $dir/$dlname \$dldir/$dlname~ ++ chmod a+x \$dldir/$dlname~ ++ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then ++ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; ++ fi' ++ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ ++ dlpath=$dir/\$dldll~ ++ $RM \$dlpath' ++ shlibpath_overrides_runpath=yes ++ ++ case $host_os in ++ cygwin*) ++ # Cygwin DLLs use 'cyg' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ++ ;; ++ mingw* | cegcc*) ++ # MinGW DLLs use traditional 'lib' prefix ++ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` ++ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then ++ # It is most probably a Windows format PATH printed by ++ # mingw gcc, but we are running on Cygwin. Gcc prints its search ++ # path with ; separators, and with drive letters. We can handle the ++ # drive letters (cygwin fileutils understands them), so leave them, ++ # especially as we might pass files found there to a mingw objdump, ++ # which wouldn't understand a cygwinified path. Ahh. ++ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` ++ else ++ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ++ fi ++ ;; ++ pw32*) ++ # pw32 DLLs use 'pw' prefix rather than 'lib' ++ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ;; ++ esac ++ ;; ++ ++ *) ++ library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ++ ;; ++ esac ++ dynamic_linker='Win32 ld.exe' ++ # FIXME: first we should search . and the directory the executable is in ++ shlibpath_var=PATH ++ ;; ++ ++darwin* | rhapsody*) ++ dynamic_linker="$host_os dyld" ++ version_type=darwin ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' ++ soname_spec='${libname}${release}${major}$shared_ext' ++ shlibpath_overrides_runpath=yes ++ shlibpath_var=DYLD_LIBRARY_PATH ++ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' ++ ++ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ++ ;; ++ ++dgux*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ ;; ++ ++freebsd1*) ++ dynamic_linker=no ++ ;; ++ ++freebsd* | dragonfly*) ++ # DragonFly does not have aout. When/if they implement a new ++ # versioning mechanism, adjust this. ++ if test -x /usr/bin/objformat; then ++ objformat=`/usr/bin/objformat` ++ else ++ case $host_os in ++ freebsd[123]*) objformat=aout ;; ++ *) objformat=elf ;; ++ esac ++ fi ++ version_type=freebsd-$objformat ++ case $version_type in ++ freebsd-elf*) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' ++ need_version=no ++ need_lib_prefix=no ++ ;; ++ freebsd-*) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' ++ need_version=yes ++ ;; ++ esac ++ shlibpath_var=LD_LIBRARY_PATH ++ case $host_os in ++ freebsd2*) ++ shlibpath_overrides_runpath=yes ++ ;; ++ freebsd3.[01]* | freebsdelf3.[01]*) ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ ;; ++ freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ ++ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ ;; ++ *) # from 4.6 on, and DragonFly ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ ;; ++ esac ++ ;; ++ ++gnu*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ hardcode_into_libs=yes ++ ;; ++ ++hpux9* | hpux10* | hpux11*) ++ # Give a soname corresponding to the major version so that dld.sl refuses to ++ # link against other versions. ++ version_type=sunos ++ need_lib_prefix=no ++ need_version=no ++ case $host_cpu in ++ ia64*) ++ shrext_cmds='.so' ++ hardcode_into_libs=yes ++ dynamic_linker="$host_os dld.so" ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ if test "X$HPUX_IA64_MODE" = X32; then ++ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" ++ else ++ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" ++ fi ++ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ++ ;; ++ hppa*64*) ++ shrext_cmds='.sl' ++ hardcode_into_libs=yes ++ dynamic_linker="$host_os dld.sl" ++ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH ++ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" ++ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ++ ;; ++ *) ++ shrext_cmds='.sl' ++ dynamic_linker="$host_os dld.sl" ++ shlibpath_var=SHLIB_PATH ++ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ ;; ++ esac ++ # HP-UX runs *really* slowly unless shared libraries are mode 555. ++ postinstall_cmds='chmod 555 $lib' ++ ;; ++ ++interix[3-9]*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ ;; ++ ++irix5* | irix6* | nonstopux*) ++ case $host_os in ++ nonstopux*) version_type=nonstopux ;; ++ *) ++ if test "$lt_cv_prog_gnu_ld" = yes; then ++ version_type=linux ++ else ++ version_type=irix ++ fi ;; ++ esac ++ need_lib_prefix=no ++ need_version=no ++ soname_spec='${libname}${release}${shared_ext}$major' ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' ++ case $host_os in ++ irix5* | nonstopux*) ++ libsuff= shlibsuff= ++ ;; ++ *) ++ case $LD in # libtool.m4 will add one of these switches to LD ++ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") ++ libsuff= shlibsuff= libmagic=32-bit;; ++ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") ++ libsuff=32 shlibsuff=N32 libmagic=N32;; ++ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") ++ libsuff=64 shlibsuff=64 libmagic=64-bit;; ++ *) libsuff= shlibsuff= libmagic=never-match;; ++ esac ++ ;; ++ esac ++ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH ++ shlibpath_overrides_runpath=no ++ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" ++ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" ++ hardcode_into_libs=yes ++ ;; ++ ++# No shared lib support for Linux oldld, aout, or coff. ++linux*oldld* | linux*aout* | linux*coff*) ++ dynamic_linker=no ++ ;; ++ ++# This must be Linux ELF. ++linux* | k*bsd*-gnu) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ # Some binutils ld are patched to set DT_RUNPATH ++ save_LDFLAGS=$LDFLAGS ++ save_libdir=$libdir ++ eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \ ++ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\"" ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_f77_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then ++ shlibpath_overrides_runpath=yes ++fi ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LDFLAGS=$save_LDFLAGS ++ libdir=$save_libdir ++ ++ # This implies no fast_install, which is unacceptable. ++ # Some rework will be needed to allow for fast_install ++ # before this can be enabled. ++ hardcode_into_libs=yes ++ ++ # Append ld.so.conf contents to the search path ++ if test -f /etc/ld.so.conf; then ++ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` ++ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" ++ fi ++ ++ # We used to test for /lib/ld.so.1 and disable shared libraries on ++ # powerpc, because MkLinux only supported shared libraries with the ++ # GNU dynamic linker. Since this was broken with cross compilers, ++ # most powerpc-linux boxes support dynamic linking these days and ++ # people can always --disable-shared, the test was removed, and we ++ # assume the GNU/Linux dynamic linker is in use. ++ dynamic_linker='GNU/Linux ld.so' ++ ;; ++ ++netbsd*) ++ version_type=sunos ++ need_lib_prefix=no ++ need_version=no ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ++ dynamic_linker='NetBSD (a.out) ld.so' ++ else ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ dynamic_linker='NetBSD ld.elf_so' ++ fi ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ ;; ++ ++newsos6) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ ;; ++ ++*nto* | *qnx*) ++ version_type=qnx ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ dynamic_linker='ldqnx.so' ++ ;; ++ ++openbsd*) ++ version_type=sunos ++ sys_lib_dlsearch_path_spec="/usr/lib" ++ need_lib_prefix=no ++ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. ++ case $host_os in ++ openbsd3.3 | openbsd3.3.*) need_version=yes ;; ++ *) need_version=no ;; ++ esac ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ++ case $host_os in ++ openbsd2.[89] | openbsd2.[89].*) ++ shlibpath_overrides_runpath=no ++ ;; ++ *) ++ shlibpath_overrides_runpath=yes ++ ;; ++ esac ++ else ++ shlibpath_overrides_runpath=yes ++ fi ++ ;; ++ ++os2*) ++ libname_spec='$name' ++ shrext_cmds=".dll" ++ need_lib_prefix=no ++ library_names_spec='$libname${shared_ext} $libname.a' ++ dynamic_linker='OS/2 ld.exe' ++ shlibpath_var=LIBPATH ++ ;; ++ ++osf3* | osf4* | osf5*) ++ version_type=osf ++ need_lib_prefix=no ++ need_version=no ++ soname_spec='${libname}${release}${shared_ext}$major' ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" ++ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ++ ;; ++ ++rdos*) ++ dynamic_linker=no ++ ;; ++ ++solaris*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ # ldd complains unless libraries are executable ++ postinstall_cmds='chmod +x $lib' ++ ;; ++ ++sunos4*) ++ version_type=sunos ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ++ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ if test "$with_gnu_ld" = yes; then ++ need_lib_prefix=no ++ fi ++ need_version=yes ++ ;; ++ ++sysv4 | sysv4.3*) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ case $host_vendor in ++ sni) ++ shlibpath_overrides_runpath=no ++ need_lib_prefix=no ++ runpath_var=LD_RUN_PATH ++ ;; ++ siemens) ++ need_lib_prefix=no ++ ;; ++ motorola) ++ need_lib_prefix=no ++ need_version=no ++ shlibpath_overrides_runpath=no ++ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ++ ;; ++ esac ++ ;; ++ ++sysv4*MP*) ++ if test -d /usr/nec ;then ++ version_type=linux ++ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' ++ soname_spec='$libname${shared_ext}.$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ fi ++ ;; ++ ++sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) ++ version_type=freebsd-elf ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ if test "$with_gnu_ld" = yes; then ++ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' ++ else ++ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' ++ case $host_os in ++ sco3.2v5*) ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ++ ;; ++ esac ++ fi ++ sys_lib_dlsearch_path_spec='/usr/lib' ++ ;; ++ ++tpf*) ++ # TPF is a cross-target only. Preferred cross-host = GNU/Linux. ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ ;; ++ ++uts4*) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ ;; ++ ++*) ++ dynamic_linker=no ++ ;; ++esac ++{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 ++echo "${ECHO_T}$dynamic_linker" >&6; } ++test "$dynamic_linker" = no && can_build_shared=no ++ ++variables_saved_for_relink="PATH $shlibpath_var $runpath_var" ++if test "$GCC" = yes; then ++ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" ++fi ++ ++if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then ++ sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" ++fi ++if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then ++ sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 ++echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } ++hardcode_action_F77= ++if test -n "$hardcode_libdir_flag_spec_F77" || ++ test -n "$runpath_var_F77" || ++ test "X$hardcode_automatic_F77" = "Xyes" ; then ++ ++ # We can hardcode non-existent directories. ++ if test "$hardcode_direct_F77" != no && ++ # If the only mechanism to avoid hardcoding is shlibpath_var, we ++ # have to relink, otherwise we might link with an installed library ++ # when we should be linking with a yet-to-be-installed one ++ ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no && ++ test "$hardcode_minus_L_F77" != no; then ++ # Linking always hardcodes the temporary library directory. ++ hardcode_action_F77=relink ++ else ++ # We can link without hardcoding, and we can hardcode nonexisting dirs. ++ hardcode_action_F77=immediate ++ fi ++else ++ # We cannot hardcode anything, or else we can only hardcode existing ++ # directories. ++ hardcode_action_F77=unsupported ++fi ++{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 ++echo "${ECHO_T}$hardcode_action_F77" >&6; } ++ ++if test "$hardcode_action_F77" = relink || ++ test "$inherit_rpath_F77" = yes; then ++ # Fast installation is not supported ++ enable_fast_install=no ++elif test "$shlibpath_overrides_runpath" = yes || ++ test "$enable_shared" = no; then ++ # Fast installation is not necessary ++ enable_fast_install=needless ++fi ++ ++ ++ ++ ++ ++ ++ ++ fi # test -n "$compiler" ++ ++ GCC=$lt_save_GCC ++ CC="$lt_save_CC" ++fi # test "$_lt_disable_F77" != yes ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ ++ ac_ext=${ac_fc_srcext-f} ++ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ++ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_fc_compiler_gnu ++ ++ ++archive_cmds_need_lc_FC=no ++allow_undefined_flag_FC= ++always_export_symbols_FC=no ++archive_expsym_cmds_FC= ++export_dynamic_flag_spec_FC= ++hardcode_direct_FC=no ++hardcode_direct_absolute_FC=no ++hardcode_libdir_flag_spec_FC= ++hardcode_libdir_flag_spec_ld_FC= ++hardcode_libdir_separator_FC= ++hardcode_minus_L_FC=no ++hardcode_automatic_FC=no ++inherit_rpath_FC=no ++module_cmds_FC= ++module_expsym_cmds_FC= ++link_all_deplibs_FC=unknown ++old_archive_cmds_FC=$old_archive_cmds ++no_undefined_flag_FC= ++whole_archive_flag_spec_FC= ++enable_shared_with_static_runtimes_FC=no ++ ++# Source file extension for fc test sources. ++ac_ext=${ac_fc_srcext-f} ++ ++# Object file extension for compiled fc test sources. ++objext=o ++objext_FC=$objext ++ ++# No sense in running all these tests if we already determined that ++# the FC compiler isn't working. Some variables (like enable_shared) ++# are currently assumed to apply to all compilers on this platform, ++# and will be corrupted by setting them based on a non-working compiler. ++if test "$_lt_disable_FC" != yes; then ++ # Code to be used in simple compile tests ++ lt_simple_compile_test_code="\ ++ subroutine t ++ return ++ end ++" ++ ++ # Code to be used in simple link tests ++ lt_simple_link_test_code="\ ++ program t ++ end ++" ++ ++ # ltmain only uses $CC for tagged configurations so make sure $CC is set. ++ ++ ++ ++ ++ ++ ++# If no C compiler was specified, use CC. ++LTCC=${LTCC-"$CC"} ++ ++# If no C compiler flags were specified, use CFLAGS. ++LTCFLAGS=${LTCFLAGS-"$CFLAGS"} ++ ++# Allow CC to be a program name with arguments. ++compiler=$CC ++ ++ ++ # save warnings/boilerplate of simple test code ++ ac_outfile=conftest.$ac_objext ++echo "$lt_simple_compile_test_code" >conftest.$ac_ext ++eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err ++_lt_compiler_boilerplate=`cat conftest.err` ++$RM conftest* ++ ++ ac_outfile=conftest.$ac_objext ++echo "$lt_simple_link_test_code" >conftest.$ac_ext ++eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err ++_lt_linker_boilerplate=`cat conftest.err` ++$RM -r conftest* ++ ++ ++ # Allow CC to be a program name with arguments. ++ lt_save_CC="$CC" ++ lt_save_GCC=$GCC ++ CC=${FC-"f95"} ++ compiler=$CC ++ GCC=$ac_cv_fc_compiler_gnu ++ ++ compiler_FC=$CC ++ for cc_temp in $compiler""; do ++ case $cc_temp in ++ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; ++ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; ++ \-*) ;; ++ *) break;; ++ esac ++done ++cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` ++ ++ ++ if test -n "$compiler"; then ++ { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 ++echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } ++ { echo "$as_me:$LINENO: result: $can_build_shared" >&5 ++echo "${ECHO_T}$can_build_shared" >&6; } ++ ++ { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 ++echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } ++ test "$can_build_shared" = "no" && enable_shared=no ++ ++ # On AIX, shared libraries and static libraries use the same namespace, and ++ # are all built from PIC. ++ case $host_os in ++ aix3*) ++ test "$enable_shared" = yes && enable_static=no ++ if test -n "$RANLIB"; then ++ archive_cmds="$archive_cmds~\$RANLIB \$lib" ++ postinstall_cmds='$RANLIB $lib' ++ fi ++ ;; ++ aix[4-9]*) ++ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then ++ test "$enable_shared" = yes && enable_static=no ++ fi ++ ;; ++ esac ++ { echo "$as_me:$LINENO: result: $enable_shared" >&5 ++echo "${ECHO_T}$enable_shared" >&6; } ++ ++ { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 ++echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } ++ # Make sure either enable_shared or enable_static is yes. ++ test "$enable_shared" = yes || enable_static=yes ++ { echo "$as_me:$LINENO: result: $enable_static" >&5 ++echo "${ECHO_T}$enable_static" >&6; } ++ ++ GCC_FC="$ac_cv_fc_compiler_gnu" ++ LD_FC="$LD" ++ ++ ## CAVEAT EMPTOR: ++ ## There is no encapsulation within the following macros, do not change ++ ## the running order or otherwise move them around unless you know exactly ++ ## what you are doing... ++ # Dependencies to place before and after the object being linked: ++predep_objects_FC= ++postdep_objects_FC= ++predeps_FC= ++postdeps_FC= ++compiler_lib_search_path_FC= ++ ++cat > conftest.$ac_ext <<_LT_EOF ++ subroutine foo ++ implicit none ++ integer a ++ a=0 ++ return ++ end ++_LT_EOF ++ ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ # Parse the compiler output and extract the necessary ++ # objects, libraries and library flags. ++ ++ # Sentinel used to keep track of whether or not we are before ++ # the conftest object file. ++ pre_test_object_deps_done=no ++ ++ for p in `eval "$output_verbose_link_cmd"`; do ++ case $p in ++ ++ -L* | -R* | -l*) ++ # Some compilers place space between "-{L,R}" and the path. ++ # Remove the space. ++ if test $p = "-L" || ++ test $p = "-R"; then ++ prev=$p ++ continue ++ else ++ prev= ++ fi ++ ++ if test "$pre_test_object_deps_done" = no; then ++ case $p in ++ -L* | -R*) ++ # Internal compiler library paths should come after those ++ # provided the user. The postdeps already come after the ++ # user supplied libs so there is no need to process them. ++ if test -z "$compiler_lib_search_path_FC"; then ++ compiler_lib_search_path_FC="${prev}${p}" ++ else ++ compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}" ++ fi ++ ;; ++ # The "-l" case would never come before the object being ++ # linked, so don't bother handling this case. ++ esac ++ else ++ if test -z "$postdeps_FC"; then ++ postdeps_FC="${prev}${p}" ++ else ++ postdeps_FC="${postdeps_FC} ${prev}${p}" ++ fi ++ fi ++ ;; ++ ++ *.$objext) ++ # This assumes that the test object file only shows up ++ # once in the compiler output. ++ if test "$p" = "conftest.$objext"; then ++ pre_test_object_deps_done=yes ++ continue ++ fi ++ ++ if test "$pre_test_object_deps_done" = no; then ++ if test -z "$predep_objects_FC"; then ++ predep_objects_FC="$p" ++ else ++ predep_objects_FC="$predep_objects_FC $p" ++ fi ++ else ++ if test -z "$postdep_objects_FC"; then ++ postdep_objects_FC="$p" ++ else ++ postdep_objects_FC="$postdep_objects_FC $p" ++ fi ++ fi ++ ;; ++ ++ *) ;; # Ignore the rest. ++ ++ esac ++ done ++ ++ # Clean up. ++ rm -f a.out a.exe ++else ++ echo "libtool.m4: error: problem compiling FC test program" ++fi ++ ++$RM -f confest.$objext ++ ++# PORTME: override above test on systems where it is broken ++ ++ ++case " $postdeps_FC " in ++*" -lc "*) archive_cmds_need_lc_FC=no ;; ++esac ++ compiler_lib_search_dirs_FC= ++if test -n "${compiler_lib_search_path_FC}"; then ++ compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ lt_prog_compiler_wl_FC= ++lt_prog_compiler_pic_FC= ++lt_prog_compiler_static_FC= ++ ++{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 ++echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } ++ ++ if test "$GCC" = yes; then ++ lt_prog_compiler_wl_FC='-Wl,' ++ lt_prog_compiler_static_FC='-static' ++ ++ case $host_os in ++ aix*) ++ # All AIX code is PIC. ++ if test "$host_cpu" = ia64; then ++ # AIX 5 now supports IA64 processor ++ lt_prog_compiler_static_FC='-Bstatic' ++ fi ++ ;; ++ ++ amigaos*) ++ case $host_cpu in ++ powerpc) ++ # see comment about AmigaOS4 .so support ++ lt_prog_compiler_pic_FC='-fPIC' ++ ;; ++ m68k) ++ # FIXME: we need at least 68020 code to build shared libraries, but ++ # adding the `-m68020' flag to GCC prevents building anything better, ++ # like `-m68040'. ++ lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' ++ ;; ++ esac ++ ;; ++ ++ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) ++ # PIC is the default for these OSes. ++ ;; ++ ++ mingw* | cygwin* | pw32* | os2* | cegcc*) ++ # This hack is so that the source file can tell whether it is being ++ # built for inclusion in a dll (and should export symbols for example). ++ # Although the cygwin gcc ignores -fPIC, still need this for old-style ++ # (--disable-auto-import) libraries ++ lt_prog_compiler_pic_FC='-DDLL_EXPORT' ++ ;; ++ ++ darwin* | rhapsody*) ++ # PIC is the default on this platform ++ # Common symbols not allowed in MH_DYLIB files ++ lt_prog_compiler_pic_FC='-fno-common' ++ ;; ++ ++ hpux*) ++ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit ++ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag ++ # sets the default TLS model and affects inlining. ++ case $host_cpu in ++ hppa*64*) ++ # +Z the default ++ ;; ++ *) ++ lt_prog_compiler_pic_FC='-fPIC' ++ ;; ++ esac ++ ;; ++ ++ interix[3-9]*) ++ # Interix 3.x gcc -fpic/-fPIC options generate broken code. ++ # Instead, we relocate shared libraries at runtime. ++ ;; ++ ++ msdosdjgpp*) ++ # Just because we use GCC doesn't mean we suddenly get shared libraries ++ # on systems that don't support them. ++ lt_prog_compiler_can_build_shared_FC=no ++ enable_shared=no ++ ;; ++ ++ *nto* | *qnx*) ++ # QNX uses GNU C++, but need to define -shared option too, otherwise ++ # it will coredump. ++ lt_prog_compiler_pic_FC='-fPIC -shared' ++ ;; ++ ++ sysv4*MP*) ++ if test -d /usr/nec; then ++ lt_prog_compiler_pic_FC=-Kconform_pic ++ fi ++ ;; ++ ++ *) ++ lt_prog_compiler_pic_FC='-fPIC' ++ ;; ++ esac ++ else ++ # PORTME Check for flag to pass linker flags through the system compiler. ++ case $host_os in ++ aix*) ++ lt_prog_compiler_wl_FC='-Wl,' ++ if test "$host_cpu" = ia64; then ++ # AIX 5 now supports IA64 processor ++ lt_prog_compiler_static_FC='-Bstatic' ++ else ++ lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' ++ fi ++ ;; ++ ++ mingw* | cygwin* | pw32* | os2* | cegcc*) ++ # This hack is so that the source file can tell whether it is being ++ # built for inclusion in a dll (and should export symbols for example). ++ lt_prog_compiler_pic_FC='-DDLL_EXPORT' ++ ;; ++ ++ hpux9* | hpux10* | hpux11*) ++ lt_prog_compiler_wl_FC='-Wl,' ++ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but ++ # not for PA HP-UX. ++ case $host_cpu in ++ hppa*64*|ia64*) ++ # +Z the default ++ ;; ++ *) ++ lt_prog_compiler_pic_FC='+Z' ++ ;; ++ esac ++ # Is there a better lt_prog_compiler_static that works with the bundled CC? ++ lt_prog_compiler_static_FC='${wl}-a ${wl}archive' ++ ;; ++ ++ irix5* | irix6* | nonstopux*) ++ lt_prog_compiler_wl_FC='-Wl,' ++ # PIC (with -KPIC) is the default. ++ lt_prog_compiler_static_FC='-non_shared' ++ ;; ++ ++ linux* | k*bsd*-gnu) ++ case $cc_basename in ++ # old Intel for x86_64 which still supported -KPIC. ++ ecc*) ++ lt_prog_compiler_wl_FC='-Wl,' ++ lt_prog_compiler_pic_FC='-KPIC' ++ lt_prog_compiler_static_FC='-static' ++ ;; ++ # icc used to be incompatible with GCC. ++ # ICC 10 doesn't accept -KPIC any more. ++ icc* | ifort*) ++ lt_prog_compiler_wl_FC='-Wl,' ++ lt_prog_compiler_pic_FC='-fPIC' ++ lt_prog_compiler_static_FC='-static' ++ ;; ++ # Lahey Fortran 8.1. ++ lf95*) ++ lt_prog_compiler_wl_FC='-Wl,' ++ lt_prog_compiler_pic_FC='--shared' ++ lt_prog_compiler_static_FC='--static' ++ ;; ++ pgcc* | pgf77* | pgf90* | pgf95*) ++ # Portland Group compilers (*not* the Pentium gcc compiler, ++ # which looks to be a dead project) ++ lt_prog_compiler_wl_FC='-Wl,' ++ lt_prog_compiler_pic_FC='-fpic' ++ lt_prog_compiler_static_FC='-Bstatic' ++ ;; ++ ccc*) ++ lt_prog_compiler_wl_FC='-Wl,' ++ # All Alpha code is PIC. ++ lt_prog_compiler_static_FC='-non_shared' ++ ;; ++ xl*) ++ # IBM XL C 8.0/Fortran 10.1 on PPC ++ lt_prog_compiler_wl_FC='-Wl,' ++ lt_prog_compiler_pic_FC='-qpic' ++ lt_prog_compiler_static_FC='-qstaticlink' ++ ;; ++ *) ++ case `$CC -V 2>&1 | sed 5q` in ++ *Sun\ F* | *Sun*Fortran*) ++ # Sun Fortran 8.3 passes all unrecognized flags to the linker ++ lt_prog_compiler_pic_FC='-KPIC' ++ lt_prog_compiler_static_FC='-Bstatic' ++ lt_prog_compiler_wl_FC='' ++ ;; ++ *Sun\ C*) ++ # Sun C 5.9 ++ lt_prog_compiler_pic_FC='-KPIC' ++ lt_prog_compiler_static_FC='-Bstatic' ++ lt_prog_compiler_wl_FC='-Wl,' ++ ;; ++ esac ++ ;; ++ esac ++ ;; ++ ++ newsos6) ++ lt_prog_compiler_pic_FC='-KPIC' ++ lt_prog_compiler_static_FC='-Bstatic' ++ ;; ++ ++ *nto* | *qnx*) ++ # QNX uses GNU C++, but need to define -shared option too, otherwise ++ # it will coredump. ++ lt_prog_compiler_pic_FC='-fPIC -shared' ++ ;; ++ ++ osf3* | osf4* | osf5*) ++ lt_prog_compiler_wl_FC='-Wl,' ++ # All OSF/1 code is PIC. ++ lt_prog_compiler_static_FC='-non_shared' ++ ;; ++ ++ rdos*) ++ lt_prog_compiler_static_FC='-non_shared' ++ ;; ++ ++ solaris*) ++ lt_prog_compiler_pic_FC='-KPIC' ++ lt_prog_compiler_static_FC='-Bstatic' ++ case $cc_basename in ++ f77* | f90* | f95*) ++ lt_prog_compiler_wl_FC='-Qoption ld ';; ++ *) ++ lt_prog_compiler_wl_FC='-Wl,';; ++ esac ++ ;; ++ ++ sunos4*) ++ lt_prog_compiler_wl_FC='-Qoption ld ' ++ lt_prog_compiler_pic_FC='-PIC' ++ lt_prog_compiler_static_FC='-Bstatic' ++ ;; ++ ++ sysv4 | sysv4.2uw2* | sysv4.3*) ++ lt_prog_compiler_wl_FC='-Wl,' ++ lt_prog_compiler_pic_FC='-KPIC' ++ lt_prog_compiler_static_FC='-Bstatic' ++ ;; ++ ++ sysv4*MP*) ++ if test -d /usr/nec ;then ++ lt_prog_compiler_pic_FC='-Kconform_pic' ++ lt_prog_compiler_static_FC='-Bstatic' ++ fi ++ ;; ++ ++ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) ++ lt_prog_compiler_wl_FC='-Wl,' ++ lt_prog_compiler_pic_FC='-KPIC' ++ lt_prog_compiler_static_FC='-Bstatic' ++ ;; ++ ++ unicos*) ++ lt_prog_compiler_wl_FC='-Wl,' ++ lt_prog_compiler_can_build_shared_FC=no ++ ;; ++ ++ uts4*) ++ lt_prog_compiler_pic_FC='-pic' ++ lt_prog_compiler_static_FC='-Bstatic' ++ ;; ++ ++ *) ++ lt_prog_compiler_can_build_shared_FC=no ++ ;; ++ esac ++ fi ++ ++case $host_os in ++ # For platforms which do not support PIC, -DPIC is meaningless: ++ *djgpp*) ++ lt_prog_compiler_pic_FC= ++ ;; ++ *) ++ lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC@&t@" ++ ;; ++esac ++{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5 ++echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6; } ++ ++ ++ ++# ++# Check to make sure the PIC flag actually works. ++# ++if test -n "$lt_prog_compiler_pic_FC"; then ++ { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 ++echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_pic_works_FC=no ++ ac_outfile=conftest.$ac_objext ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ lt_compiler_flag="$lt_prog_compiler_pic_FC@&t@" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ # The option is referenced via a variable to avoid confusing sed. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>conftest.err) ++ ac_status=$? ++ cat conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s "$ac_outfile"; then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings other than the usual output. ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp ++ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 ++ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_pic_works_FC=yes ++ fi ++ fi ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_FC" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_FC" >&6; } ++ ++if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then ++ case $lt_prog_compiler_pic_FC in ++ "" | " "*) ;; ++ *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; ++ esac ++else ++ lt_prog_compiler_pic_FC= ++ lt_prog_compiler_can_build_shared_FC=no ++fi ++ ++fi ++ ++ ++ ++# ++# Check to make sure the static flag actually works. ++# ++wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" ++{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 ++echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_static_works_FC=no ++ save_LDFLAGS="$LDFLAGS" ++ LDFLAGS="$LDFLAGS $lt_tmp_static_flag" ++ echo "$lt_simple_link_test_code" > conftest.$ac_ext ++ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then ++ # The linker can only warn and ignore the option if not recognized ++ # So say no if there are warnings ++ if test -s conftest.err; then ++ # Append any errors to the config.log. ++ cat conftest.err 1>&5 ++ $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp ++ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 ++ if diff conftest.exp conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_static_works_FC=yes ++ fi ++ else ++ lt_cv_prog_compiler_static_works_FC=yes ++ fi ++ fi ++ $RM -r conftest* ++ LDFLAGS="$save_LDFLAGS" ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_FC" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_static_works_FC" >&6; } ++ ++if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then ++ : ++else ++ lt_prog_compiler_static_FC= ++fi ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 ++echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_c_o_FC=no ++ $RM -r conftest 2>/dev/null ++ mkdir conftest ++ cd conftest ++ mkdir out ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ ++ lt_compiler_flag="-o out/conftest2.$ac_objext" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>out/conftest.err) ++ ac_status=$? ++ cat out/conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s out/conftest2.$ac_objext ++ then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp ++ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 ++ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_c_o_FC=yes ++ fi ++ fi ++ chmod u+w . 2>&5 ++ $RM conftest* ++ # SGI C++ compiler will create directory out/ii_files/ for ++ # template instantiation ++ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files ++ $RM out/* && rmdir out ++ cd .. ++ $RM -r conftest ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6; } ++ ++ ++ ++ { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 ++echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } ++if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ lt_cv_prog_compiler_c_o_FC=no ++ $RM -r conftest 2>/dev/null ++ mkdir conftest ++ cd conftest ++ mkdir out ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ ++ lt_compiler_flag="-o out/conftest2.$ac_objext" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) ++ (eval "$lt_compile" 2>out/conftest.err) ++ ac_status=$? ++ cat out/conftest.err >&5 ++ echo "$as_me:__oline__: \$? = $ac_status" >&5 ++ if (exit $ac_status) && test -s out/conftest2.$ac_objext ++ then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp ++ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 ++ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then ++ lt_cv_prog_compiler_c_o_FC=yes ++ fi ++ fi ++ chmod u+w . 2>&5 ++ $RM conftest* ++ # SGI C++ compiler will create directory out/ii_files/ for ++ # template instantiation ++ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files ++ $RM out/* && rmdir out ++ cd .. ++ $RM -r conftest ++ $RM conftest* ++ ++fi ++{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5 ++echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6; } ++ ++ ++ ++ ++hard_links="nottested" ++if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then ++ # do not overwrite the value of need_locks provided by the user ++ { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 ++echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } ++ hard_links=yes ++ $RM conftest* ++ ln conftest.a conftest.b 2>/dev/null && hard_links=no ++ touch conftest.a ++ ln conftest.a conftest.b 2>&5 || hard_links=no ++ ln conftest.a conftest.b 2>/dev/null && hard_links=no ++ { echo "$as_me:$LINENO: result: $hard_links" >&5 ++echo "${ECHO_T}$hard_links" >&6; } ++ if test "$hard_links" = no; then ++ { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 ++echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} ++ need_locks=warn ++ fi ++else ++ need_locks=no ++fi ++ ++ ++ ++ { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 ++echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } ++ ++ runpath_var= ++ allow_undefined_flag_FC= ++ always_export_symbols_FC=no ++ archive_cmds_FC= ++ archive_expsym_cmds_FC= ++ compiler_needs_object_FC=no ++ enable_shared_with_static_runtimes_FC=no ++ export_dynamic_flag_spec_FC= ++ export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ++ hardcode_automatic_FC=no ++ hardcode_direct_FC=no ++ hardcode_direct_absolute_FC=no ++ hardcode_libdir_flag_spec_FC= ++ hardcode_libdir_flag_spec_ld_FC= ++ hardcode_libdir_separator_FC= ++ hardcode_minus_L_FC=no ++ hardcode_shlibpath_var_FC=unsupported ++ inherit_rpath_FC=no ++ link_all_deplibs_FC=unknown ++ module_cmds_FC= ++ module_expsym_cmds_FC= ++ old_archive_from_new_cmds_FC= ++ old_archive_from_expsyms_cmds_FC= ++ thread_safe_flag_spec_FC= ++ whole_archive_flag_spec_FC= ++ # include_expsyms should be a list of space-separated symbols to be *always* ++ # included in the symbol list ++ include_expsyms_FC= ++ # exclude_expsyms can be an extended regexp of symbols to exclude ++ # it will be wrapped by ` (' and `)$', so one must not match beginning or ++ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', ++ # as well as any symbol that contains `d'. ++ exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' ++ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out ++ # platforms (ab)use it in PIC code, but their linkers get confused if ++ # the symbol is explicitly referenced. Since portable code cannot ++ # rely on this symbol name, it's probably fine to never include it in ++ # preloaded symbol tables. ++ # Exclude shared library initialization/finalization symbols. ++ extract_expsyms_cmds= ++ ++ case $host_os in ++ cygwin* | mingw* | pw32* | cegcc*) ++ # FIXME: the MSVC++ port hasn't been tested in a loooong time ++ # When not using gcc, we currently assume that we are using ++ # Microsoft Visual C++. ++ if test "$GCC" != yes; then ++ with_gnu_ld=no ++ fi ++ ;; ++ interix*) ++ # we just hope/assume this is gcc and not c89 (= MSVC++) ++ with_gnu_ld=yes ++ ;; ++ openbsd*) ++ with_gnu_ld=no ++ ;; ++ esac ++ ++ ld_shlibs_FC=yes ++ if test "$with_gnu_ld" = yes; then ++ # If archive_cmds runs LD, not CC, wlarc should be empty ++ wlarc='${wl}' ++ ++ # Set some defaults for GNU ld with shared library support. These ++ # are reset later if shared libraries are not supported. Putting them ++ # here allows them to be overridden if necessary. ++ runpath_var=LD_RUN_PATH ++ hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' ++ export_dynamic_flag_spec_FC='${wl}--export-dynamic' ++ # ancient GNU ld didn't support --whole-archive et. al. ++ if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then ++ whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' ++ else ++ whole_archive_flag_spec_FC= ++ fi ++ supports_anon_versioning=no ++ case `$LD -v 2>&1` in ++ *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 ++ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... ++ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... ++ *\ 2.11.*) ;; # other 2.11 versions ++ *) supports_anon_versioning=yes ;; ++ esac ++ ++ # See if GNU ld supports shared libraries. ++ case $host_os in ++ aix[3-9]*) ++ # On AIX/PPC, the GNU linker is very broken ++ if test "$host_cpu" != ia64; then ++ ld_shlibs_FC=no ++ cat <<_LT_EOF 1>&2 ++ ++*** Warning: the GNU linker, at least up to release 2.9.1, is reported ++*** to be unable to reliably create shared libraries on AIX. ++*** Therefore, libtool is disabling shared libraries support. If you ++*** really care for shared libraries, you may want to modify your PATH ++*** so that a non-GNU linker is found, and then restart. ++ ++_LT_EOF ++ fi ++ ;; ++ ++ amigaos*) ++ case $host_cpu in ++ powerpc) ++ # see comment about AmigaOS4 .so support ++ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_FC='' ++ ;; ++ m68k) ++ archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' ++ hardcode_libdir_flag_spec_FC='-L$libdir' ++ hardcode_minus_L_FC=yes ++ ;; ++ esac ++ ;; ++ ++ beos*) ++ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ allow_undefined_flag_FC=unsupported ++ # Joseph Beckenbach says some releases of gcc ++ # support --undefined. This deserves some investigation. FIXME ++ archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ else ++ ld_shlibs_FC=no ++ fi ++ ;; ++ ++ cygwin* | mingw* | pw32* | cegcc*) ++ # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, ++ # as there is no search path for DLLs. ++ hardcode_libdir_flag_spec_FC='-L$libdir' ++ allow_undefined_flag_FC=unsupported ++ always_export_symbols_FC=no ++ enable_shared_with_static_runtimes_FC=yes ++ export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' ++ ++ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then ++ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' ++ # If the export-symbols file already is a .def file (1st line ++ # is EXPORTS), use it as is; otherwise, prepend... ++ archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then ++ cp $export_symbols $output_objdir/$soname.def; ++ else ++ echo EXPORTS > $output_objdir/$soname.def; ++ cat $export_symbols >> $output_objdir/$soname.def; ++ fi~ ++ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' ++ else ++ ld_shlibs_FC=no ++ fi ++ ;; ++ ++ interix[3-9]*) ++ hardcode_direct_FC=no ++ hardcode_shlibpath_var_FC=no ++ hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' ++ export_dynamic_flag_spec_FC='${wl}-E' ++ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. ++ # Instead, shared libraries are loaded at an image base (0x10000000 by ++ # default) and relocated if they conflict, which is a slow very memory ++ # consuming and fragmenting process. To avoid this, we pick a random, ++ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link ++ # time. Moving up from 0x10000000 also allows more sbrk(2) space. ++ archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ++ archive_expsym_cmds_FC='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ++ ;; ++ ++ gnu* | linux* | tpf* | k*bsd*-gnu) ++ tmp_diet=no ++ if test "$host_os" = linux-dietlibc; then ++ case $cc_basename in ++ diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) ++ esac ++ fi ++ if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ ++ && test "$tmp_diet" = no ++ then ++ tmp_addflag= ++ tmp_sharedflag='-shared' ++ case $cc_basename,$host_cpu in ++ pgcc*) # Portland Group C compiler ++ whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ++ tmp_addflag=' $pic_flag' ++ ;; ++ pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers ++ whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ++ tmp_addflag=' $pic_flag -Mnomain' ;; ++ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 ++ tmp_addflag=' -i_dynamic' ;; ++ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 ++ tmp_addflag=' -i_dynamic -nofor_main' ;; ++ ifc* | ifort*) # Intel Fortran compiler ++ tmp_addflag=' -nofor_main' ;; ++ lf95*) # Lahey Fortran 8.1 ++ whole_archive_flag_spec_FC= ++ tmp_sharedflag='--shared' ;; ++ xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) ++ tmp_sharedflag='-qmkshrobj' ++ tmp_addflag= ;; ++ esac ++ case `$CC -V 2>&1 | sed 5q` in ++ *Sun\ C*) # Sun C 5.9 ++ whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ++ compiler_needs_object_FC=yes ++ tmp_sharedflag='-G' ;; ++ *Sun\ F*) # Sun Fortran 8.3 ++ tmp_sharedflag='-G' ;; ++ esac ++ archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ ++ if test "x$supports_anon_versioning" = xyes; then ++ archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ ++ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ ++ echo "local: *; };" >> $output_objdir/$libname.ver~ ++ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' ++ fi ++ ++ case $cc_basename in ++ xlf*) ++ # IBM XL Fortran 10.1 on PPC cannot create shared libs itself ++ whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' ++ hardcode_libdir_flag_spec_FC= ++ hardcode_libdir_flag_spec_ld_FC='-rpath $libdir' ++ archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' ++ if test "x$supports_anon_versioning" = xyes; then ++ archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ ++ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ ++ echo "local: *; };" >> $output_objdir/$libname.ver~ ++ $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' ++ fi ++ ;; ++ esac ++ else ++ ld_shlibs_FC=no ++ fi ++ ;; ++ ++ netbsd*) ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then ++ archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' ++ wlarc= ++ else ++ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ fi ++ ;; ++ ++ solaris*) ++ if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ++ ld_shlibs_FC=no ++ cat <<_LT_EOF 1>&2 ++ ++*** Warning: The releases 2.8.* of the GNU linker cannot reliably ++*** create shared libraries on Solaris systems. Therefore, libtool ++*** is disabling shared libraries support. We urge you to upgrade GNU ++*** binutils to release 2.9.1 or newer. Another option is to modify ++*** your PATH or compiler configuration so that the native linker is ++*** used, and then restart. ++ ++_LT_EOF ++ elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ else ++ ld_shlibs_FC=no ++ fi ++ ;; ++ ++ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) ++ case `$LD -v 2>&1` in ++ *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ++ ld_shlibs_FC=no ++ cat <<_LT_EOF 1>&2 ++ ++*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not ++*** reliably create shared libraries on SCO systems. Therefore, libtool ++*** is disabling shared libraries support. We urge you to upgrade GNU ++*** binutils to release 2.16.91.0.3 or newer. Another option is to modify ++*** your PATH or compiler configuration so that the native linker is ++*** used, and then restart. ++ ++_LT_EOF ++ ;; ++ *) ++ # For security reasons, it is highly recommended that you always ++ # use absolute paths for naming shared libraries, and exclude the ++ # DT_RUNPATH tag from executables and libraries. But doing so ++ # requires that you compile everything twice, which is a pain. ++ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' ++ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ else ++ ld_shlibs_FC=no ++ fi ++ ;; ++ esac ++ ;; ++ ++ sunos4*) ++ archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' ++ wlarc= ++ hardcode_direct_FC=yes ++ hardcode_shlibpath_var_FC=no ++ ;; ++ ++ *) ++ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then ++ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ else ++ ld_shlibs_FC=no ++ fi ++ ;; ++ esac ++ ++ if test "$ld_shlibs_FC" = no; then ++ runpath_var= ++ hardcode_libdir_flag_spec_FC= ++ export_dynamic_flag_spec_FC= ++ whole_archive_flag_spec_FC= ++ fi ++ else ++ # PORTME fill in a description of your system's linker (not GNU ld) ++ case $host_os in ++ aix3*) ++ allow_undefined_flag_FC=unsupported ++ always_export_symbols_FC=yes ++ archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' ++ # Note: this linker hardcodes the directories in LIBPATH if there ++ # are no directories specified by -L. ++ hardcode_minus_L_FC=yes ++ if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then ++ # Neither direct hardcoding nor static linking is supported with a ++ # broken collect2. ++ hardcode_direct_FC=unsupported ++ fi ++ ;; ++ ++ aix[4-9]*) ++ if test "$host_cpu" = ia64; then ++ # On IA64, the linker does run time linking by default, so we don't ++ # have to do anything special. ++ aix_use_runtimelinking=no ++ exp_sym_flag='-Bexport' ++ no_entry_flag="" ++ else ++ # If we're using GNU nm, then we don't want the "-C" option. ++ # -C means demangle to AIX nm, but means don't demangle with GNU nm ++ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then ++ export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' ++ else ++ export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' ++ fi ++ aix_use_runtimelinking=no ++ ++ # Test if we are trying to use run time linking or normal ++ # AIX style linking. If -brtl is somewhere in LDFLAGS, we ++ # need to do runtime linking. ++ case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) ++ for ld_flag in $LDFLAGS; do ++ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then ++ aix_use_runtimelinking=yes ++ break ++ fi ++ done ++ ;; ++ esac ++ ++ exp_sym_flag='-bexport' ++ no_entry_flag='-bnoentry' ++ fi ++ ++ # When large executables or shared objects are built, AIX ld can ++ # have problems creating the table of contents. If linking a library ++ # or program results in "error TOC overflow" add -mminimal-toc to ++ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not ++ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. ++ ++ archive_cmds_FC='' ++ hardcode_direct_FC=yes ++ hardcode_direct_absolute_FC=yes ++ hardcode_libdir_separator_FC=':' ++ link_all_deplibs_FC=yes ++ file_list_spec_FC='${wl}-f,' ++ ++ if test "$GCC" = yes; then ++ case $host_os in aix4.[012]|aix4.[012].*) ++ # We only want to do this on AIX 4.2 and lower, the check ++ # below for broken collect2 doesn't work under 4.3+ ++ collect2name=`${CC} -print-prog-name=collect2` ++ if test -f "$collect2name" && ++ strings "$collect2name" | $GREP resolve_lib_name >/dev/null ++ then ++ # We have reworked collect2 ++ : ++ else ++ # We have old collect2 ++ hardcode_direct_FC=unsupported ++ # It fails to find uninstalled libraries when the uninstalled ++ # path is not listed in the libpath. Setting hardcode_minus_L ++ # to unsupported forces relinking ++ hardcode_minus_L_FC=yes ++ hardcode_libdir_flag_spec_FC='-L$libdir' ++ hardcode_libdir_separator_FC= ++ fi ++ ;; ++ esac ++ shared_flag='-shared' ++ if test "$aix_use_runtimelinking" = yes; then ++ shared_flag="$shared_flag "'${wl}-G' ++ fi ++ else ++ # not using gcc ++ if test "$host_cpu" = ia64; then ++ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release ++ # chokes on -Wl,-G. The following line is correct: ++ shared_flag='-G' ++ else ++ if test "$aix_use_runtimelinking" = yes; then ++ shared_flag='${wl}-G' ++ else ++ shared_flag='${wl}-bM:SRE' ++ fi ++ fi ++ fi ++ ++ export_dynamic_flag_spec_FC='${wl}-bexpall' ++ # It seems that -bexpall does not export symbols beginning with ++ # underscore (_), so it is better to generate a list of symbols to export. ++ always_export_symbols_FC=yes ++ if test "$aix_use_runtimelinking" = yes; then ++ # Warning - without using the other runtime loading flags (-brtl), ++ # -berok will link without error, but may produce a broken library. ++ allow_undefined_flag_FC='-berok' ++ # Determine the default libpath from the value encoded in an ++ # empty executable. ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ++lt_aix_libpath_sed=' ++ /Import File Strings/,/^$/ { ++ /^0/ { ++ s/^0 *\(.*\)$/\1/ ++ p ++ } ++ }' ++aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++# Check for a 64-bit object if we didn't find anything. ++if test -z "$aix_libpath"; then ++ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++fi ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ++ ++ hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" ++ archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" ++ else ++ if test "$host_cpu" = ia64; then ++ hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' ++ allow_undefined_flag_FC="-z nodefs" ++ archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" ++ else ++ # Determine the default libpath from the value encoded in an ++ # empty executable. ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ++lt_aix_libpath_sed=' ++ /Import File Strings/,/^$/ { ++ /^0/ { ++ s/^0 *\(.*\)$/\1/ ++ p ++ } ++ }' ++aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++# Check for a 64-bit object if we didn't find anything. ++if test -z "$aix_libpath"; then ++ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` ++fi ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ++ ++ hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" ++ # Warning - without using the other run time loading flags, ++ # -berok will link without error, but may produce a broken library. ++ no_undefined_flag_FC=' ${wl}-bernotok' ++ allow_undefined_flag_FC=' ${wl}-berok' ++ # Exported symbols can be pulled into shared objects from archives ++ whole_archive_flag_spec_FC='$convenience' ++ archive_cmds_need_lc_FC=yes ++ # This is similar to how AIX traditionally builds its shared libraries. ++ archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' ++ fi ++ fi ++ ;; ++ ++ amigaos*) ++ case $host_cpu in ++ powerpc) ++ # see comment about AmigaOS4 .so support ++ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds_FC='' ++ ;; ++ m68k) ++ archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' ++ hardcode_libdir_flag_spec_FC='-L$libdir' ++ hardcode_minus_L_FC=yes ++ ;; ++ esac ++ ;; ++ ++ bsdi[45]*) ++ export_dynamic_flag_spec_FC=-rdynamic ++ ;; ++ ++ cygwin* | mingw* | pw32* | cegcc*) ++ # When not using gcc, we currently assume that we are using ++ # Microsoft Visual C++. ++ # hardcode_libdir_flag_spec is actually meaningless, as there is ++ # no search path for DLLs. ++ hardcode_libdir_flag_spec_FC=' ' ++ allow_undefined_flag_FC=unsupported ++ # Tell ltmain to make .lib files, not .a files. ++ libext=lib ++ # Tell ltmain to make .dll files, not .so files. ++ shrext_cmds=".dll" ++ # FIXME: Setting linknames here is a bad hack. ++ archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' ++ # The linker will automatically build a .lib file if we build a DLL. ++ old_archive_from_new_cmds_FC='true' ++ # FIXME: Should let the user specify the lib program. ++ old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' ++ fix_srcfile_path_FC='`cygpath -w "$srcfile"`' ++ enable_shared_with_static_runtimes_FC=yes ++ ;; ++ ++ darwin* | rhapsody*) ++ ++ ++ archive_cmds_need_lc_FC=no ++ hardcode_direct_FC=no ++ hardcode_automatic_FC=yes ++ hardcode_shlibpath_var_FC=unsupported ++ whole_archive_flag_spec_FC='' ++ link_all_deplibs_FC=yes ++ allow_undefined_flag_FC="$_lt_dar_allow_undefined" ++ case $cc_basename in ++ ifort*) _lt_dar_can_shared=yes ;; ++ *) _lt_dar_can_shared=$GCC ;; ++ esac ++ if test "$_lt_dar_can_shared" = "yes"; then ++ output_verbose_link_cmd=echo ++ archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" ++ module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" ++ archive_expsym_cmds_FC="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" ++ module_expsym_cmds_FC="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" ++ ++ else ++ ld_shlibs_FC=no ++ fi ++ ++ ;; ++ ++ dgux*) ++ archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_libdir_flag_spec_FC='-L$libdir' ++ hardcode_shlibpath_var_FC=no ++ ;; ++ ++ freebsd1*) ++ ld_shlibs_FC=no ++ ;; ++ ++ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor ++ # support. Future versions do this automatically, but an explicit c++rt0.o ++ # does not break anything, and helps significantly (at the cost of a little ++ # extra space). ++ freebsd2.2*) ++ archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' ++ hardcode_libdir_flag_spec_FC='-R$libdir' ++ hardcode_direct_FC=yes ++ hardcode_shlibpath_var_FC=no ++ ;; ++ ++ # Unfortunately, older versions of FreeBSD 2 do not have this feature. ++ freebsd2*) ++ archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_direct_FC=yes ++ hardcode_minus_L_FC=yes ++ hardcode_shlibpath_var_FC=no ++ ;; ++ ++ # FreeBSD 3 and greater uses gcc -shared to do shared libraries. ++ freebsd* | dragonfly*) ++ archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' ++ hardcode_libdir_flag_spec_FC='-R$libdir' ++ hardcode_direct_FC=yes ++ hardcode_shlibpath_var_FC=no ++ ;; ++ ++ hpux9*) ++ if test "$GCC" = yes; then ++ archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ++ else ++ archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ++ fi ++ hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' ++ hardcode_libdir_separator_FC=: ++ hardcode_direct_FC=yes ++ ++ # hardcode_minus_L: Not really in the search PATH, ++ # but as the default location of the library. ++ hardcode_minus_L_FC=yes ++ export_dynamic_flag_spec_FC='${wl}-E' ++ ;; ++ ++ hpux10*) ++ if test "$GCC" = yes -a "$with_gnu_ld" = no; then ++ archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ++ else ++ archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ++ fi ++ if test "$with_gnu_ld" = no; then ++ hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' ++ hardcode_libdir_flag_spec_ld_FC='+b $libdir' ++ hardcode_libdir_separator_FC=: ++ hardcode_direct_FC=yes ++ hardcode_direct_absolute_FC=yes ++ export_dynamic_flag_spec_FC='${wl}-E' ++ # hardcode_minus_L: Not really in the search PATH, ++ # but as the default location of the library. ++ hardcode_minus_L_FC=yes ++ fi ++ ;; ++ ++ hpux11*) ++ if test "$GCC" = yes -a "$with_gnu_ld" = no; then ++ case $host_cpu in ++ hppa*64*) ++ archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ ia64*) ++ archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ *) ++ archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ esac ++ else ++ case $host_cpu in ++ hppa*64*) ++ archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ ia64*) ++ archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ *) ++ archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ++ ;; ++ esac ++ fi ++ if test "$with_gnu_ld" = no; then ++ hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' ++ hardcode_libdir_separator_FC=: ++ ++ case $host_cpu in ++ hppa*64*|ia64*) ++ hardcode_direct_FC=no ++ hardcode_shlibpath_var_FC=no ++ ;; ++ *) ++ hardcode_direct_FC=yes ++ hardcode_direct_absolute_FC=yes ++ export_dynamic_flag_spec_FC='${wl}-E' ++ ++ # hardcode_minus_L: Not really in the search PATH, ++ # but as the default location of the library. ++ hardcode_minus_L_FC=yes ++ ;; ++ esac ++ fi ++ ;; ++ ++ irix5* | irix6* | nonstopux*) ++ if test "$GCC" = yes; then ++ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ++ # Try to use the -exported_symbol ld option, if it does not ++ # work, assume that -exports_file does not work either and ++ # implicitly export all symbols. ++ save_LDFLAGS="$LDFLAGS" ++ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" ++ cat >conftest.$ac_ext <<_ACEOF ++int foo(void) {} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LDFLAGS="$save_LDFLAGS" ++ else ++ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' ++ archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' ++ fi ++ archive_cmds_need_lc_FC='no' ++ hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' ++ hardcode_libdir_separator_FC=: ++ inherit_rpath_FC=yes ++ link_all_deplibs_FC=yes ++ ;; ++ ++ netbsd*) ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then ++ archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out ++ else ++ archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF ++ fi ++ hardcode_libdir_flag_spec_FC='-R$libdir' ++ hardcode_direct_FC=yes ++ hardcode_shlibpath_var_FC=no ++ ;; ++ ++ newsos6) ++ archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_direct_FC=yes ++ hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' ++ hardcode_libdir_separator_FC=: ++ hardcode_shlibpath_var_FC=no ++ ;; ++ ++ *nto* | *qnx*) ++ ;; ++ ++ openbsd*) ++ if test -f /usr/libexec/ld.so; then ++ hardcode_direct_FC=yes ++ hardcode_shlibpath_var_FC=no ++ hardcode_direct_absolute_FC=yes ++ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ++ archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' ++ hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' ++ export_dynamic_flag_spec_FC='${wl}-E' ++ else ++ case $host_os in ++ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) ++ archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_libdir_flag_spec_FC='-R$libdir' ++ ;; ++ *) ++ archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ++ hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' ++ ;; ++ esac ++ fi ++ else ++ ld_shlibs_FC=no ++ fi ++ ;; ++ ++ os2*) ++ hardcode_libdir_flag_spec_FC='-L$libdir' ++ hardcode_minus_L_FC=yes ++ allow_undefined_flag_FC=unsupported ++ archive_cmds_FC='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' ++ old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ++ ;; ++ ++ osf3*) ++ if test "$GCC" = yes; then ++ allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' ++ archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ++ else ++ allow_undefined_flag_FC=' -expect_unresolved \*' ++ archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' ++ fi ++ archive_cmds_need_lc_FC='no' ++ hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' ++ hardcode_libdir_separator_FC=: ++ ;; ++ ++ osf4* | osf5*) # as osf3* with the addition of -msym flag ++ if test "$GCC" = yes; then ++ allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' ++ archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ++ hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' ++ else ++ allow_undefined_flag_FC=' -expect_unresolved \*' ++ archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' ++ archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ ++ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' ++ ++ # Both c and cxx compiler support -rpath directly ++ hardcode_libdir_flag_spec_FC='-rpath $libdir' ++ fi ++ archive_cmds_need_lc_FC='no' ++ hardcode_libdir_separator_FC=: ++ ;; ++ ++ solaris*) ++ no_undefined_flag_FC=' -z defs' ++ if test "$GCC" = yes; then ++ wlarc='${wl}' ++ archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ ++ $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ++ else ++ case `$CC -V 2>&1` in ++ *"Compilers 5.0"*) ++ wlarc='' ++ archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ ++ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ++ ;; ++ *) ++ wlarc='${wl}' ++ archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ ++ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ++ ;; ++ esac ++ fi ++ hardcode_libdir_flag_spec_FC='-R$libdir' ++ hardcode_shlibpath_var_FC=no ++ case $host_os in ++ solaris2.[0-5] | solaris2.[0-5].*) ;; ++ *) ++ # The compiler driver will combine and reorder linker options, ++ # but understands `-z linker_flag'. GCC discards it without `$wl', ++ # but is careful enough not to reorder. ++ # Supported since Solaris 2.6 (maybe 2.5.1?) ++ if test "$GCC" = yes; then ++ whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ++ else ++ whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' ++ fi ++ ;; ++ esac ++ link_all_deplibs_FC=yes ++ ;; ++ ++ sunos4*) ++ if test "x$host_vendor" = xsequent; then ++ # Use $CC to link under sequent, because it throws in some extra .o ++ # files that make .init and .fini sections work. ++ archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' ++ else ++ archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' ++ fi ++ hardcode_libdir_flag_spec_FC='-L$libdir' ++ hardcode_direct_FC=yes ++ hardcode_minus_L_FC=yes ++ hardcode_shlibpath_var_FC=no ++ ;; ++ ++ sysv4) ++ case $host_vendor in ++ sni) ++ archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_direct_FC=yes # is this really true??? ++ ;; ++ siemens) ++ ## LD is ld it makes a PLAMLIB ++ ## CC just makes a GrossModule. ++ archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' ++ reload_cmds_FC='$CC -r -o $output$reload_objs' ++ hardcode_direct_FC=no ++ ;; ++ motorola) ++ archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie ++ ;; ++ esac ++ runpath_var='LD_RUN_PATH' ++ hardcode_shlibpath_var_FC=no ++ ;; ++ ++ sysv4.3*) ++ archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_shlibpath_var_FC=no ++ export_dynamic_flag_spec_FC='-Bexport' ++ ;; ++ ++ sysv4*MP*) ++ if test -d /usr/nec; then ++ archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_shlibpath_var_FC=no ++ runpath_var=LD_RUN_PATH ++ hardcode_runpath_var=yes ++ ld_shlibs_FC=yes ++ fi ++ ;; ++ ++ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) ++ no_undefined_flag_FC='${wl}-z,text' ++ archive_cmds_need_lc_FC=no ++ hardcode_shlibpath_var_FC=no ++ runpath_var='LD_RUN_PATH' ++ ++ if test "$GCC" = yes; then ++ archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ else ++ archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ fi ++ ;; ++ ++ sysv5* | sco3.2v5* | sco5v6*) ++ # Note: We can NOT use -z defs as we might desire, because we do not ++ # link with -lc, and that would cause any symbols used from libc to ++ # always be unresolved, which means just about no library would ++ # ever link correctly. If we're not using GNU ld we use -z text ++ # though, which does catch some bad symbols but isn't as heavy-handed ++ # as -z defs. ++ no_undefined_flag_FC='${wl}-z,text' ++ allow_undefined_flag_FC='${wl}-z,nodefs' ++ archive_cmds_need_lc_FC=no ++ hardcode_shlibpath_var_FC=no ++ hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' ++ hardcode_libdir_separator_FC=':' ++ link_all_deplibs_FC=yes ++ export_dynamic_flag_spec_FC='${wl}-Bexport' ++ runpath_var='LD_RUN_PATH' ++ ++ if test "$GCC" = yes; then ++ archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ else ++ archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ++ fi ++ ;; ++ ++ uts4*) ++ archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' ++ hardcode_libdir_flag_spec_FC='-L$libdir' ++ hardcode_shlibpath_var_FC=no ++ ;; ++ ++ *) ++ ld_shlibs_FC=no ++ ;; ++ esac ++ ++ if test x$host_vendor = xsni; then ++ case $host in ++ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ++ export_dynamic_flag_spec_FC='${wl}-Blargedynsym' ++ ;; ++ esac ++ fi ++ fi ++ ++{ echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5 ++echo "${ECHO_T}$ld_shlibs_FC" >&6; } ++test "$ld_shlibs_FC" = no && can_build_shared=no ++ ++with_gnu_ld_FC=$with_gnu_ld ++ ++ ++ ++ ++ ++ ++# ++# Do we need to explicitly link libc? ++# ++case "x$archive_cmds_need_lc_FC" in ++x|xyes) ++ # Assume -lc should be added ++ archive_cmds_need_lc_FC=yes ++ ++ if test "$enable_shared" = yes && test "$GCC" = yes; then ++ case $archive_cmds_FC in ++ *'~'*) ++ # FIXME: we may have to deal with multi-command sequences. ++ ;; ++ '$CC '*) ++ # Test whether the compiler implicitly links with -lc since on some ++ # systems, -lgcc has to come before -lc. If gcc already passes -lc ++ # to ld, don't add -lc before -lgcc. ++ { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 ++echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } ++ $RM conftest* ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ ++ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } 2>conftest.err; then ++ soname=conftest ++ lib=conftest ++ libobjs=conftest.$ac_objext ++ deplibs= ++ wl=$lt_prog_compiler_wl_FC ++ pic_flag=$lt_prog_compiler_pic_FC ++ compiler_flags=-v ++ linker_flags=-v ++ verstring= ++ output_objdir=. ++ libname=conftest ++ lt_save_allow_undefined_flag=$allow_undefined_flag_FC ++ allow_undefined_flag_FC= ++ if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 ++ (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } ++ then ++ archive_cmds_need_lc_FC=no ++ else ++ archive_cmds_need_lc_FC=yes ++ fi ++ allow_undefined_flag_FC=$lt_save_allow_undefined_flag ++ else ++ cat conftest.err 1>&5 ++ fi ++ $RM conftest* ++ { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_FC" >&5 ++echo "${ECHO_T}$archive_cmds_need_lc_FC" >&6; } ++ ;; ++ esac ++ fi ++ ;; ++esac ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 ++echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } ++ ++library_names_spec= ++libname_spec='lib$name' ++soname_spec= ++shrext_cmds=".so" ++postinstall_cmds= ++postuninstall_cmds= ++finish_cmds= ++finish_eval= ++shlibpath_var= ++shlibpath_overrides_runpath=unknown ++version_type=none ++dynamic_linker="$host_os ld.so" ++sys_lib_dlsearch_path_spec="/lib /usr/lib" ++need_lib_prefix=unknown ++hardcode_into_libs=no ++ ++# when you set need_version to no, make sure it does not cause -set_version ++# flags to be left without arguments ++need_version=unknown ++ ++case $host_os in ++aix3*) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' ++ shlibpath_var=LIBPATH ++ ++ # AIX 3 has no versioning support, so we append a major version to the name. ++ soname_spec='${libname}${release}${shared_ext}$major' ++ ;; ++ ++aix[4-9]*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ hardcode_into_libs=yes ++ if test "$host_cpu" = ia64; then ++ # AIX 5 supports IA64 ++ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ else ++ # With GCC up to 2.95.x, collect2 would create an import file ++ # for dependence libraries. The import file would start with ++ # the line `#! .'. This would cause the generated library to ++ # depend on `.', always an invalid library. This was fixed in ++ # development snapshots of GCC prior to 3.0. ++ case $host_os in ++ aix4 | aix4.[01] | aix4.[01].*) ++ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' ++ echo ' yes ' ++ echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then ++ : ++ else ++ can_build_shared=no ++ fi ++ ;; ++ esac ++ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct ++ # soname into executable. Probably we can add versioning support to ++ # collect2, so additional links can be useful in future. ++ if test "$aix_use_runtimelinking" = yes; then ++ # If using run time linking (on AIX 4.2 or later) use lib.so ++ # instead of lib.a to let people know that these are not ++ # typical AIX shared libraries. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ else ++ # We preserve .a as extension for shared libraries through AIX4.2 ++ # and later when we are not doing run time linking. ++ library_names_spec='${libname}${release}.a $libname.a' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ fi ++ shlibpath_var=LIBPATH ++ fi ++ ;; ++ ++amigaos*) ++ case $host_cpu in ++ powerpc) ++ # Since July 2007 AmigaOS4 officially supports .so libraries. ++ # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ ;; ++ m68k) ++ library_names_spec='$libname.ixlibrary $libname.a' ++ # Create ${libname}_ixlibrary.a entries in /sys/libs. ++ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ++ ;; ++ esac ++ ;; ++ ++beos*) ++ library_names_spec='${libname}${shared_ext}' ++ dynamic_linker="$host_os ld.so" ++ shlibpath_var=LIBRARY_PATH ++ ;; ++ ++bsdi[45]*) ++ version_type=linux ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" ++ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" ++ # the default ld.so.conf also contains /usr/contrib/lib and ++ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow ++ # libtool to hard-code these into programs ++ ;; ++ ++cygwin* | mingw* | pw32* | cegcc*) ++ version_type=windows ++ shrext_cmds=".dll" ++ need_version=no ++ need_lib_prefix=no ++ ++ case $GCC,$host_os in ++ yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) ++ library_names_spec='$libname.dll.a' ++ # DLL is installed to $(libdir)/../bin by postinstall_cmds ++ postinstall_cmds='base_file=`basename \${file}`~ ++ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ ++ dldir=$destdir/`dirname \$dlpath`~ ++ test -d \$dldir || mkdir -p \$dldir~ ++ $install_prog $dir/$dlname \$dldir/$dlname~ ++ chmod a+x \$dldir/$dlname~ ++ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then ++ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; ++ fi' ++ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ ++ dlpath=$dir/\$dldll~ ++ $RM \$dlpath' ++ shlibpath_overrides_runpath=yes ++ ++ case $host_os in ++ cygwin*) ++ # Cygwin DLLs use 'cyg' prefix rather than 'lib' ++ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ++ ;; ++ mingw* | cegcc*) ++ # MinGW DLLs use traditional 'lib' prefix ++ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` ++ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then ++ # It is most probably a Windows format PATH printed by ++ # mingw gcc, but we are running on Cygwin. Gcc prints its search ++ # path with ; separators, and with drive letters. We can handle the ++ # drive letters (cygwin fileutils understands them), so leave them, ++ # especially as we might pass files found there to a mingw objdump, ++ # which wouldn't understand a cygwinified path. Ahh. ++ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` ++ else ++ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ++ fi ++ ;; ++ pw32*) ++ # pw32 DLLs use 'pw' prefix rather than 'lib' ++ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ++ ;; ++ esac ++ ;; ++ ++ *) ++ library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ++ ;; ++ esac ++ dynamic_linker='Win32 ld.exe' ++ # FIXME: first we should search . and the directory the executable is in ++ shlibpath_var=PATH ++ ;; ++ ++darwin* | rhapsody*) ++ dynamic_linker="$host_os dyld" ++ version_type=darwin ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' ++ soname_spec='${libname}${release}${major}$shared_ext' ++ shlibpath_overrides_runpath=yes ++ shlibpath_var=DYLD_LIBRARY_PATH ++ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' ++ ++ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ++ ;; ++ ++dgux*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ ;; ++ ++freebsd1*) ++ dynamic_linker=no ++ ;; ++ ++freebsd* | dragonfly*) ++ # DragonFly does not have aout. When/if they implement a new ++ # versioning mechanism, adjust this. ++ if test -x /usr/bin/objformat; then ++ objformat=`/usr/bin/objformat` ++ else ++ case $host_os in ++ freebsd[123]*) objformat=aout ;; ++ *) objformat=elf ;; ++ esac ++ fi ++ version_type=freebsd-$objformat ++ case $version_type in ++ freebsd-elf*) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' ++ need_version=no ++ need_lib_prefix=no ++ ;; ++ freebsd-*) ++ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' ++ need_version=yes ++ ;; ++ esac ++ shlibpath_var=LD_LIBRARY_PATH ++ case $host_os in ++ freebsd2*) ++ shlibpath_overrides_runpath=yes ++ ;; ++ freebsd3.[01]* | freebsdelf3.[01]*) ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ ;; ++ freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ ++ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ ;; ++ *) # from 4.6 on, and DragonFly ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ ;; ++ esac ++ ;; ++ ++gnu*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ hardcode_into_libs=yes ++ ;; ++ ++hpux9* | hpux10* | hpux11*) ++ # Give a soname corresponding to the major version so that dld.sl refuses to ++ # link against other versions. ++ version_type=sunos ++ need_lib_prefix=no ++ need_version=no ++ case $host_cpu in ++ ia64*) ++ shrext_cmds='.so' ++ hardcode_into_libs=yes ++ dynamic_linker="$host_os dld.so" ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ if test "X$HPUX_IA64_MODE" = X32; then ++ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" ++ else ++ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" ++ fi ++ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ++ ;; ++ hppa*64*) ++ shrext_cmds='.sl' ++ hardcode_into_libs=yes ++ dynamic_linker="$host_os dld.sl" ++ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH ++ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" ++ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ++ ;; ++ *) ++ shrext_cmds='.sl' ++ dynamic_linker="$host_os dld.sl" ++ shlibpath_var=SHLIB_PATH ++ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ ;; ++ esac ++ # HP-UX runs *really* slowly unless shared libraries are mode 555. ++ postinstall_cmds='chmod 555 $lib' ++ ;; ++ ++interix[3-9]*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ ;; ++ ++irix5* | irix6* | nonstopux*) ++ case $host_os in ++ nonstopux*) version_type=nonstopux ;; ++ *) ++ if test "$lt_cv_prog_gnu_ld" = yes; then ++ version_type=linux ++ else ++ version_type=irix ++ fi ;; ++ esac ++ need_lib_prefix=no ++ need_version=no ++ soname_spec='${libname}${release}${shared_ext}$major' ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' ++ case $host_os in ++ irix5* | nonstopux*) ++ libsuff= shlibsuff= ++ ;; ++ *) ++ case $LD in # libtool.m4 will add one of these switches to LD ++ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") ++ libsuff= shlibsuff= libmagic=32-bit;; ++ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") ++ libsuff=32 shlibsuff=N32 libmagic=N32;; ++ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") ++ libsuff=64 shlibsuff=64 libmagic=64-bit;; ++ *) libsuff= shlibsuff= libmagic=never-match;; ++ esac ++ ;; ++ esac ++ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH ++ shlibpath_overrides_runpath=no ++ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" ++ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" ++ hardcode_into_libs=yes ++ ;; ++ ++# No shared lib support for Linux oldld, aout, or coff. ++linux*oldld* | linux*aout* | linux*coff*) ++ dynamic_linker=no ++ ;; ++ ++# This must be Linux ELF. ++linux* | k*bsd*-gnu) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ # Some binutils ld are patched to set DT_RUNPATH ++ save_LDFLAGS=$LDFLAGS ++ save_libdir=$libdir ++ eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ ++ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" ++ cat >conftest.$ac_ext <<_ACEOF ++ program main ++ ++ end ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_fc_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then ++ shlibpath_overrides_runpath=yes ++fi ++ ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++ LDFLAGS=$save_LDFLAGS ++ libdir=$save_libdir ++ ++ # This implies no fast_install, which is unacceptable. ++ # Some rework will be needed to allow for fast_install ++ # before this can be enabled. ++ hardcode_into_libs=yes ++ ++ # Append ld.so.conf contents to the search path ++ if test -f /etc/ld.so.conf; then ++ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` ++ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" ++ fi ++ ++ # We used to test for /lib/ld.so.1 and disable shared libraries on ++ # powerpc, because MkLinux only supported shared libraries with the ++ # GNU dynamic linker. Since this was broken with cross compilers, ++ # most powerpc-linux boxes support dynamic linking these days and ++ # people can always --disable-shared, the test was removed, and we ++ # assume the GNU/Linux dynamic linker is in use. ++ dynamic_linker='GNU/Linux ld.so' ++ ;; ++ ++netbsd*) ++ version_type=sunos ++ need_lib_prefix=no ++ need_version=no ++ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ++ dynamic_linker='NetBSD (a.out) ld.so' ++ else ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ dynamic_linker='NetBSD ld.elf_so' ++ fi ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ ;; ++ ++newsos6) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ ;; ++ ++*nto* | *qnx*) ++ version_type=qnx ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ dynamic_linker='ldqnx.so' ++ ;; ++ ++openbsd*) ++ version_type=sunos ++ sys_lib_dlsearch_path_spec="/usr/lib" ++ need_lib_prefix=no ++ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. ++ case $host_os in ++ openbsd3.3 | openbsd3.3.*) need_version=yes ;; ++ *) need_version=no ;; ++ esac ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then ++ case $host_os in ++ openbsd2.[89] | openbsd2.[89].*) ++ shlibpath_overrides_runpath=no ++ ;; ++ *) ++ shlibpath_overrides_runpath=yes ++ ;; ++ esac ++ else ++ shlibpath_overrides_runpath=yes ++ fi ++ ;; ++ ++os2*) ++ libname_spec='$name' ++ shrext_cmds=".dll" ++ need_lib_prefix=no ++ library_names_spec='$libname${shared_ext} $libname.a' ++ dynamic_linker='OS/2 ld.exe' ++ shlibpath_var=LIBPATH ++ ;; ++ ++osf3* | osf4* | osf5*) ++ version_type=osf ++ need_lib_prefix=no ++ need_version=no ++ soname_spec='${libname}${release}${shared_ext}$major' ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" ++ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ++ ;; ++ ++rdos*) ++ dynamic_linker=no ++ ;; ++ ++solaris*) ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ # ldd complains unless libraries are executable ++ postinstall_cmds='chmod +x $lib' ++ ;; ++ ++sunos4*) ++ version_type=sunos ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' ++ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ if test "$with_gnu_ld" = yes; then ++ need_lib_prefix=no ++ fi ++ need_version=yes ++ ;; ++ ++sysv4 | sysv4.3*) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ case $host_vendor in ++ sni) ++ shlibpath_overrides_runpath=no ++ need_lib_prefix=no ++ runpath_var=LD_RUN_PATH ++ ;; ++ siemens) ++ need_lib_prefix=no ++ ;; ++ motorola) ++ need_lib_prefix=no ++ need_version=no ++ shlibpath_overrides_runpath=no ++ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ++ ;; ++ esac ++ ;; ++ ++sysv4*MP*) ++ if test -d /usr/nec ;then ++ version_type=linux ++ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' ++ soname_spec='$libname${shared_ext}.$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ fi ++ ;; ++ ++sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) ++ version_type=freebsd-elf ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=yes ++ hardcode_into_libs=yes ++ if test "$with_gnu_ld" = yes; then ++ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' ++ else ++ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' ++ case $host_os in ++ sco3.2v5*) ++ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ++ ;; ++ esac ++ fi ++ sys_lib_dlsearch_path_spec='/usr/lib' ++ ;; ++ ++tpf*) ++ # TPF is a cross-target only. Preferred cross-host = GNU/Linux. ++ version_type=linux ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ shlibpath_var=LD_LIBRARY_PATH ++ shlibpath_overrides_runpath=no ++ hardcode_into_libs=yes ++ ;; ++ ++uts4*) ++ version_type=linux ++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ++ soname_spec='${libname}${release}${shared_ext}$major' ++ shlibpath_var=LD_LIBRARY_PATH ++ ;; ++ ++*) ++ dynamic_linker=no ++ ;; ++esac ++{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 ++echo "${ECHO_T}$dynamic_linker" >&6; } ++test "$dynamic_linker" = no && can_build_shared=no ++ ++variables_saved_for_relink="PATH $shlibpath_var $runpath_var" ++if test "$GCC" = yes; then ++ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" ++fi ++ ++if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then ++ sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" ++fi ++if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then ++ sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" ++fi ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 ++echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } ++hardcode_action_FC= ++if test -n "$hardcode_libdir_flag_spec_FC" || ++ test -n "$runpath_var_FC" || ++ test "X$hardcode_automatic_FC" = "Xyes" ; then ++ ++ # We can hardcode non-existent directories. ++ if test "$hardcode_direct_FC" != no && ++ # If the only mechanism to avoid hardcoding is shlibpath_var, we ++ # have to relink, otherwise we might link with an installed library ++ # when we should be linking with a yet-to-be-installed one ++ ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && ++ test "$hardcode_minus_L_FC" != no; then ++ # Linking always hardcodes the temporary library directory. ++ hardcode_action_FC=relink ++ else ++ # We can link without hardcoding, and we can hardcode nonexisting dirs. ++ hardcode_action_FC=immediate ++ fi ++else ++ # We cannot hardcode anything, or else we can only hardcode existing ++ # directories. ++ hardcode_action_FC=unsupported ++fi ++{ echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5 ++echo "${ECHO_T}$hardcode_action_FC" >&6; } ++ ++if test "$hardcode_action_FC" = relink || ++ test "$inherit_rpath_FC" = yes; then ++ # Fast installation is not supported ++ enable_fast_install=no ++elif test "$shlibpath_overrides_runpath" = yes || ++ test "$enable_shared" = no; then ++ # Fast installation is not necessary ++ enable_fast_install=needless ++fi ++ ++ ++ ++ ++ ++ ++ ++ fi # test -n "$compiler" ++ ++ GCC=$lt_save_GCC ++ CC="$lt_save_CC" ++fi # test "$_lt_disable_FC" != yes ++ ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ac_config_commands="$ac_config_commands libtool" ++ ++ ++ ++ ++# Only expand once: ++ ++ ++ ++ ++ompi_show_subtitle "GNU libltdl setup" ++ ++# AC_CONFIG_SUBDIRS appears to be broken for non-gcc compilers (i.e., ++# passing precious variables down to the sub-configure). ++# ++# Note that we also did some magic scripty-foo in autogen.sh to rename ++# the output libtool library "libompi_ltdl", so add -lompi_ltdl here. ++# This is because so many systems have older versions of libltdl ++# installed very early in ld.so's search path; if we installed our own ++# libltdl in some non-standard path (e.g., $HOME/local or even ++# /usr/local), the libltdl in /usr/lib might get found first. And if ++# it's older -- or just not matching the version that we need, Bad ++# Things happen. [sigh] ++# ++# Finally, make libompi_ltdl follow the same shared/static convention ++# that was user for the main OMPI libraries. So manually examine ++# $enable_shared and $enable_static and pass down the corresponding ++# flags. ++ ++if test "$OMPI_ENABLE_DLOPEN_SUPPORT" = "1" ; then ++ ompi_subdir_args="$ompi_subdir_args --enable-ltdl-convenience --disable-ltdl-install" ++ if test "$enable_shared" = "yes"; then ++ ompi_subdir_args="$ompi_subdir_args --enable-shared" ++ else ++ ompi_subdir_args="$ompi_subdir_args --disable-shared" ++ fi ++ if test "$enable_static" = "yes"; then ++ ompi_subdir_args="$ompi_subdir_args --enable-static" ++ else ++ ompi_subdir_args="$ompi_subdir_args --disable-static" ++ fi ++ ++ CFLAGS_save="$CFLAGS" ++ CFLAGS="$OMPI_CFLAGS_BEFORE_PICKY" ++ ++ ++# ++# Invoke configure in a specific subdirectory. ++# ++# opal/libltdl is the directory to invoke in ++# $ompi_subdir_args is the list of arguments to pass ++# HAPPY=1 is actions to execute upon success ++# HAPPY=0 is actions to execute upon failure ++# ++subdir_dir="opal/libltdl" ++subdir_args="$ompi_subdir_args" ++subdir_success="HAPPY=1" ++subdir_failure="HAPPY=0" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5 ++echo "$as_me: OMPI configuring in $subdir_dir" >&6;} ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [\\/]* | ?:[\\/]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5 ++echo "$as_me: error: cannot create $subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5 ++echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [\\/]* | ?:[\\/]* ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5 ++echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;} ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5 ++echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;} ++ else ++ eval $subdir_failure ++ { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5 ++echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;} ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp ++ if test "$HAPPY" = "1"; then ++ LIBLTDL_SUBDIR=libltdl ++ ++ CPPFLAGS_save="$CPPFLAGS" ++ CPPFLAGS="-I." ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++ ++_ACEOF ++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ++ $EGREP "lt_dladvise_init" >/dev/null 2>&1; then ++ OPAL_HAVE_LTDL_ADVISE=1 ++else ++ OPAL_HAVE_LTDL_ADVISE=0 ++fi ++rm -f conftest* ++ ++ CPPFLAGS="$CPPFLAGS_save" ++ ++ # Arrgh. This is gross. But I can't think of any other way to do ++ # it. :-( ++ ++ flags=`$EGREP ^LIBADD_DL opal/libltdl/Makefile | cut -d= -f2-` ++ ++# ++# libtool has been created by this point ++# Try to see if it will add any additional flags for dependant libraries ++# ++ ++{ echo "$as_me:$LINENO: checking for libtool-supplied linker flags" >&5 ++echo $ECHO_N "checking for libtool-supplied linker flags... $ECHO_C" >&6; } ++ ++libtool="opal/libltdl/libtool" ++extra_flags="-export-dynamic $flags" ++ ++# Get the directory where libtool lives ++ ++start="`pwd`" ++d="`dirname $libtool`" ++cd "$d" ++libtool="`pwd`/libtool" ++cd "$start" ++unset d start ++ ++# Make a playground to work in ++ ++mkdir conftest.$$ ++cd conftest.$$ ++ ++cat > foo.c <&5 ++else ++ echo $cmd >&5 ++fi ++ eval $cmd >&5 2>&5 ++ if test -n "$1"; then ++ output=`eval $cmd 2>/dev/null | head -n 1 | sed -e 's,^libtool: *,,' -e 's,^link: *,,'` ++ fi ++ status="$?" ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "yes"; then ++ echo "configure:__oline__: \$? = $status" >&5 ++else ++ echo \$? = $status >&5 ++fi ++ if test "$status" != "0"; then ++ { echo "$as_me:$LINENO: result: libtool error!" >&5 ++echo "${ECHO_T}libtool error!" >&6; } ++ { { echo "$as_me:$LINENO: error: Cannot continue" >&5 ++echo "$as_me: error: Cannot continue" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++} ++ ++# ++# First make a sample library with the current LDFLAGS and LIBS ++# ++ ++cmd="$libtool --mode=compile --tag=CC $CC $CFLAGS -c -o foo.o foo.c" ++ompi_check_linker_flags_work ++cmd="$libtool --mode=link --tag=CC $CC $CFLAGS foo.lo $LDFLAGS $LIBS -o libfoo.la" ++ompi_check_linker_flags_work ++ ++# ++# Now fake linking to it and capture the output from libtool ++# ++ ++cmd="$libtool --dry-run --mode=link --tag=CC $CC bar.lo libfoo.la -o bar $extra_flags" ++ompi_check_linker_flags_work yes ++ ++# eat any extra whitespace in CC, as libtool will do the same ++tmpCC=`echo $CC | sed -e 's/\//\\\\\//g'` ++output=`echo $output | sed -e "s/^$tmpCC//"` ++eval "set $output" ++extra_ldflags= ++while test -n "$1"; do ++ case "$1" in ++ *.libs/bar*) ;; ++ bar*) ;; ++ -I*) ;; ++ -L*) ;; ++ -R*) ;; ++ -lfoo) ;; ++ *.libs/libfoo.*) ;; ++ -o) ;; ++ *.so) ;; ++ *.a) ;; ++ *) ++ extra_ldflags="$extra_ldflags $1" ++ ;; ++ esac ++ shift ++done ++ ++if test -n "$extra_ldflags"; then ++ { echo "$as_me:$LINENO: result: $extra_ldflags" >&5 ++echo "${ECHO_T}$extra_ldflags" >&6; } ++else ++ { echo "$as_me:$LINENO: result: no extra flags" >&5 ++echo "${ECHO_T}no extra flags" >&6; } ++fi ++ ++cd .. ++rm -rf conftest.$$ ++ ++ WRAPPER_EXTRA_LIBS="$WRAPPER_EXTRA_LIBS $extra_ldflags" ++ LDFLAGS="-export-dynamic $LDFLAGS" ++ else ++ { { echo "$as_me:$LINENO: error: Failed to build GNU libltdl. This usually means that something ++is incorrectly setup with your environment. There may be useful information in ++opal/libltdl/config.log. You can also disable GNU libltdl (which will disable ++dynamic shared object loading) by configuring with --disable-dlopen." >&5 ++echo "$as_me: error: Failed to build GNU libltdl. This usually means that something ++is incorrectly setup with your environment. There may be useful information in ++opal/libltdl/config.log. You can also disable GNU libltdl (which will disable ++dynamic shared object loading) by configuring with --disable-dlopen." >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ CFLAGS="$CFLAGS_save" ++else ++ { echo "$as_me:$LINENO: WARNING: libltdl support disabled (by --disable-dlopen)" >&5 ++echo "$as_me: WARNING: libltdl support disabled (by --disable-dlopen)" >&2;} ++ ++ LIBLTDL= ++ LIBLTDL_SUBDIR= ++ OPAL_HAVE_LTDL_ADVISE=0 ++ ++ # append instead of prepend, since LIBS are going to be system ++ # type things needed by everyone. Normally, libltdl will push ++ # these into LIBS, but since we've disabled libltdl, we need ++ # to do it here. ++ WRAPPER_EXTRA_LIBS="$WRAPPER_EXTRA_LIBS $LIBS" ++fi ++ ++ ++ ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_WANT_LIBLTDL $OMPI_ENABLE_DLOPEN_SUPPORT ++_ACEOF ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OPAL_HAVE_LTDL_ADVISE $OPAL_HAVE_LTDL_ADVISE ++_ACEOF ++ ++ ++############################################################################ ++# final compiler config ++############################################################################ ++ ++ompi_show_subtitle "Compiler flags" ++ ++# ++# This is needed for VPATH builds, so that it will -I the appropriate ++# include directory. We delayed doing it until now just so that ++# '-I$(top_srcdir)' doesn't show up in any of the configure output -- ++# purely aesthetic. ++# ++# Because opal_config.h, orte_config.h, and ompi_config.h are all ++# created by AC_CONFIG_HEADERS, we don't need to -I the builddir for ++# /include. If we VPATH building, we do need to include the ++# source directories, however. ++# ++if test "$OMPI_TOP_BUILDDIR" != "$OMPI_TOP_SRCDIR"; then ++ CPPFLAGS='-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/opal/include -I$(top_srcdir)/orte/include -I$(top_srcdir)/ompi/include'" $CPPFLAGS" ++ CXXCPPFLAGS='-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/opal/include -I$(top_srcdir)/orte/include -I$(top_srcdir)/ompi/include'" $CXXCPPFLAGS" ++else ++ CPPFLAGS='-I$(top_srcdir)'" $CPPFLAGS" ++ CXXCPPFLAGS='-I$(top_srcdir)'" $CXXCPPFLAGS" ++fi ++ ++# ++# Do a final process of the CFLAGS to make a WITHOUT_OPTFLAGS version. ++# We need this so that we can guarantee to build the TotalView stuff ++# with -g and nothing else. ++# ++ ++ ++ ++# Process a set of flags and remove all debugging and optimization ++# flags ++ ++s_arg="$CFLAGS" ++s_result= ++for s_word in $s_arg; do ++ # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs ++ # for an explanation of @<:@ and @:>@ -- they m4 expand to [ and ] ++ case $s_word in ++ -g) ;; ++ -g@<:@1-3@:>@) ;; ++ +K@<:@0-5@:>@) ;; ++ -O) ;; ++ -O@<:@0-9@:>@) ;; ++ -xO) ;; ++ -xO@<:@0-9@:>@) ;; ++ -fast) ;; ++ ++ # The below Sun Studio flags require or ++ # trigger -xO optimization ++ -xvector*) ;; ++ -xdepend=yes) ;; ++ ++ *) s_result="$s_result $s_word" ++ esac ++done ++ ++# Clean up ++ ++unset s_word s_arg ++CFLAGS_WITHOUT_OPTFLAGS="$s_result" ++if test "$with_tv_debug_flags" != ""; then ++ TOTALVIEW_DEBUG_FLAGS="$with_tv_debug_flags" ++else ++ # Tweak the compiler flags passed to orterun for Sun Studio SPARC ++ # https://svn.open-mpi.org/trac/ompi/ticket/1448 ++ if test "x$ompi_cv_c_compiler_vendor" = "xsun" -a -n "`echo $host | $GREP sparc`"; then ++ TOTALVIEW_DEBUG_FLAGS="-g -xO0" ++ else ++ TOTALVIEW_DEBUG_FLAGS="-g" ++ fi ++fi ++{ echo "$as_me:$LINENO: checking which of CFLAGS are ok for TotalView modules" >&5 ++echo $ECHO_N "checking which of CFLAGS are ok for TotalView modules... $ECHO_C" >&6; } ++{ echo "$as_me:$LINENO: result: $CFLAGS_WITHOUT_OPTFLAGS" >&5 ++echo "${ECHO_T}$CFLAGS_WITHOUT_OPTFLAGS" >&6; } ++{ echo "$as_me:$LINENO: checking extra CFLAGS for TotalView modules" >&5 ++echo $ECHO_N "checking extra CFLAGS for TotalView modules... $ECHO_C" >&6; } ++{ echo "$as_me:$LINENO: result: $TOTALVIEW_DEBUG_FLAGS" >&5 ++echo "${ECHO_T}$TOTALVIEW_DEBUG_FLAGS" >&6; } ++ ++ ++ ++ ++ ++# ++# Delayed the substitution of CFLAGS and CXXFLAGS until now because ++# they may have been modified throughout the course of this script. ++# ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++# ++# Aggregate MCA parameters directory ++# ++AMCA_PARAM_SETS_DIR='$(pkgdatadir)/amca-param-sets' ++ ++ ++############################################################################ ++# final wrapper compiler config ++############################################################################ ++ ++ompi_show_subtitle "Wrapper compiler flags" ++ ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=WRAPPER_EXTRA_CPPFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${WRAPPER_EXTRA_CPPFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=WRAPPER_EXTRA_CFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${WRAPPER_EXTRA_CFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=WRAPPER_EXTRA_CXXFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${WRAPPER_EXTRA_CXXFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=WRAPPER_EXTRA_FFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${WRAPPER_EXTRA_FFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=WRAPPER_EXTRA_FCFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${WRAPPER_EXTRA_FCFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=WRAPPER_EXTRA_LDFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${WRAPPER_EXTRA_LDFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++ # ++ # OPAL ++ # ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=opal_WRAPPER_EXTRA_LDFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${opal_WRAPPER_EXTRA_LDFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=opal_WRAPPER_EXTRA_LIBS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${opal_WRAPPER_EXTRA_LIBS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++ { echo "$as_me:$LINENO: checking for OPAL CPPFLAGS" >&5 ++echo $ECHO_N "checking for OPAL CPPFLAGS... $ECHO_C" >&6; } ++ OPAL_WRAPPER_EXTRA_CPPFLAGS="$WRAPPER_EXTRA_CPPFLAGS $USER_WRAPPER_EXTRA_CPPFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_CPPFLAGS" >&5 ++echo "${ECHO_T}$OPAL_WRAPPER_EXTRA_CPPFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for OPAL CFLAGS" >&5 ++echo $ECHO_N "checking for OPAL CFLAGS... $ECHO_C" >&6; } ++ OPAL_WRAPPER_EXTRA_CFLAGS="$WRAPPER_EXTRA_CFLAGS $USER_WRAPPER_EXTRA_CFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_CFLAGS" >&5 ++echo "${ECHO_T}$OPAL_WRAPPER_EXTRA_CFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for OPAL CXXFLAGS" >&5 ++echo $ECHO_N "checking for OPAL CXXFLAGS... $ECHO_C" >&6; } ++ OPAL_WRAPPER_EXTRA_CXXFLAGS="$WRAPPER_EXTRA_CXXFLAGS $USER_WRAPPER_EXTRA_CXXFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_CXXFLAGS" >&5 ++echo "${ECHO_T}$OPAL_WRAPPER_EXTRA_CXXFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for OPAL LDFLAGS" >&5 ++echo $ECHO_N "checking for OPAL LDFLAGS... $ECHO_C" >&6; } ++ OPAL_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $WRAPPER_EXTRA_LDFLAGS $USER_WRAPPER_EXTRA_LDFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_LDFLAGS" >&5 ++echo "${ECHO_T}$OPAL_WRAPPER_EXTRA_LDFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for OPAL LIBS" >&5 ++echo $ECHO_N "checking for OPAL LIBS... $ECHO_C" >&6; } ++ OPAL_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $WRAPPER_EXTRA_LIBS $USER_WRAPPER_EXTRA_LIBS" ++ ++ { echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_LIBS" >&5 ++echo "${ECHO_T}$OPAL_WRAPPER_EXTRA_LIBS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for OPAL extra include dirs" >&5 ++echo $ECHO_N "checking for OPAL extra include dirs... $ECHO_C" >&6; } ++ if test "$WANT_INSTALL_HEADERS" = "1" ; then ++ OPAL_WRAPPER_EXTRA_INCLUDES="openmpi" ++ else ++ OPAL_WRAPPER_EXTRA_INCLUDES= ++ fi ++ ++ { echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_INCLUDES" >&5 ++echo "${ECHO_T}$OPAL_WRAPPER_EXTRA_INCLUDES" >&6; } ++ ++ # ++ # ORTE ++ # ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=orte_WRAPPER_EXTRA_LDFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${orte_WRAPPER_EXTRA_LDFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=orte_WRAPPER_EXTRA_LIBS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${orte_WRAPPER_EXTRA_LIBS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++ { echo "$as_me:$LINENO: checking for ORTE CPPFLAGS" >&5 ++echo $ECHO_N "checking for ORTE CPPFLAGS... $ECHO_C" >&6; } ++ ORTE_WRAPPER_EXTRA_CPPFLAGS="$OPAL_WRAPPER_EXTRA_CPPFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_CPPFLAGS" >&5 ++echo "${ECHO_T}$ORTE_WRAPPER_EXTRA_CPPFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for ORTE CFLAGS" >&5 ++echo $ECHO_N "checking for ORTE CFLAGS... $ECHO_C" >&6; } ++ ORTE_WRAPPER_EXTRA_CFLAGS="$OPAL_WRAPPER_EXTRA_CFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_CFLAGS" >&5 ++echo "${ECHO_T}$ORTE_WRAPPER_EXTRA_CFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for ORTE CXXFLAGS" >&5 ++echo $ECHO_N "checking for ORTE CXXFLAGS... $ECHO_C" >&6; } ++ ORTE_WRAPPER_EXTRA_CXXFLAGS="$OPAL_WRAPPER_EXTRA_CXXFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_CXXFLAGS" >&5 ++echo "${ECHO_T}$ORTE_WRAPPER_EXTRA_CXXFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for ORTE LDFLAGS" >&5 ++echo $ECHO_N "checking for ORTE LDFLAGS... $ECHO_C" >&6; } ++ ORTE_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $OPAL_WRAPPER_EXTRA_LDFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_LDFLAGS" >&5 ++echo "${ECHO_T}$ORTE_WRAPPER_EXTRA_LDFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for ORTE LIBS" >&5 ++echo $ECHO_N "checking for ORTE LIBS... $ECHO_C" >&6; } ++ ORTE_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $OPAL_WRAPPER_EXTRA_LIBS" ++ ++ { echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_LIBS" >&5 ++echo "${ECHO_T}$ORTE_WRAPPER_EXTRA_LIBS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for ORTE extra include dirs" >&5 ++echo $ECHO_N "checking for ORTE extra include dirs... $ECHO_C" >&6; } ++ ORTE_WRAPPER_EXTRA_INCLUDES="$OPAL_WRAPPER_EXTRA_INCLUDES" ++ ++ { echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_INCLUDES" >&5 ++echo "${ECHO_T}$ORTE_WRAPPER_EXTRA_INCLUDES" >&6; } ++ ++ # ++ # OMPI ++ # ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=ompi_WRAPPER_EXTRA_LDFLAGS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${ompi_WRAPPER_EXTRA_LDFLAGS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++# 1 is the variable name to be uniq-ized ++ompi_name=ompi_WRAPPER_EXTRA_LIBS ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${ompi_WRAPPER_EXTRA_LIBS}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count ++ ++ { echo "$as_me:$LINENO: checking for OMPI CPPFLAGS" >&5 ++echo $ECHO_N "checking for OMPI CPPFLAGS... $ECHO_C" >&6; } ++ OMPI_WRAPPER_EXTRA_CPPFLAGS="$ORTE_WRAPPER_EXTRA_CPPFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_CPPFLAGS" >&5 ++echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_CPPFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for OMPI CFLAGS" >&5 ++echo $ECHO_N "checking for OMPI CFLAGS... $ECHO_C" >&6; } ++ OMPI_WRAPPER_EXTRA_CFLAGS="$ORTE_WRAPPER_EXTRA_CFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_CFLAGS" >&5 ++echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_CFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for OMPI CXXFLAGS" >&5 ++echo $ECHO_N "checking for OMPI CXXFLAGS... $ECHO_C" >&6; } ++ OMPI_WRAPPER_EXTRA_CXXFLAGS="$ORTE_WRAPPER_EXTRA_CXXFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_CXXFLAGS" >&5 ++echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_CXXFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for OMPI FFLAGS" >&5 ++echo $ECHO_N "checking for OMPI FFLAGS... $ECHO_C" >&6; } ++ OMPI_WRAPPER_EXTRA_FFLAGS="$WRAPPER_EXTRA_FFLAGS $USER_WRAPPER_EXTRA_FFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_FFLAGS" >&5 ++echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_FFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for OMPI FCFLAGS" >&5 ++echo $ECHO_N "checking for OMPI FCFLAGS... $ECHO_C" >&6; } ++ OMPI_WRAPPER_EXTRA_FCFLAGS="$WRAPPER_EXTRA_FCFLAGS $USER_WRAPPER_EXTRA_FCFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_FCFLAGS" >&5 ++echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_FCFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for OMPI LDFLAGS" >&5 ++echo $ECHO_N "checking for OMPI LDFLAGS... $ECHO_C" >&6; } ++ OMPI_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $ORTE_WRAPPER_EXTRA_LDFLAGS" ++ ++ { echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_LDFLAGS" >&5 ++echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_LDFLAGS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for OMPI LIBS" >&5 ++echo $ECHO_N "checking for OMPI LIBS... $ECHO_C" >&6; } ++ OMPI_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $ORTE_WRAPPER_EXTRA_LIBS" ++ ++ { echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_LIBS" >&5 ++echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_LIBS" >&6; } ++ ++ { echo "$as_me:$LINENO: checking for OMPI extra include dirs" >&5 ++echo $ECHO_N "checking for OMPI extra include dirs... $ECHO_C" >&6; } ++ OMPI_WRAPPER_EXTRA_INCLUDES="$ORTE_WRAPPER_EXTRA_INCLUDES" ++ ++ { echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_INCLUDES" >&5 ++echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_INCLUDES" >&6; } ++ ++ # language binding support. C++ is a bit different, as the ++ # compiler should work even if there is no language support. ++ if test "$WANT_MPI_CXX_SUPPORT" = "1" ; then ++ OMPI_WRAPPER_CXX_LIB="-lmpi_cxx" ++ OMPI_WRAPPER_CXX_REQUIRED_FILE="" ++ else ++ OMPI_WRAPPER_CXX_LIB="" ++ OMPI_WRAPPER_CXX_REQUIRED_FILE="" ++ fi ++ ++ ++ ++ if test "$OMPI_WANT_F77_BINDINGS" = "1" ; then ++ OMPI_WRAPPER_F77_REQUIRED_FILE="" ++ else ++ OMPI_WRAPPER_F77_REQUIRED_FILE="not supported" ++ fi ++ ++ ++ if test "$OMPI_WANT_F90_BINDINGS" = "1" ; then ++ OMPI_WRAPPER_F90_REQUIRED_FILE="" ++ else ++ OMPI_WRAPPER_F90_REQUIRED_FILE="not supported" ++ fi ++ ++ ++ # For script-based wrappers that don't do relocatable binaries. ++ # Don't use if you don't have to. ++ exec_prefix_save="${exec_prefix}" ++ test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" ++ eval "OMPI_WRAPPER_INCLUDEDIR=\"${includedir}\"" ++ eval "OMPI_WRAPPER_LIBDIR=\"${libdir}\"" ++ exec_prefix="${exec_prefix_save}" ++ ++ ++ ++ # compatibility defines that will eventually go away ++ WRAPPER_EXTRA_CFLAGS="$OMPI_WRAPPER_EXTRA_CFLAGS" ++ WRAPPER_EXTRA_CXXFLAGS="$OMPI_WRAPPER_EXTRA_CXXFLAGS" ++ WRAPPER_EXTRA_FFLAGS="$OMPI_WRAPPER_EXTRA_FFLAGS" ++ WRAPPER_EXTRA_FCFLAGS="$OMPI_WRAPPER_EXTRA_FCFLAGS" ++ WRAPPER_EXTRA_LDFLAGS="$OMPI_WRAPPER_EXTRA_LDFLAGS" ++ WRAPPER_EXTRA_LIBS="$OMPI_WRAPPER_EXTRA_LIBS" ++ ++ ++ ++ ++ ++ ++ ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define WRAPPER_EXTRA_CFLAGS "$WRAPPER_EXTRA_CFLAGS" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define WRAPPER_EXTRA_CXXFLAGS "$WRAPPER_EXTRA_CXXFLAGS" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define WRAPPER_EXTRA_FFLAGS "$WRAPPER_EXTRA_FFLAGS" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define WRAPPER_EXTRA_FCFLAGS "$WRAPPER_EXTRA_FCFLAGS" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define WRAPPER_EXTRA_LDFLAGS "$WRAPPER_EXTRA_LDFLAGS" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define WRAPPER_EXTRA_LIBS "$WRAPPER_EXTRA_LIBS" ++_ACEOF ++ ++ ++ ++# Recreate some defines prefixed with OMPI_ so that there are no bare ++# autoconf macro defines in mpi.h. Since AC sometimes changes whether ++# things are defined as null tokens or an integer result, two projects ++# with different versions of AC can cause problems. ++if test $ac_cv_header_stdc = yes; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define OMPI_STDC_HEADERS 1 ++_ACEOF ++ ++fi ++if test $ac_cv_header_sys_time_h = yes ; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define OMPI_HAVE_SYS_TIME_H 1 ++_ACEOF ++ ++fi ++if test $ac_cv_type_long_long = yes ; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define OMPI_HAVE_LONG_LONG 1 ++_ACEOF ++ fi ++if test $ac_cv_header_sys_synch_h = yes ; then ++ ++cat >>confdefs.h <<\_ACEOF ++@%:@define OMPI_HAVE_SYS_SYNCH_H 1 ++_ACEOF ++ ++fi ++ ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_BOOL $ac_cv_sizeof_bool ++_ACEOF ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define OMPI_SIZEOF_INT $ac_cv_sizeof_int ++_ACEOF ++ ++############################################################################ ++# Party on ++############################################################################ ++ ++ompi_show_subtitle "Final output" ++ ++ac_config_files="$ac_config_files Makefile config/Makefile contrib/Makefile opal/Makefile opal/etc/Makefile opal/include/Makefile opal/asm/Makefile opal/event/Makefile opal/event/compat/Makefile opal/event/compat/sys/Makefile opal/util/Makefile opal/util/keyval/Makefile opal/mca/base/Makefile opal/tools/wrappers/Makefile opal/tools/wrappers/opalcc-wrapper-data.txt opal/tools/wrappers/opalc++-wrapper-data.txt opal/tools/opal-checkpoint/Makefile opal/tools/opal-restart/Makefile orte/Makefile orte/include/Makefile orte/etc/Makefile orte/tools/orted/Makefile orte/tools/orterun/Makefile orte/tools/wrappers/Makefile orte/tools/wrappers/ortecc-wrapper-data.txt orte/tools/wrappers/ortec++-wrapper-data.txt orte/tools/orte-checkpoint/Makefile orte/tools/orte-iof/Makefile orte/tools/orte-restart/Makefile orte/tools/orte-ps/Makefile orte/tools/orte-clean/Makefile ompi/Makefile ompi/etc/Makefile ompi/include/Makefile ompi/include/mpif.h ompi/include/mpif-config.h ompi/datatype/Makefile ompi/debuggers/Makefile ompi/mpi/c/Makefile ompi/mpi/c/profile/Makefile ompi/mpi/cxx/Makefile ompi/mpi/f77/Makefile ompi/mpi/f77/profile/Makefile ompi/mpi/f90/Makefile ompi/mpi/f90/fortran_kinds.sh ompi/mpi/f90/fortran_sizes.h ompi/mpi/f90/scripts/Makefile ompi/tools/ompi_info/Makefile ompi/tools/wrappers/Makefile ompi/tools/wrappers/mpicc-wrapper-data.txt ompi/tools/wrappers/mpic++-wrapper-data.txt ompi/tools/wrappers/mpif77-wrapper-data.txt ompi/tools/wrappers/mpif90-wrapper-data.txt ompi/tools/ortetools/Makefile ompi/tools/ompi-server/Makefile test/Makefile test/event/Makefile test/asm/Makefile test/class/Makefile test/support/Makefile test/threads/Makefile test/peruse/Makefile test/datatype/Makefile" ++ ++cat >confcache <<\_ACEOF ++# This file is a shell script that caches the results of configure ++# tests run on this system so they can be shared between configure ++# scripts and configure runs, see configure's option --config-cache. ++# It is not useful on other systems. If it contains results you don't ++# want to keep, you may remove or edit it. ++# ++# config.status only pays attention to the cache file if you give it ++# the --recheck option to rerun configure. ++# ++# `ac_cv_env_foo' variables (set or unset) will be overridden when ++# loading this file, other *unset* `ac_cv_foo' will be assigned the ++# following values. ++ ++_ACEOF ++ ++# The following way of writing the cache mishandles newlines in values, ++# but we know of no workaround that is simple, portable, and efficient. ++# So, we kill variables containing newlines. ++# Ultrix sh set writes to stderr and can't be redirected directly, ++# and sets the high bit in the cache file unless we assign to the vars. ++( ++ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do ++ eval ac_val=\$$ac_var ++ case $ac_val in #( ++ *${as_nl}*) ++ case $ac_var in #( ++ *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 ++echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; ++ esac ++ case $ac_var in #( ++ _ | IFS | as_nl) ;; #( ++ *) $as_unset $ac_var ;; ++ esac ;; ++ esac ++ done ++ ++ (set) 2>&1 | ++ case $as_nl`(ac_space=' '; set) 2>&1` in #( ++ *${as_nl}ac_space=\ *) ++ # `set' does not quote correctly, so add quotes (double-quote ++ # substitution turns \\\\ into \\, and sed turns \\ into \). ++ sed -n \ ++ "s/'/'\\\\''/g; ++ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ++ ;; #( ++ *) ++ # `set' quotes correctly as required by POSIX, so do not add quotes. ++ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ++ ;; ++ esac | ++ sort ++) | ++ sed ' ++ /^ac_cv_env_/b end ++ t clear ++ :clear ++ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ ++ t end ++ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ ++ :end' >>confcache ++if diff "$cache_file" confcache >/dev/null 2>&1; then :; else ++ if test -w "$cache_file"; then ++ test "x$cache_file" != "x/dev/null" && ++ { echo "$as_me:$LINENO: updating cache $cache_file" >&5 ++echo "$as_me: updating cache $cache_file" >&6;} ++ cat confcache >$cache_file ++ else ++ { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 ++echo "$as_me: not updating unwritable cache $cache_file" >&6;} ++ fi ++fi ++rm -f confcache ++ ++test "x$prefix" = xNONE && prefix=$ac_default_prefix ++# Let make expand exec_prefix. ++test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' ++ ++DEFS=-DHAVE_CONFIG_H ++ ++ac_libobjs= ++ac_ltlibobjs= ++for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue ++ # 1. Remove the extension, and $U if already installed. ++ ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ++ ac_i=`echo "$ac_i" | sed "$ac_script"` ++ # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR ++ # will be set to the directory where LIBOBJS objects are built. ++ ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" ++ ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' ++done ++LIB@&t@OBJS=$ac_libobjs ++ ++LTLIBOBJS=$ac_ltlibobjs ++ ++ ++if test -z "${OMPI_WANT_BUILD_F90_TRIVIAL_TRUE}" && test -z "${OMPI_WANT_BUILD_F90_TRIVIAL_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_BUILD_F90_TRIVIAL\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_WANT_BUILD_F90_TRIVIAL\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_WANT_BUILD_F90_SMALL_TRUE}" && test -z "${OMPI_WANT_BUILD_F90_SMALL_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_BUILD_F90_SMALL\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_WANT_BUILD_F90_SMALL\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_WANT_BUILD_F90_MEDIUM_TRUE}" && test -z "${OMPI_WANT_BUILD_F90_MEDIUM_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_BUILD_F90_MEDIUM\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_WANT_BUILD_F90_MEDIUM\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_WANT_BUILD_F90_LARGE_TRUE}" && test -z "${OMPI_WANT_BUILD_F90_LARGE_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_BUILD_F90_LARGE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_WANT_BUILD_F90_LARGE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${WANT_INSTALL_HEADERS_TRUE}" && test -z "${WANT_INSTALL_HEADERS_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"WANT_INSTALL_HEADERS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"WANT_INSTALL_HEADERS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${WANT_PERUSE_TRUE}" && test -z "${WANT_PERUSE_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"WANT_PERUSE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"WANT_PERUSE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${ORTE_DISABLE_FULL_SUPPORT_TRUE}" && test -z "${ORTE_DISABLE_FULL_SUPPORT_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"ORTE_DISABLE_FULL_SUPPORT\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"ORTE_DISABLE_FULL_SUPPORT\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${WANT_FT_TRUE}" && test -z "${WANT_FT_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"WANT_FT\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"WANT_FT\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_INSTALL_BINARIES_TRUE}" && test -z "${OMPI_INSTALL_BINARIES_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_INSTALL_BINARIES\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_INSTALL_BINARIES\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_TRUE}" && test -z "${OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_SCRIPT_WRAPPER_COMPILERS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_WANT_SCRIPT_WRAPPER_COMPILERS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"AMDEP\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE}" && test -z "${OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_NEED_WINDOWS_REPLACEMENTS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_NEED_WINDOWS_REPLACEMENTS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${WANT_MPI_BINDINGS_LAYER_TRUE}" && test -z "${WANT_MPI_BINDINGS_LAYER_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"WANT_MPI_BINDINGS_LAYER\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"WANT_MPI_BINDINGS_LAYER\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${WANT_PMPI_BINDINGS_LAYER_TRUE}" && test -z "${WANT_PMPI_BINDINGS_LAYER_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"WANT_PMPI_BINDINGS_LAYER\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"WANT_PMPI_BINDINGS_LAYER\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${COMPILE_PROFILING_SEPARATELY_TRUE}" && test -z "${COMPILE_PROFILING_SEPARATELY_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"COMPILE_PROFILING_SEPARATELY\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"COMPILE_PROFILING_SEPARATELY\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${WANT_MPI_CXX_BINDINGS_TRUE}" && test -z "${WANT_MPI_CXX_BINDINGS_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"WANT_MPI_CXX_BINDINGS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"WANT_MPI_CXX_BINDINGS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_HAVE_ASM_FILE_TRUE}" && test -z "${OMPI_HAVE_ASM_FILE_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_HAVE_ASM_FILE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_HAVE_ASM_FILE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_WANT_F77_BINDINGS_TRUE}" && test -z "${OMPI_WANT_F77_BINDINGS_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_F77_BINDINGS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_WANT_F77_BINDINGS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${WANT_MPI_F77_BINDINGS_LAYER_TRUE}" && test -z "${WANT_MPI_F77_BINDINGS_LAYER_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"WANT_MPI_F77_BINDINGS_LAYER\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"WANT_MPI_F77_BINDINGS_LAYER\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${WANT_PMPI_F77_BINDINGS_LAYER_TRUE}" && test -z "${WANT_PMPI_F77_BINDINGS_LAYER_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"WANT_PMPI_F77_BINDINGS_LAYER\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"WANT_PMPI_F77_BINDINGS_LAYER\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_WANT_F90_BINDINGS_TRUE}" && test -z "${OMPI_WANT_F90_BINDINGS_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_F90_BINDINGS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_WANT_F90_BINDINGS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_HAVE_POSIX_THREADS_TRUE}" && test -z "${OMPI_HAVE_POSIX_THREADS_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_HAVE_POSIX_THREADS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_HAVE_POSIX_THREADS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_HAVE_SOLARIS_THREADS_TRUE}" && test -z "${OMPI_HAVE_SOLARIS_THREADS_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_HAVE_SOLARIS_THREADS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_HAVE_SOLARIS_THREADS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${WANT_FT_THREAD_TRUE}" && test -z "${WANT_FT_THREAD_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"WANT_FT_THREAD\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"WANT_FT_THREAD\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${CASE_SENSITIVE_FS_TRUE}" && test -z "${CASE_SENSITIVE_FS_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"CASE_SENSITIVE_FS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"CASE_SENSITIVE_FS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_backtrace_execinfo_DSO_TRUE}" && test -z "${OMPI_BUILD_backtrace_execinfo_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_backtrace_execinfo_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_backtrace_execinfo_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_backtrace_printstack_DSO_TRUE}" && test -z "${OMPI_BUILD_backtrace_printstack_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_backtrace_printstack_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_backtrace_printstack_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_backtrace_darwin_DSO_TRUE}" && test -z "${OMPI_BUILD_backtrace_darwin_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_backtrace_darwin_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_backtrace_darwin_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_backtrace_none_DSO_TRUE}" && test -z "${OMPI_BUILD_backtrace_none_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_backtrace_none_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_backtrace_none_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_carto_auto_detect_DSO_TRUE}" && test -z "${OMPI_BUILD_carto_auto_detect_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_carto_auto_detect_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_carto_auto_detect_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_carto_file_DSO_TRUE}" && test -z "${OMPI_BUILD_carto_file_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_carto_file_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_carto_file_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_crs_none_DSO_TRUE}" && test -z "${OMPI_BUILD_crs_none_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_crs_none_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_crs_none_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_crs_blcr_DSO_TRUE}" && test -z "${OMPI_BUILD_crs_blcr_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_crs_blcr_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_crs_blcr_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_crs_self_DSO_TRUE}" && test -z "${OMPI_BUILD_crs_self_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_crs_self_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_crs_self_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_installdirs_env_DSO_TRUE}" && test -z "${OMPI_BUILD_installdirs_env_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_installdirs_env_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_installdirs_env_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_installdirs_config_DSO_TRUE}" && test -z "${OMPI_BUILD_installdirs_config_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_installdirs_config_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_installdirs_config_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_maffinity_first_use_DSO_TRUE}" && test -z "${OMPI_BUILD_maffinity_first_use_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_maffinity_first_use_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_maffinity_first_use_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_maffinity_libnuma_DSO_TRUE}" && test -z "${OMPI_BUILD_maffinity_libnuma_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_maffinity_libnuma_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_maffinity_libnuma_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_WANT_MEMCHECKER_TRUE}" && test -z "${OMPI_WANT_MEMCHECKER_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_MEMCHECKER\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_WANT_MEMCHECKER\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_memchecker_valgrind_DSO_TRUE}" && test -z "${OMPI_BUILD_memchecker_valgrind_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_memchecker_valgrind_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_memchecker_valgrind_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_WANT_EXTERNAL_PTMALLOC2_TRUE}" && test -z "${OMPI_WANT_EXTERNAL_PTMALLOC2_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_EXTERNAL_PTMALLOC2\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_WANT_EXTERNAL_PTMALLOC2\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_memory_ptmalloc2_DSO_TRUE}" && test -z "${OMPI_BUILD_memory_ptmalloc2_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_memory_ptmalloc2_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_memory_ptmalloc2_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_memory_malloc_solaris_DSO_TRUE}" && test -z "${OMPI_BUILD_memory_malloc_solaris_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_memory_malloc_solaris_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_memory_malloc_solaris_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_memory_mallopt_DSO_TRUE}" && test -z "${OMPI_BUILD_memory_mallopt_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_memory_mallopt_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_memory_mallopt_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${PLPA_BUILD_STANDALONE_TRUE}" && test -z "${PLPA_BUILD_STANDALONE_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"PLPA_BUILD_STANDALONE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"PLPA_BUILD_STANDALONE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${PLPA_BUILD_EXECUTABLES_TRUE}" && test -z "${PLPA_BUILD_EXECUTABLES_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"PLPA_BUILD_EXECUTABLES\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"PLPA_BUILD_EXECUTABLES\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${PLPA_BUILD_STANDALONE_TRUE}" && test -z "${PLPA_BUILD_STANDALONE_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"PLPA_BUILD_STANDALONE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"PLPA_BUILD_STANDALONE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${PLPA_BUILD_EXECUTABLES_TRUE}" && test -z "${PLPA_BUILD_EXECUTABLES_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"PLPA_BUILD_EXECUTABLES\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"PLPA_BUILD_EXECUTABLES\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_paffinity_linux_DSO_TRUE}" && test -z "${OMPI_BUILD_paffinity_linux_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_paffinity_linux_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_paffinity_linux_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_paffinity_solaris_DSO_TRUE}" && test -z "${OMPI_BUILD_paffinity_solaris_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_paffinity_solaris_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_paffinity_solaris_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_paffinity_windows_DSO_TRUE}" && test -z "${OMPI_BUILD_paffinity_windows_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_paffinity_windows_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_paffinity_windows_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_paffinity_darwin_DSO_TRUE}" && test -z "${OMPI_BUILD_paffinity_darwin_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_paffinity_darwin_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_paffinity_darwin_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_paffinity_posix_DSO_TRUE}" && test -z "${OMPI_BUILD_paffinity_posix_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_paffinity_posix_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_paffinity_posix_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_timer_catamount_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_catamount_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_catamount_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_timer_catamount_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_timer_aix_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_aix_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_aix_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_timer_aix_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_timer_altix_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_altix_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_altix_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_timer_altix_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_timer_darwin_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_darwin_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_darwin_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_timer_darwin_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_timer_solaris_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_solaris_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_solaris_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_timer_solaris_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_timer_windows_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_windows_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_windows_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_timer_windows_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_timer_linux_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_linux_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_linux_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_timer_linux_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_errmgr_default_DSO_TRUE}" && test -z "${OMPI_BUILD_errmgr_default_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_errmgr_default_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_errmgr_default_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ess_portals_utcp_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_portals_utcp_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_portals_utcp_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ess_portals_utcp_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ess_cnos_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_cnos_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_cnos_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ess_cnos_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ess_alps_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_alps_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_alps_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ess_alps_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ess_env_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_env_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_env_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ess_env_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ess_hnp_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_hnp_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_hnp_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ess_hnp_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ess_lsf_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_lsf_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_lsf_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ess_lsf_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ess_singleton_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_singleton_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_singleton_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ess_singleton_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ess_slurm_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_slurm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_slurm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ess_slurm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ess_tool_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_tool_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_tool_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ess_tool_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_filem_rsh_DSO_TRUE}" && test -z "${OMPI_BUILD_filem_rsh_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_filem_rsh_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_filem_rsh_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_grpcomm_cnos_DSO_TRUE}" && test -z "${OMPI_BUILD_grpcomm_cnos_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_grpcomm_cnos_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_grpcomm_cnos_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_grpcomm_bad_DSO_TRUE}" && test -z "${OMPI_BUILD_grpcomm_bad_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_grpcomm_bad_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_grpcomm_bad_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_grpcomm_basic_DSO_TRUE}" && test -z "${OMPI_BUILD_grpcomm_basic_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_grpcomm_basic_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_grpcomm_basic_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_iof_hnp_DSO_TRUE}" && test -z "${OMPI_BUILD_iof_hnp_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_iof_hnp_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_iof_hnp_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_iof_orted_DSO_TRUE}" && test -z "${OMPI_BUILD_iof_orted_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_iof_orted_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_iof_orted_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_iof_tool_DSO_TRUE}" && test -z "${OMPI_BUILD_iof_tool_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_iof_tool_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_iof_tool_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_notifier_syslog_DSO_TRUE}" && test -z "${OMPI_BUILD_notifier_syslog_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_notifier_syslog_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_notifier_syslog_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_odls_default_DSO_TRUE}" && test -z "${OMPI_BUILD_odls_default_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_odls_default_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_odls_default_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_oob_tcp_DSO_TRUE}" && test -z "${OMPI_BUILD_oob_tcp_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_oob_tcp_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_oob_tcp_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_plm_alps_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_alps_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_plm_alps_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_plm_alps_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_plm_lsf_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_lsf_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_plm_lsf_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_plm_lsf_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_plm_rsh_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_rsh_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_plm_rsh_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_plm_rsh_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_plm_slurm_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_slurm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_plm_slurm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_plm_slurm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_plm_tm_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_tm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_plm_tm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_plm_tm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_plm_xgrid_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_xgrid_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_plm_xgrid_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_plm_xgrid_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ras_alps_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_alps_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_alps_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ras_alps_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ras_gridengine_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_gridengine_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_gridengine_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ras_gridengine_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ras_loadleveler_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_loadleveler_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_loadleveler_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ras_loadleveler_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ras_lsf_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_lsf_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_lsf_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ras_lsf_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ras_slurm_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_slurm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_slurm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ras_slurm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_ras_tm_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_tm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_tm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_ras_tm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_rmaps_rank_file_DSO_TRUE}" && test -z "${OMPI_BUILD_rmaps_rank_file_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rmaps_rank_file_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_rmaps_rank_file_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_rmaps_round_robin_DSO_TRUE}" && test -z "${OMPI_BUILD_rmaps_round_robin_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rmaps_round_robin_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_rmaps_round_robin_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_rmaps_seq_DSO_TRUE}" && test -z "${OMPI_BUILD_rmaps_seq_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rmaps_seq_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_rmaps_seq_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_rml_oob_DSO_TRUE}" && test -z "${OMPI_BUILD_rml_oob_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rml_oob_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_rml_oob_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_rml_ftrm_DSO_TRUE}" && test -z "${OMPI_BUILD_rml_ftrm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rml_ftrm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_rml_ftrm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_routed_binomial_DSO_TRUE}" && test -z "${OMPI_BUILD_routed_binomial_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_routed_binomial_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_routed_binomial_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_routed_direct_DSO_TRUE}" && test -z "${OMPI_BUILD_routed_direct_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_routed_direct_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_routed_direct_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_routed_linear_DSO_TRUE}" && test -z "${OMPI_BUILD_routed_linear_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_routed_linear_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_routed_linear_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_snapc_full_DSO_TRUE}" && test -z "${OMPI_BUILD_snapc_full_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_snapc_full_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_snapc_full_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_allocator_basic_DSO_TRUE}" && test -z "${OMPI_BUILD_allocator_basic_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_allocator_basic_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_allocator_basic_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_allocator_bucket_DSO_TRUE}" && test -z "${OMPI_BUILD_allocator_bucket_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_allocator_bucket_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_allocator_bucket_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_bml_r2_DSO_TRUE}" && test -z "${OMPI_BUILD_bml_r2_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_bml_r2_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_bml_r2_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_btl_self_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_self_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_self_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_btl_self_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_btl_sm_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_sm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_sm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_btl_sm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_btl_elan_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_elan_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_elan_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_btl_elan_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_btl_gm_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_gm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_gm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_btl_gm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_btl_mx_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_mx_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_mx_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_btl_mx_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_btl_ofud_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_ofud_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_ofud_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_btl_ofud_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${MCA_btl_openib_have_xrc_TRUE}" && test -z "${MCA_btl_openib_have_xrc_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"MCA_btl_openib_have_xrc\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"MCA_btl_openib_have_xrc\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${MCA_btl_openib_have_rdmacm_TRUE}" && test -z "${MCA_btl_openib_have_rdmacm_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"MCA_btl_openib_have_rdmacm\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"MCA_btl_openib_have_rdmacm\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${MCA_btl_openib_have_ibcm_TRUE}" && test -z "${MCA_btl_openib_have_ibcm_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"MCA_btl_openib_have_ibcm\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"MCA_btl_openib_have_ibcm\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_btl_openib_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_openib_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_openib_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_btl_openib_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_btl_portals_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_portals_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_portals_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_btl_portals_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_btl_tcp_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_tcp_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_tcp_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_btl_tcp_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_btl_udapl_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_udapl_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_udapl_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_btl_udapl_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_coll_basic_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_basic_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_basic_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_coll_basic_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_coll_hierarch_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_hierarch_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_hierarch_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_coll_hierarch_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_coll_inter_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_inter_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_inter_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_coll_inter_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_coll_self_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_self_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_self_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_coll_self_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_coll_sm_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_sm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_sm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_coll_sm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_coll_tuned_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_tuned_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_tuned_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_coll_tuned_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_common_sm_DSO_TRUE}" && test -z "${OMPI_BUILD_common_sm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_common_sm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_common_sm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_common_mx_DSO_TRUE}" && test -z "${OMPI_BUILD_common_mx_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_common_mx_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_common_mx_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_common_portals_DSO_TRUE}" && test -z "${OMPI_BUILD_common_portals_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_common_portals_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_common_portals_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_crcp_bkmrk_DSO_TRUE}" && test -z "${OMPI_BUILD_crcp_bkmrk_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_crcp_bkmrk_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_crcp_bkmrk_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_dpm_orte_DSO_TRUE}" && test -z "${OMPI_BUILD_dpm_orte_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_dpm_orte_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_dpm_orte_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${MCA_io_romio_SHOULD_BUILD_TRUE}" && test -z "${MCA_io_romio_SHOULD_BUILD_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"MCA_io_romio_SHOULD_BUILD\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"MCA_io_romio_SHOULD_BUILD\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_io_romio_DSO_TRUE}" && test -z "${OMPI_BUILD_io_romio_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_io_romio_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_io_romio_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_PROVIDE_MPI_FILE_INTERFACE_TRUE}" && test -z "${OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_PROVIDE_MPI_FILE_INTERFACE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_PROVIDE_MPI_FILE_INTERFACE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_mpool_fake_DSO_TRUE}" && test -z "${OMPI_BUILD_mpool_fake_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mpool_fake_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_mpool_fake_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_mpool_rdma_DSO_TRUE}" && test -z "${OMPI_BUILD_mpool_rdma_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mpool_rdma_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_mpool_rdma_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_mpool_sm_DSO_TRUE}" && test -z "${OMPI_BUILD_mpool_sm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mpool_sm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_mpool_sm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_mtl_mx_DSO_TRUE}" && test -z "${OMPI_BUILD_mtl_mx_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mtl_mx_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_mtl_mx_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_mtl_portals_DSO_TRUE}" && test -z "${OMPI_BUILD_mtl_portals_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mtl_portals_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_mtl_portals_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_mtl_psm_DSO_TRUE}" && test -z "${OMPI_BUILD_mtl_psm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mtl_psm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_mtl_psm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_osc_pt2pt_DSO_TRUE}" && test -z "${OMPI_BUILD_osc_pt2pt_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_osc_pt2pt_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_osc_pt2pt_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_osc_rdma_DSO_TRUE}" && test -z "${OMPI_BUILD_osc_rdma_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_osc_rdma_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_osc_rdma_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_pml_cm_DSO_TRUE}" && test -z "${OMPI_BUILD_pml_cm_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pml_cm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_pml_cm_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_pml_ob1_DSO_TRUE}" && test -z "${OMPI_BUILD_pml_ob1_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pml_ob1_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_pml_ob1_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_pml_crcpw_DSO_TRUE}" && test -z "${OMPI_BUILD_pml_crcpw_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pml_crcpw_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_pml_crcpw_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_vprotocol_pessimist_DSO_TRUE}" && test -z "${OMPI_BUILD_vprotocol_pessimist_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_vprotocol_pessimist_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_vprotocol_pessimist_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_vprotocol_pessimist_DSO_TRUE}" && test -z "${OMPI_BUILD_vprotocol_pessimist_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_vprotocol_pessimist_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_vprotocol_pessimist_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_pml_v_DSO_TRUE}" && test -z "${OMPI_BUILD_pml_v_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pml_v_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_pml_v_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_pubsub_orte_DSO_TRUE}" && test -z "${OMPI_BUILD_pubsub_orte_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pubsub_orte_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_pubsub_orte_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_rcache_vma_DSO_TRUE}" && test -z "${OMPI_BUILD_rcache_vma_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rcache_vma_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_rcache_vma_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${OMPI_BUILD_topo_unity_DSO_TRUE}" && test -z "${OMPI_BUILD_topo_unity_DSO_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_topo_unity_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"OMPI_BUILD_topo_unity_DSO\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++: ${CONFIG_STATUS=./config.status} ++ac_clean_files_save=$ac_clean_files ++ac_clean_files="$ac_clean_files $CONFIG_STATUS" ++{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 ++echo "$as_me: creating $CONFIG_STATUS" >&6;} ++cat >$CONFIG_STATUS <<_ACEOF ++#! $SHELL ++# Generated by $as_me. ++# Run this file to recreate the current configuration. ++# Compiler output produced by configure, useful for debugging ++# configure, is in config.log if it exists. ++ ++debug=false ++ac_cs_recheck=false ++ac_cs_silent=false ++SHELL=\${CONFIG_SHELL-$SHELL} ++_ACEOF ++ ++cat >>$CONFIG_STATUS <<\_ACEOF ++## --------------------- ## ++## M4sh Initialization. ## ++## --------------------- ## ++ ++# Be more Bourne compatible ++DUALCASE=1; export DUALCASE # for MKS sh ++if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then ++ emulate sh ++ NULLCMD=: ++ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which ++ # is contrary to our usage. Disable this feature. ++ alias -g '${1+"$@"}'='"$@"' ++ setopt NO_GLOB_SUBST ++else ++ case `(set -o) 2>/dev/null` in ++ *posix*) set -o posix ;; ++esac ++ ++fi ++ ++ ++ ++ ++# PATH needs CR ++# Avoid depending upon Character Ranges. ++as_cr_letters='abcdefghijklmnopqrstuvwxyz' ++as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' ++as_cr_Letters=$as_cr_letters$as_cr_LETTERS ++as_cr_digits='0123456789' ++as_cr_alnum=$as_cr_Letters$as_cr_digits ++ ++# The user is always right. ++if test "${PATH_SEPARATOR+set}" != set; then ++ echo "#! /bin/sh" >conf$$.sh ++ echo "exit 0" >>conf$$.sh ++ chmod +x conf$$.sh ++ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then ++ PATH_SEPARATOR=';' ++ else ++ PATH_SEPARATOR=: ++ fi ++ rm -f conf$$.sh ++fi ++ ++# Support unset when possible. ++if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then ++ as_unset=unset ++else ++ as_unset=false ++fi ++ ++ ++# IFS ++# We need space, tab and new line, in precisely that order. Quoting is ++# there to prevent editors from complaining about space-tab. ++# (If _AS_PATH_WALK were called with IFS unset, it would disable word ++# splitting by setting IFS to empty value.) ++as_nl=' ++' ++IFS=" "" $as_nl" ++ ++# Find who we are. Look in the path if we contain no directory separator. ++case $0 in ++ *[\\/]* ) as_myself=$0 ;; ++ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break ++done ++IFS=$as_save_IFS ++ ++ ;; ++esac ++# We did not find ourselves, most probably we were run as `sh COMMAND' ++# in which case we are not to be found in the path. ++if test "x$as_myself" = x; then ++ as_myself=$0 ++fi ++if test ! -f "$as_myself"; then ++ echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 ++ { (exit 1); exit 1; } ++fi ++ ++# Work around bugs in pre-3.0 UWIN ksh. ++for as_var in ENV MAIL MAILPATH ++do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var ++done ++PS1='$ ' ++PS2='> ' ++PS4='+ ' ++ ++# NLS nuisances. ++for as_var in \ ++ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ ++ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ ++ LC_TELEPHONE LC_TIME ++do ++ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then ++ eval $as_var=C; export $as_var ++ else ++ ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var ++ fi ++done ++ ++# Required to use basename. ++if expr a : '\(a\)' >/dev/null 2>&1 && ++ test "X`expr 00001 : '.*\(...\)'`" = X001; then ++ as_expr=expr ++else ++ as_expr=false ++fi ++ ++if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then ++ as_basename=basename ++else ++ as_basename=false ++fi ++ ++ ++# Name of the executable. ++as_me=`$as_basename -- "$0" || ++$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ ++ X"$0" : 'X\(//\)$' \| \ ++ X"$0" : 'X\(/\)' \| . 2>/dev/null || ++echo X/"$0" | ++ sed '/^.*\/\([^/][^/]*\)\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\/\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\/\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ ++# CDPATH. ++$as_unset CDPATH ++ ++ ++ ++ as_lineno_1=$LINENO ++ as_lineno_2=$LINENO ++ test "x$as_lineno_1" != "x$as_lineno_2" && ++ test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { ++ ++ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO ++ # uniformly replaced by the line number. The first 'sed' inserts a ++ # line-number line after each line using $LINENO; the second 'sed' ++ # does the real work. The second script uses 'N' to pair each ++ # line-number line with the line containing $LINENO, and appends ++ # trailing '-' during substitution so that $LINENO is not a special ++ # case at line end. ++ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the ++ # scripts with optimization help from Paolo Bonzini. Blame Lee ++ # E. McMahon (1931-1989) for sed's syntax. :-) ++ sed -n ' ++ p ++ /[$]LINENO/= ++ ' <$as_myself | ++ sed ' ++ s/[$]LINENO.*/&-/ ++ t lineno ++ b ++ :lineno ++ N ++ :loop ++ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ ++ t loop ++ s/-\n.*// ++ ' >$as_me.lineno && ++ chmod +x "$as_me.lineno" || ++ { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 ++ { (exit 1); exit 1; }; } ++ ++ # Don't try to exec as it changes $[0], causing all sort of problems ++ # (the dirname of $[0] is not the place where we might find the ++ # original and so on. Autoconf is especially sensitive to this). ++ . "./$as_me.lineno" ++ # Exit status is that of the last command. ++ exit ++} ++ ++ ++if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then ++ as_dirname=dirname ++else ++ as_dirname=false ++fi ++ ++ECHO_C= ECHO_N= ECHO_T= ++case `echo -n x` in ++-n*) ++ case `echo 'x\c'` in ++ *c*) ECHO_T=' ';; # ECHO_T is single tab character. ++ *) ECHO_C='\c';; ++ esac;; ++*) ++ ECHO_N='-n';; ++esac ++ ++if expr a : '\(a\)' >/dev/null 2>&1 && ++ test "X`expr 00001 : '.*\(...\)'`" = X001; then ++ as_expr=expr ++else ++ as_expr=false ++fi ++ ++rm -f conf$$ conf$$.exe conf$$.file ++if test -d conf$$.dir; then ++ rm -f conf$$.dir/conf$$.file ++else ++ rm -f conf$$.dir ++ mkdir conf$$.dir ++fi ++echo >conf$$.file ++if ln -s conf$$.file conf$$ 2>/dev/null; then ++ as_ln_s='ln -s' ++ # ... but there are two gotchas: ++ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. ++ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. ++ # In both cases, we have to default to `cp -p'. ++ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || ++ as_ln_s='cp -p' ++elif ln conf$$.file conf$$ 2>/dev/null; then ++ as_ln_s=ln ++else ++ as_ln_s='cp -p' ++fi ++rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file ++rmdir conf$$.dir 2>/dev/null ++ ++if mkdir -p . 2>/dev/null; then ++ as_mkdir_p=: ++else ++ test -d ./-p && rmdir ./-p ++ as_mkdir_p=false ++fi ++ ++if test -x / >/dev/null 2>&1; then ++ as_test_x='test -x' ++else ++ if ls -dL / >/dev/null 2>&1; then ++ as_ls_L_option=L ++ else ++ as_ls_L_option= ++ fi ++ as_test_x=' ++ eval sh -c '\'' ++ if test -d "$1"; then ++ test -d "$1/."; ++ else ++ case $1 in ++ -*)set "./$1";; ++ esac; ++ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ++ ???[sx]*):;;*)false;;esac;fi ++ '\'' sh ++ ' ++fi ++as_executable_p=$as_test_x ++ ++# Sed expression to map a string onto a valid CPP name. ++as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" ++ ++# Sed expression to map a string onto a valid variable name. ++as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" ++ ++ ++exec 6>&1 ++ ++# Save the log message, to keep $[0] and so on meaningful, and to ++# report actual input values of CONFIG_FILES etc. instead of their ++# values after options handling. ++ac_log=" ++This file was extended by Open MPI $as_me 1.3, which was ++generated by GNU Autoconf 2.61. Invocation command line was ++ ++ CONFIG_FILES = $CONFIG_FILES ++ CONFIG_HEADERS = $CONFIG_HEADERS ++ CONFIG_LINKS = $CONFIG_LINKS ++ CONFIG_COMMANDS = $CONFIG_COMMANDS ++ $ $0 $@ ++ ++on `(hostname || uname -n) 2>/dev/null | sed 1q` ++" ++ ++_ACEOF ++ ++cat >>$CONFIG_STATUS <<_ACEOF ++# Files that config.status was made for. ++config_files="$ac_config_files" ++config_headers="$ac_config_headers" ++config_commands="$ac_config_commands" ++ ++_ACEOF ++ ++cat >>$CONFIG_STATUS <<\_ACEOF ++ac_cs_usage="\ ++\`$as_me' instantiates files from templates according to the ++current configuration. ++ ++Usage: $0 [OPTIONS] [FILE]... ++ ++ -h, --help print this help, then exit ++ -V, --version print version number and configuration settings, then exit ++ -q, --quiet do not print progress messages ++ -d, --debug don't remove temporary files ++ --recheck update $as_me by reconfiguring in the same conditions ++ --file=FILE[:TEMPLATE] ++ instantiate the configuration file FILE ++ --header=FILE[:TEMPLATE] ++ instantiate the configuration header FILE ++ ++Configuration files: ++$config_files ++ ++Configuration headers: ++$config_headers ++ ++Configuration commands: ++$config_commands ++ ++Report bugs to ." ++ ++_ACEOF ++cat >>$CONFIG_STATUS <<_ACEOF ++ac_cs_version="\\ ++Open MPI config.status 1.3 ++configured by $0, generated by GNU Autoconf 2.61, ++ with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" ++ ++Copyright (C) 2006 Free Software Foundation, Inc. ++This config.status script is free software; the Free Software Foundation ++gives unlimited permission to copy, distribute and modify it." ++ ++ac_pwd='$ac_pwd' ++srcdir='$srcdir' ++INSTALL='$INSTALL' ++MKDIR_P='$MKDIR_P' ++_ACEOF ++ ++cat >>$CONFIG_STATUS <<\_ACEOF ++# If no file are specified by the user, then we need to provide default ++# value. By we need to know if files were specified by the user. ++ac_need_defaults=: ++while test $# != 0 ++do ++ case $1 in ++ --*=*) ++ ac_option=`expr "X$1" : 'X\([^=]*\)='` ++ ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ++ ac_shift=: ++ ;; ++ *) ++ ac_option=$1 ++ ac_optarg=$2 ++ ac_shift=shift ++ ;; ++ esac ++ ++ case $ac_option in ++ # Handling of the options. ++ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ++ ac_cs_recheck=: ;; ++ --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) ++ echo "$ac_cs_version"; exit ;; ++ --debug | --debu | --deb | --de | --d | -d ) ++ debug=: ;; ++ --file | --fil | --fi | --f ) ++ $ac_shift ++ CONFIG_FILES="$CONFIG_FILES $ac_optarg" ++ ac_need_defaults=false;; ++ --header | --heade | --head | --hea ) ++ $ac_shift ++ CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ++ ac_need_defaults=false;; ++ --he | --h) ++ # Conflict between --help and --header ++ { echo "$as_me: error: ambiguous option: $1 ++Try \`$0 --help' for more information." >&2 ++ { (exit 1); exit 1; }; };; ++ --help | --hel | -h ) ++ echo "$ac_cs_usage"; exit ;; ++ -q | -quiet | --quiet | --quie | --qui | --qu | --q \ ++ | -silent | --silent | --silen | --sile | --sil | --si | --s) ++ ac_cs_silent=: ;; ++ ++ # This is an error. ++ -*) { echo "$as_me: error: unrecognized option: $1 ++Try \`$0 --help' for more information." >&2 ++ { (exit 1); exit 1; }; } ;; ++ ++ *) ac_config_targets="$ac_config_targets $1" ++ ac_need_defaults=false ;; ++ ++ esac ++ shift ++done ++ ++ac_configure_extra_args= ++ ++if $ac_cs_silent; then ++ exec 6>/dev/null ++ ac_configure_extra_args="$ac_configure_extra_args --silent" ++fi ++ ++_ACEOF ++cat >>$CONFIG_STATUS <<_ACEOF ++if \$ac_cs_recheck; then ++ echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 ++ CONFIG_SHELL=$SHELL ++ export CONFIG_SHELL ++ exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion ++fi ++ ++_ACEOF ++cat >>$CONFIG_STATUS <<\_ACEOF ++exec 5>>config.log ++{ ++ echo ++ sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX ++@%:@@%:@ Running $as_me. @%:@@%:@ ++_ASBOX ++ echo "$ac_log" ++} >&5 ++ ++_ACEOF ++cat >>$CONFIG_STATUS <<_ACEOF ++# ++# INIT-COMMANDS ++# ++AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" ++ ++ ++# The HP-UX ksh and POSIX shell print the target directory to stdout ++# if CDPATH is set. ++(unset CDPATH) >/dev/null 2>&1 && unset CDPATH ++ ++sed_quote_subst='$sed_quote_subst' ++double_quote_subst='$double_quote_subst' ++delay_variable_subst='$delay_variable_subst' ++enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' ++enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' ++NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' ++macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' ++macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' ++AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' ++DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' ++OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' ++pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' ++enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' ++host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' ++host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' ++host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' ++build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' ++build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' ++build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' ++SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' ++Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' ++GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' ++EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' ++FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' ++LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' ++LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' ++max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' ++ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' ++exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' ++lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' ++lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' ++lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' ++reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' ++reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' ++file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' ++AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' ++AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' ++STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' ++RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' ++old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' ++CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' ++compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' ++GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' ++lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' ++lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' ++lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' ++lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' ++objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' ++SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' ++ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' ++MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' ++lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' ++need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' ++DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' ++NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' ++LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' ++OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' ++OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' ++libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' ++shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' ++enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' ++export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' ++whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' ++old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' ++allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' ++no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' ++inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' ++link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' ++fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' ++always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' ++export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' ++include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' ++prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' ++variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' ++need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' ++need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' ++version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' ++runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' ++shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' ++shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' ++libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' ++library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' ++soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' ++postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' ++finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' ++sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' ++sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' ++enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' ++enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' ++enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' ++old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' ++striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' ++predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' ++postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' ++predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' ++postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' ++LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++LD_F77='`$ECHO "X$LD_F77" | $Xsed -e "$delay_single_quote_subst"`' ++LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`' ++old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++old_archive_cmds_F77='`$ECHO "X$old_archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`' ++old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_F77='`$ECHO "X$compiler_F77" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`' ++GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++GCC_F77='`$ECHO "X$GCC_F77" | $Xsed -e "$delay_single_quote_subst"`' ++GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_no_builtin_flag_F77='`$ECHO "X$lt_prog_compiler_no_builtin_flag_F77" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_wl_F77='`$ECHO "X$lt_prog_compiler_wl_F77" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_pic_F77='`$ECHO "X$lt_prog_compiler_pic_F77" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_static_F77='`$ECHO "X$lt_prog_compiler_static_F77" | $Xsed -e "$delay_single_quote_subst"`' ++lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`' ++lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++lt_cv_prog_compiler_c_o_F77='`$ECHO "X$lt_cv_prog_compiler_c_o_F77" | $Xsed -e "$delay_single_quote_subst"`' ++lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`' ++archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++archive_cmds_need_lc_F77='`$ECHO "X$archive_cmds_need_lc_F77" | $Xsed -e "$delay_single_quote_subst"`' ++archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`' ++enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++enable_shared_with_static_runtimes_F77='`$ECHO "X$enable_shared_with_static_runtimes_F77" | $Xsed -e "$delay_single_quote_subst"`' ++enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`' ++export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++export_dynamic_flag_spec_F77='`$ECHO "X$export_dynamic_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`' ++export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' ++whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++whole_archive_flag_spec_F77='`$ECHO "X$whole_archive_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`' ++whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_needs_object_F77='`$ECHO "X$compiler_needs_object_F77" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`' ++old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++old_archive_from_new_cmds_F77='`$ECHO "X$old_archive_from_new_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`' ++old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' ++old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++old_archive_from_expsyms_cmds_F77='`$ECHO "X$old_archive_from_expsyms_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`' ++old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' ++archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++archive_cmds_F77='`$ECHO "X$archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`' ++archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' ++archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++archive_expsym_cmds_F77='`$ECHO "X$archive_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`' ++archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' ++module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++module_cmds_F77='`$ECHO "X$module_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`' ++module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' ++module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++module_expsym_cmds_F77='`$ECHO "X$module_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`' ++module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' ++with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++with_gnu_ld_F77='`$ECHO "X$with_gnu_ld_F77" | $Xsed -e "$delay_single_quote_subst"`' ++with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`' ++allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++allow_undefined_flag_F77='`$ECHO "X$allow_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`' ++allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`' ++no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++no_undefined_flag_F77='`$ECHO "X$no_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`' ++no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_libdir_flag_spec_F77='`$ECHO "X$hardcode_libdir_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_libdir_flag_spec_ld_F77='`$ECHO "X$hardcode_libdir_flag_spec_ld_F77" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_libdir_separator_F77='`$ECHO "X$hardcode_libdir_separator_F77" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_direct_F77='`$ECHO "X$hardcode_direct_F77" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_direct_absolute_F77='`$ECHO "X$hardcode_direct_absolute_F77" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_minus_L_F77='`$ECHO "X$hardcode_minus_L_F77" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_shlibpath_var_F77='`$ECHO "X$hardcode_shlibpath_var_F77" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_automatic_F77='`$ECHO "X$hardcode_automatic_F77" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`' ++inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++inherit_rpath_F77='`$ECHO "X$inherit_rpath_F77" | $Xsed -e "$delay_single_quote_subst"`' ++inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`' ++link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++link_all_deplibs_F77='`$ECHO "X$link_all_deplibs_F77" | $Xsed -e "$delay_single_quote_subst"`' ++link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`' ++fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++fix_srcfile_path_F77='`$ECHO "X$fix_srcfile_path_F77" | $Xsed -e "$delay_single_quote_subst"`' ++fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`' ++always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++always_export_symbols_F77='`$ECHO "X$always_export_symbols_F77" | $Xsed -e "$delay_single_quote_subst"`' ++always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`' ++export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++export_symbols_cmds_F77='`$ECHO "X$export_symbols_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`' ++export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' ++exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++exclude_expsyms_F77='`$ECHO "X$exclude_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`' ++exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`' ++include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++include_expsyms_F77='`$ECHO "X$include_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`' ++include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`' ++prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++prelink_cmds_F77='`$ECHO "X$prelink_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`' ++prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' ++file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++file_list_spec_F77='`$ECHO "X$file_list_spec_F77" | $Xsed -e "$delay_single_quote_subst"`' ++file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_action_F77='`$ECHO "X$hardcode_action_F77" | $Xsed -e "$delay_single_quote_subst"`' ++hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_lib_search_dirs_F77='`$ECHO "X$compiler_lib_search_dirs_F77" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_lib_search_dirs_FC='`$ECHO "X$compiler_lib_search_dirs_FC" | $Xsed -e "$delay_single_quote_subst"`' ++predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++predep_objects_F77='`$ECHO "X$predep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`' ++predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`' ++postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++postdep_objects_F77='`$ECHO "X$postdep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`' ++postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`' ++predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++predeps_F77='`$ECHO "X$predeps_F77" | $Xsed -e "$delay_single_quote_subst"`' ++predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`' ++postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++postdeps_F77='`$ECHO "X$postdeps_F77" | $Xsed -e "$delay_single_quote_subst"`' ++postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_lib_search_path_F77='`$ECHO "X$compiler_lib_search_path_F77" | $Xsed -e "$delay_single_quote_subst"`' ++compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`' ++ ++LTCC='$LTCC' ++LTCFLAGS='$LTCFLAGS' ++compiler='$compiler_DEFAULT' ++ ++# Quote evaled strings. ++for var in NM \ ++SED \ ++GREP \ ++EGREP \ ++FGREP \ ++LD \ ++LN_S \ ++lt_SP2NL \ ++lt_NL2SP \ ++reload_flag \ ++deplibs_check_method \ ++file_magic_cmd \ ++AR \ ++AR_FLAGS \ ++STRIP \ ++RANLIB \ ++CC \ ++CFLAGS \ ++compiler \ ++lt_cv_sys_global_symbol_pipe \ ++lt_cv_sys_global_symbol_to_cdecl \ ++lt_cv_sys_global_symbol_to_c_name_address \ ++lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ ++SHELL \ ++ECHO \ ++lt_prog_compiler_no_builtin_flag \ ++lt_prog_compiler_wl \ ++lt_prog_compiler_pic \ ++lt_prog_compiler_static \ ++lt_cv_prog_compiler_c_o \ ++need_locks \ ++DSYMUTIL \ ++NMEDIT \ ++LIPO \ ++OTOOL \ ++OTOOL64 \ ++shrext_cmds \ ++export_dynamic_flag_spec \ ++whole_archive_flag_spec \ ++compiler_needs_object \ ++with_gnu_ld \ ++allow_undefined_flag \ ++no_undefined_flag \ ++hardcode_libdir_flag_spec \ ++hardcode_libdir_flag_spec_ld \ ++hardcode_libdir_separator \ ++fix_srcfile_path \ ++exclude_expsyms \ ++include_expsyms \ ++file_list_spec \ ++variables_saved_for_relink \ ++libname_spec \ ++library_names_spec \ ++soname_spec \ ++finish_eval \ ++old_striplib \ ++striplib \ ++compiler_lib_search_dirs \ ++predep_objects \ ++postdep_objects \ ++predeps \ ++postdeps \ ++compiler_lib_search_path \ ++LD_CXX \ ++LD_F77 \ ++LD_FC \ ++compiler_CXX \ ++compiler_F77 \ ++compiler_FC \ ++lt_prog_compiler_no_builtin_flag_CXX \ ++lt_prog_compiler_no_builtin_flag_F77 \ ++lt_prog_compiler_no_builtin_flag_FC \ ++lt_prog_compiler_wl_CXX \ ++lt_prog_compiler_wl_F77 \ ++lt_prog_compiler_wl_FC \ ++lt_prog_compiler_pic_CXX \ ++lt_prog_compiler_pic_F77 \ ++lt_prog_compiler_pic_FC \ ++lt_prog_compiler_static_CXX \ ++lt_prog_compiler_static_F77 \ ++lt_prog_compiler_static_FC \ ++lt_cv_prog_compiler_c_o_CXX \ ++lt_cv_prog_compiler_c_o_F77 \ ++lt_cv_prog_compiler_c_o_FC \ ++export_dynamic_flag_spec_CXX \ ++export_dynamic_flag_spec_F77 \ ++export_dynamic_flag_spec_FC \ ++whole_archive_flag_spec_CXX \ ++whole_archive_flag_spec_F77 \ ++whole_archive_flag_spec_FC \ ++compiler_needs_object_CXX \ ++compiler_needs_object_F77 \ ++compiler_needs_object_FC \ ++with_gnu_ld_CXX \ ++with_gnu_ld_F77 \ ++with_gnu_ld_FC \ ++allow_undefined_flag_CXX \ ++allow_undefined_flag_F77 \ ++allow_undefined_flag_FC \ ++no_undefined_flag_CXX \ ++no_undefined_flag_F77 \ ++no_undefined_flag_FC \ ++hardcode_libdir_flag_spec_CXX \ ++hardcode_libdir_flag_spec_F77 \ ++hardcode_libdir_flag_spec_FC \ ++hardcode_libdir_flag_spec_ld_CXX \ ++hardcode_libdir_flag_spec_ld_F77 \ ++hardcode_libdir_flag_spec_ld_FC \ ++hardcode_libdir_separator_CXX \ ++hardcode_libdir_separator_F77 \ ++hardcode_libdir_separator_FC \ ++fix_srcfile_path_CXX \ ++fix_srcfile_path_F77 \ ++fix_srcfile_path_FC \ ++exclude_expsyms_CXX \ ++exclude_expsyms_F77 \ ++exclude_expsyms_FC \ ++include_expsyms_CXX \ ++include_expsyms_F77 \ ++include_expsyms_FC \ ++file_list_spec_CXX \ ++file_list_spec_F77 \ ++file_list_spec_FC \ ++compiler_lib_search_dirs_CXX \ ++compiler_lib_search_dirs_F77 \ ++compiler_lib_search_dirs_FC \ ++predep_objects_CXX \ ++predep_objects_F77 \ ++predep_objects_FC \ ++postdep_objects_CXX \ ++postdep_objects_F77 \ ++postdep_objects_FC \ ++predeps_CXX \ ++predeps_F77 \ ++predeps_FC \ ++postdeps_CXX \ ++postdeps_F77 \ ++postdeps_FC \ ++compiler_lib_search_path_CXX \ ++compiler_lib_search_path_F77 \ ++compiler_lib_search_path_FC; do ++ case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in ++ *[\\\\\\\`\\"\\\$]*) ++ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ++ ;; ++ *) ++ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ++ ;; ++ esac ++done ++ ++# Double-quote double-evaled strings. ++for var in reload_cmds \ ++old_postinstall_cmds \ ++old_postuninstall_cmds \ ++old_archive_cmds \ ++extract_expsyms_cmds \ ++old_archive_from_new_cmds \ ++old_archive_from_expsyms_cmds \ ++archive_cmds \ ++archive_expsym_cmds \ ++module_cmds \ ++module_expsym_cmds \ ++export_symbols_cmds \ ++prelink_cmds \ ++postinstall_cmds \ ++postuninstall_cmds \ ++finish_cmds \ ++sys_lib_search_path_spec \ ++sys_lib_dlsearch_path_spec \ ++old_archive_cmds_CXX \ ++old_archive_cmds_F77 \ ++old_archive_cmds_FC \ ++old_archive_from_new_cmds_CXX \ ++old_archive_from_new_cmds_F77 \ ++old_archive_from_new_cmds_FC \ ++old_archive_from_expsyms_cmds_CXX \ ++old_archive_from_expsyms_cmds_F77 \ ++old_archive_from_expsyms_cmds_FC \ ++archive_cmds_CXX \ ++archive_cmds_F77 \ ++archive_cmds_FC \ ++archive_expsym_cmds_CXX \ ++archive_expsym_cmds_F77 \ ++archive_expsym_cmds_FC \ ++module_cmds_CXX \ ++module_cmds_F77 \ ++module_cmds_FC \ ++module_expsym_cmds_CXX \ ++module_expsym_cmds_F77 \ ++module_expsym_cmds_FC \ ++export_symbols_cmds_CXX \ ++export_symbols_cmds_F77 \ ++export_symbols_cmds_FC \ ++prelink_cmds_CXX \ ++prelink_cmds_F77 \ ++prelink_cmds_FC; do ++ case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in ++ *[\\\\\\\`\\"\\\$]*) ++ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ++ ;; ++ *) ++ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ++ ;; ++ esac ++done ++ ++# Fix-up fallback echo if it was mangled by the above quoting rules. ++case \$lt_ECHO in ++*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` ++ ;; ++esac ++ ++ac_aux_dir='$ac_aux_dir' ++xsi_shell='$xsi_shell' ++lt_shell_append='$lt_shell_append' ++ ++# See if we are running on zsh, and set the options which allow our ++# commands through without removal of \ escapes INIT. ++if test -n "\${ZSH_VERSION+set}" ; then ++ setopt NO_GLOB_SUBST ++fi ++ ++ ++ PACKAGE='$PACKAGE' ++ VERSION='$VERSION' ++ TIMESTAMP='$TIMESTAMP' ++ RM='$RM' ++ ofile='$ofile' ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++_ACEOF ++ ++cat >>$CONFIG_STATUS <<\_ACEOF ++ ++# Handling of arguments. ++for ac_config_target in $ac_config_targets ++do ++ case $ac_config_target in ++ "ompi/include/ompi/version.h") CONFIG_FILES="$CONFIG_FILES ompi/include/ompi/version.h" ;; ++ "orte/include/orte/version.h") CONFIG_FILES="$CONFIG_FILES orte/include/orte/version.h" ;; ++ "opal/include/opal/version.h") CONFIG_FILES="$CONFIG_FILES opal/include/opal/version.h" ;; ++ "opal/include/opal_config.h") CONFIG_HEADERS="$CONFIG_HEADERS opal/include/opal_config.h" ;; ++ "orte/include/orte_config.h") CONFIG_HEADERS="$CONFIG_HEADERS orte/include/orte_config.h" ;; ++ "ompi/include/ompi_config.h") CONFIG_HEADERS="$CONFIG_HEADERS ompi/include/ompi_config.h" ;; ++ "ompi/include/mpi.h") CONFIG_HEADERS="$CONFIG_HEADERS ompi/include/mpi.h" ;; ++ "ompi/tools/wrappers/ompi_wrapper_script") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/ompi_wrapper_script" ;; ++ "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; ++ "opal/mca/installdirs/config/install_dirs.h") CONFIG_FILES="$CONFIG_FILES opal/mca/installdirs/config/install_dirs.h" ;; ++ "opal/mca/paffinity/linux/plpa/src/libplpa/plpa_config.h") CONFIG_HEADERS="$CONFIG_HEADERS opal/mca/paffinity/linux/plpa/src/libplpa/plpa_config.h" ;; ++ "opal/mca/paffinity/linux/plpa/src/libplpa/plpa.h") CONFIG_HEADERS="$CONFIG_HEADERS opal/mca/paffinity/linux/plpa/src/libplpa/plpa.h" ;; ++ "opal/mca/paffinity/linux/plpa/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/linux/plpa/Makefile" ;; ++ "opal/mca/paffinity/linux/plpa/config/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/linux/plpa/config/Makefile" ;; ++ "opal/mca/paffinity/linux/plpa/src/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/linux/plpa/src/Makefile" ;; ++ "opal/mca/paffinity/linux/plpa/src/libplpa/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/linux/plpa/src/libplpa/Makefile" ;; ++ "opal/mca/paffinity/linux/plpa/src/plpa-info/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/linux/plpa/src/plpa-info/Makefile" ;; ++ "opal/mca/paffinity/linux/plpa/src/plpa-taskset/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/linux/plpa/src/plpa-taskset/Makefile" ;; ++ "opal/mca/backtrace/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/backtrace/Makefile" ;; ++ "opal/mca/backtrace/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/backtrace/darwin/Makefile" ;; ++ "opal/mca/backtrace/execinfo/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/backtrace/execinfo/Makefile" ;; ++ "opal/mca/backtrace/none/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/backtrace/none/Makefile" ;; ++ "opal/mca/backtrace/printstack/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/backtrace/printstack/Makefile" ;; ++ "opal/mca/carto/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/carto/Makefile" ;; ++ "opal/mca/carto/auto_detect/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/carto/auto_detect/Makefile" ;; ++ "opal/mca/carto/file/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/carto/file/Makefile" ;; ++ "opal/mca/crs/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/crs/Makefile" ;; ++ "opal/mca/crs/blcr/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/crs/blcr/Makefile" ;; ++ "opal/mca/crs/none/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/crs/none/Makefile" ;; ++ "opal/mca/crs/self/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/crs/self/Makefile" ;; ++ "opal/mca/installdirs/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/installdirs/Makefile" ;; ++ "opal/mca/installdirs/config/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/installdirs/config/Makefile" ;; ++ "opal/mca/installdirs/env/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/installdirs/env/Makefile" ;; ++ "opal/mca/maffinity/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/maffinity/Makefile" ;; ++ "opal/mca/maffinity/first_use/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/maffinity/first_use/Makefile" ;; ++ "opal/mca/maffinity/libnuma/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/maffinity/libnuma/Makefile" ;; ++ "opal/mca/memchecker/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memchecker/Makefile" ;; ++ "opal/mca/memchecker/valgrind/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memchecker/valgrind/Makefile" ;; ++ "opal/mca/memcpy/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memcpy/Makefile" ;; ++ "opal/mca/memory/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memory/Makefile" ;; ++ "opal/mca/memory/malloc_solaris/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memory/malloc_solaris/Makefile" ;; ++ "opal/mca/memory/mallopt/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memory/mallopt/Makefile" ;; ++ "opal/mca/memory/ptmalloc2/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memory/ptmalloc2/Makefile" ;; ++ "opal/mca/paffinity/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/Makefile" ;; ++ "opal/mca/paffinity/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/darwin/Makefile" ;; ++ "opal/mca/paffinity/linux/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/linux/Makefile" ;; ++ "opal/mca/paffinity/posix/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/posix/Makefile" ;; ++ "opal/mca/paffinity/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/solaris/Makefile" ;; ++ "opal/mca/paffinity/windows/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/windows/Makefile" ;; ++ "opal/mca/timer/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/Makefile" ;; ++ "opal/mca/timer/aix/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/aix/Makefile" ;; ++ "opal/mca/timer/altix/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/altix/Makefile" ;; ++ "opal/mca/timer/catamount/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/catamount/Makefile" ;; ++ "opal/mca/timer/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/darwin/Makefile" ;; ++ "opal/mca/timer/linux/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/linux/Makefile" ;; ++ "opal/mca/timer/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/solaris/Makefile" ;; ++ "opal/mca/timer/windows/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/windows/Makefile" ;; ++ "orte/mca/errmgr/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/errmgr/Makefile" ;; ++ "orte/mca/errmgr/default/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/errmgr/default/Makefile" ;; ++ "orte/mca/ess/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/Makefile" ;; ++ "orte/mca/ess/alps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/alps/Makefile" ;; ++ "orte/mca/ess/cnos/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/cnos/Makefile" ;; ++ "orte/mca/ess/env/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/env/Makefile" ;; ++ "orte/mca/ess/hnp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/hnp/Makefile" ;; ++ "orte/mca/ess/lsf/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/lsf/Makefile" ;; ++ "orte/mca/ess/portals_utcp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/portals_utcp/Makefile" ;; ++ "orte/mca/ess/singleton/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/singleton/Makefile" ;; ++ "orte/mca/ess/slurm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/slurm/Makefile" ;; ++ "orte/mca/ess/tool/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/tool/Makefile" ;; ++ "orte/mca/filem/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/filem/Makefile" ;; ++ "orte/mca/filem/rsh/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/filem/rsh/Makefile" ;; ++ "orte/mca/grpcomm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/grpcomm/Makefile" ;; ++ "orte/mca/grpcomm/bad/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/grpcomm/bad/Makefile" ;; ++ "orte/mca/grpcomm/basic/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/grpcomm/basic/Makefile" ;; ++ "orte/mca/grpcomm/cnos/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/grpcomm/cnos/Makefile" ;; ++ "orte/mca/iof/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/iof/Makefile" ;; ++ "orte/mca/iof/hnp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/iof/hnp/Makefile" ;; ++ "orte/mca/iof/orted/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/iof/orted/Makefile" ;; ++ "orte/mca/iof/tool/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/iof/tool/Makefile" ;; ++ "orte/mca/notifier/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/notifier/Makefile" ;; ++ "orte/mca/notifier/syslog/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/notifier/syslog/Makefile" ;; ++ "orte/mca/odls/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/odls/Makefile" ;; ++ "orte/mca/odls/default/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/odls/default/Makefile" ;; ++ "orte/mca/oob/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/oob/Makefile" ;; ++ "orte/mca/oob/tcp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/oob/tcp/Makefile" ;; ++ "orte/mca/plm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/Makefile" ;; ++ "orte/mca/plm/alps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/alps/Makefile" ;; ++ "orte/mca/plm/lsf/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/lsf/Makefile" ;; ++ "orte/mca/plm/rsh/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/rsh/Makefile" ;; ++ "orte/mca/plm/slurm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/slurm/Makefile" ;; ++ "orte/mca/plm/tm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/tm/Makefile" ;; ++ "orte/mca/plm/xgrid/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/xgrid/Makefile" ;; ++ "orte/mca/ras/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/Makefile" ;; ++ "orte/mca/ras/alps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/alps/Makefile" ;; ++ "orte/mca/ras/gridengine/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/gridengine/Makefile" ;; ++ "orte/mca/ras/loadleveler/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/loadleveler/Makefile" ;; ++ "orte/mca/ras/lsf/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/lsf/Makefile" ;; ++ "orte/mca/ras/slurm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/slurm/Makefile" ;; ++ "orte/mca/ras/tm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/tm/Makefile" ;; ++ "orte/mca/rmaps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/Makefile" ;; ++ "orte/mca/rmaps/rank_file/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/rank_file/Makefile" ;; ++ "orte/mca/rmaps/round_robin/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/round_robin/Makefile" ;; ++ "orte/mca/rmaps/seq/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/seq/Makefile" ;; ++ "orte/mca/rml/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rml/Makefile" ;; ++ "orte/mca/rml/ftrm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rml/ftrm/Makefile" ;; ++ "orte/mca/rml/oob/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rml/oob/Makefile" ;; ++ "orte/mca/routed/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/routed/Makefile" ;; ++ "orte/mca/routed/binomial/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/routed/binomial/Makefile" ;; ++ "orte/mca/routed/direct/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/routed/direct/Makefile" ;; ++ "orte/mca/routed/linear/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/routed/linear/Makefile" ;; ++ "orte/mca/snapc/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/snapc/Makefile" ;; ++ "orte/mca/snapc/full/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/snapc/full/Makefile" ;; ++ "ompi/mca/allocator/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/allocator/Makefile" ;; ++ "ompi/mca/allocator/basic/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/allocator/basic/Makefile" ;; ++ "ompi/mca/allocator/bucket/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/allocator/bucket/Makefile" ;; ++ "ompi/mca/bml/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/bml/Makefile" ;; ++ "ompi/mca/bml/r2/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/bml/r2/Makefile" ;; ++ "ompi/mca/btl/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/Makefile" ;; ++ "ompi/mca/btl/elan/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/elan/Makefile" ;; ++ "ompi/mca/btl/gm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/gm/Makefile" ;; ++ "ompi/mca/btl/mx/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/mx/Makefile" ;; ++ "ompi/mca/btl/ofud/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/ofud/Makefile" ;; ++ "ompi/mca/btl/openib/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/openib/Makefile" ;; ++ "ompi/mca/btl/portals/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/portals/Makefile" ;; ++ "ompi/mca/btl/self/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/self/Makefile" ;; ++ "ompi/mca/btl/sm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/sm/Makefile" ;; ++ "ompi/mca/btl/tcp/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/tcp/Makefile" ;; ++ "ompi/mca/btl/udapl/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/udapl/Makefile" ;; ++ "ompi/mca/coll/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/Makefile" ;; ++ "ompi/mca/coll/basic/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/basic/Makefile" ;; ++ "ompi/mca/coll/hierarch/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/hierarch/Makefile" ;; ++ "ompi/mca/coll/inter/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/inter/Makefile" ;; ++ "ompi/mca/coll/self/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/self/Makefile" ;; ++ "ompi/mca/coll/sm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/sm/Makefile" ;; ++ "ompi/mca/coll/tuned/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/tuned/Makefile" ;; ++ "ompi/mca/common/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/common/Makefile" ;; ++ "ompi/mca/common/mx/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/common/mx/Makefile" ;; ++ "ompi/mca/common/portals/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/common/portals/Makefile" ;; ++ "ompi/mca/common/sm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/common/sm/Makefile" ;; ++ "ompi/mca/crcp/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/crcp/Makefile" ;; ++ "ompi/mca/crcp/bkmrk/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/crcp/bkmrk/Makefile" ;; ++ "ompi/mca/dpm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/dpm/Makefile" ;; ++ "ompi/mca/dpm/orte/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/dpm/orte/Makefile" ;; ++ "ompi/mca/io/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/io/Makefile" ;; ++ "ompi/mca/io/romio/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/io/romio/Makefile" ;; ++ "ompi/mca/mpool/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/Makefile" ;; ++ "ompi/mca/mpool/fake/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/fake/Makefile" ;; ++ "ompi/mca/mpool/rdma/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/rdma/Makefile" ;; ++ "ompi/mca/mpool/sm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/sm/Makefile" ;; ++ "ompi/mca/mtl/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mtl/Makefile" ;; ++ "ompi/mca/mtl/mx/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mtl/mx/Makefile" ;; ++ "ompi/mca/mtl/portals/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mtl/portals/Makefile" ;; ++ "ompi/mca/mtl/psm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mtl/psm/Makefile" ;; ++ "ompi/mca/osc/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/osc/Makefile" ;; ++ "ompi/mca/osc/pt2pt/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/osc/pt2pt/Makefile" ;; ++ "ompi/mca/osc/rdma/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/osc/rdma/Makefile" ;; ++ "ompi/mca/pml/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/Makefile" ;; ++ "ompi/mca/pml/cm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/cm/Makefile" ;; ++ "ompi/mca/pml/crcpw/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/crcpw/Makefile" ;; ++ "ompi/mca/pml/ob1/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/ob1/Makefile" ;; ++ "ompi/mca/pml/v/mca/vprotocol/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/v/mca/vprotocol/Makefile" ;; ++ "ompi/mca/pml/v/mca/vprotocol/pessimist/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/v/mca/vprotocol/pessimist/Makefile" ;; ++ "ompi/mca/pml/v/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/v/Makefile" ;; ++ "ompi/mca/pubsub/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pubsub/Makefile" ;; ++ "ompi/mca/pubsub/orte/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pubsub/orte/Makefile" ;; ++ "ompi/mca/rcache/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/rcache/Makefile" ;; ++ "ompi/mca/rcache/vma/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/rcache/vma/Makefile" ;; ++ "ompi/mca/topo/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/topo/Makefile" ;; ++ "ompi/mca/topo/unity/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/topo/unity/Makefile" ;; ++ "ompi/contrib/vt/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/contrib/vt/Makefile" ;; ++ "ompi/contrib/vt/wrappers/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/contrib/vt/wrappers/Makefile" ;; ++ "ompi/contrib/vt/wrappers/mpicc-vt-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/contrib/vt/wrappers/mpicc-vt-wrapper-data.txt" ;; ++ "ompi/contrib/vt/wrappers/mpic++-vt-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/contrib/vt/wrappers/mpic++-vt-wrapper-data.txt" ;; ++ "ompi/contrib/vt/wrappers/mpif77-vt-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/contrib/vt/wrappers/mpif77-vt-wrapper-data.txt" ;; ++ "ompi/contrib/vt/wrappers/mpif90-vt-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/contrib/vt/wrappers/mpif90-vt-wrapper-data.txt" ;; ++ "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; ++ "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; ++ "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; ++ "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; ++ "opal/Makefile") CONFIG_FILES="$CONFIG_FILES opal/Makefile" ;; ++ "opal/etc/Makefile") CONFIG_FILES="$CONFIG_FILES opal/etc/Makefile" ;; ++ "opal/include/Makefile") CONFIG_FILES="$CONFIG_FILES opal/include/Makefile" ;; ++ "opal/asm/Makefile") CONFIG_FILES="$CONFIG_FILES opal/asm/Makefile" ;; ++ "opal/event/Makefile") CONFIG_FILES="$CONFIG_FILES opal/event/Makefile" ;; ++ "opal/event/compat/Makefile") CONFIG_FILES="$CONFIG_FILES opal/event/compat/Makefile" ;; ++ "opal/event/compat/sys/Makefile") CONFIG_FILES="$CONFIG_FILES opal/event/compat/sys/Makefile" ;; ++ "opal/util/Makefile") CONFIG_FILES="$CONFIG_FILES opal/util/Makefile" ;; ++ "opal/util/keyval/Makefile") CONFIG_FILES="$CONFIG_FILES opal/util/keyval/Makefile" ;; ++ "opal/mca/base/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/base/Makefile" ;; ++ "opal/tools/wrappers/Makefile") CONFIG_FILES="$CONFIG_FILES opal/tools/wrappers/Makefile" ;; ++ "opal/tools/wrappers/opalcc-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES opal/tools/wrappers/opalcc-wrapper-data.txt" ;; ++ "opal/tools/wrappers/opalc++-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES opal/tools/wrappers/opalc++-wrapper-data.txt" ;; ++ "opal/tools/opal-checkpoint/Makefile") CONFIG_FILES="$CONFIG_FILES opal/tools/opal-checkpoint/Makefile" ;; ++ "opal/tools/opal-restart/Makefile") CONFIG_FILES="$CONFIG_FILES opal/tools/opal-restart/Makefile" ;; ++ "orte/Makefile") CONFIG_FILES="$CONFIG_FILES orte/Makefile" ;; ++ "orte/include/Makefile") CONFIG_FILES="$CONFIG_FILES orte/include/Makefile" ;; ++ "orte/etc/Makefile") CONFIG_FILES="$CONFIG_FILES orte/etc/Makefile" ;; ++ "orte/tools/orted/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orted/Makefile" ;; ++ "orte/tools/orterun/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orterun/Makefile" ;; ++ "orte/tools/wrappers/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/wrappers/Makefile" ;; ++ "orte/tools/wrappers/ortecc-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES orte/tools/wrappers/ortecc-wrapper-data.txt" ;; ++ "orte/tools/wrappers/ortec++-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES orte/tools/wrappers/ortec++-wrapper-data.txt" ;; ++ "orte/tools/orte-checkpoint/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orte-checkpoint/Makefile" ;; ++ "orte/tools/orte-iof/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orte-iof/Makefile" ;; ++ "orte/tools/orte-restart/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orte-restart/Makefile" ;; ++ "orte/tools/orte-ps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orte-ps/Makefile" ;; ++ "orte/tools/orte-clean/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orte-clean/Makefile" ;; ++ "ompi/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/Makefile" ;; ++ "ompi/etc/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/etc/Makefile" ;; ++ "ompi/include/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/include/Makefile" ;; ++ "ompi/include/mpif.h") CONFIG_FILES="$CONFIG_FILES ompi/include/mpif.h" ;; ++ "ompi/include/mpif-config.h") CONFIG_FILES="$CONFIG_FILES ompi/include/mpif-config.h" ;; ++ "ompi/datatype/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/datatype/Makefile" ;; ++ "ompi/debuggers/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/debuggers/Makefile" ;; ++ "ompi/mpi/c/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/c/Makefile" ;; ++ "ompi/mpi/c/profile/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/c/profile/Makefile" ;; ++ "ompi/mpi/cxx/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/cxx/Makefile" ;; ++ "ompi/mpi/f77/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/f77/Makefile" ;; ++ "ompi/mpi/f77/profile/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/f77/profile/Makefile" ;; ++ "ompi/mpi/f90/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/f90/Makefile" ;; ++ "ompi/mpi/f90/fortran_kinds.sh") CONFIG_FILES="$CONFIG_FILES ompi/mpi/f90/fortran_kinds.sh" ;; ++ "ompi/mpi/f90/fortran_sizes.h") CONFIG_FILES="$CONFIG_FILES ompi/mpi/f90/fortran_sizes.h" ;; ++ "ompi/mpi/f90/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/f90/scripts/Makefile" ;; ++ "ompi/tools/ompi_info/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/tools/ompi_info/Makefile" ;; ++ "ompi/tools/wrappers/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/Makefile" ;; ++ "ompi/tools/wrappers/mpicc-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/mpicc-wrapper-data.txt" ;; ++ "ompi/tools/wrappers/mpic++-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/mpic++-wrapper-data.txt" ;; ++ "ompi/tools/wrappers/mpif77-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/mpif77-wrapper-data.txt" ;; ++ "ompi/tools/wrappers/mpif90-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/mpif90-wrapper-data.txt" ;; ++ "ompi/tools/ortetools/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/tools/ortetools/Makefile" ;; ++ "ompi/tools/ompi-server/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/tools/ompi-server/Makefile" ;; ++ "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; ++ "test/event/Makefile") CONFIG_FILES="$CONFIG_FILES test/event/Makefile" ;; ++ "test/asm/Makefile") CONFIG_FILES="$CONFIG_FILES test/asm/Makefile" ;; ++ "test/class/Makefile") CONFIG_FILES="$CONFIG_FILES test/class/Makefile" ;; ++ "test/support/Makefile") CONFIG_FILES="$CONFIG_FILES test/support/Makefile" ;; ++ "test/threads/Makefile") CONFIG_FILES="$CONFIG_FILES test/threads/Makefile" ;; ++ "test/peruse/Makefile") CONFIG_FILES="$CONFIG_FILES test/peruse/Makefile" ;; ++ "test/datatype/Makefile") CONFIG_FILES="$CONFIG_FILES test/datatype/Makefile" ;; ++ ++ *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 ++echo "$as_me: error: invalid argument: $ac_config_target" >&2;} ++ { (exit 1); exit 1; }; };; ++ esac ++done ++ ++ ++# If the user did not use the arguments to specify the items to instantiate, ++# then the envvar interface is used. Set only those that are not. ++# We use the long form for the default assignment because of an extremely ++# bizarre bug on SunOS 4.1.3. ++if $ac_need_defaults; then ++ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files ++ test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers ++ test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands ++fi ++ ++# Have a temporary directory for convenience. Make it in the build tree ++# simply because there is no reason against having it here, and in addition, ++# creating and moving files from /tmp can sometimes cause problems. ++# Hook for its removal unless debugging. ++# Note that there is a small window in which the directory will not be cleaned: ++# after its creation but before its name has been assigned to `$tmp'. ++$debug || ++{ ++ tmp= ++ trap 'exit_status=$? ++ { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ++' 0 ++ trap '{ (exit 1); exit 1; }' 1 2 13 15 ++} ++# Create a (secure) tmp directory for tmp files. ++ ++{ ++ tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && ++ test -n "$tmp" && test -d "$tmp" ++} || ++{ ++ tmp=./conf$$-$RANDOM ++ (umask 077 && mkdir "$tmp") ++} || ++{ ++ echo "$me: cannot create a temporary directory in ." >&2 ++ { (exit 1); exit 1; } ++} ++ ++# ++# Set up the sed scripts for CONFIG_FILES section. ++# ++ ++# No need to generate the scripts if there are no CONFIG_FILES. ++# This happens for instance when ./config.status config.h ++if test -n "$CONFIG_FILES"; then ++ ++_ACEOF ++ ++ ++ ++ac_delim='%!_!# ' ++for ac_last_try in false false false false false :; do ++ cat >conf$$subs.sed <<_ACEOF ++SHELL!$SHELL$ac_delim ++PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim ++PACKAGE_NAME!$PACKAGE_NAME$ac_delim ++PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim ++PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim ++PACKAGE_STRING!$PACKAGE_STRING$ac_delim ++PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim ++exec_prefix!$exec_prefix$ac_delim ++prefix!$prefix$ac_delim ++program_transform_name!$program_transform_name$ac_delim ++bindir!$bindir$ac_delim ++sbindir!$sbindir$ac_delim ++libexecdir!$libexecdir$ac_delim ++datarootdir!$datarootdir$ac_delim ++datadir!$datadir$ac_delim ++sysconfdir!$sysconfdir$ac_delim ++sharedstatedir!$sharedstatedir$ac_delim ++localstatedir!$localstatedir$ac_delim ++includedir!$includedir$ac_delim ++oldincludedir!$oldincludedir$ac_delim ++docdir!$docdir$ac_delim ++infodir!$infodir$ac_delim ++htmldir!$htmldir$ac_delim ++dvidir!$dvidir$ac_delim ++pdfdir!$pdfdir$ac_delim ++psdir!$psdir$ac_delim ++libdir!$libdir$ac_delim ++localedir!$localedir$ac_delim ++mandir!$mandir$ac_delim ++DEFS!$DEFS$ac_delim ++ECHO_C!$ECHO_C$ac_delim ++ECHO_N!$ECHO_N$ac_delim ++ECHO_T!$ECHO_T$ac_delim ++LIBS!$LIBS$ac_delim ++build_alias!$build_alias$ac_delim ++host_alias!$host_alias$ac_delim ++target_alias!$target_alias$ac_delim ++OPAL_DEFAULT_MCA_PARAM_CONF!$OPAL_DEFAULT_MCA_PARAM_CONF$ac_delim ++OPAL_PARAM_FROM_PLATFORM!$OPAL_PARAM_FROM_PLATFORM$ac_delim ++INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim ++INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim ++INSTALL_DATA!$INSTALL_DATA$ac_delim ++am__isrc!$am__isrc$ac_delim ++CYGPATH_W!$CYGPATH_W$ac_delim ++PACKAGE!$PACKAGE$ac_delim ++VERSION!$VERSION$ac_delim ++ACLOCAL!$ACLOCAL$ac_delim ++AUTOCONF!$AUTOCONF$ac_delim ++AUTOMAKE!$AUTOMAKE$ac_delim ++AUTOHEADER!$AUTOHEADER$ac_delim ++MAKEINFO!$MAKEINFO$ac_delim ++install_sh!$install_sh$ac_delim ++STRIP!$STRIP$ac_delim ++INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim ++mkdir_p!$mkdir_p$ac_delim ++AWK!$AWK$ac_delim ++SET_MAKE!$SET_MAKE$ac_delim ++am__leading_dot!$am__leading_dot$ac_delim ++AMTAR!$AMTAR$ac_delim ++am__tar!$am__tar$ac_delim ++am__untar!$am__untar$ac_delim ++CONFIGURE_DEPENDENCIES!$CONFIGURE_DEPENDENCIES$ac_delim ++OMPI_CONFIGURE_USER!$OMPI_CONFIGURE_USER$ac_delim ++OMPI_CONFIGURE_HOST!$OMPI_CONFIGURE_HOST$ac_delim ++OMPI_CONFIGURE_DATE!$OMPI_CONFIGURE_DATE$ac_delim ++OMPI_MAJOR_VERSION!$OMPI_MAJOR_VERSION$ac_delim ++OMPI_MINOR_VERSION!$OMPI_MINOR_VERSION$ac_delim ++OMPI_RELEASE_VERSION!$OMPI_RELEASE_VERSION$ac_delim ++OMPI_GREEK_VERSION!$OMPI_GREEK_VERSION$ac_delim ++OMPI_WANT_SVN!$OMPI_WANT_SVN$ac_delim ++OMPI_SVN_R!$OMPI_SVN_R$ac_delim ++OMPI_VERSION!$OMPI_VERSION$ac_delim ++OMPI_RELEASE_DATE!$OMPI_RELEASE_DATE$ac_delim ++ORTE_MAJOR_VERSION!$ORTE_MAJOR_VERSION$ac_delim ++ORTE_MINOR_VERSION!$ORTE_MINOR_VERSION$ac_delim ++ORTE_RELEASE_VERSION!$ORTE_RELEASE_VERSION$ac_delim ++ORTE_GREEK_VERSION!$ORTE_GREEK_VERSION$ac_delim ++ORTE_WANT_SVN!$ORTE_WANT_SVN$ac_delim ++ORTE_SVN_R!$ORTE_SVN_R$ac_delim ++ORTE_VERSION!$ORTE_VERSION$ac_delim ++ORTE_RELEASE_DATE!$ORTE_RELEASE_DATE$ac_delim ++OPAL_MAJOR_VERSION!$OPAL_MAJOR_VERSION$ac_delim ++OPAL_MINOR_VERSION!$OPAL_MINOR_VERSION$ac_delim ++OPAL_RELEASE_VERSION!$OPAL_RELEASE_VERSION$ac_delim ++OPAL_GREEK_VERSION!$OPAL_GREEK_VERSION$ac_delim ++OPAL_WANT_SVN!$OPAL_WANT_SVN$ac_delim ++OPAL_SVN_R!$OPAL_SVN_R$ac_delim ++OPAL_VERSION!$OPAL_VERSION$ac_delim ++OPAL_RELEASE_DATE!$OPAL_RELEASE_DATE$ac_delim ++OMPI_TOP_BUILDDIR!$OMPI_TOP_BUILDDIR$ac_delim ++OMPI_TOP_SRCDIR!$OMPI_TOP_SRCDIR$ac_delim ++CLEANFILES!$CLEANFILES$ac_delim ++build!$build$ac_delim ++build_cpu!$build_cpu$ac_delim ++build_vendor!$build_vendor$ac_delim ++build_os!$build_os$ac_delim ++host!$host$ac_delim ++_ACEOF ++ ++ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then ++ break ++ elif $ac_last_try; then ++ { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 ++echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ ac_delim="$ac_delim!$ac_delim _$ac_delim!! " ++ fi ++done ++ ++ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` ++if test -n "$ac_eof"; then ++ ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ++ ac_eof=`expr $ac_eof + 1` ++fi ++ ++cat >>$CONFIG_STATUS <<_ACEOF ++cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b ++_ACEOF ++sed ' ++s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g ++s/^/s,@/; s/!/@,|#_!!_#|/ ++:n ++t n ++s/'"$ac_delim"'$/,g/; t ++s/$/\\/; p ++N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ++' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF ++CEOF$ac_eof ++_ACEOF ++ ++ ++ac_delim='%!_!# ' ++for ac_last_try in false false false false false :; do ++ cat >conf$$subs.sed <<_ACEOF ++host_cpu!$host_cpu$ac_delim ++host_vendor!$host_vendor$ac_delim ++host_os!$host_os$ac_delim ++ac_prefix_program!$ac_prefix_program$ac_delim ++top_ompi_srcdir!$top_ompi_srcdir$ac_delim ++top_ompi_builddir!$top_ompi_builddir$ac_delim ++OMPI_WANT_BUILD_F90_TRIVIAL_TRUE!$OMPI_WANT_BUILD_F90_TRIVIAL_TRUE$ac_delim ++OMPI_WANT_BUILD_F90_TRIVIAL_FALSE!$OMPI_WANT_BUILD_F90_TRIVIAL_FALSE$ac_delim ++OMPI_WANT_BUILD_F90_SMALL_TRUE!$OMPI_WANT_BUILD_F90_SMALL_TRUE$ac_delim ++OMPI_WANT_BUILD_F90_SMALL_FALSE!$OMPI_WANT_BUILD_F90_SMALL_FALSE$ac_delim ++OMPI_WANT_BUILD_F90_MEDIUM_TRUE!$OMPI_WANT_BUILD_F90_MEDIUM_TRUE$ac_delim ++OMPI_WANT_BUILD_F90_MEDIUM_FALSE!$OMPI_WANT_BUILD_F90_MEDIUM_FALSE$ac_delim ++OMPI_WANT_BUILD_F90_LARGE_TRUE!$OMPI_WANT_BUILD_F90_LARGE_TRUE$ac_delim ++OMPI_WANT_BUILD_F90_LARGE_FALSE!$OMPI_WANT_BUILD_F90_LARGE_FALSE$ac_delim ++OMPI_F90_BUILD_SIZE!$OMPI_F90_BUILD_SIZE$ac_delim ++MPIF_H_PMPI_W_FUNCS!$MPIF_H_PMPI_W_FUNCS$ac_delim ++WANT_INSTALL_HEADERS_TRUE!$WANT_INSTALL_HEADERS_TRUE$ac_delim ++WANT_INSTALL_HEADERS_FALSE!$WANT_INSTALL_HEADERS_FALSE$ac_delim ++WANT_PERUSE_TRUE!$WANT_PERUSE_TRUE$ac_delim ++WANT_PERUSE_FALSE!$WANT_PERUSE_FALSE$ac_delim ++OMPI_FORTRAN_MAX_ARRAY_RANK!$OMPI_FORTRAN_MAX_ARRAY_RANK$ac_delim ++ORTE_DISABLE_FULL_SUPPORT_TRUE!$ORTE_DISABLE_FULL_SUPPORT_TRUE$ac_delim ++ORTE_DISABLE_FULL_SUPPORT_FALSE!$ORTE_DISABLE_FULL_SUPPORT_FALSE$ac_delim ++WANT_FT_TRUE!$WANT_FT_TRUE$ac_delim ++WANT_FT_FALSE!$WANT_FT_FALSE$ac_delim ++OMPI_INSTALL_BINARIES_TRUE!$OMPI_INSTALL_BINARIES_TRUE$ac_delim ++OMPI_INSTALL_BINARIES_FALSE!$OMPI_INSTALL_BINARIES_FALSE$ac_delim ++OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_TRUE!$OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_TRUE$ac_delim ++OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_FALSE!$OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_FALSE$ac_delim ++CC!$CC$ac_delim ++CFLAGS!$CFLAGS$ac_delim ++LDFLAGS!$LDFLAGS$ac_delim ++CPPFLAGS!$CPPFLAGS$ac_delim ++ac_ct_CC!$ac_ct_CC$ac_delim ++EXEEXT!$EXEEXT$ac_delim ++OBJEXT!$OBJEXT$ac_delim ++DEPDIR!$DEPDIR$ac_delim ++am__include!$am__include$ac_delim ++am__quote!$am__quote$ac_delim ++AMDEP_TRUE!$AMDEP_TRUE$ac_delim ++AMDEP_FALSE!$AMDEP_FALSE$ac_delim ++AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim ++CCDEPMODE!$CCDEPMODE$ac_delim ++am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim ++am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim ++OMPI_CC_ABSOLUTE!$OMPI_CC_ABSOLUTE$ac_delim ++CPP!$CPP$ac_delim ++GREP!$GREP$ac_delim ++EGREP!$EGREP$ac_delim ++CFLAGS_WITHOUT_OPTFLAGS!$CFLAGS_WITHOUT_OPTFLAGS$ac_delim ++OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE!$OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE$ac_delim ++OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE!$OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE$ac_delim ++WANT_MPI_BINDINGS_LAYER_TRUE!$WANT_MPI_BINDINGS_LAYER_TRUE$ac_delim ++WANT_MPI_BINDINGS_LAYER_FALSE!$WANT_MPI_BINDINGS_LAYER_FALSE$ac_delim ++WANT_PMPI_BINDINGS_LAYER_TRUE!$WANT_PMPI_BINDINGS_LAYER_TRUE$ac_delim ++WANT_PMPI_BINDINGS_LAYER_FALSE!$WANT_PMPI_BINDINGS_LAYER_FALSE$ac_delim ++COMPILE_PROFILING_SEPARATELY_TRUE!$COMPILE_PROFILING_SEPARATELY_TRUE$ac_delim ++COMPILE_PROFILING_SEPARATELY_FALSE!$COMPILE_PROFILING_SEPARATELY_FALSE$ac_delim ++CXX!$CXX$ac_delim ++CXXFLAGS!$CXXFLAGS$ac_delim ++ac_ct_CXX!$ac_ct_CXX$ac_delim ++CXXDEPMODE!$CXXDEPMODE$ac_delim ++am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim ++am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim ++CXXCPP!$CXXCPP$ac_delim ++OMPI_CXX_ABSOLUTE!$OMPI_CXX_ABSOLUTE$ac_delim ++WANT_MPI_CXX_BINDINGS_TRUE!$WANT_MPI_CXX_BINDINGS_TRUE$ac_delim ++WANT_MPI_CXX_BINDINGS_FALSE!$WANT_MPI_CXX_BINDINGS_FALSE$ac_delim ++CCAS!$CCAS$ac_delim ++CCASFLAGS!$CCASFLAGS$ac_delim ++CCASDEPMODE!$CCASDEPMODE$ac_delim ++am__fastdepCCAS_TRUE!$am__fastdepCCAS_TRUE$ac_delim ++am__fastdepCCAS_FALSE!$am__fastdepCCAS_FALSE$ac_delim ++OMPI_ASM_TEXT!$OMPI_ASM_TEXT$ac_delim ++OMPI_AS_GLOBAL!$OMPI_AS_GLOBAL$ac_delim ++OBJDUMP!$OBJDUMP$ac_delim ++OMPI_AS_LABEL_SUFFIX!$OMPI_AS_LABEL_SUFFIX$ac_delim ++OMPI_ASM_GSYM!$OMPI_ASM_GSYM$ac_delim ++DUMPBIN!$DUMPBIN$ac_delim ++ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim ++NM!$NM$ac_delim ++OMPI_ASM_LSYM!$OMPI_ASM_LSYM$ac_delim ++OMPI_ASM_TYPE!$OMPI_ASM_TYPE$ac_delim ++OMPI_ASM_SUPPORT_64BIT!$OMPI_ASM_SUPPORT_64BIT$ac_delim ++OMPI_ASSEMBLY_FORMAT!$OMPI_ASSEMBLY_FORMAT$ac_delim ++OMPI_ASSEMBLY_ARCH!$OMPI_ASSEMBLY_ARCH$ac_delim ++FGREP!$FGREP$ac_delim ++PERL!$PERL$ac_delim ++OMPI_HAVE_ASM_FILE_TRUE!$OMPI_HAVE_ASM_FILE_TRUE$ac_delim ++OMPI_HAVE_ASM_FILE_FALSE!$OMPI_HAVE_ASM_FILE_FALSE$ac_delim ++OMPI_ASM_FILE!$OMPI_ASM_FILE$ac_delim ++F77!$F77$ac_delim ++FFLAGS!$FFLAGS$ac_delim ++ac_ct_F77!$ac_ct_F77$ac_delim ++OMPI_WANT_F77_BINDINGS_TRUE!$OMPI_WANT_F77_BINDINGS_TRUE$ac_delim ++OMPI_WANT_F77_BINDINGS_FALSE!$OMPI_WANT_F77_BINDINGS_FALSE$ac_delim ++OMPI_F77_ABSOLUTE!$OMPI_F77_ABSOLUTE$ac_delim ++_ACEOF ++ ++ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then ++ break ++ elif $ac_last_try; then ++ { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 ++echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ ac_delim="$ac_delim!$ac_delim _$ac_delim!! " ++ fi ++done ++ ++ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` ++if test -n "$ac_eof"; then ++ ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ++ ac_eof=`expr $ac_eof + 1` ++fi ++ ++cat >>$CONFIG_STATUS <<_ACEOF ++cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b ++_ACEOF ++sed ' ++s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g ++s/^/s,@/; s/!/@,|#_!!_#|/ ++:n ++t n ++s/'"$ac_delim"'$/,g/; t ++s/$/\\/; p ++N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ++' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF ++CEOF$ac_eof ++_ACEOF ++ ++ ++ac_delim='%!_!# ' ++for ac_last_try in false false false false false :; do ++ cat >conf$$subs.sed <<_ACEOF ++WANT_MPI_F77_BINDINGS_LAYER_TRUE!$WANT_MPI_F77_BINDINGS_LAYER_TRUE$ac_delim ++WANT_MPI_F77_BINDINGS_LAYER_FALSE!$WANT_MPI_F77_BINDINGS_LAYER_FALSE$ac_delim ++WANT_PMPI_F77_BINDINGS_LAYER_TRUE!$WANT_PMPI_F77_BINDINGS_LAYER_TRUE$ac_delim ++WANT_PMPI_F77_BINDINGS_LAYER_FALSE!$WANT_PMPI_F77_BINDINGS_LAYER_FALSE$ac_delim ++FC!$FC$ac_delim ++FCFLAGS!$FCFLAGS$ac_delim ++ac_ct_FC!$ac_ct_FC$ac_delim ++OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS!$OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS$ac_delim ++FCFLAGS_f!$FCFLAGS_f$ac_delim ++FCFLAGS_f90!$FCFLAGS_f90$ac_delim ++OMPI_WANT_F90_BINDINGS_TRUE!$OMPI_WANT_F90_BINDINGS_TRUE$ac_delim ++OMPI_WANT_F90_BINDINGS_FALSE!$OMPI_WANT_F90_BINDINGS_FALSE$ac_delim ++OMPI_F90_ABSOLUTE!$OMPI_F90_ABSOLUTE$ac_delim ++OMPI_FC_MODULE_FLAG!$OMPI_FC_MODULE_FLAG$ac_delim ++OMPI_SIZEOF_F90_LOGICAL!$OMPI_SIZEOF_F90_LOGICAL$ac_delim ++OMPI_SIZEOF_F90_LOGICAL1!$OMPI_SIZEOF_F90_LOGICAL1$ac_delim ++OMPI_SIZEOF_F90_LOGICAL2!$OMPI_SIZEOF_F90_LOGICAL2$ac_delim ++OMPI_SIZEOF_F90_LOGICAL4!$OMPI_SIZEOF_F90_LOGICAL4$ac_delim ++OMPI_SIZEOF_F90_LOGICAL8!$OMPI_SIZEOF_F90_LOGICAL8$ac_delim ++OMPI_SIZEOF_F90_INTEGER!$OMPI_SIZEOF_F90_INTEGER$ac_delim ++OMPI_SIZEOF_F90_INTEGER1!$OMPI_SIZEOF_F90_INTEGER1$ac_delim ++OMPI_SIZEOF_F90_INTEGER2!$OMPI_SIZEOF_F90_INTEGER2$ac_delim ++OMPI_SIZEOF_F90_INTEGER4!$OMPI_SIZEOF_F90_INTEGER4$ac_delim ++OMPI_SIZEOF_F90_INTEGER8!$OMPI_SIZEOF_F90_INTEGER8$ac_delim ++OMPI_SIZEOF_F90_INTEGER16!$OMPI_SIZEOF_F90_INTEGER16$ac_delim ++OMPI_SIZEOF_F90_REAL!$OMPI_SIZEOF_F90_REAL$ac_delim ++OMPI_SIZEOF_F90_REAL2!$OMPI_SIZEOF_F90_REAL2$ac_delim ++OMPI_SIZEOF_F90_REAL4!$OMPI_SIZEOF_F90_REAL4$ac_delim ++OMPI_SIZEOF_F90_REAL8!$OMPI_SIZEOF_F90_REAL8$ac_delim ++OMPI_SIZEOF_F90_REAL16!$OMPI_SIZEOF_F90_REAL16$ac_delim ++OMPI_SIZEOF_F90_DOUBLE_PRECISION!$OMPI_SIZEOF_F90_DOUBLE_PRECISION$ac_delim ++OMPI_SIZEOF_F90_COMPLEX!$OMPI_SIZEOF_F90_COMPLEX$ac_delim ++OMPI_SIZEOF_F90_COMPLEX8!$OMPI_SIZEOF_F90_COMPLEX8$ac_delim ++OMPI_SIZEOF_F90_COMPLEX16!$OMPI_SIZEOF_F90_COMPLEX16$ac_delim ++OMPI_SIZEOF_F90_COMPLEX32!$OMPI_SIZEOF_F90_COMPLEX32$ac_delim ++OMPI_SIZEOF_F90_DOUBLE_COMPLEX!$OMPI_SIZEOF_F90_DOUBLE_COMPLEX$ac_delim ++OMPI_F90_IKINDS!$OMPI_F90_IKINDS$ac_delim ++OMPI_F90_RKINDS!$OMPI_F90_RKINDS$ac_delim ++OMPI_F90_CKINDS!$OMPI_F90_CKINDS$ac_delim ++OMPI_MPI_INTEGER_KIND!$OMPI_MPI_INTEGER_KIND$ac_delim ++OMPI_MPI_ADDRESS_KIND!$OMPI_MPI_ADDRESS_KIND$ac_delim ++OMPI_MPI_OFFSET_KIND!$OMPI_MPI_OFFSET_KIND$ac_delim ++OMPI_HAVE_POSIX_THREADS_TRUE!$OMPI_HAVE_POSIX_THREADS_TRUE$ac_delim ++OMPI_HAVE_POSIX_THREADS_FALSE!$OMPI_HAVE_POSIX_THREADS_FALSE$ac_delim ++OMPI_HAVE_SOLARIS_THREADS_TRUE!$OMPI_HAVE_SOLARIS_THREADS_TRUE$ac_delim ++OMPI_HAVE_SOLARIS_THREADS_FALSE!$OMPI_HAVE_SOLARIS_THREADS_FALSE$ac_delim ++WANT_FT_THREAD_TRUE!$WANT_FT_THREAD_TRUE$ac_delim ++WANT_FT_THREAD_FALSE!$WANT_FT_THREAD_FALSE$ac_delim ++LN_S!$LN_S$ac_delim ++LEX!$LEX$ac_delim ++LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim ++LEXLIB!$LEXLIB$ac_delim ++CASE_SENSITIVE_FS_TRUE!$CASE_SENSITIVE_FS_TRUE$ac_delim ++CASE_SENSITIVE_FS_FALSE!$CASE_SENSITIVE_FS_FALSE$ac_delim ++OMPI_BUILD_backtrace_execinfo_DSO_TRUE!$OMPI_BUILD_backtrace_execinfo_DSO_TRUE$ac_delim ++OMPI_BUILD_backtrace_execinfo_DSO_FALSE!$OMPI_BUILD_backtrace_execinfo_DSO_FALSE$ac_delim ++OMPI_BUILD_backtrace_printstack_DSO_TRUE!$OMPI_BUILD_backtrace_printstack_DSO_TRUE$ac_delim ++OMPI_BUILD_backtrace_printstack_DSO_FALSE!$OMPI_BUILD_backtrace_printstack_DSO_FALSE$ac_delim ++backtrace_darwin_CFLAGS!$backtrace_darwin_CFLAGS$ac_delim ++OMPI_BUILD_backtrace_darwin_DSO_TRUE!$OMPI_BUILD_backtrace_darwin_DSO_TRUE$ac_delim ++OMPI_BUILD_backtrace_darwin_DSO_FALSE!$OMPI_BUILD_backtrace_darwin_DSO_FALSE$ac_delim ++OMPI_BUILD_backtrace_none_DSO_TRUE!$OMPI_BUILD_backtrace_none_DSO_TRUE$ac_delim ++OMPI_BUILD_backtrace_none_DSO_FALSE!$OMPI_BUILD_backtrace_none_DSO_FALSE$ac_delim ++MCA_backtrace_ALL_COMPONENTS!$MCA_backtrace_ALL_COMPONENTS$ac_delim ++MCA_backtrace_STATIC_COMPONENTS!$MCA_backtrace_STATIC_COMPONENTS$ac_delim ++MCA_backtrace_DSO_COMPONENTS!$MCA_backtrace_DSO_COMPONENTS$ac_delim ++MCA_backtrace_STATIC_LTLIBS!$MCA_backtrace_STATIC_LTLIBS$ac_delim ++MCA_backtrace_ALL_SUBDIRS!$MCA_backtrace_ALL_SUBDIRS$ac_delim ++MCA_backtrace_STATIC_SUBDIRS!$MCA_backtrace_STATIC_SUBDIRS$ac_delim ++MCA_backtrace_DSO_SUBDIRS!$MCA_backtrace_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_carto_auto_detect_DSO_TRUE!$OMPI_BUILD_carto_auto_detect_DSO_TRUE$ac_delim ++OMPI_BUILD_carto_auto_detect_DSO_FALSE!$OMPI_BUILD_carto_auto_detect_DSO_FALSE$ac_delim ++OMPI_BUILD_carto_file_DSO_TRUE!$OMPI_BUILD_carto_file_DSO_TRUE$ac_delim ++OMPI_BUILD_carto_file_DSO_FALSE!$OMPI_BUILD_carto_file_DSO_FALSE$ac_delim ++MCA_carto_ALL_COMPONENTS!$MCA_carto_ALL_COMPONENTS$ac_delim ++MCA_carto_STATIC_COMPONENTS!$MCA_carto_STATIC_COMPONENTS$ac_delim ++MCA_carto_DSO_COMPONENTS!$MCA_carto_DSO_COMPONENTS$ac_delim ++MCA_carto_STATIC_LTLIBS!$MCA_carto_STATIC_LTLIBS$ac_delim ++MCA_carto_ALL_SUBDIRS!$MCA_carto_ALL_SUBDIRS$ac_delim ++MCA_carto_STATIC_SUBDIRS!$MCA_carto_STATIC_SUBDIRS$ac_delim ++MCA_carto_DSO_SUBDIRS!$MCA_carto_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_crs_none_DSO_TRUE!$OMPI_BUILD_crs_none_DSO_TRUE$ac_delim ++OMPI_BUILD_crs_none_DSO_FALSE!$OMPI_BUILD_crs_none_DSO_FALSE$ac_delim ++crs_blcr_crs_blcr_WRAPPER_EXTRA_LDFLAGS!$crs_blcr_crs_blcr_WRAPPER_EXTRA_LDFLAGS$ac_delim ++crs_blcr_crs_blcr_WRAPPER_EXTRA_LIBS!$crs_blcr_crs_blcr_WRAPPER_EXTRA_LIBS$ac_delim ++crs_blcr_crs_blcr_WRAPPER_EXTRA_CPPFLAGS!$crs_blcr_crs_blcr_WRAPPER_EXTRA_CPPFLAGS$ac_delim ++crs_blcr_CFLAGS!$crs_blcr_CFLAGS$ac_delim ++crs_blcr_CPPFLAGS!$crs_blcr_CPPFLAGS$ac_delim ++crs_blcr_LDFLAGS!$crs_blcr_LDFLAGS$ac_delim ++crs_blcr_LIBS!$crs_blcr_LIBS$ac_delim ++OMPI_BUILD_crs_blcr_DSO_TRUE!$OMPI_BUILD_crs_blcr_DSO_TRUE$ac_delim ++OMPI_BUILD_crs_blcr_DSO_FALSE!$OMPI_BUILD_crs_blcr_DSO_FALSE$ac_delim ++OMPI_BUILD_crs_self_DSO_TRUE!$OMPI_BUILD_crs_self_DSO_TRUE$ac_delim ++OMPI_BUILD_crs_self_DSO_FALSE!$OMPI_BUILD_crs_self_DSO_FALSE$ac_delim ++MCA_crs_ALL_COMPONENTS!$MCA_crs_ALL_COMPONENTS$ac_delim ++MCA_crs_STATIC_COMPONENTS!$MCA_crs_STATIC_COMPONENTS$ac_delim ++MCA_crs_DSO_COMPONENTS!$MCA_crs_DSO_COMPONENTS$ac_delim ++_ACEOF ++ ++ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then ++ break ++ elif $ac_last_try; then ++ { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 ++echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ ac_delim="$ac_delim!$ac_delim _$ac_delim!! " ++ fi ++done ++ ++ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` ++if test -n "$ac_eof"; then ++ ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ++ ac_eof=`expr $ac_eof + 1` ++fi ++ ++cat >>$CONFIG_STATUS <<_ACEOF ++cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b ++_ACEOF ++sed ' ++s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g ++s/^/s,@/; s/!/@,|#_!!_#|/ ++:n ++t n ++s/'"$ac_delim"'$/,g/; t ++s/$/\\/; p ++N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ++' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF ++CEOF$ac_eof ++_ACEOF ++ ++ ++ac_delim='%!_!# ' ++for ac_last_try in false false false false false :; do ++ cat >conf$$subs.sed <<_ACEOF ++MCA_crs_STATIC_LTLIBS!$MCA_crs_STATIC_LTLIBS$ac_delim ++MCA_crs_ALL_SUBDIRS!$MCA_crs_ALL_SUBDIRS$ac_delim ++MCA_crs_STATIC_SUBDIRS!$MCA_crs_STATIC_SUBDIRS$ac_delim ++MCA_crs_DSO_SUBDIRS!$MCA_crs_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_installdirs_env_DSO_TRUE!$OMPI_BUILD_installdirs_env_DSO_TRUE$ac_delim ++OMPI_BUILD_installdirs_env_DSO_FALSE!$OMPI_BUILD_installdirs_env_DSO_FALSE$ac_delim ++OMPI_BUILD_installdirs_config_DSO_TRUE!$OMPI_BUILD_installdirs_config_DSO_TRUE$ac_delim ++OMPI_BUILD_installdirs_config_DSO_FALSE!$OMPI_BUILD_installdirs_config_DSO_FALSE$ac_delim ++MCA_installdirs_ALL_COMPONENTS!$MCA_installdirs_ALL_COMPONENTS$ac_delim ++MCA_installdirs_STATIC_COMPONENTS!$MCA_installdirs_STATIC_COMPONENTS$ac_delim ++MCA_installdirs_DSO_COMPONENTS!$MCA_installdirs_DSO_COMPONENTS$ac_delim ++MCA_installdirs_STATIC_LTLIBS!$MCA_installdirs_STATIC_LTLIBS$ac_delim ++MCA_installdirs_ALL_SUBDIRS!$MCA_installdirs_ALL_SUBDIRS$ac_delim ++MCA_installdirs_STATIC_SUBDIRS!$MCA_installdirs_STATIC_SUBDIRS$ac_delim ++MCA_installdirs_DSO_SUBDIRS!$MCA_installdirs_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_maffinity_first_use_DSO_TRUE!$OMPI_BUILD_maffinity_first_use_DSO_TRUE$ac_delim ++OMPI_BUILD_maffinity_first_use_DSO_FALSE!$OMPI_BUILD_maffinity_first_use_DSO_FALSE$ac_delim ++maffinity_libnuma_CPPFLAGS!$maffinity_libnuma_CPPFLAGS$ac_delim ++maffinity_libnuma_LDFLAGS!$maffinity_libnuma_LDFLAGS$ac_delim ++maffinity_libnuma_LIBS!$maffinity_libnuma_LIBS$ac_delim ++OMPI_BUILD_maffinity_libnuma_DSO_TRUE!$OMPI_BUILD_maffinity_libnuma_DSO_TRUE$ac_delim ++OMPI_BUILD_maffinity_libnuma_DSO_FALSE!$OMPI_BUILD_maffinity_libnuma_DSO_FALSE$ac_delim ++MCA_maffinity_ALL_COMPONENTS!$MCA_maffinity_ALL_COMPONENTS$ac_delim ++MCA_maffinity_STATIC_COMPONENTS!$MCA_maffinity_STATIC_COMPONENTS$ac_delim ++MCA_maffinity_DSO_COMPONENTS!$MCA_maffinity_DSO_COMPONENTS$ac_delim ++MCA_maffinity_STATIC_LTLIBS!$MCA_maffinity_STATIC_LTLIBS$ac_delim ++MCA_maffinity_ALL_SUBDIRS!$MCA_maffinity_ALL_SUBDIRS$ac_delim ++MCA_maffinity_STATIC_SUBDIRS!$MCA_maffinity_STATIC_SUBDIRS$ac_delim ++MCA_maffinity_DSO_SUBDIRS!$MCA_maffinity_DSO_SUBDIRS$ac_delim ++OMPI_WANT_MEMCHECKER_TRUE!$OMPI_WANT_MEMCHECKER_TRUE$ac_delim ++OMPI_WANT_MEMCHECKER_FALSE!$OMPI_WANT_MEMCHECKER_FALSE$ac_delim ++memchecker_valgrind_CPPFLAGS!$memchecker_valgrind_CPPFLAGS$ac_delim ++OMPI_BUILD_memchecker_valgrind_DSO_TRUE!$OMPI_BUILD_memchecker_valgrind_DSO_TRUE$ac_delim ++OMPI_BUILD_memchecker_valgrind_DSO_FALSE!$OMPI_BUILD_memchecker_valgrind_DSO_FALSE$ac_delim ++MCA_memchecker_ALL_COMPONENTS!$MCA_memchecker_ALL_COMPONENTS$ac_delim ++MCA_memchecker_STATIC_COMPONENTS!$MCA_memchecker_STATIC_COMPONENTS$ac_delim ++MCA_memchecker_DSO_COMPONENTS!$MCA_memchecker_DSO_COMPONENTS$ac_delim ++MCA_memchecker_STATIC_LTLIBS!$MCA_memchecker_STATIC_LTLIBS$ac_delim ++MCA_memchecker_ALL_SUBDIRS!$MCA_memchecker_ALL_SUBDIRS$ac_delim ++MCA_memchecker_STATIC_SUBDIRS!$MCA_memchecker_STATIC_SUBDIRS$ac_delim ++MCA_memchecker_DSO_SUBDIRS!$MCA_memchecker_DSO_SUBDIRS$ac_delim ++MCA_memcpy_ALL_COMPONENTS!$MCA_memcpy_ALL_COMPONENTS$ac_delim ++MCA_memcpy_STATIC_COMPONENTS!$MCA_memcpy_STATIC_COMPONENTS$ac_delim ++MCA_memcpy_DSO_COMPONENTS!$MCA_memcpy_DSO_COMPONENTS$ac_delim ++MCA_memcpy_STATIC_LTLIBS!$MCA_memcpy_STATIC_LTLIBS$ac_delim ++MCA_memcpy_ALL_SUBDIRS!$MCA_memcpy_ALL_SUBDIRS$ac_delim ++MCA_memcpy_STATIC_SUBDIRS!$MCA_memcpy_STATIC_SUBDIRS$ac_delim ++MCA_memcpy_DSO_SUBDIRS!$MCA_memcpy_DSO_SUBDIRS$ac_delim ++memory_ptmalloc2_LIBS!$memory_ptmalloc2_LIBS$ac_delim ++OMPI_WANT_EXTERNAL_PTMALLOC2_TRUE!$OMPI_WANT_EXTERNAL_PTMALLOC2_TRUE$ac_delim ++OMPI_WANT_EXTERNAL_PTMALLOC2_FALSE!$OMPI_WANT_EXTERNAL_PTMALLOC2_FALSE$ac_delim ++OMPI_BUILD_memory_ptmalloc2_DSO_TRUE!$OMPI_BUILD_memory_ptmalloc2_DSO_TRUE$ac_delim ++OMPI_BUILD_memory_ptmalloc2_DSO_FALSE!$OMPI_BUILD_memory_ptmalloc2_DSO_FALSE$ac_delim ++memory_malloc_solaris_LIBS!$memory_malloc_solaris_LIBS$ac_delim ++OMPI_BUILD_memory_malloc_solaris_DSO_TRUE!$OMPI_BUILD_memory_malloc_solaris_DSO_TRUE$ac_delim ++OMPI_BUILD_memory_malloc_solaris_DSO_FALSE!$OMPI_BUILD_memory_malloc_solaris_DSO_FALSE$ac_delim ++memory_mallopt_LIBS!$memory_mallopt_LIBS$ac_delim ++OMPI_BUILD_memory_mallopt_DSO_TRUE!$OMPI_BUILD_memory_mallopt_DSO_TRUE$ac_delim ++OMPI_BUILD_memory_mallopt_DSO_FALSE!$OMPI_BUILD_memory_mallopt_DSO_FALSE$ac_delim ++MCA_memory_ALL_COMPONENTS!$MCA_memory_ALL_COMPONENTS$ac_delim ++MCA_memory_STATIC_COMPONENTS!$MCA_memory_STATIC_COMPONENTS$ac_delim ++MCA_memory_DSO_COMPONENTS!$MCA_memory_DSO_COMPONENTS$ac_delim ++MCA_memory_STATIC_LTLIBS!$MCA_memory_STATIC_LTLIBS$ac_delim ++MCA_memory_ALL_SUBDIRS!$MCA_memory_ALL_SUBDIRS$ac_delim ++MCA_memory_STATIC_SUBDIRS!$MCA_memory_STATIC_SUBDIRS$ac_delim ++MCA_memory_DSO_SUBDIRS!$MCA_memory_DSO_SUBDIRS$ac_delim ++YACC!$YACC$ac_delim ++YFLAGS!$YFLAGS$ac_delim ++PLPA_BUILD_STANDALONE_TRUE!$PLPA_BUILD_STANDALONE_TRUE$ac_delim ++PLPA_BUILD_STANDALONE_FALSE!$PLPA_BUILD_STANDALONE_FALSE$ac_delim ++PLPA_BUILD_EXECUTABLES_TRUE!$PLPA_BUILD_EXECUTABLES_TRUE$ac_delim ++PLPA_BUILD_EXECUTABLES_FALSE!$PLPA_BUILD_EXECUTABLES_FALSE$ac_delim ++OMPI_BUILD_paffinity_linux_DSO_TRUE!$OMPI_BUILD_paffinity_linux_DSO_TRUE$ac_delim ++OMPI_BUILD_paffinity_linux_DSO_FALSE!$OMPI_BUILD_paffinity_linux_DSO_FALSE$ac_delim ++OMPI_BUILD_paffinity_solaris_DSO_TRUE!$OMPI_BUILD_paffinity_solaris_DSO_TRUE$ac_delim ++OMPI_BUILD_paffinity_solaris_DSO_FALSE!$OMPI_BUILD_paffinity_solaris_DSO_FALSE$ac_delim ++OMPI_BUILD_paffinity_windows_DSO_TRUE!$OMPI_BUILD_paffinity_windows_DSO_TRUE$ac_delim ++OMPI_BUILD_paffinity_windows_DSO_FALSE!$OMPI_BUILD_paffinity_windows_DSO_FALSE$ac_delim ++OMPI_BUILD_paffinity_darwin_DSO_TRUE!$OMPI_BUILD_paffinity_darwin_DSO_TRUE$ac_delim ++OMPI_BUILD_paffinity_darwin_DSO_FALSE!$OMPI_BUILD_paffinity_darwin_DSO_FALSE$ac_delim ++OMPI_BUILD_paffinity_posix_DSO_TRUE!$OMPI_BUILD_paffinity_posix_DSO_TRUE$ac_delim ++OMPI_BUILD_paffinity_posix_DSO_FALSE!$OMPI_BUILD_paffinity_posix_DSO_FALSE$ac_delim ++MCA_paffinity_ALL_COMPONENTS!$MCA_paffinity_ALL_COMPONENTS$ac_delim ++MCA_paffinity_STATIC_COMPONENTS!$MCA_paffinity_STATIC_COMPONENTS$ac_delim ++MCA_paffinity_DSO_COMPONENTS!$MCA_paffinity_DSO_COMPONENTS$ac_delim ++MCA_paffinity_STATIC_LTLIBS!$MCA_paffinity_STATIC_LTLIBS$ac_delim ++MCA_paffinity_ALL_SUBDIRS!$MCA_paffinity_ALL_SUBDIRS$ac_delim ++MCA_paffinity_STATIC_SUBDIRS!$MCA_paffinity_STATIC_SUBDIRS$ac_delim ++MCA_paffinity_DSO_SUBDIRS!$MCA_paffinity_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_timer_catamount_DSO_TRUE!$OMPI_BUILD_timer_catamount_DSO_TRUE$ac_delim ++OMPI_BUILD_timer_catamount_DSO_FALSE!$OMPI_BUILD_timer_catamount_DSO_FALSE$ac_delim ++timer_aix_LIBS!$timer_aix_LIBS$ac_delim ++OMPI_BUILD_timer_aix_DSO_TRUE!$OMPI_BUILD_timer_aix_DSO_TRUE$ac_delim ++OMPI_BUILD_timer_aix_DSO_FALSE!$OMPI_BUILD_timer_aix_DSO_FALSE$ac_delim ++OMPI_BUILD_timer_altix_DSO_TRUE!$OMPI_BUILD_timer_altix_DSO_TRUE$ac_delim ++OMPI_BUILD_timer_altix_DSO_FALSE!$OMPI_BUILD_timer_altix_DSO_FALSE$ac_delim ++OMPI_BUILD_timer_darwin_DSO_TRUE!$OMPI_BUILD_timer_darwin_DSO_TRUE$ac_delim ++_ACEOF ++ ++ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then ++ break ++ elif $ac_last_try; then ++ { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 ++echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ ac_delim="$ac_delim!$ac_delim _$ac_delim!! " ++ fi ++done ++ ++ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` ++if test -n "$ac_eof"; then ++ ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ++ ac_eof=`expr $ac_eof + 1` ++fi ++ ++cat >>$CONFIG_STATUS <<_ACEOF ++cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b ++_ACEOF ++sed ' ++s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g ++s/^/s,@/; s/!/@,|#_!!_#|/ ++:n ++t n ++s/'"$ac_delim"'$/,g/; t ++s/$/\\/; p ++N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ++' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF ++CEOF$ac_eof ++_ACEOF ++ ++ ++ac_delim='%!_!# ' ++for ac_last_try in false false false false false :; do ++ cat >conf$$subs.sed <<_ACEOF ++OMPI_BUILD_timer_darwin_DSO_FALSE!$OMPI_BUILD_timer_darwin_DSO_FALSE$ac_delim ++OMPI_BUILD_timer_solaris_DSO_TRUE!$OMPI_BUILD_timer_solaris_DSO_TRUE$ac_delim ++OMPI_BUILD_timer_solaris_DSO_FALSE!$OMPI_BUILD_timer_solaris_DSO_FALSE$ac_delim ++OMPI_BUILD_timer_windows_DSO_TRUE!$OMPI_BUILD_timer_windows_DSO_TRUE$ac_delim ++OMPI_BUILD_timer_windows_DSO_FALSE!$OMPI_BUILD_timer_windows_DSO_FALSE$ac_delim ++OMPI_BUILD_timer_linux_DSO_TRUE!$OMPI_BUILD_timer_linux_DSO_TRUE$ac_delim ++OMPI_BUILD_timer_linux_DSO_FALSE!$OMPI_BUILD_timer_linux_DSO_FALSE$ac_delim ++MCA_timer_ALL_COMPONENTS!$MCA_timer_ALL_COMPONENTS$ac_delim ++MCA_timer_STATIC_COMPONENTS!$MCA_timer_STATIC_COMPONENTS$ac_delim ++MCA_timer_DSO_COMPONENTS!$MCA_timer_DSO_COMPONENTS$ac_delim ++MCA_timer_STATIC_LTLIBS!$MCA_timer_STATIC_LTLIBS$ac_delim ++MCA_timer_ALL_SUBDIRS!$MCA_timer_ALL_SUBDIRS$ac_delim ++MCA_timer_STATIC_SUBDIRS!$MCA_timer_STATIC_SUBDIRS$ac_delim ++MCA_timer_DSO_SUBDIRS!$MCA_timer_DSO_SUBDIRS$ac_delim ++MCA_opal_FRAMEWORKS!$MCA_opal_FRAMEWORKS$ac_delim ++MCA_opal_FRAMEWORKS_SUBDIRS!$MCA_opal_FRAMEWORKS_SUBDIRS$ac_delim ++MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS!$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS$ac_delim ++MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS!$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS$ac_delim ++MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS!$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS$ac_delim ++MCA_opal_FRAMEWORK_LIBS!$MCA_opal_FRAMEWORK_LIBS$ac_delim ++OMPI_BUILD_errmgr_default_DSO_TRUE!$OMPI_BUILD_errmgr_default_DSO_TRUE$ac_delim ++OMPI_BUILD_errmgr_default_DSO_FALSE!$OMPI_BUILD_errmgr_default_DSO_FALSE$ac_delim ++MCA_errmgr_ALL_COMPONENTS!$MCA_errmgr_ALL_COMPONENTS$ac_delim ++MCA_errmgr_STATIC_COMPONENTS!$MCA_errmgr_STATIC_COMPONENTS$ac_delim ++MCA_errmgr_DSO_COMPONENTS!$MCA_errmgr_DSO_COMPONENTS$ac_delim ++MCA_errmgr_STATIC_LTLIBS!$MCA_errmgr_STATIC_LTLIBS$ac_delim ++MCA_errmgr_ALL_SUBDIRS!$MCA_errmgr_ALL_SUBDIRS$ac_delim ++MCA_errmgr_STATIC_SUBDIRS!$MCA_errmgr_STATIC_SUBDIRS$ac_delim ++MCA_errmgr_DSO_SUBDIRS!$MCA_errmgr_DSO_SUBDIRS$ac_delim ++ess_portals_utcp_CPPFLAGS!$ess_portals_utcp_CPPFLAGS$ac_delim ++ess_portals_utcp_LDFLAGS!$ess_portals_utcp_LDFLAGS$ac_delim ++ess_portals_utcp_LIBS!$ess_portals_utcp_LIBS$ac_delim ++OMPI_BUILD_ess_portals_utcp_DSO_TRUE!$OMPI_BUILD_ess_portals_utcp_DSO_TRUE$ac_delim ++OMPI_BUILD_ess_portals_utcp_DSO_FALSE!$OMPI_BUILD_ess_portals_utcp_DSO_FALSE$ac_delim ++OMPI_BUILD_ess_cnos_DSO_TRUE!$OMPI_BUILD_ess_cnos_DSO_TRUE$ac_delim ++OMPI_BUILD_ess_cnos_DSO_FALSE!$OMPI_BUILD_ess_cnos_DSO_FALSE$ac_delim ++OMPI_BUILD_ess_alps_DSO_TRUE!$OMPI_BUILD_ess_alps_DSO_TRUE$ac_delim ++OMPI_BUILD_ess_alps_DSO_FALSE!$OMPI_BUILD_ess_alps_DSO_FALSE$ac_delim ++OMPI_BUILD_ess_env_DSO_TRUE!$OMPI_BUILD_ess_env_DSO_TRUE$ac_delim ++OMPI_BUILD_ess_env_DSO_FALSE!$OMPI_BUILD_ess_env_DSO_FALSE$ac_delim ++OMPI_BUILD_ess_hnp_DSO_TRUE!$OMPI_BUILD_ess_hnp_DSO_TRUE$ac_delim ++OMPI_BUILD_ess_hnp_DSO_FALSE!$OMPI_BUILD_ess_hnp_DSO_FALSE$ac_delim ++ess_lsf_CPPFLAGS!$ess_lsf_CPPFLAGS$ac_delim ++ess_lsf_LDFLAGS!$ess_lsf_LDFLAGS$ac_delim ++ess_lsf_LIBS!$ess_lsf_LIBS$ac_delim ++OMPI_BUILD_ess_lsf_DSO_TRUE!$OMPI_BUILD_ess_lsf_DSO_TRUE$ac_delim ++OMPI_BUILD_ess_lsf_DSO_FALSE!$OMPI_BUILD_ess_lsf_DSO_FALSE$ac_delim ++OMPI_BUILD_ess_singleton_DSO_TRUE!$OMPI_BUILD_ess_singleton_DSO_TRUE$ac_delim ++OMPI_BUILD_ess_singleton_DSO_FALSE!$OMPI_BUILD_ess_singleton_DSO_FALSE$ac_delim ++ess_slurm_CPPFLAGS!$ess_slurm_CPPFLAGS$ac_delim ++ess_slurm_LDFLAGS!$ess_slurm_LDFLAGS$ac_delim ++ess_slurm_LIBS!$ess_slurm_LIBS$ac_delim ++OMPI_BUILD_ess_slurm_DSO_TRUE!$OMPI_BUILD_ess_slurm_DSO_TRUE$ac_delim ++OMPI_BUILD_ess_slurm_DSO_FALSE!$OMPI_BUILD_ess_slurm_DSO_FALSE$ac_delim ++OMPI_BUILD_ess_tool_DSO_TRUE!$OMPI_BUILD_ess_tool_DSO_TRUE$ac_delim ++OMPI_BUILD_ess_tool_DSO_FALSE!$OMPI_BUILD_ess_tool_DSO_FALSE$ac_delim ++MCA_ess_ALL_COMPONENTS!$MCA_ess_ALL_COMPONENTS$ac_delim ++MCA_ess_STATIC_COMPONENTS!$MCA_ess_STATIC_COMPONENTS$ac_delim ++MCA_ess_DSO_COMPONENTS!$MCA_ess_DSO_COMPONENTS$ac_delim ++MCA_ess_STATIC_LTLIBS!$MCA_ess_STATIC_LTLIBS$ac_delim ++MCA_ess_ALL_SUBDIRS!$MCA_ess_ALL_SUBDIRS$ac_delim ++MCA_ess_STATIC_SUBDIRS!$MCA_ess_STATIC_SUBDIRS$ac_delim ++MCA_ess_DSO_SUBDIRS!$MCA_ess_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_filem_rsh_DSO_TRUE!$OMPI_BUILD_filem_rsh_DSO_TRUE$ac_delim ++OMPI_BUILD_filem_rsh_DSO_FALSE!$OMPI_BUILD_filem_rsh_DSO_FALSE$ac_delim ++MCA_filem_ALL_COMPONENTS!$MCA_filem_ALL_COMPONENTS$ac_delim ++MCA_filem_STATIC_COMPONENTS!$MCA_filem_STATIC_COMPONENTS$ac_delim ++MCA_filem_DSO_COMPONENTS!$MCA_filem_DSO_COMPONENTS$ac_delim ++MCA_filem_STATIC_LTLIBS!$MCA_filem_STATIC_LTLIBS$ac_delim ++MCA_filem_ALL_SUBDIRS!$MCA_filem_ALL_SUBDIRS$ac_delim ++MCA_filem_STATIC_SUBDIRS!$MCA_filem_STATIC_SUBDIRS$ac_delim ++MCA_filem_DSO_SUBDIRS!$MCA_filem_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_grpcomm_cnos_DSO_TRUE!$OMPI_BUILD_grpcomm_cnos_DSO_TRUE$ac_delim ++OMPI_BUILD_grpcomm_cnos_DSO_FALSE!$OMPI_BUILD_grpcomm_cnos_DSO_FALSE$ac_delim ++OMPI_BUILD_grpcomm_bad_DSO_TRUE!$OMPI_BUILD_grpcomm_bad_DSO_TRUE$ac_delim ++OMPI_BUILD_grpcomm_bad_DSO_FALSE!$OMPI_BUILD_grpcomm_bad_DSO_FALSE$ac_delim ++OMPI_BUILD_grpcomm_basic_DSO_TRUE!$OMPI_BUILD_grpcomm_basic_DSO_TRUE$ac_delim ++OMPI_BUILD_grpcomm_basic_DSO_FALSE!$OMPI_BUILD_grpcomm_basic_DSO_FALSE$ac_delim ++MCA_grpcomm_ALL_COMPONENTS!$MCA_grpcomm_ALL_COMPONENTS$ac_delim ++MCA_grpcomm_STATIC_COMPONENTS!$MCA_grpcomm_STATIC_COMPONENTS$ac_delim ++MCA_grpcomm_DSO_COMPONENTS!$MCA_grpcomm_DSO_COMPONENTS$ac_delim ++MCA_grpcomm_STATIC_LTLIBS!$MCA_grpcomm_STATIC_LTLIBS$ac_delim ++MCA_grpcomm_ALL_SUBDIRS!$MCA_grpcomm_ALL_SUBDIRS$ac_delim ++MCA_grpcomm_STATIC_SUBDIRS!$MCA_grpcomm_STATIC_SUBDIRS$ac_delim ++MCA_grpcomm_DSO_SUBDIRS!$MCA_grpcomm_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_iof_hnp_DSO_TRUE!$OMPI_BUILD_iof_hnp_DSO_TRUE$ac_delim ++OMPI_BUILD_iof_hnp_DSO_FALSE!$OMPI_BUILD_iof_hnp_DSO_FALSE$ac_delim ++OMPI_BUILD_iof_orted_DSO_TRUE!$OMPI_BUILD_iof_orted_DSO_TRUE$ac_delim ++OMPI_BUILD_iof_orted_DSO_FALSE!$OMPI_BUILD_iof_orted_DSO_FALSE$ac_delim ++OMPI_BUILD_iof_tool_DSO_TRUE!$OMPI_BUILD_iof_tool_DSO_TRUE$ac_delim ++OMPI_BUILD_iof_tool_DSO_FALSE!$OMPI_BUILD_iof_tool_DSO_FALSE$ac_delim ++MCA_iof_ALL_COMPONENTS!$MCA_iof_ALL_COMPONENTS$ac_delim ++MCA_iof_STATIC_COMPONENTS!$MCA_iof_STATIC_COMPONENTS$ac_delim ++MCA_iof_DSO_COMPONENTS!$MCA_iof_DSO_COMPONENTS$ac_delim ++MCA_iof_STATIC_LTLIBS!$MCA_iof_STATIC_LTLIBS$ac_delim ++MCA_iof_ALL_SUBDIRS!$MCA_iof_ALL_SUBDIRS$ac_delim ++MCA_iof_STATIC_SUBDIRS!$MCA_iof_STATIC_SUBDIRS$ac_delim ++_ACEOF ++ ++ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then ++ break ++ elif $ac_last_try; then ++ { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 ++echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ ac_delim="$ac_delim!$ac_delim _$ac_delim!! " ++ fi ++done ++ ++ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` ++if test -n "$ac_eof"; then ++ ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ++ ac_eof=`expr $ac_eof + 1` ++fi ++ ++cat >>$CONFIG_STATUS <<_ACEOF ++cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b ++_ACEOF ++sed ' ++s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g ++s/^/s,@/; s/!/@,|#_!!_#|/ ++:n ++t n ++s/'"$ac_delim"'$/,g/; t ++s/$/\\/; p ++N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ++' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF ++CEOF$ac_eof ++_ACEOF ++ ++ ++ac_delim='%!_!# ' ++for ac_last_try in false false false false false :; do ++ cat >conf$$subs.sed <<_ACEOF ++MCA_iof_DSO_SUBDIRS!$MCA_iof_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_notifier_syslog_DSO_TRUE!$OMPI_BUILD_notifier_syslog_DSO_TRUE$ac_delim ++OMPI_BUILD_notifier_syslog_DSO_FALSE!$OMPI_BUILD_notifier_syslog_DSO_FALSE$ac_delim ++MCA_notifier_ALL_COMPONENTS!$MCA_notifier_ALL_COMPONENTS$ac_delim ++MCA_notifier_STATIC_COMPONENTS!$MCA_notifier_STATIC_COMPONENTS$ac_delim ++MCA_notifier_DSO_COMPONENTS!$MCA_notifier_DSO_COMPONENTS$ac_delim ++MCA_notifier_STATIC_LTLIBS!$MCA_notifier_STATIC_LTLIBS$ac_delim ++MCA_notifier_ALL_SUBDIRS!$MCA_notifier_ALL_SUBDIRS$ac_delim ++MCA_notifier_STATIC_SUBDIRS!$MCA_notifier_STATIC_SUBDIRS$ac_delim ++MCA_notifier_DSO_SUBDIRS!$MCA_notifier_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_odls_default_DSO_TRUE!$OMPI_BUILD_odls_default_DSO_TRUE$ac_delim ++OMPI_BUILD_odls_default_DSO_FALSE!$OMPI_BUILD_odls_default_DSO_FALSE$ac_delim ++MCA_odls_ALL_COMPONENTS!$MCA_odls_ALL_COMPONENTS$ac_delim ++MCA_odls_STATIC_COMPONENTS!$MCA_odls_STATIC_COMPONENTS$ac_delim ++MCA_odls_DSO_COMPONENTS!$MCA_odls_DSO_COMPONENTS$ac_delim ++MCA_odls_STATIC_LTLIBS!$MCA_odls_STATIC_LTLIBS$ac_delim ++MCA_odls_ALL_SUBDIRS!$MCA_odls_ALL_SUBDIRS$ac_delim ++MCA_odls_STATIC_SUBDIRS!$MCA_odls_STATIC_SUBDIRS$ac_delim ++MCA_odls_DSO_SUBDIRS!$MCA_odls_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_oob_tcp_DSO_TRUE!$OMPI_BUILD_oob_tcp_DSO_TRUE$ac_delim ++OMPI_BUILD_oob_tcp_DSO_FALSE!$OMPI_BUILD_oob_tcp_DSO_FALSE$ac_delim ++MCA_oob_ALL_COMPONENTS!$MCA_oob_ALL_COMPONENTS$ac_delim ++MCA_oob_STATIC_COMPONENTS!$MCA_oob_STATIC_COMPONENTS$ac_delim ++MCA_oob_DSO_COMPONENTS!$MCA_oob_DSO_COMPONENTS$ac_delim ++MCA_oob_STATIC_LTLIBS!$MCA_oob_STATIC_LTLIBS$ac_delim ++MCA_oob_ALL_SUBDIRS!$MCA_oob_ALL_SUBDIRS$ac_delim ++MCA_oob_STATIC_SUBDIRS!$MCA_oob_STATIC_SUBDIRS$ac_delim ++MCA_oob_DSO_SUBDIRS!$MCA_oob_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_plm_alps_DSO_TRUE!$OMPI_BUILD_plm_alps_DSO_TRUE$ac_delim ++OMPI_BUILD_plm_alps_DSO_FALSE!$OMPI_BUILD_plm_alps_DSO_FALSE$ac_delim ++plm_lsf_CPPFLAGS!$plm_lsf_CPPFLAGS$ac_delim ++plm_lsf_LDFLAGS!$plm_lsf_LDFLAGS$ac_delim ++plm_lsf_LIBS!$plm_lsf_LIBS$ac_delim ++OMPI_BUILD_plm_lsf_DSO_TRUE!$OMPI_BUILD_plm_lsf_DSO_TRUE$ac_delim ++OMPI_BUILD_plm_lsf_DSO_FALSE!$OMPI_BUILD_plm_lsf_DSO_FALSE$ac_delim ++OMPI_BUILD_plm_rsh_DSO_TRUE!$OMPI_BUILD_plm_rsh_DSO_TRUE$ac_delim ++OMPI_BUILD_plm_rsh_DSO_FALSE!$OMPI_BUILD_plm_rsh_DSO_FALSE$ac_delim ++plm_slurm_CPPFLAGS!$plm_slurm_CPPFLAGS$ac_delim ++plm_slurm_LDFLAGS!$plm_slurm_LDFLAGS$ac_delim ++plm_slurm_LIBS!$plm_slurm_LIBS$ac_delim ++OMPI_BUILD_plm_slurm_DSO_TRUE!$OMPI_BUILD_plm_slurm_DSO_TRUE$ac_delim ++OMPI_BUILD_plm_slurm_DSO_FALSE!$OMPI_BUILD_plm_slurm_DSO_FALSE$ac_delim ++plm_tm_CPPFLAGS!$plm_tm_CPPFLAGS$ac_delim ++plm_tm_LDFLAGS!$plm_tm_LDFLAGS$ac_delim ++plm_tm_LIBS!$plm_tm_LIBS$ac_delim ++OMPI_BUILD_plm_tm_DSO_TRUE!$OMPI_BUILD_plm_tm_DSO_TRUE$ac_delim ++OMPI_BUILD_plm_tm_DSO_FALSE!$OMPI_BUILD_plm_tm_DSO_FALSE$ac_delim ++OBJC!$OBJC$ac_delim ++OBJCFLAGS!$OBJCFLAGS$ac_delim ++ac_ct_OBJC!$ac_ct_OBJC$ac_delim ++OBJCDEPMODE!$OBJCDEPMODE$ac_delim ++am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim ++am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim ++plm_xgrid_OBJCFLAGS!$plm_xgrid_OBJCFLAGS$ac_delim ++plm_xgrid_LDFLAGS!$plm_xgrid_LDFLAGS$ac_delim ++OMPI_BUILD_plm_xgrid_DSO_TRUE!$OMPI_BUILD_plm_xgrid_DSO_TRUE$ac_delim ++OMPI_BUILD_plm_xgrid_DSO_FALSE!$OMPI_BUILD_plm_xgrid_DSO_FALSE$ac_delim ++MCA_plm_ALL_COMPONENTS!$MCA_plm_ALL_COMPONENTS$ac_delim ++MCA_plm_STATIC_COMPONENTS!$MCA_plm_STATIC_COMPONENTS$ac_delim ++MCA_plm_DSO_COMPONENTS!$MCA_plm_DSO_COMPONENTS$ac_delim ++MCA_plm_STATIC_LTLIBS!$MCA_plm_STATIC_LTLIBS$ac_delim ++MCA_plm_ALL_SUBDIRS!$MCA_plm_ALL_SUBDIRS$ac_delim ++MCA_plm_STATIC_SUBDIRS!$MCA_plm_STATIC_SUBDIRS$ac_delim ++MCA_plm_DSO_SUBDIRS!$MCA_plm_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_ras_alps_DSO_TRUE!$OMPI_BUILD_ras_alps_DSO_TRUE$ac_delim ++OMPI_BUILD_ras_alps_DSO_FALSE!$OMPI_BUILD_ras_alps_DSO_FALSE$ac_delim ++QRSH!$QRSH$ac_delim ++OMPI_BUILD_ras_gridengine_DSO_TRUE!$OMPI_BUILD_ras_gridengine_DSO_TRUE$ac_delim ++OMPI_BUILD_ras_gridengine_DSO_FALSE!$OMPI_BUILD_ras_gridengine_DSO_FALSE$ac_delim ++ras_loadleveler_CPPFLAGS!$ras_loadleveler_CPPFLAGS$ac_delim ++ras_loadleveler_LDFLAGS!$ras_loadleveler_LDFLAGS$ac_delim ++ras_loadleveler_LIBS!$ras_loadleveler_LIBS$ac_delim ++OMPI_BUILD_ras_loadleveler_DSO_TRUE!$OMPI_BUILD_ras_loadleveler_DSO_TRUE$ac_delim ++OMPI_BUILD_ras_loadleveler_DSO_FALSE!$OMPI_BUILD_ras_loadleveler_DSO_FALSE$ac_delim ++ras_lsf_CPPFLAGS!$ras_lsf_CPPFLAGS$ac_delim ++ras_lsf_LDFLAGS!$ras_lsf_LDFLAGS$ac_delim ++ras_lsf_LIBS!$ras_lsf_LIBS$ac_delim ++OMPI_BUILD_ras_lsf_DSO_TRUE!$OMPI_BUILD_ras_lsf_DSO_TRUE$ac_delim ++OMPI_BUILD_ras_lsf_DSO_FALSE!$OMPI_BUILD_ras_lsf_DSO_FALSE$ac_delim ++ras_slurm_CPPFLAGS!$ras_slurm_CPPFLAGS$ac_delim ++ras_slurm_LDFLAGS!$ras_slurm_LDFLAGS$ac_delim ++ras_slurm_LIBS!$ras_slurm_LIBS$ac_delim ++OMPI_BUILD_ras_slurm_DSO_TRUE!$OMPI_BUILD_ras_slurm_DSO_TRUE$ac_delim ++OMPI_BUILD_ras_slurm_DSO_FALSE!$OMPI_BUILD_ras_slurm_DSO_FALSE$ac_delim ++ras_tm_CPPFLAGS!$ras_tm_CPPFLAGS$ac_delim ++ras_tm_LDFLAGS!$ras_tm_LDFLAGS$ac_delim ++ras_tm_LIBS!$ras_tm_LIBS$ac_delim ++OMPI_BUILD_ras_tm_DSO_TRUE!$OMPI_BUILD_ras_tm_DSO_TRUE$ac_delim ++OMPI_BUILD_ras_tm_DSO_FALSE!$OMPI_BUILD_ras_tm_DSO_FALSE$ac_delim ++MCA_ras_ALL_COMPONENTS!$MCA_ras_ALL_COMPONENTS$ac_delim ++MCA_ras_STATIC_COMPONENTS!$MCA_ras_STATIC_COMPONENTS$ac_delim ++MCA_ras_DSO_COMPONENTS!$MCA_ras_DSO_COMPONENTS$ac_delim ++MCA_ras_STATIC_LTLIBS!$MCA_ras_STATIC_LTLIBS$ac_delim ++MCA_ras_ALL_SUBDIRS!$MCA_ras_ALL_SUBDIRS$ac_delim ++MCA_ras_STATIC_SUBDIRS!$MCA_ras_STATIC_SUBDIRS$ac_delim ++MCA_ras_DSO_SUBDIRS!$MCA_ras_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_rmaps_rank_file_DSO_TRUE!$OMPI_BUILD_rmaps_rank_file_DSO_TRUE$ac_delim ++_ACEOF ++ ++ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then ++ break ++ elif $ac_last_try; then ++ { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 ++echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ ac_delim="$ac_delim!$ac_delim _$ac_delim!! " ++ fi ++done ++ ++ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` ++if test -n "$ac_eof"; then ++ ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ++ ac_eof=`expr $ac_eof + 1` ++fi ++ ++cat >>$CONFIG_STATUS <<_ACEOF ++cat >"\$tmp/subs-6.sed" <<\CEOF$ac_eof ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b ++_ACEOF ++sed ' ++s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g ++s/^/s,@/; s/!/@,|#_!!_#|/ ++:n ++t n ++s/'"$ac_delim"'$/,g/; t ++s/$/\\/; p ++N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ++' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF ++CEOF$ac_eof ++_ACEOF ++ ++ ++ac_delim='%!_!# ' ++for ac_last_try in false false false false false :; do ++ cat >conf$$subs.sed <<_ACEOF ++OMPI_BUILD_rmaps_rank_file_DSO_FALSE!$OMPI_BUILD_rmaps_rank_file_DSO_FALSE$ac_delim ++OMPI_BUILD_rmaps_round_robin_DSO_TRUE!$OMPI_BUILD_rmaps_round_robin_DSO_TRUE$ac_delim ++OMPI_BUILD_rmaps_round_robin_DSO_FALSE!$OMPI_BUILD_rmaps_round_robin_DSO_FALSE$ac_delim ++OMPI_BUILD_rmaps_seq_DSO_TRUE!$OMPI_BUILD_rmaps_seq_DSO_TRUE$ac_delim ++OMPI_BUILD_rmaps_seq_DSO_FALSE!$OMPI_BUILD_rmaps_seq_DSO_FALSE$ac_delim ++MCA_rmaps_ALL_COMPONENTS!$MCA_rmaps_ALL_COMPONENTS$ac_delim ++MCA_rmaps_STATIC_COMPONENTS!$MCA_rmaps_STATIC_COMPONENTS$ac_delim ++MCA_rmaps_DSO_COMPONENTS!$MCA_rmaps_DSO_COMPONENTS$ac_delim ++MCA_rmaps_STATIC_LTLIBS!$MCA_rmaps_STATIC_LTLIBS$ac_delim ++MCA_rmaps_ALL_SUBDIRS!$MCA_rmaps_ALL_SUBDIRS$ac_delim ++MCA_rmaps_STATIC_SUBDIRS!$MCA_rmaps_STATIC_SUBDIRS$ac_delim ++MCA_rmaps_DSO_SUBDIRS!$MCA_rmaps_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_rml_oob_DSO_TRUE!$OMPI_BUILD_rml_oob_DSO_TRUE$ac_delim ++OMPI_BUILD_rml_oob_DSO_FALSE!$OMPI_BUILD_rml_oob_DSO_FALSE$ac_delim ++OMPI_BUILD_rml_ftrm_DSO_TRUE!$OMPI_BUILD_rml_ftrm_DSO_TRUE$ac_delim ++OMPI_BUILD_rml_ftrm_DSO_FALSE!$OMPI_BUILD_rml_ftrm_DSO_FALSE$ac_delim ++MCA_rml_ALL_COMPONENTS!$MCA_rml_ALL_COMPONENTS$ac_delim ++MCA_rml_STATIC_COMPONENTS!$MCA_rml_STATIC_COMPONENTS$ac_delim ++MCA_rml_DSO_COMPONENTS!$MCA_rml_DSO_COMPONENTS$ac_delim ++MCA_rml_STATIC_LTLIBS!$MCA_rml_STATIC_LTLIBS$ac_delim ++MCA_rml_ALL_SUBDIRS!$MCA_rml_ALL_SUBDIRS$ac_delim ++MCA_rml_STATIC_SUBDIRS!$MCA_rml_STATIC_SUBDIRS$ac_delim ++MCA_rml_DSO_SUBDIRS!$MCA_rml_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_routed_binomial_DSO_TRUE!$OMPI_BUILD_routed_binomial_DSO_TRUE$ac_delim ++OMPI_BUILD_routed_binomial_DSO_FALSE!$OMPI_BUILD_routed_binomial_DSO_FALSE$ac_delim ++OMPI_BUILD_routed_direct_DSO_TRUE!$OMPI_BUILD_routed_direct_DSO_TRUE$ac_delim ++OMPI_BUILD_routed_direct_DSO_FALSE!$OMPI_BUILD_routed_direct_DSO_FALSE$ac_delim ++OMPI_BUILD_routed_linear_DSO_TRUE!$OMPI_BUILD_routed_linear_DSO_TRUE$ac_delim ++OMPI_BUILD_routed_linear_DSO_FALSE!$OMPI_BUILD_routed_linear_DSO_FALSE$ac_delim ++MCA_routed_ALL_COMPONENTS!$MCA_routed_ALL_COMPONENTS$ac_delim ++MCA_routed_STATIC_COMPONENTS!$MCA_routed_STATIC_COMPONENTS$ac_delim ++MCA_routed_DSO_COMPONENTS!$MCA_routed_DSO_COMPONENTS$ac_delim ++MCA_routed_STATIC_LTLIBS!$MCA_routed_STATIC_LTLIBS$ac_delim ++MCA_routed_ALL_SUBDIRS!$MCA_routed_ALL_SUBDIRS$ac_delim ++MCA_routed_STATIC_SUBDIRS!$MCA_routed_STATIC_SUBDIRS$ac_delim ++MCA_routed_DSO_SUBDIRS!$MCA_routed_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_snapc_full_DSO_TRUE!$OMPI_BUILD_snapc_full_DSO_TRUE$ac_delim ++OMPI_BUILD_snapc_full_DSO_FALSE!$OMPI_BUILD_snapc_full_DSO_FALSE$ac_delim ++MCA_snapc_ALL_COMPONENTS!$MCA_snapc_ALL_COMPONENTS$ac_delim ++MCA_snapc_STATIC_COMPONENTS!$MCA_snapc_STATIC_COMPONENTS$ac_delim ++MCA_snapc_DSO_COMPONENTS!$MCA_snapc_DSO_COMPONENTS$ac_delim ++MCA_snapc_STATIC_LTLIBS!$MCA_snapc_STATIC_LTLIBS$ac_delim ++MCA_snapc_ALL_SUBDIRS!$MCA_snapc_ALL_SUBDIRS$ac_delim ++MCA_snapc_STATIC_SUBDIRS!$MCA_snapc_STATIC_SUBDIRS$ac_delim ++MCA_snapc_DSO_SUBDIRS!$MCA_snapc_DSO_SUBDIRS$ac_delim ++MCA_orte_FRAMEWORKS!$MCA_orte_FRAMEWORKS$ac_delim ++MCA_orte_FRAMEWORKS_SUBDIRS!$MCA_orte_FRAMEWORKS_SUBDIRS$ac_delim ++MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS!$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS$ac_delim ++MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS!$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS$ac_delim ++MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS!$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS$ac_delim ++MCA_orte_FRAMEWORK_LIBS!$MCA_orte_FRAMEWORK_LIBS$ac_delim ++OMPI_BUILD_allocator_basic_DSO_TRUE!$OMPI_BUILD_allocator_basic_DSO_TRUE$ac_delim ++OMPI_BUILD_allocator_basic_DSO_FALSE!$OMPI_BUILD_allocator_basic_DSO_FALSE$ac_delim ++OMPI_BUILD_allocator_bucket_DSO_TRUE!$OMPI_BUILD_allocator_bucket_DSO_TRUE$ac_delim ++OMPI_BUILD_allocator_bucket_DSO_FALSE!$OMPI_BUILD_allocator_bucket_DSO_FALSE$ac_delim ++MCA_allocator_ALL_COMPONENTS!$MCA_allocator_ALL_COMPONENTS$ac_delim ++MCA_allocator_STATIC_COMPONENTS!$MCA_allocator_STATIC_COMPONENTS$ac_delim ++MCA_allocator_DSO_COMPONENTS!$MCA_allocator_DSO_COMPONENTS$ac_delim ++MCA_allocator_STATIC_LTLIBS!$MCA_allocator_STATIC_LTLIBS$ac_delim ++MCA_allocator_ALL_SUBDIRS!$MCA_allocator_ALL_SUBDIRS$ac_delim ++MCA_allocator_STATIC_SUBDIRS!$MCA_allocator_STATIC_SUBDIRS$ac_delim ++MCA_allocator_DSO_SUBDIRS!$MCA_allocator_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_bml_r2_DSO_TRUE!$OMPI_BUILD_bml_r2_DSO_TRUE$ac_delim ++OMPI_BUILD_bml_r2_DSO_FALSE!$OMPI_BUILD_bml_r2_DSO_FALSE$ac_delim ++MCA_bml_ALL_COMPONENTS!$MCA_bml_ALL_COMPONENTS$ac_delim ++MCA_bml_STATIC_COMPONENTS!$MCA_bml_STATIC_COMPONENTS$ac_delim ++MCA_bml_DSO_COMPONENTS!$MCA_bml_DSO_COMPONENTS$ac_delim ++MCA_bml_STATIC_LTLIBS!$MCA_bml_STATIC_LTLIBS$ac_delim ++MCA_bml_ALL_SUBDIRS!$MCA_bml_ALL_SUBDIRS$ac_delim ++MCA_bml_STATIC_SUBDIRS!$MCA_bml_STATIC_SUBDIRS$ac_delim ++MCA_bml_DSO_SUBDIRS!$MCA_bml_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_btl_self_DSO_TRUE!$OMPI_BUILD_btl_self_DSO_TRUE$ac_delim ++OMPI_BUILD_btl_self_DSO_FALSE!$OMPI_BUILD_btl_self_DSO_FALSE$ac_delim ++OMPI_BUILD_btl_sm_DSO_TRUE!$OMPI_BUILD_btl_sm_DSO_TRUE$ac_delim ++OMPI_BUILD_btl_sm_DSO_FALSE!$OMPI_BUILD_btl_sm_DSO_FALSE$ac_delim ++btl_elan_CFLAGS!$btl_elan_CFLAGS$ac_delim ++btl_elan_CPPFLAGS!$btl_elan_CPPFLAGS$ac_delim ++btl_elan_LDFLAGS!$btl_elan_LDFLAGS$ac_delim ++btl_elan_LIBS!$btl_elan_LIBS$ac_delim ++OMPI_BUILD_btl_elan_DSO_TRUE!$OMPI_BUILD_btl_elan_DSO_TRUE$ac_delim ++OMPI_BUILD_btl_elan_DSO_FALSE!$OMPI_BUILD_btl_elan_DSO_FALSE$ac_delim ++btl_gm_CFLAGS!$btl_gm_CFLAGS$ac_delim ++btl_gm_CPPFLAGS!$btl_gm_CPPFLAGS$ac_delim ++btl_gm_LDFLAGS!$btl_gm_LDFLAGS$ac_delim ++btl_gm_LIBS!$btl_gm_LIBS$ac_delim ++OMPI_BUILD_btl_gm_DSO_TRUE!$OMPI_BUILD_btl_gm_DSO_TRUE$ac_delim ++OMPI_BUILD_btl_gm_DSO_FALSE!$OMPI_BUILD_btl_gm_DSO_FALSE$ac_delim ++btl_mx_CFLAGS!$btl_mx_CFLAGS$ac_delim ++btl_mx_CPPFLAGS!$btl_mx_CPPFLAGS$ac_delim ++btl_mx_LDFLAGS!$btl_mx_LDFLAGS$ac_delim ++btl_mx_LIBS!$btl_mx_LIBS$ac_delim ++OMPI_BUILD_btl_mx_DSO_TRUE!$OMPI_BUILD_btl_mx_DSO_TRUE$ac_delim ++OMPI_BUILD_btl_mx_DSO_FALSE!$OMPI_BUILD_btl_mx_DSO_FALSE$ac_delim ++btl_ofud_CFLAGS!$btl_ofud_CFLAGS$ac_delim ++btl_ofud_CPPFLAGS!$btl_ofud_CPPFLAGS$ac_delim ++btl_ofud_LDFLAGS!$btl_ofud_LDFLAGS$ac_delim ++btl_ofud_LIBS!$btl_ofud_LIBS$ac_delim ++_ACEOF ++ ++ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then ++ break ++ elif $ac_last_try; then ++ { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 ++echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ ac_delim="$ac_delim!$ac_delim _$ac_delim!! " ++ fi ++done ++ ++ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` ++if test -n "$ac_eof"; then ++ ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ++ ac_eof=`expr $ac_eof + 1` ++fi ++ ++cat >>$CONFIG_STATUS <<_ACEOF ++cat >"\$tmp/subs-7.sed" <<\CEOF$ac_eof ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b ++_ACEOF ++sed ' ++s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g ++s/^/s,@/; s/!/@,|#_!!_#|/ ++:n ++t n ++s/'"$ac_delim"'$/,g/; t ++s/$/\\/; p ++N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ++' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF ++CEOF$ac_eof ++_ACEOF ++ ++ ++ac_delim='%!_!# ' ++for ac_last_try in false false false false false :; do ++ cat >conf$$subs.sed <<_ACEOF ++OMPI_BUILD_btl_ofud_DSO_TRUE!$OMPI_BUILD_btl_ofud_DSO_TRUE$ac_delim ++OMPI_BUILD_btl_ofud_DSO_FALSE!$OMPI_BUILD_btl_ofud_DSO_FALSE$ac_delim ++btl_openib_CFLAGS!$btl_openib_CFLAGS$ac_delim ++btl_openib_CPPFLAGS!$btl_openib_CPPFLAGS$ac_delim ++btl_openib_LDFLAGS!$btl_openib_LDFLAGS$ac_delim ++btl_openib_LIBS!$btl_openib_LIBS$ac_delim ++MCA_btl_openib_have_xrc_TRUE!$MCA_btl_openib_have_xrc_TRUE$ac_delim ++MCA_btl_openib_have_xrc_FALSE!$MCA_btl_openib_have_xrc_FALSE$ac_delim ++MCA_btl_openib_have_rdmacm_TRUE!$MCA_btl_openib_have_rdmacm_TRUE$ac_delim ++MCA_btl_openib_have_rdmacm_FALSE!$MCA_btl_openib_have_rdmacm_FALSE$ac_delim ++MCA_btl_openib_have_ibcm_TRUE!$MCA_btl_openib_have_ibcm_TRUE$ac_delim ++MCA_btl_openib_have_ibcm_FALSE!$MCA_btl_openib_have_ibcm_FALSE$ac_delim ++OMPI_BUILD_btl_openib_DSO_TRUE!$OMPI_BUILD_btl_openib_DSO_TRUE$ac_delim ++OMPI_BUILD_btl_openib_DSO_FALSE!$OMPI_BUILD_btl_openib_DSO_FALSE$ac_delim ++btl_portals_CPPFLAGS!$btl_portals_CPPFLAGS$ac_delim ++btl_portals_LDFLAGS!$btl_portals_LDFLAGS$ac_delim ++btl_portals_LIBS!$btl_portals_LIBS$ac_delim ++OMPI_BUILD_btl_portals_DSO_TRUE!$OMPI_BUILD_btl_portals_DSO_TRUE$ac_delim ++OMPI_BUILD_btl_portals_DSO_FALSE!$OMPI_BUILD_btl_portals_DSO_FALSE$ac_delim ++OMPI_BUILD_btl_tcp_DSO_TRUE!$OMPI_BUILD_btl_tcp_DSO_TRUE$ac_delim ++OMPI_BUILD_btl_tcp_DSO_FALSE!$OMPI_BUILD_btl_tcp_DSO_FALSE$ac_delim ++btl_udapl_CFLAGS!$btl_udapl_CFLAGS$ac_delim ++btl_udapl_CPPFLAGS!$btl_udapl_CPPFLAGS$ac_delim ++btl_udapl_LDFLAGS!$btl_udapl_LDFLAGS$ac_delim ++btl_udapl_LIBS!$btl_udapl_LIBS$ac_delim ++OMPI_BUILD_btl_udapl_DSO_TRUE!$OMPI_BUILD_btl_udapl_DSO_TRUE$ac_delim ++OMPI_BUILD_btl_udapl_DSO_FALSE!$OMPI_BUILD_btl_udapl_DSO_FALSE$ac_delim ++MCA_btl_ALL_COMPONENTS!$MCA_btl_ALL_COMPONENTS$ac_delim ++MCA_btl_STATIC_COMPONENTS!$MCA_btl_STATIC_COMPONENTS$ac_delim ++MCA_btl_DSO_COMPONENTS!$MCA_btl_DSO_COMPONENTS$ac_delim ++MCA_btl_STATIC_LTLIBS!$MCA_btl_STATIC_LTLIBS$ac_delim ++MCA_btl_ALL_SUBDIRS!$MCA_btl_ALL_SUBDIRS$ac_delim ++MCA_btl_STATIC_SUBDIRS!$MCA_btl_STATIC_SUBDIRS$ac_delim ++MCA_btl_DSO_SUBDIRS!$MCA_btl_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_coll_basic_DSO_TRUE!$OMPI_BUILD_coll_basic_DSO_TRUE$ac_delim ++OMPI_BUILD_coll_basic_DSO_FALSE!$OMPI_BUILD_coll_basic_DSO_FALSE$ac_delim ++OMPI_BUILD_coll_hierarch_DSO_TRUE!$OMPI_BUILD_coll_hierarch_DSO_TRUE$ac_delim ++OMPI_BUILD_coll_hierarch_DSO_FALSE!$OMPI_BUILD_coll_hierarch_DSO_FALSE$ac_delim ++OMPI_BUILD_coll_inter_DSO_TRUE!$OMPI_BUILD_coll_inter_DSO_TRUE$ac_delim ++OMPI_BUILD_coll_inter_DSO_FALSE!$OMPI_BUILD_coll_inter_DSO_FALSE$ac_delim ++OMPI_BUILD_coll_self_DSO_TRUE!$OMPI_BUILD_coll_self_DSO_TRUE$ac_delim ++OMPI_BUILD_coll_self_DSO_FALSE!$OMPI_BUILD_coll_self_DSO_FALSE$ac_delim ++OMPI_BUILD_coll_sm_DSO_TRUE!$OMPI_BUILD_coll_sm_DSO_TRUE$ac_delim ++OMPI_BUILD_coll_sm_DSO_FALSE!$OMPI_BUILD_coll_sm_DSO_FALSE$ac_delim ++OMPI_BUILD_coll_tuned_DSO_TRUE!$OMPI_BUILD_coll_tuned_DSO_TRUE$ac_delim ++OMPI_BUILD_coll_tuned_DSO_FALSE!$OMPI_BUILD_coll_tuned_DSO_FALSE$ac_delim ++MCA_coll_ALL_COMPONENTS!$MCA_coll_ALL_COMPONENTS$ac_delim ++MCA_coll_STATIC_COMPONENTS!$MCA_coll_STATIC_COMPONENTS$ac_delim ++MCA_coll_DSO_COMPONENTS!$MCA_coll_DSO_COMPONENTS$ac_delim ++MCA_coll_STATIC_LTLIBS!$MCA_coll_STATIC_LTLIBS$ac_delim ++MCA_coll_ALL_SUBDIRS!$MCA_coll_ALL_SUBDIRS$ac_delim ++MCA_coll_STATIC_SUBDIRS!$MCA_coll_STATIC_SUBDIRS$ac_delim ++MCA_coll_DSO_SUBDIRS!$MCA_coll_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_common_sm_DSO_TRUE!$OMPI_BUILD_common_sm_DSO_TRUE$ac_delim ++OMPI_BUILD_common_sm_DSO_FALSE!$OMPI_BUILD_common_sm_DSO_FALSE$ac_delim ++common_mx_CFLAGS!$common_mx_CFLAGS$ac_delim ++common_mx_CPPFLAGS!$common_mx_CPPFLAGS$ac_delim ++common_mx_LDFLAGS!$common_mx_LDFLAGS$ac_delim ++common_mx_LIBS!$common_mx_LIBS$ac_delim ++OMPI_BUILD_common_mx_DSO_TRUE!$OMPI_BUILD_common_mx_DSO_TRUE$ac_delim ++OMPI_BUILD_common_mx_DSO_FALSE!$OMPI_BUILD_common_mx_DSO_FALSE$ac_delim ++common_portals_CPPFLAGS!$common_portals_CPPFLAGS$ac_delim ++common_portals_LDFLAGS!$common_portals_LDFLAGS$ac_delim ++common_portals_LIBS!$common_portals_LIBS$ac_delim ++OMPI_BUILD_common_portals_DSO_TRUE!$OMPI_BUILD_common_portals_DSO_TRUE$ac_delim ++OMPI_BUILD_common_portals_DSO_FALSE!$OMPI_BUILD_common_portals_DSO_FALSE$ac_delim ++MCA_common_ALL_COMPONENTS!$MCA_common_ALL_COMPONENTS$ac_delim ++MCA_common_STATIC_COMPONENTS!$MCA_common_STATIC_COMPONENTS$ac_delim ++MCA_common_DSO_COMPONENTS!$MCA_common_DSO_COMPONENTS$ac_delim ++MCA_common_STATIC_LTLIBS!$MCA_common_STATIC_LTLIBS$ac_delim ++MCA_common_ALL_SUBDIRS!$MCA_common_ALL_SUBDIRS$ac_delim ++MCA_common_STATIC_SUBDIRS!$MCA_common_STATIC_SUBDIRS$ac_delim ++MCA_common_DSO_SUBDIRS!$MCA_common_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_crcp_bkmrk_DSO_TRUE!$OMPI_BUILD_crcp_bkmrk_DSO_TRUE$ac_delim ++OMPI_BUILD_crcp_bkmrk_DSO_FALSE!$OMPI_BUILD_crcp_bkmrk_DSO_FALSE$ac_delim ++MCA_crcp_ALL_COMPONENTS!$MCA_crcp_ALL_COMPONENTS$ac_delim ++MCA_crcp_STATIC_COMPONENTS!$MCA_crcp_STATIC_COMPONENTS$ac_delim ++MCA_crcp_DSO_COMPONENTS!$MCA_crcp_DSO_COMPONENTS$ac_delim ++MCA_crcp_STATIC_LTLIBS!$MCA_crcp_STATIC_LTLIBS$ac_delim ++MCA_crcp_ALL_SUBDIRS!$MCA_crcp_ALL_SUBDIRS$ac_delim ++MCA_crcp_STATIC_SUBDIRS!$MCA_crcp_STATIC_SUBDIRS$ac_delim ++MCA_crcp_DSO_SUBDIRS!$MCA_crcp_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_dpm_orte_DSO_TRUE!$OMPI_BUILD_dpm_orte_DSO_TRUE$ac_delim ++OMPI_BUILD_dpm_orte_DSO_FALSE!$OMPI_BUILD_dpm_orte_DSO_FALSE$ac_delim ++MCA_dpm_ALL_COMPONENTS!$MCA_dpm_ALL_COMPONENTS$ac_delim ++MCA_dpm_STATIC_COMPONENTS!$MCA_dpm_STATIC_COMPONENTS$ac_delim ++MCA_dpm_DSO_COMPONENTS!$MCA_dpm_DSO_COMPONENTS$ac_delim ++MCA_dpm_STATIC_LTLIBS!$MCA_dpm_STATIC_LTLIBS$ac_delim ++MCA_dpm_ALL_SUBDIRS!$MCA_dpm_ALL_SUBDIRS$ac_delim ++MCA_dpm_STATIC_SUBDIRS!$MCA_dpm_STATIC_SUBDIRS$ac_delim ++MCA_dpm_DSO_SUBDIRS!$MCA_dpm_DSO_SUBDIRS$ac_delim ++MCA_io_romio_SHOULD_BUILD_TRUE!$MCA_io_romio_SHOULD_BUILD_TRUE$ac_delim ++MCA_io_romio_SHOULD_BUILD_FALSE!$MCA_io_romio_SHOULD_BUILD_FALSE$ac_delim ++OMPI_BUILD_io_romio_DSO_TRUE!$OMPI_BUILD_io_romio_DSO_TRUE$ac_delim ++OMPI_BUILD_io_romio_DSO_FALSE!$OMPI_BUILD_io_romio_DSO_FALSE$ac_delim ++MCA_io_ALL_COMPONENTS!$MCA_io_ALL_COMPONENTS$ac_delim ++MCA_io_STATIC_COMPONENTS!$MCA_io_STATIC_COMPONENTS$ac_delim ++_ACEOF ++ ++ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then ++ break ++ elif $ac_last_try; then ++ { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 ++echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ ac_delim="$ac_delim!$ac_delim _$ac_delim!! " ++ fi ++done ++ ++ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` ++if test -n "$ac_eof"; then ++ ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ++ ac_eof=`expr $ac_eof + 1` ++fi ++ ++cat >>$CONFIG_STATUS <<_ACEOF ++cat >"\$tmp/subs-8.sed" <<\CEOF$ac_eof ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b ++_ACEOF ++sed ' ++s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g ++s/^/s,@/; s/!/@,|#_!!_#|/ ++:n ++t n ++s/'"$ac_delim"'$/,g/; t ++s/$/\\/; p ++N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ++' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF ++CEOF$ac_eof ++_ACEOF ++ ++ ++ac_delim='%!_!# ' ++for ac_last_try in false false false false false :; do ++ cat >conf$$subs.sed <<_ACEOF ++MCA_io_DSO_COMPONENTS!$MCA_io_DSO_COMPONENTS$ac_delim ++MCA_io_STATIC_LTLIBS!$MCA_io_STATIC_LTLIBS$ac_delim ++MCA_io_ALL_SUBDIRS!$MCA_io_ALL_SUBDIRS$ac_delim ++MCA_io_STATIC_SUBDIRS!$MCA_io_STATIC_SUBDIRS$ac_delim ++MCA_io_DSO_SUBDIRS!$MCA_io_DSO_SUBDIRS$ac_delim ++OMPI_PROVIDE_MPI_FILE_INTERFACE_TRUE!$OMPI_PROVIDE_MPI_FILE_INTERFACE_TRUE$ac_delim ++OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE!$OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE$ac_delim ++OMPI_MPIF_MPI_IO_INCLUDE!$OMPI_MPIF_MPI_IO_INCLUDE$ac_delim ++OMPI_BUILD_mpool_fake_DSO_TRUE!$OMPI_BUILD_mpool_fake_DSO_TRUE$ac_delim ++OMPI_BUILD_mpool_fake_DSO_FALSE!$OMPI_BUILD_mpool_fake_DSO_FALSE$ac_delim ++OMPI_BUILD_mpool_rdma_DSO_TRUE!$OMPI_BUILD_mpool_rdma_DSO_TRUE$ac_delim ++OMPI_BUILD_mpool_rdma_DSO_FALSE!$OMPI_BUILD_mpool_rdma_DSO_FALSE$ac_delim ++OMPI_BUILD_mpool_sm_DSO_TRUE!$OMPI_BUILD_mpool_sm_DSO_TRUE$ac_delim ++OMPI_BUILD_mpool_sm_DSO_FALSE!$OMPI_BUILD_mpool_sm_DSO_FALSE$ac_delim ++MCA_mpool_ALL_COMPONENTS!$MCA_mpool_ALL_COMPONENTS$ac_delim ++MCA_mpool_STATIC_COMPONENTS!$MCA_mpool_STATIC_COMPONENTS$ac_delim ++MCA_mpool_DSO_COMPONENTS!$MCA_mpool_DSO_COMPONENTS$ac_delim ++MCA_mpool_STATIC_LTLIBS!$MCA_mpool_STATIC_LTLIBS$ac_delim ++MCA_mpool_ALL_SUBDIRS!$MCA_mpool_ALL_SUBDIRS$ac_delim ++MCA_mpool_STATIC_SUBDIRS!$MCA_mpool_STATIC_SUBDIRS$ac_delim ++MCA_mpool_DSO_SUBDIRS!$MCA_mpool_DSO_SUBDIRS$ac_delim ++mtl_mx_CFLAGS!$mtl_mx_CFLAGS$ac_delim ++mtl_mx_CPPFLAGS!$mtl_mx_CPPFLAGS$ac_delim ++mtl_mx_LDFLAGS!$mtl_mx_LDFLAGS$ac_delim ++mtl_mx_LIBS!$mtl_mx_LIBS$ac_delim ++OMPI_BUILD_mtl_mx_DSO_TRUE!$OMPI_BUILD_mtl_mx_DSO_TRUE$ac_delim ++OMPI_BUILD_mtl_mx_DSO_FALSE!$OMPI_BUILD_mtl_mx_DSO_FALSE$ac_delim ++mtl_portals_CPPFLAGS!$mtl_portals_CPPFLAGS$ac_delim ++mtl_portals_LDFLAGS!$mtl_portals_LDFLAGS$ac_delim ++mtl_portals_LIBS!$mtl_portals_LIBS$ac_delim ++OMPI_BUILD_mtl_portals_DSO_TRUE!$OMPI_BUILD_mtl_portals_DSO_TRUE$ac_delim ++OMPI_BUILD_mtl_portals_DSO_FALSE!$OMPI_BUILD_mtl_portals_DSO_FALSE$ac_delim ++mtl_psm_CFLAGS!$mtl_psm_CFLAGS$ac_delim ++mtl_psm_CPPFLAGS!$mtl_psm_CPPFLAGS$ac_delim ++mtl_psm_LDFLAGS!$mtl_psm_LDFLAGS$ac_delim ++mtl_psm_LIBS!$mtl_psm_LIBS$ac_delim ++OMPI_BUILD_mtl_psm_DSO_TRUE!$OMPI_BUILD_mtl_psm_DSO_TRUE$ac_delim ++OMPI_BUILD_mtl_psm_DSO_FALSE!$OMPI_BUILD_mtl_psm_DSO_FALSE$ac_delim ++MCA_mtl_ALL_COMPONENTS!$MCA_mtl_ALL_COMPONENTS$ac_delim ++MCA_mtl_STATIC_COMPONENTS!$MCA_mtl_STATIC_COMPONENTS$ac_delim ++MCA_mtl_DSO_COMPONENTS!$MCA_mtl_DSO_COMPONENTS$ac_delim ++MCA_mtl_STATIC_LTLIBS!$MCA_mtl_STATIC_LTLIBS$ac_delim ++MCA_mtl_ALL_SUBDIRS!$MCA_mtl_ALL_SUBDIRS$ac_delim ++MCA_mtl_STATIC_SUBDIRS!$MCA_mtl_STATIC_SUBDIRS$ac_delim ++MCA_mtl_DSO_SUBDIRS!$MCA_mtl_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_osc_pt2pt_DSO_TRUE!$OMPI_BUILD_osc_pt2pt_DSO_TRUE$ac_delim ++OMPI_BUILD_osc_pt2pt_DSO_FALSE!$OMPI_BUILD_osc_pt2pt_DSO_FALSE$ac_delim ++OMPI_BUILD_osc_rdma_DSO_TRUE!$OMPI_BUILD_osc_rdma_DSO_TRUE$ac_delim ++OMPI_BUILD_osc_rdma_DSO_FALSE!$OMPI_BUILD_osc_rdma_DSO_FALSE$ac_delim ++MCA_osc_ALL_COMPONENTS!$MCA_osc_ALL_COMPONENTS$ac_delim ++MCA_osc_STATIC_COMPONENTS!$MCA_osc_STATIC_COMPONENTS$ac_delim ++MCA_osc_DSO_COMPONENTS!$MCA_osc_DSO_COMPONENTS$ac_delim ++MCA_osc_STATIC_LTLIBS!$MCA_osc_STATIC_LTLIBS$ac_delim ++MCA_osc_ALL_SUBDIRS!$MCA_osc_ALL_SUBDIRS$ac_delim ++MCA_osc_STATIC_SUBDIRS!$MCA_osc_STATIC_SUBDIRS$ac_delim ++MCA_osc_DSO_SUBDIRS!$MCA_osc_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_pml_cm_DSO_TRUE!$OMPI_BUILD_pml_cm_DSO_TRUE$ac_delim ++OMPI_BUILD_pml_cm_DSO_FALSE!$OMPI_BUILD_pml_cm_DSO_FALSE$ac_delim ++OMPI_BUILD_pml_ob1_DSO_TRUE!$OMPI_BUILD_pml_ob1_DSO_TRUE$ac_delim ++OMPI_BUILD_pml_ob1_DSO_FALSE!$OMPI_BUILD_pml_ob1_DSO_FALSE$ac_delim ++OMPI_BUILD_pml_crcpw_DSO_TRUE!$OMPI_BUILD_pml_crcpw_DSO_TRUE$ac_delim ++OMPI_BUILD_pml_crcpw_DSO_FALSE!$OMPI_BUILD_pml_crcpw_DSO_FALSE$ac_delim ++OMPI_BUILD_vprotocol_pessimist_DSO_TRUE!$OMPI_BUILD_vprotocol_pessimist_DSO_TRUE$ac_delim ++OMPI_BUILD_vprotocol_pessimist_DSO_FALSE!$OMPI_BUILD_vprotocol_pessimist_DSO_FALSE$ac_delim ++MCA_vprotocol_ALL_COMPONENTS!$MCA_vprotocol_ALL_COMPONENTS$ac_delim ++MCA_vprotocol_STATIC_COMPONENTS!$MCA_vprotocol_STATIC_COMPONENTS$ac_delim ++MCA_vprotocol_DSO_COMPONENTS!$MCA_vprotocol_DSO_COMPONENTS$ac_delim ++MCA_vprotocol_STATIC_LTLIBS!$MCA_vprotocol_STATIC_LTLIBS$ac_delim ++MCA_vprotocol_ALL_SUBDIRS!$MCA_vprotocol_ALL_SUBDIRS$ac_delim ++MCA_vprotocol_STATIC_SUBDIRS!$MCA_vprotocol_STATIC_SUBDIRS$ac_delim ++MCA_vprotocol_DSO_SUBDIRS!$MCA_vprotocol_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_pml_v_DSO_TRUE!$OMPI_BUILD_pml_v_DSO_TRUE$ac_delim ++OMPI_BUILD_pml_v_DSO_FALSE!$OMPI_BUILD_pml_v_DSO_FALSE$ac_delim ++MCA_pml_ALL_COMPONENTS!$MCA_pml_ALL_COMPONENTS$ac_delim ++MCA_pml_STATIC_COMPONENTS!$MCA_pml_STATIC_COMPONENTS$ac_delim ++MCA_pml_DSO_COMPONENTS!$MCA_pml_DSO_COMPONENTS$ac_delim ++MCA_pml_STATIC_LTLIBS!$MCA_pml_STATIC_LTLIBS$ac_delim ++MCA_pml_ALL_SUBDIRS!$MCA_pml_ALL_SUBDIRS$ac_delim ++MCA_pml_STATIC_SUBDIRS!$MCA_pml_STATIC_SUBDIRS$ac_delim ++MCA_pml_DSO_SUBDIRS!$MCA_pml_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_pubsub_orte_DSO_TRUE!$OMPI_BUILD_pubsub_orte_DSO_TRUE$ac_delim ++OMPI_BUILD_pubsub_orte_DSO_FALSE!$OMPI_BUILD_pubsub_orte_DSO_FALSE$ac_delim ++MCA_pubsub_ALL_COMPONENTS!$MCA_pubsub_ALL_COMPONENTS$ac_delim ++MCA_pubsub_STATIC_COMPONENTS!$MCA_pubsub_STATIC_COMPONENTS$ac_delim ++MCA_pubsub_DSO_COMPONENTS!$MCA_pubsub_DSO_COMPONENTS$ac_delim ++MCA_pubsub_STATIC_LTLIBS!$MCA_pubsub_STATIC_LTLIBS$ac_delim ++MCA_pubsub_ALL_SUBDIRS!$MCA_pubsub_ALL_SUBDIRS$ac_delim ++MCA_pubsub_STATIC_SUBDIRS!$MCA_pubsub_STATIC_SUBDIRS$ac_delim ++MCA_pubsub_DSO_SUBDIRS!$MCA_pubsub_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_rcache_vma_DSO_TRUE!$OMPI_BUILD_rcache_vma_DSO_TRUE$ac_delim ++OMPI_BUILD_rcache_vma_DSO_FALSE!$OMPI_BUILD_rcache_vma_DSO_FALSE$ac_delim ++MCA_rcache_ALL_COMPONENTS!$MCA_rcache_ALL_COMPONENTS$ac_delim ++MCA_rcache_STATIC_COMPONENTS!$MCA_rcache_STATIC_COMPONENTS$ac_delim ++MCA_rcache_DSO_COMPONENTS!$MCA_rcache_DSO_COMPONENTS$ac_delim ++MCA_rcache_STATIC_LTLIBS!$MCA_rcache_STATIC_LTLIBS$ac_delim ++MCA_rcache_ALL_SUBDIRS!$MCA_rcache_ALL_SUBDIRS$ac_delim ++MCA_rcache_STATIC_SUBDIRS!$MCA_rcache_STATIC_SUBDIRS$ac_delim ++_ACEOF ++ ++ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then ++ break ++ elif $ac_last_try; then ++ { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 ++echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ ac_delim="$ac_delim!$ac_delim _$ac_delim!! " ++ fi ++done ++ ++ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` ++if test -n "$ac_eof"; then ++ ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ++ ac_eof=`expr $ac_eof + 1` ++fi ++ ++cat >>$CONFIG_STATUS <<_ACEOF ++cat >"\$tmp/subs-9.sed" <<\CEOF$ac_eof ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b ++_ACEOF ++sed ' ++s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g ++s/^/s,@/; s/!/@,|#_!!_#|/ ++:n ++t n ++s/'"$ac_delim"'$/,g/; t ++s/$/\\/; p ++N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ++' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF ++CEOF$ac_eof ++_ACEOF ++ ++ ++ac_delim='%!_!# ' ++for ac_last_try in false false false false false :; do ++ cat >conf$$subs.sed <<_ACEOF ++MCA_rcache_DSO_SUBDIRS!$MCA_rcache_DSO_SUBDIRS$ac_delim ++OMPI_BUILD_topo_unity_DSO_TRUE!$OMPI_BUILD_topo_unity_DSO_TRUE$ac_delim ++OMPI_BUILD_topo_unity_DSO_FALSE!$OMPI_BUILD_topo_unity_DSO_FALSE$ac_delim ++MCA_topo_ALL_COMPONENTS!$MCA_topo_ALL_COMPONENTS$ac_delim ++MCA_topo_STATIC_COMPONENTS!$MCA_topo_STATIC_COMPONENTS$ac_delim ++MCA_topo_DSO_COMPONENTS!$MCA_topo_DSO_COMPONENTS$ac_delim ++MCA_topo_STATIC_LTLIBS!$MCA_topo_STATIC_LTLIBS$ac_delim ++MCA_topo_ALL_SUBDIRS!$MCA_topo_ALL_SUBDIRS$ac_delim ++MCA_topo_STATIC_SUBDIRS!$MCA_topo_STATIC_SUBDIRS$ac_delim ++MCA_topo_DSO_SUBDIRS!$MCA_topo_DSO_SUBDIRS$ac_delim ++MCA_ompi_FRAMEWORKS!$MCA_ompi_FRAMEWORKS$ac_delim ++MCA_ompi_FRAMEWORKS_SUBDIRS!$MCA_ompi_FRAMEWORKS_SUBDIRS$ac_delim ++MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS!$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS$ac_delim ++MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS!$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS$ac_delim ++MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS!$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS$ac_delim ++MCA_ompi_FRAMEWORK_LIBS!$MCA_ompi_FRAMEWORK_LIBS$ac_delim ++MCA_pml_DIRECT_CALL_HEADER!$MCA_pml_DIRECT_CALL_HEADER$ac_delim ++MCA_mtl_DIRECT_CALL_HEADER!$MCA_mtl_DIRECT_CALL_HEADER$ac_delim ++MCA_PROJECT_SUBDIRS!$MCA_PROJECT_SUBDIRS$ac_delim ++OMPI_CONTRIB_SUBDIRS!$OMPI_CONTRIB_SUBDIRS$ac_delim ++OMPI_CONTRIB_DIST_SUBDIRS!$OMPI_CONTRIB_DIST_SUBDIRS$ac_delim ++OMPI_LIBEVENT_SOURCES!$OMPI_LIBEVENT_SOURCES$ac_delim ++LIBLTDL!$LIBLTDL$ac_delim ++LTDLDEPS!$LTDLDEPS$ac_delim ++LTDLINCL!$LTDLINCL$ac_delim ++INCLTDL!$INCLTDL$ac_delim ++AS!$AS$ac_delim ++DLLTOOL!$DLLTOOL$ac_delim ++LIBTOOL!$LIBTOOL$ac_delim ++SED!$SED$ac_delim ++LD!$LD$ac_delim ++AR!$AR$ac_delim ++RANLIB!$RANLIB$ac_delim ++lt_ECHO!$lt_ECHO$ac_delim ++DSYMUTIL!$DSYMUTIL$ac_delim ++NMEDIT!$NMEDIT$ac_delim ++LIPO!$LIPO$ac_delim ++OTOOL!$OTOOL$ac_delim ++OTOOL64!$OTOOL64$ac_delim ++LIBLTDL_SUBDIR!$LIBLTDL_SUBDIR$ac_delim ++TOTALVIEW_DEBUG_FLAGS!$TOTALVIEW_DEBUG_FLAGS$ac_delim ++CXXCPPFLAGS!$CXXCPPFLAGS$ac_delim ++OMPI_LIBMPI_EXTRA_LIBS!$OMPI_LIBMPI_EXTRA_LIBS$ac_delim ++OMPI_LIBMPI_EXTRA_LDFLAGS!$OMPI_LIBMPI_EXTRA_LDFLAGS$ac_delim ++AMCA_PARAM_SETS_DIR!$AMCA_PARAM_SETS_DIR$ac_delim ++OPAL_WRAPPER_EXTRA_CPPFLAGS!$OPAL_WRAPPER_EXTRA_CPPFLAGS$ac_delim ++OPAL_WRAPPER_EXTRA_CFLAGS!$OPAL_WRAPPER_EXTRA_CFLAGS$ac_delim ++OPAL_WRAPPER_EXTRA_CXXFLAGS!$OPAL_WRAPPER_EXTRA_CXXFLAGS$ac_delim ++OPAL_WRAPPER_EXTRA_LDFLAGS!$OPAL_WRAPPER_EXTRA_LDFLAGS$ac_delim ++OPAL_WRAPPER_EXTRA_LIBS!$OPAL_WRAPPER_EXTRA_LIBS$ac_delim ++OPAL_WRAPPER_EXTRA_INCLUDES!$OPAL_WRAPPER_EXTRA_INCLUDES$ac_delim ++ORTE_WRAPPER_EXTRA_CPPFLAGS!$ORTE_WRAPPER_EXTRA_CPPFLAGS$ac_delim ++ORTE_WRAPPER_EXTRA_CFLAGS!$ORTE_WRAPPER_EXTRA_CFLAGS$ac_delim ++ORTE_WRAPPER_EXTRA_CXXFLAGS!$ORTE_WRAPPER_EXTRA_CXXFLAGS$ac_delim ++ORTE_WRAPPER_EXTRA_LDFLAGS!$ORTE_WRAPPER_EXTRA_LDFLAGS$ac_delim ++ORTE_WRAPPER_EXTRA_LIBS!$ORTE_WRAPPER_EXTRA_LIBS$ac_delim ++ORTE_WRAPPER_EXTRA_INCLUDES!$ORTE_WRAPPER_EXTRA_INCLUDES$ac_delim ++OMPI_WRAPPER_EXTRA_CPPFLAGS!$OMPI_WRAPPER_EXTRA_CPPFLAGS$ac_delim ++OMPI_WRAPPER_EXTRA_CFLAGS!$OMPI_WRAPPER_EXTRA_CFLAGS$ac_delim ++OMPI_WRAPPER_EXTRA_CXXFLAGS!$OMPI_WRAPPER_EXTRA_CXXFLAGS$ac_delim ++OMPI_WRAPPER_EXTRA_FFLAGS!$OMPI_WRAPPER_EXTRA_FFLAGS$ac_delim ++OMPI_WRAPPER_EXTRA_FCFLAGS!$OMPI_WRAPPER_EXTRA_FCFLAGS$ac_delim ++OMPI_WRAPPER_EXTRA_LDFLAGS!$OMPI_WRAPPER_EXTRA_LDFLAGS$ac_delim ++OMPI_WRAPPER_EXTRA_LIBS!$OMPI_WRAPPER_EXTRA_LIBS$ac_delim ++OMPI_WRAPPER_EXTRA_INCLUDES!$OMPI_WRAPPER_EXTRA_INCLUDES$ac_delim ++OMPI_WRAPPER_CXX_LIB!$OMPI_WRAPPER_CXX_LIB$ac_delim ++OMPI_WRAPPER_CXX_REQUIRED_FILE!$OMPI_WRAPPER_CXX_REQUIRED_FILE$ac_delim ++OMPI_WRAPPER_F77_REQUIRED_FILE!$OMPI_WRAPPER_F77_REQUIRED_FILE$ac_delim ++OMPI_WRAPPER_F90_REQUIRED_FILE!$OMPI_WRAPPER_F90_REQUIRED_FILE$ac_delim ++OMPI_WRAPPER_INCLUDEDIR!$OMPI_WRAPPER_INCLUDEDIR$ac_delim ++OMPI_WRAPPER_LIBDIR!$OMPI_WRAPPER_LIBDIR$ac_delim ++WRAPPER_EXTRA_CFLAGS!$WRAPPER_EXTRA_CFLAGS$ac_delim ++WRAPPER_EXTRA_CXXFLAGS!$WRAPPER_EXTRA_CXXFLAGS$ac_delim ++WRAPPER_EXTRA_FFLAGS!$WRAPPER_EXTRA_FFLAGS$ac_delim ++WRAPPER_EXTRA_FCFLAGS!$WRAPPER_EXTRA_FCFLAGS$ac_delim ++WRAPPER_EXTRA_LDFLAGS!$WRAPPER_EXTRA_LDFLAGS$ac_delim ++WRAPPER_EXTRA_LIBS!$WRAPPER_EXTRA_LIBS$ac_delim ++LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim ++LTLIBOBJS!$LTLIBOBJS$ac_delim ++_ACEOF ++ ++ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then ++ break ++ elif $ac_last_try; then ++ { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 ++echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ ac_delim="$ac_delim!$ac_delim _$ac_delim!! " ++ fi ++done ++ ++ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` ++if test -n "$ac_eof"; then ++ ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ++ ac_eof=`expr $ac_eof + 1` ++fi ++ ++cat >>$CONFIG_STATUS <<_ACEOF ++cat >"\$tmp/subs-10.sed" <<\CEOF$ac_eof ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end ++_ACEOF ++sed ' ++s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g ++s/^/s,@/; s/!/@,|#_!!_#|/ ++:n ++t n ++s/'"$ac_delim"'$/,g/; t ++s/$/\\/; p ++N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ++' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF ++:end ++s/|#_!!_#|//g ++CEOF$ac_eof ++_ACEOF ++ ++ ++# VPATH may cause trouble with some makes, so we remove $(srcdir), ++# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and ++# trailing colons and then remove the whole line if VPATH becomes empty ++# (actually we leave an empty line to preserve line numbers). ++if test "x$srcdir" = x.; then ++ ac_vpsub='/^[ ]*VPATH[ ]*=/{ ++s/:*\$(srcdir):*/:/ ++s/:*\${srcdir}:*/:/ ++s/:*@srcdir@:*/:/ ++s/^\([^=]*=[ ]*\):*/\1/ ++s/:*$// ++s/^[^=]*=[ ]*$// ++}' ++fi ++ ++cat >>$CONFIG_STATUS <<\_ACEOF ++fi # test -n "$CONFIG_FILES" ++ ++ ++for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS ++do ++ case $ac_tag in ++ :[FHLC]) ac_mode=$ac_tag; continue;; ++ esac ++ case $ac_mode$ac_tag in ++ :[FHL]*:*);; ++ :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 ++echo "$as_me: error: Invalid tag $ac_tag." >&2;} ++ { (exit 1); exit 1; }; };; ++ :[FH]-) ac_tag=-:-;; ++ :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; ++ esac ++ ac_save_IFS=$IFS ++ IFS=: ++ set x $ac_tag ++ IFS=$ac_save_IFS ++ shift ++ ac_file=$1 ++ shift ++ ++ case $ac_mode in ++ :L) ac_source=$1;; ++ :[FH]) ++ ac_file_inputs= ++ for ac_f ++ do ++ case $ac_f in ++ -) ac_f="$tmp/stdin";; ++ *) # Look for the file first in the build tree, then in the source tree ++ # (if the path is not absolute). The absolute path cannot be DOS-style, ++ # because $ac_f cannot contain `:'. ++ test -f "$ac_f" || ++ case $ac_f in ++ [\\/$]*) false;; ++ *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; ++ esac || ++ { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 ++echo "$as_me: error: cannot find input file: $ac_f" >&2;} ++ { (exit 1); exit 1; }; };; ++ esac ++ ac_file_inputs="$ac_file_inputs $ac_f" ++ done ++ ++ # Let's still pretend it is `configure' which instantiates (i.e., don't ++ # use $as_me), people would be surprised to read: ++ # /* config.h. Generated by config.status. */ ++ configure_input="Generated from "`IFS=: ++ echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." ++ if test x"$ac_file" != x-; then ++ configure_input="$ac_file. $configure_input" ++ { echo "$as_me:$LINENO: creating $ac_file" >&5 ++echo "$as_me: creating $ac_file" >&6;} ++ fi ++ ++ case $ac_tag in ++ *:-:* | *:-) cat >"$tmp/stdin";; ++ esac ++ ;; ++ esac ++ ++ ac_dir=`$as_dirname -- "$ac_file" || ++$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$ac_file" : 'X\(//\)[^/]' \| \ ++ X"$ac_file" : 'X\(//\)$' \| \ ++ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$ac_file" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ { as_dir="$ac_dir" ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ac_builddir=. ++ ++case "$ac_dir" in ++.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; ++*) ++ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` ++ # A ".." for each directory in $ac_dir_suffix. ++ ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` ++ case $ac_top_builddir_sub in ++ "") ac_top_builddir_sub=. ac_top_build_prefix= ;; ++ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; ++ esac ;; ++esac ++ac_abs_top_builddir=$ac_pwd ++ac_abs_builddir=$ac_pwd$ac_dir_suffix ++# for backward compatibility: ++ac_top_builddir=$ac_top_build_prefix ++ ++case $srcdir in ++ .) # We are building in place. ++ ac_srcdir=. ++ ac_top_srcdir=$ac_top_builddir_sub ++ ac_abs_top_srcdir=$ac_pwd ;; ++ [\\/]* | ?:[\\/]* ) # Absolute name. ++ ac_srcdir=$srcdir$ac_dir_suffix; ++ ac_top_srcdir=$srcdir ++ ac_abs_top_srcdir=$srcdir ;; ++ *) # Relative name. ++ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ++ ac_top_srcdir=$ac_top_build_prefix$srcdir ++ ac_abs_top_srcdir=$ac_pwd/$srcdir ;; ++esac ++ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix ++ ++ ++ case $ac_mode in ++ :F) ++ # ++ # CONFIG_FILE ++ # ++ ++ case $INSTALL in ++ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; ++ *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; ++ esac ++ ac_MKDIR_P=$MKDIR_P ++ case $MKDIR_P in ++ [\\/$]* | ?:[\\/]* ) ;; ++ */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; ++ esac ++_ACEOF ++ ++cat >>$CONFIG_STATUS <<\_ACEOF ++# If the template does not know about datarootdir, expand it. ++# FIXME: This hack should be removed a few years after 2.60. ++ac_datarootdir_hack=; ac_datarootdir_seen= ++ ++case `sed -n '/datarootdir/ { ++ p ++ q ++} ++/@datadir@/p ++/@docdir@/p ++/@infodir@/p ++/@localedir@/p ++/@mandir@/p ++' $ac_file_inputs` in ++*datarootdir*) ac_datarootdir_seen=yes;; ++*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) ++ { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 ++echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} ++_ACEOF ++cat >>$CONFIG_STATUS <<_ACEOF ++ ac_datarootdir_hack=' ++ s&@datadir@&$datadir&g ++ s&@docdir@&$docdir&g ++ s&@infodir@&$infodir&g ++ s&@localedir@&$localedir&g ++ s&@mandir@&$mandir&g ++ s&\\\${datarootdir}&$datarootdir&g' ;; ++esac ++_ACEOF ++ ++# Neutralize VPATH when `$srcdir' = `.'. ++# Shell code in configure.ac might set extrasub. ++# FIXME: do we really want to maintain this feature? ++cat >>$CONFIG_STATUS <<_ACEOF ++ sed "$ac_vpsub ++$extrasub ++_ACEOF ++cat >>$CONFIG_STATUS <<\_ACEOF ++:t ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b ++s&@configure_input@&$configure_input&;t t ++s&@top_builddir@&$ac_top_builddir_sub&;t t ++s&@srcdir@&$ac_srcdir&;t t ++s&@abs_srcdir@&$ac_abs_srcdir&;t t ++s&@top_srcdir@&$ac_top_srcdir&;t t ++s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t ++s&@builddir@&$ac_builddir&;t t ++s&@abs_builddir@&$ac_abs_builddir&;t t ++s&@abs_top_builddir@&$ac_abs_top_builddir&;t t ++s&@INSTALL@&$ac_INSTALL&;t t ++s&@MKDIR_P@&$ac_MKDIR_P&;t t ++$ac_datarootdir_hack ++" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" | sed -f "$tmp/subs-5.sed" | sed -f "$tmp/subs-6.sed" | sed -f "$tmp/subs-7.sed" | sed -f "$tmp/subs-8.sed" | sed -f "$tmp/subs-9.sed" | sed -f "$tmp/subs-10.sed" >$tmp/out ++ ++test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && ++ { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && ++ { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && ++ { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' ++which seems to be undefined. Please make sure it is defined." >&5 ++echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' ++which seems to be undefined. Please make sure it is defined." >&2;} ++ ++ rm -f "$tmp/stdin" ++ case $ac_file in ++ -) cat "$tmp/out"; rm -f "$tmp/out";; ++ *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; ++ esac ++ ;; ++ :H) ++ # ++ # CONFIG_HEADER ++ # ++_ACEOF ++ ++# Transform confdefs.h into a sed script `conftest.defines', that ++# substitutes the proper values into config.h.in to produce config.h. ++rm -f conftest.defines conftest.tail ++# First, append a space to every undef/define line, to ease matching. ++echo 's/$/ /' >conftest.defines ++# Then, protect against being on the right side of a sed subst, or in ++# an unquoted here document, in config.status. If some macros were ++# called several times there might be several #defines for the same ++# symbol, which is useless. But do not sort them, since the last ++# AC_DEFINE must be honored. ++ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* ++# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where ++# NAME is the cpp macro being defined, VALUE is the value it is being given. ++# PARAMS is the parameter list in the macro definition--in most cases, it's ++# just an empty string. ++ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' ++ac_dB='\\)[ (].*,\\1define\\2' ++ac_dC=' ' ++ac_dD=' ,' ++ ++uniq confdefs.h | ++ sed -n ' ++ t rset ++ :rset ++ s/^[ ]*#[ ]*define[ ][ ]*// ++ t ok ++ d ++ :ok ++ s/[\\&,]/\\&/g ++ s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p ++ s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p ++ ' >>conftest.defines ++ ++# Remove the space that was appended to ease matching. ++# Then replace #undef with comments. This is necessary, for ++# example, in the case of _POSIX_SOURCE, which is predefined and required ++# on some systems where configure will not decide to define it. ++# (The regexp can be short, since the line contains either #define or #undef.) ++echo 's/ $// ++s,^[ #]*u.*,/* & */,' >>conftest.defines ++ ++# Break up conftest.defines: ++ac_max_sed_lines=50 ++ ++# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" ++# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" ++# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" ++# et cetera. ++ac_in='$ac_file_inputs' ++ac_out='"$tmp/out1"' ++ac_nxt='"$tmp/out2"' ++ ++while : ++do ++ # Write a here document: ++ cat >>$CONFIG_STATUS <<_ACEOF ++ # First, check the format of the line: ++ cat >"\$tmp/defines.sed" <<\\CEOF ++/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def ++/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def ++b ++:def ++_ACEOF ++ sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS ++ echo 'CEOF ++ sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS ++ ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in ++ sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail ++ grep . conftest.tail >/dev/null || break ++ rm -f conftest.defines ++ mv conftest.tail conftest.defines ++done ++rm -f conftest.defines conftest.tail ++ ++echo "ac_result=$ac_in" >>$CONFIG_STATUS ++cat >>$CONFIG_STATUS <<\_ACEOF ++ if test x"$ac_file" != x-; then ++ echo "/* $configure_input */" >"$tmp/config.h" ++ cat "$ac_result" >>"$tmp/config.h" ++ if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then ++ { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 ++echo "$as_me: $ac_file is unchanged" >&6;} ++ else ++ rm -f $ac_file ++ mv "$tmp/config.h" $ac_file ++ fi ++ else ++ echo "/* $configure_input */" ++ cat "$ac_result" ++ fi ++ rm -f "$tmp/out12" ++# Compute $ac_file's index in $config_headers. ++_am_arg=$ac_file ++_am_stamp_count=1 ++for _am_header in $config_headers :; do ++ case $_am_header in ++ $_am_arg | $_am_arg:* ) ++ break ;; ++ * ) ++ _am_stamp_count=`expr $_am_stamp_count + 1` ;; ++ esac ++done ++echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || ++$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$_am_arg" : 'X\(//\)[^/]' \| \ ++ X"$_am_arg" : 'X\(//\)$' \| \ ++ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$_am_arg" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'`/stamp-h$_am_stamp_count ++ ;; ++ ++ :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 ++echo "$as_me: executing $ac_file commands" >&6;} ++ ;; ++ esac ++ ++ ++ case $ac_file$ac_mode in ++ "ompi/tools/wrappers/ompi_wrapper_script":F) chmod +x ompi/tools/wrappers/ompi_wrapper_script ;; ++ "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do ++ # Strip MF so we end up with the name of the file. ++ mf=`echo "$mf" | sed -e 's/:.*$//'` ++ # Check whether this is an Automake generated Makefile or not. ++ # We used to match only the files named `Makefile.in', but ++ # some people rename them; so instead we look at the file content. ++ # Grep'ing the first line is not enough: some people post-process ++ # each Makefile.in and add a new line on top of each file to say so. ++ # Grep'ing the whole file is not good either: AIX grep has a line ++ # limit of 2048, but all sed's we know have understand at least 4000. ++ if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then ++ dirpart=`$as_dirname -- "$mf" || ++$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$mf" : 'X\(//\)[^/]' \| \ ++ X"$mf" : 'X\(//\)$' \| \ ++ X"$mf" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$mf" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ else ++ continue ++ fi ++ # Extract the definition of DEPDIR, am__include, and am__quote ++ # from the Makefile without running `make'. ++ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` ++ test -z "$DEPDIR" && continue ++ am__include=`sed -n 's/^am__include = //p' < "$mf"` ++ test -z "am__include" && continue ++ am__quote=`sed -n 's/^am__quote = //p' < "$mf"` ++ # When using ansi2knr, U may be empty or an underscore; expand it ++ U=`sed -n 's/^U = //p' < "$mf"` ++ # Find all dependency output files, they are included files with ++ # $(DEPDIR) in their names. We invoke sed twice because it is the ++ # simplest approach to changing $(DEPDIR) to its actual value in the ++ # expansion. ++ for file in `sed -n " ++ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ ++ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do ++ # Make sure the directory exists. ++ test -f "$dirpart/$file" && continue ++ fdir=`$as_dirname -- "$file" || ++$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$file" : 'X\(//\)[^/]' \| \ ++ X"$file" : 'X\(//\)$' \| \ ++ X"$file" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$file" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ { as_dir=$dirpart/$fdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { ++ as_dirs= ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } ++ s/.*/./; q'` ++ test -d "$as_dir" && break ++ done ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ # echo "creating $dirpart/$file" ++ echo '# dummy' > "$dirpart/$file" ++ done ++done ++ ;; ++ "libtool":C) ++ ++ # See if we are running on zsh, and set the options which allow our ++ # commands through without removal of \ escapes. ++ if test -n "${ZSH_VERSION+set}" ; then ++ setopt NO_GLOB_SUBST ++ fi ++ ++ cfgfile="${ofile}T" ++ trap "$RM \"$cfgfile\"; exit 1" 1 2 15 ++ $RM "$cfgfile" ++ ++ cat <<_LT_EOF >> "$cfgfile" ++#! $SHELL ++ ++# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. ++# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION ++# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: ++# NOTE: Changes made to this file will be lost: look at ltmain.sh. ++# ++# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, ++# 2006, 2007, 2008 Free Software Foundation, Inc. ++# Written by Gordon Matzigkeit, 1996 ++# ++# This file is part of GNU Libtool. ++# ++# GNU Libtool is free software; you can redistribute it and/or ++# modify it under the terms of the GNU General Public License as ++# published by the Free Software Foundation; either version 2 of ++# the License, or (at your option) any later version. ++# ++# As a special exception to the GNU General Public License, ++# if you distribute this file as part of a program or library that ++# is built using GNU Libtool, you may include this file under the ++# same distribution terms that you use for the rest of that program. ++# ++# GNU Libtool is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++# GNU General Public License for more details. ++# ++# You should have received a copy of the GNU General Public License ++# along with GNU Libtool; see the file COPYING. If not, a copy ++# can be downloaded from http://www.gnu.org/licenses/gpl.html, or ++# obtained by writing to the Free Software Foundation, Inc., ++# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ++ ++ ++# The names of the tagged configurations supported by this script. ++available_tags="CXX F77 FC " ++ ++# ### BEGIN LIBTOOL CONFIG ++ ++# Whether or not to build shared libraries. ++build_libtool_libs=$enable_shared ++ ++# Whether or not to build static libraries. ++build_old_libs=$enable_static ++ ++# A BSD- or MS-compatible name lister. ++NM=$lt_NM ++ ++# Which release of libtool.m4 was used? ++macro_version=$macro_version ++macro_revision=$macro_revision ++ ++# Assembler program. ++AS=$AS ++ ++# DLL creation program. ++DLLTOOL=$DLLTOOL ++ ++# Object dumper program. ++OBJDUMP=$OBJDUMP ++ ++# What type of objects to build. ++pic_mode=$pic_mode ++ ++# Whether or not to optimize for fast installation. ++fast_install=$enable_fast_install ++ ++# The host system. ++host_alias=$host_alias ++host=$host ++host_os=$host_os ++ ++# The build system. ++build_alias=$build_alias ++build=$build ++build_os=$build_os ++ ++# A sed program that does not truncate output. ++SED=$lt_SED ++ ++# Sed that helps us avoid accidentally triggering echo(1) options like -n. ++Xsed="\$SED -e 1s/^X//" ++ ++# A grep program that handles long lines. ++GREP=$lt_GREP ++ ++# An ERE matcher. ++EGREP=$lt_EGREP ++ ++# A literal string matcher. ++FGREP=$lt_FGREP ++ ++# Whether we need soft or hard links. ++LN_S=$lt_LN_S ++ ++# What is the maximum length of a command? ++max_cmd_len=$max_cmd_len ++ ++# Object file suffix (normally "o"). ++objext=$ac_objext ++ ++# Executable file suffix (normally ""). ++exeext=$exeext ++ ++# whether the shell understands "unset". ++lt_unset=$lt_unset ++ ++# turn spaces into newlines. ++SP2NL=$lt_lt_SP2NL ++ ++# turn newlines into spaces. ++NL2SP=$lt_lt_NL2SP ++ ++# How to create reloadable object files. ++reload_flag=$lt_reload_flag ++reload_cmds=$lt_reload_cmds ++ ++# Method to check whether dependent libraries are shared objects. ++deplibs_check_method=$lt_deplibs_check_method ++ ++# Command to use when deplibs_check_method == "file_magic". ++file_magic_cmd=$lt_file_magic_cmd ++ ++# The archiver. ++AR=$lt_AR ++AR_FLAGS=$lt_AR_FLAGS ++ ++# A symbol stripping program. ++STRIP=$lt_STRIP ++ ++# Commands used to install an old-style archive. ++RANLIB=$lt_RANLIB ++old_postinstall_cmds=$lt_old_postinstall_cmds ++old_postuninstall_cmds=$lt_old_postuninstall_cmds ++ ++# A C compiler. ++LTCC=$lt_CC ++ ++# LTCC compiler flags. ++LTCFLAGS=$lt_CFLAGS ++ ++# Take the output of nm and produce a listing of raw symbols and C names. ++global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe ++ ++# Transform the output of nm in a proper C declaration. ++global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl ++ ++# Transform the output of nm in a C name address pair. ++global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address ++ ++# Transform the output of nm in a C name address pair when lib prefix is needed. ++global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix ++ ++# The name of the directory that contains temporary libtool files. ++objdir=$objdir ++ ++# Shell to use when invoking shell scripts. ++SHELL=$lt_SHELL ++ ++# An echo program that does not interpret backslashes. ++ECHO=$lt_ECHO ++ ++# Used to examine libraries when file_magic_cmd begins with "file". ++MAGIC_CMD=$MAGIC_CMD ++ ++# Must we lock files when doing compilation? ++need_locks=$lt_need_locks ++ ++# Tool to manipulate archived DWARF debug symbol files on Mac OS X. ++DSYMUTIL=$lt_DSYMUTIL ++ ++# Tool to change global to local symbols on Mac OS X. ++NMEDIT=$lt_NMEDIT ++ ++# Tool to manipulate fat objects and archives on Mac OS X. ++LIPO=$lt_LIPO ++ ++# ldd/readelf like tool for Mach-O binaries on Mac OS X. ++OTOOL=$lt_OTOOL ++ ++# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. ++OTOOL64=$lt_OTOOL64 ++ ++# Old archive suffix (normally "a"). ++libext=$libext ++ ++# Shared library suffix (normally ".so"). ++shrext_cmds=$lt_shrext_cmds ++ ++# The commands to extract the exported symbol list from a shared archive. ++extract_expsyms_cmds=$lt_extract_expsyms_cmds ++ ++# Variables whose values should be saved in libtool wrapper scripts and ++# restored at link time. ++variables_saved_for_relink=$lt_variables_saved_for_relink ++ ++# Do we need the "lib" prefix for modules? ++need_lib_prefix=$need_lib_prefix ++ ++# Do we need a version for libraries? ++need_version=$need_version ++ ++# Library versioning type. ++version_type=$version_type ++ ++# Shared library runtime path variable. ++runpath_var=$runpath_var ++ ++# Shared library path variable. ++shlibpath_var=$shlibpath_var ++ ++# Is shlibpath searched before the hard-coded library search path? ++shlibpath_overrides_runpath=$shlibpath_overrides_runpath ++ ++# Format of library name prefix. ++libname_spec=$lt_libname_spec ++ ++# List of archive names. First name is the real one, the rest are links. ++# The last name is the one that the linker finds with -lNAME ++library_names_spec=$lt_library_names_spec ++ ++# The coded name of the library, if different from the real name. ++soname_spec=$lt_soname_spec ++ ++# Command to use after installation of a shared archive. ++postinstall_cmds=$lt_postinstall_cmds ++ ++# Command to use after uninstallation of a shared archive. ++postuninstall_cmds=$lt_postuninstall_cmds ++ ++# Commands used to finish a libtool library installation in a directory. ++finish_cmds=$lt_finish_cmds ++ ++# As "finish_cmds", except a single script fragment to be evaled but ++# not shown. ++finish_eval=$lt_finish_eval ++ ++# Whether we should hardcode library paths into libraries. ++hardcode_into_libs=$hardcode_into_libs ++ ++# Compile-time system search path for libraries. ++sys_lib_search_path_spec=$lt_sys_lib_search_path_spec ++ ++# Run-time system search path for libraries. ++sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec ++ ++# Whether dlopen is supported. ++dlopen_support=$enable_dlopen ++ ++# Whether dlopen of programs is supported. ++dlopen_self=$enable_dlopen_self ++ ++# Whether dlopen of statically linked programs is supported. ++dlopen_self_static=$enable_dlopen_self_static ++ ++# Commands to strip libraries. ++old_striplib=$lt_old_striplib ++striplib=$lt_striplib ++ ++ ++# The linker used to build libraries. ++LD=$lt_LD ++ ++# Commands used to build an old-style archive. ++old_archive_cmds=$lt_old_archive_cmds ++ ++# A language specific compiler. ++CC=$lt_compiler ++ ++# Is the compiler the GNU compiler? ++with_gcc=$GCC ++ ++# Compiler flag to turn off builtin functions. ++no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag ++ ++# How to pass a linker flag through the compiler. ++wl=$lt_lt_prog_compiler_wl ++ ++# Additional compiler flags for building library objects. ++pic_flag=$lt_lt_prog_compiler_pic ++ ++# Compiler flag to prevent dynamic linking. ++link_static_flag=$lt_lt_prog_compiler_static ++ ++# Does compiler simultaneously support -c and -o options? ++compiler_c_o=$lt_lt_cv_prog_compiler_c_o ++ ++# Whether or not to add -lc for building shared libraries. ++build_libtool_need_lc=$archive_cmds_need_lc ++ ++# Whether or not to disallow shared libs when runtime libs are static. ++allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes ++ ++# Compiler flag to allow reflexive dlopens. ++export_dynamic_flag_spec=$lt_export_dynamic_flag_spec ++ ++# Compiler flag to generate shared objects directly from archives. ++whole_archive_flag_spec=$lt_whole_archive_flag_spec ++ ++# Whether the compiler copes with passing no objects directly. ++compiler_needs_object=$lt_compiler_needs_object ++ ++# Create an old-style archive from a shared archive. ++old_archive_from_new_cmds=$lt_old_archive_from_new_cmds ++ ++# Create a temporary old-style archive to link instead of a shared archive. ++old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds ++ ++# Commands used to build a shared archive. ++archive_cmds=$lt_archive_cmds ++archive_expsym_cmds=$lt_archive_expsym_cmds ++ ++# Commands used to build a loadable module if different from building ++# a shared archive. ++module_cmds=$lt_module_cmds ++module_expsym_cmds=$lt_module_expsym_cmds ++ ++# Whether we are building with GNU ld or not. ++with_gnu_ld=$lt_with_gnu_ld ++ ++# Flag that allows shared libraries with undefined symbols to be built. ++allow_undefined_flag=$lt_allow_undefined_flag ++ ++# Flag that enforces no undefined symbols. ++no_undefined_flag=$lt_no_undefined_flag ++ ++# Flag to hardcode \$libdir into a binary during linking. ++# This must work even if \$libdir does not exist ++hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec ++ ++# If ld is used when linking, flag to hardcode \$libdir into a binary ++# during linking. This must work even if \$libdir does not exist. ++hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld ++ ++# Whether we need a single "-rpath" flag with a separated argument. ++hardcode_libdir_separator=$lt_hardcode_libdir_separator ++ ++# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes ++# DIR into the resulting binary. ++hardcode_direct=$hardcode_direct ++ ++# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes ++# DIR into the resulting binary and the resulting library dependency is ++# "absolute",i.e impossible to change by setting \${shlibpath_var} if the ++# library is relocated. ++hardcode_direct_absolute=$hardcode_direct_absolute ++ ++# Set to "yes" if using the -LDIR flag during linking hardcodes DIR ++# into the resulting binary. ++hardcode_minus_L=$hardcode_minus_L ++ ++# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR ++# into the resulting binary. ++hardcode_shlibpath_var=$hardcode_shlibpath_var ++ ++# Set to "yes" if building a shared library automatically hardcodes DIR ++# into the library and all subsequent libraries and executables linked ++# against it. ++hardcode_automatic=$hardcode_automatic ++ ++# Set to yes if linker adds runtime paths of dependent libraries ++# to runtime path list. ++inherit_rpath=$inherit_rpath ++ ++# Whether libtool must link a program against all its dependency libraries. ++link_all_deplibs=$link_all_deplibs ++ ++# Fix the shell variable \$srcfile for the compiler. ++fix_srcfile_path=$lt_fix_srcfile_path ++ ++# Set to "yes" if exported symbols are required. ++always_export_symbols=$always_export_symbols ++ ++# The commands to list exported symbols. ++export_symbols_cmds=$lt_export_symbols_cmds ++ ++# Symbols that should not be listed in the preloaded symbols. ++exclude_expsyms=$lt_exclude_expsyms ++ ++# Symbols that must always be exported. ++include_expsyms=$lt_include_expsyms ++ ++# Commands necessary for linking programs (against libraries) with templates. ++prelink_cmds=$lt_prelink_cmds ++ ++# Specify filename containing input files. ++file_list_spec=$lt_file_list_spec ++ ++# How to hardcode a shared library path into an executable. ++hardcode_action=$hardcode_action ++ ++# The directories searched by this compiler when creating a shared library. ++compiler_lib_search_dirs=$lt_compiler_lib_search_dirs ++ ++# Dependencies to place before and after the objects being linked to ++# create a shared library. ++predep_objects=$lt_predep_objects ++postdep_objects=$lt_postdep_objects ++predeps=$lt_predeps ++postdeps=$lt_postdeps ++ ++# The library search path used internally by the compiler when linking ++# a shared library. ++compiler_lib_search_path=$lt_compiler_lib_search_path ++ ++# ### END LIBTOOL CONFIG ++ ++_LT_EOF ++ ++ case $host_os in ++ aix3*) ++ cat <<\_LT_EOF >> "$cfgfile" ++# AIX sometimes has problems with the GCC collect2 program. For some ++# reason, if we set the COLLECT_NAMES environment variable, the problems ++# vanish in a puff of smoke. ++if test "X${COLLECT_NAMES+set}" != Xset; then ++ COLLECT_NAMES= ++ export COLLECT_NAMES ++fi ++_LT_EOF ++ ;; ++ esac ++ ++ ++ltmain="$ac_aux_dir/ltmain.sh" ++ ++ ++ # We use sed instead of cat because bash on DJGPP gets confused if ++ # if finds mixed CR/LF and LF-only lines. Since sed operates in ++ # text mode, it properly converts lines to CR/LF. This bash problem ++ # is reportedly fixed, but why not run on old versions too? ++ sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ ++ || (rm -f "$cfgfile"; exit 1) ++ ++ case $xsi_shell in ++ yes) ++ cat << \_LT_EOF >> "$cfgfile" ++ ++# func_dirname file append nondir_replacement ++# Compute the dirname of FILE. If nonempty, add APPEND to the result, ++# otherwise set result to NONDIR_REPLACEMENT. ++func_dirname () ++{ ++ case ${1} in ++ */*) func_dirname_result="${1%/*}${2}" ;; ++ * ) func_dirname_result="${3}" ;; ++ esac ++} ++ ++# func_basename file ++func_basename () ++{ ++ func_basename_result="${1##*/}" ++} ++ ++# func_dirname_and_basename file append nondir_replacement ++# perform func_basename and func_dirname in a single function ++# call: ++# dirname: Compute the dirname of FILE. If nonempty, ++# add APPEND to the result, otherwise set result ++# to NONDIR_REPLACEMENT. ++# value returned in "$func_dirname_result" ++# basename: Compute filename of FILE. ++# value retuned in "$func_basename_result" ++# Implementation must be kept synchronized with func_dirname ++# and func_basename. For efficiency, we do not delegate to ++# those functions but instead duplicate the functionality here. ++func_dirname_and_basename () ++{ ++ case ${1} in ++ */*) func_dirname_result="${1%/*}${2}" ;; ++ * ) func_dirname_result="${3}" ;; ++ esac ++ func_basename_result="${1##*/}" ++} ++ ++# func_stripname prefix suffix name ++# strip PREFIX and SUFFIX off of NAME. ++# PREFIX and SUFFIX must not contain globbing or regex special ++# characters, hashes, percent signs, but SUFFIX may contain a leading ++# dot (in which case that matches only a dot). ++func_stripname () ++{ ++ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are ++ # positional parameters, so assign one to ordinary parameter first. ++ func_stripname_result=${3} ++ func_stripname_result=${func_stripname_result#"${1}"} ++ func_stripname_result=${func_stripname_result%"${2}"} ++} ++ ++# func_opt_split ++func_opt_split () ++{ ++ func_opt_split_opt=${1%%=*} ++ func_opt_split_arg=${1#*=} ++} ++ ++# func_lo2o object ++func_lo2o () ++{ ++ case ${1} in ++ *.lo) func_lo2o_result=${1%.lo}.${objext} ;; ++ *) func_lo2o_result=${1} ;; ++ esac ++} ++ ++# func_xform libobj-or-source ++func_xform () ++{ ++ func_xform_result=${1%.*}.lo ++} ++ ++# func_arith arithmetic-term... ++func_arith () ++{ ++ func_arith_result=$(( $* )) ++} ++ ++# func_len string ++# STRING may not start with a hyphen. ++func_len () ++{ ++ func_len_result=${#1} ++} ++ ++_LT_EOF ++ ;; ++ *) # Bourne compatible functions. ++ cat << \_LT_EOF >> "$cfgfile" ++ ++# func_dirname file append nondir_replacement ++# Compute the dirname of FILE. If nonempty, add APPEND to the result, ++# otherwise set result to NONDIR_REPLACEMENT. ++func_dirname () ++{ ++ # Extract subdirectory from the argument. ++ func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` ++ if test "X$func_dirname_result" = "X${1}"; then ++ func_dirname_result="${3}" ++ else ++ func_dirname_result="$func_dirname_result${2}" ++ fi ++} ++ ++# func_basename file ++func_basename () ++{ ++ func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` ++} ++ ++ ++# func_stripname prefix suffix name ++# strip PREFIX and SUFFIX off of NAME. ++# PREFIX and SUFFIX must not contain globbing or regex special ++# characters, hashes, percent signs, but SUFFIX may contain a leading ++# dot (in which case that matches only a dot). ++# func_strip_suffix prefix name ++func_stripname () ++{ ++ case ${2} in ++ .*) func_stripname_result=`$ECHO "X${3}" \ ++ | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; ++ *) func_stripname_result=`$ECHO "X${3}" \ ++ | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; ++ esac ++} ++ ++# sed scripts: ++my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' ++my_sed_long_arg='1s/^-[^=]*=//' ++ ++# func_opt_split ++func_opt_split () ++{ ++ func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` ++ func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` ++} ++ ++# func_lo2o object ++func_lo2o () ++{ ++ func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` ++} ++ ++# func_xform libobj-or-source ++func_xform () ++{ ++ func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` ++} ++ ++# func_arith arithmetic-term... ++func_arith () ++{ ++ func_arith_result=`expr "$@"` ++} ++ ++# func_len string ++# STRING may not start with a hyphen. ++func_len () ++{ ++ func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` ++} ++ ++_LT_EOF ++esac ++ ++case $lt_shell_append in ++ yes) ++ cat << \_LT_EOF >> "$cfgfile" ++ ++# func_append var value ++# Append VALUE to the end of shell variable VAR. ++func_append () ++{ ++ eval "$1+=\$2" ++} ++_LT_EOF ++ ;; ++ *) ++ cat << \_LT_EOF >> "$cfgfile" ++ ++# func_append var value ++# Append VALUE to the end of shell variable VAR. ++func_append () ++{ ++ eval "$1=\$$1\$2" ++} ++ ++_LT_EOF ++ ;; ++ esac ++ ++ ++ sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ ++ || (rm -f "$cfgfile"; exit 1) ++ ++ mv -f "$cfgfile" "$ofile" || ++ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") ++ chmod +x "$ofile" ++ ++ ++ cat <<_LT_EOF >> "$ofile" ++ ++# ### BEGIN LIBTOOL TAG CONFIG: CXX ++ ++# The linker used to build libraries. ++LD=$lt_LD_CXX ++ ++# Commands used to build an old-style archive. ++old_archive_cmds=$lt_old_archive_cmds_CXX ++ ++# A language specific compiler. ++CC=$lt_compiler_CXX ++ ++# Is the compiler the GNU compiler? ++with_gcc=$GCC_CXX ++ ++# Compiler flag to turn off builtin functions. ++no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX ++ ++# How to pass a linker flag through the compiler. ++wl=$lt_lt_prog_compiler_wl_CXX ++ ++# Additional compiler flags for building library objects. ++pic_flag=$lt_lt_prog_compiler_pic_CXX ++ ++# Compiler flag to prevent dynamic linking. ++link_static_flag=$lt_lt_prog_compiler_static_CXX ++ ++# Does compiler simultaneously support -c and -o options? ++compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX ++ ++# Whether or not to add -lc for building shared libraries. ++build_libtool_need_lc=$archive_cmds_need_lc_CXX ++ ++# Whether or not to disallow shared libs when runtime libs are static. ++allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX ++ ++# Compiler flag to allow reflexive dlopens. ++export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX ++ ++# Compiler flag to generate shared objects directly from archives. ++whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX ++ ++# Whether the compiler copes with passing no objects directly. ++compiler_needs_object=$lt_compiler_needs_object_CXX ++ ++# Create an old-style archive from a shared archive. ++old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX ++ ++# Create a temporary old-style archive to link instead of a shared archive. ++old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX ++ ++# Commands used to build a shared archive. ++archive_cmds=$lt_archive_cmds_CXX ++archive_expsym_cmds=$lt_archive_expsym_cmds_CXX ++ ++# Commands used to build a loadable module if different from building ++# a shared archive. ++module_cmds=$lt_module_cmds_CXX ++module_expsym_cmds=$lt_module_expsym_cmds_CXX ++ ++# Whether we are building with GNU ld or not. ++with_gnu_ld=$lt_with_gnu_ld_CXX ++ ++# Flag that allows shared libraries with undefined symbols to be built. ++allow_undefined_flag=$lt_allow_undefined_flag_CXX ++ ++# Flag that enforces no undefined symbols. ++no_undefined_flag=$lt_no_undefined_flag_CXX ++ ++# Flag to hardcode \$libdir into a binary during linking. ++# This must work even if \$libdir does not exist ++hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX ++ ++# If ld is used when linking, flag to hardcode \$libdir into a binary ++# during linking. This must work even if \$libdir does not exist. ++hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX ++ ++# Whether we need a single "-rpath" flag with a separated argument. ++hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX ++ ++# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes ++# DIR into the resulting binary. ++hardcode_direct=$hardcode_direct_CXX ++ ++# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes ++# DIR into the resulting binary and the resulting library dependency is ++# "absolute",i.e impossible to change by setting \${shlibpath_var} if the ++# library is relocated. ++hardcode_direct_absolute=$hardcode_direct_absolute_CXX ++ ++# Set to "yes" if using the -LDIR flag during linking hardcodes DIR ++# into the resulting binary. ++hardcode_minus_L=$hardcode_minus_L_CXX ++ ++# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR ++# into the resulting binary. ++hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX ++ ++# Set to "yes" if building a shared library automatically hardcodes DIR ++# into the library and all subsequent libraries and executables linked ++# against it. ++hardcode_automatic=$hardcode_automatic_CXX ++ ++# Set to yes if linker adds runtime paths of dependent libraries ++# to runtime path list. ++inherit_rpath=$inherit_rpath_CXX ++ ++# Whether libtool must link a program against all its dependency libraries. ++link_all_deplibs=$link_all_deplibs_CXX ++ ++# Fix the shell variable \$srcfile for the compiler. ++fix_srcfile_path=$lt_fix_srcfile_path_CXX ++ ++# Set to "yes" if exported symbols are required. ++always_export_symbols=$always_export_symbols_CXX ++ ++# The commands to list exported symbols. ++export_symbols_cmds=$lt_export_symbols_cmds_CXX ++ ++# Symbols that should not be listed in the preloaded symbols. ++exclude_expsyms=$lt_exclude_expsyms_CXX ++ ++# Symbols that must always be exported. ++include_expsyms=$lt_include_expsyms_CXX ++ ++# Commands necessary for linking programs (against libraries) with templates. ++prelink_cmds=$lt_prelink_cmds_CXX ++ ++# Specify filename containing input files. ++file_list_spec=$lt_file_list_spec_CXX ++ ++# How to hardcode a shared library path into an executable. ++hardcode_action=$hardcode_action_CXX ++ ++# The directories searched by this compiler when creating a shared library. ++compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX ++ ++# Dependencies to place before and after the objects being linked to ++# create a shared library. ++predep_objects=$lt_predep_objects_CXX ++postdep_objects=$lt_postdep_objects_CXX ++predeps=$lt_predeps_CXX ++postdeps=$lt_postdeps_CXX ++ ++# The library search path used internally by the compiler when linking ++# a shared library. ++compiler_lib_search_path=$lt_compiler_lib_search_path_CXX ++ ++# ### END LIBTOOL TAG CONFIG: CXX ++_LT_EOF ++ ++ ++ cat <<_LT_EOF >> "$ofile" ++ ++# ### BEGIN LIBTOOL TAG CONFIG: F77 ++ ++# The linker used to build libraries. ++LD=$lt_LD_F77 ++ ++# Commands used to build an old-style archive. ++old_archive_cmds=$lt_old_archive_cmds_F77 ++ ++# A language specific compiler. ++CC=$lt_compiler_F77 ++ ++# Is the compiler the GNU compiler? ++with_gcc=$GCC_F77 ++ ++# Compiler flag to turn off builtin functions. ++no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 ++ ++# How to pass a linker flag through the compiler. ++wl=$lt_lt_prog_compiler_wl_F77 ++ ++# Additional compiler flags for building library objects. ++pic_flag=$lt_lt_prog_compiler_pic_F77 ++ ++# Compiler flag to prevent dynamic linking. ++link_static_flag=$lt_lt_prog_compiler_static_F77 ++ ++# Does compiler simultaneously support -c and -o options? ++compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 ++ ++# Whether or not to add -lc for building shared libraries. ++build_libtool_need_lc=$archive_cmds_need_lc_F77 ++ ++# Whether or not to disallow shared libs when runtime libs are static. ++allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 ++ ++# Compiler flag to allow reflexive dlopens. ++export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 ++ ++# Compiler flag to generate shared objects directly from archives. ++whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 ++ ++# Whether the compiler copes with passing no objects directly. ++compiler_needs_object=$lt_compiler_needs_object_F77 ++ ++# Create an old-style archive from a shared archive. ++old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 ++ ++# Create a temporary old-style archive to link instead of a shared archive. ++old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 ++ ++# Commands used to build a shared archive. ++archive_cmds=$lt_archive_cmds_F77 ++archive_expsym_cmds=$lt_archive_expsym_cmds_F77 ++ ++# Commands used to build a loadable module if different from building ++# a shared archive. ++module_cmds=$lt_module_cmds_F77 ++module_expsym_cmds=$lt_module_expsym_cmds_F77 ++ ++# Whether we are building with GNU ld or not. ++with_gnu_ld=$lt_with_gnu_ld_F77 ++ ++# Flag that allows shared libraries with undefined symbols to be built. ++allow_undefined_flag=$lt_allow_undefined_flag_F77 ++ ++# Flag that enforces no undefined symbols. ++no_undefined_flag=$lt_no_undefined_flag_F77 ++ ++# Flag to hardcode \$libdir into a binary during linking. ++# This must work even if \$libdir does not exist ++hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 ++ ++# If ld is used when linking, flag to hardcode \$libdir into a binary ++# during linking. This must work even if \$libdir does not exist. ++hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 ++ ++# Whether we need a single "-rpath" flag with a separated argument. ++hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 ++ ++# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes ++# DIR into the resulting binary. ++hardcode_direct=$hardcode_direct_F77 ++ ++# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes ++# DIR into the resulting binary and the resulting library dependency is ++# "absolute",i.e impossible to change by setting \${shlibpath_var} if the ++# library is relocated. ++hardcode_direct_absolute=$hardcode_direct_absolute_F77 ++ ++# Set to "yes" if using the -LDIR flag during linking hardcodes DIR ++# into the resulting binary. ++hardcode_minus_L=$hardcode_minus_L_F77 ++ ++# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR ++# into the resulting binary. ++hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 ++ ++# Set to "yes" if building a shared library automatically hardcodes DIR ++# into the library and all subsequent libraries and executables linked ++# against it. ++hardcode_automatic=$hardcode_automatic_F77 ++ ++# Set to yes if linker adds runtime paths of dependent libraries ++# to runtime path list. ++inherit_rpath=$inherit_rpath_F77 ++ ++# Whether libtool must link a program against all its dependency libraries. ++link_all_deplibs=$link_all_deplibs_F77 ++ ++# Fix the shell variable \$srcfile for the compiler. ++fix_srcfile_path=$lt_fix_srcfile_path_F77 ++ ++# Set to "yes" if exported symbols are required. ++always_export_symbols=$always_export_symbols_F77 ++ ++# The commands to list exported symbols. ++export_symbols_cmds=$lt_export_symbols_cmds_F77 ++ ++# Symbols that should not be listed in the preloaded symbols. ++exclude_expsyms=$lt_exclude_expsyms_F77 ++ ++# Symbols that must always be exported. ++include_expsyms=$lt_include_expsyms_F77 ++ ++# Commands necessary for linking programs (against libraries) with templates. ++prelink_cmds=$lt_prelink_cmds_F77 ++ ++# Specify filename containing input files. ++file_list_spec=$lt_file_list_spec_F77 ++ ++# How to hardcode a shared library path into an executable. ++hardcode_action=$hardcode_action_F77 ++ ++# The directories searched by this compiler when creating a shared library. ++compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 ++ ++# Dependencies to place before and after the objects being linked to ++# create a shared library. ++predep_objects=$lt_predep_objects_F77 ++postdep_objects=$lt_postdep_objects_F77 ++predeps=$lt_predeps_F77 ++postdeps=$lt_postdeps_F77 ++ ++# The library search path used internally by the compiler when linking ++# a shared library. ++compiler_lib_search_path=$lt_compiler_lib_search_path_F77 ++ ++# ### END LIBTOOL TAG CONFIG: F77 ++_LT_EOF ++ ++ ++ cat <<_LT_EOF >> "$ofile" ++ ++# ### BEGIN LIBTOOL TAG CONFIG: FC ++ ++# The linker used to build libraries. ++LD=$lt_LD_FC ++ ++# Commands used to build an old-style archive. ++old_archive_cmds=$lt_old_archive_cmds_FC ++ ++# A language specific compiler. ++CC=$lt_compiler_FC ++ ++# Is the compiler the GNU compiler? ++with_gcc=$GCC_FC ++ ++# Compiler flag to turn off builtin functions. ++no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC ++ ++# How to pass a linker flag through the compiler. ++wl=$lt_lt_prog_compiler_wl_FC ++ ++# Additional compiler flags for building library objects. ++pic_flag=$lt_lt_prog_compiler_pic_FC ++ ++# Compiler flag to prevent dynamic linking. ++link_static_flag=$lt_lt_prog_compiler_static_FC ++ ++# Does compiler simultaneously support -c and -o options? ++compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC ++ ++# Whether or not to add -lc for building shared libraries. ++build_libtool_need_lc=$archive_cmds_need_lc_FC ++ ++# Whether or not to disallow shared libs when runtime libs are static. ++allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC ++ ++# Compiler flag to allow reflexive dlopens. ++export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC ++ ++# Compiler flag to generate shared objects directly from archives. ++whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC ++ ++# Whether the compiler copes with passing no objects directly. ++compiler_needs_object=$lt_compiler_needs_object_FC ++ ++# Create an old-style archive from a shared archive. ++old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC ++ ++# Create a temporary old-style archive to link instead of a shared archive. ++old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC ++ ++# Commands used to build a shared archive. ++archive_cmds=$lt_archive_cmds_FC ++archive_expsym_cmds=$lt_archive_expsym_cmds_FC ++ ++# Commands used to build a loadable module if different from building ++# a shared archive. ++module_cmds=$lt_module_cmds_FC ++module_expsym_cmds=$lt_module_expsym_cmds_FC ++ ++# Whether we are building with GNU ld or not. ++with_gnu_ld=$lt_with_gnu_ld_FC ++ ++# Flag that allows shared libraries with undefined symbols to be built. ++allow_undefined_flag=$lt_allow_undefined_flag_FC ++ ++# Flag that enforces no undefined symbols. ++no_undefined_flag=$lt_no_undefined_flag_FC ++ ++# Flag to hardcode \$libdir into a binary during linking. ++# This must work even if \$libdir does not exist ++hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC ++ ++# If ld is used when linking, flag to hardcode \$libdir into a binary ++# during linking. This must work even if \$libdir does not exist. ++hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC ++ ++# Whether we need a single "-rpath" flag with a separated argument. ++hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC ++ ++# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes ++# DIR into the resulting binary. ++hardcode_direct=$hardcode_direct_FC ++ ++# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes ++# DIR into the resulting binary and the resulting library dependency is ++# "absolute",i.e impossible to change by setting \${shlibpath_var} if the ++# library is relocated. ++hardcode_direct_absolute=$hardcode_direct_absolute_FC ++ ++# Set to "yes" if using the -LDIR flag during linking hardcodes DIR ++# into the resulting binary. ++hardcode_minus_L=$hardcode_minus_L_FC ++ ++# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR ++# into the resulting binary. ++hardcode_shlibpath_var=$hardcode_shlibpath_var_FC ++ ++# Set to "yes" if building a shared library automatically hardcodes DIR ++# into the library and all subsequent libraries and executables linked ++# against it. ++hardcode_automatic=$hardcode_automatic_FC ++ ++# Set to yes if linker adds runtime paths of dependent libraries ++# to runtime path list. ++inherit_rpath=$inherit_rpath_FC ++ ++# Whether libtool must link a program against all its dependency libraries. ++link_all_deplibs=$link_all_deplibs_FC ++ ++# Fix the shell variable \$srcfile for the compiler. ++fix_srcfile_path=$lt_fix_srcfile_path_FC ++ ++# Set to "yes" if exported symbols are required. ++always_export_symbols=$always_export_symbols_FC ++ ++# The commands to list exported symbols. ++export_symbols_cmds=$lt_export_symbols_cmds_FC ++ ++# Symbols that should not be listed in the preloaded symbols. ++exclude_expsyms=$lt_exclude_expsyms_FC ++ ++# Symbols that must always be exported. ++include_expsyms=$lt_include_expsyms_FC ++ ++# Commands necessary for linking programs (against libraries) with templates. ++prelink_cmds=$lt_prelink_cmds_FC ++ ++# Specify filename containing input files. ++file_list_spec=$lt_file_list_spec_FC ++ ++# How to hardcode a shared library path into an executable. ++hardcode_action=$hardcode_action_FC ++ ++# The directories searched by this compiler when creating a shared library. ++compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC ++ ++# Dependencies to place before and after the objects being linked to ++# create a shared library. ++predep_objects=$lt_predep_objects_FC ++postdep_objects=$lt_postdep_objects_FC ++predeps=$lt_predeps_FC ++postdeps=$lt_postdeps_FC ++ ++# The library search path used internally by the compiler when linking ++# a shared library. ++compiler_lib_search_path=$lt_compiler_lib_search_path_FC ++ ++# ### END LIBTOOL TAG CONFIG: FC ++_LT_EOF ++ ++ ;; ++ ++ esac ++done # for ac_tag ++ ++ ++{ (exit 0); exit 0; } ++_ACEOF ++chmod +x $CONFIG_STATUS ++ac_clean_files=$ac_clean_files_save ++ ++ ++# configure is writing to config.log, and then calls config.status. ++# config.status does its own redirection, appending to config.log. ++# Unfortunately, on DOS this fails, as config.log is still kept open ++# by configure, so config.status won't be able to write to it; its ++# output is simply discarded. So we exec the FD to /dev/null, ++# effectively closing config.log, so it can be properly (re)opened and ++# appended to by config.status. When coming back to configure, we ++# need to make the FD available again. ++if test "$no_create" != yes; then ++ ac_cs_success=: ++ ac_config_status_args= ++ test "$silent" = yes && ++ ac_config_status_args="$ac_config_status_args --quiet" ++ exec 5>/dev/null ++ $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false ++ exec 5>>config.log ++ # Use ||, not &&, to avoid exiting from the if with $? = 1, which ++ # would make configure fail if this is the last instruction. ++ $ac_cs_success || { (exit 1); exit 1; } ++fi ++ +--- /dev/null ++++ b/autom4te.cache/requests +@@ -0,0 +1,608 @@ ++# This file was generated by Autom4te Mon Aug 11 20:59:21 PDT 2008. ++# It contains the lists of macros which have been traced. ++# It can be safely removed. ++ ++@request = ( ++ bless( [ ++ '0', ++ 1, ++ [ ++ '/usr/share/autoconf' ++ ], ++ [ ++ '/usr/share/autoconf/autoconf/autoconf.m4f', ++ '/usr/share/aclocal-1.10/amversion.m4', ++ '/usr/share/aclocal-1.10/as.m4', ++ '/usr/share/aclocal-1.10/auxdir.m4', ++ '/usr/share/aclocal-1.10/cond.m4', ++ '/usr/share/aclocal-1.10/depend.m4', ++ '/usr/share/aclocal-1.10/depout.m4', ++ '/usr/share/aclocal-1.10/header.m4', ++ '/usr/share/aclocal-1.10/init.m4', ++ '/usr/share/aclocal-1.10/install-sh.m4', ++ '/usr/share/aclocal-1.10/lead-dot.m4', ++ '/usr/share/aclocal-1.10/lex.m4', ++ '/usr/share/aclocal-1.10/make.m4', ++ '/usr/share/aclocal-1.10/minuso.m4', ++ '/usr/share/aclocal-1.10/missing.m4', ++ '/usr/share/aclocal-1.10/mkdirp.m4', ++ '/usr/share/aclocal-1.10/options.m4', ++ '/usr/share/aclocal-1.10/runlog.m4', ++ '/usr/share/aclocal-1.10/sanity.m4', ++ '/usr/share/aclocal-1.10/strip.m4', ++ '/usr/share/aclocal-1.10/substnot.m4', ++ '/usr/share/aclocal-1.10/tar.m4', ++ 'config/argz.m4', ++ 'config/c_get_alignment.m4', ++ 'config/c_weak_symbols.m4', ++ 'config/cxx_find_exception_flags.m4', ++ 'config/cxx_find_template_parameters.m4', ++ 'config/cxx_find_template_repository.m4', ++ 'config/cxx_have_exceptions.m4', ++ 'config/f77_check.m4', ++ 'config/f77_check_logical_array.m4', ++ 'config/f77_check_real16_c_equiv.m4', ++ 'config/f77_check_type.m4', ++ 'config/f77_find_ext_symbol_convention.m4', ++ 'config/f77_get_alignment.m4', ++ 'config/f77_get_fortran_handle_max.m4', ++ 'config/f77_get_sizeof.m4', ++ 'config/f77_get_value_true.m4', ++ 'config/f90_check.m4', ++ 'config/f90_check_type.m4', ++ 'config/f90_find_module_include_flag.m4', ++ 'config/f90_get_int_kind.m4', ++ 'config/f90_get_sizeof.m4', ++ 'config/libtool.m4', ++ 'config/ltdl.m4', ++ 'config/ltoptions.m4', ++ 'config/ltsugar.m4', ++ 'config/ltversion.m4', ++ 'config/lt~obsolete.m4', ++ 'config/ompi_case_sensitive_fs_setup.m4', ++ 'config/ompi_check_alps.m4', ++ 'config/ompi_check_attributes.m4', ++ 'config/ompi_check_broken_qsort.m4', ++ 'config/ompi_check_compiler_works.m4', ++ 'config/ompi_check_func_lib.m4', ++ 'config/ompi_check_gm.m4', ++ 'config/ompi_check_icc.m4', ++ 'config/ompi_check_ident.m4', ++ 'config/ompi_check_loadleveler.m4', ++ 'config/ompi_check_lsf.m4', ++ 'config/ompi_check_mx.m4', ++ 'config/ompi_check_openib.m4', ++ 'config/ompi_check_optflags.m4', ++ 'config/ompi_check_package.m4', ++ 'config/ompi_check_portals.m4', ++ 'config/ompi_check_ps.m4', ++ 'config/ompi_check_psm.m4', ++ 'config/ompi_check_pthread_pids.m4', ++ 'config/ompi_check_sge.m4', ++ 'config/ompi_check_slurm.m4', ++ 'config/ompi_check_tm.m4', ++ 'config/ompi_check_udapl.m4', ++ 'config/ompi_check_vendor.m4', ++ 'config/ompi_check_visibility.m4', ++ 'config/ompi_check_xgrid.m4', ++ 'config/ompi_config_asm.m4', ++ 'config/ompi_config_pthreads.m4', ++ 'config/ompi_config_solaris_threads.m4', ++ 'config/ompi_config_subdir.m4', ++ 'config/ompi_config_subdir_args.m4', ++ 'config/ompi_config_threads.m4', ++ 'config/ompi_configure_options.m4', ++ 'config/ompi_contrib.m4', ++ 'config/ompi_find_type.m4', ++ 'config/ompi_functions.m4', ++ 'config/ompi_get_libtool_linker_flags.m4', ++ 'config/ompi_interix.m4', ++ 'config/ompi_lang_link_with_c.m4', ++ 'config/ompi_load_platform.m4', ++ 'config/ompi_make_stripped_flags.m4', ++ 'config/ompi_mca.m4', ++ 'config/ompi_save_version.m4', ++ 'config/ompi_setup_cc.m4', ++ 'config/ompi_setup_cxx.m4', ++ 'config/ompi_setup_f77.m4', ++ 'config/ompi_setup_f90.m4', ++ 'config/ompi_setup_libevent.m4', ++ 'config/ompi_setup_wrappers.m4', ++ 'config/ompi_try_assemble.m4', ++ 'acinclude.m4', ++ 'configure.ac' ++ ], ++ { ++ 'OMPI_SETUP_WRAPPER_INIT' => 1, ++ 'AM_ENABLE_STATIC' => 1, ++ 'AC_LIBTOOL_LANG_RC_CONFIG' => 1, ++ 'OMPI_INTL_POSIX_THREADS_LIBS_C' => 1, ++ 'MCA_memory_CONFIG' => 1, ++ 'PLPA_SET_SYMBOL_PREFIX' => 1, ++ 'OMPI_C_WEAK_SYMBOLS' => 1, ++ '_LT_AC_LANG_CXX_CONFIG' => 1, ++ 'AC_PROG_LIBTOOL' => 1, ++ 'OMPI_CHECK_INLINE_CXX_DEC' => 1, ++ 'OMPI_CHECK_ASM_GNU_STACKEXEC' => 1, ++ 'OMPI_INTL_POSIX_THREADS_PLAIN_FC' => 1, ++ 'OMPI_CHECK_INLINE_C_GCC' => 1, ++ 'OMPI_CASE_SENSITIVE_FS_SETUP' => 1, ++ '_m4_warn' => 1, ++ 'OMPI_CONFIG_THREADS' => 1, ++ 'OMPI_CXX_FIND_TEMPLATE_PARAMETERS' => 1, ++ 'LTOBSOLETE_VERSION' => 1, ++ 'MCA_ras_tm_CONFIG' => 1, ++ 'AM_SANITY_CHECK' => 1, ++ 'AC_LIBTOOL_LANG_GCJ_CONFIG' => 1, ++ 'LTSUGAR_VERSION' => 1, ++ '_LT_PROG_LTMAIN' => 1, ++ 'LT_SYS_SYMBOL_USCORE' => 1, ++ 'AC_LIBTOOL_GCJ' => 1, ++ 'MCA_ras_alps_CONFIG' => 1, ++ 'MCA_memchecker_CONFIG' => 1, ++ 'LT_FUNC_DLSYM_USCORE' => 1, ++ 'MCA_memory_mallopt_CONFIG' => 1, ++ 'AC_LIBTOOL_CONFIG' => 1, ++ 'OMPI_CHECK_INLINE_CXX_GCC' => 1, ++ 'OMPI_CHECK_ICC_VARARGS' => 1, ++ 'MCA_ess_env_CONFIG' => 1, ++ 'AC_LTDL_DLLIB' => 1, ++ '_AM_AUTOCONF_VERSION' => 1, ++ 'AM_DISABLE_SHARED' => 1, ++ 'OMPI_CONFIG_SOLARIS_THREADS' => 1, ++ 'OMPI_CHECK_POWERPC_REG' => 1, ++ 'MCA_memchecker_valgrind_COMPILE_MODE' => 1, ++ '_LT_AC_LANG_CXX' => 1, ++ 'OMPI_CHECK_ASM_PROC' => 1, ++ 'OMPI_F77_GET_SIZEOF' => 1, ++ 'MCA_btl_mx_CONFIG' => 1, ++ 'OMPI_LOG_FILE' => 1, ++ 'AC_PROG_NM' => 1, ++ 'OMPI_CHECK_BROKEN_QSORT' => 1, ++ 'OMPI_WHICH' => 1, ++ 'OMPI_CONFIG_SOLARIS_THREADS_C' => 1, ++ 'AC_PROG_LD_GNU' => 1, ++ 'AC_ENABLE_FAST_INSTALL' => 1, ++ 'MCA_common_portals_CONFIG' => 1, ++ 'MCA_crs_self_CONFIG' => 1, ++ 'OMPI_CHECK_ASM_LABEL_SUFFIX' => 1, ++ 'MCA_CONFIGURE_NO_CONFIG_COMPONENT' => 1, ++ '_OMPI_CXX_FIND_TEMPLATE_REPOSITORY' => 1, ++ 'LTDL_CONVENIENCE' => 1, ++ 'OMPI_F90_CHECK' => 1, ++ '_OMPI_START_SETUP_CC' => 1, ++ 'AC_LIBTOOL_PROG_CC_C_O' => 1, ++ 'MCA_paffinity_darwin_CONFIG' => 1, ++ 'MCA_COMPONENT_BUILD_CHECK' => 1, ++ 'OMPI_MCA' => 1, ++ 'OMPI_CXX_FIND_TEMPLATE_REPOSITORY' => 1, ++ 'MCA_io_CONFIG' => 1, ++ 'LT_SUPPORTED_TAG' => 1, ++ 'OMPI_CHECK_INLINE_C_XLC' => 1, ++ 'AC_DEFUN_ONCE' => 1, ++ 'MCA_backtrace_darwin_CONFIG' => 1, ++ 'MCA_btl_openib_POST_CONFIG' => 1, ++ 'MCA_backtrace_none_COMPILE_MODE' => 1, ++ 'OMPI_F77_FIND_EXT_SYMBOL_CONVENTION' => 1, ++ '_LT_AC_LANG_GCJ' => 1, ++ 'OMPI_VAR_SCOPE_POP' => 1, ++ 'AC_LTDL_OBJDIR' => 1, ++ 'OMPI_CHECK_FUNC_LIB' => 1, ++ '_LT_AC_PROG_ECHO_BACKSLASH' => 1, ++ 'OMPI_VAR_SCOPE_PUSH' => 1, ++ 'OMPI_LOG_COMMAND' => 1, ++ '_LT_AC_TRY_DLOPEN_SELF' => 1, ++ 'LT_AC_PROG_SED' => 1, ++ 'LTDL_INSTALLABLE' => 1, ++ '_LT_AC_LANG_GCJ_CONFIG' => 1, ++ 'AC_ENABLE_SHARED' => 1, ++ 'MCA_memchecker_valgrind_CONFIG' => 1, ++ 'OMPI_F90_GET_INT_KIND' => 1, ++ '_OMPI_ATTRIBUTE_FAIL_SEARCH' => 1, ++ '_LT_AC_TAGVAR' => 1, ++ 'MCA_mtl_mx_CONFIG' => 1, ++ 'AM_PROG_CC_C_O' => 1, ++ 'MCA_memory_ptmalloc2_POST_CONFIG' => 1, ++ '_OMPI_CHECK_PACKAGE_HEADER' => 1, ++ 'OMPI_CHECK_ASM_GLOBAL' => 1, ++ '_OMPI_CHECK_ASM_TYPE' => 1, ++ 'OMPI_LOAD_PLATFORM' => 1, ++ 'LT_LIB_DLLOAD' => 1, ++ 'MCA_snapc_full_CONFIG' => 1, ++ 'OMPI_CHECK_OPTFLAGS' => 1, ++ 'm4_include' => 1, ++ 'OMPI_INTL_POSIX_THREADS_PLAIN_C' => 1, ++ 'MCA_ess_singleton_CONFIG' => 1, ++ 'MCA_timer_windows_COMPILE_MODE' => 1, ++ 'OMPI_CHECK_MX' => 1, ++ '_AC_AM_CONFIG_HEADER_HOOK' => 1, ++ 'OMPI_CHECK_IDENT' => 1, ++ 'OMPI_PS_FLAVOR_CHECK' => 1, ++ 'MCA_ess_lsf_CONFIG' => 1, ++ 'MCA_grpcomm_cnos_CONFIG' => 1, ++ 'AM_MAKE_INCLUDE' => 1, ++ 'LT_CMD_MAX_LEN' => 1, ++ '_LT_AC_TAGCONFIG' => 1, ++ 'OMPI_INTL_POSIX_THREADS_LIBS' => 1, ++ 'MCA_ess_slurm_CONFIG' => 1, ++ 'OMPI_FIND_TYPE' => 1, ++ 'OMPI_SETUP_F90' => 1, ++ '_LT_COMPILER_BOILERPLATE' => 1, ++ 'AC_LIBTOOL_SETUP' => 1, ++ 'AC_PROG_LD_RELOAD_FLAG' => 1, ++ '_OMPI_START_SETUP_CXX' => 1, ++ 'OMPI_MCA_MAKE_DIR_LIST' => 1, ++ 'AC_LTDL_DLSYM_USCORE' => 1, ++ 'MCA_PROCESS_DEAD_COMPONENT' => 1, ++ 'AM_MISSING_HAS_RUN' => 1, ++ 'OMPI_CXX_HAVE_EXCEPTIONS' => 1, ++ 'OMPI_CHECK_ASM_TEXT' => 1, ++ 'LT_CONFIG_LTDL_DIR' => 1, ++ 'PLPA_DISABLE_EXECUTABLES' => 1, ++ 'AC_LIBTOOL_DLOPEN_SELF' => 1, ++ 'LT_OUTPUT' => 1, ++ 'OMPI_SETUP_CC' => 1, ++ 'MCA_CONFIGURE_M4_CONFIG_COMPONENT' => 1, ++ 'MCA_timer_altix_CONFIG' => 1, ++ 'AC_LIBTOOL_PROG_LD_SHLIBS' => 1, ++ 'OMPI_INTL_SOLARIS_TRY_LINK_F77' => 1, ++ 'MCA_paffinity_solaris_CONFIG' => 1, ++ 'OMPI_CONFIGURE_SETUP' => 1, ++ 'MCA_ras_gridengine_CONFIG' => 1, ++ 'MCA_backtrace_execinfo_CONFIG' => 1, ++ 'AC_WITH_LTDL' => 1, ++ 'AC_LIBTOOL_LINKER_OPTION' => 1, ++ 'MCA_CONFIGURE_PROJECT' => 1, ++ 'MCA_ess_alps_CONFIG' => 1, ++ 'LT_SYS_DLOPEN_SELF' => 1, ++ 'LT_AC_PROG_GCJ' => 1, ++ 'MCA_plm_xgrid_CONFIG' => 1, ++ 'AM_DISABLE_STATIC' => 1, ++ 'OMPI_F90_CHECK_TYPE' => 1, ++ 'AM_CONFIG_HEADER' => 1, ++ '_AC_PROG_LIBTOOL' => 1, ++ 'MCA_memcpy_CONFIG' => 1, ++ 'MCA_crs_blcr_CONFIG' => 1, ++ 'MCA_crcp_bkmrk_CONFIG' => 1, ++ '_AM_IF_OPTION' => 1, ++ 'PLPA_INCLUDED' => 1, ++ 'AC_PATH_TOOL_PREFIX' => 1, ++ 'MCA_paffinity_linux_CONFIG' => 1, ++ 'AC_LIBTOOL_F77' => 1, ++ 'm4_pattern_allow' => 1, ++ 'AM_SET_LEADING_DOT' => 1, ++ 'MCA_installdirs_env_COMPILE_MODE' => 1, ++ 'MCA_ess_tool_CONFIG' => 1, ++ 'OMPI_CHECK_GRIDENGINE' => 1, ++ 'OMPI_F77_GET_FORTRAN_HANDLE_MAX' => 1, ++ 'OMPI_CHECK_ASM_SIZE' => 1, ++ '_LT_AC_SYS_COMPILER' => 1, ++ 'OMPI_CHECK_SPARCV8PLUS' => 1, ++ 'AM_PROG_NM' => 1, ++ 'MCA_ess_cnos_CONFIG' => 1, ++ 'MCA_mtl_portals_CONFIG' => 1, ++ 'MCA_common_mx_CONFIG' => 1, ++ 'MCA_notifier_syslog_CONFIG' => 1, ++ 'OMPI_F77_CHECK_LOGICAL_ARRAY' => 1, ++ 'OMPI_LANG_LINK_WITH_C' => 1, ++ 'AC_LIBLTDL_CONVENIENCE' => 1, ++ 'MCA_timer_aix_COMPILE_MODE' => 1, ++ 'AC_DEPLIBS_CHECK_METHOD' => 1, ++ 'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1, ++ 'AC_LTDL_ENABLE_INSTALL' => 1, ++ 'OMPI_CHECK_INLINE_CXX_XLC' => 1, ++ 'MCA_plm_tm_CONFIG' => 1, ++ 'MCA_paffinity_posix_CONFIG' => 1, ++ 'OMPI_BASIC_SETUP' => 1, ++ 'AC_LIBTOOL_SYS_DYNAMIC_LINKER' => 1, ++ 'MCA_io_romio_POST_CONFIG' => 1, ++ 'OMPI_CXX_FIND_EXCEPTION_FLAGS' => 1, ++ 'MCA_timer_altix_COMPILE_MODE' => 1, ++ 'OMPI_CHECK_ELAN' => 1, ++ 'OMPI_C_COMPILER_VENDOR' => 1, ++ 'OMPI_CONFIG_POSIX_THREADS' => 1, ++ 'AM_INIT_AUTOMAKE' => 1, ++ 'MCA_memory_ptmalloc2_CONFIG' => 1, ++ 'AC_DISABLE_STATIC' => 1, ++ 'LT_PATH_NM' => 1, ++ 'OMPI_IFDEF_IFELSE' => 1, ++ 'AC_LTDL_SHLIBEXT' => 1, ++ '_OMPI_PROG_CC' => 1, ++ 'OMPI_CHECK_INLINE_C_DEC' => 1, ++ 'OMPI_ASM_FIND_FILE' => 1, ++ '_LT_AC_LOCK' => 1, ++ '_LT_AC_LANG_RC_CONFIG' => 1, ++ 'OMPI_F77_GET_VALUE_TRUE' => 1, ++ 'MCA_PROCESS_COMPONENT' => 1, ++ 'AC_LTDL_SHLIBPATH' => 1, ++ 'MCA_timer_catamount_CONFIG' => 1, ++ 'AM_PROG_AS' => 1, ++ 'AM_AUX_DIR_EXPAND' => 1, ++ 'OMPI_CHECK_PACKAGE' => 1, ++ 'OMPI_CHECK_TM' => 1, ++ 'AC_LIBTOOL_PROG_COMPILER_NO_RTTI' => 1, ++ '_OMPI_CHECK_MX_MAPPER' => 1, ++ '_LT_COMPILER_OPTION' => 1, ++ '_AM_SET_OPTIONS' => 1, ++ 'MCA_memory_malloc_solaris_CONFIG' => 1, ++ '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, ++ '_OMPI_CHECK_PACKAGE_LIB' => 1, ++ 'AC_LIBTOOL_SYS_OLD_ARCHIVE' => 1, ++ 'OMPI_INTL_POSIX_THREADS_LIBS_CXX' => 1, ++ 'LT_PATH_LD' => 1, ++ 'AC_CHECK_LIBM' => 1, ++ '_AM_MANGLE_OPTION' => 1, ++ 'OMPI_F90_GET_SIZEOF' => 1, ++ 'AC_LTDL_SYMBOL_USCORE' => 1, ++ 'AM_SET_DEPDIR' => 1, ++ 'OMPI_CHECK_ASM_ALIGN_LOG' => 1, ++ '_LT_CC_BASENAME' => 1, ++ 'OMPI_F77_CHECK_REAL16_C_EQUIV' => 1, ++ 'MCA_paffinity_linux_POST_CONFIG' => 1, ++ 'MCA_btl_gm_CONFIG' => 1, ++ '_LT_LIBOBJ' => 1, ++ 'OMPI_CXX_COMPILER_VENDOR' => 1, ++ '_OMPI_PROG_CXX' => 1, ++ 'MCA_memory_ptmalloc2_COMPILE_MODE' => 1, ++ 'MCA_oob_tcp_CONFIG' => 1, ++ 'OMPI_CHECK_GM' => 1, ++ '_LT_AC_SHELL_INIT' => 1, ++ 'AC_DEFUN' => 1, ++ '_OMPI_CHECK_XGRID' => 1, ++ 'AM_PROG_MKDIR_P' => 1, ++ 'OMPI_CHECK_TM_LIBS_FLAGS' => 1, ++ '_OMPI_CHECK_IDENT' => 1, ++ 'AM_AUTOMAKE_VERSION' => 1, ++ 'MCA_backtrace_none_CONFIG' => 1, ++ 'OMPI_INTL_POSIX_THREADS_LIBS_FC' => 1, ++ '_OMPI_C_WEAK_SYMBOLS' => 1, ++ 'AM_MISSING_PROG' => 1, ++ 'OMPI_CHECK_PSM' => 1, ++ 'OMPI_INTL_POSIX_THREADS_PLAIN' => 1, ++ 'OMPI_EVAL_ARG' => 1, ++ 'AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH' => 1, ++ 'PLPA_DO_AM_CONDITIONALS' => 1, ++ '_LT_AC_LANG_C_CONFIG' => 1, ++ 'AM_PROG_INSTALL_STRIP' => 1, ++ 'AC_LIBTOOL_OBJDIR' => 1, ++ 'gl_FUNC_ARGZ' => 1, ++ 'MCA_CONFIGURE_FRAMEWORK' => 1, ++ 'AC_LIBTOOL_PROG_COMPILER_PIC' => 1, ++ 'AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE' => 1, ++ '_LT_AC_CHECK_DLFCN' => 1, ++ 'LT_LIB_M' => 1, ++ 'MCA_installdirs_env_CONFIG' => 1, ++ 'MCA_timer_solaris_CONFIG' => 1, ++ '_AM_PROG_TAR' => 1, ++ 'MCA_timer_solaris_COMPILE_MODE' => 1, ++ 'MCA_odls_default_CONFIG' => 1, ++ 'MCA_timer_windows_CONFIG' => 1, ++ 'OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS_CXX' => 1, ++ 'LT_SYS_DLOPEN_DEPLIBS' => 1, ++ 'OMPI_INTL_POSIX_THREADS_PLAIN_CXX' => 1, ++ '_LT_AC_LANG_F77' => 1, ++ '_OMPI_CHECK_SPECIFIC_ATTRIBUTE' => 1, ++ '_AM_SUBST_NOTMAKE' => 1, ++ 'OMPI_CHECK_LOADLEVELER' => 1, ++ '_LTDL_SETUP' => 1, ++ 'AM_PROG_LIBTOOL' => 1, ++ 'AM_PROG_LD' => 1, ++ '_LT_AC_FILE_LTDLL_C' => 1, ++ 'AC_LIB_LTDL' => 1, ++ 'MCA_grpcomm_basic_CONFIG' => 1, ++ 'MCA_timer_darwin_CONFIG' => 1, ++ 'MCA_ras_lsf_CONFIG' => 1, ++ 'MCA_ras_slurm_CONFIG' => 1, ++ 'AU_DEFUN' => 1, ++ 'OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS' => 1, ++ 'AC_LIBTOOL_DLOPEN' => 1, ++ 'MCA_ras_loadleveler_CONFIG' => 1, ++ 'AC_PROG_LD' => 1, ++ 'OMPI_F77_GET_ALIGNMENT' => 1, ++ 'AC_LIBTOOL_FC' => 1, ++ 'MCA_btl_udapl_CONFIG' => 1, ++ '_AM_SET_OPTION' => 1, ++ 'AC_LTDL_PREOPEN' => 1, ++ 'OMPI_CONFIG_ASM' => 1, ++ '_LT_LINKER_BOILERPLATE' => 1, ++ 'AC_LIBTOOL_LANG_CXX_CONFIG' => 1, ++ 'MCA_plm_alps_CONFIG' => 1, ++ 'MCA_timer_CONFIG' => 1, ++ 'MCA_timer_catamount_COMPILE_MODE' => 1, ++ 'gl_PREREQ_ARGZ' => 1, ++ 'MCA_CONFIGURE_ALL_CONFIG_COMPONENTS' => 1, ++ 'OMPI_CHECK_POWERPC_64BIT' => 1, ++ 'OMPI_CHECK_LINKER_FLAGS' => 1, ++ 'MCA_ess_portals_utcp_CONFIG' => 1, ++ 'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, ++ 'LT_PROG_RC' => 1, ++ 'LT_SYS_MODULE_EXT' => 1, ++ 'OMPI_CHECK_XGRID' => 1, ++ 'MCA_COMPONENT_COMPILE_MODE' => 1, ++ 'MCA_plm_rsh_CONFIG' => 1, ++ 'OMPI_CHECK_SLURM' => 1, ++ '_PLPA_INIT' => 1, ++ 'MCA_installdirs_config_COMPILE_MODE' => 1, ++ 'MCA_paffinity_windows_CONFIG' => 1, ++ 'OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS_C' => 1, ++ '_LT_PATH_TOOL_PREFIX' => 1, ++ '_PLPA_INTERNAL_SETUP' => 1, ++ 'OMPI_CHECK_ASM_LSYM' => 1, ++ 'AC_LIBTOOL_RC' => 1, ++ 'MCA_NO_CONFIG_CONFIG_FILES' => 1, ++ 'AC_DISABLE_FAST_INSTALL' => 1, ++ 'OMPI_F77_CHECK_TYPE' => 1, ++ '_LT_AC_SYS_LIBPATH_AIX' => 1, ++ 'include' => 1, ++ 'AM_ENABLE_SHARED' => 1, ++ 'OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS_FC' => 1, ++ 'MCA_installdirs_config_CONFIG' => 1, ++ 'OMPI_TRY_ASSEMBLE' => 1, ++ '_OMPI_CHECK_ASM_GSYM' => 1, ++ 'AC_LIBTOOL_SYS_HARD_LINK_LOCKS' => 1, ++ 'AC_ENABLE_STATIC' => 1, ++ 'MCA_backtrace_darwin_COMPILE_MODE' => 1, ++ 'AC_LIBTOOL_LANG_F77_CONFIG' => 1, ++ 'AM_CONDITIONAL' => 1, ++ 'MCA_backtrace_printstack_CONFIG' => 1, ++ 'OMPI_SETUP_CXX' => 1, ++ 'LTVERSION_VERSION' => 1, ++ 'LTDL_INIT' => 1, ++ 'AM_PROG_INSTALL_SH' => 1, ++ 'AC_PROG_EGREP' => 1, ++ '_OMPI_CHECK_COMPILER_VENDOR' => 1, ++ 'OMPI_MAKE_STRIPPED_FLAGS' => 1, ++ 'AC_PATH_MAGIC' => 1, ++ 'AC_LTDL_SYSSEARCHPATH' => 1, ++ 'm4_pattern_forbid' => 1, ++ '_LT_LINKER_OPTION' => 1, ++ 'OMPI_INTL_F90_F77_INTERACTION' => 1, ++ 'AC_LIBTOOL_COMPILER_OPTION' => 1, ++ 'MCA_plm_lsf_CONFIG' => 1, ++ 'AC_DISABLE_SHARED' => 1, ++ 'AC_LIBTOOL_WIN32_DLL' => 1, ++ 'OMPI_F77_CHECK' => 1, ++ 'MCA_ess_hnp_CONFIG' => 1, ++ 'OMPI_CHECK_ASM_GSYM' => 1, ++ 'OMPI_CHECK_ALPS' => 1, ++ 'LT_LANG' => 1, ++ 'LT_SYS_DLSEARCH_PATH' => 1, ++ 'MCA_mtl_psm_CONFIG' => 1, ++ 'OMPI_IF_IFELSE' => 1, ++ 'OMPI_INTERIX' => 1, ++ 'OMPI_CONFIGURE_OPTIONS' => 1, ++ 'OMPI_CHECK_COMPILER_WORKS' => 1, ++ 'OMPI_CONTRIB' => 1, ++ 'MCA_memory_mallopt_COMPILE_MODE' => 1, ++ 'MCA_timer_linux_CONFIG' => 1, ++ 'MCA_backtrace_execinfo_COMPILE_MODE' => 1, ++ 'MCA_rml_ftrm_CONFIG' => 1, ++ 'MCA_SETUP_DIRECT_CALL' => 1, ++ 'LT_AC_PROG_RC' => 1, ++ 'AC_LIBTOOL_CXX' => 1, ++ 'LT_INIT' => 1, ++ 'OMPI_CONFIG_SOLARIS_THREADS_CXX' => 1, ++ 'MCA_plm_slurm_CONFIG' => 1, ++ 'MCA_timer_linux_COMPILE_MODE' => 1, ++ 'MCA_btl_portals_CONFIG' => 1, ++ 'AM_DEP_TRACK' => 1, ++ 'OMPI_CHECK_ASM_TYPE' => 1, ++ 'PLPA_STANDALONE' => 1, ++ 'LT_AC_PROG_EGREP' => 1, ++ '_AM_DEPENDENCIES' => 1, ++ 'OMPI_C_GET_ALIGNMENT' => 1, ++ 'AC_LIBTOOL_LANG_C_CONFIG' => 1, ++ 'OMPI_CHECK_LSF' => 1, ++ 'LTOPTIONS_VERSION' => 1, ++ 'OMPI_SAVE_VERSION' => 1, ++ 'MCA_timer_darwin_COMPILE_MODE' => 1, ++ 'OMPI_CHECK_PTHREAD_PIDS' => 1, ++ 'MCA_io_romio_CONFIG' => 1, ++ 'AC_LIBLTDL_INSTALLABLE' => 1, ++ 'OMPI_LOG_MSG' => 1, ++ 'MCA_backtrace_printstack_COMPILE_MODE' => 1, ++ 'MCA_maffinity_libnuma_CONFIG' => 1, ++ 'LT_PROG_GCJ' => 1, ++ 'MCA_btl_ofud_CONFIG' => 1, ++ 'OMPI_CONFIG_SOLARIS_THREADS_FC' => 1, ++ 'MCA_pml_crcpw_CONFIG' => 1, ++ 'OMPI_CHECK_VISIBILITY' => 1, ++ 'OMPI_F77_MAKE_C_FUNCTION' => 1, ++ 'OMPI_CONFIG_SUBDIR_ARGS' => 1, ++ 'OMPI_CHECK_PORTALS' => 1, ++ 'PLPA_ENABLE_EXECUTABLES' => 1, ++ 'MCA_grpcomm_bad_CONFIG' => 1, ++ 'MCA_btl_elan_CONFIG' => 1, ++ 'OMPI_INTL_PTHREAD_TRY_LINK' => 1, ++ 'PLPA_INIT' => 1, ++ '_PLPA_INIT_COMPAT' => 1, ++ 'OMPI_UNIQ' => 1, ++ 'MCA_btl_tcp_CONFIG' => 1, ++ '_OMPI_CONTRIB_CONFIGURE' => 1, ++ 'MCA_btl_openib_CONFIG' => 1, ++ 'LT_SYS_MODULE_PATH' => 1, ++ 'MCA_pml_v_CONFIG' => 1, ++ 'OMPI_CHECK_ATTRIBUTES' => 1, ++ 'AC_LIBTOOL_POSTDEP_PREDEP' => 1, ++ 'LT_WITH_LTDL' => 1, ++ 'OMPI_SETUP_WRAPPER_FINAL' => 1, ++ 'OMPI_F90_FIND_MODULE_INCLUDE_FLAG' => 1, ++ '_LT_AC_LANG_F77_CONFIG' => 1, ++ 'MCA_timer_aix_CONFIG' => 1, ++ '_OMPI_CHECK_GM_CONFIG' => 1, ++ 'AM_RUN_LOG' => 1, ++ 'OMPI_SETUP_F77' => 1, ++ 'AC_LIBTOOL_PICMODE' => 1, ++ 'AC_LTDL_SYS_DLOPEN_DEPLIBS' => 1, ++ 'AM_PROG_LEX' => 1, ++ '_OMPI_CHECK_ASM_LSYM' => 1, ++ 'AC_LIBTOOL_SYS_LIB_STRIP' => 1, ++ 'OMPI_CHECK_OPENIB' => 1, ++ 'AC_LIBTOOL_SYS_MAX_CMD_LEN' => 1, ++ 'MCA_memory_malloc_solaris_COMPILE_MODE' => 1, ++ 'OMPI_INTL_SOLARIS_TRY_LINK' => 1, ++ 'OMPI_CONFIG_SUBDIR' => 1, ++ 'OMPI_CHECK_UDAPL' => 1, ++ 'OMPI_INTL_PTHREAD_TRY_LINK_F77' => 1, ++ 'OMPI_SETUP_LIBEVENT' => 1 ++ } ++ ], 'Autom4te::Request' ), ++ bless( [ ++ '1', ++ 1, ++ [ ++ '/usr/share/autoconf' ++ ], ++ [ ++ '/usr/share/autoconf/autoconf/autoconf.m4f', ++ 'aclocal.m4', ++ 'configure.ac' ++ ], ++ { ++ '_LT_AC_TAGCONFIG' => 1, ++ 'AM_PROG_F77_C_O' => 1, ++ 'AC_INIT' => 1, ++ 'm4_pattern_forbid' => 1, ++ 'AC_CANONICAL_TARGET' => 1, ++ 'AC_SUBST' => 1, ++ 'AC_CONFIG_LIBOBJ_DIR' => 1, ++ 'AC_FC_SRCEXT' => 1, ++ 'AC_CANONICAL_HOST' => 1, ++ 'AC_PROG_LIBTOOL' => 1, ++ 'AM_INIT_AUTOMAKE' => 1, ++ 'AC_CONFIG_SUBDIRS' => 1, ++ 'AM_AUTOMAKE_VERSION' => 1, ++ 'LT_CONFIG_LTDL_DIR' => 1, ++ 'AC_REQUIRE_AUX_FILE' => 1, ++ 'AC_CONFIG_LINKS' => 1, ++ 'm4_sinclude' => 1, ++ 'LT_SUPPORTED_TAG' => 1, ++ 'AM_MAINTAINER_MODE' => 1, ++ 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, ++ '_m4_warn' => 1, ++ 'AM_PROG_CXX_C_O' => 1, ++ 'AM_ENABLE_MULTILIB' => 1, ++ 'AC_CONFIG_FILES' => 1, ++ 'include' => 1, ++ 'LT_INIT' => 1, ++ 'AM_GNU_GETTEXT' => 1, ++ 'AC_LIBSOURCE' => 1, ++ 'AM_PROG_FC_C_O' => 1, ++ 'AC_CANONICAL_BUILD' => 1, ++ 'AC_FC_FREEFORM' => 1, ++ 'AH_OUTPUT' => 1, ++ '_AM_SUBST_NOTMAKE' => 1, ++ 'AC_CONFIG_AUX_DIR' => 1, ++ 'sinclude' => 1, ++ 'AM_PROG_CC_C_O' => 1, ++ 'm4_pattern_allow' => 1, ++ 'AC_CANONICAL_SYSTEM' => 1, ++ 'AM_CONDITIONAL' => 1, ++ 'AC_CONFIG_HEADERS' => 1, ++ 'AC_DEFINE_TRACE_LITERAL' => 1, ++ 'm4_include' => 1, ++ 'AC_SUBST_TRACE' => 1 ++ } ++ ], 'Autom4te::Request' ) ++ ); ++ +--- /dev/null ++++ b/autom4te.cache/traces.0 +@@ -0,0 +1,27378 @@ ++m4trace:/usr/share/aclocal-1.10/amversion.m4:14: -1- AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.10' ++dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to ++dnl require some minimum version. Point them to the right macro. ++m4_if([$1], [1.10.1], [], ++ [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ++]) ++m4trace:/usr/share/aclocal-1.10/amversion.m4:33: -1- AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.10.1])dnl ++m4_ifndef([AC_AUTOCONF_VERSION], ++ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl ++_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)]) ++m4trace:/usr/share/aclocal-1.10/as.m4:13: -1- AC_DEFUN([AM_PROG_AS], [# By default we simply use the C compiler to build assembly code. ++AC_REQUIRE([AC_PROG_CC]) ++test "${CCAS+set}" = set || CCAS=$CC ++test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS ++AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)]) ++AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)]) ++_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl ++]) ++m4trace:/usr/share/aclocal-1.10/auxdir.m4:47: -1- AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. ++AC_PREREQ([2.50])dnl ++# expand $ac_aux_dir to an absolute path ++am_aux_dir=`cd $ac_aux_dir && pwd` ++]) ++m4trace:/usr/share/aclocal-1.10/cond.m4:15: -1- AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ++ ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], ++ [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl ++AC_SUBST([$1_TRUE])dnl ++AC_SUBST([$1_FALSE])dnl ++_AM_SUBST_NOTMAKE([$1_TRUE])dnl ++_AM_SUBST_NOTMAKE([$1_FALSE])dnl ++if $2; then ++ $1_TRUE= ++ $1_FALSE='#' ++else ++ $1_TRUE='#' ++ $1_FALSE= ++fi ++AC_CONFIG_COMMANDS_PRE( ++[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then ++ AC_MSG_ERROR([[conditional "$1" was never defined. ++Usually this means the macro was only invoked conditionally.]]) ++fi])]) ++m4trace:/usr/share/aclocal-1.10/depend.m4:28: -1- AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl ++AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl ++AC_REQUIRE([AM_MAKE_INCLUDE])dnl ++AC_REQUIRE([AM_DEP_TRACK])dnl ++ ++ifelse([$1], CC, [depcc="$CC" am_compiler_list=], ++ [$1], CXX, [depcc="$CXX" am_compiler_list=], ++ [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], ++ [$1], UPC, [depcc="$UPC" am_compiler_list=], ++ [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], ++ [depcc="$$1" am_compiler_list=]) ++ ++AC_CACHE_CHECK([dependency style of $depcc], ++ [am_cv_$1_dependencies_compiler_type], ++[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then ++ # We make a subdir and do the tests there. Otherwise we can end up ++ # making bogus files that we don't know about and never remove. For ++ # instance it was reported that on HP-UX the gcc test will end up ++ # making a dummy file named `D' -- because `-MD' means `put the output ++ # in D'. ++ mkdir conftest.dir ++ # Copy depcomp to subdir because otherwise we won't find it if we're ++ # using a relative directory. ++ cp "$am_depcomp" conftest.dir ++ cd conftest.dir ++ # We will build objects and dependencies in a subdirectory because ++ # it helps to detect inapplicable dependency modes. For instance ++ # both Tru64's cc and ICC support -MD to output dependencies as a ++ # side effect of compilation, but ICC will put the dependencies in ++ # the current directory while Tru64 will put them in the object ++ # directory. ++ mkdir sub ++ ++ am_cv_$1_dependencies_compiler_type=none ++ if test "$am_compiler_list" = ""; then ++ am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` ++ fi ++ for depmode in $am_compiler_list; do ++ # Setup a source with many dependencies, because some compilers ++ # like to wrap large dependency lists on column 80 (with \), and ++ # we should not choose a depcomp mode which is confused by this. ++ # ++ # We need to recreate these files for each test, as the compiler may ++ # overwrite some of them when testing with obscure command lines. ++ # This happens at least with the AIX C compiler. ++ : > sub/conftest.c ++ for i in 1 2 3 4 5 6; do ++ echo '#include "conftst'$i'.h"' >> sub/conftest.c ++ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with ++ # Solaris 8's {/usr,}/bin/sh. ++ touch sub/conftst$i.h ++ done ++ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf ++ ++ case $depmode in ++ nosideeffect) ++ # after this tag, mechanisms are not by side-effect, so they'll ++ # only be used when explicitly requested ++ if test "x$enable_dependency_tracking" = xyes; then ++ continue ++ else ++ break ++ fi ++ ;; ++ none) break ;; ++ esac ++ # We check with `-c' and `-o' for the sake of the "dashmstdout" ++ # mode. It turns out that the SunPro C++ compiler does not properly ++ # handle `-M -o', and we need to detect this. ++ if depmode=$depmode \ ++ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ ++ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ ++ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ ++ >/dev/null 2>conftest.err && ++ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ++ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then ++ # icc doesn't choke on unknown options, it will just issue warnings ++ # or remarks (even with -Werror). So we grep stderr for any message ++ # that says an option was ignored or not supported. ++ # When given -MP, icc 7.0 and 7.1 complain thusly: ++ # icc: Command line warning: ignoring option '-M'; no argument required ++ # The diagnosis changed in icc 8.0: ++ # icc: Command line remark: option '-MP' not supported ++ if (grep 'ignoring option' conftest.err || ++ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else ++ am_cv_$1_dependencies_compiler_type=$depmode ++ break ++ fi ++ fi ++ done ++ ++ cd .. ++ rm -rf conftest.dir ++else ++ am_cv_$1_dependencies_compiler_type=none ++fi ++]) ++AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) ++AM_CONDITIONAL([am__fastdep$1], [ ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ++]) ++m4trace:/usr/share/aclocal-1.10/depend.m4:139: -1- AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl ++AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ++]) ++m4trace:/usr/share/aclocal-1.10/depend.m4:147: -1- AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, ++[ --disable-dependency-tracking speeds up one-time build ++ --enable-dependency-tracking do not reject slow dependency extractors]) ++if test "x$enable_dependency_tracking" != xno; then ++ am_depcomp="$ac_aux_dir/depcomp" ++ AMDEPBACKSLASH='\' ++fi ++AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) ++AC_SUBST([AMDEPBACKSLASH])dnl ++_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl ++]) ++m4trace:/usr/share/aclocal-1.10/depout.m4:14: -1- AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [for mf in $CONFIG_FILES; do ++ # Strip MF so we end up with the name of the file. ++ mf=`echo "$mf" | sed -e 's/:.*$//'` ++ # Check whether this is an Automake generated Makefile or not. ++ # We used to match only the files named `Makefile.in', but ++ # some people rename them; so instead we look at the file content. ++ # Grep'ing the first line is not enough: some people post-process ++ # each Makefile.in and add a new line on top of each file to say so. ++ # Grep'ing the whole file is not good either: AIX grep has a line ++ # limit of 2048, but all sed's we know have understand at least 4000. ++ if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then ++ dirpart=`AS_DIRNAME("$mf")` ++ else ++ continue ++ fi ++ # Extract the definition of DEPDIR, am__include, and am__quote ++ # from the Makefile without running `make'. ++ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` ++ test -z "$DEPDIR" && continue ++ am__include=`sed -n 's/^am__include = //p' < "$mf"` ++ test -z "am__include" && continue ++ am__quote=`sed -n 's/^am__quote = //p' < "$mf"` ++ # When using ansi2knr, U may be empty or an underscore; expand it ++ U=`sed -n 's/^U = //p' < "$mf"` ++ # Find all dependency output files, they are included files with ++ # $(DEPDIR) in their names. We invoke sed twice because it is the ++ # simplest approach to changing $(DEPDIR) to its actual value in the ++ # expansion. ++ for file in `sed -n " ++ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ ++ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do ++ # Make sure the directory exists. ++ test -f "$dirpart/$file" && continue ++ fdir=`AS_DIRNAME(["$file"])` ++ AS_MKDIR_P([$dirpart/$fdir]) ++ # echo "creating $dirpart/$file" ++ echo '# dummy' > "$dirpart/$file" ++ done ++done ++]) ++m4trace:/usr/share/aclocal-1.10/depout.m4:64: -1- AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], ++ [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], ++ [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ++]) ++m4trace:/usr/share/aclocal-1.10/header.m4:12: -1- AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) ++m4trace:/usr/share/aclocal-1.10/header.m4:12: -1- AC_DEFUN([AM_CONFIG_HEADER], [AC_DIAGNOSE([obsolete], [The macro `AM_CONFIG_HEADER' is obsolete. ++You should run autoupdate.])dnl ++AC_CONFIG_HEADERS($@)]) ++m4trace:/usr/share/aclocal-1.10/init.m4:26: -1- AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.60])dnl ++dnl Autoconf wants to disallow AM_ names. We explicitly allow ++dnl the ones we care about. ++m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl ++AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl ++AC_REQUIRE([AC_PROG_INSTALL])dnl ++if test "`cd $srcdir && pwd`" != "`pwd`"; then ++ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output ++ # is not polluted with repeated "-I." ++ AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl ++ # test to see if srcdir already configured ++ if test -f $srcdir/config.status; then ++ AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) ++ fi ++fi ++ ++# test whether we have cygpath ++if test -z "$CYGPATH_W"; then ++ if (cygpath --version) >/dev/null 2>/dev/null; then ++ CYGPATH_W='cygpath -w' ++ else ++ CYGPATH_W=echo ++ fi ++fi ++AC_SUBST([CYGPATH_W]) ++ ++# Define the identity of the package. ++dnl Distinguish between old-style and new-style calls. ++m4_ifval([$2], ++[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl ++ AC_SUBST([PACKAGE], [$1])dnl ++ AC_SUBST([VERSION], [$2])], ++[_AM_SET_OPTIONS([$1])dnl ++dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. ++m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, ++ [m4_fatal([AC_INIT should be called with package and version arguments])])dnl ++ AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl ++ AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl ++ ++_AM_IF_OPTION([no-define],, ++[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) ++ AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl ++ ++# Some tools Automake needs. ++AC_REQUIRE([AM_SANITY_CHECK])dnl ++AC_REQUIRE([AC_ARG_PROGRAM])dnl ++AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) ++AM_MISSING_PROG(AUTOCONF, autoconf) ++AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) ++AM_MISSING_PROG(AUTOHEADER, autoheader) ++AM_MISSING_PROG(MAKEINFO, makeinfo) ++AM_PROG_INSTALL_SH ++AM_PROG_INSTALL_STRIP ++AC_REQUIRE([AM_PROG_MKDIR_P])dnl ++# We need awk for the "check" target. The system "awk" is bad on ++# some platforms. ++AC_REQUIRE([AC_PROG_AWK])dnl ++AC_REQUIRE([AC_PROG_MAKE_SET])dnl ++AC_REQUIRE([AM_SET_LEADING_DOT])dnl ++_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], ++ [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], ++ [_AM_PROG_TAR([v7])])]) ++_AM_IF_OPTION([no-dependencies],, ++[AC_PROVIDE_IFELSE([AC_PROG_CC], ++ [_AM_DEPENDENCIES(CC)], ++ [define([AC_PROG_CC], ++ defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl ++AC_PROVIDE_IFELSE([AC_PROG_CXX], ++ [_AM_DEPENDENCIES(CXX)], ++ [define([AC_PROG_CXX], ++ defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl ++AC_PROVIDE_IFELSE([AC_PROG_OBJC], ++ [_AM_DEPENDENCIES(OBJC)], ++ [define([AC_PROG_OBJC], ++ defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ++]) ++]) ++m4trace:/usr/share/aclocal-1.10/init.m4:113: -1- AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. ++_am_arg=$1 ++_am_stamp_count=1 ++for _am_header in $config_headers :; do ++ case $_am_header in ++ $_am_arg | $_am_arg:* ) ++ break ;; ++ * ) ++ _am_stamp_count=`expr $_am_stamp_count + 1` ;; ++ esac ++done ++echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) ++m4trace:/usr/share/aclocal-1.10/install-sh.m4:11: -1- AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl ++install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} ++AC_SUBST(install_sh)]) ++m4trace:/usr/share/aclocal-1.10/lead-dot.m4:12: -1- AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null ++mkdir .tst 2>/dev/null ++if test -d .tst; then ++ am__leading_dot=. ++else ++ am__leading_dot=_ ++fi ++rmdir .tst 2>/dev/null ++AC_SUBST([am__leading_dot])]) ++m4trace:/usr/share/aclocal-1.10/lex.m4:16: -1- AC_DEFUN([AM_PROG_LEX], [AC_PREREQ(2.50)dnl ++AC_REQUIRE([AM_MISSING_HAS_RUN])dnl ++AC_REQUIRE([AC_PROG_LEX])dnl ++if test "$LEX" = :; then ++ LEX=${am_missing_run}flex ++fi]) ++m4trace:/usr/share/aclocal-1.10/make.m4:14: -1- AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} ++cat > confinc << 'END' ++am__doit: ++ @echo done ++.PHONY: am__doit ++END ++# If we don't find an include directive, just comment out the code. ++AC_MSG_CHECKING([for style of include used by $am_make]) ++am__include="#" ++am__quote= ++_am_result=none ++# First try GNU make style include. ++echo "include confinc" > confmf ++# We grep out `Entering directory' and `Leaving directory' ++# messages which can occur if `w' ends up in MAKEFLAGS. ++# In particular we don't look at `^make:' because GNU make might ++# be invoked under some other name (usually "gmake"), in which ++# case it prints its new name instead of `make'. ++if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then ++ am__include=include ++ am__quote= ++ _am_result=GNU ++fi ++# Now try BSD make style include. ++if test "$am__include" = "#"; then ++ echo '.include "confinc"' > confmf ++ if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then ++ am__include=.include ++ am__quote="\"" ++ _am_result=BSD ++ fi ++fi ++AC_SUBST([am__include]) ++AC_SUBST([am__quote]) ++AC_MSG_RESULT([$_am_result]) ++rm -f confinc confmf ++]) ++m4trace:/usr/share/aclocal-1.10/minuso.m4:14: -1- AC_DEFUN([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC_C_O])dnl ++AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl ++AC_REQUIRE_AUX_FILE([compile])dnl ++# FIXME: we rely on the cache variable name because ++# there is no other way. ++set dummy $CC ++ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` ++if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then ++ # Losing compiler, so override with the script. ++ # FIXME: It is wrong to rewrite CC. ++ # But if we don't then we get into trouble of one sort or another. ++ # A longer-term fix would be to have automake use am__CC in this case, ++ # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" ++ CC="$am_aux_dir/compile $CC" ++fi ++dnl Make sure AC_PROG_CC is never called again, or it will override our ++dnl setting of CC. ++m4_define([AC_PROG_CC], ++ [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) ++]) ++m4trace:/usr/share/aclocal-1.10/missing.m4:14: -1- AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) ++$1=${$1-"${am_missing_run}$2"} ++AC_SUBST($1)]) ++m4trace:/usr/share/aclocal-1.10/missing.m4:24: -1- AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl ++AC_REQUIRE_AUX_FILE([missing])dnl ++test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" ++# Use eval to expand $SHELL ++if eval "$MISSING --run true"; then ++ am_missing_run="$MISSING --run " ++else ++ am_missing_run= ++ AC_MSG_WARN([`missing' script is too old or missing]) ++fi ++]) ++m4trace:/usr/share/aclocal-1.10/mkdirp.m4:11: -1- AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl ++AC_REQUIRE([AC_PROG_MKDIR_P])dnl ++dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, ++dnl while keeping a definition of mkdir_p for backward compatibility. ++dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. ++dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of ++dnl Makefile.ins that do not define MKDIR_P, so we do our own ++dnl adjustment using top_builddir (which is defined more often than ++dnl MKDIR_P). ++AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl ++case $mkdir_p in ++ [[\\/$]]* | ?:[[\\/]]*) ;; ++ */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; ++esac ++]) ++m4trace:/usr/share/aclocal-1.10/options.m4:13: -1- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) ++m4trace:/usr/share/aclocal-1.10/options.m4:19: -1- AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) ++m4trace:/usr/share/aclocal-1.10/options.m4:25: -1- AC_DEFUN([_AM_SET_OPTIONS], [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) ++m4trace:/usr/share/aclocal-1.10/options.m4:31: -1- AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) ++m4trace:/usr/share/aclocal-1.10/runlog.m4:12: -1- AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD ++ ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD ++ (exit $ac_status); }]) ++m4trace:/usr/share/aclocal-1.10/sanity.m4:14: -1- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) ++# Just in case ++sleep 1 ++echo timestamp > conftest.file ++# Do `set' in a subshell so we don't clobber the current shell's ++# arguments. Must try -L first in case configure is actually a ++# symlink; some systems play weird games with the mod time of symlinks ++# (eg FreeBSD returns the mod time of the symlink's containing ++# directory). ++if ( ++ set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` ++ if test "$[*]" = "X"; then ++ # -L didn't work. ++ set X `ls -t $srcdir/configure conftest.file` ++ fi ++ rm -f conftest.file ++ if test "$[*]" != "X $srcdir/configure conftest.file" \ ++ && test "$[*]" != "X conftest.file $srcdir/configure"; then ++ ++ # If neither matched, then we have a broken ls. This can happen ++ # if, for instance, CONFIG_SHELL is bash and it inherits a ++ # broken ls alias from the environment. This has actually ++ # happened. Such a system could not be considered "sane". ++ AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken ++alias in your environment]) ++ fi ++ ++ test "$[2]" = conftest.file ++ ) ++then ++ # Ok. ++ : ++else ++ AC_MSG_ERROR([newly created file is older than distributed files! ++Check your system clock]) ++fi ++AC_MSG_RESULT(yes)]) ++m4trace:/usr/share/aclocal-1.10/strip.m4:17: -1- AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl ++# Installed binaries are usually stripped using `strip' when the user ++# run `make install-strip'. However `strip' might not be the right ++# tool to use in cross-compilation environments, therefore Automake ++# will honor the `STRIP' environment variable to overrule this program. ++dnl Don't test for $cross_compiling = yes, because it might be `maybe'. ++if test "$cross_compiling" != no; then ++ AC_CHECK_TOOL([STRIP], [strip], :) ++fi ++INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" ++AC_SUBST([INSTALL_STRIP_PROGRAM])]) ++m4trace:/usr/share/aclocal-1.10/substnot.m4:12: -1- AC_DEFUN([_AM_SUBST_NOTMAKE]) ++m4trace:/usr/share/aclocal-1.10/tar.m4:24: -1- AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. ++AM_MISSING_PROG([AMTAR], [tar]) ++m4_if([$1], [v7], ++ [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], ++ [m4_case([$1], [ustar],, [pax],, ++ [m4_fatal([Unknown tar format])]) ++AC_MSG_CHECKING([how to create a $1 tar archive]) ++# Loop over all known methods to create a tar archive until one works. ++_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' ++_am_tools=${am_cv_prog_tar_$1-$_am_tools} ++# Do not fold the above two line into one, because Tru64 sh and ++# Solaris sh will not grok spaces in the rhs of `-'. ++for _am_tool in $_am_tools ++do ++ case $_am_tool in ++ gnutar) ++ for _am_tar in tar gnutar gtar; ++ do ++ AM_RUN_LOG([$_am_tar --version]) && break ++ done ++ am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' ++ am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' ++ am__untar="$_am_tar -xf -" ++ ;; ++ plaintar) ++ # Must skip GNU tar: if it does not support --format= it doesn't create ++ # ustar tarball either. ++ (tar --version) >/dev/null 2>&1 && continue ++ am__tar='tar chf - "$$tardir"' ++ am__tar_='tar chf - "$tardir"' ++ am__untar='tar xf -' ++ ;; ++ pax) ++ am__tar='pax -L -x $1 -w "$$tardir"' ++ am__tar_='pax -L -x $1 -w "$tardir"' ++ am__untar='pax -r' ++ ;; ++ cpio) ++ am__tar='find "$$tardir" -print | cpio -o -H $1 -L' ++ am__tar_='find "$tardir" -print | cpio -o -H $1 -L' ++ am__untar='cpio -i -H $1 -d' ++ ;; ++ none) ++ am__tar=false ++ am__tar_=false ++ am__untar=false ++ ;; ++ esac ++ ++ # If the value was cached, stop now. We just wanted to have am__tar ++ # and am__untar set. ++ test -n "${am_cv_prog_tar_$1}" && break ++ ++ # tar/untar a dummy directory, and stop if the command works ++ rm -rf conftest.dir ++ mkdir conftest.dir ++ echo GrepMe > conftest.dir/file ++ AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) ++ rm -rf conftest.dir ++ if test -s conftest.tar; then ++ AM_RUN_LOG([$am__untar /dev/null 2>&1 && break ++ fi ++done ++rm -rf conftest.dir ++ ++AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) ++AC_MSG_RESULT([$am_cv_prog_tar_$1])]) ++AC_SUBST([am__tar]) ++AC_SUBST([am__untar]) ++]) ++m4trace:config/argz.m4:12: -1- AC_DEFUN([gl_FUNC_ARGZ], [gl_PREREQ_ARGZ ++ ++AC_CHECK_HEADERS([argz.h], [], [], [AC_INCLUDES_DEFAULT]) ++ ++AC_CHECK_TYPES([error_t], ++ [], ++ [AC_DEFINE([error_t], [int], ++ [Define to a type to use for `error_t' if it is not otherwise available.]) ++ AC_DEFINE([__error_t_defined], [1], [Define so that glibc/gnulib argp.h ++ does not typedef error_t.])], ++ [#if defined(HAVE_ARGZ_H) ++# include ++#endif]) ++ ++ARGZ_H= ++AC_CHECK_FUNCS([argz_add argz_append argz_count argz_create_sep argz_insert \ ++ argz_next argz_stringify], [], [ARGZ_H=argz.h; AC_LIBOBJ([argz])]) ++ ++dnl if have system argz functions, allow forced use of ++dnl libltdl-supplied implementation (and default to do so ++dnl on "known bad" systems). Could use a runtime check, but ++dnl (a) detecting malloc issues is notoriously unreliable ++dnl (b) only known system that declares argz functions, ++dnl provides them, yet they are broken, is cygwin ++dnl releases prior to 16-Mar-2007 (1.5.24 and earlier) ++dnl So, it's more straightforward simply to special case ++dnl this for known bad systems. ++AS_IF([test -z "$ARGZ_H"], ++ [AC_CACHE_CHECK( ++ [if argz actually works], ++ [lt_cv_sys_argz_works], ++ [[case $host_os in #( ++ *cygwin*) ++ lt_cv_sys_argz_works=no ++ if test "$cross_compiling" != no; then ++ lt_cv_sys_argz_works="guessing no" ++ else ++ lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' ++ save_IFS=$IFS ++ IFS=-. ++ set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` ++ IFS=$save_IFS ++ lt_os_major=${2-0} ++ lt_os_minor=${3-0} ++ lt_os_micro=${4-0} ++ if test "$lt_os_major" -gt 1 \ ++ || { test "$lt_os_major" -eq 1 \ ++ && { test "$lt_os_minor" -gt 5 \ ++ || { test "$lt_os_minor" -eq 5 \ ++ && test "$lt_os_micro" -gt 24; }; }; }; then ++ lt_cv_sys_argz_works=yes ++ fi ++ fi ++ ;; #( ++ *) lt_cv_sys_argz_works=yes ;; ++ esac]]) ++ AS_IF([test $lt_cv_sys_argz_works = yes], ++ [AC_DEFINE([HAVE_WORKING_ARGZ], 1, ++ [This value is set to 1 to indicate that the system argz facility works])], ++ [ARGZ_H=argz.h ++ AC_LIBOBJ([argz])])]) ++ ++AC_SUBST([ARGZ_H]) ++]) ++m4trace:config/argz.m4:79: -1- AC_DEFUN([gl_PREREQ_ARGZ], [:]) ++m4trace:config/c_get_alignment.m4:24: -1- AC_DEFUN([OMPI_C_GET_ALIGNMENT], [ ++ AC_CACHE_CHECK([alignment of $1], ++ [AS_TR_SH([ompi_cv_c_align_$1])], ++ [AC_TRY_RUN([ ++#include ++#include ++#include ++struct foo { char c; $1 x; }; ++int main() ++{ ++ struct foo *p = (struct foo *) malloc(sizeof(struct foo)); ++ int diff; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ diff = ((char *)&p->x) - ((char *)&p->c); ++ fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); ++ return 0; ++}], [AS_TR_SH([ompi_cv_c_align_$1])=`cat conftestval`], ++ [AC_MSG_WARN([*** Problem running configure test!]) ++ AC_MSG_WARN([*** See config.log for details.]) ++ AC_MSG_ERROR([*** Cannot continue.])], ++ [ # cross compile - do a non-executable test. Trick ++ # taken from the Autoconf 2.59c. Switch to using ++ # AC_CHECK_ALIGNOF when we can require Autoconf 2.60. ++ _AC_COMPUTE_INT([(long int) offsetof (ompi__type_alignof_, y)], ++ [AS_TR_SH([ompi_cv_c_align_$1])], ++ [AC_INCLUDES_DEFAULT ++#ifndef offsetof ++# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) ++#endif ++typedef struct { char x; $1 y; } ompi__type_alignof_; ++], ++ [AC_MSG_WARN([*** Problem running configure test!]) ++ AC_MSG_WARN([*** See config.log for details.]) ++ AC_MSG_ERROR([*** Cannot continue.])])])]) ++ ++AC_DEFINE_UNQUOTED([$2], [$AS_TR_SH([ompi_cv_c_align_$1])], [Alignment of type $1]) ++eval "$2=$AS_TR_SH([ompi_cv_c_align_$1])" ++ ++rm -rf conftest* ]) ++m4trace:config/c_weak_symbols.m4:22: -1- AC_DEFUN([_OMPI_C_WEAK_SYMBOLS], [ ++ # need two files because icc will incorrectly not create the ++ # symbols if they are not used in the object file in which they ++ # are defined. Blah! ++ # To get to compile with icc, have them in a separate header. ++ cat > conftest_weak.h < conftest_weak.c < conftest.c < conftest.h < ++class foo { ++public: ++ foo(T yow) : data(yow) { yow.member(3); }; ++ void member(int i); ++private: ++ T data; ++}; ++ ++class bar { ++public: ++ bar(int i) { data = i; }; ++ void member(int j) { data = data * j; }; ++ ++private: ++ int data; ++}; ++EOF ++ ++cat > conftest2.C < var1(6); ++ foo< foo > var2(var1); ++} ++EOF ++ ++cat > conftest1.C < ++void ++foo::member(int i) ++{ ++ i += 2; ++} ++ ++int ++main() ++{ ++ foo var1(6); ++ foo< foo > var2(var1); ++ ++ some_other_function(); ++ return 0; ++} ++EOF ++ ++ompi_template_failed= ++echo configure:__oline__: $CXX $CXXFLAGS -c conftest1.C >&5 ++$CXX $CXXFLAGS -c conftest1.C >&5 2>&5 ++if test ! -f conftest1.o ; then ++ ompi_cv_cxx_template_repository="templates not supported" ++ echo configure:__oline__: here is the program that failed: >&5 ++ cat conftest1.C >&5 ++ echo configure:__oline__: here is conftest.h: >&5 ++ cat conftest.h >&5 ++ ompi_template_failed=1 ++else ++ echo configure:__oline__: $CXX $CXXFLAGS -c conftest2.C >&5 ++ $CXX $CXXFLAGS -c conftest2.C >&5 2>&5 ++ if test ! -f conftest2.o ; then ++ ompi_cv_cxx_template_repository= ++ echo configure:__oline__: here is the program that failed: >&5 ++ cat conftest2.C >&5 ++ echo configure:__oline__: here is conftest.h: >&5 ++ cat conftest.h >&5 ++ else ++ rm -rf conftest* ++ ++ for ompi_file in `ls` ++ do ++ if test "$ompi_file" != "." -a "$ompi_file" != ".."; then ++ # Is it a directory? ++ if test -d "$ompi_file"; then ++ ompi_template_dir="$ompi_file $ompi_template_dir" ++ ++ # Or is it a file? ++ else ++ name="`echo $ompi_file | cut -d. -f1`" ++ ++ temp_mask= ++ if test "$name" = "main" -o "$name" = "other"; then ++ temp_mask="`echo $ompi_file | cut -d. -f2`" ++ if test "$ompi_template_filemask" = ""; then ++ ompi_template_filemask="$temp_mask"; ++ elif test "`echo $ompi_template_filemask | $GREP $temp_mask`" = ""; then ++ ompi_template_filemask="$ompi_template_filemask $temp_mask" ++ fi ++ fi ++ fi ++ fi ++ done ++ if test "$ompi_template_filemask" != ""; then ++ temp_mask= ++ for mask in $ompi_template_filemask ++ do ++ temp_mask="*.$mask $temp_mask" ++ done ++ ompi_template_filemask=$temp_mask ++ fi ++ fi ++fi ++ompi_cv_cxx_template_repository="$ompi_template_dir $ompi_template_filemask" ++ ++if test "`echo $ompi_cv_cxx_template_repository`" = ""; then ++ ompi_cv_cxx_template_repository="not used" ++fi ++cd .. ++rm -rf conf_tmp_$$ ++ ++# Clean up ++unset ompi_file ompi_template_failed ompi_template_dir]) ++m4trace:config/cxx_have_exceptions.m4:21: -1- AC_DEFUN([OMPI_CXX_HAVE_EXCEPTIONS], [ ++# ++# Arguments: None ++# ++# Depdencies: None ++# ++# Check to see if the C++ compiler can handle exceptions ++# ++# Sets OMPI_CXX_EXCEPTIONS to 1 if compiler has exceptions, 0 if not ++# ++ ++AC_MSG_CHECKING([for throw/catch]) ++AC_LANG_SAVE ++AC_LANG_CPLUSPLUS ++AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[]], [[int i=1; throw(i);]]), ++ OMPI_CXX_EXCEPTIONS=1, OMPI_CXX_EXCPTIONS=0) ++if test "$OMPI_CXX_EXCEPTIONS" = "1"; then ++ AC_MSG_RESULT([yes]) ++else ++ AC_MSG_RESULT([no]) ++fi ++ ++# Clean up ++AC_LANG_RESTORE]) ++m4trace:config/f77_check.m4:32: -1- AC_DEFUN([OMPI_F77_CHECK], [ ++ OMPI_VAR_SCOPE_PUSH([ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size]) ++ ++ ofc_expected_size=$4 ++ ofc_have_type=0 ++ ofc_type_size=$ac_cv_sizeof_int ++ ofc_type_alignment=$ac_cv_sizeof_int ++ ofc_c_type=ompi_fortran_bogus_type_t ++ ++ # Only check if we actually want the F77 bindings / have a F77 ++ # compiler. This allows us to call this macro, even if there is ++ # no F77 compiler. If we have no f77 compiler, then just set a ++ # bunch of defaults. ++ if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ OMPI_F77_CHECK_TYPE([$1], [ofc_have_type=1], [ofc_have_type=0]) ++ else ++ AC_MSG_CHECKING([if Fortran 77 compiler supports $1]) ++ AC_MSG_RESULT([skipped]) ++ fi ++ ++ if test "$ofc_have_type" = "1"; then ++ # What is the size of this type? ++ ++ # NOTE: Some Fortran compilers actually will return that a ++ # type exists even if it doesn't support it -- the compiler ++ # will automatically convert the unsupported type to a type ++ # that it *does* support. For example, if you try to use ++ # INTEGER*16 and the compiler doesn't support it, it may well ++ # automatically convert it to INTEGER*8 for you (!). So we ++ # have to check the actual size of the type once we determine ++ # that the compiler doesn't error if we try to use it ++ # (i.e,. the compiler *might* support that type). If the size ++ # doesn't match the expected size, then the compiler doesn't ++ # really support it. ++ OMPI_F77_GET_SIZEOF([$1], [ofc_type_size]) ++ if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then ++ AC_MSG_WARN([*** Fortran 77 $1 does not have expected size!]) ++ AC_MSG_WARN([*** Expected $ofc_expected_size, got $ofc_type_size]) ++ AC_MSG_WARN([*** Disabling MPI support for Fortran 77 $1]) ++ ofc_have_type=0 ++ else ++ # Look for a corresponding C type (will abort by itself if the ++ # type isn't found and we need it) ++ ofc_c_type= ++ m4_ifval([$3], [OMPI_FIND_TYPE([$1], [$3], [$2], [$ofc_type_size], [ofc_c_type]) ++ if test -z "$ofc_c_type" ; then ++ ofc_have_type=0 ++ fi]) ++ ++ # Get the alignment of the type ++ if test "$ofc_have_type" = "1"; then ++ OMPI_F77_GET_ALIGNMENT([$1], [ofc_type_alignment]) ++ fi ++ fi ++ fi ++ ++ # We always need these defines -- even if we don't have a given type, ++ # there are some places in the code where we have to have *something*. ++ AC_DEFINE_UNQUOTED([OMPI_HAVE_FORTRAN_]m4_bpatsubst(m4_bpatsubst([$1], [*], []), [[^a-zA-Z0-9_]], [_]), ++ [$ofc_have_type], ++ [Whether we have Fortran 77 $1 or not]) ++ AC_DEFINE_UNQUOTED([OMPI_SIZEOF_FORTRAN_]m4_bpatsubst(m4_bpatsubst([$1], [*], []), [[^a-zA-Z0-9_]], [_]), ++ [$ofc_type_size], ++ [Size of Fortran 77 $1]) ++ AC_DEFINE_UNQUOTED([OMPI_ALIGNMENT_FORTRAN_]m4_bpatsubst(m4_bpatsubst([$1], [*], []), [[^a-zA-Z0-9_]], [_]), ++ [$ofc_type_alignment], ++ [Alignment of Fortran 77 $1]) ++ if test "$3" != ""; then ++ AC_DEFINE_UNQUOTED([ompi_fortran_]m4_translit(m4_bpatsubst(m4_bpatsubst([$1], [*], []), [[^a-zA-Z0-9_]], [_]), [A-Z], [a-z])[_t], ++ [$ofc_c_type], ++ [C type corresponding to Fortran 77 $1]) ++ fi ++ ++ # Save some in shell variables for later use (e.g., need ++ # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX) ++ [OMPI_FORTRAN_]m4_bpatsubst(m4_bpatsubst([$1], [*], []), [[^a-zA-Z0-9_]], [_])[_C_TYPE=$ofc_c_type] ++ [OMPI_HAVE_FORTRAN_]m4_bpatsubst(m4_bpatsubst([$1], [*], []), [[^a-zA-Z0-9_]], [_])[=$ofc_have_type] ++ [OMPI_SIZEOF_FORTRAN_]m4_bpatsubst(m4_bpatsubst([$1], [*], []), [[^a-zA-Z0-9_]], [_])[=$ofc_type_size] ++ [OMPI_ALIGNMENT_FORTRAN_]m4_bpatsubst(m4_bpatsubst([$1], [*], []), [[^a-zA-Z0-9_]], [_])[=$ofc_type_alignment] ++ ++ # Clean up ++ OMPI_VAR_SCOPE_POP ++]) ++m4trace:config/f77_check_logical_array.m4:18: -1- AC_DEFUN([OMPI_F77_CHECK_LOGICAL_ARRAY], [ ++ AC_CACHE_CHECK([for correct handling of FORTRAN logical arrays], ++ [ompi_cv_f77_logical_array_correct], ++ [if test "$1" = "none" -o "$OMPI_WANT_F77_BINDINGS" = "0"; then ++ ompi_cv_f77_logical_array_correct=yes ++ else ++ OMPI_F77_MAKE_C_FUNCTION([ompi_check_logical_fn], [check]) ++ ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++#include "confdefs.h" ++ ++#ifdef __cplusplus ++ extern "C" { ++#endif ++void $ompi_check_logical_fn(ompi_fortran_logical_t * logical); ++ ++void $ompi_check_logical_fn(ompi_fortran_logical_t * logical) ++{ ++ int result = 0; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ ++ if (logical[[0]] == 0 && ++ logical[[1]] == $ompi_cv_f77_true_value) ++ result = 1; ++ fprintf(f, "%d\n", result); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ # Try the compilation and run. Can't use AC_TRY_RUN ++ # because it's two module files. ++ OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], ++ [OMPI_LOG_COMMAND([$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy=1], [happy=0])], ++ [happy=0]) ++ if test "$happy" = "0" ; then ++ AC_MSG_ERROR([Error determining if arrays of logical values work properly.]) ++ fi ++ ++ AS_IF([test "$cross_compiling" = "yes"], ++ [ # assume we're ok ++ ompi_cv_f77_logical_array_correct=yes], ++ [OMPI_LOG_COMMAND([./conftest], ++ [if test "`cat conftestval`" = "1" ; then ++ ompi_cv_f77_logical_array_correct=yes ++ else ++ ompi_cv_f77_logical_array_correct=no ++ fi], ++ [ompi_cv_f77_logical_array_correct=no])]) ++ fi]) ++ ++ if test "$ompi_cv_f77_logical_array_correct" = "no" ; then ++ AC_MSG_ERROR([Error determining if arrays of logical values work properly.]) ++ fi ++ ++ unset happy ompi_check_logical_fn ++ rm -rf conftest* ++]) ++m4trace:config/f77_check_real16_c_equiv.m4:23: -1- AC_DEFUN([OMPI_F77_CHECK_REAL16_C_EQUIV], [ ++ unset happy ++ OMPI_VAR_SCOPE_PUSH([happy define_value msg]) ++ AS_VAR_PUSHDEF([real16_matches_c_var], [ompi_cv_real16_c_equiv]) ++ ++ msg="in C" ++ AS_IF([test "$OMPI_WANT_F77_BINDINGS" = "1"], ++ [AS_IF([test "$OMPI_HAVE_FORTRAN_REAL16" = "1"], ++ [msg="of $OMPI_FORTRAN_REAL16_C_TYPE"])]) ++ AC_CACHE_CHECK([if REAL*16 matches bit representation $msg], ++ real16_matches_c_var, ++ [AS_IF([test "$OMPI_WANT_F77_BINDINGS" = "1" -a "$OMPI_HAVE_FORTRAN_REAL16" = "1"],[ ++ # Make a C function of the Right name ++ OMPI_F77_MAKE_C_FUNCTION([ompi_ac_c_fn], [c]) ++ ++ # C module ++ cat > conftest_c.c < ++#include ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_c_fn($OMPI_FORTRAN_REAL16_C_TYPE *a) { ++ FILE *fp = fopen("conftestval", "w"); ++ if (NULL == fp) exit(1); ++ fprintf(fp, "%s\n", (1.1L == *a) ? "yes" : "no"); ++ fclose(fp); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ # Fortran module ++ cat > conftest_f.f <conftest.f </dev/null 2>&1 ; then ++ ompi_cv_f77_external_symbol="double underscore" ++ elif $NM conftest.o | $GREP foo_bar_ >/dev/null 2>&1 ; then ++ ompi_cv_f77_external_symbol="single underscore" ++ elif $NM conftest.o | $GREP FOO_bar >/dev/null 2>&1 ; then ++ ompi_cv_f77_external_symbol="mixed case" ++ elif $NM conftest.o | $GREP foo_bar >/dev/null 2>&1 ; then ++ ompi_cv_f77_external_symbol="no underscore" ++ elif $NM conftest.o | $GREP FOO_BAR >/dev/null 2>&1 ; then ++ ompi_cv_f77_external_symbol="upper case" ++ else ++ $NM conftest.o >conftest.out 2>&1 ++ OMPI_LOG_MSG([output from $NM:]) ++ OMPI_LOG_FILE([conftest.out]) ++ AC_MSG_ERROR([Could not determine Fortran naming convention.]) ++ fi], ++ [AC_MSG_ERROR([Fortran compiler did not produce object file])]) ++ fi]) ++ ++ ompi_fortran_double_underscore=0 ++ ompi_fortran_single_underscore=0 ++ ompi_fortran_caps=0 ++ ompi_fortran_plain=0 ++ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ ompi_fortran_double_underscore=1 ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ ompi_fortran_single_underscore=1 ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ ompi_fortran_caps=1 ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ ompi_fortran_plain=1 ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ ompi_fortran_caps=1 ++ elif test "$ompi_cv_f77_external_symbol" != "skipped" ; then ++ AC_MSG_ERROR([unknown naming convention: $ompi_cv_f77_external_symbol]) ++ fi ++ ++ AC_DEFINE_UNQUOTED([OMPI_F77_DOUBLE_UNDERSCORE], ++ [$ompi_fortran_double_underscore], ++ [Whether fortran symbols have a trailing double underscore or not]) ++ AC_DEFINE_UNQUOTED([OMPI_F77_SINGLE_UNDERSCORE], ++ [$ompi_fortran_single_underscore], ++ [Whether fortran symbols have a trailing underscore or not]) ++ AC_DEFINE_UNQUOTED([OMPI_F77_CAPS], ++ [$ompi_fortran_caps], ++ [Whether fortran symbols are all caps or not]) ++ AC_DEFINE_UNQUOTED([OMPI_F77_PLAIN], ++ [$ompi_fortran_plain], ++ [Whether fortran symbols have no trailing underscore or not]) ++ ++ rm -rf conftest.* ++]) ++m4trace:config/f77_find_ext_symbol_convention.m4:98: -1- AC_DEFUN([OMPI_F77_MAKE_C_FUNCTION], [ ++ if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then ++ # so the general rule is that if there is an _ in the function ++ # name, then there are two trailing underscores. Otherwise, ++ # there is only one trailing underscore. Any idea how to do ++ # that with m4_translit? ++ if echo $2 | $GREP _ >/dev/null 2>&1 ; then ++ $1[=]m4_translit([$2], [A-Z], [a-z])[__] ++ else ++ $1[=]m4_translit([$2], [A-Z], [a-z])[_] ++ fi ++ elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then ++ $1[=]m4_translit([$2], [A-Z], [a-z])[_] ++ elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then ++ $1[=]$2 ++ elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then ++ $1[=]m4_translit([$2], [A-Z], [a-z]) ++ elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then ++ $1[=]m4_translit([$2], [a-z], [A-Z]) ++ else ++ AC_MSG_ERROR([unknown naming convention: $ompi_cv_f77_external_symbol]) ++ fi ++]) ++m4trace:config/f77_get_alignment.m4:22: -1- AC_DEFUN([OMPI_F77_GET_ALIGNMENT], [ ++ unset happy ++ OMPI_VAR_SCOPE_PUSH([happy ompi_conftest_h]) ++ AS_VAR_PUSHDEF([type_var], [ompi_cv_f77_alignment_$1]) ++ ++ AC_CACHE_CHECK([alignment of Fortran $1], type_var, ++ [OMPI_F77_MAKE_C_FUNCTION([ompi_ac_align_fn], [align]) ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_align_fn(char *w, char *x, char *y, char *z) ++{ unsigned long aw, ax, ay, az; ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ aw = (unsigned long) w; ++ ax = (unsigned long) x; ++ ay = (unsigned long) y; ++ az = (unsigned long) z; ++ if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16); ++ else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12); ++ else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8); ++ else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4); ++ else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2); ++ else fprintf(f, "%d\n", 1); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], ++ [OMPI_LOG_COMMAND([$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy="yes"], [happy="no"])], [happy="no"]) ++ ++ if test "$happy" = "no" ; then ++ AC_MSG_RESULT([Error!]) ++ AC_MSG_ERROR([Could not determine alignment of $1]) ++ fi ++ ++ AS_IF([test "$cross_compiling" = "yes"], ++ [AC_MSG_RESULT([Error!]) ++ AC_MSG_ERROR([Can not determine alignment of $1 when cross-compiling])], ++ [OMPI_LOG_COMMAND([./conftest], ++ [AS_VAR_SET(type_var, [`cat conftestval`])], ++ [AC_MSG_RESULT([Error!]) ++ AC_MSG_ERROR([Could not determine alignment of $1])])]) ++ rm -rf conftest*]) ++ ++ $2=AS_VAR_GET([type_var]) ++ AS_VAR_POPDEF([type_var])dnl ++ OMPI_VAR_SCOPE_POP ++]) ++m4trace:config/f77_get_fortran_handle_max.m4:25: -1- AC_DEFUN([OMPI_F77_GET_FORTRAN_HANDLE_MAX], [ ++ AC_CACHE_CHECK([for max Fortran MPI handle index], ++ [ompi_cv_f77_fortran_handle_max], ++ [ # Find max fortran INTEGER value. Set to sentinel value if we don't ++ # have a Fortran compiler (e.g., if --disable-f77 was given). ++ if test "$OMPI_WANT_F77_BINDINGS" = "0" ; then ++ ompi_fint_max=0 ++ else ++ # Calculate the number of f's that we need to append to the hex ++ # value. Do one less than we really need becaue we assume the ++ # top nybble is 0x7 to avoid sign issues. ++ ompi_numf=`expr $OMPI_SIZEOF_FORTRAN_INTEGER \* 2 - 1` ++ ompi_fint_max=0x7 ++ while test "$ompi_numf" -gt "0"; do ++ ompi_fint_max=${ompi_fint_max}f ++ ompi_numf=`expr $ompi_numf - 1` ++ done ++ fi ++ ++ # Get INT_MAX. Compute a SWAG if we are cross compiling or something ++ # goes wrong. ++ rm -f conftest.out >/dev/null 2>&1 ++ AC_RUN_IFELSE(AC_LANG_PROGRAM([[ ++#include ++#include ++]],[[FILE *fp = fopen("conftest.out", "w"); ++long cint = INT_MAX; ++fprintf(fp, "%ld", cint); ++fclose(fp);]]), ++ [ompi_cint_max=`cat conftest.out`], ++ [ompi_cint_max=0], ++ [ #cross compiling is fun. compute INT_MAX same as INTEGER max ++ ompi_numf=`expr $ac_cv_sizeof_int \* 2 - 1` ++ ompi_cint_max=0x7 ++ while test "$ompi_numf" -gt "0" ; do ++ ompi_cint_max=${ompi_cint_max}f ++ ompi_numf=`expr $ompi_numf - 1` ++ done]) ++ ++ if test "$ompi_cint_max" = "0" ; then ++ # wow - something went really wrong. Be conservative ++ ompi_cv_f77_fortran_handle_max=32767 ++ elif test "$ompi_fint_max" = "0" ; then ++ # we aren't compiling Fortran - just set it to C INT_MAX ++ ompi_cv_f77_fortran_handle_max=$ompi_cint_max ++ else ++ # take the lesser of C INT_MAX and Fortran INTEGER ++ # max. The resulting value will then be storable in ++ # either type. There's no easy way to do this in ++ # the shell, so make the preprocessor do it. ++ ompi_cv_f77_fortran_handle_max="( $ompi_fint_max < $ompi_cint_max ? $ompi_fint_max : $ompi_cint_max )" ++ fi ++ rm -f conftest.out > /dev/null 2>&1 ]) ++ ++ AC_DEFINE_UNQUOTED([OMPI_FORTRAN_HANDLE_MAX], ++ [$ompi_cv_f77_fortran_handle_max], ++ [Max handle value for fortran MPI handles, effectively min(INT_MAX, max fortran INTEGER value)]) ++]) ++m4trace:config/f77_get_sizeof.m4:22: -1- AC_DEFUN([OMPI_F77_GET_SIZEOF], [ ++ AS_VAR_PUSHDEF([type_var], [ompi_cv_f77_sizeof_$1]) ++ ++ AC_CACHE_CHECK([size of Fortran 77 $1], type_var, ++ [OMPI_F77_MAKE_C_FUNCTION([ompi_ac_size_fn], [size]) ++ # Fortran module ++ cat > conftestf.f < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++ fclose(f); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], ++ [OMPI_LOG_COMMAND([$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy="yes"], [happy="no"])], [happy="no"]) ++ ++ if test "$happy" = "no" ; then ++ AC_MSG_ERROR([Could not determine size of $1]) ++ fi ++ ++ AS_IF([test "$cross_compiling" = "yes"], ++ [AC_MSG_ERROR([Can not determine size of $1 when cross-compiling])], ++ [OMPI_LOG_COMMAND([./conftest], ++ [AS_IF([test -f conftestval], ++ [AS_VAR_SET(type_var, [`cat conftestval`])], ++ [OMPI_LOG_MSG([conftestval not found.], 1) ++ AC_MSG_ERROR([Could not determine size of $1])])], ++ [AC_MSG_ERROR([Could not determine size of $1])])]) ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest*]) ++ ++ $2=AS_VAR_GET(type_var) ++ AS_VAR_POPDEF([type_var])dnl ++]) ++m4trace:config/f77_get_value_true.m4:22: -1- AC_DEFUN([OMPI_F77_GET_VALUE_TRUE], [ ++ # invalidate cache if result came from a run where F77 was disabled ++ if test "$ompi_cv_f77_true_value" = "0" ; then ++ unset ompi_cv_f77_true_value ++ fi ++ ++ AC_CACHE_CHECK([FORTRAN value for .TRUE. logical type], ++ [ompi_cv_f77_true_value], ++ [if test "$1" = "none" -o "$OMPI_WANT_F77_BINDINGS" = "0" ; then ++ ompi_cv_f77_true_value=0 ++ else ++ OMPI_F77_MAKE_C_FUNCTION([ompi_print_logical_fn], [print]) ++ ++ # ++ # C module ++ # We really need the confdefs.h Header file for ++ # the ompi_fortran_logical_t definition ++ # ++ if test \! -f confdefs.h ; then ++ AC_MSG_WARN([*** Problem running configure test!]) ++ AC_MSG_WARN([*** Cannot find confdefs.h file for config test]) ++ AC_MSG_WARN([*** See config.log for details.]) ++ AC_MSG_ERROR([*** Cannot continue.]) ++ fi ++ ++ cat > conftest.c < ++#include ++#include "confdefs.h" ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ ++void $ompi_print_logical_fn(ompi_fortran_logical_t * logical); ++ ++void $ompi_print_logical_fn(ompi_fortran_logical_t * logical) ++{ ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ ++ if( SIZEOF_INT >= sizeof(ompi_fortran_logical_t) ) { ++ fprintf(f, "%d\n", (int)*logical); ++ } else if (SIZEOF_LONG >= sizeof(ompi_fortran_logical_t) ) { ++ fprintf(f, "%ld\n", (long) *logical); ++#ifdef HAVE_LONG_LONG ++ } else if (SIZEOF_LONG_LONG >= sizeof(ompi_fortran_logical_t) ) { ++ fprintf(f, "%lld\n", (long long) *logical); ++#endif ++ } else { ++ exit(1); ++ } ++} ++ ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ cat > conftestf.f < logical1") ++ ++ # Note that there is no need to AC_DEFINE the size of the F90 ++ # datatype. We have ensured (above) that they are the same as the ++ # corresponding F77 datatypes, and that's good enough (i.e., the ++ # DDT engine only looks at the F77 sizes). ++ ++ # Finally, note that it is necessary to use the Big Long Ugly m4 ++ # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put ++ # the result of the BLUm4E in a shell variable and use that in ++ # AC_DEFINE_UNQUOTED), autoheader won't put them in the ++ # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case). ++ ++ AC_DEFINE_UNQUOTED([OMPI_HAVE_F90_]m4_translit(m4_bpatsubst(m4_bpatsubst([$1], [*], []), [[^a-zA-Z0-9_]], [_]), [a-z], [A-Z]), ++ [$ofc_have_type], ++ [Whether we have Fortran 90 $ofc_fortran_type or not]) ++ ++ # Save some in shell variables for later use. Have to use m4 ++ # functions here (vs. $ompi_upper_var_name, defined above) because ++ # these need to be set at autoconf time, not configure time. ++ [OMPI_SIZEOF_F90_]m4_translit(m4_bpatsubst(m4_bpatsubst([$1], [*], []), [[^a-zA-Z0-9_]], [_]), [a-z], [A-Z])[=$ofc_type_size] ++ AC_SUBST([OMPI_SIZEOF_F90_]m4_translit(m4_bpatsubst(m4_bpatsubst([$1], [*], []), [[^a-zA-Z0-9_]], [_]), [a-z], [A-Z])) ++ ++ # Clean up ++ unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name ++ unset ofc_have_type ofc_type_size ofc_letter ofc_str ++ unset ofc_type_range ofc_type_precision ++ unset ofc_f77_sizeof ++]) ++m4trace:config/f90_check_type.m4:22: -1- AC_DEFUN([OMPI_F90_CHECK_TYPE], [ ++ AS_VAR_PUSHDEF([type_var], [ompi_cv_f90_have_$1]) ++ ++ # Determine FORTRAN datatype size. ++ # First arg is type, 2nd arg is config var to define ++ ++ AC_CACHE_CHECK([if Fortran 90 compiler supports $1], type_var, ++ [AC_LANG_PUSH([Fortran]) ++ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[program main ++ $1 :: x ++end]])], ++ [AS_VAR_SET(type_var, "yes")], ++ [AS_VAR_SET(type_var, "no")]) ++ AC_LANG_POP([Fortran])]) ++ ++ AS_IF([test "AS_VAR_GET(type_var)" = "yes"], [$2], [$3]) ++ AS_VAR_POPDEF([type_var])dnl ++]) ++m4trace:config/f90_find_module_include_flag.m4:20: -1- AC_DEFUN([OMPI_F90_FIND_MODULE_INCLUDE_FLAG], [ ++ AS_VAR_PUSHDEF([f90_inc_var], [ompi_cv_f90_module_include_flag]) ++ ++ if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then ++ AC_CACHE_CHECK([for Fortran 90 compiler module include flag], ++ f90_inc_var, ++ [ofi_possible_flags="-I -p -M" ++ mkdir conftest.$$ ++ cd conftest.$$ ++ ++ # Try to compile an F90 module ++ mkdir subdir ++ cd subdir ++ cat > conftest-module.f90 < conftest.f90 < conftestf.f90 < conftestf.f90 < conftest.c < ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_size_fn(char *a, char *b) ++{ ++ int diff = (int) (b - a); ++ FILE *f=fopen("conftestval", "w"); ++ if (!f) exit(1); ++ fprintf(f, "%d\n", diff); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++ OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], ++ [OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy="yes"], [happy="no"])], [happy="no"]) ++ ++ if test "$happy" = "no" ; then ++ OMPI_LOG_MSG([here is the fortran 90 program:], 1) ++ OMPI_LOG_FILE([conftestf.f90]) ++ AC_MSG_WARN([Could not determine size of $1]) ++ AC_MSG_WARN([See config.log for details]) ++ AC_MSG_ERROR([Cannot continue]) ++ fi ++ ++ AS_IF([test "$cross_compiling" = "yes"], ++ [AC_MSG_ERROR([Can not determine size of $1 when cross-compiling])], ++ [OMPI_LOG_COMMAND([./conftest], ++ [AS_VAR_SET(type_var, [`cat conftestval`])], ++ [AC_MSG_ERROR([Could not determine size of $1])])]) ++ ++ unset happy ompi_conftest_h ++ rm -rf conftest*]) ++ ++ $2=AS_VAR_GET(type_var) ++ AS_VAR_POPDEF([type_var])dnl ++]) ++m4trace:config/libtool.m4:67: -1- AC_DEFUN([LT_INIT], [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT ++AC_BEFORE([$0], [LT_LANG])dnl ++AC_BEFORE([$0], [LT_OUTPUT])dnl ++AC_BEFORE([$0], [LTDL_INIT])dnl ++m4_require([_LT_CHECK_BUILDDIR])dnl ++ ++dnl Autoconf doesn't catch unexpanded LT_ macros by default: ++m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl ++m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl ++dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 ++dnl unless we require an AC_DEFUNed macro: ++AC_REQUIRE([LTOPTIONS_VERSION])dnl ++AC_REQUIRE([LTSUGAR_VERSION])dnl ++AC_REQUIRE([LTVERSION_VERSION])dnl ++AC_REQUIRE([LTOBSOLETE_VERSION])dnl ++m4_require([_LT_PROG_LTMAIN])dnl ++ ++dnl Parse OPTIONS ++_LT_SET_OPTIONS([$0], [$1]) ++ ++# This can be used to rebuild libtool when needed ++LIBTOOL_DEPS="$ltmain" ++ ++# Always use our own libtool. ++LIBTOOL='$(SHELL) $(top_builddir)/libtool' ++AC_SUBST(LIBTOOL)dnl ++ ++_LT_SETUP ++ ++# Only expand once: ++m4_define([LT_INIT]) ++]) ++m4trace:config/libtool.m4:102: -1- AU_DEFUN([AC_PROG_LIBTOOL], [m4_if($#, 0, [LT_INIT], [LT_INIT($@)])]) ++m4trace:config/libtool.m4:102: -1- AC_DEFUN([AC_PROG_LIBTOOL], [AC_DIAGNOSE([obsolete], [The macro `AC_PROG_LIBTOOL' is obsolete. ++You should run autoupdate.])dnl ++m4_if($#, 0, [LT_INIT], [LT_INIT($@)])]) ++m4trace:config/libtool.m4:103: -1- AU_DEFUN([AM_PROG_LIBTOOL], [m4_if($#, 0, [LT_INIT], [LT_INIT($@)])]) ++m4trace:config/libtool.m4:103: -1- AC_DEFUN([AM_PROG_LIBTOOL], [AC_DIAGNOSE([obsolete], [The macro `AM_PROG_LIBTOOL' is obsolete. ++You should run autoupdate.])dnl ++m4_if($#, 0, [LT_INIT], [LT_INIT($@)])]) ++m4trace:config/libtool.m4:562: -1- AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} ++AC_MSG_NOTICE([creating $CONFIG_LT]) ++cat >"$CONFIG_LT" <<_LTEOF ++#! $SHELL ++# Generated by $as_me. ++# Run this file to recreate a libtool stub with the current configuration. ++ ++lt_cl_silent=false ++SHELL=\${CONFIG_SHELL-$SHELL} ++_LTEOF ++ ++cat >>"$CONFIG_LT" <<\_LTEOF ++AS_SHELL_SANITIZE ++_AS_PREPARE ++ ++exec AS_MESSAGE_FD>&1 ++exec AS_MESSAGE_LOG_FD>>config.log ++{ ++ echo ++ AS_BOX([Running $as_me.]) ++} >&AS_MESSAGE_LOG_FD ++ ++lt_cl_help="\ ++\`$as_me' creates a local libtool stub from the current configuration, ++for use in further configure time tests before the real libtool is ++generated. ++ ++Usage: $[0] [[OPTIONS]] ++ ++ -h, --help print this help, then exit ++ -V, --version print version number, then exit ++ -q, --quiet do not print progress messages ++ -d, --debug don't remove temporary files ++ ++Report bugs to ." ++ ++lt_cl_version="\ ++m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl ++m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) ++configured by $[0], generated by m4_PACKAGE_STRING. ++ ++Copyright (C) 2008 Free Software Foundation, Inc. ++This config.lt script is free software; the Free Software Foundation ++gives unlimited permision to copy, distribute and modify it." ++ ++while test $[#] != 0 ++do ++ case $[1] in ++ --version | --v* | -V ) ++ echo "$lt_cl_version"; exit 0 ;; ++ --help | --h* | -h ) ++ echo "$lt_cl_help"; exit 0 ;; ++ --debug | --d* | -d ) ++ debug=: ;; ++ --quiet | --q* | --silent | --s* | -q ) ++ lt_cl_silent=: ;; ++ ++ -*) AC_MSG_ERROR([unrecognized option: $[1] ++Try \`$[0] --help' for more information.]) ;; ++ ++ *) AC_MSG_ERROR([unrecognized argument: $[1] ++Try \`$[0] --help' for more information.]) ;; ++ esac ++ shift ++done ++ ++if $lt_cl_silent; then ++ exec AS_MESSAGE_FD>/dev/null ++fi ++_LTEOF ++ ++cat >>"$CONFIG_LT" <<_LTEOF ++_LT_OUTPUT_LIBTOOL_COMMANDS_INIT ++_LTEOF ++ ++cat >>"$CONFIG_LT" <<\_LTEOF ++AC_MSG_NOTICE([creating $ofile]) ++_LT_OUTPUT_LIBTOOL_COMMANDS ++AS_EXIT(0) ++_LTEOF ++chmod +x "$CONFIG_LT" ++ ++# configure is writing to config.log, but config.lt does its own redirection, ++# appending to config.log, which fails on DOS, as config.log is still kept ++# open by configure. Here we exec the FD to /dev/null, effectively closing ++# config.log, so it can be properly (re)opened and appended to by config.lt. ++if test "$no_create" != yes; then ++ lt_cl_success=: ++ test "$silent" = yes && ++ lt_config_lt_args="$lt_config_lt_args --quiet" ++ exec AS_MESSAGE_LOG_FD>/dev/null ++ $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false ++ exec AS_MESSAGE_LOG_FD>>config.log ++ $lt_cl_success || AS_EXIT(1) ++fi ++]) ++m4trace:config/libtool.m4:757: -1- AC_DEFUN([LT_SUPPORTED_TAG], []) ++m4trace:config/libtool.m4:768: -1- AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl ++m4_case([$1], ++ [C], [_LT_LANG(C)], ++ [C++], [_LT_LANG(CXX)], ++ [Java], [_LT_LANG(GCJ)], ++ [Fortran 77], [_LT_LANG(F77)], ++ [Fortran], [_LT_LANG(FC)], ++ [Windows Resource], [_LT_LANG(RC)], ++ [m4_ifdef([_LT_LANG_]$1[_CONFIG], ++ [_LT_LANG($1)], ++ [m4_fatal([$0: unsupported language: "$1"])])])dnl ++]) ++m4trace:config/libtool.m4:830: -1- AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) ++m4trace:config/libtool.m4:830: -1- AC_DEFUN([AC_LIBTOOL_CXX], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_CXX' is obsolete. ++You should run autoupdate.])dnl ++LT_LANG(C++)]) ++m4trace:config/libtool.m4:831: -1- AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) ++m4trace:config/libtool.m4:831: -1- AC_DEFUN([AC_LIBTOOL_F77], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_F77' is obsolete. ++You should run autoupdate.])dnl ++LT_LANG(Fortran 77)]) ++m4trace:config/libtool.m4:832: -1- AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) ++m4trace:config/libtool.m4:832: -1- AC_DEFUN([AC_LIBTOOL_FC], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_FC' is obsolete. ++You should run autoupdate.])dnl ++LT_LANG(Fortran)]) ++m4trace:config/libtool.m4:833: -1- AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) ++m4trace:config/libtool.m4:833: -1- AC_DEFUN([AC_LIBTOOL_GCJ], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_GCJ' is obsolete. ++You should run autoupdate.])dnl ++LT_LANG(Java)]) ++m4trace:config/libtool.m4:1402: -1- AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl ++m4_require([_LT_DECL_SED])dnl ++AC_CACHE_CHECK([$1], [$2], ++ [$2=no ++ m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) ++ echo "$lt_simple_compile_test_code" > conftest.$ac_ext ++ lt_compiler_flag="$3" ++ # Insert the option either (1) after the last *FLAGS variable, or ++ # (2) before a word containing "conftest.", or (3) at the end. ++ # Note that $ac_compile itself does not contain backslashes and begins ++ # with a dollar sign (not a hyphen), so the echo should work correctly. ++ # The option is referenced via a variable to avoid confusing sed. ++ lt_compile=`echo "$ac_compile" | $SED \ ++ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ ++ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ ++ -e 's:$: $lt_compiler_flag:'` ++ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) ++ (eval "$lt_compile" 2>conftest.err) ++ ac_status=$? ++ cat conftest.err >&AS_MESSAGE_LOG_FD ++ echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD ++ if (exit $ac_status) && test -s "$ac_outfile"; then ++ # The compiler can only warn and ignore the option if not recognized ++ # So say no if there are warnings other than the usual output. ++ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp ++ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 ++ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then ++ $2=yes ++ fi ++ fi ++ $RM conftest* ++]) ++ ++if test x"[$]$2" = xyes; then ++ m4_if([$5], , :, [$5]) ++else ++ m4_if([$6], , :, [$6]) ++fi ++]) ++m4trace:config/libtool.m4:1444: -1- AU_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [m4_if($#, 0, [_LT_COMPILER_OPTION], [_LT_COMPILER_OPTION($@)])]) ++m4trace:config/libtool.m4:1444: -1- AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_COMPILER_OPTION' is obsolete. ++You should run autoupdate.])dnl ++m4_if($#, 0, [_LT_COMPILER_OPTION], [_LT_COMPILER_OPTION($@)])]) ++m4trace:config/libtool.m4:1453: -1- AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl ++m4_require([_LT_DECL_SED])dnl ++AC_CACHE_CHECK([$1], [$2], ++ [$2=no ++ save_LDFLAGS="$LDFLAGS" ++ LDFLAGS="$LDFLAGS $3" ++ echo "$lt_simple_link_test_code" > conftest.$ac_ext ++ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then ++ # The linker can only warn and ignore the option if not recognized ++ # So say no if there are warnings ++ if test -s conftest.err; then ++ # Append any errors to the config.log. ++ cat conftest.err 1>&AS_MESSAGE_LOG_FD ++ $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp ++ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 ++ if diff conftest.exp conftest.er2 >/dev/null; then ++ $2=yes ++ fi ++ else ++ $2=yes ++ fi ++ fi ++ $RM -r conftest* ++ LDFLAGS="$save_LDFLAGS" ++]) ++ ++if test x"[$]$2" = xyes; then ++ m4_if([$4], , :, [$4]) ++else ++ m4_if([$5], , :, [$5]) ++fi ++]) ++m4trace:config/libtool.m4:1488: -1- AU_DEFUN([AC_LIBTOOL_LINKER_OPTION], [m4_if($#, 0, [_LT_LINKER_OPTION], [_LT_LINKER_OPTION($@)])]) ++m4trace:config/libtool.m4:1488: -1- AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_LINKER_OPTION' is obsolete. ++You should run autoupdate.])dnl ++m4_if($#, 0, [_LT_LINKER_OPTION], [_LT_LINKER_OPTION($@)])]) ++m4trace:config/libtool.m4:1495: -1- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl ++# find the maximum length of command line arguments ++AC_MSG_CHECKING([the maximum length of command line arguments]) ++AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl ++ i=0 ++ teststring="ABCD" ++ ++ case $build_os in ++ msdosdjgpp*) ++ # On DJGPP, this test can blow up pretty badly due to problems in libc ++ # (any single argument exceeding 2000 bytes causes a buffer overrun ++ # during glob expansion). Even if it were fixed, the result of this ++ # check would be larger than it should be. ++ lt_cv_sys_max_cmd_len=12288; # 12K is about right ++ ;; ++ ++ gnu*) ++ # Under GNU Hurd, this test is not required because there is ++ # no limit to the length of command line arguments. ++ # Libtool will interpret -1 as no limit whatsoever ++ lt_cv_sys_max_cmd_len=-1; ++ ;; ++ ++ cygwin* | mingw* | cegcc*) ++ # On Win9x/ME, this test blows up -- it succeeds, but takes ++ # about 5 minutes as the teststring grows exponentially. ++ # Worse, since 9x/ME are not pre-emptively multitasking, ++ # you end up with a "frozen" computer, even though with patience ++ # the test eventually succeeds (with a max line length of 256k). ++ # Instead, let's just punt: use the minimum linelength reported by ++ # all of the supported platforms: 8192 (on NT/2K/XP). ++ lt_cv_sys_max_cmd_len=8192; ++ ;; ++ ++ amigaos*) ++ # On AmigaOS with pdksh, this test takes hours, literally. ++ # So we just punt and use a minimum line length of 8192. ++ lt_cv_sys_max_cmd_len=8192; ++ ;; ++ ++ netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) ++ # This has been around since 386BSD, at least. Likely further. ++ if test -x /sbin/sysctl; then ++ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` ++ elif test -x /usr/sbin/sysctl; then ++ lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` ++ else ++ lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs ++ fi ++ # And add a safety zone ++ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` ++ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ++ ;; ++ ++ interix*) ++ # We know the value 262144 and hardcode it with a safety zone (like BSD) ++ lt_cv_sys_max_cmd_len=196608 ++ ;; ++ ++ osf*) ++ # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure ++ # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not ++ # nice to cause kernel panics so lets avoid the loop below. ++ # First set a reasonable default. ++ lt_cv_sys_max_cmd_len=16384 ++ # ++ if test -x /sbin/sysconfig; then ++ case `/sbin/sysconfig -q proc exec_disable_arg_limit` in ++ *1*) lt_cv_sys_max_cmd_len=-1 ;; ++ esac ++ fi ++ ;; ++ sco3.2v5*) ++ lt_cv_sys_max_cmd_len=102400 ++ ;; ++ sysv5* | sco5v6* | sysv4.2uw2*) ++ kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` ++ if test -n "$kargmax"; then ++ lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` ++ else ++ lt_cv_sys_max_cmd_len=32768 ++ fi ++ ;; ++ *) ++ lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` ++ if test -n "$lt_cv_sys_max_cmd_len"; then ++ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` ++ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ++ else ++ # Make teststring a little bigger before we do anything with it. ++ # a 1K string should be a reasonable start. ++ for i in 1 2 3 4 5 6 7 8 ; do ++ teststring=$teststring$teststring ++ done ++ SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} ++ # If test is not a shell built-in, we'll probably end up computing a ++ # maximum length that is only half of the actual maximum length, but ++ # we can't tell. ++ while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ ++ = "XX$teststring$teststring"; } >/dev/null 2>&1 && ++ test $i != 17 # 1/2 MB should be enough ++ do ++ i=`expr $i + 1` ++ teststring=$teststring$teststring ++ done ++ # Only check the string length outside the loop. ++ lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` ++ teststring= ++ # Add a significant safety factor because C++ compilers can tack on ++ # massive amounts of additional arguments before passing them to the ++ # linker. It appears as though 1/2 is a usable value. ++ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` ++ fi ++ ;; ++ esac ++]) ++if test -n $lt_cv_sys_max_cmd_len ; then ++ AC_MSG_RESULT($lt_cv_sys_max_cmd_len) ++else ++ AC_MSG_RESULT(none) ++fi ++max_cmd_len=$lt_cv_sys_max_cmd_len ++_LT_DECL([], [max_cmd_len], [0], ++ [What is the maximum length of a command?]) ++]) ++m4trace:config/libtool.m4:1623: -1- AU_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [m4_if($#, 0, [LT_CMD_MAX_LEN], [LT_CMD_MAX_LEN($@)])]) ++m4trace:config/libtool.m4:1623: -1- AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_SYS_MAX_CMD_LEN' is obsolete. ++You should run autoupdate.])dnl ++m4_if($#, 0, [LT_CMD_MAX_LEN], [LT_CMD_MAX_LEN($@)])]) ++m4trace:config/libtool.m4:1724: -1- AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl ++if test "x$enable_dlopen" != xyes; then ++ enable_dlopen=unknown ++ enable_dlopen_self=unknown ++ enable_dlopen_self_static=unknown ++else ++ lt_cv_dlopen=no ++ lt_cv_dlopen_libs= ++ ++ case $host_os in ++ beos*) ++ lt_cv_dlopen="load_add_on" ++ lt_cv_dlopen_libs= ++ lt_cv_dlopen_self=yes ++ ;; ++ ++ mingw* | pw32* | cegcc*) ++ lt_cv_dlopen="LoadLibrary" ++ lt_cv_dlopen_libs= ++ ;; ++ ++ cygwin*) ++ lt_cv_dlopen="dlopen" ++ lt_cv_dlopen_libs= ++ ;; ++ ++ darwin*) ++ # if libdl is installed we need to link against it ++ AC_CHECK_LIB([dl], [dlopen], ++ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ ++ lt_cv_dlopen="dyld" ++ lt_cv_dlopen_libs= ++ lt_cv_dlopen_self=yes ++ ]) ++ ;; ++ ++ *) ++ AC_CHECK_FUNC([shl_load], ++ [lt_cv_dlopen="shl_load"], ++ [AC_CHECK_LIB([dld], [shl_load], ++ [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], ++ [AC_CHECK_FUNC([dlopen], ++ [lt_cv_dlopen="dlopen"], ++ [AC_CHECK_LIB([dl], [dlopen], ++ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], ++ [AC_CHECK_LIB([svld], [dlopen], ++ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], ++ [AC_CHECK_LIB([dld], [dld_link], ++ [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) ++ ]) ++ ]) ++ ]) ++ ]) ++ ]) ++ ;; ++ esac ++ ++ if test "x$lt_cv_dlopen" != xno; then ++ enable_dlopen=yes ++ else ++ enable_dlopen=no ++ fi ++ ++ case $lt_cv_dlopen in ++ dlopen) ++ save_CPPFLAGS="$CPPFLAGS" ++ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" ++ ++ save_LDFLAGS="$LDFLAGS" ++ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" ++ ++ save_LIBS="$LIBS" ++ LIBS="$lt_cv_dlopen_libs $LIBS" ++ ++ AC_CACHE_CHECK([whether a program can dlopen itself], ++ lt_cv_dlopen_self, [dnl ++ _LT_TRY_DLOPEN_SELF( ++ lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, ++ lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ++ ]) ++ ++ if test "x$lt_cv_dlopen_self" = xyes; then ++ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" ++ AC_CACHE_CHECK([whether a statically linked program can dlopen itself], ++ lt_cv_dlopen_self_static, [dnl ++ _LT_TRY_DLOPEN_SELF( ++ lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, ++ lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ++ ]) ++ fi ++ ++ CPPFLAGS="$save_CPPFLAGS" ++ LDFLAGS="$save_LDFLAGS" ++ LIBS="$save_LIBS" ++ ;; ++ esac ++ ++ case $lt_cv_dlopen_self in ++ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; ++ *) enable_dlopen_self=unknown ;; ++ esac ++ ++ case $lt_cv_dlopen_self_static in ++ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; ++ *) enable_dlopen_self_static=unknown ;; ++ esac ++fi ++_LT_DECL([dlopen_support], [enable_dlopen], [0], ++ [Whether dlopen is supported]) ++_LT_DECL([dlopen_self], [enable_dlopen_self], [0], ++ [Whether dlopen of programs is supported]) ++_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], ++ [Whether dlopen of statically linked programs is supported]) ++]) ++m4trace:config/libtool.m4:1841: -1- AU_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [m4_if($#, 0, [LT_SYS_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF($@)])]) ++m4trace:config/libtool.m4:1841: -1- AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_DLOPEN_SELF' is obsolete. ++You should run autoupdate.])dnl ++m4_if($#, 0, [LT_SYS_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF($@)])]) ++m4trace:config/libtool.m4:2729: -1- AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl ++AC_MSG_CHECKING([for $1]) ++AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, ++[case $MAGIC_CMD in ++[[\\/*] | ?:[\\/]*]) ++ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ++ ;; ++*) ++ lt_save_MAGIC_CMD="$MAGIC_CMD" ++ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ++dnl $ac_dummy forces splitting on constant user-supplied paths. ++dnl POSIX.2 word splitting is done only on the output of word expansions, ++dnl not every word. This closes a longstanding sh security hole. ++ ac_dummy="m4_if([$2], , $PATH, [$2])" ++ for ac_dir in $ac_dummy; do ++ IFS="$lt_save_ifs" ++ test -z "$ac_dir" && ac_dir=. ++ if test -f $ac_dir/$1; then ++ lt_cv_path_MAGIC_CMD="$ac_dir/$1" ++ if test -n "$file_magic_test_file"; then ++ case $deplibs_check_method in ++ "file_magic "*) ++ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` ++ MAGIC_CMD="$lt_cv_path_MAGIC_CMD" ++ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | ++ $EGREP "$file_magic_regex" > /dev/null; then ++ : ++ else ++ cat <<_LT_EOF 1>&2 ++ ++*** Warning: the command libtool uses to detect shared libraries, ++*** $file_magic_cmd, produces output that libtool cannot recognize. ++*** The result is that libtool may fail to recognize shared libraries ++*** as such. This will affect the creation of libtool libraries that ++*** depend on shared libraries, but programs linked with such libtool ++*** libraries will work regardless of this problem. Nevertheless, you ++*** may want to report the problem to your system manager and/or to ++*** bug-libtool@gnu.org ++ ++_LT_EOF ++ fi ;; ++ esac ++ fi ++ break ++ fi ++ done ++ IFS="$lt_save_ifs" ++ MAGIC_CMD="$lt_save_MAGIC_CMD" ++ ;; ++esac]) ++MAGIC_CMD="$lt_cv_path_MAGIC_CMD" ++if test -n "$MAGIC_CMD"; then ++ AC_MSG_RESULT($MAGIC_CMD) ++else ++ AC_MSG_RESULT(no) ++fi ++_LT_DECL([], [MAGIC_CMD], [0], ++ [Used to examine libraries when file_magic_cmd begins with "file"])dnl ++]) ++m4trace:config/libtool.m4:2791: -1- AU_DEFUN([AC_PATH_TOOL_PREFIX], [m4_if($#, 0, [_LT_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX($@)])]) ++m4trace:config/libtool.m4:2791: -1- AC_DEFUN([AC_PATH_TOOL_PREFIX], [AC_DIAGNOSE([obsolete], [The macro `AC_PATH_TOOL_PREFIX' is obsolete. ++You should run autoupdate.])dnl ++m4_if($#, 0, [_LT_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX($@)])]) ++m4trace:config/libtool.m4:2814: -1- AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl ++AC_REQUIRE([AC_CANONICAL_HOST])dnl ++AC_REQUIRE([AC_CANONICAL_BUILD])dnl ++m4_require([_LT_DECL_SED])dnl ++m4_require([_LT_DECL_EGREP])dnl ++ ++AC_ARG_WITH([gnu-ld], ++ [AS_HELP_STRING([--with-gnu-ld], ++ [assume the C compiler uses GNU ld @<:@default=no@:>@])], ++ [test "$withval" = no || with_gnu_ld=yes], ++ [with_gnu_ld=no])dnl ++ ++ac_prog=ld ++if test "$GCC" = yes; then ++ # Check if gcc -print-prog-name=ld gives a path. ++ AC_MSG_CHECKING([for ld used by $CC]) ++ case $host in ++ *-*-mingw*) ++ # gcc leaves a trailing carriage return which upsets mingw ++ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; ++ *) ++ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; ++ esac ++ case $ac_prog in ++ # Accept absolute paths. ++ [[\\/]]* | ?:[[\\/]]*) ++ re_direlt='/[[^/]][[^/]]*/\.\./' ++ # Canonicalize the pathname of ld ++ ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` ++ while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ++ ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` ++ done ++ test -z "$LD" && LD="$ac_prog" ++ ;; ++ "") ++ # If it fails, then pretend we aren't using GCC. ++ ac_prog=ld ++ ;; ++ *) ++ # If it is relative, then search for the first ld in PATH. ++ with_gnu_ld=unknown ++ ;; ++ esac ++elif test "$with_gnu_ld" = yes; then ++ AC_MSG_CHECKING([for GNU ld]) ++else ++ AC_MSG_CHECKING([for non-GNU ld]) ++fi ++AC_CACHE_VAL(lt_cv_path_LD, ++[if test -z "$LD"; then ++ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ++ for ac_dir in $PATH; do ++ IFS="$lt_save_ifs" ++ test -z "$ac_dir" && ac_dir=. ++ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then ++ lt_cv_path_LD="$ac_dir/$ac_prog" ++ # Check to see if the program is GNU ld. I'd rather use --version, ++ # but apparently some variants of GNU ld only accept -v. ++ # Break only if it was the GNU/non-GNU ld that we prefer. ++ case `"$lt_cv_path_LD" -v 2>&1 &1 | sed '1q'` in ++ */dev/null* | *'Invalid file or object type'*) ++ lt_cv_path_NM="$tmp_nm -B" ++ break ++ ;; ++ *) ++ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in ++ */dev/null*) ++ lt_cv_path_NM="$tmp_nm -p" ++ break ++ ;; ++ *) ++ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but ++ continue # so that we can try to find one that supports BSD flags ++ ;; ++ esac ++ ;; ++ esac ++ fi ++ done ++ IFS="$lt_save_ifs" ++ done ++ : ${lt_cv_path_NM=no} ++fi]) ++if test "$lt_cv_path_NM" != "no"; then ++ NM="$lt_cv_path_NM" ++else ++ # Didn't find any BSD compatible name lister, look for dumpbin. ++ AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) ++ AC_SUBST([DUMPBIN]) ++ if test "$DUMPBIN" != ":"; then ++ NM="$DUMPBIN" ++ fi ++fi ++test -z "$NM" && NM=nm ++AC_SUBST([NM]) ++_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl ++ ++AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], ++ [lt_cv_nm_interface="BSD nm" ++ echo "int some_variable = 0;" > conftest.$ac_ext ++ (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) ++ (eval "$ac_compile" 2>conftest.err) ++ cat conftest.err >&AS_MESSAGE_LOG_FD ++ (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) ++ (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) ++ cat conftest.err >&AS_MESSAGE_LOG_FD ++ (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) ++ cat conftest.out >&AS_MESSAGE_LOG_FD ++ if $GREP 'External.*some_variable' conftest.out > /dev/null; then ++ lt_cv_nm_interface="MS dumpbin" ++ fi ++ rm -f conftest*]) ++]) ++m4trace:config/libtool.m4:3245: -1- AU_DEFUN([AM_PROG_NM], [m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])]) ++m4trace:config/libtool.m4:3245: -1- AC_DEFUN([AM_PROG_NM], [AC_DIAGNOSE([obsolete], [The macro `AM_PROG_NM' is obsolete. ++You should run autoupdate.])dnl ++m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])]) ++m4trace:config/libtool.m4:3246: -1- AU_DEFUN([AC_PROG_NM], [m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])]) ++m4trace:config/libtool.m4:3246: -1- AC_DEFUN([AC_PROG_NM], [AC_DIAGNOSE([obsolete], [The macro `AC_PROG_NM' is obsolete. ++You should run autoupdate.])dnl ++m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])]) ++m4trace:config/libtool.m4:3255: -1- AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl ++LIBM= ++case $host in ++*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) ++ # These system don't have libm, or don't need it ++ ;; ++*-ncr-sysv4.3*) ++ AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") ++ AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ++ ;; ++*) ++ AC_CHECK_LIB(m, cos, LIBM="-lm") ++ ;; ++esac ++AC_SUBST([LIBM]) ++]) ++m4trace:config/libtool.m4:3274: -1- AU_DEFUN([AC_CHECK_LIBM], [m4_if($#, 0, [LT_LIB_M], [LT_LIB_M($@)])]) ++m4trace:config/libtool.m4:3274: -1- AC_DEFUN([AC_CHECK_LIBM], [AC_DIAGNOSE([obsolete], [The macro `AC_CHECK_LIBM' is obsolete. ++You should run autoupdate.])dnl ++m4_if($#, 0, [LT_LIB_M], [LT_LIB_M($@)])]) ++m4trace:config/libtool.m4:6967: -1- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], ++ [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], ++ [AC_CHECK_TOOL(GCJ, gcj,) ++ test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" ++ AC_SUBST(GCJFLAGS)])])[]dnl ++]) ++m4trace:config/libtool.m4:6976: -1- AU_DEFUN([LT_AC_PROG_GCJ], [m4_if($#, 0, [LT_PROG_GCJ], [LT_PROG_GCJ($@)])]) ++m4trace:config/libtool.m4:6976: -1- AC_DEFUN([LT_AC_PROG_GCJ], [AC_DIAGNOSE([obsolete], [The macro `LT_AC_PROG_GCJ' is obsolete. ++You should run autoupdate.])dnl ++m4_if($#, 0, [LT_PROG_GCJ], [LT_PROG_GCJ($@)])]) ++m4trace:config/libtool.m4:6983: -1- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ++]) ++m4trace:config/libtool.m4:6988: -1- AU_DEFUN([LT_AC_PROG_RC], [m4_if($#, 0, [LT_PROG_RC], [LT_PROG_RC($@)])]) ++m4trace:config/libtool.m4:6988: -1- AC_DEFUN([LT_AC_PROG_RC], [AC_DIAGNOSE([obsolete], [The macro `LT_AC_PROG_RC' is obsolete. ++You should run autoupdate.])dnl ++m4_if($#, 0, [LT_PROG_RC], [LT_PROG_RC($@)])]) ++m4trace:config/libtool.m4:7099: -1- AU_DEFUN([LT_AC_PROG_SED], [m4_if($#, 0, [AC_PROG_SED], [AC_PROG_SED($@)])]) ++m4trace:config/libtool.m4:7099: -1- AC_DEFUN([LT_AC_PROG_SED], [AC_DIAGNOSE([obsolete], [The macro `LT_AC_PROG_SED' is obsolete. ++You should run autoupdate.])dnl ++m4_if($#, 0, [AC_PROG_SED], [AC_PROG_SED($@)])]) ++m4trace:config/ltdl.m4:16: -1- AC_DEFUN([LT_CONFIG_LTDL_DIR], [AC_BEFORE([$0], [LTDL_INIT]) ++_$0($*) ++]) ++m4trace:config/ltdl.m4:68: -1- AC_DEFUN([LTDL_CONVENIENCE], [AC_BEFORE([$0], [LTDL_INIT])dnl ++dnl Although the argument is deprecated and no longer documented, ++dnl LTDL_CONVENIENCE used to take a DIRECTORY orgument, if we have one ++dnl here make sure it is the same as any other declaration of libltdl's ++dnl location! This also ensures lt_ltdl_dir is set when configure.ac is ++dnl not yet using an explicit LT_CONFIG_LTDL_DIR. ++m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl ++_$0() ++]) ++m4trace:config/ltdl.m4:81: -1- AU_DEFUN([AC_LIBLTDL_CONVENIENCE], [_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) ++_LTDL_CONVENIENCE]) ++m4trace:config/ltdl.m4:81: -1- AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBLTDL_CONVENIENCE' is obsolete. ++You should run autoupdate.])dnl ++_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) ++_LTDL_CONVENIENCE]) ++m4trace:config/ltdl.m4:124: -1- AC_DEFUN([LTDL_INSTALLABLE], [AC_BEFORE([$0], [LTDL_INIT])dnl ++dnl Although the argument is deprecated and no longer documented, ++dnl LTDL_INSTALLABLE used to take a DIRECTORY orgument, if we have one ++dnl here make sure it is the same as any other declaration of libltdl's ++dnl location! This also ensures lt_ltdl_dir is set when configure.ac is ++dnl not yet using an explicit LT_CONFIG_LTDL_DIR. ++m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl ++_$0() ++]) ++m4trace:config/ltdl.m4:137: -1- AU_DEFUN([AC_LIBLTDL_INSTALLABLE], [_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) ++_LTDL_INSTALLABLE]) ++m4trace:config/ltdl.m4:137: -1- AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBLTDL_INSTALLABLE' is obsolete. ++You should run autoupdate.])dnl ++_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) ++_LTDL_INSTALLABLE]) ++m4trace:config/ltdl.m4:213: -1- AC_DEFUN([_LT_LIBOBJ], [ ++ m4_pattern_allow([^_LT_LIBOBJS$]) ++ _LT_LIBOBJS="$_LT_LIBOBJS $1.$ac_objext" ++]) ++m4trace:config/ltdl.m4:226: -1- AC_DEFUN([LTDL_INIT], [dnl Parse OPTIONS ++_LT_SET_OPTIONS([$0], [$1]) ++ ++dnl We need to keep our own list of libobjs separate from our parent project, ++dnl and the easiest way to do that is redefine the AC_LIBOBJs macro while ++dnl we look for our own LIBOBJs. ++m4_pushdef([AC_LIBOBJ], m4_defn([_LT_LIBOBJ])) ++m4_pushdef([AC_LIBSOURCES]) ++ ++dnl If not otherwise defined, default to the 1.5.x compatible subproject mode: ++m4_if(_LTDL_MODE, [], ++ [m4_define([_LTDL_MODE], m4_default([$2], [subproject])) ++ m4_if([-1], [m4_bregexp(_LTDL_MODE, [\(subproject\|\(non\)?recursive\)])], ++ [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])]) ++ ++AC_ARG_WITH([included_ltdl], ++ [AS_HELP_STRING([--with-included-ltdl], ++ [use the GNU ltdl sources included here])]) ++ ++if test "x$with_included_ltdl" != xyes; then ++ # We are not being forced to use the included libltdl sources, so ++ # decide whether there is a useful installed version we can use. ++ AC_CHECK_HEADER([ltdl.h], ++ [AC_CHECK_DECL([lt_dlinterface_register], ++ [AC_CHECK_LIB([ltdl], [lt_dladvise_preload], ++ [with_included_ltdl=no], ++ [with_included_ltdl=yes])], ++ [with_included_ltdl=yes], ++ [AC_INCLUDES_DEFAULT ++ #include ])], ++ [with_included_ltdl=yes], ++ [AC_INCLUDES_DEFAULT] ++ ) ++fi ++ ++dnl If neither LT_CONFIG_LTDL_DIR, LTDL_CONVENIENCE nor LTDL_INSTALLABLE ++dnl was called yet, then for old times' sake, we assume libltdl is in an ++dnl eponymous directory: ++AC_PROVIDE_IFELSE([LT_CONFIG_LTDL_DIR], [], [_LT_CONFIG_LTDL_DIR([libltdl])]) ++ ++AC_ARG_WITH([ltdl_include], ++ [AS_HELP_STRING([--with-ltdl-include=DIR], ++ [use the ltdl headers installed in DIR])]) ++ ++if test -n "$with_ltdl_include"; then ++ if test -f "$with_ltdl_include/ltdl.h"; then : ++ else ++ AC_MSG_ERROR([invalid ltdl include directory: `$with_ltdl_include']) ++ fi ++else ++ with_ltdl_include=no ++fi ++ ++AC_ARG_WITH([ltdl_lib], ++ [AS_HELP_STRING([--with-ltdl-lib=DIR], ++ [use the libltdl.la installed in DIR])]) ++ ++if test -n "$with_ltdl_lib"; then ++ if test -f "$with_ltdl_lib/libltdl.la"; then : ++ else ++ AC_MSG_ERROR([invalid ltdl library directory: `$with_ltdl_lib']) ++ fi ++else ++ with_ltdl_lib=no ++fi ++ ++case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in ++ ,yes,no,no,) ++ m4_case(m4_default(_LTDL_TYPE, [convenience]), ++ [convenience], [_LTDL_CONVENIENCE], ++ [installable], [_LTDL_INSTALLABLE], ++ [m4_fatal([unknown libltdl build type: ]_LTDL_TYPE)]) ++ ;; ++ ,no,no,no,) ++ # If the included ltdl is not to be used, then use the ++ # preinstalled libltdl we found. ++ AC_DEFINE([HAVE_LTDL], [1], ++ [Define this if a modern libltdl is already installed]) ++ LIBLTDL=-lltdl ++ LTDLDEPS= ++ LTDLINCL= ++ ;; ++ ,no*,no,*) ++ AC_MSG_ERROR([`--with-ltdl-include' and `--with-ltdl-lib' options must be used together]) ++ ;; ++ *) with_included_ltdl=no ++ LIBLTDL="-L$with_ltdl_lib -lltdl" ++ LTDLDEPS= ++ LTDLINCL="-I$with_ltdl_include" ++ ;; ++esac ++INCLTDL="$LTDLINCL" ++ ++# Report our decision... ++AC_MSG_CHECKING([where to find libltdl headers]) ++AC_MSG_RESULT([$LTDLINCL]) ++AC_MSG_CHECKING([where to find libltdl library]) ++AC_MSG_RESULT([$LIBLTDL]) ++ ++_LTDL_SETUP ++ ++dnl restore autoconf definition. ++m4_popdef([AC_LIBOBJ]) ++m4_popdef([AC_LIBSOURCES]) ++ ++AC_CONFIG_COMMANDS_PRE([ ++ _ltdl_libobjs= ++ _ltdl_ltlibobjs= ++ if test -n "$_LT_LIBOBJS"; then ++ # Remove the extension. ++ _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' ++ for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do ++ _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" ++ _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" ++ done ++ fi ++ AC_SUBST([ltdl_LIBOBJS], [$_ltdl_libobjs]) ++ AC_SUBST([ltdl_LTLIBOBJS], [$_ltdl_ltlibobjs]) ++]) ++ ++# Only expand once: ++m4_define([LTDL_INIT]) ++]) ++m4trace:config/ltdl.m4:352: -1- AU_DEFUN([AC_LIB_LTDL], [LTDL_INIT($@)]) ++m4trace:config/ltdl.m4:352: -1- AC_DEFUN([AC_LIB_LTDL], [AC_DIAGNOSE([obsolete], [The macro `AC_LIB_LTDL' is obsolete. ++You should run autoupdate.])dnl ++LTDL_INIT($@)]) ++m4trace:config/ltdl.m4:353: -1- AU_DEFUN([AC_WITH_LTDL], [LTDL_INIT($@)]) ++m4trace:config/ltdl.m4:353: -1- AC_DEFUN([AC_WITH_LTDL], [AC_DIAGNOSE([obsolete], [The macro `AC_WITH_LTDL' is obsolete. ++You should run autoupdate.])dnl ++LTDL_INIT($@)]) ++m4trace:config/ltdl.m4:354: -1- AU_DEFUN([LT_WITH_LTDL], [LTDL_INIT($@)]) ++m4trace:config/ltdl.m4:354: -1- AC_DEFUN([LT_WITH_LTDL], [AC_DIAGNOSE([obsolete], [The macro `LT_WITH_LTDL' is obsolete. ++You should run autoupdate.])dnl ++LTDL_INIT($@)]) ++m4trace:config/ltdl.m4:367: -1- AC_DEFUN([_LTDL_SETUP], [AC_REQUIRE([AC_PROG_CC])dnl ++AC_REQUIRE([LT_SYS_MODULE_EXT])dnl ++AC_REQUIRE([LT_SYS_MODULE_PATH])dnl ++AC_REQUIRE([LT_SYS_DLSEARCH_PATH])dnl ++AC_REQUIRE([LT_LIB_DLLOAD])dnl ++AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl ++AC_REQUIRE([LT_FUNC_DLSYM_USCORE])dnl ++AC_REQUIRE([LT_SYS_DLOPEN_DEPLIBS])dnl ++AC_REQUIRE([gl_FUNC_ARGZ])dnl ++ ++m4_require([_LT_CHECK_OBJDIR])dnl ++m4_require([_LT_HEADER_DLFCN])dnl ++m4_require([_LT_CHECK_DLPREOPEN])dnl ++m4_require([_LT_DECL_SED])dnl ++ ++dnl Don't require this, or it will be expanded earlier than the code ++dnl that sets the variables it relies on: ++_LT_ENABLE_INSTALL ++ ++dnl _LTDL_MODE specific code must be called at least once: ++_LTDL_MODE_DISPATCH ++ ++# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS ++# the user used. This is so that ltdl.h can pick up the parent projects ++# config.h file, The first file in AC_CONFIG_HEADERS must contain the ++# definitions required by ltdl.c. ++# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). ++AC_CONFIG_COMMANDS_PRE([dnl ++m4_pattern_allow([^LT_CONFIG_H$])dnl ++m4_ifset([AH_HEADER], ++ [LT_CONFIG_H=AH_HEADER], ++ [m4_ifset([AC_LIST_HEADERS], ++ [LT_CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's,^[[ ]]*,,;s,[[ :]].*$,,'`], ++ [])])]) ++AC_SUBST([LT_CONFIG_H]) ++ ++AC_CHECK_HEADERS([unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h], ++ [], [], [AC_INCLUDES_DEFAULT]) ++ ++AC_CHECK_FUNCS([closedir opendir readdir], [], [AC_LIBOBJ([lt__dirent])]) ++AC_CHECK_FUNCS([strlcat strlcpy], [], [AC_LIBOBJ([lt__strl])]) ++ ++AC_DEFINE_UNQUOTED([LT_LIBEXT],["$libext"],[The archive extension]) ++ ++name=ltdl ++LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""` ++AC_SUBST([LTDLOPEN]) ++]) ++m4trace:config/ltdl.m4:437: -1- AC_DEFUN([LT_SYS_DLOPEN_DEPLIBS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl ++AC_CACHE_CHECK([whether deplibs are loaded by dlopen], ++ [lt_cv_sys_dlopen_deplibs], ++ [# PORTME does your system automatically load deplibs for dlopen? ++ # or its logical equivalent (e.g. shl_load for HP-UX < 11) ++ # For now, we just catch OSes we know something about -- in the ++ # future, we'll try test this programmatically. ++ lt_cv_sys_dlopen_deplibs=unknown ++ case $host_os in ++ aix3*|aix4.1.*|aix4.2.*) ++ # Unknown whether this is true for these versions of AIX, but ++ # we want this `case' here to explicitly catch those versions. ++ lt_cv_sys_dlopen_deplibs=unknown ++ ;; ++ aix[[4-9]]*) ++ lt_cv_sys_dlopen_deplibs=yes ++ ;; ++ amigaos*) ++ case $host_cpu in ++ powerpc) ++ lt_cv_sys_dlopen_deplibs=no ++ ;; ++ esac ++ ;; ++ darwin*) ++ # Assuming the user has installed a libdl from somewhere, this is true ++ # If you are looking for one http://www.opendarwin.org/projects/dlcompat ++ lt_cv_sys_dlopen_deplibs=yes ++ ;; ++ freebsd* | dragonfly*) ++ lt_cv_sys_dlopen_deplibs=yes ++ ;; ++ gnu* | linux* | k*bsd*-gnu) ++ # GNU and its variants, using gnu ld.so (Glibc) ++ lt_cv_sys_dlopen_deplibs=yes ++ ;; ++ hpux10*|hpux11*) ++ lt_cv_sys_dlopen_deplibs=yes ++ ;; ++ interix*) ++ lt_cv_sys_dlopen_deplibs=yes ++ ;; ++ irix[[12345]]*|irix6.[[01]]*) ++ # Catch all versions of IRIX before 6.2, and indicate that we don't ++ # know how it worked for any of those versions. ++ lt_cv_sys_dlopen_deplibs=unknown ++ ;; ++ irix*) ++ # The case above catches anything before 6.2, and it's known that ++ # at 6.2 and later dlopen does load deplibs. ++ lt_cv_sys_dlopen_deplibs=yes ++ ;; ++ netbsd*) ++ lt_cv_sys_dlopen_deplibs=yes ++ ;; ++ openbsd*) ++ lt_cv_sys_dlopen_deplibs=yes ++ ;; ++ osf[[1234]]*) ++ # dlopen did load deplibs (at least at 4.x), but until the 5.x series, ++ # it did *not* use an RPATH in a shared library to find objects the ++ # library depends on, so we explicitly say `no'. ++ lt_cv_sys_dlopen_deplibs=no ++ ;; ++ osf5.0|osf5.0a|osf5.1) ++ # dlopen *does* load deplibs and with the right loader patch applied ++ # it even uses RPATH in a shared library to search for shared objects ++ # that the library depends on, but there's no easy way to know if that ++ # patch is installed. Since this is the case, all we can really ++ # say is unknown -- it depends on the patch being installed. If ++ # it is, this changes to `yes'. Without it, it would be `no'. ++ lt_cv_sys_dlopen_deplibs=unknown ++ ;; ++ osf*) ++ # the two cases above should catch all versions of osf <= 5.1. Read ++ # the comments above for what we know about them. ++ # At > 5.1, deplibs are loaded *and* any RPATH in a shared library ++ # is used to find them so we can finally say `yes'. ++ lt_cv_sys_dlopen_deplibs=yes ++ ;; ++ qnx*) ++ lt_cv_sys_dlopen_deplibs=yes ++ ;; ++ solaris*) ++ lt_cv_sys_dlopen_deplibs=yes ++ ;; ++ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) ++ libltdl_cv_sys_dlopen_deplibs=yes ++ ;; ++ esac ++ ]) ++if test "$lt_cv_sys_dlopen_deplibs" != yes; then ++ AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1], ++ [Define if the OS needs help to load dependent libraries for dlopen().]) ++fi ++]) ++m4trace:config/ltdl.m4:536: -1- AU_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [m4_if($#, 0, [LT_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS($@)])]) ++m4trace:config/ltdl.m4:536: -1- AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_SYS_DLOPEN_DEPLIBS' is obsolete. ++You should run autoupdate.])dnl ++m4_if($#, 0, [LT_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS($@)])]) ++m4trace:config/ltdl.m4:543: -1- AC_DEFUN([LT_SYS_MODULE_EXT], [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl ++AC_CACHE_CHECK([which extension is used for runtime loadable modules], ++ [libltdl_cv_shlibext], ++[ ++module=yes ++eval libltdl_cv_shlibext=$shrext_cmds ++ ]) ++if test -n "$libltdl_cv_shlibext"; then ++ m4_pattern_allow([LT_MODULE_EXT])dnl ++ AC_DEFINE_UNQUOTED([LT_MODULE_EXT], ["$libltdl_cv_shlibext"], ++ [Define to the extension used for runtime loadable modules, say, ".so".]) ++fi ++]) ++m4trace:config/ltdl.m4:559: -1- AU_DEFUN([AC_LTDL_SHLIBEXT], [m4_if($#, 0, [LT_SYS_MODULE_EXT], [LT_SYS_MODULE_EXT($@)])]) ++m4trace:config/ltdl.m4:559: -1- AC_DEFUN([AC_LTDL_SHLIBEXT], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_SHLIBEXT' is obsolete. ++You should run autoupdate.])dnl ++m4_if($#, 0, [LT_SYS_MODULE_EXT], [LT_SYS_MODULE_EXT($@)])]) ++m4trace:config/ltdl.m4:566: -1- AC_DEFUN([LT_SYS_MODULE_PATH], [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl ++AC_CACHE_CHECK([which variable specifies run-time module search path], ++ [lt_cv_module_path_var], [lt_cv_module_path_var="$shlibpath_var"]) ++if test -n "$lt_cv_module_path_var"; then ++ m4_pattern_allow([LT_MODULE_PATH_VAR])dnl ++ AC_DEFINE_UNQUOTED([LT_MODULE_PATH_VAR], ["$lt_cv_module_path_var"], ++ [Define to the name of the environment variable that determines the run-time module search path.]) ++fi ++]) ++m4trace:config/ltdl.m4:578: -1- AU_DEFUN([AC_LTDL_SHLIBPATH], [m4_if($#, 0, [LT_SYS_MODULE_PATH], [LT_SYS_MODULE_PATH($@)])]) ++m4trace:config/ltdl.m4:578: -1- AC_DEFUN([AC_LTDL_SHLIBPATH], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_SHLIBPATH' is obsolete. ++You should run autoupdate.])dnl ++m4_if($#, 0, [LT_SYS_MODULE_PATH], [LT_SYS_MODULE_PATH($@)])]) ++m4trace:config/ltdl.m4:585: -1- AC_DEFUN([LT_SYS_DLSEARCH_PATH], [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl ++AC_CACHE_CHECK([for the default library search path], ++ [lt_cv_sys_dlsearch_path], ++ [lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"]) ++if test -n "$lt_cv_sys_dlsearch_path"; then ++ sys_dlsearch_path= ++ for dir in $lt_cv_sys_dlsearch_path; do ++ if test -z "$sys_dlsearch_path"; then ++ sys_dlsearch_path="$dir" ++ else ++ sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" ++ fi ++ done ++ m4_pattern_allow([LT_DLSEARCH_PATH])dnl ++ AC_DEFINE_UNQUOTED([LT_DLSEARCH_PATH], ["$sys_dlsearch_path"], ++ [Define to the system default library search path.]) ++fi ++]) ++m4trace:config/ltdl.m4:606: -1- AU_DEFUN([AC_LTDL_SYSSEARCHPATH], [m4_if($#, 0, [LT_SYS_DLSEARCH_PATH], [LT_SYS_DLSEARCH_PATH($@)])]) ++m4trace:config/ltdl.m4:606: -1- AC_DEFUN([AC_LTDL_SYSSEARCHPATH], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_SYSSEARCHPATH' is obsolete. ++You should run autoupdate.])dnl ++m4_if($#, 0, [LT_SYS_DLSEARCH_PATH], [LT_SYS_DLSEARCH_PATH($@)])]) ++m4trace:config/ltdl.m4:632: -1- AC_DEFUN([LT_LIB_DLLOAD], [m4_pattern_allow([^LT_DLLOADERS$]) ++LT_DLLOADERS= ++AC_SUBST([LT_DLLOADERS]) ++ ++AC_LANG_PUSH([C]) ++ ++LIBADD_DLOPEN= ++AC_SEARCH_LIBS([dlopen], [dl], ++ [AC_DEFINE([HAVE_LIBDL], [1], ++ [Define if you have the libdl library or equivalent.]) ++ if test "$ac_cv_search_dlopen" != "none required" ; then ++ LIBADD_DLOPEN="-ldl" ++ fi ++ libltdl_cv_lib_dl_dlopen="yes" ++ LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"], ++ [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_DLFCN_H ++# include ++#endif ++ ]], [[dlopen(0, 0);]])], ++ [AC_DEFINE([HAVE_LIBDL], [1], ++ [Define if you have the libdl library or equivalent.]) ++ libltdl_cv_func_dlopen="yes" ++ LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"], ++ [AC_CHECK_LIB([svld], [dlopen], ++ [AC_DEFINE([HAVE_LIBDL], [1], ++ [Define if you have the libdl library or equivalent.]) ++ LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" ++ LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"])])]) ++if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes ++then ++ lt_save_LIBS="$LIBS" ++ LIBS="$LIBS $LIBADD_DLOPEN" ++ AC_CHECK_FUNCS([dlerror]) ++ LIBS="$lt_save_LIBS" ++fi ++AC_SUBST([LIBADD_DLOPEN]) ++ ++LIBADD_SHL_LOAD= ++AC_CHECK_FUNC([shl_load], ++ [AC_DEFINE([HAVE_SHL_LOAD], [1], ++ [Define if you have the shl_load function.]) ++ LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"], ++ [AC_CHECK_LIB([dld], [shl_load], ++ [AC_DEFINE([HAVE_SHL_LOAD], [1], ++ [Define if you have the shl_load function.]) ++ LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" ++ LIBADD_SHL_LOAD="-ldld"])]) ++AC_SUBST([LIBADD_SHL_LOAD]) ++ ++case $host_os in ++darwin[[1567]].*) ++# We only want this for pre-Mac OS X 10.4. ++ AC_CHECK_FUNC([_dyld_func_lookup], ++ [AC_DEFINE([HAVE_DYLD], [1], ++ [Define if you have the _dyld_func_lookup function.]) ++ LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"]) ++ ;; ++beos*) ++ LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" ++ ;; ++cygwin* | mingw* | os2* | pw32*) ++ AC_CHECK_DECLS([cygwin_conv_path], [], [], [[#include ]]) ++ LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" ++ ;; ++esac ++ ++AC_CHECK_LIB([dld], [dld_link], ++ [AC_DEFINE([HAVE_DLD], [1], ++ [Define if you have the GNU dld library.]) ++ LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"]) ++AC_SUBST([LIBADD_DLD_LINK]) ++ ++m4_pattern_allow([^LT_DLPREOPEN$]) ++LT_DLPREOPEN= ++if test -n "$LT_DLLOADERS" ++then ++ for lt_loader in $LT_DLLOADERS; do ++ LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " ++ done ++ AC_DEFINE([HAVE_LIBDLLOADER], [1], ++ [Define if libdlloader will be built on this platform]) ++fi ++AC_SUBST([LT_DLPREOPEN]) ++ ++dnl This isn't used anymore, but set it for backwards compatibility ++LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" ++AC_SUBST([LIBADD_DL]) ++ ++AC_LANG_POP ++]) ++m4trace:config/ltdl.m4:725: -1- AU_DEFUN([AC_LTDL_DLLIB], [m4_if($#, 0, [LT_LIB_DLLOAD], [LT_LIB_DLLOAD($@)])]) ++m4trace:config/ltdl.m4:725: -1- AC_DEFUN([AC_LTDL_DLLIB], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_DLLIB' is obsolete. ++You should run autoupdate.])dnl ++m4_if($#, 0, [LT_LIB_DLLOAD], [LT_LIB_DLLOAD($@)])]) ++m4trace:config/ltdl.m4:733: -1- AC_DEFUN([LT_SYS_SYMBOL_USCORE], [m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl ++AC_CACHE_CHECK([for _ prefix in compiled symbols], ++ [lt_cv_sys_symbol_underscore], ++ [lt_cv_sys_symbol_underscore=no ++ cat > conftest.$ac_ext <<_LT_EOF ++void nm_test_func(){} ++int main(){nm_test_func;return 0;} ++_LT_EOF ++ if AC_TRY_EVAL(ac_compile); then ++ # Now try to grab the symbols. ++ ac_nlist=conftest.nm ++ if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then ++ # See whether the symbols have a leading underscore. ++ if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then ++ lt_cv_sys_symbol_underscore=yes ++ else ++ if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then ++ : ++ else ++ echo "configure: cannot find nm_test_func in $ac_nlist" >&AS_MESSAGE_LOG_FD ++ fi ++ fi ++ else ++ echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD ++ fi ++ else ++ echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD ++ cat conftest.c >&AS_MESSAGE_LOG_FD ++ fi ++ rm -rf conftest* ++ ]) ++ sys_symbol_underscore=$lt_cv_sys_symbol_underscore ++ AC_SUBST([sys_symbol_underscore]) ++]) ++m4trace:config/ltdl.m4:770: -1- AU_DEFUN([AC_LTDL_SYMBOL_USCORE], [m4_if($#, 0, [LT_SYS_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE($@)])]) ++m4trace:config/ltdl.m4:770: -1- AC_DEFUN([AC_LTDL_SYMBOL_USCORE], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_SYMBOL_USCORE' is obsolete. ++You should run autoupdate.])dnl ++m4_if($#, 0, [LT_SYS_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE($@)])]) ++m4trace:config/ltdl.m4:777: -1- AC_DEFUN([LT_FUNC_DLSYM_USCORE], [AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl ++if test x"$lt_cv_sys_symbol_underscore" = xyes; then ++ if test x"$libltdl_cv_func_dlopen" = xyes || ++ test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then ++ AC_CACHE_CHECK([whether we have to add an underscore for dlsym], ++ [libltdl_cv_need_uscore], ++ [libltdl_cv_need_uscore=unknown ++ save_LIBS="$LIBS" ++ LIBS="$LIBS $LIBADD_DLOPEN" ++ _LT_TRY_DLOPEN_SELF( ++ [libltdl_cv_need_uscore=no], [libltdl_cv_need_uscore=yes], ++ [], [libltdl_cv_need_uscore=cross]) ++ LIBS="$save_LIBS" ++ ]) ++ fi ++fi ++ ++if test x"$libltdl_cv_need_uscore" = xyes; then ++ AC_DEFINE([NEED_USCORE], [1], ++ [Define if dlsym() requires a leading underscore in symbol names.]) ++fi ++]) ++m4trace:config/ltdl.m4:802: -1- AU_DEFUN([AC_LTDL_DLSYM_USCORE], [m4_if($#, 0, [LT_FUNC_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE($@)])]) ++m4trace:config/ltdl.m4:802: -1- AC_DEFUN([AC_LTDL_DLSYM_USCORE], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_DLSYM_USCORE' is obsolete. ++You should run autoupdate.])dnl ++m4_if($#, 0, [LT_FUNC_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE($@)])]) ++m4trace:config/ltoptions.m4:13: -1- AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) ++m4trace:config/ltoptions.m4:110: -1- AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen]) ++AC_DIAGNOSE([obsolete], ++[$0: Remove this warning and the call to _LT_SET_OPTION when you ++put the `dlopen' option into LT_INIT's first parameter.]) ++]) ++m4trace:config/ltoptions.m4:110: -1- AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_DLOPEN' is obsolete. ++You should run autoupdate.])dnl ++_LT_SET_OPTION([LT_INIT], [dlopen]) ++AC_DIAGNOSE([obsolete], ++[$0: Remove this warning and the call to _LT_SET_OPTION when you ++put the `dlopen' option into LT_INIT's first parameter.]) ++]) ++m4trace:config/ltoptions.m4:145: -1- AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl ++_LT_SET_OPTION([LT_INIT], [win32-dll]) ++AC_DIAGNOSE([obsolete], ++[$0: Remove this warning and the call to _LT_SET_OPTION when you ++put the `win32-dll' option into LT_INIT's first parameter.]) ++]) ++m4trace:config/ltoptions.m4:145: -1- AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_WIN32_DLL' is obsolete. ++You should run autoupdate.])dnl ++AC_REQUIRE([AC_CANONICAL_HOST])dnl ++_LT_SET_OPTION([LT_INIT], [win32-dll]) ++AC_DIAGNOSE([obsolete], ++[$0: Remove this warning and the call to _LT_SET_OPTION when you ++put the `win32-dll' option into LT_INIT's first parameter.]) ++]) ++m4trace:config/ltoptions.m4:194: -1- AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) ++]) ++m4trace:config/ltoptions.m4:198: -1- AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) ++]) ++m4trace:config/ltoptions.m4:202: -1- AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) ++m4trace:config/ltoptions.m4:202: -1- AC_DEFUN([AM_ENABLE_SHARED], [AC_DIAGNOSE([obsolete], [The macro `AM_ENABLE_SHARED' is obsolete. ++You should run autoupdate.])dnl ++AC_ENABLE_SHARED($@)]) ++m4trace:config/ltoptions.m4:203: -1- AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) ++m4trace:config/ltoptions.m4:203: -1- AC_DEFUN([AM_DISABLE_SHARED], [AC_DIAGNOSE([obsolete], [The macro `AM_DISABLE_SHARED' is obsolete. ++You should run autoupdate.])dnl ++AC_DISABLE_SHARED($@)]) ++m4trace:config/ltoptions.m4:248: -1- AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) ++]) ++m4trace:config/ltoptions.m4:252: -1- AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) ++]) ++m4trace:config/ltoptions.m4:256: -1- AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) ++m4trace:config/ltoptions.m4:256: -1- AC_DEFUN([AM_ENABLE_STATIC], [AC_DIAGNOSE([obsolete], [The macro `AM_ENABLE_STATIC' is obsolete. ++You should run autoupdate.])dnl ++AC_ENABLE_STATIC($@)]) ++m4trace:config/ltoptions.m4:257: -1- AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) ++m4trace:config/ltoptions.m4:257: -1- AC_DEFUN([AM_DISABLE_STATIC], [AC_DIAGNOSE([obsolete], [The macro `AM_DISABLE_STATIC' is obsolete. ++You should run autoupdate.])dnl ++AC_DISABLE_STATIC($@)]) ++m4trace:config/ltoptions.m4:302: -1- AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) ++AC_DIAGNOSE([obsolete], ++[$0: Remove this warning and the call to _LT_SET_OPTION when you put ++the `fast-install' option into LT_INIT's first parameter.]) ++]) ++m4trace:config/ltoptions.m4:302: -1- AC_DEFUN([AC_ENABLE_FAST_INSTALL], [AC_DIAGNOSE([obsolete], [The macro `AC_ENABLE_FAST_INSTALL' is obsolete. ++You should run autoupdate.])dnl ++_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) ++AC_DIAGNOSE([obsolete], ++[$0: Remove this warning and the call to _LT_SET_OPTION when you put ++the `fast-install' option into LT_INIT's first parameter.]) ++]) ++m4trace:config/ltoptions.m4:309: -1- AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) ++AC_DIAGNOSE([obsolete], ++[$0: Remove this warning and the call to _LT_SET_OPTION when you put ++the `disable-fast-install' option into LT_INIT's first parameter.]) ++]) ++m4trace:config/ltoptions.m4:309: -1- AC_DEFUN([AC_DISABLE_FAST_INSTALL], [AC_DIAGNOSE([obsolete], [The macro `AC_DISABLE_FAST_INSTALL' is obsolete. ++You should run autoupdate.])dnl ++_LT_SET_OPTION([LT_INIT], [disable-fast-install]) ++AC_DIAGNOSE([obsolete], ++[$0: Remove this warning and the call to _LT_SET_OPTION when you put ++the `disable-fast-install' option into LT_INIT's first parameter.]) ++]) ++m4trace:config/ltoptions.m4:342: -1- AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) ++AC_DIAGNOSE([obsolete], ++[$0: Remove this warning and the call to _LT_SET_OPTION when you ++put the `pic-only' option into LT_INIT's first parameter.]) ++]) ++m4trace:config/ltoptions.m4:342: -1- AC_DEFUN([AC_LIBTOOL_PICMODE], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_PICMODE' is obsolete. ++You should run autoupdate.])dnl ++_LT_SET_OPTION([LT_INIT], [pic-only]) ++AC_DIAGNOSE([obsolete], ++[$0: Remove this warning and the call to _LT_SET_OPTION when you ++put the `pic-only' option into LT_INIT's first parameter.]) ++]) ++m4trace:config/ltsugar.m4:13: -1- AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) ++m4trace:config/ltversion.m4:18: -1- AC_DEFUN([LTVERSION_VERSION], [macro_version='2.2.6' ++macro_revision='1.3012' ++_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) ++_LT_DECL(, macro_revision, 0) ++]) ++m4trace:config/lt~obsolete.m4:36: -1- AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) ++m4trace:config/lt~obsolete.m4:40: -1- AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH]) ++m4trace:config/lt~obsolete.m4:41: -1- AC_DEFUN([_LT_AC_SHELL_INIT]) ++m4trace:config/lt~obsolete.m4:42: -1- AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX]) ++m4trace:config/lt~obsolete.m4:44: -1- AC_DEFUN([_LT_AC_TAGVAR]) ++m4trace:config/lt~obsolete.m4:45: -1- AC_DEFUN([AC_LTDL_ENABLE_INSTALL]) ++m4trace:config/lt~obsolete.m4:46: -1- AC_DEFUN([AC_LTDL_PREOPEN]) ++m4trace:config/lt~obsolete.m4:47: -1- AC_DEFUN([_LT_AC_SYS_COMPILER]) ++m4trace:config/lt~obsolete.m4:48: -1- AC_DEFUN([_LT_AC_LOCK]) ++m4trace:config/lt~obsolete.m4:49: -1- AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE]) ++m4trace:config/lt~obsolete.m4:50: -1- AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF]) ++m4trace:config/lt~obsolete.m4:51: -1- AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O]) ++m4trace:config/lt~obsolete.m4:52: -1- AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS]) ++m4trace:config/lt~obsolete.m4:53: -1- AC_DEFUN([AC_LIBTOOL_OBJDIR]) ++m4trace:config/lt~obsolete.m4:54: -1- AC_DEFUN([AC_LTDL_OBJDIR]) ++m4trace:config/lt~obsolete.m4:55: -1- AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH]) ++m4trace:config/lt~obsolete.m4:56: -1- AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP]) ++m4trace:config/lt~obsolete.m4:57: -1- AC_DEFUN([AC_PATH_MAGIC]) ++m4trace:config/lt~obsolete.m4:58: -1- AC_DEFUN([AC_PROG_LD_GNU]) ++m4trace:config/lt~obsolete.m4:59: -1- AC_DEFUN([AC_PROG_LD_RELOAD_FLAG]) ++m4trace:config/lt~obsolete.m4:60: -1- AC_DEFUN([AC_DEPLIBS_CHECK_METHOD]) ++m4trace:config/lt~obsolete.m4:61: -1- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI]) ++m4trace:config/lt~obsolete.m4:62: -1- AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE]) ++m4trace:config/lt~obsolete.m4:63: -1- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC]) ++m4trace:config/lt~obsolete.m4:64: -1- AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS]) ++m4trace:config/lt~obsolete.m4:65: -1- AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP]) ++m4trace:config/lt~obsolete.m4:66: -1- AC_DEFUN([LT_AC_PROG_EGREP]) ++m4trace:config/lt~obsolete.m4:71: -1- AC_DEFUN([_AC_PROG_LIBTOOL]) ++m4trace:config/lt~obsolete.m4:72: -1- AC_DEFUN([AC_LIBTOOL_SETUP]) ++m4trace:config/lt~obsolete.m4:73: -1- AC_DEFUN([_LT_AC_CHECK_DLFCN]) ++m4trace:config/lt~obsolete.m4:74: -1- AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER]) ++m4trace:config/lt~obsolete.m4:75: -1- AC_DEFUN([_LT_AC_TAGCONFIG]) ++m4trace:config/lt~obsolete.m4:77: -1- AC_DEFUN([_LT_AC_LANG_CXX]) ++m4trace:config/lt~obsolete.m4:78: -1- AC_DEFUN([_LT_AC_LANG_F77]) ++m4trace:config/lt~obsolete.m4:79: -1- AC_DEFUN([_LT_AC_LANG_GCJ]) ++m4trace:config/lt~obsolete.m4:80: -1- AC_DEFUN([AC_LIBTOOL_RC]) ++m4trace:config/lt~obsolete.m4:81: -1- AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG]) ++m4trace:config/lt~obsolete.m4:82: -1- AC_DEFUN([_LT_AC_LANG_C_CONFIG]) ++m4trace:config/lt~obsolete.m4:83: -1- AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG]) ++m4trace:config/lt~obsolete.m4:84: -1- AC_DEFUN([_LT_AC_LANG_CXX_CONFIG]) ++m4trace:config/lt~obsolete.m4:85: -1- AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG]) ++m4trace:config/lt~obsolete.m4:86: -1- AC_DEFUN([_LT_AC_LANG_F77_CONFIG]) ++m4trace:config/lt~obsolete.m4:87: -1- AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG]) ++m4trace:config/lt~obsolete.m4:88: -1- AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG]) ++m4trace:config/lt~obsolete.m4:89: -1- AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG]) ++m4trace:config/lt~obsolete.m4:90: -1- AC_DEFUN([_LT_AC_LANG_RC_CONFIG]) ++m4trace:config/lt~obsolete.m4:91: -1- AC_DEFUN([AC_LIBTOOL_CONFIG]) ++m4trace:config/lt~obsolete.m4:92: -1- AC_DEFUN([_LT_AC_FILE_LTDLL_C]) ++m4trace:config/ompi_case_sensitive_fs_setup.m4:20: -1- AC_DEFUN([OMPI_CASE_SENSITIVE_FS_SETUP], [ ++# ++# Arguments: none ++# ++# Dependencies: None ++# ++# See if we are on a case sensitive filesystem. Some filesystems ++# (like HFS+ on MacOS X and MS Windows) are not case sensitive - mpicc ++# and mpiCC are the same file. ++# ++# Sets prefix_OS_HAVE_CASE_SENSITIVE_FS to 1 if filesystem is case ++# sensitive (ie, mpicc and mpiCC will be different files) or 0 if ++# filesystem is not case sensitive (ie, mpicc and mpiCC will be ++# the same file). ++# ++# ++ ++have_cs_fs=1 ++ ++AC_MSG_CHECKING([if build filesystem is case sensitive]) ++cat > conf_fs_test.$$ < CONF_FS_TEST.$$ < ++ /* Check for the longest available __attribute__ (since gcc-2.3) */ ++ struct foo { ++ char a; ++ int x[2] __attribute__ ((__packed__)); ++ }; ++ ], ++ [], ++ [ompi_cv___attribute__=1], ++ [ompi_cv___attribute__=0], ++ ) ++ ++ if test "$ompi_cv___attribute__" = "1" ; then ++ AC_TRY_COMPILE( ++ [#include ++ /* Check for the longest available __attribute__ (since gcc-2.3) */ ++ struct foo { ++ char a; ++ int x[2] __attribute__ ((__packed__)); ++ }; ++ ], ++ [], ++ [ompi_cv___attribute__=1], ++ [ompi_cv___attribute__=0], ++ ) ++ fi ++ ]) ++ AC_DEFINE_UNQUOTED(OMPI_HAVE_ATTRIBUTE, [$ompi_cv___attribute__], ++ [Whether your compiler has __attribute__ or not]) ++ ++# ++# Now that we know the compiler support __attribute__ let's check which kind of ++# attributed are supported. ++# ++ if test "$ompi_cv___attribute__" = "0" ; then ++ AC_MSG_RESULT([no]) ++ ompi_cv___attribute__aligned=0 ++ ompi_cv___attribute__always_inline=0 ++ ompi_cv___attribute__cold=0 ++ ompi_cv___attribute__const=0 ++ ompi_cv___attribute__deprecated=0 ++ ompi_cv___attribute__format=0 ++ ompi_cv___attribute__hot=0 ++ ompi_cv___attribute__malloc=0 ++ ompi_cv___attribute__may_alias=0 ++ ompi_cv___attribute__no_instrument_function=0 ++ ompi_cv___attribute__nonnull=0 ++ ompi_cv___attribute__noreturn=0 ++ ompi_cv___attribute__packed=0 ++ ompi_cv___attribute__pure=0 ++ ompi_cv___attribute__sentinel=0 ++ ompi_cv___attribute__unused=0 ++ ompi_cv___attribute__visibility=0 ++ ompi_cv___attribute__warn_unused_result=0 ++ ompi_cv___attribute__weak_alias=0 ++ else ++ AC_MSG_RESULT([yes]) ++ ++ _OMPI_CHECK_SPECIFIC_ATTRIBUTE([aligned], ++ [struct foo { char text[4]; } __attribute__ ((__aligned__(8)));], ++ [], ++ []) ++ ++ # ++ # Ignored by PGI-6.2.5; -- recognized by output-parser ++ # ++ _OMPI_CHECK_SPECIFIC_ATTRIBUTE([always_inline], ++ [int foo (int arg) __attribute__ ((__always_inline__));], ++ [], ++ []) ++ ++ _OMPI_CHECK_SPECIFIC_ATTRIBUTE([cold], ++ [ ++ int foo(int arg1, int arg2) __attribute__ ((__cold__)); ++ int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } ++ ], ++ [], ++ []) ++ ++ _OMPI_CHECK_SPECIFIC_ATTRIBUTE([const], ++ [ ++ int foo(int arg1, int arg2) __attribute__ ((__const__)); ++ int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } ++ ], ++ [], ++ []) ++ ++ ++ _OMPI_CHECK_SPECIFIC_ATTRIBUTE([deprecated], ++ [ ++ int foo(int arg1, int arg2) __attribute__ ((__deprecated__)); ++ int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } ++ ], ++ [], ++ []) ++ ++ ++ ATTRIBUTE_CFLAGS= ++ case "$ompi_c_vendor" in ++ gnu) ++ ATTRIBUTE_CFLAGS="-Wall" ++ ;; ++ intel) ++ # we want specifically the warning on format string conversion ++ ATTRIBUTE_CFLAGS="-we181" ++ ;; ++ esac ++ _OMPI_CHECK_SPECIFIC_ATTRIBUTE([format], ++ [ ++ int this_printf (void *my_object, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3))); ++ ], ++ [ ++ static int usage (int * argument); ++ extern int this_printf (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3))); ++ ++ static int usage (int * argument) { ++ return this_printf (*argument, "%d", argument); /* This should produce a format warning */ ++ } ++ /* The autoconf-generated main-function is int main(), which produces a warning by itself */ ++ int main(void); ++ ], ++ [$ATTRIBUTE_CFLAGS]) ++ ++ _OMPI_CHECK_SPECIFIC_ATTRIBUTE([hot], ++ [ ++ int foo(int arg1, int arg2) __attribute__ ((__hot__)); ++ int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } ++ ], ++ [], ++ []) ++ ++ _OMPI_CHECK_SPECIFIC_ATTRIBUTE([malloc], ++ [ ++#ifdef HAVE_STDLIB_H ++# include ++#endif ++ int * foo(int arg1) __attribute__ ((__malloc__)); ++ int * foo(int arg1) { return (int*) malloc(arg1); } ++ ], ++ [], ++ []) ++ ++ ++ # ++ # Attribute may_alias: No suitable cross-check available, that works for non-supporting compilers ++ # Ignored by intel-9.1.045 -- turn off with -wd1292 ++ # Ignored by PGI-6.2.5; ignore not detected due to missing cross-check ++ # ++ _OMPI_CHECK_SPECIFIC_ATTRIBUTE([may_alias], ++ [int * p_value __attribute__ ((__may_alias__));], ++ [], ++ []) ++ ++ ++ _OMPI_CHECK_SPECIFIC_ATTRIBUTE([no_instrument_function], ++ [int * foo(int arg1) __attribute__ ((__no_instrument_function__));], ++ [], ++ []) ++ ++ ++ # ++ # Attribute nonnull: ++ # Ignored by intel-compiler 9.1.045 -- recognized by cross-check ++ # Ignored by PGI-6.2.5 (pgCC) -- recognized by cross-check ++ # ++ ATTRIBUTE_CFLAGS= ++ case "$ompi_c_vendor" in ++ gnu) ++ ATTRIBUTE_CFLAGS="-Wall" ++ ;; ++ intel) ++ # we do not want to get ignored attributes warnings, but rather real warnings ++ ATTRIBUTE_CFLAGS="-wd1292" ++ ;; ++ esac ++ _OMPI_CHECK_SPECIFIC_ATTRIBUTE([nonnull], ++ [ ++ int square(int *arg) __attribute__ ((__nonnull__)); ++ int square(int *arg) { return *arg; } ++ ], ++ [ ++ static int usage(int * argument); ++ int square(int * argument) __attribute__ ((__nonnull__)); ++ int square(int * argument) { return (*argument) * (*argument); } ++ ++ static int usage(int * argument) { ++ return square( ((void*)0) ); /* This should produce an argument must be nonnull warning */ ++ } ++ /* The autoconf-generated main-function is int main(), which produces a warning by itself */ ++ int main(void); ++ ], ++ [$ATTRIBUTE_CFLAGS]) ++ ++ ++ _OMPI_CHECK_SPECIFIC_ATTRIBUTE([noreturn], ++ [ ++#ifdef HAVE_UNISTD_H ++# include ++#endif ++#ifdef HAVE_STDLIB_H ++# include ++#endif ++ void fatal(int arg1) __attribute__ ((__noreturn__)); ++ void fatal(int arg1) { exit(arg1); } ++ ], ++ [], ++ []) ++ ++ _OMPI_CHECK_SPECIFIC_ATTRIBUTE([packed], ++ [ ++ struct foo { ++ char a; ++ int x[2] __attribute__ ((__packed__)); ++ }; ++ ], ++ [], ++ []) ++ ++ _OMPI_CHECK_SPECIFIC_ATTRIBUTE([pure], ++ [ ++ int square(int arg) __attribute__ ((__pure__)); ++ int square(int arg) { return arg * arg; } ++ ], ++ [], ++ []) ++ ++ # ++ # Attribute sentinel: ++ # Ignored by the intel-9.1.045 -- recognized by cross-check ++ # intel-10.0beta works fine ++ # Ignored by PGI-6.2.5 (pgCC) -- recognized by output-parser and cross-check ++ # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore) ++ # ++ ATTRIBUTE_CFLAGS= ++ case "$ompi_c_vendor" in ++ gnu) ++ ATTRIBUTE_CFLAGS="-Wall" ++ ;; ++ intel) ++ # we do not want to get ignored attributes warnings ++ ATTRIBUTE_CFLAGS="-wd1292" ++ ;; ++ esac ++ _OMPI_CHECK_SPECIFIC_ATTRIBUTE([sentinel], ++ [ ++ int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__)); ++ ], ++ [ ++ static int usage(int * argument); ++ int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__)); ++ ++ static int usage(int * argument) { ++ void * last_arg_should_be_null = argument; ++ return my_execlp ("lala", "/home/there", last_arg_should_be_null); /* This should produce a warning */ ++ } ++ /* The autoconf-generated main-function is int main(), which produces a warning by itself */ ++ int main(void); ++ ], ++ [$ATTRIBUTE_CFLAGS]) ++ ++ _OMPI_CHECK_SPECIFIC_ATTRIBUTE([unused], ++ [ ++ int square(int arg1 __attribute__ ((__unused__)), int arg2); ++ int square(int arg1, int arg2) { return arg2; } ++ ], ++ [], ++ []) ++ ++ ++ # ++ # Ignored by PGI-6.2.5 (pgCC) -- recognized by the output-parser ++ # ++ _OMPI_CHECK_SPECIFIC_ATTRIBUTE([visibility], ++ [ ++ int square(int arg1) __attribute__ ((__visibility__("hidden"))); ++ ], ++ [], ++ []) ++ ++ ++ # ++ # Attribute warn_unused_result: ++ # Ignored by the intel-compiler 9.1.045 -- recognized by cross-check ++ # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore) ++ # ++ ATTRIBUTE_CFLAGS= ++ case "$ompi_c_vendor" in ++ gnu) ++ ATTRIBUTE_CFLAGS="-Wall" ++ ;; ++ intel) ++ # we do not want to get ignored attributes warnings ++ ATTRIBUTE_CFLAGS="-wd1292" ++ ;; ++ esac ++ _OMPI_CHECK_SPECIFIC_ATTRIBUTE([warn_unused_result], ++ [ ++ int foo(int arg) __attribute__ ((__warn_unused_result__)); ++ int foo(int arg) { return arg + 3; } ++ ], ++ [ ++ static int usage(int * argument); ++ int foo(int arg) __attribute__ ((__warn_unused_result__)); ++ ++ int foo(int arg) { return arg + 3; } ++ static int usage(int * argument) { ++ foo (*argument); /* Should produce an unused result warning */ ++ return 0; ++ } ++ ++ /* The autoconf-generated main-function is int main(), which produces a warning by itself */ ++ int main(void); ++ ], ++ [$ATTRIBUTE_CFLAGS]) ++ ++ ++ _OMPI_CHECK_SPECIFIC_ATTRIBUTE([weak_alias], ++ [ ++ int foo(int arg); ++ int foo(int arg) { return arg + 3; } ++ int foo2(int arg) __attribute__ ((__weak__, __alias__("foo"))); ++ ], ++ [], ++ []) ++ ++ fi ++ ++ # Now that all the values are set, define them ++ ++ AC_DEFINE_UNQUOTED(OMPI_HAVE_ATTRIBUTE_ALIGNED, [$ompi_cv___attribute__aligned], ++ [Whether your compiler has __attribute__ aligned or not]) ++ AC_DEFINE_UNQUOTED(OMPI_HAVE_ATTRIBUTE_ALWAYS_INLINE, [$ompi_cv___attribute__always_inline], ++ [Whether your compiler has __attribute__ always_inline or not]) ++ AC_DEFINE_UNQUOTED(OMPI_HAVE_ATTRIBUTE_COLD, [$ompi_cv___attribute__cold], ++ [Whether your compiler has __attribute__ cold or not]) ++ AC_DEFINE_UNQUOTED(OMPI_HAVE_ATTRIBUTE_CONST, [$ompi_cv___attribute__const], ++ [Whether your compiler has __attribute__ const or not]) ++ AC_DEFINE_UNQUOTED(OMPI_HAVE_ATTRIBUTE_DEPRECATED, [$ompi_cv___attribute__deprecated], ++ [Whether your compiler has __attribute__ deprecated or not]) ++ AC_DEFINE_UNQUOTED(OMPI_HAVE_ATTRIBUTE_FORMAT, [$ompi_cv___attribute__format], ++ [Whether your compiler has __attribute__ format or not]) ++ AC_DEFINE_UNQUOTED(OMPI_HAVE_ATTRIBUTE_HOT, [$ompi_cv___attribute__hot], ++ [Whether your compiler has __attribute__ hot or not]) ++ AC_DEFINE_UNQUOTED(OMPI_HAVE_ATTRIBUTE_MALLOC, [$ompi_cv___attribute__malloc], ++ [Whether your compiler has __attribute__ malloc or not]) ++ AC_DEFINE_UNQUOTED(OMPI_HAVE_ATTRIBUTE_MAY_ALIAS, [$ompi_cv___attribute__may_alias], ++ [Whether your compiler has __attribute__ may_alias or not]) ++ AC_DEFINE_UNQUOTED(OMPI_HAVE_ATTRIBUTE_NO_INSTRUMENT_FUNCTION, [$ompi_cv___attribute__no_instrument_function], ++ [Whether your compiler has __attribute__ no_instrument_function or not]) ++ AC_DEFINE_UNQUOTED(OMPI_HAVE_ATTRIBUTE_NONNULL, [$ompi_cv___attribute__nonnull], ++ [Whether your compiler has __attribute__ nonnull or not]) ++ AC_DEFINE_UNQUOTED(OMPI_HAVE_ATTRIBUTE_NORETURN, [$ompi_cv___attribute__noreturn], ++ [Whether your compiler has __attribute__ noreturn or not]) ++ AC_DEFINE_UNQUOTED(OMPI_HAVE_ATTRIBUTE_PACKED, [$ompi_cv___attribute__packed], ++ [Whether your compiler has __attribute__ packed or not]) ++ AC_DEFINE_UNQUOTED(OMPI_HAVE_ATTRIBUTE_PURE, [$ompi_cv___attribute__pure], ++ [Whether your compiler has __attribute__ pure or not]) ++ AC_DEFINE_UNQUOTED(OMPI_HAVE_ATTRIBUTE_SENTINEL, [$ompi_cv___attribute__sentinel], ++ [Whether your compiler has __attribute__ sentinel or not]) ++ AC_DEFINE_UNQUOTED(OMPI_HAVE_ATTRIBUTE_UNUSED, [$ompi_cv___attribute__unused], ++ [Whether your compiler has __attribute__ unused or not]) ++ AC_DEFINE_UNQUOTED(OMPI_HAVE_ATTRIBUTE_VISIBILITY, [$ompi_cv___attribute__visibility], ++ [Whether your compiler has __attribute__ visibility or not]) ++ AC_DEFINE_UNQUOTED(OMPI_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT, [$ompi_cv___attribute__warn_unused_result], ++ [Whether your compiler has __attribute__ warn unused result or not]) ++ AC_DEFINE_UNQUOTED(OMPI_HAVE_ATTRIBUTE_WEAK_ALIAS, [$ompi_cv___attribute__weak_alias], ++ [Whether your compiler has __attribute__ weak alias or not]) ++]) ++m4trace:config/ompi_check_broken_qsort.m4:37: -1- AC_DEFUN([OMPI_CHECK_BROKEN_QSORT], [ ++ AC_ARG_WITH([broken-qsort], ++ [AC_HELP_STRING([--with-broken-qsort], ++ [Build with FreeBSD qsort instead of native qsort (default: no)])]) ++ AC_MSG_CHECKING([for broken qsort]) ++ ++ if test "$with_broken_qsort" = "yes"; then ++ result="yes" ++ define_result=1 ++ else ++ result="no" ++ define_result=0 ++ fi ++ AC_MSG_RESULT([$result]) ++ AC_DEFINE_UNQUOTED([OMPI_HAVE_BROKEN_QSORT], [$define_result], ++ [whether qsort is broken or not]) ++]) ++m4trace:config/ompi_check_compiler_works.m4:28: -1- AC_DEFUN([OMPI_CHECK_COMPILER_WORKS], [ AS_VAR_PUSHDEF([lang_var], [ompi_cv_$1_works]) ++ ++ AC_CACHE_CHECK([if $1 compiler works], lang_var, ++ [AC_LANG_PUSH($1) ++ AC_RUN_IFELSE([AC_LANG_PROGRAM([$2], [$3])], ++ [AS_VAR_SET(lang_var, ["yes"])], ++ [AS_VAR_SET(lang_var, ["no"])], ++ [AC_LINK_IFELSE([AC_LANG_PROGRAM([$2], [$3])], ++ [AS_VAR_SET(lang_var, ["links (cross compiling)"])], ++ [AS_VAR_SET(lang_var, ["no"])])]) ++ AC_LANG_POP($1)]) ++ AS_IF([test "AS_VAR_GET(lang_var)" = "no"], ++ [cat <&2 ++********************************************************************** ++* It appears that your $1 compiler is unable to produce working ++* executables. A simple test application failed to properly ++* execute. Note that this is likely not a problem with Open MPI, ++* but a problem with the local compiler installation. More ++* information (including exactly what command was given to the ++* compiler and what error resulted when the command was executed) is ++* available in the config.log file in this directory. ++********************************************************************** ++EOF ++ $5], [$4]) ++ ++ AS_VAR_POPDEF([lang_var])dnl ++]) ++m4trace:config/ompi_check_func_lib.m4:27: -1- AC_DEFUN([OMPI_CHECK_FUNC_LIB], [ ++ AS_VAR_PUSHDEF([ompi_var], [ompi_cv_func_lib_$1_$2])dnl ++ AC_CACHE_CHECK([if we need -l$2 for $1], ++ ompi_var, ++ [AC_LINK_IFELSE([AC_LANG_FUNC_LINK_TRY([$1])], ++ [AS_VAR_SET(ompi_var, "no")], ++ [LIBS_save="$LIBS" ++ LIBS="$LIBS -l$2" ++ AC_LINK_IFELSE([AC_LANG_FUNC_LINK_TRY([$1])], ++ [AS_VAR_SET(ompi_var, "yes")], ++ [AS_VAR_SET(ompi_var, "not found")]) ++ LIBS="$LIBS_save"])]) ++ AS_IF([test "AS_VAR_GET(ompi_var)" = "yes"], ++ [LIBS="$LIBS -l$2"]) ++ ++ # see if we actually have $1. Use AC_CHECK_FUNCS so that it ++ # does the glibc "not implemented" check. Will use the current LIBS, ++ # so will check in -l$2 if we decided we needed it above ++ AC_CHECK_FUNCS([$1], $3, $4) ++ AS_VAR_POPDEF([ompi_var])dnl ++]) ++m4trace:config/ompi_check_gm.m4:21: -1- AC_DEFUN([_OMPI_CHECK_GM_CONFIG], [ ++ u_OMPI_CHECK_GM_CONFIG_SAVE_CPPFLAGS="$CPPFLAGS" ++ u_OMPI_CHECK_GM_CONFIG_SAVE_LDFLAGS="$LDFLAGS" ++ u_OMPI_CHECK_GM_CONFIG_SAVE_LIBS="$LIBS" ++ ++ CPPFLAGS="$CPPFLAGS $$1_CPPFLAGS" ++ LDFLAGS="$LDFLAGS $$1_LDFLAGS" ++ LIBS="$LIBS $$1_LIBS" ++ ++ # ++ # See if we have GM_API_VERSION. If we do, use it. If not, find the ++ # highest one available. It seems that GM_API_VERSION was introduced ++ # somewhere after 1.3 but before 1.6. :-\ ++ # ++ AC_MSG_CHECKING(for GM_API_VERSION) ++ AC_TRY_COMPILE([#include], ++ [int foo = GM_API_VERSION;], ++ have_gm_api_ver_msg=yes gm_api_ver=GM_API_VERSION, ++ have_gm_api_ver_msg=no gm_api_ver="") ++ AC_MSG_RESULT([$have_gm_api_ver_msg]) ++ if test "$gm_api_ver" = ""; then ++ found=0 ++ for val in 5 4 3; do ++ if test "$found" = "0"; then ++ var="GM_API_VERSION_1_$val" ++ AC_MSG_CHECKING(for $var) ++ AC_TRY_COMPILE([#include], ++ [int foo = $var;], ++ msg=yes found=1 gm_api_ver=$var, ++ msg=no found=0 gm_api_ver="") ++ AC_MSG_RESULT($msg) ++ fi ++ done ++ fi ++ if test "$gm_api_ver" = ""; then ++ AC_MSG_WARN([*** Could not find a supported GM_API_VERSION]) ++ AC_MSG_ERROR([*** Cannot continue]) ++ fi ++ AC_DEFINE_UNQUOTED([OMPI_MCA_]m4_translit([$1], [a-z], [A-Z])[_API_VERSION], $gm_api_ver, ++ [Version of the GM API to use]) ++ unset gm_api_ver have_gm_api_ver_msg found val msg ++ ++ # ++ # Do we have gm_put()? ++ # gm_put() was introduced in gm 2.0, and is exactly identical to gm ++ # 1.6's gm_directed_send_with_callback(). The name was simply changed ++ # for consistency/symmtery with gm_get(). ++ # ++ AC_MSG_CHECKING([for gm_put()]) ++ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ++ ]], ++ [[gm_put(0, 0, 0, 0, 0, 0, 0, 0, 0);]])], ++ [HAVE_RDMA_PUT=1 MSG=yes], ++ [HAVE_RDMA_PUT=0 MSG="no, use gm_directed_send_with_callback()"]) ++ AC_DEFINE_UNQUOTED([OMPI_MCA_]m4_translit([$1], [a-z], [A-Z])[_HAVE_RDMA_PUT], $HAVE_RDMA_PUT, ++ [Whether we have gm_put() or gm_directed_send_with_callback()]) ++ AC_MSG_RESULT([$MSG]) ++ ++ # ++ # Do we have gm_get()? ++ # gm_get() was introduced in gm 2.0. ++ # ++ AC_MSG_CHECKING([for gm_get()]) ++ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ++ ]], ++ [[gm_get(0, 0, 0, 0, 0, 0, 0, 0, 0);]])], ++ [HAVE_RDMA_GET=1 MSG=yes], ++ [HAVE_RDMA_GET=0 MSG=no]) ++ AC_DEFINE_UNQUOTED([OMPI_MCA_]m4_translit([$1], [a-z], [A-Z])[_HAVE_RDMA_GET], $HAVE_RDMA_GET, ++ [Whether we have get_get() or not]) ++ AC_MSG_RESULT([$MSG]) ++ ++ # Now test to see if the targetted GM is a broken one broken gm builds ++ AC_MSG_CHECKING([for broken GM 2.x RDMA gets build]) ++ AC_TRY_COMPILE([ ++ #include ++ ], [ ++ #if GM_API_VERSION_2_0 && \ ++ ((GM_API_VERSION_2_1_0 && GM_API_VERSION < 0x20102) || \ ++ GM_API_VERSION < 0x2000c) ++ #error GM build is broken ++ #endif ], ++ [ mca_gm_broken=0 gm_build_broken=no ], ++ [ mca_gm_broken=1 gm_build_broken=yes ]) ++ AC_MSG_RESULT( [$gm_build_broken] ) ++ AC_DEFINE_UNQUOTED( [OMPI_MCA_]m4_translit([$1], [a-z], [A-Z])[_GET_BROKEN], $mca_gm_broken, ++ [The GM build has or not a broker gm_get function] ) ++ unset gm_build_broken mca_gm_broken ++ ++ AC_DEFINE_UNQUOTED( [OMPI_MCA_]m4_translit([$1], [a-z], [A-Z])[_SUPPORT_REGISTERING], 1, ++ [The OS support or not the virtal page registration] ) ++ ++ CPPFLAGS="$u_OMPI_CHECK_GM_CONFIG_SAVE_CPPFLAGS" ++ LDFLAGS="$u_OMPI_CHECK_GM_CONFIG_SAVE_LDFLAGS" ++ LIBS="$u_OMPI_CHECK_GM_CONFIG_SAVE_LIBS" ++]) ++m4trace:config/ompi_check_gm.m4:123: -1- AC_DEFUN([OMPI_CHECK_GM], [ ++ AC_ARG_WITH([gm], ++ [AC_HELP_STRING([--with-gm(=DIR)], ++ [Build GM (Myrinet) support, searching for libraries in DIR])]) ++ AC_ARG_WITH([gm-libdir], ++ [AC_HELP_STRING([--with-gm-libdir=DIR], ++ [Search for GM (Myrinet) libraries in DIR])]) ++ ++ AS_IF([test "$with_gm" != "no"], ++ [AS_IF([test ! -z "$with_gm" -a "$with_gm" != "yes"], ++ [ompi_check_gm_dir="$with_gm"]) ++ AS_IF([test ! -z "$with_gm_libdir" -a "$with_gm_libdir" != "yes"], ++ [ompi_check_gm_libdir="$with_gm_libdir"]) ++ ++ OMPI_CHECK_PACKAGE([$1], ++ [gm.h], ++ [gm], ++ [gm_init], ++ [], ++ [$ompi_check_gm_dir], ++ [$ompi_check_gm_libdir], ++ [ompi_check_gm_happy="yes"], ++ [ompi_check_gm_happy="no"])], ++ [ompi_check_gm_happy="no"]) ++ ++ AS_IF([test "$ompi_check_gm_happy" = "yes"], ++ [_OMPI_CHECK_GM_CONFIG($1) ++ $2], ++ [AS_IF([test ! -z "$with_gm" -a "$with_gm" != "no"], ++ [AC_MSG_ERROR([GM support requested but not found. Aborting])]) ++ $3]) ++]) ++m4trace:config/ompi_check_icc.m4:20: -1- AC_DEFUN([OMPI_CHECK_ICC_VARARGS], [ ++dnl ++dnl On EM64T, icc-8.1 before version 8.1.027 segfaulted, since ++dnl va_start was miscompiled... ++dnl ++AC_MSG_CHECKING([whether icc-8.1 for EM64T works with variable arguments]) ++AC_TRY_RUN([ ++#include ++#include ++#include ++ ++void func (int c, char * f, ...) ++{ ++ va_list arglist; ++ va_start (arglist, f); ++ /* vprintf (f, arglist); */ ++ va_end (arglist); ++} ++ ++int main () ++{ ++ FILE *f; ++ func (4711, "Help %d [%s]\n", 10, "ten"); ++ f=fopen ("conftestval", "w"); ++ if (!f) exit (1); ++ return 0; ++} ++ ++],[ompi_ac_icc_varargs=`test -f conftestval`],[ompi_ac_icc_varargs=1],[ompi_ac_icc_varargs=1]) ++ ++if test "$ompi_ac_icc_varargs" = "1"; then ++ AC_MSG_WARN([*** Problem running configure test!]) ++ AC_MSG_WARN([*** Your icc-8.1 compiler seems to miscompile va_start!]) ++ AC_MSG_WARN([*** Please upgrade compiler to at least version 8.1.027]) ++ AC_MSG_ERROR([*** Cannot continue.]) ++fi ++ ++AC_MSG_RESULT([yes]) ++ ++rm -rf conftest*]) ++m4trace:config/ompi_check_ident.m4:21: -1- AC_DEFUN([OMPI_CHECK_IDENT], [ ++ AC_MSG_CHECKING([for $4 ident string support]) ++ ++ ompi_pragma_ident_happy=0 ++ ompi_ident_happy=0 ++ ompi_static_const_char_happy=0 ++ _OMPI_CHECK_IDENT( ++ [$1], [$2], [$3], ++ [[#]pragma ident], [], ++ [ompi_pragma_ident_happy=1 ++ ompi_message="[#]pragma ident"], ++ _OMPI_CHECK_IDENT( ++ [$1], [$2], [$3], ++ [[#]ident], [], ++ [ompi_ident_happy=1 ++ ompi_message="[#]ident"], ++ _OMPI_CHECK_IDENT( ++ [$1], [$2], [$3], ++ [[#]pragma comment(exestr, ], [)], ++ [ompi_pragma_comment_happy=1 ++ ompi_message="[#]pragma comment"], ++ [ompi_static_const_char_happy=1 ++ ompi_message="static const char[[]]"]))) ++ ++ AC_DEFINE_UNQUOTED([OMPI_$1_USE_PRAGMA_IDENT], ++ [$ompi_pragma_ident_happy], [Use #pragma ident strings for $4 files]) ++ AC_DEFINE_UNQUOTED([OMPI_$1_USE_IDENT], ++ [$ompi_ident_happy], [Use #ident strings for $4 files]) ++ AC_DEFINE_UNQUOTED([OMPI_$1_USE_PRAGMA_COMMENT], ++ [$ompi_pragma_comment_happy], [Use #pragma comment for $4 files]) ++ AC_DEFINE_UNQUOTED([OMPI_$1_USE_CONST_CHAR_IDENT], ++ [$ompi_static_const_char_happy], [Use static const char[] strings for $4 files]) ++ ++ AC_MSG_RESULT([$ompi_message]) ++ ++ unset ompi_pragma_ident_happy ompi_ident_happy ompi_static_const_char_happy ompi_message ++]) ++m4trace:config/ompi_check_ident.m4:65: -1- AC_DEFUN([_OMPI_CHECK_IDENT], [ ++ eval ompi_compiler="\$$1" ++ eval ompi_flags="\$$2" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.$3 <&1 1>/dev/null ++ ompi_status=$? ++ AS_IF([test "$ompi_output" != "" -o "$ompi_status" = "0"], ++ [$6], ++ [$7])], ++ [OMPI_LOG_MSG([the failed program was:]) ++ OMPI_LOG_FILE([conftest.$3]) ++ $7] ++ [$7])]) ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++]) ++m4trace:config/ompi_check_loadleveler.m4:24: -1- AC_DEFUN([OMPI_CHECK_LOADLEVELER], [ ++ AC_ARG_WITH([loadleveler], ++ [AC_HELP_STRING([--with-loadleveler(=DIR)], ++ [Directory where the loadleveler software is installed])]) ++ ++ AS_IF([test "$with_loadleveler" = "no"], ++ [ompi_check_loadleveler_happy="no"], ++ [ompi_check_loadleveler_happy="yes" ++ AS_IF([test ! -z "$with_loadleveler" -a "$with_loadleveler" != "yes"], ++ [ompi_check_loadleveler_dir="$with_loadleveler"], ++ [ompi_check_loadleveler_dir=""])]) ++ ++ AS_IF([test "$ompi_check_loadleveler_happy" = "yes"], ++ [OMPI_CHECK_PACKAGE([$1], ++ [llapi.h], ++ [llapi], ++ [ll_query], ++ [], ++ [$ompi_check_loadleveler_dir], ++ [], ++ [ompi_check_loadleveler_happy="yes"], ++ [ompi_check_loadleveler_happy="no"])]) ++ ++ AS_IF([test "$ompi_check_loadleveler_happy" = "yes"], ++ [$2], ++ [AS_IF([test ! -z "$with_loadleveler" -a "$with_loadleveler" != "no"], ++ [AC_MSG_ERROR([LOADLEVELER support requested but not found. Aborting])]) ++ $3]) ++]) ++m4trace:config/ompi_check_lsf.m4:24: -1- AC_DEFUN([OMPI_CHECK_LSF], [ ++ AC_ARG_WITH([lsf], ++ [AC_HELP_STRING([--with-lsf(=DIR)], ++ [Build LSF support])]) ++ AC_ARG_WITH([lsf-libdir], ++ [AC_HELP_STRING([--with-lsf-libdir=DIR], ++ [Search for LSF libraries in DIR])]) ++ ++ # Defaults ++ ompi_check_lsf_dir_msg="compiler default" ++ ompi_check_lsf_libdir_msg="linker default" ++ ++ # Save directory names if supplied ++ AS_IF([test ! -z "$with_lsf" -a "$with_lsf" != "yes"], ++ [ompi_check_lsf_dir="$with_lsf" ++ ompi_check_lsf_dir_msg="$ompi_check_lsf_dir (from --with-lsf)"]) ++ AS_IF([test ! -z "$with_lsf_libdir" -a "$with_lsf_libdir" != "yes"], ++ [ompi_check_lsf_libdir="$with_lsf_libdir" ++ ompi_check_lsf_libdir_msg="$ompi_check_lsf_libdir (from --with-lsf-libdir)"]) ++ ++ # If no directories were specified, look for LSF_LIBDIR, ++ # LSF_INCLUDEDIR, and/or LSF_ENVDIR. ++ AS_IF([test -z "$ompi_check_lsf_dir" -a -z "$ompi_check_lsf_libdir"], ++ [AS_IF([test ! -z "$LSF_ENVDIR" -a -z "$LSF_LIBDIR" -a -f "$LSF_ENVDIR/lsf.conf"], ++ [LSF_LIBDIR=`egrep ^LSF_LIBDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-`]) ++ AS_IF([test ! -z "$LSF_ENVDIR" -a -z "$LSF_INCLUDEDIR" -a -f "$LSF_ENVDIR/lsf.conf"], ++ [LSF_INCLUDEDIR=`egrep ^LSF_INCLUDEDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-`]) ++ AS_IF([test ! -z "$LSF_LIBDIR"], ++ [ompi_check_lsf_libdir=$LSF_LIBDIR ++ ompi_check_lsf_libdir_msg="$LSF_LIBDIR (from \$LSF_LIBDIR)"]) ++ AS_IF([test ! -z "$LSF_INCLUDEDIR"], ++ [ompi_check_lsf_dir=`dirname $LSF_INCLUDEDIR` ++ ompi_check_lsf_dir_msg="$ompi_check_lsf_dir (from \$LSF_INCLUDEDIR)"])]) ++ ++ AS_IF([test "$with_lsf" = "no"], ++ [ompi_check_lsf_happy="no"], ++ [ompi_check_lsf_happy="yes"]) ++ ++ ompi_check_lsf_$1_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_lsf_$1_save_LDFLAGS="$LDFLAGS" ++ ompi_check_lsf_$1_save_LIBS="$LIBS" ++ ++ AS_IF([test "$ompi_check_lsf_happy" = "yes"], ++ [AC_MSG_CHECKING([for LSF dir]) ++ AC_MSG_RESULT([$ompi_check_lsf_dir_msg]) ++ AC_MSG_CHECKING([for LSF library dir]) ++ AC_MSG_RESULT([$ompi_check_lsf_libdir_msg]) ++ OMPI_CHECK_PACKAGE([$1], ++ [lsf/lsbatch.h], ++ [bat], ++ [lsb_launch], ++ [-llsf], ++ [$ompi_check_lsf_dir], ++ [$ompi_check_lsf_libdir], ++ [ompi_check_lsf_happy="yes"], ++ [ompi_check_lsf_happy="no"])]) ++ ++ CPPFLAGS="$ompi_check_lsf_$1_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_lsf_$1_save_LDFLAGS" ++ LIBS="$ompi_check_lsf_$1_save_LIBS" ++ ++ # Reset for the next time we're called ++ ompi_check_lsf_dir= ++ ompi_check_lsf_libdir= ++ ++ AS_IF([test "$ompi_check_lsf_happy" = "yes"], ++ [$2], ++ [AS_IF([test ! -z "$with_lsf" -a "$with_lsf" != "no"], ++ [AC_MSG_WARN([LSF support requested (via --with-lsf) but not found.]) ++ AC_MSG_ERROR([Aborting.])]) ++ $3]) ++]) ++m4trace:config/ompi_check_mx.m4:24: -1- AC_DEFUN([_OMPI_CHECK_MX_MAPPER], [ ++ AC_CACHE_CHECK([for mx_open_board], ++ [ompi_cv_func_mx_open_board], ++ [AC_LINK_IFELSE([AC_LANG_PROGRAM( ++ [ ++#include ++#include ++#include ++ ], [ ++mx_open_board(0, NULL); ++ ])], ++ [ompi_cv_func_mx_open_board="yes"], ++ [ompi_cv_func_mx_open_board="no"])]) ++ ++ AC_CACHE_CHECK([for mx__get_mapper_state], ++ [ompi_cv_func_mx__get_mapper_state], ++ [AC_LINK_IFELSE([AC_LANG_PROGRAM( ++ [ ++#include ++#include ++#include ++ ], [ ++mx__get_mapper_state(NULL, NULL); ++ ])], ++ [ompi_cv_func_mx__get_mapper_state="yes"], ++ [ompi_cv_func_mx__get_mapper_state="no"])]) ++ ++ AS_IF([test "$ompi_cv_func_mx_open_board" = "yes" -a "$ompi_cv_func_mx__get_mapper_state" = "yes"], ++ [mx_provide_mapper_state=1 ++ $2], ++ [mx_provide_mapper_state=0 ++ $3]) ++ AC_DEFINE_UNQUOTED([MX_HAVE_MAPPER_STATE], [$mx_provide_mapper_state], ++ [MX installation provide access to the mx_open_board and mx__get_mapper_state functions]) ++]) ++m4trace:config/ompi_check_mx.m4:66: -1- AC_DEFUN([OMPI_CHECK_MX], [ ++ AC_ARG_WITH([mx], ++ [AC_HELP_STRING([--with-mx(=DIR)], ++ [Build MX (Myrinet Express) support, searching for libraries in DIR])]) ++ AC_ARG_WITH([mx-libdir], ++ [AC_HELP_STRING([--with-mx-libdir=DIR], ++ [Search for MX (Myrinet Express) libraries in DIR])]) ++ ++ ompi_check_mx_$1_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_mx_$1_save_LDFLAGS="$LDFLAGS" ++ ompi_check_mx_$1_save_LIBS="$LIBS" ++ ++ AS_IF([test "$with_mx" != "no"], ++ [AS_IF([test ! -z "$with_mx" -a "$with_mx" != "yes"], ++ [ompi_check_mx_dir="$with_mx"]) ++ AS_IF([test ! -z "$with_mx_libdir" -a "$with_mx_libdir" != "yes"], ++ [ompi_check_mx_libdir="$with_mx_libdir"]) ++ ++ OMPI_CHECK_PACKAGE([$1], ++ [myriexpress.h], ++ [myriexpress], ++ [mx_finalize], ++ [], ++ [$ompi_check_mx_dir], ++ [$ompi_check_mx_libdir], ++ [ompi_check_mx_happy="yes"], ++ [ompi_check_mx_happy="no"])], ++ [ompi_check_mx_happy="no"]) ++ ++ CPPFLAGS="$CPPFLAGS $$1_CPPFLAGS" ++ LDFLAGS="$LDFLAGS $$1_LDFLAGS" ++ LIBS="$LIBS $$1_LIBS" ++ ++ # need at least version 1.0 ++ AS_IF([test "ompi_check_mx_happy" = "yes"], ++ [AC_CACHE_CHECK([for MX version 1.0 or later], ++ [ompi_cv_mx_version_ok], ++ [AC_PREPROC_IFELSE( ++ [AC_LANG_PROGRAM([ ++#include ++ ],[ ++#if MX_API < 0x300 ++#error "Version less than 0x300" ++#endif ++ ])], ++ [ompi_cv_mx_version_ok="yes"], ++ [ompi_cv_mx_version_ok="no"])])]) ++ AS_IF([test "$ompi_cv_mx_version_ok" = "no"], [ompi_check_mx_happy="no"]) ++ ++ AS_IF([test "$ompi_check_mx_happy" = "yes"], ++ [AC_CHECK_HEADERS([mx_extensions.h], ++ [AC_CHECK_FUNCS([mx_forget mx_register_unexp_handler]) ++ _OMPI_CHECK_MX_MAPPER()], ++ [AC_MSG_WARN([The MX support for Open MPI will be compiled without the ++MX extensions, which may result in lower performance. Please upgrade ++to at least MX 1.2.0 to enable the MX extensions.])])]) ++ ++ CPPFLAGS="$ompi_check_mx_$1_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_mx_$1_save_LDFLAGS" ++ LIBS="$ompi_check_mx_$1_save_LIBS" ++ ++ AS_IF([test "$ompi_check_mx_happy" = "yes" -a "$enable_progress_threads" = "yes"], ++ [AC_MSG_WARN([MX driver does not currently support progress threads. Disabling BTL.]) ++ ompi_check_mx_happy="no"]) ++ ++ AS_IF([test "$ompi_check_mx_happy" = "yes"], ++ [$2], ++ [AS_IF([test ! -z "$with_mx" -a "$with_mx" != "no"], ++ [AC_MSG_ERROR([MX support requested but not found. Aborting])]) ++ $3]) ++]) ++m4trace:config/ompi_check_openib.m4:30: -1- AC_DEFUN([OMPI_CHECK_OPENIB], [ ++ OMPI_VAR_SCOPE_PUSH([$1_msg]) ++ ++ # ++ # Openfabrics support ++ # ++ AC_ARG_WITH([openib], ++ [AC_HELP_STRING([--with-openib(=DIR)], ++ [Build OpenFabrics support, searching for libraries in DIR])]) ++ AC_ARG_WITH([openib-libdir], ++ [AC_HELP_STRING([--with-openib-libdir=DIR], ++ [Search for OpenFabrics libraries in DIR])]) ++ ++ # ++ # ConnectX XRC support ++ # ++ AC_ARG_ENABLE([openib-connectx-xrc], ++ [AC_HELP_STRING([--enable-openib-connectx-xrc], ++ [Enable ConnectX XRC support. If you do not have InfiniBand ConnectX adapters, you may disable the ConnectX XRC support. If you do not know which InfiniBand adapter is installed on your cluster, leave this option enabled (default: enabled)])], ++ [enable_connectx_xrc="$enableval"], [enable_connectx_xrc="yes"]) ++ # ++ # Openfabrics IBCM ++ # ++ AC_ARG_ENABLE([openib-ibcm], ++ [AC_HELP_STRING([--enable-openib-ibcm], ++ [Enable Open Fabrics IBCM support in openib BTL (default: disabled)])], ++ [enable_openib_ibcm="$enableval"], [enable_openib_ibcm="no"]) ++ # ++ # Openfabrics RDMACM ++ # ++ AC_ARG_ENABLE([openib-rdmacm], ++ [AC_HELP_STRING([--enable-openib-rdmacm], ++ [Enable Open Fabrics RDMACM support in openib BTL (default: enabled)])], ++ [enable_openib_rdmacm="$enableval"], [enable_openib_rdmacm="yes"]) ++ ++ AS_IF([test ! -z "$with_openib" -a "$with_openib" != "yes"], ++ [ompi_check_openib_dir="$with_openib"]) ++ AS_IF([test ! -z "$with_openib_libdir" -a "$with_openib_libdir" != "yes"], ++ [ompi_check_openib_libdir="$with_openib_libdir"]) ++ AS_IF([test "$with_openib" = "no"], ++ [ompi_check_openib_happy="no"], ++ [ompi_check_openib_happy="yes"]) ++ ++ ompi_check_openib_$1_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_openib_$1_save_LDFLAGS="$LDFLAGS" ++ ompi_check_openib_$1_save_LIBS="$LIBS" ++ ++ AS_IF([test "$ompi_check_openib_happy" = "yes"], ++ [AS_IF([test "$THREAD_TYPE" != "posix" -a "$memory_ptmalloc2_happy" = "yes"], ++ [AS_IF([test "$enable_ptmalloc2_internal" = "yes"], ++ [AC_MSG_WARN([POSIX threads are disabled, but]) ++ AC_MSG_WARN([--enable-ptmalloc2-internal was specified. This will]) ++ AC_MSG_WARN([cause memory corruption with OpenFabrics.]) ++ AC_MSG_WARN([Not building component.]) ++ ompi_check_openib_happy="no"], ++ [AC_MSG_WARN([POSIX threads are disabled, but the ptmalloc2 memory]) ++ AC_MSG_WARN([manager is being built. Compiling MPI applications with]) ++ AC_MSG_WARN([-lopenmpi-malloc will result in memory corruption; Open]) ++ AC_MSG_WARN([MPI will disable the openib BTL at run-time if such a]) ++ AC_MSG_WARN([combination is detected.]) ++ AC_MSG_WARN([You have been warned.])])])]) ++ ++ AS_IF([test "$ompi_check_openib_happy" = "yes"], ++ [AC_CHECK_HEADERS( ++ fcntl.h sys/poll.h, ++ [], ++ [AC_MSG_WARN([fcntl.h sys/poll.h not found. Can not build component.]) ++ ompi_check_openib_happy="no"])]) ++ ++ AS_IF([test "$ompi_check_openib_happy" = "yes"], ++ [OMPI_CHECK_PACKAGE([$1], ++ [infiniband/verbs.h], ++ [ibverbs], ++ [ibv_open_device], ++ [], ++ [$ompi_check_openib_dir], ++ [$ompi_check_openib_libdir], ++ [ompi_check_openib_happy="yes"], ++ [ompi_check_openib_happy="no"])]) ++ ++ CPPFLAGS="$CPPFLAGS $$1_CPPFLAGS" ++ LDFLAGS="$LDFLAGS $$1_LDFLAGS" ++ LIBS="$LIBS $$1_LIBS" ++ ++ AS_IF([test "$ompi_check_openib_happy" = "yes"], ++ [AC_CACHE_CHECK( ++ [number of arguments to ibv_create_cq], ++ [ompi_cv_func_ibv_create_cq_args], ++ [AC_LINK_IFELSE( ++ [AC_LANG_PROGRAM( ++ [[#include ]], ++ [[ibv_create_cq(NULL, 0, NULL, NULL, 0);]])], ++ [ompi_cv_func_ibv_create_cq_args=5], ++ [AC_LINK_IFELSE( ++ [AC_LANG_PROGRAM( ++ [[#include ]], ++ [[ibv_create_cq(NULL, 0, NULL);]])], ++ [ompi_cv_func_ibv_create_cq_args=3], ++ [ompi_cv_func_ibv_create_cq_args="unknown"])])]) ++ AS_IF([test "$ompi_cv_func_ibv_create_cq_args" = "unknown"], ++ [AC_MSG_WARN([Can not determine number of args to ibv_create_cq.]) ++ AC_MSG_WARN([Not building component.]) ++ ompi_check_openib_happy="no"], ++ [AC_DEFINE_UNQUOTED([OMPI_IBV_CREATE_CQ_ARGS], ++ [$ompi_cv_func_ibv_create_cq_args], ++ [Number of arguments to ibv_create_cq])])]) ++ ++ # Set these up so that we can do an AC_DEFINE below ++ # (unconditionally) ++ $1_have_xrc=0 ++ $1_have_rdmacm=0 ++ $1_have_ibcm=0 ++ ++ # If we have the openib stuff available, find out what we've got ++ AS_IF([test "$ompi_check_openib_happy" = "yes"], ++ [AC_CHECK_DECLS([IBV_EVENT_CLIENT_REREGISTER], [], [], ++ [#include ]) ++ AC_CHECK_FUNCS([ibv_get_device_list ibv_resize_cq]) ++ ++ # struct ibv_device.transport_type was added in OFED v1.2 ++ AC_CHECK_MEMBERS([struct ibv_device.transport_type], [], [], ++ [#include ]) ++ ++ # ibv_create_xrc_rcv_qp was added in OFED 1.3 ++ if test "$enable_connectx_xrc" = "yes"; then ++ AC_CHECK_FUNCS([ibv_create_xrc_rcv_qp], [$1_have_xrc=1]) ++ fi ++ ++ # Do we have a recent enough RDMA CM? Need to have the ++ # rdma_get_peer_addr (inline) function (originally appeared ++ # in OFED v1.3). ++ if test "$enable_openib_rdmacm" = "yes"; then ++ AC_CHECK_HEADERS([rdma/rdma_cma.h], ++ [AC_CHECK_LIB([rdmacm], [rdma_create_id], ++ [AC_MSG_CHECKING([for rdma_get_peer_addr]) ++ $1_msg=no ++ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include "rdma/rdma_cma.h" ++ ]], [[void *ret = (void*) rdma_get_peer_addr((struct rdma_cm_id*)0);]])], ++ [$1_have_rdmacm=1 ++ $1_msg=yes]) ++ AC_MSG_RESULT([$$1_msg])])]) ++ ++ if test "1" = "$$1_have_rdmacm"; then ++ $1_LIBS="-lrdmacm $$1_LIBS" ++ fi ++ fi ++ ++ # Do we have IB CM? (note that OFED IB CM depends on RDMA ++ # CM, so no need to add it into the other-libraries ++ # argument to AC_CHECK_ LIB). Note that we only want IBCM ++ # starting with OFED 1.2 or so, so check for ++ # ib_cm_open_device (introduced in libibcm 1.0/OFED 1.2). ++ if test "$enable_openib_ibcm" = "yes"; then ++ AC_CHECK_HEADERS([infiniband/cm.h], ++ [AC_CHECK_LIB([ibcm], [ib_cm_open_device], ++ [$1_have_ibcm=1 ++ $1_LIBS="-libcm $$1_LIBS"])]) ++ fi ++ ]) ++ ++ # Check to see if works. It is known to ++ # create problems on some platforms with some compilers (e.g., ++ # RHEL4U3 with the PGI 32 bit compiler). Use undocumented (in AC ++ # 2.63) feature of AC_CHECK_HEADERS: if you explicitly pass in ++ # AC_INCLUDES_DEFAULT as the 4th arg to AC_CHECK_HEADERS, the test ++ # will fail if the header is present but not compilable, *but it ++ # will not print the big scary warning*. See ++ # http://lists.gnu.org/archive/html/autoconf/2008-10/msg00143.html. ++ AS_IF([test "$ompi_check_openib_happy" = "yes"], ++ [AC_CHECK_HEADERS([infiniband/driver.h], [], [], ++ [AC_INCLUDES_DEFAULT])]) ++ ++ AC_MSG_CHECKING([if ConnectX XRC support is enabled]) ++ AC_DEFINE_UNQUOTED([OMPI_HAVE_CONNECTX_XRC], [$$1_have_xrc], ++ [Enable features required for ConnectX XRC support]) ++ if test "1" = "$$1_have_xrc"; then ++ AC_MSG_RESULT([yes]) ++ else ++ AC_MSG_RESULT([no]) ++ fi ++ ++ AC_MSG_CHECKING([if OpenFabrics RDMACM support is enabled]) ++ AC_DEFINE_UNQUOTED([OMPI_HAVE_RDMACM], [$$1_have_rdmacm], ++ [Whether RDMA CM is available or not]) ++ if test "1" = "$$1_have_rdmacm"; then ++ AC_MSG_RESULT([yes]) ++ else ++ AC_MSG_RESULT([no]) ++ fi ++ ++ AC_MSG_CHECKING([if OpenFabrics IBCM support is enabled]) ++ AC_DEFINE_UNQUOTED([OMPI_HAVE_IBCM], [$$1_have_ibcm], ++ [Whether IB CM is available or not]) ++ if test "1" = "$$1_have_ibcm"; then ++ AC_MSG_RESULT([yes]) ++ else ++ AC_MSG_RESULT([no]) ++ fi ++ ++ CPPFLAGS="$ompi_check_openib_$1_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_openib_$1_save_LDFLAGS" ++ LIBS="$ompi_check_openib_$1_save_LIBS" ++ ++ AS_IF([test "$ompi_check_openib_happy" = "yes"], ++ [$2], ++ [AS_IF([test ! -z "$with_openib" -a "$with_openib" != "no"], ++ [AC_MSG_WARN([OpenFabrics support requested (via --with-openib) but not found.]) ++ AC_MSG_WARN([If you are using libibverbs v1.0 (i.e., OFED v1.0 or v1.1), you *MUST* have both the libsysfs headers and libraries installed. Later versions of libibverbs do not require libsysfs.]) ++ AC_MSG_ERROR([Aborting.])]) ++ $3]) ++ ++ OMPI_VAR_SCOPE_POP ++]) ++m4trace:config/ompi_check_optflags.m4:22: -1- AC_DEFUN([OMPI_CHECK_OPTFLAGS], [ ++ ++# Modularize this setup so that sub-configure.in scripts can use this ++# same setup code. ++ ++################################## ++# Optimization flags ++################################## ++ ++# If the user did not specify optimization flags, add some (the value ++# from $OPTFLAGS) ++ ++co_arg="$1" ++co_found=0 ++for co_word in $co_arg; do ++ # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs ++ # for an explanation of @<:@ and @:>@ -- they m4 expand to [ and ] ++ case $co_word in ++ -g) co_found=1 ;; ++ -g@<:@1-3@:>@) co_found=1 ;; ++ +K@<:@0-5@:>@) co_found=1 ;; ++ -O) co_found=1 ;; ++ -O@<:@0-9@:>@) co_found=1 ;; ++ -xO) co_found=1 ;; ++ -xO@<:@0-9@:>@) co_found=1 ;; ++ -fast) co_found=1 ;; ++ ++ # The below Sun Studio flags require or ++ # trigger -xO optimization ++ -xvector*) co_found=1 ;; ++ -xdepend=yes) co_found=1 ;; ++ ++ esac ++done ++ ++if test "$co_found" = "0"; then ++ co_result="$OPTFLAGS $co_arg" ++else ++ co_result="$co_arg" ++fi ++ ++# Clean up ++ ++unset co_found co_word co_arg ++]) ++m4trace:config/ompi_check_package.m4:23: -1- AC_DEFUN([_OMPI_CHECK_PACKAGE_HEADER], [ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ AS_VAR_PUSHDEF([ompi_Header], [ac_cv_header_$2]) ++ ++ # so this sucks, but there's no way to get through the progression ++ # of header includes without killing off the cache variable and trying ++ # again... ++ unset ompi_Header ++ ++ ompi_check_package_header_happy="no" ++ AS_IF([test "$3" = "/usr" -o "$3" = "/usr/local"], ++ [ # try as is... ++ AC_VERBOSE([looking for header without includes]) ++ AC_CHECK_HEADER([$2], [ompi_check_package_header_happy="yes"], ++ [ompi_check_package_header_happy="no"]) ++ AS_IF([test "$ompi_check_package_header_happy" = "no"], ++ [# no go on the as is - reset the cache and try again ++ unset ompi_Header])]) ++ ++ AS_IF([test "$ompi_check_package_header_happy" = "no"], ++ [AS_IF([test "$3" != ""], ++ [$1_CPPFLAGS="$$1_CPPFLAGS -I$3/include" ++ CPPFLAGS="$CPPFLAGS -I$3/include"]) ++ AC_CHECK_HEADER([$2], [$4], [$5])], ++ [$4]) ++ unset ompi_check_package_header_happy]) ++m4trace:config/ompi_check_package.m4:60: -1- AC_DEFUN([_OMPI_CHECK_PACKAGE_LIB], [ ++ # This is stolen from autoconf to peek under the covers to get the ++ # cache variable for the library check. one should not copy this ++ # code into other places unless you want much pain and suffering ++ AS_LITERAL_IF([$2], ++ [AS_VAR_PUSHDEF([ompi_Lib], [ac_cv_lib_$2_$3])], ++ [AS_VAR_PUSHDEF([ompi_Lib], [ac_cv_lib_$2''_$3])])dnl ++ ++ # see comment above ++ unset ompi_Lib ++ ompi_check_package_lib_happy="no" ++ AS_IF([test "$6" != ""], ++ [ # libdir was specified - search only there ++ $1_LDFLAGS="$$1_LDFLAGS -L$6" ++ LDFLAGS="$LDFLAGS -L$6" ++ AC_CHECK_LIB([$2], [$3], ++ [ompi_check_package_lib_happy="yes"], ++ [ompi_check_package_lib_happy="no"], [$4]) ++ AS_IF([test "$ompi_check_package_lib_happy" = "no"], ++ [LDFLAGS="$ompi_check_package_$1_save_LDFLAGS" ++ $1_LDFLAGS="$ompi_check_package_$1_orig_LDFLAGS" ++ unset ompi_Lib])], ++ [ # libdir was not specified - go through search path ++ ompi_check_package_libdir="$5" ++ AS_IF([test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"], ++ [ # try as is... ++ AC_VERBOSE([looking for library without search path]) ++ AC_CHECK_LIB([$2], [$3], ++ [ompi_check_package_lib_happy="yes"], ++ [ompi_check_package_lib_happy="no"], [$4]) ++ AS_IF([test "$ompi_check_package_lib_happy" = "no"], ++ [ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_$1_save_LDFLAGS" ++ $1_LDFLAGS="$ompi_check_package_$1_orig_LDFLAGS" ++ unset ompi_Lib])]) ++ ++ AS_IF([test "$ompi_check_package_lib_happy" = "no"], ++ [AS_IF([test "$ompi_check_package_libdir" != ""], ++ [$1_LDFLAGS="$$1_LDFLAGS -L$ompi_check_package_libdir/lib" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib" ++ AC_VERBOSE([looking for library in lib]) ++ AC_CHECK_LIB([$2], [$3], ++ [ompi_check_package_lib_happy="yes"], ++ [ompi_check_package_lib_happy="no"], [$4]) ++ AS_IF([test "$ompi_check_package_lib_happy" = "no"], ++ [ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_$1_save_LDFLAGS" ++ $1_LDFLAGS="$ompi_check_package_$1_orig_LDFLAGS" ++ unset ompi_Lib])])]) ++ ++ AS_IF([test "$ompi_check_package_lib_happy" = "no"], ++ [AS_IF([test "$ompi_check_package_libdir" != ""], ++ [$1_LDFLAGS="$$1_LDFLAGS -L$ompi_check_package_libdir/lib64" ++ LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64" ++ AC_VERBOSE([looking for library in lib64]) ++ AC_CHECK_LIB([$2], [$3], ++ [ompi_check_package_lib_happy="yes"], ++ [ompi_check_package_lib_happy="no"], [$4]) ++ AS_IF([test "$ompi_check_package_lib_happy" = "no"], ++ [ # no go on the as is.. see what happens later... ++ LDFLAGS="$ompi_check_package_$1_save_LDFLAGS" ++ $1_LDFLAGS="$ompi_check_package_$1_orig_LDFLAGS" ++ unset ompi_Lib])])])]) ++ ++ AS_IF([test "$ompi_check_package_lib_happy" = "yes"], ++ [$1_LIBS="-l$2 $4" ++ $7], [$8]) ++ ++ AS_VAR_POPDEF([ompi_Lib])dnl ++]) ++m4trace:config/ompi_check_package.m4:145: -1- AC_DEFUN([OMPI_CHECK_PACKAGE], [ ++ ompi_check_package_$1_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_$1_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_$1_save_LIBS="$LIBS" ++ ++ ompi_check_package_$1_orig_CPPFLAGS="$$1_CPPFLAGS" ++ ompi_check_package_$1_orig_LDFLAGS="$$1_LDFLAGS" ++ ompi_check_package_$1_orig_LIBS="$$1_LIBS" ++ ++ _OMPI_CHECK_PACKAGE_HEADER([$1], [$2], [$6], ++ [_OMPI_CHECK_PACKAGE_LIB([$1], [$3], [$4], [$5], [$6], [$7], ++ [ompi_check_package_happy="yes"], ++ [ompi_check_package_happy="no"])], ++ [ompi_check_package_happy="no"]) ++ ++ AS_IF([test "$ompi_check_package_happy" = "yes"], ++ [$8], ++ [$1_CPPFLAGS="$ompi_check_package_$1_orig_CPPFLAGS" ++ $1_LDFLAGS="$ompi_check_package_$1_orig_LDFLAGS" ++ $1_LIBS="$ompi_check_package_$1_orig_LIBS" ++ $9]) ++ ++ CPPFLAGS="$ompi_check_package_$1_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_$1_save_LDFLAGS" ++ LIBS="$ompi_check_package_$1_save_LIBS" ++]) ++m4trace:config/ompi_check_portals.m4:25: -1- AC_DEFUN([OMPI_CHECK_PORTALS], [ ++ # save compiler flags so that we don't alter them for later ++ # components. ++ check_portals_save_CPPFLAGS="$CPPFLAGS" ++ check_portals_save_LDFLAGS="$LDFLAGS" ++ check_portals_save_LIBS="$LIBS" ++ ++ check_portals_CPPFLAGS= ++ check_portals_LDFLAGS= ++ check_portals_LIBS= ++ ++ check_portals_configuration="none" ++ ompi_check_portals_happy="yes" ++ ++ # Get some configuration information ++ AC_ARG_WITH([portals], ++ [AC_HELP_STRING([--with-portals(=DIR)], ++ [Build Portals support, searching for installation in DIR])]) ++ AC_ARG_WITH([portals-config], ++ AC_HELP_STRING([--with-portals-config], ++ [configuration to use for Portals support. ++ One of "utcp", "xt3", "xt3-modex". (default: utcp)])) ++ AC_ARG_WITH([portals-libs], ++ [AC_HELP_STRING([--with-portals-libs=LIBS], ++ [Libraries to link with for portals])]) ++ ++ AC_MSG_CHECKING([for Portals configuration]) ++ if test "$with_portals_config" = "" ; then ++ with_portals_config="utcp" ++ elif test "$with_portals_config" = "redstorm" ; then ++ with_portals_config="xt3" ++ elif test "$with_portals_config" = "cnl_modex" ; then ++ with_portals_config="xt3-modex" ++ fi ++ OMPI_PORTALS_UTCP=0 ++ OMPI_PORTALS_CRAYXT3=0 ++ OMPI_PORTALS_CRAYXT3_MODEX=0 ++ case "$with_portals_config" in ++ "utcp") ++ OMPI_PORTALS_UTCP=1 ++ OMPI_PORTALS_HAVE_EVENT_UNLINK=1 ++ check_portals_LIBS="-lp3utcp -lp3api -lp3lib -lp3rt -lp3utcp" ++ check_portals_header_prefix= ++ AC_MSG_RESULT([utcp]) ++ ;; ++ "xt3") ++ OMPI_PORTALS_CRAYXT3=1 ++ OMPI_PORTALS_HAVE_EVENT_UNLINK=0 ++ check_portals_LIBS= ++ check_portals_header_prefix="portals/" ++ AC_MSG_RESULT([Cray XT3]) ++ ;; ++ "xt3-modex") ++ OMPI_PORTALS_CRAYXT3_MODEX=1 ++ OMPI_PORTALS_HAVE_EVENT_UNLINK=0 ++ check_portals_LIBS= ++ check_portals_header_prefix="portals/" ++ AC_MSG_RESULT([Cray XT3 - Modex]) ++ ;; ++ *) ++ # ok to call ERROR here - the user specified something invalid. ++ # that should be brought to his attention ++ AC_MSG_ERROR([unknown Portals configuration. Can not continue]) ++ ;; ++ esac ++ ++ AC_DEFINE_UNQUOTED([OMPI_PORTALS_HAVE_EVENT_UNLINK], ++ [$OMPI_PORTALS_HAVE_EVENT_UNLINK], ++ [Does Portals send a PTL_EVENT_UNLINK event]) ++ ++ AC_DEFINE_UNQUOTED([OMPI_PORTALS_UTCP], [$OMPI_PORTALS_UTCP], ++ [Use the UTCP reference implementation of Portals]) ++ ++ AC_DEFINE_UNQUOTED([OMPI_PORTALS_CRAYXT3], [$OMPI_PORTALS_CRAYXT3], ++ [Use the Cray XT-3 implementation of Portals]) ++ ++ AC_DEFINE_UNQUOTED([OMPI_PORTALS_CRAYXT3_MODEX], [$OMPI_PORTALS_CRAYXT3_MODEX], ++ [Use the Cray XT-3 implementation of Portals using Modex]) ++ ++ # Add correct -I and -L flags ++ AS_IF([test -n "$with_portals"], ++ [AS_IF([test -d "$with_portals/include"], ++ [check_portals_CPPFLAGS="-I$with_portals/include" ++ CPPFLAGS="$CPPFLAGS $check_portals_CPPFLAGS"], []) ++ AS_IF([test -d "$with_portals/lib"], ++ [check_portals_LDFLAGS="-L$with_portals/lib" ++ LDFLAGS="$LDFLAGS $check_portals_LDFLAGS"], [])]) ++ ++ # Try to find all the portals libraries (this is not fun!) ++ if test -n "$with_portals_libs" ; then ++ check_portals_LIBS="" ++ for lib in $with_portals_libs ; do ++ check_portals_LIBS="$check_portals_LIBS -l$lib" ++ done ++ fi ++ ++ # check for portals ++ LIBS="$LIBS $check_portals_LIBS" ++ AC_CHECK_HEADERS([${check_portals_header_prefix}portals3.h], ++ [AC_MSG_CHECKING([if possible to link Portals application]) ++ AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <${check_portals_header_prefix}portals3.h>], ++ [int i; PtlInit(&i);])], ++ [AC_MSG_RESULT([yes]) ++ ompi_check_portals_happy="yes"], ++ [AC_MSG_RESULT([no]) ++ ompi_check_portals_happy="no"])], ++ [ompi_check_portals_happy="no"]) ++ ++ # Deal with static-only Portals UTCP libs. See note in ++ # ompi/mca/common/portals/configure.m4. Then possibly cry. ++ if test "$with_portals_config" = "utcp" ; then ++ if test "$1" != "common_portals" ; then ++ check_portals_LIBS= ++ fi ++ fi ++ ++ # reset the flags for the next test ++ CPPFLAGS="$check_portals_save_CPPFLAGS" ++ LDFLAGS="$check_portals_save_LDFLAGS" ++ LIBS="$check_portals_save_LIBS" ++ ++ $1_CPPFLAGS="$check_portals_CPPFLAGS" ++ $1_LDFLAGS="$check_portals_LDFLAGS" ++ $1_LIBS="$check_portals_LIBS" ++ ++ AS_IF([test "$ompi_check_portals_happy" = "yes"], ++ [$2], ++ [AS_IF([test ! -z "$with_portals" -a "$with_portals" != "no"], ++ [AC_MSG_ERROR([Portals support requested but not found. Aborting])]) ++ $3]) ++]) ++m4trace:config/ompi_check_ps.m4:26: -1- AC_DEFUN([OMPI_PS_FLAVOR_CHECK], [ ++AC_MSG_CHECKING([for flavor of ps to use]) ++PS_FLAVOR="unknown" ++ps -A -o fname > /dev/null 2>&1 ++ ++if test "$?" = "0"; then ++ PS_FLAVOR="ps -A -o fname,pid,user" ++else ++ ps -A -o command > /dev/null 2>&1 ++ if test "$?" = "0"; then ++ PS_FLAVOR="ps -A -o command,pid,user" ++ fi ++fi ++AC_MSG_RESULT([$PS_FLAVOR]) ++AC_DEFINE_UNQUOTED([ORTE_CLEAN_PS_CMD], ["$PS_FLAVOR"], [Specific ps command to use in orte-clean]) ++]) ++m4trace:config/ompi_check_psm.m4:27: -1- AC_DEFUN([OMPI_CHECK_PSM], [ ++ AC_ARG_WITH([psm], ++ [AC_HELP_STRING([--with-psm(=DIR)], ++ [Build PSM (QLogic InfiniPath PSM) support, searching for libraries in DIR])]) ++ AC_ARG_WITH([psm-libdir], ++ [AC_HELP_STRING([--with-psm-libdir=DIR], ++ [Search for PSM (QLogic InfiniPath PSM) libraries in DIR])]) ++ ++ ompi_check_psm_$1_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_psm_$1_save_LDFLAGS="$LDFLAGS" ++ ompi_check_psm_$1_save_LIBS="$LIBS" ++ ++ AS_IF([test "$with_psm" != "no"], ++ [AS_IF([test ! -z "$with_psm" -a "$with_psm" != "yes"], ++ [ompi_check_psm_dir="$with_psm"]) ++ AS_IF([test ! -z "$with_psm_libdir" -a "$with_psm_libdir" != "yes"], ++ [ompi_check_psm_libdir="$with_psm_libdir"]) ++ ++ OMPI_CHECK_PACKAGE([$1], ++ [psm.h], ++ [psm_infinipath], ++ [psm_finalize], ++ [], ++ [$ompi_check_psm_dir], ++ [$ompi_check_psm_libdir], ++ [ompi_check_psm_happy="yes"], ++ [ompi_check_psm_happy="no"])], ++ [ompi_check_psm_happy="no"]) ++ ++ CPPFLAGS="$ompi_check_psm_$1_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_psm_$1_save_LDFLAGS" ++ LIBS="$ompi_check_psm_$1_save_LIBS" ++ ++ AS_IF([test "$ompi_check_psm_happy" = "yes" -a "$enable_progress_threads" = "yes"], ++ [AC_MSG_WARN([PSM driver does not currently support progress threads. Disabling BTL.]) ++ ompi_check_psm_happy="no"]) ++ ++ AS_IF([test "$ompi_check_psm_happy" = "yes"], ++ [$2], ++ [AS_IF([test ! -z "$with_psm" -a "$with_psm" != "no"], ++ [AC_MSG_ERROR([PSM support requested but not found. Aborting])]) ++ $3]) ++]) ++m4trace:config/ompi_check_pthread_pids.m4:20: -1- AC_DEFUN([OMPI_CHECK_PTHREAD_PIDS], [ ++# ++# Arguments: none ++# ++# Dependencies: None ++# ++# Sets: ++# OMPI_THREADS_HAVE_DIFFERENT_PIDS (variable) ++# ++# Test for Linux-like threads in the system. We will need to handle things like ++# getpid() differently in the case of a Linux-like threads model. ++# ++ ++AC_MSG_CHECKING([if threads have different pids (pthreads on linux)]) ++CFLAGS_save="$CFLAGS" ++CFLAGS="$CFLAGS $THREAD_CFLAGS" ++CPPFLAGS_save="$CPPFLAGS" ++CPPFLAGS="$CPPFLAGS $THREAD_CPPFLAGS" ++LDFLAGS_save="$LDFLAGS" ++LDFLAGS="$LDFLAGS $THREAD_LDFLAGS" ++LIBS_save="$LIBS" ++LIBS="$LIBS $THREAD_LIBS" ++AC_TRY_RUN([#include ++#include ++#include ++#include ++void *checkpid(void *arg); ++int main() { ++ pthread_t thr; ++ int pid, *retval; ++ pid = getpid(); ++ pthread_create(&thr, NULL, checkpid, &pid); ++ pthread_join(thr, (void **) &retval); ++ exit(*retval); ++} ++static int ret; ++void *checkpid(void *arg) { ++ int ppid = *((int *) arg); ++ if (ppid == getpid()) ++ ret = 0; ++ else ++ ret = 1; ++ pthread_exit((void *) &ret); ++}], ++[MSG=no OMPI_THREADS_HAVE_DIFFERENT_PIDS=0], ++[MSG=yes OMPI_THREADS_HAVE_DIFFERENT_PIDS=1], ++[case $host in ++ *-linux*) ++ MSG="cross compiling - assuming yes" ++ OMPI_THREADS_HAVE_DIFFERENT_PIDS=1 ++ ;; ++ *) ++ MSG="cross compiling - assuming no" ++ OMPI_THREADS_HAVE_DIFFERENT_PIDS=0 ++ ;; ++ esac ++]) ++ ++CFLAGS="$CFLAGS_save" ++CPPFLAGS="$CPPFLAGS_save" ++LDFLAGS="$LDFLAGS_save" ++LIBS="$LIBS_save" ++ ++AC_MSG_RESULT([$MSG]) ++AC_DEFINE_UNQUOTED(OMPI_THREADS_HAVE_DIFFERENT_PIDS, $OMPI_THREADS_HAVE_DIFFERENT_PIDS) ++ ++# ++# if pthreads is not available, then the system does not have an insane threads ++# model ++# ++unset MSG]) ++m4trace:config/ompi_check_sge.m4:28: -1- AC_DEFUN([OMPI_CHECK_GRIDENGINE], [ ++ AC_ARG_WITH([sge], ++ [AC_HELP_STRING([--with-sge], ++ [Build SGE or Grid Engine support (default: no)])]) ++ ++ AC_MSG_CHECKING([if user requested SGE build]) ++ ompi_gridengine_build= ++ AS_IF([test "$with_sge" = "yes"], ++ [AC_MSG_RESULT([yes]) ++ ompi_gridengine_build=yes], ++ [AS_IF([test "$with_sge" = "no"], ++ [AC_MSG_RESULT([no])], ++ [AC_MSG_RESULT([not specified; checking environment]) ++ AC_CHECK_PROG([QRSH], [qrsh], [qrsh]) ++ AS_IF([test "$QRSH" != ""], ++ [ompi_gridengine_build=yes], ++ [AC_MSG_CHECKING([for SGE_ROOT environment variable]) ++ AS_IF([test "$SGE_ROOT" != ""], ++ [AC_MSG_RESULT([found]) ++ ompi_gridengine_build=yes], ++ [AC_MSG_RESULT([not found])])])])]) ++ ++ AS_IF([test "$ompi_gridengine_build" = "yes"], ++ [$2], ++ [$3]) ++]) ++m4trace:config/ompi_check_slurm.m4:23: -1- AC_DEFUN([OMPI_CHECK_SLURM], [ ++ AC_ARG_WITH([slurm], ++ [AC_HELP_STRING([--with-slurm], ++ [Build SLURM scheduler component (default: yes)])]) ++ ++ if test "$with_slurm" = "no" ; then ++ ompi_check_slurm_happy="no" ++ elif test "$with_slurm" = "" ; then ++ # unless user asked, only build slurm component on linux, AIX, ++ # and OS X systems (these are the platforms that SLURM ++ # supports) ++ case $host in ++ *-linux*|*-aix*|*-apple-darwin*) ++ ompi_check_slurm_happy="yes" ++ ;; ++ *) ++ AC_MSG_CHECKING([for SLURM srun in PATH]) ++ OMPI_WHICH([srun], [OMPI_CHECK_SLURM_SRUN]) ++ if test "$OMPI_CHECK_SLURM_SRUN" = ""; then ++ ompi_check_slurm_happy="no" ++ else ++ ompi_check_slurm_happy="yes" ++ fi ++ AC_MSG_RESULT([$ompi_check_slurm_happy]) ++ ;; ++ esac ++ else ++ ompi_check_slurm_happy="yes" ++ fi ++ ++ AS_IF([test "$ompi_check_slurm_happy" = "yes"], ++ [AC_CHECK_FUNC([fork], ++ [ompi_check_slurm_happy="yes"], ++ [ompi_check_slurm_happy="no"])]) ++ ++ AS_IF([test "$ompi_check_slurm_happy" = "yes"], ++ [AC_CHECK_FUNC([execve], ++ [ompi_check_slurm_happy="yes"], ++ [ompi_check_slurm_happy="no"])]) ++ ++ AS_IF([test "$ompi_check_slurm_happy" = "yes"], ++ [AC_CHECK_FUNC([setpgid], ++ [ompi_check_slurm_happy="yes"], ++ [ompi_check_slurm_happy="no"])]) ++ ++ AS_IF([test "$ompi_check_slurm_happy" = "yes"], ++ [$2], ++ [$3]) ++]) ++m4trace:config/ompi_check_tm.m4:23: -1- AC_DEFUN([OMPI_CHECK_TM_LIBS_FLAGS], [ ++ ompi_check_tm_flags=`$ompi_check_tm_pbs_config --libs` ++ for ompi_check_tm_val in $ompi_check_tm_flags; do ++ if test "`echo $ompi_check_tm_val | cut -c1-2`" = "-l"; then ++ if test "$2" = "LIBS"; then ++ $1_$2="$$1_$2 $ompi_check_tm_val" ++ fi ++ else ++ if test "$2" = "LDFLAGS"; then ++ $1_$2="$$1_$2 $ompi_check_tm_val" ++ fi ++ fi ++ done ++]) ++m4trace:config/ompi_check_tm.m4:41: -1- AC_DEFUN([OMPI_CHECK_TM], [ ++ AC_ARG_WITH([tm], ++ [AC_HELP_STRING([--with-tm(=DIR)], ++ [Directory where the tm software is installed])]) ++ ++ ompi_check_tm_found=no ++ AS_IF([test "$with_tm" = "no"], ++ [ompi_check_tm_happy="no"], ++ [ompi_check_tm_happy="yes" ++ AS_IF([test ! -z "$with_tm" -a "$with_tm" != "yes"], ++ [ompi_check_tm_dir="$with_tm"], ++ [ompi_check_tm_dir=""])]) ++ ++ AS_IF([test "$ompi_check_tm_happy" = "yes"], ++ [AC_MSG_CHECKING([for pbs-config]) ++ ompi_check_tm_pbs_config="not found" ++ AS_IF([test "$ompi_check_tm_dir" != "" -a -d "$ompi_check_tm_dir" -a -x "$ompi_check_tm_dir/bin/pbs-config"], ++ [ompi_check_tm_pbs_config="$ompi_check_tm_dir/bin/pbs-config"], ++ [AS_IF([pbs-config --prefix >/dev/null 2>&1], ++ [ompi_check_tm_pbs_config="pbs-config"])]) ++ AC_MSG_RESULT([$ompi_check_tm_pbs_config])]) ++ ++ # If we have pbs-config, get the flags we need from there and then ++ # do simplistic tests looking for the tm headers and symbols ++ ++ AS_IF([test "$ompi_check_tm_happy" = "yes" -a "$ompi_check_tm_pbs_config" != "not found"], ++ [$1_CPPFLAGS=`$ompi_check_tm_pbs_config --cflags` ++ OMPI_LOG_MSG([$1_CPPFLAGS from pbs-config: $$1_CPPFLAGS], 1) ++ ++ OMPI_CHECK_TM_LIBS_FLAGS([$1], [LDFLAGS]) ++ OMPI_LOG_MSG([$1_LDFLAGS from pbs-config: $$1_LDFLAGS], 1) ++ ++ OMPI_CHECK_TM_LIBS_FLAGS([$1], [LIBS]) ++ OMPI_LOG_MSG([$1_LIBS from pbs-config: $$1_LIBS], 1) ++ ++ # Now that we supposedly have the right flags, try them out. ++ ++ CPPFLAGS_save="$CPPFLAGS" ++ LDFLAGS_save="$LDFLAGS" ++ LIBS_save="$LIBS" ++ ++ CPPFLAGS="$CPPFLAGS $$1_CPPFLAGS" ++ LIBS="$LIBS $$1_LIBS" ++ LDFLAGS="$LDFLAGS $$1_LDFLAGS" ++ ++ AC_CHECK_HEADER([tm.h], ++ [AC_CHECK_FUNC([tm_finalize], ++ [ompi_check_tm_found="yes"])]) ++ ++ CPPFLAGS="$CPPFLAGS_save" ++ LDFLAGS="$LDFLAGS_save" ++ LIBS="$LIBS_save"]) ++ ++ # If we don't have pbs-config, then we have to look around ++ # manually. ++ ++ # Note that Torque 2.1.0 changed the name of their back-end ++ # library to "libtorque". So we have to check for both libpbs and ++ # libtorque. First, check for libpbs. ++ ++ ompi_check_package_$1_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_$1_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_$1_save_LIBS="$LIBS" ++ ++ ompi_check_package_$1_orig_CPPFLAGS="$$1_CPPFLAGS" ++ ompi_check_package_$1_orig_LDFLAGS="$$1_LDFLAGS" ++ ompi_check_package_$1_orig_LIBS="$$1_LIBS" ++ ++ AS_IF([test "$ompi_check_tm_found" = "no"], ++ [AS_IF([test "$ompi_check_tm_happy" = "yes"], ++ [_OMPI_CHECK_PACKAGE_HEADER([$1], ++ [tm.h], ++ [$ompi_check_tm_dir], ++ [ompi_check_tm_found="yes"], ++ [ompi_check_tm_found="no"])]) ++ ++ AS_IF([test "$ompi_check_tm_found" = "yes"], ++ [_OMPI_CHECK_PACKAGE_LIB([$1], ++ [pbs], ++ [tm_init], ++ [], ++ [$ompi_check_tm_dir], ++ [$ompi_check_tm_libdir], ++ [ompi_check_tm_found="yes"], ++ [_OMPI_CHECK_PACKAGE_LIB([$1], ++ [torque], ++ [tm_init], ++ [], ++ [$ompi_check_tm_dir], ++ [$ompi_check_tm_libdir], ++ [ompi_check_tm_found="yes"], ++ [ompi_check_tm_found="no"])])])]) ++ ++ CPPFLAGS="$ompi_check_package_$1_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_$1_save_LDFLAGS" ++ LIBS="$ompi_check_package_$1_save_LIBS" ++ ++ # Did we find the right stuff? ++ AS_IF([test "$ompi_check_tm_happy" = "yes" -a "$ompi_check_tm_found" = "yes"], ++ [$2], ++ [AS_IF([test ! -z "$with_tm" -a "$with_tm" != "no"], ++ [AC_MSG_ERROR([TM support requested but not found. Aborting])]) ++ $3]) ++]) ++m4trace:config/ompi_check_udapl.m4:27: -1- AC_DEFUN([OMPI_CHECK_UDAPL], [ ++ AC_ARG_WITH([udapl], ++ [AC_HELP_STRING([--with-udapl(=DIR)], ++ [Build uDAPL support, searching for libraries in DIR])]) ++ AC_ARG_WITH([udapl-libdir], ++ [AC_HELP_STRING([--with-udapl-libdir=DIR], ++ [Search for uDAPL libraries in DIR])]) ++ ++ # Special case for OFED/Linux: the default /etc/dat.conf that ++ # ships with OFED is broken in that it includes DAT providers that ++ # are not guarnateed to work (e.g., it includes providers for ib0, ++ # ib1, ib2, ib3, and bond0). Usually, a sysadmin will need to ++ # edit this file to configure it for the specific environment in ++ # which it will be used. Hence, if you run the udapl BTL on ++ # Linux/OFED, you'll get a bunch of warning messages about the ++ # providers that don't work. However, on Linux/OFED, you don't ++ # really want to use udapl anyway; you likely really want to use ++ # the openib BTL (i.e., native verbs, not udapl). ++ ++ # So after exploring many different scenarios, the least evil ++ # solution seemed to be to disable building the udapl BTL on ++ # Linux/OFED *unless the user specifically asks for it.* To be ++ # specific: on Linux/OFED, if you do not specify ++ # --with-udapl(=DIR), the udapl BTL will not be built. ++ AS_IF([test -z "$with_udapl"], ++ [case $host in ++ *linux*) ++ AC_MSG_WARN([On Linux and --with-udapl was not specified]) ++ AC_MSG_WARN([Not building the udapl BTL]) ++ with_udapl=no ++ ;; ++ esac]) ++ ++ AS_IF([test ! -z "$with_udapl" -a "$with_udapl" != "yes"], ++ [ompi_check_udapl_dir="$with_udapl"]) ++ AS_IF([test ! -z "$with_udapl_libdir" -a "$with_udapl_libdir" != "yes"], ++ [ompi_check_udapl_libdir="$with_udapl_libdir"]) ++ AS_IF([test "$with_udapl" = "no"], ++ [ompi_check_udapl_happy="no"], ++ [ompi_check_udapl_happy="yes"]) ++ ++dnl Do not use ompi_check_package directly, because then we have ++dnl to test for the header file twice, and caching is disabled ++dnl for all ompi_check_package checks. Instead, do what ++dnl ompi_check_package does, but only do the header check once. ++dnl Still do the lib check twice, the second time if it turns ++dnl out we need -ldapl to link (looks like udapl over GM). ++ ++ ompi_check_package_$1_save_CPPFLAGS="$CPPFLAGS" ++ ompi_check_package_$1_save_LDFLAGS="$LDFLAGS" ++ ompi_check_package_$1_save_LIBS="$LIBS" ++ ++ ompi_check_package_$1_orig_CPPFLAGS="$$1_CPPFLAGS" ++ ompi_check_package_$1_orig_LDFLAGS="$$1_LDFLAGS" ++ ompi_check_package_$1_orig_LIBS="$$1_LIBS" ++ ++ AS_IF([test "$ompi_check_udapl_happy" = "yes"], ++ [_OMPI_CHECK_PACKAGE_HEADER([$1], ++ [dat/udat.h], ++ [$ompi_check_udapl_dir], ++ [ompi_check_udapl_happy="yes"], ++ [ompi_check_udapl_happy="no"])]) ++ ++ AS_IF([test "$ompi_check_udapl_happy" = "yes"], ++ [_OMPI_CHECK_PACKAGE_LIB([$1], ++ [dat], ++ [dat_registry_list_providers], ++ [], ++ [$ompi_check_udapl_dir], ++ [$ompi_check_udapl_libdir], ++ [ompi_check_udapl_happy="yes"], ++ [_OMPI_CHECK_PACKAGE_LIB([$1], ++ [dat], ++ [dat_registry_list_providers], ++ [-ldapl], ++ [$ompi_check_udapl_dir], ++ [$ompi_check_udapl_libdir], ++ [ompi_check_udapl_happy="yes"], ++ [ompi_check_udapl_happy="no"])])]) ++ ++ CPPFLAGS="$ompi_check_package_$1_save_CPPFLAGS" ++ LDFLAGS="$ompi_check_package_$1_save_LDFLAGS" ++ LIBS="$ompi_check_package_$1_save_LIBS" ++ ++ AS_IF([test "$ompi_check_udapl_happy" = "yes"], ++ [$2], ++ [AS_IF([test ! -z "$with_udapl" -a "$with_udapl" != "no"], ++ [AC_MSG_ERROR([uDAPL support requested but not found. Aborting])]) ++ $3]) ++]) ++m4trace:config/ompi_check_vendor.m4:28: -1- AC_DEFUN([OMPI_C_COMPILER_VENDOR], [ ++ AC_REQUIRE([AC_PROG_CC]) ++ ++ AC_CACHE_CHECK([for the C compiler vendor], ++ [ompi_cv_c_compiler_vendor], ++ [AC_LANG_PUSH(C) ++ _OMPI_CHECK_COMPILER_VENDOR([ompi_cv_c_compiler_vendor]) ++ AC_LANG_POP(C)]) ++ ++ $1="$ompi_cv_c_compiler_vendor" ++]) ++m4trace:config/ompi_check_vendor.m4:48: -1- AC_DEFUN([OMPI_CXX_COMPILER_VENDOR], [ ++ AC_REQUIRE([AC_PROG_CXX]) ++ ++ AC_CACHE_CHECK([for the C++ compiler vendor], ++ [ompi_cv_cxx_compiler_vendor], ++ [AC_LANG_PUSH(C++) ++ _OMPI_CHECK_COMPILER_VENDOR([ompi_cv_cxx_compiler_vendor]) ++ AC_LANG_POP(C++)]) ++ ++ $1="$ompi_cv_c_compiler_vendor" ++]) ++m4trace:config/ompi_check_vendor.m4:66: -1- AC_DEFUN([OMPI_IFDEF_IFELSE], [ ++ AC_COMPILE_IFELSE([#ifndef $1 ++#error "symbol $1 not defined" ++choke me ++#endif], [$2], [$3])]) ++m4trace:config/ompi_check_vendor.m4:78: -1- AC_DEFUN([OMPI_IF_IFELSE], [ ++ AC_COMPILE_IFELSE([#if !( $1 ) ++#error "condition $1 not met" ++choke me ++#endif], [$2], [$3])]) ++m4trace:config/ompi_check_vendor.m4:93: -1- AC_DEFUN([_OMPI_CHECK_COMPILER_VENDOR], [ ++ ompi_check_compiler_vendor_result="unknown" ++ ++ # GNU is probably the most common, so check that one as soon as ++ # possible. Intel pretends to be GNU, so need to check Intel ++ # before checking for GNU. ++ ++ # Intel ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IF_IFELSE([defined(__INTEL_COMPILER) || defined(__ICC)], ++ [ompi_check_compiler_vendor_result="intel"])]) ++ ++ # GNU ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IFDEF_IFELSE([__GNUC__], ++ [ompi_check_compiler_vendor_result="gnu"])]) ++ ++ # Borland Turbo C ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IFDEF_IFELSE([__TURBOC__], ++ [ompi_check_compiler_vendor_result="borland"])]) ++ ++ # Borland C++ ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IFDEF_IFELSE([__BORLANDC__], ++ [ompi_check_compiler_vendor_result="borland"])]) ++ ++ # Comeau C++ ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IFDEF_IFELSE([__COMO__], ++ [ompi_check_compiler_vendor_result="comeau"])]) ++ ++ # Compaq C/C++ ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IF_IFELSE([defined(__DECC) || defined(VAXC) || defined(__VAXC)], ++ [ompi_check_compiler_vendor_result="compaq"], ++ [OMPI_IF_IFELSE([defined(__osf__) && defined(__LANGUAGE_C__)], ++ [ompi_check_compiler_vendor_result="compaq"], ++ [OMPI_IFDEF_IFELSE([__DECCXX], ++ [ompi_check_compiler_vendor_result="compaq"])])])]) ++ ++ # Cray C/C++ ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IFDEF_IFELSE([_CRAYC], ++ [ompi_check_compiler_vendor_result="cray"])]) ++ ++ # Diab C/C++ ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IFDEF_IFELSE([__DCC__], ++ [ompi_check_compiler_vendor_result="diab"])]) ++ ++ # Digital Mars ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IF_IFELSE([defined(__DMC__) || defined(__SC__) || defined(__ZTC__)], ++ [ompi_check_compiler_vendor_result="digital mars"])]) ++ ++ # HP ANSI C / aC++ ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IF_IFELSE([defined(__HP_cc) || defined(__HP_aCC)], ++ [ompi_check_compiler_vendor_result="hp"])]) ++ ++ # IBM XL C/C++ ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IF_IFELSE([defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__)], ++ [ompi_check_compiler_vendor_result="ibm"], ++ [OMPI_IF_IFELSE([defined(_AIX) && !defined(__GNUC__)], ++ [ompi_check_compiler_vendor_result="ibm"])])]) ++ ++ # KAI C++ (rest in peace) ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IFDEF_IFELSE([__KCC], ++ [ompi_check_compiler_vendor_result="kai"])]) ++ ++ # LCC ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IFDEF_IFELSE([__LCC__], ++ [ompi_check_compiler_vendor_result="lcc"])]) ++ ++ # MetaWare High C/C++ ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IFDEF_IFELSE([__HIGHC__], ++ [ompi_check_compiler_vendor_result="metaware high"])]) ++ ++ # Metrowerks Codewarrior ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IFDEF_IFELSE([__MWERKS__], ++ [ompi_check_compiler_vendor_result="metrowerks"])]) ++ ++ # MIPSpro (SGI) ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IF_IFELSE([defined(sgi) || defined(__sgi)], ++ [ompi_check_compiler_vendor_result="sgi"])]) ++ ++ # MPW C++ ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IF_IFELSE([defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS)], ++ [ompi_check_compiler_vendor_result="mpw"])]) ++ ++ # Microsoft ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [# Always use C compiler when checking for Microsoft, as ++ # Visual C++ doesn't recognize .cc as a C++ file. ++ AC_LANG_PUSH(C) ++ OMPI_IF_IFELSE([defined(_MSC_VER) || defined(__MSC_VER)], ++ [ompi_check_compiler_vendor_result="microsoft"]) ++ AC_LANG_POP(C)]) ++ ++ # Norcroft C ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IFDEF_IFELSE([__CC_NORCROFT], ++ [ompi_check_compiler_vendor_result="norcroft"])]) ++ ++ # Pelles C ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IFDEF_IFELSE([__POCC__], ++ [ompi_check_compiler_vendor_result="pelles"])]) ++ ++ # Portland Group ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IFDEF_IFELSE([__PGI], ++ [ompi_check_compiler_vendor_result="portland group"])]) ++ ++ # SAS/C ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IF_IFELSE([defined(SASC) || defined(__SASC) || defined(__SASC__)], ++ [ompi_check_compiler_vendor_result="sas"])]) ++ ++ # Sun Workshop C/C++ ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IF_IFELSE([defined(__SUNPRO_C) || defined(__SUNPRO_CC)], ++ [ompi_check_compiler_vendor_result="sun"])]) ++ ++ # TenDRA C/C++ ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IFDEF_IFELSE([__TenDRA__], ++ [ompi_check_compiler_vendor_result="tendra"])]) ++ ++ # Tiny C ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IFDEF_IFELSE([__TINYC__], ++ [ompi_check_compiler_vendor_result="tiny"])]) ++ ++ # USL C ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IFDEF_IFELSE([__USLC__], ++ [ompi_check_compiler_vendor_result="usl"])]) ++ ++ # Watcom C++ ++ AS_IF([test "$ompi_check_compiler_vendor_result" = "unknown"], ++ [OMPI_IFDEF_IFELSE([__WATCOMC__], ++ [ompi_check_compiler_vendor_result="watcom"])]) ++ ++ $1="$ompi_check_compiler_vendor_result" ++ unset ompi_check_compiler_vendor_result ++]) ++m4trace:config/ompi_check_visibility.m4:24: -1- AC_DEFUN([OMPI_CHECK_VISIBILITY], [ ++ AC_REQUIRE([AC_PROG_GREP]) ++ ++ # Check if the compiler has support for visibility, like some versions of gcc, icc. ++ AC_ARG_ENABLE(visibility, ++ AC_HELP_STRING([--enable-visibility], ++ [enable visibility feature of certain compilers/linkers (default: enabled)])) ++ if test "$enable_visibility" = "no"; then ++ AC_MSG_CHECKING([enable symbol visibility]) ++ AC_MSG_RESULT([no]) ++ have_visibility=0 ++ else ++ CFLAGS_orig="$CFLAGS" ++ CFLAGS="$CFLAGS_orig -fvisibility=hidden" ++ add= ++ AC_CACHE_CHECK([if $CC supports -fvisibility], ++ [ompi_cv_cc_fvisibility], ++ [AC_TRY_LINK([ ++ #include ++ __attribute__((visibility("default"))) int foo; ++ void bar(void) { fprintf(stderr, "bar\n"); }; ++ ],[], ++ [if test -s conftest.err ; then ++ $GREP -iq "visibility" conftest.err ++ if test "$?" = "0" ; then ++ ompi_cv_cc_fvisibility="no" ++ else ++ ompi_cv_cc_fvisibility="yes" ++ fi ++ else ++ ompi_cv_cc_fvisibility="yes" ++ fi], ++ [ompi_cv_cc_fvisibility="no"]) ++ ]) ++ ++ if test "$ompi_cv_cc_fvisibility" = "yes" ; then ++ add=" -fvisibility=hidden" ++ have_visibility=1 ++ AC_MSG_CHECKING([enable symbol visibility]) ++ AC_MSG_RESULT([yes]) ++ AC_MSG_WARN([$add has been added to CFLAGS]) ++ elif test "$enable_visibility" = "yes"; then ++ AC_MSG_ERROR([Symbol visibility support requested but compiler does not seem to support it. Aborting]) ++ else ++ AC_MSG_CHECKING([enable symbol visibility]) ++ AC_MSG_RESULT([no]) ++ have_visibility=0 ++ fi ++ CFLAGS="$CFLAGS_orig$add" ++ unset add ++ fi ++ AC_DEFINE_UNQUOTED([OMPI_C_HAVE_VISIBILITY], [$have_visibility], ++ [Whether C compiler supports -fvisibility]) ++ ++]) ++m4trace:config/ompi_check_xgrid.m4:25: -1- AC_DEFUN([OMPI_CHECK_XGRID], [ ++ AC_REQUIRE([AC_PROG_OBJC]) ++ ++ AC_ARG_WITH([xgrid], ++ [AC_HELP_STRING([--with-xgrid], ++ [Build support for the Apple Xgrid batch system (default: yes)])]) ++ ++ AS_IF([test "$with_xgrid" != "no"], ++ [OMPI_LANG_LINK_WITH_C([Objective C], ++ [AC_CACHE_CHECK([for XgridFoundation Framework], ++ [ompi_cv_check_xgrid_foundation], ++ [_OMPI_CHECK_XGRID([ompi_cv_check_xgrid_foundation="yes"], ++ [ompi_cv_check_xgrid_foundation="no"])]) ++ AS_IF([test "$ompi_cv_check_xgrid_foundation" = "yes"], ++ [ompi_check_xgrid_happy="yes"], ++ [ompi_check_xgrid_happy="no"])], ++ [ompi_check_xgrid_happy="no"])], ++ [ompi_check_xgrid_happy="no"]) ++ ++ AS_IF([test "$ompi_check_xgrid_happy" = "yes"], ++ [$1_LDFLAGS="$$1_LDFLAGS -framework XgridFoundation -framework Foundation" ++ $2], [$3]) ++]) ++m4trace:config/ompi_check_xgrid.m4:52: -1- AC_DEFUN([_OMPI_CHECK_XGRID], [ ++ AC_LANG_PUSH(Objective C) ++ ompi_check_xgrid_save_LDFLAGS="$LDFLAGS" ++ LDFLAGS="$LDFLAGS -framework XgridFoundation -framework Foundation" ++ AC_TRY_LINK([#import ++#import ++#import ++], ++ [NSLog(@"%@", XGConnectionKeyIsOpened);], ++ [$1], [$2]) ++ LDFLAGS="$ompi_check_xgrid_save_LDFLAGS" ++ AC_LANG_POP(Objective C) ++]) ++m4trace:config/ompi_config_asm.m4:28: -1- AC_DEFUN([OMPI_CHECK_ASM_TEXT], [ ++ AC_MSG_CHECKING([directive for setting text section]) ++ ompi_cv_asm_text="" ++ if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then ++ # text section will be brought in with the rest of ++ # header for MS - leave blank for now ++ ompi_cv_asm_text="" ++ else ++ case $host in ++ *-aix*) ++ ompi_cv_asm_text=[".csect .text[PR]"] ++ ;; ++ *) ++ ompi_cv_asm_text=".text" ++ ;; ++ esac ++ fi ++ AC_MSG_RESULT([$ompi_cv_asm_text]) ++ AC_DEFINE_UNQUOTED([OMPI_ASM_TEXT], ["$ompi_cv_asm_text"], ++ [Assembly directive for setting text section]) ++ OMPI_ASM_TEXT="$ompi_cv_asm_text" ++ AC_SUBST(OMPI_ASM_TEXT) ++]) ++m4trace:config/ompi_config_asm.m4:63: -1- AC_DEFUN([OMPI_CHECK_ASM_GLOBAL], [ ++ AC_MSG_CHECKING([directive for exporting symbols]) ++ ompi_cv_asm_global="" ++ if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then ++ ompi_cv_asm_global="PUBLIC" ++ else ++ case $host in ++ *) ++ ompi_cv_asm_global=".globl" ++ ;; ++ esac ++ fi ++ AC_MSG_RESULT([$ompi_cv_asm_global]) ++ AC_DEFINE_UNQUOTED([OMPI_ASM_GLOBAL], ["$ompi_cv_asm_global"], ++ [Assembly directive for exporting symbols]) ++ OMPI_ASM_GLOBAL="$ompi_cv_asm_global" ++ AC_SUBST(OMPI_AS_GLOBAL) ++]) ++m4trace:config/ompi_config_asm.m4:98: -1- AC_DEFUN([_OMPI_CHECK_ASM_LSYM], [ ++ AC_REQUIRE([AC_PROG_GREP]) ++ ++ $1="L" ++ ++ for sym in L .L $ L$ ; do ++ asm_result=0 ++ echo "configure: trying $sym" >&AC_FD_CC ++ OMPI_TRY_ASSEMBLE([foobar$ompi_cv_asm_label_suffix ++${sym}mytestlabel$ompi_cv_asm_label_suffix], ++ [# ok, we succeeded at assembling. see if we can nm, ++ # throwing the results in a file ++ if $NM conftest.$OBJEXT > conftest.out 2>&AC_FD_CC ; then ++ if test "`$GREP mytestlabel conftest.out`" = "" ; then ++ # there was no symbol... looks promising to me ++ $1="$sym" ++ asm_result=1 ++ elif test ["`$GREP ' [Nt] .*mytestlabel' conftest.out`"] = "" ; then ++ # see if we have a non-global-ish symbol ++ # but we should see if we can do better. ++ $1="$sym" ++ fi ++ else ++ # not so much on the NM goodness :/ ++ echo "$NM failed. Output from NM was:" >&AC_FD_CC ++ cat conftest.out >&AC_FD_CC ++ AC_MSG_WARN([$NM could not read object file]) ++ fi ++ ]) ++ if test "$asm_result" = "1" ; then ++ break ++ fi ++ done ++ rm -f conftest.out ++ unset asm_result sym ++]) ++m4trace:config/ompi_config_asm.m4:137: -1- AC_DEFUN([OMPI_CHECK_ASM_LSYM], [ ++ AC_REQUIRE([AC_PROG_NM]) ++ ++ AC_CACHE_CHECK([prefix for lsym labels], ++ [ompi_cv_asm_lsym], ++ [_OMPI_CHECK_ASM_LSYM([ompi_cv_asm_lsym])]) ++ AC_DEFINE_UNQUOTED([OMPI_ASM_LSYM], ["$ompi_cv_asm_lsym"], ++ [Assembly prefix for lsym labels]) ++ OMPI_ASM_LSYM="$ompi_cv_asm_lsym" ++ AC_SUBST(OMPI_ASM_LSYM) ++]) ++m4trace:config/ompi_config_asm.m4:157: -1- AC_DEFUN([OMPI_CHECK_ASM_PROC], [ ++ AC_CACHE_CHECK([if .proc/endp is needed], ++ [ompi_cv_asm_need_proc], ++ [ompi_cv_asm_need_proc="no" ++ OMPI_TRY_ASSEMBLE([ ++ .proc mysym ++mysym: ++ .endp mysym], ++ [ompi_cv_asm_need_proc="yes"]) ++ rm -f conftest.out]) ++ ++ if test "$ompi_cv_asm_need_proc" = "yes" ; then ++ ompi_cv_asm_proc=".proc" ++ ompi_cv_asm_endproc=".endp" ++ else ++ ompi_cv_asm_proc="#" ++ ompi_cv_asm_endproc="#" ++ fi ++]) ++m4trace:config/ompi_config_asm.m4:186: -1- AC_DEFUN([OMPI_CHECK_ASM_GSYM], [ ++ AC_CACHE_CHECK([prefix for global symbol labels], ++ [ompi_cv_asm_gsym], ++ [_OMPI_CHECK_ASM_GSYM]) ++ ++ if test "$ompi_cv_asm_gsym" = "none" ; then ++ AC_MSG_ERROR([Could not determine global symbol label prefix]) ++ fi ++ ++ AC_DEFINE_UNQUOTED([OMPI_ASM_GSYM], ["$ompi_cv_asm_gsym"], ++ [Assembly prefix for gsym labels]) ++ OMPI_ASM_GSYM="$ompi_cv_asm_gsym" ++ AC_SUBST(OMPI_ASM_GSYM) ++ ++]) ++m4trace:config/ompi_config_asm.m4:202: -1- AC_DEFUN([_OMPI_CHECK_ASM_GSYM], [ ++ ompi_cv_asm_gsym="none" ++ ++ for sym in "_" "" "." ; do ++ asm_result=0 ++ echo "configure: trying $sym" >&AC_FD_CC ++cat > conftest_c.c <&AC_FD_CC ++ ompi_link="$CC $CFLAGS conftest_c.$OBJEXT conftest.$OBJEXT -o conftest $LDFLAGS $LIBS > conftest.link 2>&1" ++ if AC_TRY_EVAL(ompi_link) ; then ++ # save the warnings ++ cat conftest.link >&AC_FD_CC ++ asm_result=1 ++ else ++ cat conftest.link >&AC_FD_CC ++ echo "configure: failed C program was: " >&AC_FD_CC ++ cat conftest_c.c >&AC_FD_CC ++ echo "configure: failed ASM program was: " >&AC_FD_CC ++ cat conftest.s >&AC_FD_CC ++ asm_result=0 ++ fi ++ else ++ # save output and failed program ++ cat conftest.cmpl >&AC_FD_CC ++ echo "configure: failed C program was: " >&AC_FD_CC ++ cat conftest.c >&AC_FD_CC ++ asm_result=0 ++ fi], ++ [asm_result=0]) ++ if test "$asm_result" = "1" ; then ++ ompi_cv_asm_gsym="$sym" ++ break ++ fi ++ done ++ rm -rf conftest.* ++]) ++m4trace:config/ompi_config_asm.m4:274: -1- AC_DEFUN([OMPI_CHECK_ASM_LABEL_SUFFIX], [ ++ AC_MSG_CHECKING([suffix for labels]) ++ ompi_cv_asm_label_suffix="" ++ case $host in ++ *) ++ ompi_cv_asm_label_suffix=":" ++ ;; ++ esac ++ AC_MSG_RESULT([$ompi_cv_asm_label_suffix]) ++ AC_DEFINE_UNQUOTED([OMPI_ASM_LABEL_SUFFIX], ["$ompi_cv_asm_label_suffix"], ++ [Assembly suffix for labels]) ++ OMPI_ASM_LABEL_SUFFIX="$ompi_cv_asm_label_suffix" ++ AC_SUBST(OMPI_AS_LABEL_SUFFIX) ++]) ++m4trace:config/ompi_config_asm.m4:298: -1- AC_DEFUN([OMPI_CHECK_ASM_ALIGN_LOG], [ ++ AC_REQUIRE([AC_PROG_NM]) ++ AC_REQUIRE([AC_PROG_GREP]) ++ ++ AC_CACHE_CHECK([if .align directive takes logarithmic value], ++ [ompi_cv_asm_align_log], ++ [ OMPI_TRY_ASSEMBLE([ $ompi_cv_asm_text ++ .align 4 ++ $ompi_cv_asm_global foo ++ .byte 1 ++ .align 4 ++foo$ompi_cv_asm_label_suffix ++ .byte 2], ++ [ompi_asm_addr=[`$NM conftest.$OBJEXT | $GREP foo | sed -e 's/.*\([0-9a-fA-F][0-9a-fA-F]\).*foo.*/\1/'`]], ++ [ompi_asm_addr=""]) ++ # test for both 16 and 10 (decimal and hex notations) ++ echo "configure: .align test address offset is $ompi_asm_addr" >&AC_FD_CC ++ if test "$ompi_asm_addr" = "16" -o "$ompi_asm_addr" = "10" ; then ++ ompi_cv_asm_align_log="yes" ++ else ++ ompi_cv_asm_align_log="no" ++ fi]) ++ ++ if test "$ompi_cv_asm_align_log" = "yes" -o "$ompi_cv_asm_align_log" = "1" ; then ++ ompi_asm_align_log_result=1 ++ else ++ ompi_asm_align_log_result=0 ++ fi ++ ++ AC_DEFINE_UNQUOTED([OMPI_ASM_ALIGN_LOG], ++ [$asm_align_log_result], ++ [Assembly align directive expects logarithmic value]) ++ ++ unset omp_asm_addr asm_result ++]) ++m4trace:config/ompi_config_asm.m4:347: -1- AC_DEFUN([OMPI_CHECK_ASM_TYPE], [ ++ AC_CACHE_CHECK([prefix for function in .type], ++ [ompi_cv_asm_type], ++ [_OMPI_CHECK_ASM_TYPE]) ++ ++ AC_DEFINE_UNQUOTED([OMPI_ASM_TYPE], ["$ompi_cv_asm_type"], ++ [How to set function type in .type directive]) ++ OMPI_ASM_TYPE="$ompi_cv_asm_type" ++ AC_SUBST(OMPI_ASM_TYPE) ++]) ++m4trace:config/ompi_config_asm.m4:358: -1- AC_DEFUN([_OMPI_CHECK_ASM_TYPE], [ ++ ompi_cv_asm_type="" ++ ++ case "${host}" in ++ *-sun-solaris*) ++ # GCC on solaris seems to accept just about anything, not ++ # that what it defines actually works... So just hardwire ++ # to the right answer ++ ompi_cv_asm_type="#" ++ ;; ++ *) ++ for type in @ \# % ; do ++ asm_result=0 ++ echo "configure: trying $type" >&AC_FD_CC ++ OMPI_TRY_ASSEMBLE([ .type mysym, ${type}function ++mysym:], ++ [ompi_cv_asm_type="${type}" ++ asm_result=1]) ++ if test "$asm_result" = "1" ; then ++ break ++ fi ++ done ++ ;; ++ esac ++ rm -f conftest.out ++ ++ unset asm_result type ++]) ++m4trace:config/ompi_config_asm.m4:396: -1- AC_DEFUN([OMPI_CHECK_ASM_SIZE], [ ++ AC_CACHE_CHECK([if .size is needed], ++ [ompi_cv_asm_need_size], ++ [ompi_cv_asm_need_size="no" ++ OMPI_TRY_ASSEMBLE([ .size mysym, 1], ++ [ompi_cv_asm_need_size="yes"]) ++ rm -f conftest.out]) ++ ++ if test "$ompi_cv_asm_need_size" = "yes" ; then ++ ompi_asm_size=1 ++ else ++ ompi_asm_size=0 ++ fi ++ ++ AC_DEFINE_UNQUOTED([OMPI_ASM_SIZE], ["$ompi_asm_size"], ++ [Do we need to give a .size directive]) ++ OMPI_ASM_SIZE="$ompi_asm_size" ++ AC_SUBST(OMPI_ASM_TYPE) ++ unset asm_result ++]) ++m4trace:config/ompi_config_asm.m4:422: -1- AC_DEFUN([OMPI_CHECK_ASM_GNU_STACKEXEC], [ ++ AC_REQUIRE([AC_PROG_GREP]) ++ ++ AC_CHECK_PROG([OBJDUMP], [objdump], [objdump]) ++ AC_CACHE_CHECK([if .note.GNU-stack is needed], ++ [ompi_cv_asm_gnu_stack_result], ++ [AS_IF([test "$OBJDUMP" != ""], ++ [ # first, see if a simple C program has it set ++ cat >conftest.c < /dev/null && ompi_cv_asm_gnu_stack_result=yes], ++ [OMPI_LOG_MSG([the failed program was:], 1) ++ OMPI_LOG_FILE([conftest.c]) ++ ompi_cv_asm_gnu_stack_result=no]) ++ if test "$ompi_cv_asm_gnu_stack_result" != "yes" ; then ++ ompi_cv_asm_gnu_stack_result="no" ++ fi ++ rm -rf conftest.*], ++ [ompi_cv_asm_gnu_stack_result="no"])]) ++ if test "$ompi_cv_asm_gnu_stack_result" = "yes" ; then ++ ompi_cv_asm_gnu_stack=1 ++ else ++ ompi_cv_asm_gnu_stack=0 ++ fi ++]) ++m4trace:config/ompi_config_asm.m4:459: -1- AC_DEFUN([OMPI_CHECK_POWERPC_REG], [ ++ AC_MSG_CHECKING([if PowerPC registers have r prefix]) ++ OMPI_TRY_ASSEMBLE([$ompi_cv_asm_text ++ addi 1,1,0], ++ [ompi_cv_asm_powerpc_r_reg=0], ++ [OMPI_TRY_ASSEMBLE([$ompi_cv_asm_text ++ addi r1,r1,0], ++ [ompi_cv_asm_powerpc_r_reg=1], ++ [AC_MSG_ERROR([Can not determine how to use PPC registers])])]) ++ if test "$ompi_cv_asm_powerpc_r_reg" = "1" ; then ++ AC_MSG_RESULT([yes]) ++ else ++ AC_MSG_RESULT([no]) ++ fi ++ ++ AC_DEFINE_UNQUOTED([OMPI_POWERPC_R_REGISTERS], ++ [$ompi_cv_asm_powerpc_r_reg], ++ [Whether r notation is used for ppc registers]) ++]) ++m4trace:config/ompi_config_asm.m4:490: -1- AC_DEFUN([OMPI_CHECK_POWERPC_64BIT], [ ++ if test "$ac_cv_sizeof_long" != "4" ; then ++ # this function should only be called in the 32 bit case ++ AC_MSG_ERROR([CHECK_POWERPC_64BIT called on 64 bit platform. Internal error.]) ++ fi ++ AC_MSG_CHECKING([for 64-bit PowerPC assembly support]) ++ case $host in ++ *-darwin*) ++ ppc64_result=0 ++ if test "$ompi_cv_asm_powerpc_r_reg" = "1" ; then ++ ldarx_asm=" ldarx r1,r1,r1"; ++ else ++ ldarx_asm=" ldarx 1,1,1"; ++ fi ++ OMPI_TRY_ASSEMBLE([$ompi_cv_asm_text ++ $ldarx_asm], ++ [ppc64_result=1], ++ [ppc64_result=0]) ++ ;; ++ *) ++ ppc64_result=0 ++ ;; ++ esac ++ ++ if test "$ppc64_result" = "1" ; then ++ AC_MSG_RESULT([yes]) ++ ifelse([$1],,:,[$1]) ++ else ++ AC_MSG_RESULT([no]) ++ ifelse([$2],,:,[$2]) ++ fi ++ ++ unset ppc64_result ldarx_asm ++]) ++m4trace:config/ompi_config_asm.m4:531: -1- AC_DEFUN([OMPI_CHECK_SPARCV8PLUS], [ ++ AC_MSG_CHECKING([if have Sparc v8+/v9 support]) ++ sparc_result=0 ++ OMPI_TRY_ASSEMBLE([$ompi_cv_asm_text ++ casa [%o0] 0x80, %o1, %o2], ++ [sparc_result=1], ++ [sparc_result=0]) ++ if test "$sparc_result" = "1" ; then ++ AC_MSG_RESULT([yes]) ++ ifelse([$1],,:,[$1]) ++ else ++ AC_MSG_RESULT([no]) ++ ifelse([$2],,:,[$2]) ++ fi ++ ++ unset sparc_result ++]) ++m4trace:config/ompi_config_asm.m4:569: -1- AC_DEFUN([OMPI_CHECK_INLINE_C_GCC], [ ++ assembly="$1" ++ asm_result="unknown" ++ ++ AC_MSG_CHECKING([if $CC supports GCC inline assembly]) ++ ++ if test "$ompi_cv_c_compiler_vendor" = "portland group" ; then ++ # PGI seems to have some issues with our inline assembly. ++ # Disable for now. ++ asm_result="no (Portland Group)" ++ else ++ case $host in ++ *-aix*) ++ # the AIX compilers and linkers really don't do gcc ++ # inline assembly right - disable for now. ++ asm_result="no (AIX)" ++ ;; ++ *) ++ if test ! "$assembly" = "" ; then ++ AC_RUN_IFELSE(AC_LANG_PROGRAM([[ ++AC_INCLUDES_DEFAULT]], ++[[int ret = 1; ++__asm__ __volatile__ ($assembly); ++return ret;]]), ++ [asm_result="yes"], [asm_result="no"], ++ [asm_result="unknown"]) ++ else ++ assembly="test skipped - assuming no" ++ fi ++ ;; ++ esac ++ ++ # if we're cross compiling, just try to compile and figure good enough ++ if test "$asm_result" = "unknown" ; then ++ AC_LINK_IFELSE(AC_LANG_PROGRAM([[ ++AC_INCLUDES_DEFAULT]], ++[[int ret = 1; ++__asm__ __volatile__ ($assembly); ++return ret;]]), ++ [asm_result="yes"], [asm_result="no"]) ++ fi ++ fi ++ ++ AC_MSG_RESULT([$asm_result]) ++ ++ if test "$asm_result" = "yes" ; then ++ OMPI_C_GCC_INLINE_ASSEMBLY=1 ++ else ++ OMPI_C_GCC_INLINE_ASSEMBLY=0 ++ fi ++ ++ AC_DEFINE_UNQUOTED([OMPI_C_GCC_INLINE_ASSEMBLY], ++ [$OMPI_C_GCC_INLINE_ASSEMBLY], ++ [Whether C compiler supports GCC style inline assembly]) ++ ++ unset OMPI_C_GCC_INLINE_ASSEMBLY assembly asm_result ++]) ++m4trace:config/ompi_config_asm.m4:627: -1- AC_DEFUN([OMPI_CHECK_INLINE_CXX_GCC], [ ++ assembly="$1" ++ asm_result="unknown" ++ ++ AC_LANG_PUSH([C++]) ++ AC_MSG_CHECKING([if $CXX supports GCC inline assembly]) ++ ++ case $host in ++ *-aix*) ++ # the AIX compilers and linkers really don't do gcc ++ # inline assembly right - disable for now. ++ asm_result="no (AIX)" ++ ;; ++ *) ++ if test ! "$assembly" = "" ; then ++ AC_RUN_IFELSE(AC_LANG_PROGRAM([[ ++AC_INCLUDES_DEFAULT]], ++[[int ret = 1; ++__asm__ __volatile__ ($assembly); ++return ret;]]), ++ [asm_result="yes"], [asm_result="no"], ++ [asm_result="unknown"]) ++ else ++ assembly="test skipped - assuming no" ++ fi ++ ;; ++ esac ++ # if we're cross compiling, just try to compile and figure good enough ++ if test "$asm_result" = "unknown" ; then ++ AC_LINK_IFELSE(AC_LANG_PROGRAM([[ ++AC_INCLUDES_DEFAULT]], ++[[int ret = 1; ++__asm__ __volatile__ ($assembly); ++return ret;]]), ++ [asm_result="yes"], [asm_result="no"]) ++ fi ++ ++ AC_MSG_RESULT([$asm_result]) ++ ++ if test "$asm_result" = "yes" ; then ++ OMPI_CXX_GCC_INLINE_ASSEMBLY=1 ++ else ++ OMPI_CXX_GCC_INLINE_ASSEMBLY=0 ++ fi ++ ++ AC_DEFINE_UNQUOTED([OMPI_CXX_GCC_INLINE_ASSEMBLY], ++ [$OMPI_CXX_GCC_INLINE_ASSEMBLY], ++ [Whether C++ compiler supports GCC style inline assembly]) ++ AC_LANG_POP([C++]) ++ ++ unset OMPI_CXX_GCC_INLINE_ASSEMBLY assembly asm_result ++]) ++m4trace:config/ompi_config_asm.m4:689: -1- AC_DEFUN([OMPI_CHECK_INLINE_C_DEC], [ ++ ++ AC_MSG_CHECKING([if $CC supports DEC inline assembly]) ++ ++ AC_LINK_IFELSE(AC_LANG_PROGRAM([[ ++AC_INCLUDES_DEFAULT ++#include ]], ++[[asm(""); ++return 0;]]), ++ [asm_result="yes"], [asm_result="no"]) ++ ++ AC_MSG_RESULT([$asm_result]) ++ ++ if test "$asm_result" = "yes" ; then ++ OMPI_C_DEC_INLINE_ASSEMBLY=1 ++ else ++ OMPI_C_DEC_INLINE_ASSEMBLY=0 ++ fi ++ ++ AC_DEFINE_UNQUOTED([OMPI_C_DEC_INLINE_ASSEMBLY], ++ [$OMPI_C_DEC_INLINE_ASSEMBLY], ++ [Whether C compiler supports DEC style inline assembly]) ++ ++ unset OMPI_C_DEC_INLINE_ASSEMBLY asm_result ++]) ++m4trace:config/ompi_config_asm.m4:715: -1- AC_DEFUN([OMPI_CHECK_INLINE_CXX_DEC], [ ++ ++ AC_LANG_PUSH([C++]) ++ AC_MSG_CHECKING([if $CXX supports DEC inline assembly]) ++ ++ AC_LINK_IFELSE(AC_LANG_PROGRAM([[ ++AC_INCLUDES_DEFAULT ++#include ]], ++[[asm(""); ++return 0;]]), ++ [asm_result="yes"], [asm_result="no"]) ++ ++ AC_MSG_RESULT([$asm_result]) ++ ++ if test "$asm_result" = "yes" ; then ++ OMPI_CXX_DEC_INLINE_ASSEMBLY=1 ++ else ++ OMPI_CXX_DEC_INLINE_ASSEMBLY=0 ++ fi ++ ++ AC_DEFINE_UNQUOTED([OMPI_CXX_DEC_INLINE_ASSEMBLY], ++ [$OMPI_CXX_DEC_INLINE_ASSEMBLY], ++ [Whether C++ compiler supports DEC style inline assembly]) ++ AC_LANG_POP([C++]) ++ ++ unset OMPI_CXX_DEC_INLINE_ASSEMBLY asm_result ++]) ++m4trace:config/ompi_config_asm.m4:752: -1- AC_DEFUN([OMPI_CHECK_INLINE_C_XLC], [ ++ ++ AC_MSG_CHECKING([if $CC supports XLC inline assembly]) ++ ++ OMPI_C_XLC_INLINE_ASSEMBLY=0 ++ asm_result="no" ++ if test "$CC" = "xlc" ; then ++ OMPI_XLC_INLINE_ASSEMBLY=1 ++ asm_result="yes" ++ fi ++ ++ AC_MSG_RESULT([$asm_result]) ++ AC_DEFINE_UNQUOTED([OMPI_C_XLC_INLINE_ASSEMBLY], ++ [$OMPI_C_XLC_INLINE_ASSEMBLY], ++ [Whether C compiler supports XLC style inline assembly]) ++ ++ unset OMPI_C_XLC_INLINE_ASSEMBLY ++]) ++m4trace:config/ompi_config_asm.m4:771: -1- AC_DEFUN([OMPI_CHECK_INLINE_CXX_XLC], [ ++ ++ AC_MSG_CHECKING([if $CXX supports XLC inline assembly]) ++ ++ OMPI_CXX_XLC_INLINE_ASSEMBLY=0 ++ asm_result="no" ++ if test "$CXX" = "xlC" -o "$CXX" = "xlc++" ; then ++ OMPI_CXX_XLC_INLINE_ASSEMBLY=1 ++ asm_result="yes" ++ fi ++ ++ AC_MSG_RESULT([$asm_result]) ++ AC_DEFINE_UNQUOTED([OMPI_CXX_XLC_INLINE_ASSEMBLY], ++ [$OMPI_CXX_XLC_INLINE_ASSEMBLY], ++ [Whether C++ compiler supports XLC style inline assembly]) ++ ++ unset OMPI_CXX_XLC_INLINE_ASSEMBLY ++]) ++m4trace:config/ompi_config_asm.m4:802: -1- AC_DEFUN([OMPI_CONFIG_ASM], [ ++ AC_REQUIRE([OMPI_SETUP_CC]) ++ AC_REQUIRE([OMPI_SETUP_CXX]) ++ AC_REQUIRE([AM_PROG_AS]) ++ ++ # OS X Leopard ld bus errors if you have "-g" or "-gX" in the link line ++ # with our assembly (!). So remove it from CCASFLAGS if it's ++ # there (and we're on Leopard). ++ OMPI_VAR_SCOPE_PUSH([ompi_config_asm_flags_new ompi_config_asm_flag]) ++ AC_MSG_CHECKING([if need to remove -g from CCASFLAGS]) ++ case "$host" in ++ *-apple-darwin9.*) ++ for ompi_config_asm_flag in $CCASFLAGS; do ++ # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs ++ # for an explanation of @<:@ and @:>@ -- they m4 expand ++ # to [ and ] ++ case $ompi_config_asm_flag in ++ -g) ;; ++ -g@<:@0-9@:>@) ;; ++ *) ++ ompi_config_asm_flags_new="$ompi_config_asm_flags_new $ompi_config_asm_flag" ++ ;; ++ esac ++ done ++ CCASFLAGS="$ompi_config_asm_flags_new" ++ AC_MSG_RESULT([OS X Leopard - yes ($CCASFLAGS)]) ++ ;; ++ *) ++ AC_MSG_RESULT([no]) ++ ;; ++ esac ++ OMPI_VAR_SCOPE_POP ++ ++ AC_MSG_CHECKING([whether to enable smp locks]) ++ AC_ARG_ENABLE([smp-locks], ++ [AC_HELP_STRING([--enable-smp-locks], ++ [enable smp locks in atomic ops. Do not disable if code will ever run in SMP or multi-threaded environment. (default: enabled)])]) ++ if test "$enable_smp_locks" != "no"; then ++ AC_MSG_RESULT([yes]) ++ want_smp_locks=1 ++ else ++ AC_MSG_RESULT([no]) ++ want_smp_locks=0 ++ fi ++ AC_DEFINE_UNQUOTED([OMPI_WANT_SMP_LOCKS], [$want_smp_locks], ++ [whether we want to have smp locks in atomic ops or not]) ++ ++ if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then ++ ompi_cv_asm_arch="WINDOWS" ++ else ++ OMPI_CHECK_ASM_PROC ++ OMPI_CHECK_ASM_TEXT ++ OMPI_CHECK_ASM_GLOBAL ++ OMPI_CHECK_ASM_GNU_STACKEXEC ++ OMPI_CHECK_ASM_LABEL_SUFFIX ++ OMPI_CHECK_ASM_GSYM ++ OMPI_CHECK_ASM_LSYM ++ OMPI_CHECK_ASM_TYPE ++ OMPI_CHECK_ASM_SIZE ++ OMPI_CHECK_ASM_ALIGN_LOG ++ ++ # find our architecture for purposes of assembly stuff ++ ompi_cv_asm_arch="UNSUPPORTED" ++ OMPI_GCC_INLINE_ASSIGN="" ++ OMPI_ASM_SUPPORT_64BIT=0 ++ case "${host}" in ++ i?86-*|x86_64*) ++ if test "$ac_cv_sizeof_long" = "4" ; then ++ ompi_cv_asm_arch="IA32" ++ else ++ ompi_cv_asm_arch="AMD64" ++ fi ++ OMPI_ASM_SUPPORT_64BIT=1 ++ OMPI_GCC_INLINE_ASSIGN='"movl [$]0, %0" : "=&r"(ret)' ++ ;; ++ ++ ia64-*) ++ ompi_cv_asm_arch="IA64" ++ OMPI_ASM_SUPPORT_64BIT=1 ++ OMPI_GCC_INLINE_ASSIGN='"mov %0=r0\n;;\n" : "=&r"(ret)' ++ ;; ++ ++ alpha-*|alphaev[[4-8]]-*|alphaev56-*|alphaev6[[78]]-*) ++ ompi_cv_asm_arch="ALPHA" ++ OMPI_ASM_SUPPORT_64BIT=1 ++ OMPI_GCC_INLINE_ASSIGN='"bis [$]31,[$]31,%0" : "=&r"(ret)' ++ ;; ++ ++ mips-*|mips64*) ++ # Should really find some way to make sure that we are on ++ # a MIPS III machine (r4000 and later) ++ ompi_cv_asm_arch="MIPS" ++ OMPI_ASM_SUPPORT_64BIT=1 ++ OMPI_GCC_INLINE_ASSIGN='"or %0,[$]0,[$]0" : "=&r"(ret)' ++ ;; ++ ++ powerpc-*|powerpc64-*) ++ OMPI_CHECK_POWERPC_REG ++ if test "$ac_cv_sizeof_long" = "4" ; then ++ ompi_cv_asm_arch="POWERPC32" ++ ++ # Note that on some platforms (Apple G5), even if we are ++ # compiling in 32 bit mode (and therefore should assume ++ # sizeof(long) == 4), we can use the 64 bit test and set ++ # operations. ++ OMPI_CHECK_POWERPC_64BIT(OMPI_ASM_SUPPORT_64BIT=1) ++ elif test "$ac_cv_sizeof_long" = "8" ; then ++ OMPI_ASM_SUPPORT_64BIT=1 ++ ompi_cv_asm_arch="POWERPC64" ++ else ++ AC_MSG_ERROR([Could not determine PowerPC word size: $ac_cv_sizeof_long]) ++ fi ++ OMPI_GCC_INLINE_ASSIGN='"1: li %0,0" : "=&r"(ret)' ++ ;; ++ ++ sparc*-*) ++ # SPARC v9 (and above) are the only ones with 64bit support ++ # if compiling 32 bit, see if we are v9 (aka v8plus) or ++ # earlier (casa is v8+/v9). ++ if test "$ac_cv_sizeof_long" = "4" ; then ++ have_v8plus=0 ++ OMPI_CHECK_SPARCV8PLUS([have_v8plus=1]) ++ if test "$have_v8plus" = "0" ; then ++ OMPI_ASM_SUPPORT_64BIT=0 ++ ompi_cv_asm_arch="SPARC" ++AC_MSG_WARN([Sparc v8 target is not supported in this release of Open MPI.]) ++AC_MSG_WARN([You must specify the target architecture v8plus]) ++AC_MSG_WARN([(cc: -xarch=v8plus, gcc: -mcpu=v9) for CFLAGS, CXXFLAGS,]) ++AC_MSG_WARN([FFLAGS, and FCFLAGS to compile Open MPI in 32 bit mode on]) ++AC_MSG_WARN([Sparc processors]) ++AC_MSG_ERROR([Can not continue.]) ++ else ++ OMPI_ASM_SUPPORT_64BIT=1 ++ ompi_cv_asm_arch="SPARCV9_32" ++ fi ++ ++ elif test "$ac_cv_sizeof_long" = "8" ; then ++ OMPI_ASM_SUPPORT_64BIT=1 ++ ompi_cv_asm_arch="SPARCV9_64" ++ else ++ AC_MSG_ERROR([Could not determine Sparc word size: $ac_cv_sizeof_long]) ++ fi ++ OMPI_GCC_INLINE_ASSIGN='"mov 0,%0" : "=&r"(ret)' ++ ;; ++ ++ *) ++ AC_MSG_ERROR([No atomic primitives available for $host]) ++ ;; ++ esac ++ ++ AC_DEFINE_UNQUOTED([OMPI_ASM_SUPPORT_64BIT], ++ [$OMPI_ASM_SUPPORT_64BIT], ++ [Whether we can do 64bit assembly operations or not. Should not be used outside of the assembly header files]) ++ AC_SUBST([OMPI_ASM_SUPPORT_64BIT]) ++ ++ # ++ # figure out if we need any special function start / stop code ++ # ++ case $host_os in ++ aix*) ++ ompi_asm_arch_config="aix" ++ ;; ++ *) ++ ompi_asm_arch_config="default" ++ ;; ++ esac ++ ++ # now that we know our architecture, try to inline assemble ++ OMPI_CHECK_INLINE_C_GCC([$OMPI_GCC_INLINE_ASSIGN]) ++ OMPI_CHECK_INLINE_C_DEC ++ OMPI_CHECK_INLINE_C_XLC ++ OMPI_CHECK_INLINE_CXX_GCC([$OMPI_GCC_INLINE_ASSIGN]) ++ OMPI_CHECK_INLINE_CXX_DEC ++ OMPI_CHECK_INLINE_CXX_XLC ++ ++ # format: ++ # config_file-text-global-label_suffix-gsym-lsym-type-size-align_log-ppc_r_reg-64_bit-gnu_stack ++ asm_format="${ompi_asm_arch_config}" ++ asm_format="${asm_format}-${ompi_cv_asm_text}-${ompi_cv_asm_global}" ++ asm_format="${asm_format}-${ompi_cv_asm_label_suffix}-${ompi_cv_asm_gsym}" ++ asm_format="${asm_format}-${ompi_cv_asm_lsym}" ++ asm_format="${asm_format}-${ompi_cv_asm_type}-${ompi_asm_size}" ++ asm_format="${asm_format}-${ompi_asm_align_log_result}" ++ if test "$ompi_cv_asm_arch" = "POWERPC32" -o "$ompi_cv_asm_arch" = "POWERPC64" ; then ++ asm_format="${asm_format}-${ompi_cv_asm_powerpc_r_reg}" ++ else ++ asm_format="${asm_format}-1" ++ fi ++ asm_format="${asm_format}-${OMPI_ASM_SUPPORT_64BIT}" ++ ompi_cv_asm_format="${asm_format}-${ompi_cv_asm_gnu_stack}" ++ # For the Makefile, need to escape the $ as $$. Don't display ++ # this version, but make sure the Makefile gives the right thing ++ # when regenerating the files because the base has been touched. ++ OMPI_ASSEMBLY_FORMAT=`echo "$ompi_cv_asm_format" | sed -e 's/\\\$/\\\$\\\$/'` ++ ++ AC_MSG_CHECKING([for assembly format]) ++ AC_MSG_RESULT([$ompi_cv_asm_format]) ++ AC_DEFINE_UNQUOTED([OMPI_ASSEMBLY_FORMAT], ["$OMPI_ASSEMBLY_FORMAT"], ++ [Format of assembly file]) ++ AC_SUBST([OMPI_ASSEMBLY_FORMAT]) ++ fi # if cv_c_compiler_vendor = microsoft ++ ++ result="OMPI_$ompi_cv_asm_arch" ++ OMPI_ASSEMBLY_ARCH="$ompi_cv_asm_arch" ++ AC_MSG_CHECKING([for asssembly architecture]) ++ AC_MSG_RESULT([$ompi_cv_asm_arch]) ++ AC_DEFINE_UNQUOTED([OMPI_ASSEMBLY_ARCH], [$result], ++ [Architecture type of assembly to use for atomic operations]) ++ AC_SUBST([OMPI_ASSEMBLY_ARCH]) ++ ++ OMPI_ASM_FIND_FILE ++ ++ unset result asm_format ++]) ++m4trace:config/ompi_config_asm.m4:1026: -1- AC_DEFUN([OMPI_ASM_FIND_FILE], [ ++ AC_REQUIRE([AC_PROG_GREP]) ++ AC_REQUIRE([AC_PROG_FGREP]) ++ ++if test "$ompi_cv_asm_arch" != "WINDOWS" ; then ++ AC_CHECK_PROG([PERL], [perl], [perl]) ++ ++ # see if we have a pre-built one already ++ AC_MSG_CHECKING([for pre-built assembly file]) ++ ompi_cv_asm_file="" ++ if $GREP "$ompi_cv_asm_arch" "${top_ompi_srcdir}/opal/asm/asm-data.txt" | $FGREP "$ompi_cv_asm_format" >conftest.out 2>&1 ; then ++ ompi_cv_asm_file="`cut -f3 conftest.out`" ++ if test ! "$ompi_cv_asm_file" = "" ; then ++ ompi_cv_asm_file="atomic-${ompi_cv_asm_file}.s" ++ if test -f "${top_ompi_srcdir}/opal/asm/generated/${ompi_cv_asm_file}" ; then ++ AC_MSG_RESULT([yes ($ompi_cv_asm_file)]) ++ else ++ AC_MSG_RESULT([no ($ompi_cv_asm_file not found)]) ++ ompi_cv_asm_file="" ++ fi ++ fi ++ else ++ AC_MSG_RESULT([no (not in asm-data)]) ++ fi ++ rm -rf conftest.* ++ ++ if test "$ompi_cv_asm_file" = "" ; then ++ if test ! "$PERL" = "" ; then ++ # we have perl... Can we generate a file? ++ AC_MSG_CHECKING([whether possible to generate assembly file]) ++ mkdir -p opal/asm/generated ++ ompi_cv_asm_file="atomic-local.s" ++ ompi_try='$PERL $top_ompi_srcdir/opal/asm/generate-asm.pl $ompi_cv_asm_arch "$ompi_cv_asm_format" $top_ompi_srcdir/opal/asm/base $top_ompi_builddir/opal/asm/generated/$ompi_cv_asm_file >conftest.out 2>&1' ++ if AC_TRY_EVAL(ompi_try) ; then ++ # save the warnings ++ cat conftest.out >&AC_FD_CC ++ AC_MSG_RESULT([yes]) ++ else ++ # save output ++ cat conftest.out >&AC_FD_CC ++ ompi_cv_asm_file="" ++ AC_MSG_RESULT([failed]) ++ AC_MSG_WARN([Could not build atomic operations assembly file.]) ++ AC_MSG_WARN([There will be no atomic operations for this build.]) ++ fi ++ else ++ AC_MSG_WARN([Could not find prebuilt atomic operations file and could not]) ++ AC_MSG_WARN([find perl to attempt to generate a custom assembly file.]) ++ AC_MSG_WARN([There will be no atomic operations for this build.]) ++ fi ++ fi ++ rm -rf conftest.* ++else ++ # On windows with VC++, atomics are done with compiler primitives ++ ompi_cv_asm_file="" ++fi ++ ++ AC_MSG_CHECKING([for atomic assembly filename]) ++ if test "$ompi_cv_asm_file" = "" ; then ++ AC_MSG_RESULT([none]) ++ result=0 ++ else ++ AC_MSG_RESULT([$ompi_cv_asm_file]) ++ result=1 ++ fi ++ ++ AC_DEFINE_UNQUOTED([OMPI_HAVE_ASM_FILE], [$result], ++ [Whether there is an atomic assembly file available]) ++ AM_CONDITIONAL([OMPI_HAVE_ASM_FILE], [test "$result" = "1"]) ++ ++ OMPI_ASM_FILE=$ompi_cv_asm_file ++ AC_SUBST(OMPI_ASM_FILE) ++]) ++m4trace:config/ompi_config_pthreads.m4:30: -1- AC_DEFUN([OMPI_INTL_PTHREAD_TRY_LINK], [ ++# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK ++# ++# Make sure that we can run a small application in C or C++, which ++# ever is the current language. Do make sure that C or C++ is the ++# current language. ++# ++# As long as this is not being run.... ++# pthread_t may be anything from an int to a struct -- init with self-tid. ++# ++ AC_TRY_LINK([#include ], ++ [pthread_t th=pthread_self(); pthread_join(th, 0); ++ pthread_attr_init(0); pthread_cleanup_push(0, 0); ++ pthread_create(0,0,0,0); pthread_cleanup_pop(0); ], ++ [$1], [$2]) ++# END: OMPI_INTL_PTHREAD_TRY_LINK ++]) ++m4trace:config/ompi_config_pthreads.m4:49: -1- AC_DEFUN([OMPI_INTL_PTHREAD_TRY_LINK_F77], [ ++# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK_F77 ++# ++# Make sure that we can run a small application in Fortran, with ++# pthreads living in a C object file ++OMPI_F77_MAKE_C_FUNCTION([ompi_ac_thread_fn], [pthreadtest]) ++ ++# Fortran module ++cat > conftestf.f < conftest.c < ++#include ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void $ompi_ac_thread_fn() ++{ ++ pthread_t th; ++ pthread_create(&th, NULL, NULL, NULL); ++ pthread_join(th, 0); ++ pthread_attr_init(0); ++ pthread_cleanup_push(0, 0); ++ pthread_create(0,0,0,0); ++ pthread_cleanup_pop(0); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++# Try the compile ++OMPI_LOG_COMMAND( ++ [$CC $CFLAGS -I. -c conftest.c], ++ OMPI_LOG_COMMAND( ++ [$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS], ++ [HAPPY=1], ++ [HAPPY=0]), ++ [HAPPY=0]) ++ ++if test "$HAPPY" = "1"; then ++ $1 ++else ++ OMPI_LOG_MSG([here is the C program:], 1) ++ OMPI_LOG_FILE([conftest.c]) ++ if test -f conftest.h; then ++ OMPI_LOG_MSG([here is contest.h:], 1) ++ OMPI_LOG_FILE([conftest.h]) ++ fi ++ OMPI_LOG_MSG([here is the fortran program:], 1) ++ OMPI_LOG_FILE([conftestf.f]) ++ $2 ++fi ++ ++unset HAPPY ompi_conftest_h ++rm -rf conftest* ++# END: OMPI_INTL_PTHREAD_TRY_LINK_F77 ++]) ++m4trace:config/ompi_config_pthreads.m4:127: -1- AC_DEFUN([OMPI_INTL_POSIX_THREADS_PLAIN_C], [ ++# ++# C compiler ++# ++if test "$ompi_pthread_c_success" = "0"; then ++ AC_MSG_CHECKING([if C compiler and POSIX threads work as is]) ++ if test "$HAVE_POSIX_THREADS" = "1" ; then ++ run_this_test=1 ++ else ++ case "${host_cpu}-${host_os}" in ++ *solaris*) ++ AC_MSG_RESULT([no - Solaris, not checked]) ++ run_this_test=0 ++ ;; ++ *-aix* | *-freebsd*) ++ if test "`echo $CPPFLAGS | $GREP 'D_THREAD_SAFE'`" = ""; then ++ PTRHEAD_CPPFLAGS="-D_THREAD_SAFE" ++ CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS" ++ fi ++ run_this_test=1 ++ ;; ++ *) ++ if test "`echo $CPPFLAGS | $GREP 'D_REENTRANT'`" = ""; then ++ PTHREAD_CPPFLAGS="-D_REENTRANT" ++ CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS" ++ fi ++ run_this_test=1 ++ ;; ++ esac ++ fi ++ ++ if test "$run_this_test" = "1" ; then ++ AC_LANG_PUSH(C) ++ OMPI_INTL_PTHREAD_TRY_LINK(ompi_pthread_c_success=1, ++ ompi_pthread_c_success=0) ++ AC_LANG_POP(C) ++ if test "$ompi_pthread_c_success" = "1"; then ++ AC_MSG_RESULT([yes]) ++ else ++ PTHREAD_CPPFLAGS= ++ CPPFLAGS="$orig_CPPFLAGS" ++ AC_MSG_RESULT([no]) ++ fi ++ fi ++fi ++]) ++m4trace:config/ompi_config_pthreads.m4:175: -1- AC_DEFUN([OMPI_INTL_POSIX_THREADS_PLAIN_CXX], [ ++# ++# C++ compiler ++# ++if test "$ompi_pthread_cxx_success" = "0"; then ++ AC_MSG_CHECKING([if C++ compiler and POSIX threads work as is]) ++ if test "$HAVE_POSIX_THREADS" = "1" ; then ++ run_this_test=1 ++ else ++ case "${host_cpu}-${host_os}" in ++ *solaris*) ++ AC_MSG_RESULT([no - Solaris, not checked]) ++ run_this_test=0 ++ ;; ++ *-aix* | *-freebsd*) ++ if test "`echo $CXXCPPFLAGS | $GREP 'D_THREAD_SAFE'`" = ""; then ++ PTRHEAD_CXXCPPFLAGS="-D_THREAD_SAFE" ++ CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS" ++ fi ++ run_this_test=1 ++ ;; ++ *) ++ if test "`echo $CXXCPPFLAGS | $GREP 'D_REENTRANT'`" = ""; then ++ PTHREAD_CXXCPPFLAGS="-D_REENTRANT" ++ CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS" ++ fi ++ run_this_test=1 ++ ;; ++ esac ++ fi ++ ++ if test "$run_this_test" = "1" ; then ++ AC_LANG_PUSH(C++) ++ OMPI_INTL_PTHREAD_TRY_LINK(ompi_pthread_cxx_success=1, ++ ompi_pthread_cxx_success=0) ++ AC_LANG_POP(C++) ++ if test "$ompi_pthread_cxx_success" = "1"; then ++ AC_MSG_RESULT([yes]) ++ else ++ PTHREAD_CXXCPPFLAGS= ++ CXXCPPFLAGS="$orig_CXXCPPFLAGS" ++ AC_MSG_RESULT([no]) ++ fi ++ fi ++fi ++]) ++m4trace:config/ompi_config_pthreads.m4:223: -1- AC_DEFUN([OMPI_INTL_POSIX_THREADS_PLAIN_FC], [ ++# ++# Fortran compiler ++# ++if test "$ompi_pthread_f77_success" = "0" -a "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ AC_MSG_CHECKING([if F77 compiler and POSIX threads work as is]) ++ if test "$HAVE_POSIX_THREADS" = "1" ; then ++ run_this_test=1 ++ else ++ case "${host_cpu}-${host_os}" in ++ *solaris*) ++ AC_MSG_RESULT([no - Solaris, not checked]) ++ run_this_test=0 ++ ;; ++ *) ++ run_this_test=1 ++ ;; ++ esac ++ fi ++ ++ if test "$run_this_test" = "1" ; then ++ AC_LANG_PUSH(C) ++ OMPI_INTL_PTHREAD_TRY_LINK_F77(ompi_pthread_f77_success=1, ++ ompi_pthread_f77_success=0) ++ AC_LANG_POP(C) ++ if test "$ompi_pthread_f77_success" = "1"; then ++ AC_MSG_RESULT([yes]) ++ else ++ AC_MSG_RESULT([no]) ++ fi ++ fi ++fi ++]) ++m4trace:config/ompi_config_pthreads.m4:258: -1- AC_DEFUN([OMPI_INTL_POSIX_THREADS_PLAIN], [ ++# BEGIN: OMPI_INTL_POSIX_THREADS_PLAIN ++# ++# Check if can compile without any special flags ++# we throw -D_REENTRANT or -D_THREAD_SAFE in here, just in ++# case. Some systems (OS X, for example) generally don't need ++# the defines, but then will on one system header here or there ++# why take chances? ++# ++ ++# Only run C++ and Fortran if those compilers already configured ++AC_PROVIDE_IFELSE([AC_PROG_CC], ++ [OMPI_INTL_POSIX_THREADS_PLAIN_C], ++ [ompi_pthread_c_success=1]) ++ ++AC_PROVIDE_IFELSE([AC_PROG_CXX], ++ [OMPI_INTL_POSIX_THREADS_PLAIN_CXX], ++ [ompi_pthread_cxx_success=1]) ++ ++AC_PROVIDE_IFELSE([AC_PROG_F77], ++ [OMPI_INTL_POSIX_THREADS_PLAIN_FC], ++ [ompi_pthread_f77_success=1]) ++ ++# End: OMPI_INTL_POSIX_THREADS_PLAIN ++]) ++m4trace:config/ompi_config_pthreads.m4:290: -1- AC_DEFUN([OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS_C], [ ++# ++# C compiler ++# ++if test "$ompi_pthread_c_success" = "0"; then ++ for pf in $pflags; do ++ AC_MSG_CHECKING([if C compiler and POSIX threads work with $pf]) ++ CFLAGS="$orig_CFLAGS $pf" ++ AC_LANG_PUSH(C) ++ OMPI_INTL_PTHREAD_TRY_LINK(ompi_pthread_c_success=1, ++ ompi_pthread_c_success=0) ++ AC_LANG_POP(C) ++ if test "$ompi_pthread_c_success" = "1"; then ++ PTHREAD_CFLAGS="$pf" ++ AC_MSG_RESULT([yes]) ++ break ++ else ++ PTHREAD_CFLAGS= ++ CFLAGS="$orig_CFLAGS" ++ AC_MSG_RESULT([no]) ++ fi ++ done ++fi ++]) ++m4trace:config/ompi_config_pthreads.m4:316: -1- AC_DEFUN([OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS_CXX], [ ++# ++# C++ compiler ++# ++if test "$ompi_pthread_cxx_success" = "0"; then ++ for pf in $pflags; do ++ AC_MSG_CHECKING([if C++ compiler and POSIX threads work with $pf]) ++ CXXFLAGS="$orig_CXXFLAGS $pf" ++ AC_LANG_PUSH(C++) ++ OMPI_INTL_PTHREAD_TRY_LINK(ompi_pthread_cxx_success=1, ++ ompi_pthread_cxx_success=0) ++ AC_LANG_POP(C++) ++ if test "$ompi_pthread_cxx_success" = "1"; then ++ PTHREAD_CXXFLAGS="$pf" ++ AC_MSG_RESULT([yes]) ++ break ++ else ++ PTHREAD_CXXFLAGS= ++ CXXFLAGS="$orig_CXXFLAGS" ++ AC_MSG_RESULT([no]) ++ fi ++ done ++fi ++]) ++m4trace:config/ompi_config_pthreads.m4:342: -1- AC_DEFUN([OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS_FC], [ ++# ++# Fortran compiler ++# ++if test "$ompi_pthread_f77_success" = "0" -a "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ for pf in $pflags; do ++ AC_MSG_CHECKING([if F77 compiler and POSIX threads work with $pf]) ++ FFLAGS="$orig_FFLAGS $pf" ++ AC_LANG_PUSH(C) ++ OMPI_INTL_PTHREAD_TRY_LINK_F77(ompi_pthread_f77_success=1, ++ ompi_pthread_f77_success=0) ++ AC_LANG_POP(C) ++ if test "$ompi_pthread_f77_success" = "1"; then ++ PTHREAD_FFLAGS="$pf" ++ AC_MSG_RESULT([yes]) ++ break ++ else ++ PTHREAD_FFLAGS= ++ FFLAGS="$orig_FFLAGS" ++ AC_MSG_RESULT([no]) ++ fi ++ done ++fi ++]) ++m4trace:config/ompi_config_pthreads.m4:368: -1- AC_DEFUN([OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS], [ ++# Begin: OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS ++# ++# If above didn't work, try some super-special compiler flags ++# that get evaluated to the "right" things. ++# ++# -Kthread: ++# -kthread: FreeBSD kernel threads ++# -pthread: Modern GCC (most all platforms) ++# -pthreads: GCC on solaris ++# -mthreads: ++# -mt: Solaris native compilers / HP-UX aCC ++# ++# Put -mt before -mthreads because HP-UX aCC will properly compile ++# with -mthreads (reading as -mt), but emit a warning about unknown ++# flags hreads. Stupid compilers. ++ ++case "${host_cpu}-${host_os}" in ++ *solaris*) ++ pflags="-pthread -pthreads -mt" ++ ;; ++ *) ++ pflags="-Kthread -kthread -pthread -pthreads -mt -mthreads" ++ ;; ++esac ++ ++# Only run C++ and Fortran if those compilers already configured ++AC_PROVIDE_IFELSE([AC_PROG_CC], ++ [OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS_C], ++ [ompi_pthread_c_success=1]) ++ ++AC_PROVIDE_IFELSE([AC_PROG_CXX], ++ [OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS_CXX], ++ [ompi_pthread_cxx_success=1]) ++ ++AC_PROVIDE_IFELSE([AC_PROG_F77], ++ [OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS_FC], ++ [ompi_pthread_f77_success=1]) ++ ++# End: OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS ++]) ++m4trace:config/ompi_config_pthreads.m4:416: -1- AC_DEFUN([OMPI_INTL_POSIX_THREADS_LIBS_C], [ ++# ++# C compiler ++# ++if test "$ompi_pthread_c_success" = "0"; then ++ for pl in $plibs; do ++ AC_MSG_CHECKING([if C compiler and POSIX threads work with $pl]) ++ case "${host_cpu}-${host-_os}" in ++ *-aix* | *-freebsd*) ++ if test "`echo $CPPFLAGS | $GREP 'D_THREAD_SAFE'`" = ""; then ++ PTRHEAD_CPPFLAGS="-D_THREAD_SAFE" ++ CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS" ++ fi ++ ;; ++ *) ++ if test "`echo $CPPFLAGS | $GREP 'D_REENTRANT'`" = ""; then ++ PTHREAD_CPPFLAGS="-D_REENTRANT" ++ CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS" ++ fi ++ ;; ++ esac ++ LIBS="$orig_LIBS $pl" ++ AC_LANG_PUSH(C) ++ OMPI_INTL_PTHREAD_TRY_LINK(ompi_pthread_c_success=1, ++ ompi_pthread_c_success=0) ++ AC_LANG_POP(C) ++ if test "$ompi_pthread_c_success" = "1"; then ++ PTHREAD_LIBS="$pl" ++ AC_MSG_RESULT([yes]) ++ else ++ PTHREAD_CPPFLAGS= ++ CPPFLAGS="$orig_CPPFLAGS" ++ LIBS="$orig_LIBS" ++ AC_MSG_RESULT([no]) ++ fi ++ done ++fi ++]) ++m4trace:config/ompi_config_pthreads.m4:456: -1- AC_DEFUN([OMPI_INTL_POSIX_THREADS_LIBS_CXX], [ ++# ++# C++ compiler ++# ++if test "$ompi_pthread_cxx_success" = "0"; then ++ if test ! "$ompi_pthread_c_success" = "0" -a ! "$PTHREAD_LIBS" = "" ; then ++ AC_MSG_CHECKING([if C++ compiler and POSIX threads work with $PTHREAD_LIBS]) ++ case "${host_cpu}-${host-_os}" in ++ *-aix* | *-freebsd*) ++ if test "`echo $CXXCPPFLAGS | $GREP 'D_THREAD_SAFE'`" = ""; then ++ PTRHEAD_CXXCPPFLAGS="-D_THREAD_SAFE" ++ CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS" ++ fi ++ ;; ++ *) ++ if test "`echo $CXXCPPFLAGS | $GREP 'D_REENTRANT'`" = ""; then ++ PTHREAD_CXXCPPFLAGS="-D_REENTRANT" ++ CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS" ++ fi ++ ;; ++ esac ++ LIBS="$orig_LIBS $PTHREAD_LIBS" ++ AC_LANG_PUSH(C++) ++ OMPI_INTL_PTHREAD_TRY_LINK(ompi_pthread_cxx_success=1, ++ ompi_pthread_cxx_success=0) ++ AC_LANG_POP(C++) ++ if test "$ompi_pthread_cxx_success" = "1"; then ++ AC_MSG_RESULT([yes]) ++ else ++ CXXCPPFLAGS="$orig_CXXCPPFLAGS" ++ LIBS="$orig_LIBS" ++ AC_MSG_RESULT([no]) ++ AC_MSG_ERROR([Can not find working threads configuration. aborting]) ++ fi ++ else ++ for pl in $plibs; do ++ AC_MSG_CHECKING([if C++ compiler and POSIX threads work with $pl]) ++ case "${host_cpu}-${host-_os}" in ++ *-aix* | *-freebsd*) ++ if test "`echo $CXXCPPFLAGS | $GREP 'D_THREAD_SAFE'`" = ""; then ++ PTRHEAD_CXXCPPFLAGS="-D_THREAD_SAFE" ++ CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS" ++ fi ++ ;; ++ *) ++ if test "`echo $CXXCPPFLAGS | $GREP 'D_REENTRANT'`" = ""; then ++ PTHREAD_CXXCPPFLAGS="-D_REENTRANT" ++ CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS" ++ fi ++ ;; ++ esac ++ LIBS="$orig_LIBS $pl" ++ AC_LANG_PUSH(C++) ++ OMPI_INTL_PTHREAD_TRY_LINK(ompi_pthread_cxx_success=1, ++ ompi_pthread_cxx_success=0) ++ AC_LANG_POP(C++) ++ if test "$ompi_pthread_cxx_success" = "1"; then ++ PTHREAD_LIBS="$pl" ++ AC_MSG_RESULT([yes]) ++ else ++ PTHREAD_CXXCPPFLAGS= ++ CXXCPPFLAGS="$orig_CXXCPPFLAGS" ++ LIBS="$orig_LIBS" ++ AC_MSG_RESULT([no]) ++ fi ++ done ++ fi ++fi ++]) ++m4trace:config/ompi_config_pthreads.m4:527: -1- AC_DEFUN([OMPI_INTL_POSIX_THREADS_LIBS_FC], [ ++# ++# Fortran compiler ++# ++if test "$ompi_pthread_f77_success" = "0" -a "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ if test ! "$ompi_pthread_c_success" = "0" -a ! "$PTHREAD_LIBS" = "" ; then ++ AC_MSG_CHECKING([if F77 compiler and POSIX threads work with $PTHREAD_LIBS]) ++ LIBS="$orig_LIBS $PTHREAD_LIBS" ++ AC_LANG_PUSH(C) ++ OMPI_INTL_PTHREAD_TRY_LINK_F77(ompi_pthread_f77_success=1, ++ ompi_pthread_f77_success=0) ++ AC_LANG_POP(C) ++ if test "$ompi_pthread_f77_success" = "1"; then ++ AC_MSG_RESULT([yes]) ++ else ++ LIBS="$orig_LIBS" ++ AC_MSG_RESULT([no]) ++ AC_MSG_ERROR([Can not find working threads configuration. aborting]) ++ fi ++ else ++ for pl in $plibs; do ++ AC_MSG_CHECKING([if F77 compiler and POSIX threads work with $pl]) ++ LIBS="$orig_LIBS $pl" ++ AC_LANG_PUSH(C) ++ OMPI_INTL_PTHREAD_TRY_LINK_F77(ompi_pthread_f77_success=1, ++ ompi_pthread_f77_success=0) ++ AC_LANG_POP(C) ++ if test "$ompi_pthread_f77_success" = "1"; then ++ PTHREAD_LIBS="$pl" ++ AC_MSG_RESULT([yes]) ++ break ++ else ++ LIBS="$orig_LIBS" ++ AC_MSG_RESULT([no]) ++ fi ++ done ++ fi ++fi ++]) ++m4trace:config/ompi_config_pthreads.m4:568: -1- AC_DEFUN([OMPI_INTL_POSIX_THREADS_LIBS], [ ++# Begin: OMPI_INTL_POSIX_THREADS_LIBS ++# ++# if we can't find a super-special compiler flags, try some libraries. ++# we throw -D_REENTRANT or -D_THREAD_SAFE in here, just in case. Some ++# systems (OS X, for example) generally don't need the defines, but ++# then will on one system header here or there why take chances? ++# ++# libpthreads: AIX - must check before libpthread ++# liblthread: LinuxThreads on FreeBSD ++# libpthread: The usual place (like we can define usual!) ++plibs="-lpthreads -llthread -lpthread" ++ ++# Only run C++ and Fortran if those compilers already configured ++AC_PROVIDE_IFELSE([AC_PROG_CC], ++ [OMPI_INTL_POSIX_THREADS_LIBS_C], ++ [ompi_pthread_c_success=1]) ++ ++AC_PROVIDE_IFELSE([AC_PROG_CXX], ++ [OMPI_INTL_POSIX_THREADS_LIBS_CXX], ++ [ompi_pthread_cxx_success=1]) ++ ++AC_PROVIDE_IFELSE([AC_PROG_F77], ++ [OMPI_INTL_POSIX_THREADS_LIBS_FC], ++ [ompi_pthread_f77_success=1]) ++ ++# End: OMPI_INTL_POSIX_THREADS_LIBS ++]) ++m4trace:config/ompi_config_pthreads.m4:603: -1- AC_DEFUN([OMPI_CONFIG_POSIX_THREADS], [ ++ AC_REQUIRE([AC_PROG_GREP]) ++ ++ompi_pthread_c_success=0 ++ompi_pthread_f77_success=0 ++ompi_pthread_cxx_success=0 ++ ++orig_CFLAGS="$CFLAGS" ++orig_FFLAGS="$FFLAGS" ++orig_CXXFLAGS="$CXXFLAGS" ++orig_CPPFLAGS="$CPPFLAGS" ++orig_CXXCPPFLAGS="$CXXCPPFLAGS" ++orig_LDFLAGS="$LDFLAGS" ++orig_LIBS="$LIBS" ++ ++PTRHEAD_CFLAGS= ++PTHREAD_FFLAGS= ++PTHREAD_CXXFLAGS= ++PTHREAD_CPPFLAGS= ++PTHREAD_CXXCPPFLAGS= ++PTHREAD_LDFLAGS= ++PTHREAD_LIBS= ++ ++# Try with the basics, mam. ++OMPI_INTL_POSIX_THREADS_PLAIN ++ ++# Try the super-special compiler flags. ++OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS ++ ++# Try the normal linking methods (that's no fun) ++OMPI_INTL_POSIX_THREADS_LIBS ++ ++ ++# ++# check to see if we can set error checking mutexes ++# ++ ++# LinuxThreads ++AC_MSG_CHECKING([for PTHREAD_MUTEX_ERRORCHECK_NP]) ++AC_LINK_IFELSE( ++ [AC_LANG_PROGRAM( ++ [[#include ]], ++ [[pthread_mutexattr_settype(NULL, PTHREAD_MUTEX_ERRORCHECK_NP);]])], ++ [result="yes" defval=1], [result="no" defval=0]) ++AC_MSG_RESULT([$result]) ++AC_DEFINE_UNQUOTED([OMPI_HAVE_PTHREAD_MUTEX_ERRORCHECK_NP], [$defval], ++ [If PTHREADS implementation supports PTHREAD_MUTEX_ERRORCHECK_NP]) ++ ++# Mac OS X ++AC_MSG_CHECKING([for PTHREAD_MUTEX_ERRORCHECK]) ++AC_LINK_IFELSE( ++ [AC_LANG_PROGRAM( ++ [[#include ]], ++ [[pthread_mutexattr_settype(NULL, PTHREAD_MUTEX_ERRORCHECK);]])], ++ [result="yes" defval=1], [result="no" defval=0]) ++AC_MSG_RESULT([$result]) ++AC_DEFINE_UNQUOTED([OMPI_HAVE_PTHREAD_MUTEX_ERRORCHECK], [$defval], ++ [If PTHREADS implementation supports PTHREAD_MUTEX_ERRORCHECK]) ++ ++CFLAGS="$orig_CFLAGS" ++FFLAGS="$orig_FFLAGS" ++CXXFLAGS="$orig_CXXFLAGS" ++CPPFLAGS="$orig_CPPFLAGS" ++CXXCPPFLAGS="$orig_CXXCPPFLAGS" ++LDFLAGS="$orig_LDFLAGS" ++LIBS="$orig_LIBS" ++ ++if test "$OMPI_WANT_F77_BINDINGS" != "1"; then ++ ompi_pthread_f77_success=1 ++fi ++ ++if test "$ompi_pthread_c_success" = "1" -a \ ++ "$ompi_pthread_cxx_success" = "1" -a \ ++ "$ompi_pthread_f77_success" = "1"; then ++ internal_useless=1 ++ $1 ++else ++ internal_useless=1 ++ $2 ++fi ++ ++unset ompi_pthread_c_success ompi_pthread_f77_success ompi_pthread_cxx_success ++unset internal_useless ++]) ++m4trace:config/ompi_config_solaris_threads.m4:27: -1- AC_DEFUN([OMPI_INTL_SOLARIS_TRY_LINK], [ ++# BEGIN: OMPI_INTL_SOLARIS_TRY_LINK ++# ++# Make sure that we can run a small application in C or C++, which ++# ever is the current language. Do make sure that C or C++ is the ++# current language. ++ AC_TRY_LINK([#include ], ++ [thread_t th; thr_join(th, 0, 0); ++ thr_create(0,0,0,0,0,0); ], ++ [$1], [$2]) ++# END: OMPI_INTL_SOLARIS_TRY_LINK ++]) ++m4trace:config/ompi_config_solaris_threads.m4:41: -1- AC_DEFUN([OMPI_INTL_SOLARIS_TRY_LINK_F77], [ ++# BEGIN: OMPI_INTL_SOLARIS_TRY_LINK_F77 ++# ++# Make sure that we can run a small application in Fortran, with ++# pthreads living in a C object file ++ ++# Fortran module ++cat > conftestf.f < conftest.c < ++#include ++#include ++$ompi_conftest_h ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++void ompi_pthread() ++{ ++ thread_t th; ++ thr_join(th, 0, 0); ++ thr_create(0,0,0,0,0,0); ++} ++#ifdef __cplusplus ++} ++#endif ++EOF ++ ++# Try the compile ++OMPI_LOG_COMMAND( ++ [$CC $CFLAGS -I. -c conftest.c], ++ OMPI_LOG_COMMAND( ++ [$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS], ++ [HAPPY=1], ++ [HAPPY=0]), ++ [HAPPY=0]) ++ ++if test "$HAPPY" = "1"; then ++ $1 ++else ++ OMPI_LOG_MSG([here is the C program:], 1) ++ OMPI_LOG_FILE([conftest.c]) ++ if test -f conftest.h; then ++ OMPI_LOG_MSG([here is contest.h:], 1) ++ OMPI_LOG_FILE([conftest.h]) ++ fi ++ OMPI_LOG_MSG([here is the fortran program:], 1) ++ OMPI_LOG_FILE([conftestf.f]) ++ $2 ++fi ++ ++unset HAPPY ompi_conftest_h ++rm -rf conftest* ++# END: OMPI_INTL_SOLARIS_TRY_LINK_F77 ++]) ++m4trace:config/ompi_config_solaris_threads.m4:110: -1- AC_DEFUN([OMPI_CONFIG_SOLARIS_THREADS_C], [ ++if test "$BASECC" = "cc"; then ++ STHREAD_CFLAGS="-mt" ++ style="Workshop/Forte" ++else ++ STHREAD_CPPFLAGS="-D_REENTRANT" ++ STHREAD_LIBS="-lthread" ++ style="-lthread" ++fi ++AC_MSG_CHECKING([if C compiler and Solaris threads work]) ++CFLAGS="$STHREAD_CFLAGS $CFLAGS_orig" ++CPPFLAGS="$STHREAD_CPPFLAGS $CPPFLAGS_orig" ++LDFLAGS="$STHREAD_LDFLAGS $LDFLAGS_orig" ++LIBS="$STHREAD_LIBS $LIBS_orig" ++AC_LANG_PUSH(C) ++OMPI_INTL_SOLARIS_TRY_LINK(ompi_sthread_c_success=1, ++ ompi_sthread_c_success=0) ++AC_LANG_POP(C) ++if test "$ompi_sthread_c_success" = "1"; then ++ AC_MSG_RESULT([yes - $style]) ++else ++ AC_MSG_RESULT([no]) ++fi ++]) ++m4trace:config/ompi_config_solaris_threads.m4:136: -1- AC_DEFUN([OMPI_CONFIG_SOLARIS_THREADS_CXX], [ ++if test "$BASECXX" = "CC"; then ++ STHREAD_CXXFLAGS="-mt" ++ style="Workshop/Forte" ++elif test "$BASECXX" = "KCC"; then ++ STHREAD_CXXFLAGS="--backend -mt" ++ style="KCC" ++else ++ STHREAD_CXXCPPFLAGS="-D_REENTRANT" ++ STHREAD_LIBS="-lthread" ++ style="-lthread" ++fi ++CXXFLAGS="$STHREAD_CXXFLAGS $CXXFLAGS_orig" ++CXXCPPFLAGS="$STHREAD_CXXPPFLAGS $CXXPPFLAGS_orig" ++LDFLAGS="$STHREAD_LDFLAGS $LDFLAGS_orig" ++LIBS="$STHREAD_LIBS $LIBS_orig" ++AC_MSG_CHECKING([if C++ compiler and Solaris threads work]) ++AC_LANG_PUSH(C++) ++OMPI_INTL_SOLARIS_TRY_LINK(ompi_sthread_cxx_success=1, ++ ompi_sthread_cxx_success=0) ++AC_LANG_POP(C++) ++if test "$ompi_sthread_cxx_success" = "1"; then ++ AC_MSG_RESULT([yes - $style]) ++else ++ AC_MSG_RESULT([no]) ++fi ++]) ++m4trace:config/ompi_config_solaris_threads.m4:165: -1- AC_DEFUN([OMPI_CONFIG_SOLARIS_THREADS_FC], [ ++if test "$OMPI_WANT_F77_BINDINGS" = "1"; then ++ if test "$BASEFC" = "f77"; then ++ STHREAD_FFLAGS="-mt" ++ style="Workshop/Forte" ++ else ++ STHREAD_LIBS="-lthread" ++ style="-lthread" ++ fi ++ FFLAGS="$STHREAD_FFLAGS $FFLAGS_orig" ++ CFLAGS="$STHREAD_CFLAGS $CFLAGS_orig" ++ CPPFLAGS="$STHREAD_CPPFLAGS $CPPFLAGS_orig" ++ LDFLAGS="$STHREAD_LDFLAGS $LDFLAGS_orig" ++ LIBS="$STHREAD_LIBS $LIBS_orig" ++ AC_MSG_CHECKING([if F77 compiler and Solaris threads work]) ++ AC_LANG_PUSH(C) ++ OMPI_INTL_SOLARIS_TRY_LINK_F77(ompi_sthread_f77_success=1, ++ ompi_sthread_f77_success=0) ++ AC_LANG_POP(C) ++ if test "$ompi_sthread_f77_success" = "1"; then ++ AC_MSG_RESULT([yes - $style]) ++ else ++ AC_MSG_RESULT([no]) ++ fi ++else ++ ompi_sthread_f77_success=1 ++fi ++]) ++m4trace:config/ompi_config_solaris_threads.m4:195: -1- AC_DEFUN([OMPI_CONFIG_SOLARIS_THREADS], [ ++ompi_sthread_c_success=0 ++ompi_sthread_f77_success=0 ++ompi_sthread_cxx_success=0 ++ ++orig_CFLAGS="$CFLAGS" ++orig_FFLAGS="$FFLAGS" ++orig_CXXFLAGS="$CXXFLAGS" ++orig_CPPFLAGS="$CPPFLAGS" ++orig_CXXCPPFLAGS="$CXXCPPFLAGS" ++orig_LDFLAGS="$LDFLAGS" ++orig_LIBS="$LIBS" ++ ++STHREAD_CFLAGS= ++STHREAD_FFLAGS= ++STHREAD_CXXFLAGS= ++STHREAD_CPPFLAGS= ++STHREAD_CXXCPPFLAGS= ++STHREAD_LDFLAGS= ++STHREAD_LIBS= ++ ++# Only run C++ and Fortran if those compilers already configured ++AC_PROVIDE_IFELSE([AC_PROG_CC], ++ [OMPI_CONFIG_SOLARIS_THREADS_C], ++ [ompi_sthread_c_success=1]) ++ ++AC_PROVIDE_IFELSE([AC_PROG_CXX], ++ [OMPI_CONFIG_SOLARIS_THREADS_CXX], ++ [ompi_sthread_cxx_success=1]) ++ ++AC_PROVIDE_IFELSE([AC_PROG_F77], ++ [OMPI_CONFIG_SOLARIS_THREADS_FC], ++ [ompi_sthread_f77_success=1]) ++ ++CFLAGS="$orig_CFLAGS" ++FFLAGS="$orig_FFLAGS" ++CXXFLAGS="$orig_CXXFLAGS" ++CPPFLAGS="$orig_CPPFLAGS" ++CXXCPPFLAGS="$orig_CXXCPPFLAGS" ++LDFLAGS="$orig_LDFLAGS" ++LIBS="$orig_LIBS" ++ ++if test "$ompi_sthread_c_success" = "1" -a \ ++ "$ompi_sthread_cxx_success" = "1" -a \ ++ "$ompi_sthread_f77_success" = "1"; then ++ internal_useless=1 ++ $1 ++else ++ internal_useless=1 ++ $2 ++fi ++ ++unset ompi_sthread_c_success ompi_sthread_f77_success ompi_sthread_cxx_success ++unset internal_useless ++]) ++m4trace:config/ompi_config_subdir.m4:20: -1- AC_DEFUN([OMPI_CONFIG_SUBDIR], [ ++# ++# Invoke configure in a specific subdirectory. ++# ++# $1 is the directory to invoke in ++# $2 is the list of arguments to pass ++# $3 is actions to execute upon success ++# $4 is actions to execute upon failure ++# ++subdir_dir="$1" ++subdir_args="$2" ++subdir_success="$3" ++subdir_failure="$4" ++ ++# ++# Sanity checks ++# ++ ++if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then ++ AC_MSG_NOTICE([OMPI configuring in $subdir_dir]) ++ ++ # ++ # Gotta check where srcdir is for VPATH builds. If srcdir is not ++ # ., then we need to mkdir the subdir. Otherwise, we can just cd ++ # into it. ++ # ++ ++ case $srcdir in ++ .) ++ ;; ++ *) ++ { case $subdir_dir in ++ [[\\/]]* | ?:[[\\/]]* ) total_dir=;; ++ *) total_dir=.;; ++ esac ++ temp=$subdir_dir ++ for dir_part in `IFS='/\\'; set X $temp; shift; echo "$[@]"`; do ++ case $dir_part in ++ # Skip DOS drivespec ++ ?:) total_dir=$dir_part ;; ++ *) total_dir=$total_dir/$dir_part ++ test -d "$total_dir" || ++ mkdir "$total_dir" || ++ AC_MSG_ERROR([cannot create $subdir_dir]) ++ ;; ++ esac ++ done; } ++ ++ if test -d ./$subdir_dir; then :; ++ else ++ AC_MSG_ERROR([cannot create `pwd`/$subdir_dir]) ++ fi ++ ;; ++ esac ++ ++ # ++ # Move into the target directory ++ # ++ ++ subdir_parent=`pwd` ++ cd $subdir_dir ++ ++ # ++ # Make a "../" for each directory in $subdir_dir. ++ # ++ ++ subdir_dots=`[echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g]'` ++ # ++ # Construct the --srcdir argument ++ # ++ ++ case $srcdir in ++ .) ++ # In place ++ subdir_srcdir="$srcdir" ++ ;; ++ [[\\/]* | ?:[\\/]*] ) ++ # Absolute path ++ subdir_srcdir="$srcdir/$subdir_dir" ++ ;; ++ *) ++ # Relative path ++ subdir_srcdir="$subdir_dots$srcdir/$subdir_dir" ++ ;; ++ esac ++ ++ # ++ # Construct the --cache-file argument ++ # ++ ++dnl case $cache_file in ++dnl [[\\/]* | ?:[\\/]*] ) ++dnl # Absolute path ++dnl subdir_cache_file="$cache_file" ++dnl ;; ++dnl *) ++dnl # Relative path ++dnl subdir_cache_file="$subdir_dots$cache_file" ++dnl ;; ++dnl esac ++ # BWB - subdir caching is a pain since we change CFLAGS and all that. ++ # Just disable it for now ++ subdir_cache_file="/dev/null" ++ ++ # ++ # Invoke the configure script in the subdirectory ++ # ++ ++ export CFLAGS CPPFLAGS ++ export CXXFLAGS CXXCPPFLAGS ++ export FFLAGS ++ export LDFLAGS LIBS ++ sub_configure="$SHELL '$subdir_srcdir/configure'" ++ AC_MSG_NOTICE([running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir]) ++ eval "$sub_configure $subdir_args \ ++ --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\"" ++ if test "$?" = "0"; then ++ eval $subdir_success ++ AC_MSG_NOTICE([$sub_configure succeeded for $subdir_dir]) ++ else ++ eval $subdir_failure ++ AC_MSG_NOTICE([$sub_configure *failed* for $subdir_dir]) ++ fi ++ ++ # ++ # Go back to the topdir ++ # ++ ++ cd $subdir_parent ++fi ++ ++# ++# Clean up ++# ++ ++unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file ++unset subdir_args subdir_dots total_dir dir_part temp]) ++m4trace:config/ompi_config_subdir_args.m4:20: -1- AC_DEFUN([OMPI_CONFIG_SUBDIR_ARGS], [ ++# ++# Invoke configure in subdirectories. ++# ++# $1 is the name of the variable to assign the output to ++# ++ ++# ++# Make a list of command line args --eliminate the --srcdir and ++# --cache-file args, because we need to replace them with our own ++# values when invoking the sub-configure script. ++# ++ ++subdirs_args= ++subdirs_skip=no ++ ++eval "set x $ac_configure_args" ++shift ++for subdirs_arg ++do ++ if test "$subdirs_skip" = "yes"; then ++ subdirs_skip=no ++ else ++ case $subdirs_arg in ++ -cache-file | --cache-file | -cache | --cache) ++ subdirs_skip=yes ++ ;; ++ --config-cache | -C) ++ ;; ++ -cache-file=* | --cache-file=*) ++ ;; ++ -srcdir | --srcdir) ++ subdirs_skip=yes ++ ;; ++ -srcdir=* | --srcdir=*) ++ ;; ++ *) ++ case $subdir_arg in ++ *\'*) subdir_arg=`echo "$subdir_arg" | sed "s/'/'\\\\\\\\''/g"` ;; ++ esac ++ subdirs_args="$subdirs_args '$subdirs_arg'" ++ ;; ++ esac ++ fi ++done ++ ++# ++# Assign the output ++# ++ ++subdirs_str=$1=\"$subdirs_args\" ++eval "$subdirs_str" ++ ++# ++# Clean up ++# ++ ++unset subdirs_str subdirs_skip subdirs_args subdirs_arg]) ++m4trace:config/ompi_config_threads.m4:20: -1- AC_DEFUN([OMPI_CONFIG_THREADS], [ ++# ++# Arguments: none ++# ++# Dependencies: None ++# ++# Modifies: ++# none - see called tests ++# ++# configure threads ++# ++ ++# create templates ++AH_TEMPLATE([OMPI_HAVE_SOLARIS_THREADS], ++ [Do we have native Solaris threads]) ++AH_TEMPLATE([OMPI_HAVE_POSIX_THREADS], ++ [Do we have POSIX threads]) ++ ++# ++# Check for thread types - add your type here... ++# ++OMPI_CONFIG_POSIX_THREADS(HAVE_POSIX_THREADS=1, HAVE_POSIX_THREADS=0) ++AC_MSG_CHECKING([for working POSIX threads package]) ++if test "$HAVE_POSIX_THREADS" = "1" ; then ++ AC_MSG_RESULT([yes]) ++else ++ AC_MSG_RESULT([no]) ++fi ++export HAVE_POSIX_THREADS ++ ++OMPI_CONFIG_SOLARIS_THREADS(HAVE_SOLARIS_THREADS=1, HAVE_SOLARIS_THREADS=0) ++AC_MSG_CHECKING([for working Solaris threads package]) ++if test "$HAVE_SOLARIS_THREADS" = "1" ; then ++ AC_MSG_RESULT([yes]) ++else ++ AC_MSG_RESULT([no]) ++fi ++export HAVE_SOLARIS_THREADS ++ ++# ++# Ask what threading we want (allow solaris / posix right now) ++# ++AC_MSG_CHECKING([for type of thread support]) ++AC_ARG_WITH(threads, ++ AC_HELP_STRING([--with-threads], ++ [Set thread type (solaris / posix)]), ++ [THREAD_TYPE=$withval]) ++ ++if test "$THREAD_TYPE" = "solaris"; then ++ ++ if test "$HAVE_SOLARIS_THREADS" = "0"; then ++ AC_MSG_WARN(["*** You have chosen Solaris threads, which are not"]) ++ AC_MSG_WARN(["*** available on your system "]) ++ AC_MSG_ERROR(["*** Can not continue"]) ++ fi ++elif test "$THREAD_TYPE" = "posix"; then ++ ++ if test "$HAVE_POSIX_THREADS" = "0"; then ++ AC_MSG_WARN(["*** You have chosen POSIX threads, which are not"]) ++ AC_MSG_WARN(["*** available on your system "]) ++ AC_MSG_ERROR(["*** Can not continue"]) ++ fi ++elif test "$THREAD_TYPE" = "no"; then ++ THREAD_TYPE="none" ++elif test -z "$THREAD_TYPE" -o "$THREAD_TYPE" = "yes"; then ++ ++ # Actual logic here - properly set THREAD_TYPE - we go for system ++ # optimized where ever possible ++ case "$host" in ++ *solaris*) ++ if test "$HAVE_SOLARIS_THREADS" = "1"; then ++ THREAD_TYPE="solaris" ++ elif test "$HAVE_POSIX_THREADS" = "1"; then ++ THREAD_TYPE="posix" ++ else ++ THEAD_TYPE="none found" ++ fi ++ ;; ++ *) ++ if test "$HAVE_POSIX_THREADS" = "1"; then ++ THREAD_TYPE="posix" ++ else ++ THREAD_TYPE="none found" ++ fi ++ ;; ++ esac ++else ++ ++ AC_MSG_WARN(["*** You have specified a thread type that I do not"]) ++ AC_MSG_WARN(["*** understand. Valid options are posix and solaris"]) ++ AC_MSG_ERROR(["*** Can not continue."]) ++fi ++AC_MSG_RESULT($THREAD_TYPE) ++ ++ ++# ++# Ok, now run the configuration for that thread package. ++# ++# Blah - this should be made better, but I don't know how... ++# ++AH_TEMPLATE([OMPI_THREADS_HAVE_DIFFERENT_PIDS], ++ [Do threads have different pids (pthreads on linux)]) ++ ++if test "$THREAD_TYPE" = "solaris"; then ++ AC_DEFINE(OMPI_HAVE_SOLARIS_THREADS, 1) ++ AC_DEFINE(OMPI_HAVE_POSIX_THREADS, 0) ++ AC_DEFINE(OMPI_THREADS_HAVE_DIFFERENT_PIDS, 0) ++ ++ THREAD_CFLAGS="$STHREAD_CFLAGS" ++ THREAD_FFLAGS="$STHREAD_FFLAGS" ++ THREAD_CXXFLAGS="$STHREAD_CXXFLAGS" ++ THREAD_CPPFLAGS="$STHREAD_CPPFLAGS" ++ THREAD_CXXCPPFLAGS="$STHREAD_CXXCPPFLAGS" ++ THREAD_LDFLAGS="$STHREAD_LDFLAGS" ++ THREAD_LIBS="$STHREAD_LIBS" ++elif test "$THREAD_TYPE" = "posix"; then ++ AC_DEFINE(OMPI_HAVE_SOLARIS_THREADS, 0) ++ AC_DEFINE(OMPI_HAVE_POSIX_THREADS, 1) ++ ++ THREAD_CFLAGS="$PTHREAD_CFLAGS" ++ THREAD_FFLAGS="$PTHREAD_FFLAGS" ++ THREAD_CXXFLAGS="$PTHREAD_CXXFLAGS" ++ THREAD_CPPFLAGS="$PTHREAD_CPPFLAGS" ++ THREAD_CXXCPPFLAGS="$PTHREAD_CXXCPPFLAGS" ++ THREAD_LDFLAGS="$PTHREAD_LDFLAGS" ++ THREAD_LIBS="$PTHREAD_LIBS" ++ ++ OMPI_CHECK_PTHREAD_PIDS ++else ++ AC_DEFINE(OMPI_HAVE_SOLARIS_THREADS, 0) ++ AC_DEFINE(OMPI_HAVE_POSIX_THREADS, 0) ++ AC_DEFINE(OMPI_THREADS_HAVE_DIFFERENT_PIDS, 0) ++ ++ TRHEAD_CFLAGS= ++ THREAD_FFLAGS= ++ THREAD_CXXFLAGS= ++ THREAD_CPPFLAGS= ++ THREAD_CXXCPPFLAGS= ++ THREAD_LDFLAGS= ++ THREAD_LIBS= ++ if test "$THREAD_TYPE" != "none" ; then ++ cat < developer override: enable mem profiling by default" ++fi ++#################### Early development override #################### ++AC_DEFINE_UNQUOTED(OMPI_ENABLE_MEM_DEBUG, $WANT_MEM_DEBUG, ++ [Whether we want the memory profiling or not]) ++ ++# ++# Memory profiling ++# ++ ++AC_MSG_CHECKING([whether to profile memory usage]) ++AC_ARG_ENABLE(mem-profile, ++ AC_HELP_STRING([--enable-mem-profile], ++ [enable memory profiling (debugging only) (default: disabled)])) ++if test "$enable_mem_profile" = "yes"; then ++ AC_MSG_RESULT([yes]) ++ WANT_MEM_PROFILE=1 ++else ++ AC_MSG_RESULT([no]) ++ WANT_MEM_PROFILE=0 ++fi ++#################### Early development override #################### ++if test "$WANT_MEM_PROFILE" = "0" -a -z "$enable_mem_profile" -a "$OMPI_DEVEL" = 1; then ++ WANT_MEM_PROFILE=1 ++ echo "--> developer override: enable mem profiling by default" ++fi ++#################### Early development override #################### ++AC_DEFINE_UNQUOTED(OMPI_ENABLE_MEM_PROFILE, $WANT_MEM_PROFILE, ++ [Whether we want the memory profiling or not]) ++ ++# ++# Developer picky compiler options ++# ++ ++AC_MSG_CHECKING([if want developer-level compiler pickyness]) ++AC_ARG_ENABLE(picky, ++ AC_HELP_STRING([--enable-picky], ++ [enable developer-level compiler pickyness when building Open MPI (default: disabled)])) ++if test "$enable_picky" = "yes"; then ++ AC_MSG_RESULT([yes]) ++ WANT_PICKY_COMPILER=1 ++else ++ AC_MSG_RESULT([no]) ++ WANT_PICKY_COMPILER=0 ++fi ++#################### Early development override #################### ++if test "$WANT_PICKY_COMPILER" = "0" -a -z "$enable_picky" -a "$OMPI_DEVEL" = 1; then ++ WANT_PICKY_COMPILER=1 ++ echo "--> developer override: enable picky compiler by default" ++fi ++#################### Early development override #################### ++ ++# ++# Developer debugging ++# ++ ++AC_MSG_CHECKING([if want developer-level debugging code]) ++AC_ARG_ENABLE(debug, ++ AC_HELP_STRING([--enable-debug], ++ [enable developer-level debugging code (not for general MPI users!) (default: disabled)])) ++if test "$enable_debug" = "yes"; then ++ AC_MSG_RESULT([yes]) ++ WANT_DEBUG=1 ++else ++ AC_MSG_RESULT([no]) ++ WANT_DEBUG=0 ++fi ++#################### Early development override #################### ++if test "$WANT_DEBUG" = "0" -a -z "$enable_debug" -a "$OMPI_DEVEL" = 1; then ++ WANT_DEBUG=1 ++ echo "--> developer override: enable debugging code by default" ++fi ++#################### Early development override #################### ++if test "$WANT_DEBUG" = "0"; then ++ CFLAGS="-DNDEBUG $CFLAGS" ++ CXXFLAGS="-DNDEBUG $CXXFLAGS" ++fi ++AC_DEFINE_UNQUOTED(OMPI_ENABLE_DEBUG, $WANT_DEBUG, ++ [Whether we want developer-level debugging code or not]) ++ ++AC_ARG_ENABLE(debug-symbols, ++ AC_HELP_STRING([--disable-debug-symbols], ++ [Disable adding compiler flags to enable debugging symbols if --enable-debug is specified. For non-debugging builds, this flag has no effect.])) ++ ++# ++# Sparse Groups ++# ++ ++AC_MSG_CHECKING([if want sparse process groups]) ++AC_ARG_ENABLE(sparse-groups, ++ AC_HELP_STRING([--enable-sparse-groups], ++ [enable sparse process groups (default: not enabled)])) ++if test "$enable_sparse_groups" = "yes"; then ++ AC_MSG_RESULT([yes]) ++ GROUP_SPARSE=1 ++else ++ AC_MSG_RESULT([no]) ++ GROUP_SPARSE=0 ++fi ++AC_DEFINE_UNQUOTED([OMPI_GROUP_SPARSE],$GROUP_SPARSE, ++ [Wether we want sparse process groups]) ++ ++# ++# Fortran 77 ++# ++ ++AC_MSG_CHECKING([if want Fortran 77 bindings]) ++AC_ARG_ENABLE(mpi-f77, ++ AC_HELP_STRING([--enable-mpi-f77], ++ [enable f77 MPI bindings (default: enabled)])) ++if test "$enable_mpi_f77" != "no"; then ++ AC_MSG_RESULT([yes]) ++ OMPI_WANT_F77_BINDINGS=1 ++else ++ AC_MSG_RESULT([no]) ++ OMPI_WANT_F77_BINDINGS=0 ++fi ++ ++ ++# ++# Fortran 90 ++# ++ ++AC_MSG_CHECKING([if want Fortran 90 bindings]) ++AC_ARG_ENABLE(mpi-f90, ++ AC_HELP_STRING([--enable-mpi-f90], ++ [enable f90 MPI bindings (default: enabled)])) ++if test "$enable_mpi_f90" != "no"; then ++ AC_MSG_RESULT([yes]) ++ OMPI_WANT_F90_BINDINGS=1 ++else ++ AC_MSG_RESULT([no]) ++ OMPI_WANT_F90_BINDINGS=0 ++fi ++ ++AC_MSG_CHECKING([desired Fortran 90 bindings "size"]) ++AC_ARG_WITH(mpi-f90-size, ++ AC_HELP_STRING([--with-mpi-f90-size=SIZE], ++ [specify the types of functions in the Fortran 90 MPI module, where SIZE is one of: trivial (MPI-2 F90-specific functions only), small (trivial + all MPI functions without choice buffers), medium (small + all MPI functions with one choice buffer), large (medium + all MPI functions with 2 choice buffers, but only when both buffers are the same type). Default SIZE is "small".])) ++ ++if test "$OMPI_WANT_F90_BINDINGS" = "0"; then ++ AC_MSG_RESULT([disabled (Fortran 90 bindings disabled)]) ++elif test "$with_mpi_f90_size" = "no"; then ++ OMPI_WANT_F90_BINDINGS=0 ++ AC_MSG_RESULT([disabling F90 MPI module (used specified)]) ++else ++ # Default value ++ if test "$with_mpi_f90_size" = ""; then ++ with_mpi_f90_size=small ++ fi ++ ++ # Check for each of the sizes ++ if test "$with_mpi_f90_size" = "trivial"; then ++ OMPI_F90_BUILD_SIZE=trivial ++ elif test "$with_mpi_f90_size" = "small"; then ++ OMPI_F90_BUILD_SIZE=small ++ elif test "$with_mpi_f90_size" = "medium"; then ++ OMPI_F90_BUILD_SIZE=medium ++ elif test "$with_mpi_f90_size" = "large"; then ++ OMPI_F90_BUILD_SIZE=large ++ else ++ AC_MSG_RESULT([Unrecognized size: $with_mpi_f90_size]) ++ AC_MSG_ERROR([Cannot continue]) ++ fi ++fi ++ ++AM_CONDITIONAL([OMPI_WANT_BUILD_F90_TRIVIAL], ++ [test "$OMPI_F90_BUILD_SIZE" = "trivial"]) ++AM_CONDITIONAL([OMPI_WANT_BUILD_F90_SMALL], ++ [test "$OMPI_F90_BUILD_SIZE" = "small"]) ++AM_CONDITIONAL([OMPI_WANT_BUILD_F90_MEDIUM], ++ [test "$OMPI_F90_BUILD_SIZE" = "medium"]) ++AM_CONDITIONAL([OMPI_WANT_BUILD_F90_LARGE], ++ [test "$OMPI_F90_BUILD_SIZE" = "large"]) ++ ++AC_SUBST(OMPI_F90_BUILD_SIZE) ++AC_MSG_RESULT([$OMPI_F90_BUILD_SIZE]) ++ ++# ++# MPI profiling ++# ++ ++AC_MSG_CHECKING([whether to enable PMPI]) ++AC_ARG_ENABLE(mpi-profile, ++ AC_HELP_STRING([--enable-mpi-profile], ++ [enable MPI profiling (default: enabled)])) ++if test "$enable_mpi_profile" != "no"; then ++ AC_MSG_RESULT([yes]) ++ WANT_MPI_PROFILING=1 ++ MPIF_H_PMPI_W_FUNCS=", PMPI_WTICK, PMPI_WTIME" ++else ++ AC_MSG_RESULT([no]) ++ WANT_MPI_PROFILING=0 ++ MPIF_H_PMPI_W_FUNCS= ++fi ++AC_SUBST(MPIF_H_PMPI_W_FUNCS) ++ ++ ++# ++# C++ ++# ++ ++AC_MSG_CHECKING([if want C++ bindings]) ++AC_ARG_ENABLE(mpi-cxx, ++ AC_HELP_STRING([--enable-mpi-cxx], ++ [enable C++ MPI bindings (default: enabled)])) ++if test "$enable_mpi_cxx" != "no"; then ++ AC_MSG_RESULT([yes]) ++ WANT_MPI_CXX_SUPPORT=1 ++else ++ AC_MSG_RESULT([no]) ++ WANT_MPI_CXX_SUPPORT=0 ++fi ++ ++AC_MSG_CHECKING([if want MPI::SEEK_SET support]) ++AC_ARG_ENABLE([mpi-cxx-seek], ++ [AC_HELP_STRING([--enable-mpi-cxx-seek], ++ [enable support for MPI::SEEK_SET, MPI::SEEK_END, and MPI::SEEK_POS in C++ bindings (default: enabled)])]) ++if test "$enable_mpi_cxx_seek" != "no" ; then ++ AC_MSG_RESULT([yes]) ++ OMPI_WANT_MPI_CXX_SEEK=1 ++else ++ AC_MSG_RESULT([no]) ++ OMPI_WANT_MPI_CXX_SEEK=0 ++fi ++AC_DEFINE_UNQUOTED([OMPI_WANT_MPI_CXX_SEEK], [$OMPI_WANT_MPI_CXX_SEEK], ++ [do we want to try to work around C++ bindings SEEK_* issue?]) ++ ++# ++# Do we want to disable weak symbols for some reason? ++# ++ ++AC_MSG_CHECKING([if want to enable weak symbol support]) ++AC_ARG_ENABLE(weak-symbols, ++ AC_HELP_STRING([--enable-weak-symbols], ++ [use weak symbols, if available (default: enabled)])) ++if test "$enable_weak_symbols" != "no"; then ++ AC_MSG_RESULT([yes]) ++ WANT_WEAK_SYMBOLS=1 ++else ++ AC_MSG_RESULT([no]) ++ WANT_WEAK_SYMBOLS=0 ++fi ++ ++# ++# Do we want to disable MPI parameter checking at run-time? ++# ++ ++AC_MSG_CHECKING([if want run-time MPI parameter checking]) ++AC_ARG_WITH(mpi-param-check, ++ AC_HELP_STRING([--with-mpi-param-check(=VALUE)], ++ [behavior of MPI function parameter checking. Valid values are: always, never, runtime. If --with-mpi-param-check is specified with no VALUE argument, it is equivalent to a VALUE of "always"; --without-mpi-param-check is equivalent to "never" (default: runtime).])) ++mpi_param_check=ompi_mpi_param_check ++if test "$with_mpi_param_check" = "no" -o \ ++ "$with_mpi_param_check" = "never"; then ++ mpi_param_check=0 ++ AC_MSG_RESULT([never]) ++elif test "$with_mpi_param_check" = "yes" -o \ ++ "$with_mpi_param_check" = "always"; then ++ mpi_param_check=1 ++ AC_MSG_RESULT([always]) ++elif test "$with_mpi_param_check" = "runtime" -o \ ++ -z "$with_mpi_params_check"; then ++ AC_MSG_RESULT([runtime]) ++else ++ AC_MSG_RESULT([unknown]) ++ AC_MSG_WARN([*** Unrecognized --with-mpi-param-check value]) ++ AC_MSG_WARN([*** See "configure --help" output]) ++ AC_MSG_WARN([*** Defaulting to "runtime"]) ++fi ++AC_DEFINE_UNQUOTED(MPI_PARAM_CHECK, $mpi_param_check, ++ [Whether we want to check MPI parameters always, never, or decide at run-time]) ++ ++ ++# ++# Do we want to install all of OMPI's header files? ++# ++ ++AC_MSG_CHECKING([if want to install OMPI header files]) ++AC_ARG_WITH(devel-headers, ++ AC_HELP_STRING([--with-devel-headers], ++ [normal MPI users/applications do not need this (mpi.h and mpif.h are ALWAYS installed). Developer headers are only necessary for MCA module authors (default: disabled).])) ++if test "$with_devel_headers" = "yes"; then ++ AC_MSG_RESULT([yes]) ++ WANT_INSTALL_HEADERS=1 ++else ++ AC_MSG_RESULT([no]) ++ WANT_INSTALL_HEADERS=0 ++fi ++AM_CONDITIONAL(WANT_INSTALL_HEADERS, test "$WANT_INSTALL_HEADERS" = 1) ++ ++# ++# Do we want the pretty-print stack trace feature? ++# ++AC_MSG_CHECKING([if want pretty-print stacktrace]) ++AC_ARG_ENABLE([pretty-print-stacktrace], ++ [AC_HELP_STRING([--enable-pretty-print-stacktrace], ++ [Pretty print stacktrace on process signal (default: enabled)])]) ++if test "$enable_pretty_print_stacktrace" = "no" ; then ++ AC_MSG_RESULT([no]) ++ WANT_PRETTY_PRINT_STACKTRACE=0 ++else ++ AC_MSG_RESULT([yes]) ++ WANT_PRETTY_PRINT_STACKTRACE=1 ++fi ++AC_DEFINE_UNQUOTED([OMPI_WANT_PRETTY_PRINT_STACKTRACE], ++ [$WANT_PRETTY_PRINT_STACKTRACE], ++ [if want pretty-print stack trace feature]) ++ ++# ++# Do we want to enable peruse interface? ++# ++ ++AC_MSG_CHECKING([if peruse support is required]) ++AC_ARG_ENABLE(peruse, ++ AC_HELP_STRING([--enable-peruse], ++ [Support PERUSE interface (default: disabled)])) ++if test "$enable_peruse" = "yes"; then ++ AC_MSG_RESULT([yes]) ++ WANT_PERUSE=1 ++else ++ AC_MSG_RESULT([no]) ++ WANT_PERUSE=0 ++fi ++AC_DEFINE_UNQUOTED([OMPI_WANT_PERUSE], ++ [$WANT_PERUSE], ++ [if the peruse interface should be enabled]) ++AM_CONDITIONAL(WANT_PERUSE, test "$WANT_PERUSE" = "1") ++ ++# ++# What is the max array rank that we want to support in the f90 bindings? ++# ++ ++OMPI_FORTRAN_MAX_ARRAY_RANK=4 ++AC_MSG_CHECKING([max supported array dimension in F90 MPI bindings]) ++AC_ARG_WITH(f90-max-array-dim, ++ AC_HELP_STRING([--with-f90-max-array-dim=], ++ [The maximum array dimension supported in the F90 MPI bindings (default: $OMPI_FORTRAN_MAX_ARRAY_RANK).])) ++if test ! -z "$with_f90_max_array_dim" -a "$with_f90_max_array_dim" != "no"; then ++ # Ensure it's a number (hopefully an integer!), and >=1 and <=7 ++ expr $with_f90_max_array_dim + 1 > /dev/null 2> /dev/null ++ happy=1 ++ AS_IF([test "$?" != "0"], [happy=0], ++ [expr $with_f90_max_array_dim \>= 1 \& $with_f90_max_array_dim \<= 7 > /dev/null 2>/dev/null ++ AS_IF([test "$?" != "0"], [happy=0])]) ++ ++ # If badness in the above tests, bail ++ AS_IF([test "$happy" = "0"], ++ [AC_MSG_RESULT([bad value ($with_f90_max_array_dim)]) ++ AC_MSG_WARN([--with-f90-max-array-dim value must be >=1 and <=7]) ++ AC_MSG_ERROR([Cannot continue])]) ++ OMPI_FORTRAN_MAX_ARRAY_RANK="$with_f90_max_array_dim" ++fi ++AC_MSG_RESULT([$OMPI_FORTRAN_MAX_ARRAY_RANK]) ++AC_SUBST(OMPI_FORTRAN_MAX_ARRAY_RANK) ++ ++# do we want PTY support? ++AC_MSG_CHECKING([if pty support should be enabled]) ++AC_ARG_ENABLE(pty-support, ++ AC_HELP_STRING([--enable-pty-support], ++ [Enable/disable PTY support for STDIO forwarding. (default: enabled)])) ++if test "$enable_pty_support" = "no" ; then ++ AC_MSG_RESULT([no]) ++ OMPI_ENABLE_PTY_SUPPORT=0 ++else ++ AC_MSG_RESULT([yes]) ++ OMPI_ENABLE_PTY_SUPPORT=1 ++fi ++AC_DEFINE_UNQUOTED([OMPI_ENABLE_PTY_SUPPORT], [$OMPI_ENABLE_PTY_SUPPORT], ++ [Whether user wants PTY support or not]) ++ ++# ++# Do we want to allow DLOPEN? ++# ++AC_MSG_CHECKING([if user wants dlopen support]) ++AC_ARG_ENABLE([dlopen], ++ [AC_HELP_STRING([--enable-dlopen], ++ [Whether build should attempt to use dlopen (or ++ similar) to dynamically load components. ++ Disabling dlopen implies --disable-mca-dso. ++ (default: enabled)])]) ++if test "$enable_dlopen" = "no" ; then ++ enable_mca_dso="no" ++ enable_mca_static="yes" ++ OMPI_ENABLE_DLOPEN_SUPPORT=0 ++ AC_MSG_RESULT([no]) ++else ++ OMPI_ENABLE_DLOPEN_SUPPORT=1 ++ AC_MSG_RESULT([yes]) ++fi ++ ++# ++# Heterogeneous support ++# ++ ++AC_MSG_CHECKING([if heterogeneous support should be enabled]) ++AC_ARG_ENABLE([heterogeneous], ++ [AC_HELP_STRING([--enable-heterogeneous], ++ [Enable features required for heterogeneous ++ platform support (default: disabled)])]) ++if test "$enable_heterogeneous" = "yes" ; then ++ AC_MSG_RESULT([yes]) ++ ompi_want_heterogeneous=1 ++else ++ AC_MSG_RESULT([no]) ++ ompi_want_heterogeneous=0 ++fi ++AC_DEFINE_UNQUOTED([OMPI_ENABLE_HETEROGENEOUS_SUPPORT], ++ [$ompi_want_heterogeneous], ++ [Enable features required for heterogeneous support]) ++ ++# ++# Internal trace file logging (debugging) ++# ++ ++AC_MSG_CHECKING([if want trace file debugging]) ++AC_ARG_ENABLE([trace], ++ [AC_HELP_STRING([--enable-trace], ++ [Enable internal tracing of OMPI/ORTE/OPAL calls -- used only for developer debugging, not tracing of MPI applications (default: disabled)])]) ++if test "$enable_trace" = "yes"; then ++ AC_MSG_RESULT([yes]) ++ opal_want_trace=1 ++else ++ AC_MSG_RESULT([no]) ++ opal_want_trace=0 ++fi ++AC_DEFINE_UNQUOTED([OPAL_ENABLE_TRACE], [$opal_want_trace], ++ [Enable run-time tracing of internal functions]) ++ ++ ++# ++# Minimal RTE support ++# ++AC_MSG_CHECKING([if want full RTE support]) ++AC_ARG_WITH([rte-support], ++ [AC_HELP_STRING([--without-rte-support], ++ [Build without RTE support for systems that do not require it (default: full RTE support built)])]) ++if test "$with_rte_support" = "no"; then ++ AC_MSG_RESULT([no]) ++ orte_without_full_support=1 ++ list_of_frameworks="errmgr,ess-singleton,ess-hnp,ess-tool,ess-env,filem,grpcomm-basic,grpcomm-bad,iof,odls,oob,plm,ras,rmaps,rml,routed,snapc,btl-sm,coll-sm,common-sm,mpool-sm,dpm-orte,pubsub-orte" ++ if test -z $enable_mca_no_build ; then ++ enable_mca_no_build="$list_of_frameworks" ++ else ++ enable_mca_no_build="$enable_mca_no_build,$list_of_frameworks" ++ fi ++else ++ AC_MSG_RESULT([yes]) ++ orte_without_full_support=0 ++fi ++AC_DEFINE_UNQUOTED([ORTE_DISABLE_FULL_SUPPORT], [$orte_without_full_support], ++ [Build full RTE support]) ++AM_CONDITIONAL(ORTE_DISABLE_FULL_SUPPORT, test "$with_rte_support" = "no") ++ ++# ++# Cross-compile data ++# ++AC_ARG_WITH([cross], ++ [AC_HELP_STRING([--with-cross=FILE], ++ [Specify configure values that can not be determined in a cross-compilation environment. See the Open MPI FAQ.])]) ++if test "$with_cross" = "yes" ; then ++ AC_MSG_ERROR([--with-cross argument must include FILE option]) ++elif test "$with_cross" = "no" ; then ++ AC_MSG_ERROR([--without-cross is not a valid argument]) ++elif test "$with_cross" != "" ; then ++ if test ! -r $with_cross ; then ++ AC_MSG_ERROR([could not find cross-compile data file $with_cross]) ++ fi ++ ++ # eval into environment ++ OMPI_LOG_MSG([Loading cross-compile file $with_cross, with contents below]) ++ OMPI_LOG_FILE([$with_cross]) ++ . "$with_cross" ++fi ++ ++# ++# --with-ft=TYPE ++# TYPE: ++# - LAM (synonym for 'cr' currently) ++# - cr ++# /* General FT sections */ ++# #if OPAL_ENABLE_FT == 0 /* FT Disabled globaly */ ++# #if OPAL_ENABLE_FT == 1 /* FT Enabled globaly */ ++# /* CR Specific sections */ ++# #if OPAL_ENABLE_FT_CR == 0 /* FT Ckpt/Restart Disabled */ ++# #if OPAL_ENABLE_FT_CR == 1 /* FT Ckpt/Restart Enabled */ ++# ++AC_MSG_CHECKING([if want fault tolerance]) ++AC_ARG_WITH(ft, ++ [AC_HELP_STRING([--with-ft=TYPE], ++ [Specify the type of fault tolerance to enable. Options: LAM (LAM/MPI-like), cr (Checkpoint/Restart) (default: disabled)])], ++ [ompi_want_ft=1], ++ [ompi_want_ft=0]) ++if test "$with_ft" = "no" -o "$ompi_want_ft" = "0"; then ++ ompi_want_ft=0 ++ ompi_want_ft_cr=0 ++ AC_MSG_RESULT([Disabled fault tolerance]) ++else ++ ompi_want_ft=1 ++ ompi_want_ft_cr=0 ++ ompi_want_ft_type=none ++ ++ # Default value ++ if test "$with_ft" = "" -o "$with_ft" = "yes"; then ++ ompi_want_ft_type=cr ++ ompi_want_ft_cr=1 ++ elif test "$with_ft" = "LAM"; then ++ ompi_want_ft_type=lam ++ ompi_want_ft_cr=1 ++ elif test "$with_ft" = "lam"; then ++ ompi_want_ft_type=lam ++ ompi_want_ft_cr=1 ++ elif test "$with_ft" = "CR"; then ++ ompi_want_ft_type=cr ++ ompi_want_ft_cr=1 ++ elif test "$with_ft" = "cr"; then ++ ompi_want_ft_type=cr ++ ompi_want_ft_cr=1 ++ else ++ AC_MSG_RESULT([Unrecognized FT TYPE: $with_ft]) ++ AC_MSG_ERROR([Cannot continue]) ++ fi ++ AC_MSG_RESULT([Enabled $with_ft ($ompi_want_ft_type)]) ++ AC_MSG_WARN([**************************************************]) ++ AC_MSG_WARN([*** Fault Tolerance Integration into Open MPI is *]) ++ AC_MSG_WARN([*** a research quality implementation, and care *]) ++ AC_MSG_WARN([*** should be used when choosing to enable it. *]) ++ AC_MSG_WARN([**************************************************]) ++fi ++AC_DEFINE_UNQUOTED([OPAL_ENABLE_FT], [$ompi_want_ft], ++ [Enable fault tolerance general components and logic]) ++AC_DEFINE_UNQUOTED([OPAL_ENABLE_FT_CR], [$ompi_want_ft_cr], ++ [Enable fault tolerance checkpoint/restart components and logic]) ++AM_CONDITIONAL(WANT_FT, test "$ompi_want_ft" = "1") ++ ++# ++# Do we want to install binaries? ++# ++AC_ARG_ENABLE([binaries], ++ [AC_HELP_STRING([--enable-binaries], ++ [Build and install binaries required for Open MPI, such as the wrapper compilers. Useful for multi-lib installations. (default: enabled)])]) ++AM_CONDITIONAL([OMPI_INSTALL_BINARIES], [test "$enable_binaries" != "no"]) ++ ++AC_ARG_ENABLE([script-wrapper-compilers], ++ [AC_HELP_STRING([--enable-script-wrapper-compilers], ++ [Use less featured script-based wrapper compilers instead of the standard C-based wrapper compilers. This option ignores the --disable-binaries option and is mainly useful in cross-compile environments])]) ++AM_CONDITIONAL([OMPI_WANT_SCRIPT_WRAPPER_COMPILERS], ++ [test "$enable_script_wrapper_compilers" = "yes"]) ++AC_CONFIG_FILES([ompi/tools/wrappers/ompi_wrapper_script], [chmod +x ompi/tools/wrappers/ompi_wrapper_script]) ++ ++# ++# Support per-user config files? ++# ++AC_ARG_ENABLE([per-user-config-files], ++ [AC_HELP_STRING([--enable-per-user-config-files], ++ [Disable per-user configuration files, to save disk accesses during job strart-up. This is likely desirable for large jobs. Note that this can also be acheived by environment variables at run-time. (default: enabled)])]) ++if test "$enable_per_user_config_files" = "no" ; then ++ result=0 ++else ++ result=1 ++fi ++AC_DEFINE_UNQUOTED([OMPI_WANT_HOME_CONFIG_FILES], [$result], ++ [Enable per-user config files]) ++ ++# ++# Do we want to disable IPv6 support? ++# ++AC_MSG_CHECKING([if want IPv6 support]) ++AC_ARG_ENABLE([ipv6], ++ [AC_HELP_STRING([--disable-ipv6], ++ [Disable IPv6 support (default: enabled, but only if the underlying system supports it)])]) ++if test "$enable_ipv6" = "no"; then ++ AC_MSG_RESULT([no]) ++ opal_want_ipv6=0 ++else ++ AC_MSG_RESULT([yes (if underlying system supports it)]) ++ opal_want_ipv6=1 ++fi ++AC_DEFINE_UNQUOTED([OPAL_ENABLE_IPV6], [$opal_want_ipv6], ++ [Enable IPv6 support, but only if the underlying system supports it]) ++ ++# ++# Do we want orterun's --prefix behavior to be enabled by default? ++# ++AC_MSG_CHECKING([if want orterun "--prefix" behavior to be enabled by default]) ++AC_ARG_ENABLE([orterun-prefix-by-default], ++ [AC_HELP_STRING([--enable-orterun-prefix-by-default], ++ [Make "orterun ..." behave exactly the same as "orterun --prefix \$prefix" (where \$prefix is the value given to --prefix in configure)])]) ++AC_ARG_ENABLE([mpirun-prefix-by-default], ++ [AC_HELP_STRING([--enable-mpirun-prefix-by-default], ++ [Synonym for --enable-orterun-prefix-by-default])]) ++if test "$enable_orterun_prefix_by_default" = ""; then ++ enable_orterun_prefix_by_default=$enable_mpirun_prefix_by_default ++fi ++if test "$enable_orterun_prefix_by_default" = "yes"; then ++ AC_MSG_RESULT([yes]) ++ orte_want_orterun_prefix_by_default=1 ++else ++ AC_MSG_RESULT([no]) ++ orte_want_orterun_prefix_by_default=0 ++fi ++AC_DEFINE_UNQUOTED([ORTE_WANT_ORTERUN_PREFIX_BY_DEFAULT], ++ [$orte_want_orterun_prefix_by_default], ++ [Whether we want orterun to effect "--prefix $prefix" by default]) ++ ++# ++# Package/brand string ++# ++AC_MSG_CHECKING([for package/brand string]) ++AC_ARG_WITH([package-string], ++ [AC_HELP_STRING([--with-package-string=STRING], ++ [Use a branding string throughout Open MPI])]) ++if test "$with_package_string" = "" -o "$with_package_string" = "no"; then ++ with_package_string="Open MPI $OMPI_CONFIGURE_USER@$OMPI_CONFIGURE_HOST Distribution" ++fi ++AC_DEFINE_UNQUOTED([OPAL_PACKAGE_STRING], ["$with_package_string"], ++ [package/branding string for Open MPI]) ++AC_MSG_RESULT([$with_package_string]) ++ ++# ++# Ident string ++# ++AC_MSG_CHECKING([for ident string]) ++AC_ARG_WITH([ident-string], ++ [AC_HELP_STRING([--with-ident-string=STRING], ++ [Embed an ident string into Open MPI object files])]) ++if test "$with_ident_string" = "" -o "$with_ident_string" = "no"; then ++ with_ident_string="%VERSION%" ++fi ++with_ident_string="`echo $with_ident_string | sed -e 's/%VERSION%/'$OMPI_VERSION/`" ++AC_DEFINE_UNQUOTED([OPAL_IDENT_STRING], ["$with_ident_string"], ++ [ident string for Open MPI]) ++AC_MSG_RESULT([$with_ident_string]) ++ ++ ++]) ++m4trace:config/ompi_contrib.m4:34: -1- AC_DEFUN([OMPI_CONTRIB], [ ++ dnl for OMPI_CONFIGURE_USER env variable ++ AC_REQUIRE([OMPI_CONFIGURE_SETUP]) ++ ++ # Option to not build some of the contributed software packages ++ AC_ARG_ENABLE([contrib-no-build], ++ [AC_HELP_STRING([--enable-contrib-no-build=LIST], ++ [Comma-separated list of contributed package NAMEs that will not be built. Example: "--enable-contrib-no-build=libnbc,vt" will disable building both the "libnbc" and "vt" contributed software packages.])]) ++ ++ # Parse the list to see what we should not build ++ ompi_show_subtitle "Configuring contributed software packages" ++ AC_MSG_CHECKING([which contributed software packages should be disabled]) ++ if test "$enable_contrib_no_build" = "yes"; then ++ AC_MSG_RESULT([yes]) ++ AC_MSG_ERROR([*** The enable-contrib-no-build flag requires an explicit list ++*** of packages to not build. For example, --enable-contrib-no-build=vt]) ++ else ++ ifs_save="$IFS" ++ IFS="${IFS}$PATH_SEPARATOR," ++ msg= ++ for item in $enable_contrib_no_build; do ++ str="`echo DISABLE_contrib_${item}=1 | sed s/-/_/g`" ++ eval $str ++ msg="$item $msg" ++ done ++ IFS="$ifs_save" ++ fi ++ AC_MSG_RESULT([$msg]) ++ unset msg ++ ++ # List of contrib subdirs to traverse into ++ OMPI_CONTRIB_SUBDIRS= ++ OMPI_CONTRIB_DIST_SUBDIRS= ++ ++ # Cycle through each of the hard-coded software packages and ++ # configure them if not disabled. May someday be expanded to have ++ # autogen find the packages instead of this hard-coded list ++ # (https://svn.open-mpi.org/trac/ompi/ticket/1162). ++ # m4_define([contrib_software_list], [libnbc, vt]) ++ m4_define([contrib_software_list], [vt]) ++ m4_foreach(software, [contrib_software_list], ++ [m4_include([ompi/contrib/]software[/configure.m4]) ++ _OMPI_CONTRIB_CONFIGURE(software)]) ++ ++ # Setup the top-level glue ++ AC_SUBST(OMPI_CONTRIB_SUBDIRS) ++ AC_SUBST(OMPI_CONTRIB_DIST_SUBDIRS) ++]) ++m4trace:config/ompi_contrib.m4:98: -1- AC_DEFUN([_OMPI_CONTRIB_CONFIGURE], [ ++ ++ ompi_show_subsubsubtitle "$1 (m4 configuration macro)" ++ ++ OMPI_CONTRIB_HAPPY=0 ++ if test "$DISABLE_contrib_$1" = "" -a "$DISABLE_contrib_all" = ""; then ++ OMPI_contrib_$1_CONFIG([OMPI_CONTRIB_HAPPY=1], []) ++ AC_MSG_CHECKING([if contributed component $1 can compile]) ++ if test "$OMPI_CONTRIB_HAPPY" = "1"; then ++ OMPI_CONTRIB_SUBDIRS="$OMPI_CONTRIB_SUBDIRS contrib/$1" ++ OMPI_CONTRIB_DIST_SUBDIRS="$OMPI_CONTRIB_DIST_SUBDIRS contrib/$1" ++ AC_MSG_RESULT([yes]) ++ else ++ AC_MSG_RESULT([no]) ++ fi ++ else ++ AC_MSG_NOTICE([disabled via command line switch]) ++ fi ++ AC_DEFINE_UNQUOTED(OMPI_ENABLE_CONTRIB_$1, [$OMPI_CONTRIB_HAPPY], ++ [Enable contributed software package $1]) ++ unset OMPI_CONTRIB_HAPPY ++]) ++m4trace:config/ompi_find_type.m4:23: -1- AC_DEFUN([OMPI_FIND_TYPE], [ ++ AS_VAR_PUSHDEF([type_var], [ompi_cv_find_type_$1]) ++ ++ oft_abort_on_fail="$3" ++ oft_target_size="$4" ++ ++ AC_CACHE_CHECK([for C type corresponding to $1], type_var, ++ [ # Loop over all the types handed to us ++ oft_real_type= ++ AS_IF([test "$oft_target_size" != ""], ++ [m4_foreach(oft_type, [$2], ++ [if test -z "$oft_real_type"; then ++ if test "[$ac_cv_sizeof_]m4_bpatsubst(oft_type, [[^a-zA-Z0-9_]], [_])" = "$oft_target_size" ; then ++ oft_real_type="oft_type" ++ fi ++ fi ++])]) ++ AS_IF([test -z "$oft_real_type"], ++ [AS_VAR_SET(type_var, "not found")], ++ [AS_VAR_SET(type_var, "$oft_real_type")])]) ++ ++ AS_IF([test "AS_VAR_GET(type_var)" = "not found"], ++ [AC_MSG_WARN([*** Did not find corresponding C type]) ++ AS_IF([test "$oft_abort_on_fail" != "no"], ++ [AC_MSG_ERROR([Cannot continue])])]) ++ ++ if test "AS_VAR_GET(type_var)" = "not found" ; then ++ $5= ++ else ++ $5=AS_VAR_GET(type_var) ++ fi ++ ++ unset oft_real_type oft_target_size ++ ++ AS_VAR_POPDEF([type_var])dnl ++]) ++m4trace:config/ompi_functions.m4:21: -1- AC_DEFUN([OMPI_CONFIGURE_SETUP], [ ++ ++# Some helper script functions. Unfortunately, we cannot use $1 kinds ++# of arugments here because of the m4 substitution. So we have to set ++# special variable names before invoking the function. :-\ ++ ++ompi_show_title() { ++ cat <@:*) ++ echo installing to directory \"$prefix\" ++ ;; ++ *) ++ AC_MSG_ERROR(prefix "$prefix" must be an absolute directory path) ++ ;; ++esac ++ ++# Allow the --enable-dist flag to be passed in ++ ++AC_ARG_ENABLE(dist, ++ AC_HELP_STRING([--enable-dist], ++ [guarantee that that the "dist" make target will be functional, although may not guarantee that any other make target will be functional.]), ++ OMPI_WANT_DIST=yes, OMPI_WANT_DIST=no) ++ ++if test "$OMPI_WANT_DIST" = "yes"; then ++ AC_MSG_WARN([Configuring in 'make dist' mode]) ++ AC_MSG_WARN([Most make targets may be non-functional!]) ++fi]) ++m4trace:config/ompi_functions.m4:155: -1- AC_DEFUN([OMPI_LOG_MSG], [ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "$2"; then ++ echo "configure:__oline__: $1" >&5 ++else ++ echo $1 >&5 ++fi]) ++m4trace:config/ompi_functions.m4:168: -1- AC_DEFUN([OMPI_LOG_FILE], [ ++# 1 is the filename ++if test -n "$1" -a -f "$1"; then ++ cat $1 >&5 ++fi]) ++m4trace:config/ompi_functions.m4:178: -1- AC_DEFUN([OMPI_LOG_COMMAND], [ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $1" >&5 ++$1 1>&5 2>&1 ++ompi_status=$? ++OMPI_LOG_MSG([\$? = $ompi_status], 1) ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ $2 ++else ++ unset ompi_status ++ $3 ++fi]) ++m4trace:config/ompi_functions.m4:198: -1- AC_DEFUN([OMPI_UNIQ], [ ++# 1 is the variable name to be uniq-ized ++ompi_name=$1 ++ ++# Go through each item in the variable and only keep the unique ones ++ ++ompi_count=0 ++for val in ${$1}; do ++ ompi_done=0 ++ ompi_i=1 ++ ompi_found=0 ++ ++ # Loop over every token we've seen so far ++ ++ ompi_done="`expr $ompi_i \> $ompi_count`" ++ while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do ++ ++ # Have we seen this token already? Prefix the comparison with ++ # "x" so that "-Lfoo" values won't be cause an error. ++ ++ ompi_eval="expr x$val = x\$ompi_array_$ompi_i" ++ ompi_found=`eval $ompi_eval` ++ ++ # Check the ending condition ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ++ # Increment the counter ++ ++ ompi_i="`expr $ompi_i + 1`" ++ done ++ ++ # If we didn't find the token, add it to the "array" ++ ++ if test "$ompi_found" = "0"; then ++ ompi_eval="ompi_array_$ompi_i=$val" ++ eval $ompi_eval ++ ompi_count="`expr $ompi_count + 1`" ++ else ++ ompi_i="`expr $ompi_i - 1`" ++ fi ++done ++ ++# Take all the items in the "array" and assemble them back into a ++# single variable ++ ++ompi_i=1 ++ompi_done="`expr $ompi_i \> $ompi_count`" ++ompi_newval= ++while test "$ompi_done" = "0"; do ++ ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\"" ++ eval $ompi_eval ++ ++ ompi_eval="unset ompi_array_$ompi_i" ++ eval $ompi_eval ++ ++ ompi_done="`expr $ompi_i \>= $ompi_count`" ++ ompi_i="`expr $ompi_i + 1`" ++done ++ ++# Done; do the assignment ++ ++ompi_newval="`echo $ompi_newval`" ++ompi_eval="$ompi_name=\"$ompi_newval\"" ++eval $ompi_eval ++ ++# Clean up ++ ++unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count]) ++m4trace:config/ompi_functions.m4:278: -1- AC_DEFUN([OMPI_WHICH], [ ++# 1 is the variable name to do "which" on ++# 2 is the variable name to assign the return value to ++ ++OMPI_VAR_SCOPE_PUSH([ompi_prog ompi_file ompi_dir ompi_sentinel]) ++ ++ompi_prog=$1 ++ ++IFS_SAVE=$IFS ++IFS="$PATH_SEPARATOR" ++for ompi_dir in $PATH; do ++ if test -x "$ompi_dir/$ompi_prog"; then ++ $2="$ompi_dir/$ompi_prog" ++ break ++ fi ++done ++IFS=$IFS_SAVE ++ ++OMPI_VAR_SCOPE_POP ++]) ++m4trace:config/ompi_functions.m4:305: -1- AC_DEFUN([OMPI_VAR_SCOPE_PUSH], [ ++ ++ # Is the private index set? If not, set it. ++ if test "x$ompi_scope_index" = "x"; then ++ ompi_scope_index=1 ++ fi ++ ++ # First, check to see if any of these variables are already set. ++ # This is a simple sanity check to ensure we're not already ++ # overwriting pre-existing variables (that have a non-empty ++ # value). It's not a perfect check, but at least it's something. ++ for ompi_var in $1; do ++ ompi_str="ompi_str=\"\$$ompi_var\"" ++ eval $ompi_str ++ ++ if test "x$ompi_str" != "x"; then ++ AC_MSG_WARN([Found configure shell variable clash!]) ++ AC_MSG_WARN([[OMPI_VAR_SCOPE_PUSH] called on "$ompi_var",]) ++ AC_MSG_WARN([but it is already defined with value "$ompi_str"]) ++ AC_MSG_WARN([This usually indicates an error in configure.]) ++ AC_MSG_ERROR([Cannot continue]) ++ fi ++ done ++ ++ # Ok, we passed the simple sanity check. Save all these names so ++ # that we can unset them at the end of the scope. ++ ompi_str="ompi_scope_$ompi_scope_index=\"$1\"" ++ eval $ompi_str ++ unset ompi_str ++ ++ env | grep ompi_scope ++ ompi_scope_index=`expr $ompi_scope_index + 1` ++]) ++m4trace:config/ompi_functions.m4:340: -1- AC_DEFUN([OMPI_VAR_SCOPE_POP], [ ++ # Unwind the index ++ ompi_scope_index=`expr $ompi_scope_index - 1` ++ ompi_scope_test=`expr $ompi_scope_index \> 0` ++ if test "$ompi_scope_test" = "0"; then ++ AC_MSG_WARN([[OMPI_VAR_SCOPE_POP] popped too many OMPI configure scopes.]) ++ AC_MSG_WARN([This usually indicates an error in configure.]) ++ AC_MSG_ERROR([Cannot continue]) ++ fi ++ ++ # Get the variable names from that index ++ ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\"" ++ eval $ompi_str ++ ++ # Iterate over all the variables and unset them all ++ for ompi_var in $ompi_str; do ++ unset $ompi_var ++ done ++]) ++m4trace:config/ompi_get_libtool_linker_flags.m4:20: -1- AC_DEFUN([OMPI_CHECK_LINKER_FLAGS], [ ++# ++# libtool has been created by this point ++# Try to see if it will add any additional flags for dependant libraries ++# ++ ++AC_MSG_CHECKING([for libtool-supplied linker flags]) ++ ++libtool="$1" ++extra_flags="$2" ++ ++# Get the directory where libtool lives ++ ++start="`pwd`" ++d="`dirname $libtool`" ++cd "$d" ++libtool="`pwd`/libtool" ++cd "$start" ++unset d start ++ ++# Make a playground to work in ++ ++mkdir conftest.$$ ++cd conftest.$$ ++ ++cat > foo.c <&5 2>&5 ++ if test -n "[$]1"; then ++ output=`eval $cmd 2>/dev/null | head -n 1 | sed -e 's,^libtool: *,,' -e 's,^link: *,,'` ++ fi ++ status="$?" ++ OMPI_LOG_MSG([\$? = $status], [yes]) ++ if test "$status" != "0"; then ++ AC_MSG_RESULT([libtool error!]) ++ AC_MSG_ERROR([Cannot continue]) ++ fi ++} ++ ++# ++# First make a sample library with the current LDFLAGS and LIBS ++# ++ ++cmd="$libtool --mode=compile --tag=CC $CC $CFLAGS -c -o foo.o foo.c" ++ompi_check_linker_flags_work ++cmd="$libtool --mode=link --tag=CC $CC $CFLAGS foo.lo $LDFLAGS $LIBS -o libfoo.la" ++ompi_check_linker_flags_work ++ ++# ++# Now fake linking to it and capture the output from libtool ++# ++ ++cmd="$libtool --dry-run --mode=link --tag=CC $CC bar.lo libfoo.la -o bar $extra_flags" ++ompi_check_linker_flags_work yes ++ ++# eat any extra whitespace in CC, as libtool will do the same ++tmpCC=`echo $CC | sed -e 's/\//\\\\\//g'` ++output=`echo $output | sed -e "s/^$tmpCC//"` ++eval "set $output" ++extra_ldflags= ++while test -n "[$]1"; do ++ case "[$]1" in ++ *.libs/bar*) ;; ++ bar*) ;; ++ -I*) ;; ++ -L*) ;; ++ -R*) ;; ++ -lfoo) ;; ++ *.libs/libfoo.*) ;; ++ -o) ;; ++ *.so) ;; ++ *.a) ;; ++ *) ++ extra_ldflags="$extra_ldflags [$]1" ++ ;; ++ esac ++ shift ++done ++ ++if test -n "$extra_ldflags"; then ++ AC_MSG_RESULT([$extra_ldflags]) ++else ++ AC_MSG_RESULT([no extra flags]) ++fi ++ ++cd .. ++rm -rf conftest.$$]) ++m4trace:config/ompi_interix.m4:24: -1- AC_DEFUN([OMPI_INTERIX], [ ++ ++ AC_MSG_CHECKING(for Interix environment) ++ AC_TRY_COMPILE([], ++ [#if !defined(__INTERIX) ++ #error Normal Unix environment ++ #endif], ++ is_interix=yes, ++ is_interix=no) ++ AC_MSG_RESULT([$is_interix]) ++ if test "$is_interix" = "yes"; then ++ ++ ompi_show_subtitle "Interix detection" ++ ++ if ! test -d /usr/include/port; then ++ AC_MSG_WARN([Compiling Open MPI under Interix require an up-to-date]) ++ AC_MSG_WARN([version of libport. Please ask your system administrator]) ++ AC_MSG_WARN([to install it (pkg_update -L libport).]) ++ AC_MSG_ERROR([*** Cannot continue]) ++ fi ++ # ++ # These are the minimum requirements for Interix ... ++ # ++ AC_MSG_WARN([ -lport was added to the linking flags]) ++ LDFLAGS="-lport $LDFLAGS" ++ AC_MSG_WARN([ -D_ALL_SOURCE -D_USE_LIBPORT was added to the compilation flags]) ++ CFLAGS="-D_ALL_SOURCE -D_USE_LIBPORT -I/usr/include/port $CFLAGS" ++ CPPFLAGS="-D_ALL_SOURCE -D_USE_LIBPORT -I/usr/include/port $CPPFLAGS" ++ CXXFLAGS="-D_ALL_SOURCE -D_USE_LIBPORT -I/usr/include/port $CXXFLAGS" ++ ++ fi ++ ++]) ++m4trace:config/ompi_lang_link_with_c.m4:17: -1- AC_DEFUN([OMPI_LANG_LINK_WITH_C], [ ++ AS_VAR_PUSHDEF([lang_var], [ompi_cv_c_link_$1]) ++ ++ AC_CACHE_CHECK([if C and $1 are link compatible], ++ lang_var, ++ [m4_if([$1], [Fortran], ++ [m4_define([ompi_lang_link_with_c_fortran], 1)], ++ [m4_if([$1], [Fortran 77], ++ [m4_define([ompi_lang_link_with_c_fortran], 1)], ++ [m4_define([ompi_lang_link_with_c_fortran], 0)])]) ++ m4_if(ompi_lang_link_with_c_fortran, 1, ++ [OMPI_F77_MAKE_C_FUNCTION([testfunc_name], [testfunc])], ++ [testfunc_name="testfunc"]) ++ ++ # Write out C part ++ AC_LANG_PUSH(C) ++ rm -f conftest_c.$ac_ext ++ cat > conftest_c.$ac_ext << EOF ++int $testfunc_name(int a); ++int $testfunc_name(int a) { return a; } ++EOF ++ ++ # Now compile both parts ++ OMPI_LOG_COMMAND([$CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext], ++ [AC_LANG_PUSH($1) ++ ompi_lang_link_with_c_libs="$LIBS" ++ LIBS="conftest_c.o $LIBS" ++ m4_if(ompi_lang_link_with_c_fortran, 1, ++ [AC_LINK_IFELSE([AC_LANG_PROGRAM([], [ ++ external testfunc ++ call testfunc(1) ++])], ++ [AS_VAR_SET(lang_var, ["yes"])], [AS_VAR_SET(lang_var, ["no"])])], ++ [AC_LINK_IFELSE([AC_LANG_PROGRAM([ ++#if defined(c_plusplus) || defined(__cplusplus) ++extern "C" int testfunc(int); ++#else ++extern int testfunc(int); ++#endif ++], ++ [return testfunc(0);])], ++ [AS_VAR_SET(lang_var, ["yes"])], [AS_VAR_SET(lang_var, ["no"])])]) ++ LIBS="$ompi_lang_link_with_c_libs" ++ AC_LANG_POP($1)], ++ [AS_VAR_SET(lang_var, ["no"])]) ++ rm -f conftest_c.$ac_ext ++ AC_LANG_POP(C)]) ++ ++ AS_IF([test "AS_VAR_GET([lang_var])" = "yes"], [$2], [$3]) ++ AS_VAR_POPDEF([lang_var])dnl ++]) ++m4trace:config/ompi_load_platform.m4:22: -1- AC_DEFUN([OMPI_LOAD_PLATFORM], [ ++ AC_ARG_WITH([platform], ++ [AC_HELP_STRING([--with-platform=FILE], ++ [Load options for build from FILE. Options on the ++ command line not in FILE are used. Options on the ++ command line and in FILE are replaced by what is ++ in FILE.])]) ++ if test "$with_platform" = "yes" ; then ++ AC_MSG_ERROR([--with-platform argument must include FILE option]) ++ elif test "$with_platform" = "no" ; then ++ AC_MSG_ERROR([--without-platform is not a valid argument]) ++ elif test "$with_platform" != "" ; then ++ # if no path part, check in contrib/platform ++ if test "`basename $with_platform`" = "$with_platform" ; then ++ if test -r "${srcdir}/contrib/platform/$with_platform" ; then ++ with_platform="${srcdir}/contrib/platform/$with_platform" ++ fi ++ fi ++ ++ # make sure file exists ++ if test ! -r "$with_platform" ; then ++ AC_MSG_ERROR([platform file $with_platform not found]) ++ fi ++ ++ # eval into environment ++ OMPI_LOG_MSG([Loading environment file $with_platform, with contents below]) ++ OMPI_LOG_FILE([$with_platform]) ++ . "$with_platform" ++ ++ # see if they left us a name ++ if test "$OMPI_PLATFORM_LOADED" != "" ; then ++ platform_loaded="$OMPI_PLATFORM_LOADED" ++ else ++ platform_loaded="$with_platform" ++ fi ++ echo "Loaded platform arguments for $platform_loaded" ++ OMPI_LOG_MSG([Loaded platform arguments for $platform_loaded]) ++ ++ # look for default mca param file ++ ++ # setup by getting full pathname for the platform directories ++ platform_base="`dirname $with_platform`" ++ # get full pathname of where we are so we can return ++ platform_savedir="`pwd`" ++ # go to where the platform file is located ++ cd "$platform_base" ++ # get the full path to this location ++ platform_file_dir=`pwd` ++ # return to where we started ++ cd "$platform_savedir" ++ ++ # define an alternate default mca param filename ++ platform_alt_mca_file="`basename $platform_loaded`.conf" ++ ++ # look where platform file is located for platform.conf name ++ if test -r "${platform_file_dir}/${platform_alt_mca_file}" ; then ++ AC_SUBST(OPAL_DEFAULT_MCA_PARAM_CONF, [$platform_file_dir/$platform_alt_mca_file]) ++ AC_SUBST(OPAL_PARAM_FROM_PLATFORM, "yes") ++ # if not, see if a file is there with the default name ++ elif test -r "${platform_file_dir}/openmpi-mca-params.conf" ; then ++ AC_SUBST(OPAL_DEFAULT_MCA_PARAM_CONF, [$platform_file_dir/openmpi-mca-params.conf]) ++ AC_SUBST(OPAL_PARAM_FROM_PLATFORM, "yes") ++ # if not, then just use the default ++ else ++ AC_SUBST(OPAL_DEFAULT_MCA_PARAM_CONF, [openmpi-mca-params.conf]) ++ AC_SUBST(OPAL_PARAM_FROM_PLATFORM, "no") ++ fi ++ ++ else ++ AC_SUBST(OPAL_DEFAULT_MCA_PARAM_CONF, [openmpi-mca-params.conf]) ++ fi ++]) ++m4trace:config/ompi_make_stripped_flags.m4:22: -1- AC_DEFUN([OMPI_MAKE_STRIPPED_FLAGS], [ ++ ++# Process a set of flags and remove all debugging and optimization ++# flags ++ ++s_arg="$1" ++s_result= ++for s_word in $s_arg; do ++ # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs ++ # for an explanation of @<:@ and @:>@ -- they m4 expand to [ and ] ++ case $s_word in ++ -g) ;; ++ -g@<:@1-3@:>@) ;; ++ +K@<:@0-5@:>@) ;; ++ -O) ;; ++ -O@<:@0-9@:>@) ;; ++ -xO) ;; ++ -xO@<:@0-9@:>@) ;; ++ -fast) ;; ++ ++ # The below Sun Studio flags require or ++ # trigger -xO optimization ++ -xvector*) ;; ++ -xdepend=yes) ;; ++ ++ *) s_result="$s_result $s_word" ++ esac ++done ++ ++# Clean up ++ ++unset s_word s_arg]) ++m4trace:config/ompi_mca.m4:23: -1- AC_DEFUN([OMPI_EVAL_ARG], [$1]) ++m4trace:config/ompi_mca.m4:37: -1- AC_DEFUN([OMPI_MCA], [ ++ dnl for OMPI_CONFIGURE_USER env variable ++ AC_REQUIRE([OMPI_CONFIGURE_SETUP]) ++ ++ # Find which components should be built as run-time loadable components ++ # Acceptable combinations: ++ # ++ # [default -- no option given] ++ # --enable-mca-dso ++ # --enable-mca-dso=[.+,]*COMPONENT_TYPE[.+,]* ++ # --enable-mca-dso=[.+,]*COMPONENT_TYPE-COMPONENT_NAME[.+,]* ++ # --disable-mca-dso ++ # ++ AC_ARG_ENABLE([mca-no-build], ++ [AC_HELP_STRING([--enable-mca-no-build=LIST], ++ [Comma-separated list of - pairs ++ that will not be built. Example: "--enable-mca-no-build=maffinity,btl-portals" will disable building all maffinity components and the "portals" btl components.])]) ++ AC_ARG_ENABLE(mca-dso, ++ AC_HELP_STRING([--enable-mca-dso=LIST], ++ [Comma-separated list of types and/or ++ type-component pairs that will be built as ++ run-time loadable components (as opposed to ++ statically linked in), if supported on this ++ platform. The default is to build all components ++ as DSOs.])) ++ AC_ARG_ENABLE(mca-static, ++ AC_HELP_STRING([--enable-mca-static=LIST], ++ [Comma-separated list of types and/or ++ type-component pairs that will be built statically ++ linked into the library. The default (if DSOs are ++ supported) is to build all components as DSOs. ++ Enabling a component as static disables it ++ building as a DSO.])) ++ AC_ARG_ENABLE(mca-direct, ++ AC_HELP_STRING([--enable-mca-direct=LIST], ++ [Comma-separated list of type-component pairs that ++ will be hard coded as the one component to use for ++ a given component type, saving the (small) ++ overhead of the component architecture. LIST must ++ not be empty and implies given component pairs are ++ build as static components.])) ++ ++ AC_MSG_CHECKING([which components should be disabled]) ++ if test "$enable_mca_no_build" = "yes"; then ++ AC_MSG_RESULT([yes]) ++ AC_MSG_ERROR([*** The enable-mca-no-build flag requires an explicit list ++*** of type-component pairs. For example, --enable-mca-direct=pml-ob1]) ++ else ++ ifs_save="$IFS" ++ IFS="${IFS}$PATH_SEPARATOR," ++ msg= ++ for item in $enable_mca_no_build; do ++ type="`echo $item | cut -s -f1 -d-`" ++ comp="`echo $item | cut -s -f2- -d-`" ++ if test -z $type ; then ++ type=$item ++ fi ++ if test -z $comp ; then ++ str="`echo DISABLE_${type}=1 | sed s/-/_/g`" ++ eval $str ++ msg="$item $msg" ++ else ++ str="`echo DISABLE_${type}_${comp}=1 | sed s/-/_/g`" ++ eval $str ++ msg="$item $msg" ++ fi ++ done ++ IFS="$ifs_save" ++ fi ++ AC_MSG_RESULT([$msg]) ++ unset msg ++ ++ # ++ # First, add all the mca-direct components / types into the mca-static ++ # lists and create a list of component types that are direct compile, ++ # in the form DIRECT_[type]=[component] ++ # ++ AC_MSG_CHECKING([which components should be direct-linked into the library]) ++ if test "$enable_mca_direct" = "yes" ; then ++ AC_MSG_RESULT([yes]) ++ AC_MSG_ERROR([*** The enable-mca-direct flag requires an explicit list of ++*** type-component pairs. For example, --enable-mca-direct=pml-ob1,coll-basic]) ++ elif test ! -z "$enable_mca_direct" -a "$enable_mca_direct" != "" ; then ++ # ++ # we need to add this into the static list, unless the static list ++ # is everything ++ # ++ if test "$enable_mca_static" = "no" ; then ++ AC_MSG_WARN([*** Re-enabling static component support for direct call]) ++ enable_mca_static="$enable_mca_direct" ++ elif test -z "$enable_mca_static" ; then ++ enable_mca_static="$enable_mca_direct" ++ elif test "$enable_mca_static" != "yes" ; then ++ enable_mca_static="$enable_mca_direct,$enable_mca_static" ++ fi ++ ++ ifs_save="$IFS" ++ IFS="${IFS}$PATH_SEPARATOR," ++ msg= ++ for item in $enable_mca_direct; do ++ type="`echo $item | cut -f1 -d-`" ++ comp="`echo $item | cut -f2- -d-`" ++ if test -z $type -o -z $comp ; then ++ AC_MSG_ERROR([*** The enable-mca-direct flag requires a ++*** list of type-component pairs. Invalid input detected.]) ++ else ++ str="`echo DIRECT_$type=$comp | sed s/-/_/g`" ++ eval $str ++ msg="$item $msg" ++ fi ++ done ++ IFS="$ifs_save" ++ fi ++ AC_MSG_RESULT([$msg]) ++ unset msg ++ ++ # ++ # Second, set the DSO_all and STATIC_all variables. conflict ++ # resolution (prefer static) is done in the big loop below ++ # ++ AC_MSG_CHECKING([which components should be run-time loadable]) ++ if test "$enable_static" != "no"; then ++ DSO_all=0 ++ msg=none ++ elif test -z "$enable_mca_dso" -o "$enable_mca_dso" = "yes"; then ++ DSO_all=1 ++ msg=all ++ elif test "$enable_mca_dso" = "no"; then ++ DSO_all=0 ++ msg=none ++ else ++ DSO_all=0 ++ ifs_save="$IFS" ++ IFS="${IFS}$PATH_SEPARATOR," ++ msg= ++ for item in $enable_mca_dso; do ++ str="`echo DSO_$item=1 | sed s/-/_/g`" ++ eval $str ++ msg="$item $msg" ++ done ++ IFS="$ifs_save" ++ fi ++ AC_MSG_RESULT([$msg]) ++ unset msg ++ if test "$enable_static" != "no"; then ++ AC_MSG_WARN([*** Shared libraries have been disabled (--disable-shared)]) ++ AC_MSG_WARN([*** Building MCA components as DSOs automatically disabled]) ++ fi ++ ++ AC_MSG_CHECKING([which components should be static]) ++ if test "$enable_mca_static" = "yes"; then ++ STATIC_all=1 ++ msg=all ++ elif test -z "$enable_mca_static" -o "$enable_mca_static" = "no"; then ++ STATIC_all=0 ++ msg=none ++ else ++ STATIC_all=0 ++ ifs_save="$IFS" ++ IFS="${IFS}$PATH_SEPARATOR," ++ msg= ++ for item in $enable_mca_static; do ++ str="`echo STATIC_$item=1 | sed s/-/_/g`" ++ eval $str ++ msg="$item $msg" ++ done ++ IFS="$ifs_save" ++ fi ++ AC_MSG_RESULT([$msg]) ++ unset msg ++ ++ AC_MSG_CHECKING([for projects containing MCA frameworks]) ++ AC_MSG_RESULT([mca_project_list]) ++ ++ # if there isn't a project list, abort ++ m4_ifdef([mca_project_list], [], ++ [m4_fatal([Could not find project list - rerun autogen.sh without -l])]) ++ ++ # now configre all the projects, frameworks, and components. Most ++ # of the hard stuff is in here ++ MCA_PROJECT_SUBDIRS= ++ m4_foreach(mca_project, [mca_project_list], ++ [MCA_PROJECT_SUBDIRS="$MCA_PROJECT_SUBDIRS mca_project" ++ MCA_CONFIGURE_PROJECT(mca_project)]) ++ ++ # BWB - fix me... need to automate this somehow ++ MCA_SETUP_DIRECT_CALL(pml, ompi) ++ MCA_SETUP_DIRECT_CALL(mtl, ompi) ++ ++ # make all the config output statements for the no configure ++ # components ++ MCA_NO_CONFIG_CONFIG_FILES() ++ ++ AC_SUBST(MCA_PROJECT_SUBDIRS) ++]) ++m4trace:config/ompi_mca.m4:247: -1- AC_DEFUN([MCA_CONFIGURE_PROJECT], [ ++ # can't use a variable rename here because these need to be evaled ++ # at auto* time. ++ ++ ompi_show_subtitle "Configuring MCA for $1" ++ ++ AC_MSG_CHECKING([for frameworks for $1]) ++ AC_MSG_RESULT([mca_$1_framework_list]) ++ ++ # iterate through the list of frameworks. There is something ++ # funky with m4 foreach if the list is defined, but empty. It ++ # will call the 3rd argument once with an empty value for the ++ # first argument. Protect against calling MCA_CONFIGURE_FRAMEWORK ++ # with an empty second argument. Grrr.... ++ # if there isn't a project list, abort ++ # ++ # Also setup two variables for Makefiles: ++ # MCA_project_FRAMEWORKS - list of frameworks in that project ++ # MCA_project_FRAMEWORK_LIBS - list of libraries (or variables pointing ++ # to more libraries) that must be included ++ # in the project's main library ++ m4_ifdef([mca_$1_framework_list], [], ++ [m4_fatal([Could not find mca_$1_framework_list - rerun autogen.sh without -l])]) ++ ++ MCA_$1_FRAMEWORKS= ++ MCA_$1_FRAMEWORKS_SUBDIRS= ++ MCA_$1_FRAMEWORK_COMPONENT_ALL_SUBDIRS= ++ MCA_$1_FRAMEWORK_COMPONENT_DSO_SUBDIRS= ++ MCA_$1_FRAMEWORK_COMPONENT_STATIC_SUBDIRS= ++ MCA_$1_FRAMEWORK_LIBS= ++ ++ m4_foreach(mca_framework, [mca_$1_framework_list], ++ [m4_ifval(mca_framework, ++ [# common has to go up front ++ if test "mca_framework" = "common" ; then ++ MCA_$1_FRAMEWORKS="mca_framework $MCA_$1_FRAMEWORKS" ++ MCA_$1_FRAMEWORKS_SUBDIRS="[mca/]mca_framework $MCA_$1_FRAMEWORKS_SUBDIRS" ++ MCA_$1_FRAMEWORK_COMPONENT_ALL_SUBDIRS="[\$(MCA_]mca_framework[_ALL_SUBDIRS)] $MCA_$1_FRAMEWORK_COMPONENT_ALL_SUBDIRS" ++ MCA_$1_FRAMEWORK_COMPONENT_DSO_SUBDIRS="[\$(MCA_]mca_framework[_DSO_SUBDIRS)] $MCA_$1_FRAMEWORK_COMPONENT_DSO_SUBDIRS" ++ MCA_$1_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="[\$(MCA_]mca_framework[_STATIC_SUBDIRS)] $MCA_$1_FRAMEWORK_COMPONENT_STATIC_SUBDIRS" ++ else ++ MCA_$1_FRAMEWORKS="$MCA_$1_FRAMEWORKS mca_framework" ++ MCA_$1_FRAMEWORKS_SUBDIRS="$MCA_$1_FRAMEWORKS_SUBDIRS [mca/]mca_framework" ++ MCA_$1_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_$1_FRAMEWORK_COMPONENT_ALL_SUBDIRS [\$(MCA_]mca_framework[_ALL_SUBDIRS)]" ++ MCA_$1_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_$1_FRAMEWORK_COMPONENT_DSO_SUBDIRS [\$(MCA_]mca_framework[_DSO_SUBDIRS)]" ++ MCA_$1_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_$1_FRAMEWORK_COMPONENT_STATIC_SUBDIRS [\$(MCA_]mca_framework[_STATIC_SUBDIRS)]" ++ fi ++ if test "mca_framework" != "common" ; then ++ MCA_$1_FRAMEWORK_LIBS="$MCA_$1_FRAMEWORK_LIBS [mca/]mca_framework[/libmca_]mca_framework[.la]" ++ fi ++ MCA_$1_FRAMEWORK_LIBS="$MCA_$1_FRAMEWORK_LIBS [\$(MCA_]mca_framework[_STATIC_LTLIBS)]" ++ m4_ifdef([MCA_]mca_framework[_CONFIG], ++ [MCA_]mca_framework[_CONFIG]($1, mca_framework), ++ [MCA_CONFIGURE_FRAMEWORK($1, mca_framework, 1)])])]) ++ ++ AC_SUBST(MCA_$1_FRAMEWORKS) ++ AC_SUBST(MCA_$1_FRAMEWORKS_SUBDIRS) ++ AC_SUBST(MCA_$1_FRAMEWORK_COMPONENT_ALL_SUBDIRS) ++ AC_SUBST(MCA_$1_FRAMEWORK_COMPONENT_DSO_SUBDIRS) ++ AC_SUBST(MCA_$1_FRAMEWORK_COMPONENT_STATIC_SUBDIRS) ++ AC_SUBST(MCA_$1_FRAMEWORK_LIBS) ++]) ++m4trace:config/ompi_mca.m4:326: -1- AC_DEFUN([MCA_CONFIGURE_FRAMEWORK], [ ++ ompi_show_subsubtitle "Configuring MCA framework $2" ++ ++ # setup for framework ++ all_components= ++ static_components= ++ dso_components= ++ static_ltlibs= ++ ++ # Ensure that the directory where the #include file is to live ++ # exists. Need to do this for VPATH builds, because the directory ++ # may not exist yet. For the "common" type, it's not really a ++ # component, so it doesn't have a base. ++ if test "$2" = "common" ; then ++ outdir=$1/mca/common ++ else ++ outdir=$1/mca/$2/base ++ fi ++ AS_MKDIR_P([$outdir]) ++ ++ # remove any previously generated #include files ++ outfile_real=$outdir/static-components.h ++ outfile=$outfile_real.new ++ rm -f $outfile $outfile.struct $outfile.extern ++ touch $outfile.struct $outfile.extern ++ ++ # print some nice messages about what we're about to do... ++ AC_MSG_CHECKING([for no configure components in framework $2]) ++ AC_MSG_RESULT([mca_$2_no_config_component_list]) ++ AC_MSG_CHECKING([for m4 configure components in framework $2]) ++ AC_MSG_RESULT([mca_$2_m4_config_component_list]) ++ ++ # configure components that don't have any component-specific ++ # configuration. See comment in CONFIGURE_PROJECT about the ++ # m4_ifval in the m4_foreach. If there isn't a component list, ++ # abort with a reasonable message. If there are components in the ++ # list, but we're doing one of the "special" selection logics, ++ # abort with a reasonable message. ++ m4_ifdef([mca_$2_no_config_component_list], [], ++ [m4_fatal([Could not find mca_$2_no_config_component_list - rerun autogen.sh without -l])]) ++ # make sure priority stuff set right ++ m4_if(OMPI_EVAL_ARG([MCA_]mca_framework[_CONFIGURE_MODE]), [STOP_AT_FIRST], ++ [m4_ifval(mca_$2_no_config_component_list, ++ [m4_fatal([Framework $2 using STOP_AT_FIRST but at least one component has no configure.m4])])]) ++ m4_if(OMPI_EVAL_ARG([MCA_]mca_framework[_CONFIGURE_MODE]), [STOP_AT_FIRST_PRIORITY], ++ [m4_ifval(mca_$2_no_config_component_list, ++ [m4_fatal([Framework $2 using STOP_AT_FIRST but at least one component has no configure.m4])])]) ++ m4_foreach(mca_component, [mca_$2_no_config_component_list], ++ [m4_ifval(mca_component, ++ [MCA_CONFIGURE_NO_CONFIG_COMPONENT($1, $2, mca_component, ++ [all_components], ++ [static_components], ++ [dso_components], ++ [static_ltlibs], ++ [$3])])]) ++ ++ # configure components that use built-in configuration scripts see ++ # comment in CONFIGURE_PROJECT about the m4_ifval in the ++ # m4_foreach. if there isn't a component list, abort ++ m4_ifdef([mca_$2_m4_config_component_list], [], ++ [m4_fatal([Could not find mca_$2_m4_config_component_list - rerun autogen.sh without -l])]) ++ best_mca_component_priority=0 ++ components_looking_for_succeed=$3 ++ components_last_result=0 ++ m4_foreach(mca_component, [mca_$2_m4_config_component_list], ++ [m4_ifval(mca_component, ++ [m4_if(OMPI_EVAL_ARG([MCA_]mca_framework[_CONFIGURE_MODE]), [STOP_AT_FIRST_PRIORITY], ++ [ # get the component's priority... ++ infile="$srcdir/$1/mca/$2/mca_component/configure.params" ++ mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`" ++ AS_IF([test -z "$mca_component_priority"], [mca_component_priority=0]) ++ AS_IF([test $best_mca_component_priority -gt $mca_component_priority], [components_looking_for_succeed=0])]) ++ MCA_CONFIGURE_M4_CONFIG_COMPONENT($1, $2, mca_component, ++ [all_components], ++ [static_components], ++ [dso_components], ++ [static_ltlibs], ++ [$components_looking_for_succeed], ++ [components_last_result=1], ++ [components_last_result=0]) ++ m4_if(OMPI_EVAL_ARG([MCA_]mca_framework[_CONFIGURE_MODE]), [STOP_AT_FIRST], ++ [AS_IF([test $components_last_result -eq 1], [components_looking_for_succeed=0])]) ++ m4_if(OMPI_EVAL_ARG([MCA_]mca_framework[_CONFIGURE_MODE]), [STOP_AT_FIRST_PRIORITY], ++ [AS_IF([test $components_last_result -eq 1], [best_mca_component_priority=$mca_component_priority])])])]) ++ ++ # configure components that provide their own configure script. ++ # It would be really hard to run these for "find first that ++ # works", so we don't :) ++ m4_if(OMPI_EVAL_ARG([MCA_]mca_framework[_CONFIGURE_MODE]), [STOP_AT_FIRST], [], ++ [m4_if(OMPI_EVAL_ARG([MCA_]mca_framework[_CONFIGURE_MODE]), [STOP_AT_FIRST_PRIORITY], [], ++ [AS_IF([test "$3" != "0"], ++ [MCA_CONFIGURE_ALL_CONFIG_COMPONENTS($1, $2, [all_components], ++ [static_components], [dso_components], ++ [static_ltlibs])])])]) ++ ++ MCA_$2_ALL_COMPONENTS="$all_components" ++ MCA_$2_STATIC_COMPONENTS="$static_components" ++ MCA_$2_DSO_COMPONENTS="$dso_components" ++ MCA_$2_STATIC_LTLIBS="$static_ltlibs" ++ ++ AC_SUBST(MCA_$2_ALL_COMPONENTS) ++ AC_SUBST(MCA_$2_STATIC_COMPONENTS) ++ AC_SUBST(MCA_$2_DSO_COMPONENTS) ++ AC_SUBST(MCA_$2_STATIC_LTLIBS) ++ ++ OMPI_MCA_MAKE_DIR_LIST(MCA_$2_ALL_SUBDIRS, $2, [$all_components]) ++ OMPI_MCA_MAKE_DIR_LIST(MCA_$2_STATIC_SUBDIRS, $2, [$static_components]) ++ OMPI_MCA_MAKE_DIR_LIST(MCA_$2_DSO_SUBDIRS, $2, [$dso_components]) ++ ++ # Create the final .h file that will be included in the type's ++ # top-level glue. This lists all the static components. We don't ++ # need to do this for "common". ++ if test "$2" != "common"; then ++ cat > $outfile < /dev/null 2>&1 ++ if test "$?" != "0"; then ++ mv $outfile $outfile_real ++ else ++ rm -f $outfile ++ fi ++ fi ++ rm -f $outfile.struct $outfile.extern ++ ++ unset all_components static_components dso_components outfile outfile_real ++]) ++m4trace:config/ompi_mca.m4:497: -1- AC_DEFUN([MCA_CONFIGURE_NO_CONFIG_COMPONENT], [ ++ ompi_show_subsubsubtitle "MCA component $2:$3 (no configuration)" ++ ++ MCA_COMPONENT_BUILD_CHECK($1, $2, $3, ++ [should_build=$8], [should_build=0]) ++ MCA_COMPONENT_COMPILE_MODE($1, $2, $3, compile_mode) ++ ++ if test "$should_build" = "1" ; then ++ MCA_PROCESS_COMPONENT($1, $2, $3, $4, $5, $6, $7, $compile_mode) ++ else ++ MCA_PROCESS_DEAD_COMPONENT($1, $2, $3) ++ # add component to all component list ++ $4="$$4 $3" ++ fi ++ ++ # set the AM_CONDITIONAL on how we should build ++ if test "$compile_mode" = "dso" ; then ++ BUILD_$2_$3_DSO=1 ++ else ++ BUILD_$2_$3_DSO=0 ++ fi ++ AM_CONDITIONAL(OMPI_BUILD_$2_$3_DSO, test "$BUILD_$2_$3_DSO" = "1") ++ ++ unset compile_mode ++]) ++m4trace:config/ompi_mca.m4:540: -1- AC_DEFUN([MCA_CONFIGURE_M4_CONFIG_COMPONENT], [ ++ ompi_show_subsubsubtitle "MCA component $2:$3 (m4 configuration macro)" ++ ++ MCA_COMPONENT_BUILD_CHECK($1, $2, $3, [should_build=$8], [should_build=0]) ++ # Allow the component to override the build mode if it really wants to. ++ # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE ++ m4_ifdef([MCA_$2_$3_COMPILE_MODE], ++ [MCA_$2_$3_COMPILE_MODE($1, $2, $3, compile_mode)], ++ [MCA_COMPONENT_COMPILE_MODE($1, $2, $3, compile_mode)]) ++ ++ # try to configure the component. pay no attention to ++ # --enable-dist, since we'll always have makefiles. ++ AS_IF([test "$should_build" = "1"], ++ [MCA_$2_$3_CONFIG([should_build=1], ++ [should_build=0])]) ++ ++ AS_IF([test "$should_build" = "1"], ++ [MCA_PROCESS_COMPONENT($1, $2, $3, $4, $5, $6, $7, $compile_mode)], ++ [MCA_PROCESS_DEAD_COMPONENT($1, $2, $3) ++ # add component to all component list ++ $4="$$4 $3"]) ++ ++ m4_ifdef([MCA_$2_$3_POST_CONFIG], ++ [MCA_$2_$3_POST_CONFIG($should_build)]) ++ ++ # set the AM_CONDITIONAL on how we should build ++ AS_IF([test "$compile_mode" = "dso"], ++ [BUILD_$2_$3_DSO=1], ++ [BUILD_$2_$3_DSO=0]) ++ AM_CONDITIONAL(OMPI_BUILD_$2_$3_DSO, test "$BUILD_$2_$3_DSO" = "1") ++ ++ AS_IF([test "$should_build" = "1"], [$9], [$10]) ++ ++ unset compile_mode ++]) ++m4trace:config/ompi_mca.m4:593: -1- AC_DEFUN([MCA_CONFIGURE_ALL_CONFIG_COMPONENTS], [ ++ for component_path in $srcdir/$1/mca/$2/* ; do ++ component="`basename $component_path`" ++ if test -d $component_path -a -x $component_path/configure ; then ++ ompi_show_subsubsubtitle "MCA component $2:$component (need to configure)" ++ ++ MCA_COMPONENT_BUILD_CHECK($1, $2, $component, ++ [should_build=1], [should_build=0]) ++ MCA_COMPONENT_COMPILE_MODE($1, $2, $component, compile_mode) ++ ++ if test "$should_build" = "1" ; then ++ OMPI_CONFIG_SUBDIR([$1/mca/$2/$component], ++ [$ompi_subdir_args], ++ [should_build=1], [should_build=2]) ++ fi ++ ++ if test "$should_build" = "1" ; then ++ MCA_PROCESS_COMPONENT($1, $2, $component, $3, $4, $5, $6, $compile_mode) ++ else ++ MCA_PROCESS_DEAD_COMPONENT($1, $2, $component) ++ fi ++ fi ++ done ++]) ++m4trace:config/ompi_mca.m4:633: -1- AC_DEFUN([MCA_COMPONENT_COMPILE_MODE], [ ++ project=$1 ++ framework=$2 ++ component=$3 ++ ++ # Is this component going to built staic or shared? $component ++ # might not be known until configure time, so have to use eval ++ # tricks - can't set variable names at autogen time. ++ str="SHARED_FRAMEWORK=\$DSO_$framework" ++ eval $str ++ str="SHARED_COMPONENT=\$DSO_${framework}_$component" ++ eval $str ++ ++ str="STATIC_FRAMEWORK=\$STATIC_$framework" ++ eval $str ++ str="STATIC_COMPONENT=\$STATIC_${framework}_$component" ++ eval $str ++ ++ shared_mode_override=static ++ ++ # Setup for either shared or static ++ if test "$STATIC_FRAMEWORK" = "1" -o \ ++ "$STATIC_COMPONENT" = "1" -o \ ++ "$STATIC_all" = "1" ; then ++ $4="static" ++ elif test "$shared_mode_override" = "dso" -o \ ++ "$SHARED_FRAMEWORK" = "1" -o \ ++ "$SHARED_COMPONENT" = "1" -o \ ++ "$DSO_all" = "1"; then ++ $4="dso" ++ else ++ $4="static" ++ fi ++ ++ AC_MSG_CHECKING([for MCA component $framework:$component compile mode]) ++ if test "$DIRECT_$2" = "$component" ; then ++ AC_MSG_RESULT([$$4 - direct]) ++ else ++ AC_MSG_RESULT([$$4]) ++ fi ++]) ++m4trace:config/ompi_mca.m4:695: -1- AC_DEFUN([MCA_PROCESS_COMPONENT], [ ++ AC_REQUIRE([AC_PROG_GREP]) ++ ++ project=$1 ++ framework=$2 ++ component=$3 ++ ++ # See if it dropped an output file for us to pick up some ++ # shell variables in. ++ infile="$srcdir/$project/mca/$framework/$component/post_configure.sh" ++ ++ # Add this subdir to the mast list of all MCA component subdirs ++ $4="$$4 $component" ++ ++ if test "$8" = "dso" ; then ++ $6="$$6 $component" ++ else ++ $7="mca/$framework/$component/libmca_${framework}_${component}.la $$7" ++ echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern ++ echo " &mca_${framework}_${component}_component, " >> $outfile.struct ++ $5="$$5 $component" ++ fi ++ ++ # Output pretty results ++ AC_MSG_CHECKING([if MCA component $framework:$component can compile]) ++ AC_MSG_RESULT([yes]) ++ ++ # If there's an output file, add the values to ++ # scope_EXTRA_flags. ++ if test -f $infile; then ++ ++ # First check for the ABORT tag ++ line="`$GREP ABORT= $infile | cut -d= -f2-`" ++ if test -n "$line" -a "$line" != "no"; then ++ AC_MSG_WARN([MCA component configure script told me to abort]) ++ AC_MSG_ERROR([cannot continue]) ++ fi ++ ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$8" = "static"; then ++ m4_foreach(flags, [LDFLAGS, LIBS], ++ [[line="`$GREP WRAPPER_EXTRA_]flags[= $infile | cut -d= -f2-`"] ++ eval "line=$line" ++ if test -n "$line"; then ++ $1[_WRAPPER_EXTRA_]flags[="$]$1[_WRAPPER_EXTRA_]flags[ $line"] ++ fi ++ ])dnl ++ fi ++ ++ dnl check for direct call header to include. This will be ++ dnl AC_SUBSTed later. ++ if test "$DIRECT_$2" = "$component" ; then ++ if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then ++ line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`" ++ str="MCA_${framework}_DIRECT_CALL_HEADER=$line" ++ eval $str ++ else ++AC_MSG_ERROR([*** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting]) ++ fi ++ fi ++ else ++ # were we supposed to have found something in the ++ # post_configure.sh, but the file didn't exist? ++ if test "$DIRECT_$2" = "$component" ; then ++AC_MSG_ERROR([*** ${framework} component ${component} was supposed to be direct-called, but ++*** does not appear to support direct calling. ++*** Aborting]) ++ fi ++ fi ++ ++ # now add the flags that were set in the environment variables ++ # framework_component_FOO (for example, the flags set by ++ # m4_configure components) ++ # ++ # Check for flags passed up from the component. If we're ++ # compiling statically, then take all flags passed up from the ++ # component. ++ if test "$8" = "static"; then ++ m4_foreach(flags, [LDFLAGS, LIBS], ++ [[str="line=\$${framework}_${component}_WRAPPER_EXTRA_]flags["] ++ eval "$str" ++ if test -n "$line" ; then ++ $1[_WRAPPER_EXTRA_]flags[="$]$1[_WRAPPER_EXTRA_]flags[ $line"] ++ fi ++ ])dnl ++ fi ++]) ++m4trace:config/ompi_mca.m4:802: -1- AC_DEFUN([MCA_PROCESS_DEAD_COMPONENT], [ ++ AC_MSG_CHECKING([if MCA component $2:$3 can compile]) ++ AC_MSG_RESULT([no]) ++ ++ # If this component was requested as the default for this ++ # type, then abort. ++ if test "$with_$2" = "$3" ; then ++ AC_MSG_WARN([MCA component "$3" failed to configure properly]) ++ AC_MSG_WARN([This component was selected as the default]) ++ AC_MSG_ERROR([Cannot continue]) ++ exit 1 ++ fi ++ ++ if test ! -z "$DIRECT_$2" ; then ++ if test "$DIRECT_$2" = "$3" ; then ++ AC_MSG_WARN([MCA component "$3" failed to configure properly]) ++ AC_MSG_WARN([This component was selected as the default (direct call)]) ++ AC_MSG_ERROR([Cannot continue]) ++ exit 1 ++ fi ++ fi ++]) ++m4trace:config/ompi_mca.m4:839: -1- AC_DEFUN([MCA_COMPONENT_BUILD_CHECK], [ ++ AC_REQUIRE([AC_PROG_GREP]) ++ ++ project=$1 ++ framework=$2 ++ component=$3 ++ component_path="$srcdir/$project/mca/$framework/$component" ++ want_component=0 ++ ++ # build if: ++ # - the component type is direct and we are that component ++ # - there is no ompi_ignore file ++ # - there is an ompi_ignore, but there is an empty ompi_unignore ++ # - there is an ompi_ignore, but username is in ompi_unignore ++ if test -d $component_path ; then ++ # decide if we want the component to be built or not. This ++ # is spread out because some of the logic is a little complex ++ # and test's syntax isn't exactly the greatest. We want to ++ # build the component by default. ++ want_component=1 ++ if test -f $component_path/.ompi_ignore ; then ++ # If there is an ompi_ignore file, don't build ++ # the component. Note that this decision can be ++ # overridden by the unignore logic below. ++ want_component=0 ++ fi ++ if test -f $component_path/.ompi_unignore ; then ++ # if there is an empty ompi_unignore, that is ++ # equivalent to having your userid in the unignore file. ++ # If userid is in the file, unignore the ignore file. ++ if test ! -s $component_path/.ompi_unignore ; then ++ want_component=1 ++ elif test ! -z "`$GREP $OMPI_CONFIGURE_USER $component_path/.ompi_unignore`" ; then ++ want_component=1 ++ fi ++ fi ++ # if this component type is direct and we are not it, we don't want ++ # to be built. Otherwise, we do want to be built. ++ if test ! -z "$DIRECT_$2" ; then ++ if test "$DIRECT_$2" = "$component" ; then ++ want_component=1 ++ else ++ want_component=0 ++ fi ++ fi ++ fi ++ ++ # if we were explicitly disabled, don't build :) ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component" ++ eval $str ++ if test "$DISABLED_COMPONENT_CHECK" = "1" ; then ++ want_component=0 ++ fi ++ ++ AS_IF([test "$want_component" = "1"], [$4], [$5]) ++]) ++m4trace:config/ompi_mca.m4:913: -1- AC_DEFUN([MCA_SETUP_DIRECT_CALL], [ ++ if test ! -z "$DIRECT_$1" ; then ++ MCA_$1_DIRECT_CALL_COMPONENT=$DIRECT_$1 ++ MCA_$1_DIRECT_CALL=1 ++ else ++ MCA_$1_DIRECT_CALL_COMPONENT= ++ MCA_$1_DIRECT_CALL=0 ++ fi ++ ++ AC_SUBST(MCA_$1_DIRECT_CALL_HEADER) ++ AC_DEFINE_UNQUOTED([MCA_$1_DIRECT_CALL], [$MCA_$1_DIRECT_CALL], ++ [Defined to 1 if $1 should use direct calls instead of components]) ++ AC_DEFINE_UNQUOTED([MCA_$1_DIRECT_CALL_COMPONENT], [$MCA_$1_DIRECT_CALL_COMPONENT], ++ [name of component to use for direct calls, if MCA_$1_DIRECT_CALL is 1]) ++ AC_DEFINE_UNQUOTED([MCA_$1_DIRECT_CALL_HEADER], ++ ["[$MCA_]$1[_DIRECT_CALL_HEADER]"], ++ [Header $1 includes to be direct called]) ++]) ++m4trace:config/ompi_mca.m4:935: -1- AC_DEFUN([OMPI_MCA_MAKE_DIR_LIST], [ ++ $1= ++ for item in $3 ; do ++ $1="$$1 mca/$2/$item" ++ done ++ AC_SUBST($1) ++]) ++m4trace:config/ompi_save_version.m4:27: -1- AC_DEFUN([OMPI_SAVE_VERSION], [ ++ OMPI_GET_VERSION([$3], [$1]) ++ ++ AC_SUBST($1[_MAJOR_VERSION]) ++ AC_SUBST($1[_MINOR_VERSION]) ++ AC_SUBST($1[_RELEASE_VERSION]) ++ AC_SUBST($1[_GREEK_VERSION]) ++ AC_SUBST($1[_WANT_SVN]) ++ AC_SUBST($1[_SVN_R]) ++ AC_SUBST($1[_VERSION]) ++ AC_SUBST($1[_RELEASE_DATE]) ++ ++ AC_MSG_CHECKING([$2 version]) ++ AC_MSG_RESULT([$]$1[_VERSION]) ++ AC_MSG_CHECKING([$2 release date]) ++ AC_MSG_RESULT([$]$1[_RELEASE_DATE]) ++ AC_MSG_CHECKING([$2 Subversion repository version]) ++ AC_MSG_RESULT([$]$1[_SVN_R]) ++ ++ AC_DEFINE_UNQUOTED($1[_MAJOR_VERSION], [$]$1[_MAJOR_VERSION], ++ [Major release number of ]$2) ++ AC_DEFINE_UNQUOTED($1[_MINOR_VERSION], [$]$1[_MINOR_VERSION], ++ [Minor release number of ]$2) ++ AC_DEFINE_UNQUOTED($1[_RELEASE_VERSION], [$]$1[_RELEASE_VERSION], ++ [Release release number of ]$2) ++ AC_DEFINE_UNQUOTED($1[_GREEK_VERSION], ["$]$1[_GREEK_VERSION"], ++ [Greek - alpha, beta, etc - release number of ]$2) ++ AC_DEFINE_UNQUOTED($1[_VERSION], ["$]$1[_RELEASE_VERSION"], ++ [Complete release number of ]$2) ++ AC_DEFINE_UNQUOTED($1[_RELEASE_DATE], ["$]$1[_RELEASE_DATE"], ++ [Release date of ]$2) ++ ++ AC_CONFIG_FILES([$4]) ++]) ++m4trace:config/ompi_setup_cc.m4:26: -1- AC_DEFUN([OMPI_SETUP_CC], [ ++ # AM_PROG_CC_C_O AC_REQUIREs AC_PROG_CC, so we have to be a little ++ # careful about ordering here, and AC_REQUIRE these things so that ++ # they get stamped out in the right order. ++ ++ AC_REQUIRE([_OMPI_START_SETUP_CC]) ++ AC_REQUIRE([_OMPI_PROG_CC]) ++ AC_REQUIRE([AM_PROG_CC_C_O]) ++ ++ OMPI_C_COMPILER_VENDOR([ompi_c_vendor]) ++ ++ # Check for standard headers, needed here because needed before ++ # the types checks. ++ AC_HEADER_STDC ++ ++ # GNU C and autotools are inconsistent about whether this is ++ # defined so let's make it true everywhere for now... However, IBM ++ # XL compilers on PPC Linux behave really badly when compiled with ++ # _GNU_SOURCE defined, so don't define it in that situation. ++ # ++ # Don't use AC_GNU_SOURCE because it requires that no compiler ++ # tests are done before setting it, and we need to at least do ++ # enough tests to figure out if we're using XL or not. ++ AS_IF([test "$ompi_cv_c_compiler_vendor" != "ibm"], ++ [AH_VERBATIM([_GNU_SOURCE], ++ [/* Enable GNU extensions on systems that have them. */ ++#ifndef _GNU_SOURCE ++# undef _GNU_SOURCE ++#endif]) ++ AC_DEFINE([_GNU_SOURCE])]) ++ ++ # Do we want code coverage ++ if test "$WANT_COVERAGE" = "1"; then ++ if test "$ompi_c_vendor" = "gnu" ; then ++ # For compilers > gcc-4.x, use --coverage for ++ # compiling and linking to circumvent trouble with ++ # libgcov. ++ CFLAGS_orig="$CFLAGS" ++ LDFLAGS_orig="$LDFLAGS" ++ ++ CFLAGS="$CFLAGS_orig --coverage" ++ LDFLAGS="$LDFLAGS_orig --coverage" ++ OMPI_COVERAGE_FLAGS= ++ ++ AC_CACHE_CHECK([if $CC supports --coverage], ++ [ompi_cv_cc_coverage], ++ [AC_TRY_COMPILE([], [], ++ [ompi_cv_cc_coverage="yes"], ++ [ompi_cv_cc_coverage="no"])]) ++ ++ if test "$ompi_cv_cc_coverage" = "yes" ; then ++ OMPI_COVERAGE_FLAGS="--coverage" ++ CLEANFILES="*.gcno ${CLEANFILES}" ++ CONFIG_CLEAN_FILES="*.gcda *.gcov ${CONFIG_CLEAN_FILES}" ++ else ++ OMPI_COVERAGE_FLAGS="-ftest-coverage -fprofile-arcs" ++ CLEANFILES="*.bb *.bbg ${CLEANFILES}" ++ CONFIG_CLEAN_FILES="*.da *.*.gcov ${CONFIG_CLEAN_FILES}" ++ fi ++ CFLAGS="$CFLAGS_orig $OMPI_COVERAGE_FLAGS" ++ LDFLAGS="$LDFLAGS_orig $OMPI_COVERAGE_FLAGS" ++ WRAPPER_EXTRA_CFLAGS="${WRAPPER_EXTRA_CFLAGS} $OMPI_COVERAGE_FLAGS" ++ WRAPPER_EXTRA_LDFLAGS="${WRAPPER_EXTRA_LDFLAGS} $OMPI_COVERAGE_FLAGS" ++ ++ OMPI_UNIQ(CFLAGS) ++ OMPI_UNIQ(LDFLAGS) ++ OMPI_UNIQ(WRAPPER_EXTRA_CFLAGS) ++ OMPI_UNIQ(WRAPPER_EXTRA_LDFLAGS) ++ AC_MSG_WARN([$OMPI_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)]) ++ ++ WANT_DEBUG=1 ++ else ++ AC_MSG_WARN([Code coverage functionality is currently available only with GCC]) ++ AC_MSG_ERROR([Configure: Cannot continue]) ++ fi ++ fi ++ ++ # Do we want debugging? ++ if test "$WANT_DEBUG" = "1" -a "$enable_debug_symbols" != "no" ; then ++ if test "$ompi_c_vendor" = "gnu"; then ++ CFLAGS="$CFLAGS -g" # keep the -g3 for when it will become a standard option. ++ else ++ CFLAGS="$CFLAGS -g" ++ fi ++ ++ OMPI_UNIQ(CFLAGS) ++ AC_MSG_WARN([-g has been added to CFLAGS (--enable-debug)]) ++ fi ++ ++ # These flags are generally gcc-specific; even the ++ # gcc-impersonating compilers won't accept them. ++ OMPI_CFLAGS_BEFORE_PICKY="$CFLAGS" ++ if test "$WANT_PICKY_COMPILER" = 1 -a "$ompi_c_vendor" = "gnu" ; then ++ add="-Wall -Wundef -Wno-long-long -Wsign-compare" ++ add="$add -Wmissing-prototypes -Wstrict-prototypes" ++ add="$add -Wcomment -pedantic" ++ ++ # see if -Wno-long-double works... ++ CFLAGS_orig="$CFLAGS" ++ # CFLAGS="$CFLAGS -Wno-long-double" ++ # Starting with GCC-4.4, the compiler complains about not ++ # knowing -Wno-long-double, only if -Wstrict-prototypes is set, too. ++ # ++ # Actually, this is not real fix, as GCC will pass on any -Wno- flag, ++ # have fun with the warning: -Wno-britney ++ CFLAGS="$CFLAGS $add -Wno-long-double -Wstrict-prototypes" ++ ++ AC_CACHE_CHECK([if $CC supports -Wno-long-double], ++ [ompi_cv_cc_wno_long_double], ++ [AC_TRY_COMPILE([], [], ++ [ompi_cv_cc_wno_long_double="yes"], ++ [ompi_cv_cc_wno_long_double="no"])]) ++ ++ CFLAGS="$CFLAGS_orig" ++ if test "$ompi_cv_cc_wno_long_double" = "yes" ; then ++ add="$add -Wno-long-double" ++ fi ++ ++ add="$add -Werror-implicit-function-declaration " ++ ++ CFLAGS="$CFLAGS $add" ++ OMPI_UNIQ(CFLAGS) ++ AC_MSG_WARN([$add has been added to CFLAGS (--enable-picky)]) ++ unset add ++ fi ++ ++ # See if this version of gcc allows -finline-functions and/or ++ # -fno-strict-aliasing. Even check the gcc-impersonating compilers. ++ if test "$GCC" = "yes"; then ++ CFLAGS_orig="$CFLAGS" ++ ++ CFLAGS="$CFLAGS_orig -finline-functions" ++ add= ++ AC_CACHE_CHECK([if $CC supports -finline-functions], ++ [ompi_cv_cc_finline_functions], ++ [AC_TRY_COMPILE([], [], ++ [ompi_cv_cc_finline_functions="yes"], ++ [ompi_cv_cc_finline_functions="no"])]) ++ if test "$ompi_cv_cc_finline_functions" = "yes" ; then ++ add=" -finline-functions" ++ fi ++ CFLAGS="$CFLAGS_orig$add" ++ ++ CFLAGS_orig="$CFLAGS" ++ CFLAGS="$CFLAGS_orig -fno-strict-aliasing" ++ add= ++ AC_CACHE_CHECK([if $CC supports -fno-strict-aliasing], ++ [ompi_cv_cc_fno_strict_aliasing], ++ [AC_TRY_COMPILE([], [], ++ [ompi_cv_cc_fno_strict_aliasing="yes"], ++ [ompi_cv_cc_fno_strict_aliasing="no"])]) ++ if test "$ompi_cv_cc_fno_strict_aliasing" = "yes" ; then ++ add=" -fno-strict-aliasing" ++ fi ++ CFLAGS="$CFLAGS_orig$add" ++ ++ OMPI_UNIQ(CFLAGS) ++ AC_MSG_WARN([$add has been added to CFLAGS]) ++ unset add ++ fi ++ ++ # Try to enable restrict keyword ++ RESTRICT_CFLAGS= ++ case "$ompi_c_vendor" in ++ intel) ++ RESTRICT_CFLAGS="-restrict" ++ ;; ++ sgi) ++ RESTRICT_CFLAGS="-LANG:restrict=ON" ++ ;; ++ esac ++ if test ! -z "$RESTRICT_CFLAGS" ; then ++ CFLAGS_orig="$CFLAGS" ++ CFLAGS="$CFLAGS_orig $RESTRICT_CFLAGS" ++ add= ++ AC_CACHE_CHECK([if $CC supports $RESTRICT_CFLAGS], ++ [ompi_cv_cc_restrict_cflags], ++ [AC_TRY_COMPILE([], [], ++ [ompi_cv_cc_restrict_cflags="yes"], ++ [ompi_cv_cc_restrict_cflags="no"])]) ++ if test "$ompi_cv_cc_restrict_cflags" = "yes" ; then ++ add=" $RESTRICT_CFLAGS" ++ fi ++ ++ CFLAGS="${CFLAGS_orig}${add}" ++ OMPI_UNIQ([CFLAGS]) ++ if test "$add" != "" ; then ++ AC_MSG_WARN([$add has been added to CFLAGS]) ++ fi ++ unset add ++ fi ++ ++ # see if the C compiler supports __builtin_expect ++ AC_CACHE_CHECK([if $CC supports __builtin_expect], ++ [ompi_cv_cc_supports___builtin_expect], ++ [AC_TRY_LINK([], ++ [void *ptr = (void*) 0; ++ if (__builtin_expect (ptr != (void*) 0, 1)) return 0;], ++ [ompi_cv_cc_supports___builtin_expect="yes"], ++ [ompi_cv_cc_supports___builtin_expect="no"])]) ++ if test "$ompi_cv_cc_supports___builtin_expect" = "yes" ; then ++ have_builtin_expect=1 ++ else ++ have_builtin_expect=0 ++ fi ++ AC_DEFINE_UNQUOTED([OMPI_C_HAVE_BUILTIN_EXPECT], [$have_builtin_expect], ++ [Whether C compiler supports __builtin_expect]) ++ ++ # see if the C compiler supports __builtin_prefetch ++ AC_CACHE_CHECK([if $CC supports __builtin_prefetch], ++ [ompi_cv_cc_supports___builtin_prefetch], ++ [AC_TRY_LINK([], ++ [int ptr; ++ __builtin_prefetch(&ptr,0,0);], ++ [ompi_cv_cc_supports___builtin_prefetch="yes"], ++ [ompi_cv_cc_supports___builtin_prefetch="no"])]) ++ if test "$ompi_cv_cc_supports___builtin_prefetch" = "yes" ; then ++ have_builtin_prefetch=1 ++ else ++ have_builtin_prefetch=0 ++ fi ++ AC_DEFINE_UNQUOTED([OMPI_C_HAVE_BUILTIN_PREFETCH], [$have_builtin_prefetch], ++ [Whether C compiler supports __builtin_prefetch]) ++ ++ # Preload the optflags for the case where the user didn't specify ++ # any. If we're using GNU compilers, use -O3 (since it GNU ++ # doesn't require all compilation units to be compiled with the ++ # same level of optimization -- selecting a high level of ++ # optimization is not prohibitive). If we're using anything else, ++ # be conservative and just use -O. ++ # ++ # Note: gcc-impersonating compilers accept -O3 ++ if test "$WANT_DEBUG" = "1"; then ++ OPTFLAGS= ++ else ++ if test "$GCC" = yes; then ++ OPTFLAGS="-O3" ++ else ++ OPTFLAGS="-O" ++ fi ++ fi ++ ++ OMPI_CHECK_OPTFLAGS("$OMPI_CFLAGS_BEFORE_PICKY") ++ OMPI_CFLAGS_BEFORE_PICKY="$co_result" ++ ++ AC_MSG_CHECKING([for C optimization flags]) ++ OMPI_CHECK_OPTFLAGS(["$CFLAGS"]) ++ AC_MSG_RESULT([$co_result]) ++ CFLAGS="$co_result" ++ ++ CFLAGS_WITHOUT_OPTFLAGS="" ++ for co_word in $CFLAGS ; do ++ co_found=0 ++ # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs ++ # for an explanation of @<:@ and @:>@ -- they m4 expand to [ and ] ++ case $co_word in ++ +K@<:@0-5@:>@) co_found=1 ;; ++ -O) co_found=1 ;; ++ -O@<:@0-9@:>@) co_found=1 ;; ++ -xO) co_found=1 ;; ++ -xO@<:@0-9@:>@) co_found=1 ;; ++ -fast) co_found=1 ;; ++ ++ # The below Sun Studio flags require or ++ # trigger -xO optimization ++ -xvector*) co_found=1 ;; ++ -xdepend=yes) co_found=1 ;; ++ ++ esac ++ if test "$co_found" = "0" ; then ++ CFLAGS_WITHOUT_OPTFLAGS="$CFLAGS_WITHOUT_OPTFLAGS $co_word" ++ fi ++ done ++ ++ unset co_found co_word ++ ++ AC_SUBST([CFLAGS_WITHOUT_OPTFLAGS]) ++]) ++m4trace:config/ompi_setup_cc.m4:306: -1- AC_DEFUN([_OMPI_START_SETUP_CC], [ ++ ompi_show_subtitle "C compiler and preprocessor" ++ ++ # $%@#!@#% AIX!! This has to be called before anything invokes the C ++ # compiler. ++ dnl AC_AIX ++]) ++m4trace:config/ompi_setup_cc.m4:315: -1- AC_DEFUN([_OMPI_PROG_CC], [ ++ # ++ # Check for the compiler ++ # ++ ompi_cflags_save="$CFLAGS" ++ AC_PROG_CC ++ BASECC="`basename $CC`" ++ CFLAGS="$ompi_cflags_save" ++ AC_DEFINE_UNQUOTED(OMPI_CC, "$CC", [OMPI underlying C compiler]) ++ set dummy $CC ++ ompi_cc_argv0=[$]2 ++ OMPI_WHICH([$ompi_cc_argv0], [OMPI_CC_ABSOLUTE]) ++ AC_SUBST(OMPI_CC_ABSOLUTE) ++]) ++m4trace:config/ompi_setup_cxx.m4:28: -1- AC_DEFUN([OMPI_SETUP_CXX], [ ++ ++ AC_REQUIRE([_OMPI_START_SETUP_CXX]) ++ AC_REQUIRE([_OMPI_PROG_CXX]) ++ ++ # Do we want code coverage ++ if test "$WANT_COVERAGE" = "1"; then ++ if test "$ompi_cxx_vendor" = "gnu" ; then ++ AC_MSG_WARN([$OMPI_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)]) ++ WANT_DEBUG=1 ++ CXXFLAGS="${CXXFLAGS} $OMPI_COVERAGE_FLAGS" ++ WRAPPER_EXTRA_CXXFLAGS="${WRAPPER_EXTRA_CXXFLAGS} $OMPI_COVERAGE_FLAGS" ++ else ++ AC_MSG_WARN([Code coverage functionality is currently available only with GCC suite]) ++ AC_MSG_ERROR([Configure: cannot continue]) ++ fi ++ fi ++ ++ # Do we want debugging? ++ if test "$WANT_DEBUG" = "1" -a "$enable_debug_symbols" != "no" ; then ++ CXXFLAGS="$CXXFLAGS -g" ++ OMPI_UNIQ(CXXFLAGS) ++ AC_MSG_WARN([-g has been added to CXXFLAGS (--enable-debug)]) ++ fi ++ ++ # These flags are generally g++-specific; even the g++-impersonating ++ # compilers won't accept them. ++ OMPI_CXXFLAGS_BEFORE_PICKY="$CXXFLAGS" ++ if test "$WANT_PICKY_COMPILER" = 1 -a "$ompi_cxx_vendor" = "gnu"; then ++ add="-Wall -Wundef -Wno-long-long" ++ ++ # see if -Wno-long-double works... ++ AC_LANG_PUSH(C++) ++ CXXFLAGS_orig="$CXXFLAGS" ++ CXXFLAGS="$CXXFLAGS $add -Wno-long-double -fstrict-prototype" ++ AC_CACHE_CHECK([if $CXX supports -Wno-long-double], ++ [ompi_cv_cxx_wno_long_double], ++ [AC_TRY_COMPILE([], [], ++ [ompi_cv_cxx_wno_long_double="yes"], ++ [ompi_cv_cxx_wno_long_double="no"])]) ++ CXXFLAGS="$CXXFLAGS_orig" ++ AC_LANG_POP(C++) ++ if test "$ompi_cv_cxx_wno_long_double" = "yes" ; then ++ add="$add -Wno-long-double" ++ fi ++ ++ CXXFLAGS="$CXXFLAGS $add" ++ OMPI_UNIQ(CXXFLAGS) ++ if test "$add" != "" ; then ++ AC_MSG_WARN([$add has been added to CXXFLAGS (--enable-picky)]) ++ fi ++ unset add ++ fi ++ ++ # See if this version of g++ allows -finline-functions ++ if test "$GXX" = "yes"; then ++ CXXFLAGS_orig="$CXXFLAGS" ++ CXXFLAGS="$CXXFLAGS -finline-functions" ++ add= ++ AC_CACHE_CHECK([if $CXX supports -finline-functions], ++ [ompi_cv_cxx_finline_functions], ++ [AC_TRY_COMPILE([], [], ++ [ompi_cv_cxx_finline_functions="yes"], ++ [ompi_cv_cxx_finline_functions="no"])]) ++ if test "$ompi_cv_cxx_finline_functions" = "yes" ; then ++ add=" -finline-functions" ++ fi ++ CXXFLAGS="$CXXFLAGS_orig$add" ++ OMPI_UNIQ(CXXFLAGS) ++ if test "$add" != "" ; then ++ AC_MSG_WARN([$add has been added to CXXFLAGS]) ++ fi ++ unset add ++ fi ++ ++ # Check for special things due to C++ exceptions ++ ENABLE_CXX_EXCEPTIONS=no ++ HAVE_CXX_EXCEPTIONS=0 ++ AC_ARG_ENABLE([cxx-exceptions], ++ [AC_HELP_STRING([--enable-cxx-exceptions], ++ [enable support for C++ exceptions (default: disabled)])], ++ [ENABLE_CXX_EXCEPTIONS="$enableval"]) ++ ++ AC_MSG_CHECKING([if want C++ exception handling]) ++ AC_MSG_RESULT([$ENABLE_CXX_EXCEPTIONS]) ++ if test "$ENABLE_CXX_EXCEPTIONS" = "yes"; then ++ # config/cxx_have_exceptions.m4 ++ OMPI_CXX_HAVE_EXCEPTIONS ++ # config/cxx_find_exception_flags.m4 ++ OMPI_CXX_FIND_EXCEPTION_FLAGS ++ if test "$OMPI_CXX_EXCEPTIONS" = "1"; then ++ HAVE_CXX_EXCEPTIONS=1 ++ ++ # Test to see if the C compiler likes these flags ++ AC_MSG_CHECKING([to see if C compiler likes the exception flags]) ++ CFLAGS="$CFLAGS $OMPI_CXX_EXCEPTIONS_CXXFLAGS" ++ AC_LANG_SAVE ++ AC_LANG_C ++ AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[]], [[int i = 0;]]), ++ [AC_MSG_RESULT([yes])], ++ [AC_MSG_RESULT([no]) ++ AC_MSG_WARN([C++ exception flags are different between the C and C++ compilers; this configure script cannot currently handle this scenario. Either disable C++ exception support or send mail to the Open MPI users list.]) ++ AC_MSG_ERROR([*** Cannot continue])]) ++ AC_LANG_RESTORE ++ ++ # We can't test the F77 and F90 compilers now because we ++ # haven't found/set the up yet. So just save the flags ++ # and test them later (in ompi_setup_f77.m4 and ++ # ompi_setup_f90.m4). ++ ++ CXXFLAGS="$CXXFLAGS $OMPI_CXX_EXCEPTIONS_CXXFLAGS" ++ LDFLAGS="$LDFLAGS $OMPI_CXX_EXCEPTIONS_LDFLAGS" ++ ++ WRAPPER_EXTRA_CFLAGS="$OMPI_CXX_EXCEPTIONS_CXXFLAGS ${WRAPPER_EXTRA_CFLAGS}" ++ WRAPPER_EXTRA_FFLAGS="$OMPI_CXX_EXCEPTIONS_CXXFLAGS ${WRAPPER_EXTRA_FFLAGS}" ++ WRAPPER_EXTRA_FCFLAGS="$OMPI_CXX_EXCEPTIONS_CXXFLAGS ${WRAPPER_EXTRA_FCFLAGS}" ++ WRAPPER_EXTRA_CXXFLAGS="$OMPI_CXX_EXCEPTIONS_CXXFLAGS ${WRAPPER_EXTRA_CXXFLAGS}" ++ fi ++ fi ++ AC_DEFINE_UNQUOTED(OMPI_HAVE_CXX_EXCEPTION_SUPPORT, $HAVE_CXX_EXCEPTIONS, ++ [Whether or not we have compiled with C++ exceptions support]) ++ ++ # Make sure we can link with the C compiler ++ if[ test "$ompi_cv_cxx_compiler_vendor" != "microsoft" ]; then ++ OMPI_LANG_LINK_WITH_C([C++], [], ++ [cat <&2 ++********************************************************************** ++* It appears that your C++ compiler is unable to link against object ++* files created by your C compiler. This generally indicates either ++* a conflict between the options specified in CFLAGS and CXXFLAGS ++* or a problem with the local compiler installation. More ++* information (including exactly what command was given to the ++* compilers and what error resulted when the commands were executed) is ++* available in the config.log file in this directory. ++********************************************************************** ++EOF ++ AC_MSG_ERROR([C and C++ compilers are not link compatible. Can not continue.])]) ++ fi ++ ++ # Find some more characteristics of the C++ compiler ++ ++ # config/cxx_find_template_repository.m4 ++ OMPI_CXX_FIND_TEMPLATE_REPOSITORY ++ # config/cxx_find_template_parameters.m4 ++ OMPI_CXX_FIND_TEMPLATE_PARAMETERS ++ ++ # see if the C++ compiler supports __builtin_expect ++ AC_LANG_PUSH(C++) ++ AC_CACHE_CHECK([if $CXX supports __builtin_expect], ++ [ompi_cv_cxx_supports___builtin_expect], ++ [AC_TRY_LINK([], ++ [void *ptr = (void*) 0; ++ if (__builtin_expect (ptr != (void*) 0, 1)) return 0;], ++ [ompi_cv_cxx_supports___builtin_expect="yes"], ++ [ompi_cv_cxx_supports___builtin_expect="no"])]) ++ if test "$ompi_cv_cxx_supports___builtin_expect" = "yes" ; then ++ have_builtin_expect=1 ++ else ++ have_builtin_expect=0 ++ fi ++ AC_DEFINE_UNQUOTED([OMPI_CXX_HAVE_BUILTIN_EXPECT], [$have_builtin_expect], ++ [Whether C++ compiler supports __builtin_expect]) ++ AC_LANG_POP(C++) ++ ++ # see if the C compiler supports __builtin_prefetch ++ AC_LANG_PUSH(C++) ++ AC_CACHE_CHECK([if $CXX supports __builtin_prefetch], ++ [ompi_cv_cxx_supports___builtin_prefetch], ++ [AC_TRY_LINK([], ++ [int ptr; ++ __builtin_prefetch(&ptr,0,0);], ++ [ompi_cv_cxx_supports___builtin_prefetch="yes"], ++ [ompi_cv_cxx_supports___builtin_prefetch="no"])]) ++ if test "$ompi_cv_cxx_supports___builtin_prefetch" = "yes" ; then ++ have_builtin_prefetch=1 ++ else ++ have_builtin_prefetch=0 ++ fi ++ AC_DEFINE_UNQUOTED([OMPI_CXX_HAVE_BUILTIN_PREFETCH], [$have_builtin_prefetch], ++ [Whether C++ compiler supports __builtin_prefetch]) ++ AC_LANG_POP(C++) ++ ++ # If we are on HP-UX, ensure that we're using aCC ++ case "$host" in ++ *hpux*) ++ if test "$BASECXX" = "CC"; then ++ AC_MSG_WARN([*** You will probably have problems compiling the MPI 2]) ++ AC_MSG_WARN([*** C++ bindings with the HP-UX CC compiler. You should]) ++ AC_MSG_WARN([*** probably be using the aCC compiler. Re-run configure]) ++ AC_MSG_WARN([*** with the environment variable "CXX=aCC".]) ++ fi ++ ;; ++ esac ++ ++ # see if the compiler supports const_cast of 2-dimensional arrays ++ AC_LANG_PUSH(C++) ++ AC_CACHE_CHECK([if $CXX supports const_cast<> properly], ++ [ompi_cv_cxx_supports_2d_const_cast], ++ [AC_TRY_COMPILE([int non_const_func(int ranges[][3]); ++int cast_test(const int ranges[][3]) { ++ return non_const_func(const_cast(ranges)); ++}], ++ [], ++ [ompi_cv_cxx_supports_2d_const_cast="yes"], ++ [ompi_cv_cxx_supports_2d_const_cast="no"])]) ++ if test "$ompi_cv_cxx_supports_2d_const_cast" = "yes" ; then ++ use_2d_const_cast=1 ++ else ++ use_2d_const_cast=0 ++ fi ++ AC_DEFINE_UNQUOTED([OMPI_CXX_SUPPORTS_2D_CONST_CAST], ++ [$use_2d_const_cast], ++ [Whether a const_cast on a 2-d array will work with the C++ compiler]) ++ unset use_2d_const_cast ++ AC_LANG_POP(C++) ++ ++ # Note: gcc-imperonating compilers accept -O3 ++ if test "$WANT_DEBUG" = "1"; then ++ OPTFLAGS= ++ else ++ if test "$GXX" = yes; then ++ OPTFLAGS="-O3" ++ else ++ OPTFLAGS="-O" ++ fi ++ fi ++ ++ # config/ompi_check_optflags.m4 ++ OMPI_CHECK_OPTFLAGS(["$CXXFLAGS"]) ++ AC_MSG_CHECKING([for C++ optimization flags]) ++ AC_MSG_RESULT([$co_result]) ++ CXXFLAGS="$co_result" ++]) ++m4trace:config/ompi_setup_cxx.m4:263: -1- AC_DEFUN([_OMPI_START_SETUP_CXX], [ ++ ompi_show_subtitle "C++ compiler and preprocessor" ++]) ++m4trace:config/ompi_setup_cxx.m4:268: -1- AC_DEFUN([_OMPI_PROG_CXX], [ ++ ompi_cxxflags_save="$CXXFLAGS" ++ AC_PROG_CXX ++ AC_PROG_CXXCPP ++ BASECXX="`basename $CXX`" ++ CXXFLAGS="$ompi_cxxflags_save" ++ AC_DEFINE_UNQUOTED(OMPI_CXX, "$CXX", [OMPI underlying C++ compiler]) ++ set dummy $CXX ++ ompi_cxx_argv0=[$]2 ++ OMPI_WHICH([$ompi_cxx_argv0], [OMPI_CXX_ABSOLUTE]) ++ AC_SUBST(OMPI_CXX_ABSOLUTE) ++ ++ OMPI_CXX_COMPILER_VENDOR([ompi_cxx_vendor]) ++ ++ # Make sure that the C++ compiler both works and is actually a C++ ++ # compiler (if not cross-compiling). Don't just use the AC macro ++ # so that we can have a pretty message. Do something here that ++ # should force the linking of C++-specific things (e.g., STL ++ # strings) so that we can force a hard check of compiling, ++ # linking, and running a C++ application Note that some C ++ # compilers, such as at least some versions of the GNU and Intel ++ # compilers, will detect that the file extension is ".cc" and ++ # therefore switch into a pseudo-C++ personality which works for ++ # *compiling*, but does not work for *linking*. So in this test, ++ # we want to cover the entire spectrum (compiling, linking, ++ # running). ++ ++ if[ test "$ompi_cv_cxx_compiler_vendor" != "microsoft" ]; then ++ OMPI_CHECK_COMPILER_WORKS([C++], [#include ], ++ [std::string foo = "Hello, world"], [], ++ [AC_MSG_ERROR([Could not run a simple C++ program. Aborting.])]) ++ fi ++]) ++m4trace:config/ompi_setup_f77.m4:35: -1- AC_DEFUN([OMPI_SETUP_F77], [ ++ ++# Modularize this setup so that sub-configure.in scripts can use this ++# same setup code. ++ ++ompi_show_subtitle "Fortran 77 compiler" ++ ++# ++# Check for the compiler ++# ++# Note that we don't actually *use* the fortran compiler to build ++# anything in OMPI; it's only used here in configure to find out ++# symbol conventions, type sizes, etc. We also pass it down to ++# the wrapper compiler mpif77. ++# ++# Always run this test, even if fortran isn't wanted so that F77 has ++# value for the Fint tests ++# ++ompi_fflags_save="$FFLAGS" ++AC_PROG_F77([gfortran g77 f77 xlf frt ifort pgf77 fort77 fl32 af77]) ++FFLAGS="$ompi_fflags_save" ++if test -z "$F77"; then ++ AC_MSG_WARN([*** Fortran 77 bindings disabled (could not find compiler)]) ++ OMPI_WANT_F77_BINDINGS=0 ++ OMPI_F77="none" ++ BASEF77="none" ++ OMPI_F77_ABSOLUTE="none" ++else ++ OMPI_F77="$F77" ++ set dummy $OMPI_F77 ++ OMPI_F77_ARGV0=[$]2 ++ BASEF77="`basename $OMPI_F77_ARGV0`" ++ OMPI_WHICH([$OMPI_F77_ARGV0], [OMPI_F77_ABSOLUTE]) ++ ++ if test "$OMPI_WANT_F77_BINDINGS" = "0" ; then ++ AC_MSG_WARN([*** Fortran 77 bindings disabled by user]) ++ OMPI_WANT_F77_BINDINGS=0 ++ else ++ OMPI_WANT_F77_BINDINGS=1 ++ fi ++fi ++ ++# make sure the compiler actually works, if not cross-compiling ++# Don't just use the AC macro so that we can have a pretty ++# message. ++AS_IF([test $OMPI_WANT_F77_BINDINGS -eq 1], ++ [OMPI_CHECK_COMPILER_WORKS([Fortran 77], [], [], [], ++ [AC_MSG_ERROR([Could not run a simple Fortran 77 program. Aborting.])])]) ++ ++# now make sure we know our linking convention... ++OMPI_F77_FIND_EXT_SYMBOL_CONVENTION ++ ++# Make sure we can link with C code... ++AS_IF([test $OMPI_WANT_F77_BINDINGS -eq 1], ++ [OMPI_LANG_LINK_WITH_C([Fortran 77], [], ++ [cat < conftestf77.f < conftestf90.f < ++#ifdef TAILQ_FOREACH ++ yes ++#endif ++], [AC_MSG_RESULT(yes) ++ AC_DEFINE(HAVE_TAILQFOREACH, 1, ++ [Define if TAILQ_FOREACH is defined in ])], ++ AC_MSG_RESULT(no) ++ ) ++fi ++ ++if test "x$ac_cv_header_sys_time_h" = "xyes"; then ++ AC_MSG_CHECKING(for timeradd in sys/time.h) ++ AC_EGREP_CPP(yes, ++[ ++#include ++#ifdef timeradd ++ yes ++#endif ++], [ AC_DEFINE(HAVE_TIMERADD, 1, ++ [Define if timeradd is defined in ]) ++ AC_MSG_RESULT(yes)] ,AC_MSG_RESULT(no) ++) ++fi ++ ++dnl Checks for typedefs, structures, and compiler characteristics. ++AC_HEADER_TIME ++ ++dnl Checks for library functions. ++AC_CHECK_FUNCS(gettimeofday vasprintf fcntl) ++ ++AC_MSG_CHECKING(for F_SETFD in fcntl.h) ++AC_EGREP_CPP(yes, ++[ ++#define _GNU_SOURCE ++#include ++#ifdef F_SETFD ++yes ++#endif ++], [ AC_DEFINE(HAVE_SETFD, 1, ++ [Define if F_SETFD is defined in ]) ++ AC_MSG_RESULT(yes) ], AC_MSG_RESULT(no)) ++ ++needsignal=no ++haveselect=no ++AC_CHECK_FUNCS(select, [haveselect=yes], ) ++if test "x$haveselect" = "xyes" ; then ++ # OMPI: Don't use AC_LIBOBJ ++ sources="select.c $sources" ++ needsignal=yes ++fi ++ ++havepoll=no ++havertsig=no ++AC_CHECK_FUNCS(poll, [havepoll=yes], ) ++case "$host" in ++ *apple-darwin*) ++ haveworkingpoll=0 ++ ;; ++ *) ++ if test "$havepoll" = "yes" ; then ++ haveworkingpoll=1 ++ else ++ haveworkingpoll=0 ++ fi ++ ;; ++esac ++AC_DEFINE_UNQUOTED([HAVE_WORKING_POLL], [$haveworkingpoll], ++ [Whether poll works for file descriptors and devices]) ++if test "x$havepoll" = "xyes" -a "$haveworkingpoll" = "1" ; then ++ # OMPI: Don't use AC_LIBOBJ ++ sources="poll.c $sources" ++ needsignal=yes ++ ++ if test "x$usertsig" = "xyes" ; then ++ AC_CHECK_FUNCS(sigtimedwait, [havertsig=yes], ) ++ fi ++fi ++if test "x$havertsig" = "xyes" ; then ++ AC_MSG_CHECKING(for F_SETSIG in fcntl.h) ++ AC_EGREP_CPP(yes, ++[ ++#define _GNU_SOURCE ++#include ++#ifdef F_SETSIG ++yes ++#endif ++], [ AC_MSG_RESULT(yes) ], [ AC_MSG_RESULT(no); havertsig=no]) ++fi ++if test "x$havertsig" = "xyes" ; then ++ AC_DEFINE(HAVE_RTSIG, 1, [Define if your system supports POSIX realtime signals]) ++ # OMPI: Don't use AC_LIBOBJ ++ sources="rtsig.c $sources" ++ AC_MSG_CHECKING(for working rtsig on pipes) ++ AC_TRY_RUN( ++[ ++#define _GNU_SOURCE ++#include ++#include ++#include ++#include ++ ++int sigio() ++{ ++ exit(0); ++} ++ ++int main() ++{ ++ int fd[2]; ++ ++ pipe(fd); ++ signal(SIGIO, sigio); ++ fcntl(fd[0], F_SETOWN, getpid()); ++ fcntl(fd[0], F_SETSIG, SIGIO); ++ fcntl(fd[0], F_SETFL, fcntl(fd[0], F_GETFL) | O_ASYNC); ++ write(fd[1], "", 1); ++ return 1; ++} ++], [ AC_MSG_RESULT(yes) ++ AC_DEFINE(HAVE_WORKING_RTSIG, 1, [Define if realtime signals work on pipes])], ++ AC_MSG_RESULT(no)) ++fi ++ ++haveepoll=no ++AC_CHECK_FUNCS(epoll_ctl, [haveepoll=yes], ) ++if test "x$haveepoll" = "xyes" -a "$cross_compiling" != "yes" ; then ++ ++ # OMPI: Unfortunately, this test is not sufficient on some ++ # Linux distros (e.g., RH 9), where the function is defined ++ # and you can link against it, but it's hardwired to return ++ # ENOSYS -- and /usr/include/gnu/stubs.h fails to define ++ # __stub_epoll_ctl (the usual mechanism in glibc to indicate ++ # that a function is a stub and isn't really implemented). ++ # Hence, the test succeeds because it thinks it can use ++ # epoll_ctl (and friends). So we have to do a better test ++ # after we determine that epoll_ctl is linkable. Grumble. ++ # If we are cross compiling, just trust AC_CHECK_FUNCS ++ ++ # OMPI: Unfortunately, this test is not sufficient for another ++ # reason. The event_poll struct is defined in the sys/epoll.h ++ # file. The structure is the interface between the application ++ # and the kernel and is therefore compiled into both. The ++ # event_poll struct is defined with a compiler directive ++ # __attribute__ ((__packed__). It turns out that there is ++ # at least one compiler (Sun Studio) that does not currently ++ # recognize this directive. This means that the event_poll ++ # struct may be packed in the kernel, but not in the OMPI ++ # library. Badness ensues. Therefore, check to see that ++ # this struct gets correctly passed between OMPI and the ++ # kernel. ++ ++ haveepoll=no ++ AC_MSG_CHECKING([for working epoll library interface]) ++ AC_RUN_IFELSE(AC_LANG_PROGRAM([[ ++AC_INCLUDES_DEFAULT ++#include ]], ++[[ ++ struct epoll_event epevin; ++ struct epoll_event epevout; ++ int res; ++ int epfd; ++ int fildes[[2]]; ++ ++ if ((epfd = epoll_create(1)) == -1) ++ exit(1); ++ if (pipe(&fildes[[0]]) < 0) ++ exit(1); ++ memset(&epevin, 0, sizeof(epevin)); ++ memset(&epevout, 0, sizeof(epevout)); ++ memset(&epevin.data.ptr, 5, sizeof(epevin.data.ptr)); ++ epevin.events = EPOLLIN | EPOLLOUT; ++ ++ if (epoll_ctl(epfd, EPOLL_CTL_ADD, fildes[[0]], &epevin) == -1) ++ exit(1); ++ ++ res = epoll_wait(epfd, &epevout, 1, 0); ++ if (res != 1) { ++ exit(1); ++ } else { ++ if (epevout.data.ptr != epevin.data.ptr) { ++ exit(1); ++ } ++ } ++ /* SUCCESS */ ++]]), ++ [haveepoll=yes ++ AC_DEFINE(HAVE_EPOLL, 1, ++ [Define if your system supports the epoll interface]) ++ # OMPI: Don't use AC_LIBOBJ ++ sources="epoll.c $sources" ++ needsignal=yes]) ++ AC_MSG_RESULT([$haveepoll]) ++fi ++ ++haveepollsyscall=no ++if test "x$ac_cv_header_sys_epoll_h" = "xyes" -a "x$haveepoll" = "xno" -a "$cross_compiling" != "yes"; then ++ # OMPI: See comment above. This test uses the epoll system call ++ # interface instead of the library interface. ++ AC_MSG_CHECKING(for working epoll system call) ++ AC_RUN_IFELSE(AC_LANG_PROGRAM([[ ++AC_INCLUDES_DEFAULT ++#include ++#include ]], ++[[ ++ struct epoll_event epevin; ++ struct epoll_event epevout; ++ int res; ++ int epfd; ++ int fildes[[2]]; ++ ++ if ((epfd = syscall(__NR_epoll_create, 1)) == -1) ++ exit(1); ++ if (pipe(&fildes[[0]]) < 0) ++ exit(1); ++ memset(&epevin, 0, sizeof(epevin)); ++ memset(&epevout, 0, sizeof(epevout)); ++ memset(&epevin.data.ptr, 5, sizeof(epevin.data.ptr)); ++ epevin.events = EPOLLIN | EPOLLOUT; ++ ++ if (syscall(__NR_epoll_ctl, epfd, ++ EPOLL_CTL_ADD, fildes[[0]], &epevin) == -1) ++ exit(1); ++ ++ res = syscall(__NR_epoll_wait, epfd, &epevout, 1, 0); ++ if (res != 1) { ++ exit(1); ++ } else { ++ if (epevout.data.ptr != epevin.data.ptr) { ++ exit(1); ++ } ++ } ++ /* SUCCESS */ ++]]), ++ [haveepollsyscall=yes ++ AC_DEFINE(HAVE_EPOLL, 1, ++ [Define if your system supports the epoll interface]) ++ # OMPI: don't use AC_LIBOBJ ++ sources="epoll_sub.c epoll.c $sources" ++ needsignal=yes]) ++ AC_MSG_RESULT([$haveepollsyscall]) ++fi ++ ++havedevpoll=no ++if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then ++ AC_DEFINE(HAVE_DEVPOLL, 1, ++ [Define if /dev/poll is available]) ++ # OMPI: Don't use AC_LIBOBJ(devpoll) ++ sources="devpoll.c $sources" ++ needsignal=yes ++fi ++ ++havekqueue=no ++if test "x$ac_cv_header_sys_event_h" = "xyes"; then ++ # All versions of MAC OS X before at least 10.5.2 are ++ # completely broken when kqueue is used with pty. So, until ++ # they get fixed, completely disable kqueue on MAC OS X. ++ case "$host" in ++ *apple-darwin*) ++ AC_MSG_CHECKING(for working kqueue) ++ havekqueue="no" ++ AC_MSG_RESULT([no (MAC OS X)]) ++ ;; ++ *) ++ AC_CHECK_FUNCS(kqueue, [havekqueue=yes], ) ++ ;; ++ esac ++ if test "x$havekqueue" = "xyes" ; then ++ AC_MSG_CHECKING(for working kqueue) ++ AC_TRY_RUN( ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++ ++int ++main() ++{ ++ int kq; ++ int n; ++ int fd[[2]]; ++ struct kevent ev; ++ struct timespec ts; ++ char buf[[8000]]; ++ ++ if (pipe(fd) == -1) ++ exit(1); ++ if (fcntl(fd[[1]], F_SETFL, O_NONBLOCK) == -1) ++ exit(1); ++ ++ while ((n = write(fd[[1]], buf, sizeof(buf))) == sizeof(buf)) ++ ; ++ ++ if ((kq = kqueue()) == -1) ++ exit(1); ++ ++ ev.ident = fd[[1]]; ++ ev.filter = EVFILT_WRITE; ++ ev.flags = EV_ADD | EV_ENABLE; ++ n = kevent(kq, &ev, 1, NULL, 0, NULL); ++ if (n == -1) ++ exit(1); ++ ++ read(fd[[0]], buf, sizeof(buf)); ++ ++ ts.tv_sec = 0; ++ ts.tv_nsec = 0; ++ n = kevent(kq, NULL, 0, &ev, 1, &ts); ++ if (n == -1 || n == 0) ++ exit(1); ++ ++ exit(0); ++}, [AC_MSG_RESULT(yes) ++ AC_DEFINE(HAVE_WORKING_KQUEUE, 1, ++ [Define if kqueue works correctly with pipes]) ++ sources="kqueue.c $sources"], AC_MSG_RESULT(no), AC_MSG_RESULT(no)) ++ # OMPI: don't use AC_LIBOBJ ++ fi ++fi ++ ++haveeventports=no ++AC_CHECK_FUNCS(port_create, [haveeventports=yes], ) ++# JMS Per #1273, Solaris event ports are temporarily disabled. ++haveeventports=no ++if test "x$haveeventports" = "xyes" ; then ++ AC_DEFINE(HAVE_EVENT_PORTS, 1, ++ [Define if your system supports event ports]) ++ sources="evport.c $sources" ++ needsignal=yes ++fi ++ ++if test "x$needsignal" = "xyes" ; then ++ # OMPI: don't use AC_LIBOBJ ++ sources="signal.c $sources" ++fi ++ ++# OMPI: AC_REPLACE_FUNCS doesn't have much meaning here because it ++# uses AC_LIBOBJ; use our own test ++#AC_REPLACE_FUNCS(err) ++ ++AC_TYPE_PID_T ++AC_TYPE_SIZE_T ++AC_CHECK_TYPE(u_int64_t, unsigned long long) ++AC_CHECK_TYPE(u_int32_t, unsigned int) ++AC_CHECK_TYPE(u_int16_t, unsigned short) ++AC_CHECK_TYPE(u_int8_t, unsigned char) ++ ++ ++# OMPI: Save the libobj sources ++OMPI_LIBEVENT_SOURCES="$sources" ++AC_SUBST(OMPI_LIBEVENT_SOURCES) ++ ++# OMPI: All done ++unset sources]) ++m4trace:config/ompi_setup_wrappers.m4:31: -1- AC_DEFUN([OMPI_SETUP_WRAPPER_INIT], [ ++ WRAPPER_EXTRA_CPPFLAGS= ++ WRAPPER_EXTRA_CFLAGS= ++ WRAPPER_EXTRA_CXXFLAGS= ++ WRAPPER_EXTRA_FFLAGS= ++ WRAPPER_EXTRA_FCFLAGS= ++ WRAPPER_EXTRA_LDFLAGS= ++ WRAPPER_EXTRA_LIBS= ++ ++ USER_WRAPPER_EXTRA_CFLAGS= ++ USER_WRAPPER_EXTRA_CXXFLAGS= ++ USER_WRAPPER_EXTRA_FFLAGS= ++ USER_WRAPPER_EXTRA_FCFLAGS= ++ USER_WRAPPER_EXTRA_LDFLAGS= ++ USER_WRAPPER_EXTRA_LIBS= ++ ++ AC_ARG_WITH([wrapper-cflags], ++ [AC_HELP_STRING([--with-wrapper-cflags], ++ [Extra flags to add to CFLAGS when using mpicc])]) ++ if test "$with_wrapper_cflags" = "yes" -o "$with_wrapper_cflags" = "no"; then ++ AC_MSG_ERROR([--with-wrapper-cflags must have an argument. Aborting]) ++ elif test ! -z "$with_wrapper_cflags" ; then ++ USER_WRAPPER_EXTRA_CFLAGS="$with_wrapper_cflags" ++ fi ++ ++ AC_ARG_WITH([wrapper-cxxflags], ++ [AC_HELP_STRING([--with-wrapper-cxxflags], ++ [Extra flags to add to CXXFLAGS when using mpiCC/mpic++])]) ++ if test "$with_wrapper_cxxflags" = "yes" -o "$with_wrapper_cxxflags" = "no"; then ++ AC_MSG_ERROR([--with-wrapper-cxxflags must have an argument. Aborting]) ++ elif test ! -z "$with_wrapper_cxxflags" ; then ++ USER_WRAPPER_EXTRA_CXXFLAGS="$with_wrapper_cxxflags" ++ fi ++ ++ AC_ARG_WITH([wrapper-fflags], ++ [AC_HELP_STRING([--with-wrapper-fflags], ++ [Extra flags to add to FFLAGS when using mpif77])]) ++ if test "$with_wrapper_fflags" = "yes" -o "$with_wrapper_fflags" = "no"; then ++ AC_MSG_ERROR([--with-wrapper-fflags must have an argument. Aborting]) ++ elif test ! -z "$with_wrapper_fflags" ; then ++ USER_WRAPPER_EXTRA_FFLAGS="$with_wrapper_fflags" ++ fi ++ ++ AC_ARG_WITH([wrapper-fcflags], ++ [AC_HELP_STRING([--with-wrapper-fcflags], ++ [Extra flags to add to FCFLAGS when using mpif90])]) ++ if test "$with_wrapper_fcflags" = "yes" -o "$with_wrapper_fcflags" = "no"; then ++ AC_MSG_ERROR([--with-wrapper-fcflags must have an argument. Aborting]) ++ elif test ! -z "$with_wrapper_fcflags" ; then ++ USER_WRAPPER_EXTRA_FCFLAGS="$with_wrapper_fcflags" ++ fi ++ ++ AC_ARG_WITH([wrapper-ldflags], ++ [AC_HELP_STRING([--with-wrapper-ldflags], ++ [Extra flags to add to LDFLAGS when using wrapper compilers])]) ++ if test "$with_wrapper_ldflags" = "yes" -o "$with_wrapper_ldflags" = "no"; then ++ AC_MSG_ERROR([--with-wrapper-ldflags must have an argument. Aborting]) ++ elif test ! -z "$with_wrapper_ldflags" ; then ++ USER_WRAPPER_EXTRA_LDFLAGS="$with_wrapper_ldflags" ++ fi ++ ++ AC_ARG_WITH([wrapper-libs], ++ [AC_HELP_STRING([--with-wrapper-libs], ++ [Extra flags to add to LIBS when using wrapper compilers])]) ++ if test "$with_wrapper_libs" = "yes" -o "$with_wrapper_libs" = "no"; then ++ AC_MSG_ERROR([--with-wrapper-libs must have an argument. Aborting]) ++ elif test ! -z "$with_wrapper_libs" ; then ++ USER_WRAPPER_EXTRA_LIBS="$with_wrapper_libs" ++ fi ++]) ++m4trace:config/ompi_setup_wrappers.m4:103: -1- AC_DEFUN([OMPI_SETUP_WRAPPER_FINAL], [ ++ OMPI_UNIQ([WRAPPER_EXTRA_CPPFLAGS]) ++ OMPI_UNIQ([WRAPPER_EXTRA_CFLAGS]) ++ OMPI_UNIQ([WRAPPER_EXTRA_CXXFLAGS]) ++ OMPI_UNIQ([WRAPPER_EXTRA_FFLAGS]) ++ OMPI_UNIQ([WRAPPER_EXTRA_FCFLAGS]) ++ OMPI_UNIQ([WRAPPER_EXTRA_LDFLAGS]) ++ ++ # ++ # OPAL ++ # ++ OMPI_UNIQ([opal_WRAPPER_EXTRA_LDFLAGS]) ++ OMPI_UNIQ([opal_WRAPPER_EXTRA_LIBS]) ++ ++ AC_MSG_CHECKING([for OPAL CPPFLAGS]) ++ OPAL_WRAPPER_EXTRA_CPPFLAGS="$WRAPPER_EXTRA_CPPFLAGS $USER_WRAPPER_EXTRA_CPPFLAGS" ++ AC_SUBST([OPAL_WRAPPER_EXTRA_CPPFLAGS]) ++ AC_MSG_RESULT([$OPAL_WRAPPER_EXTRA_CPPFLAGS]) ++ ++ AC_MSG_CHECKING([for OPAL CFLAGS]) ++ OPAL_WRAPPER_EXTRA_CFLAGS="$WRAPPER_EXTRA_CFLAGS $USER_WRAPPER_EXTRA_CFLAGS" ++ AC_SUBST([OPAL_WRAPPER_EXTRA_CFLAGS]) ++ AC_MSG_RESULT([$OPAL_WRAPPER_EXTRA_CFLAGS]) ++ ++ AC_MSG_CHECKING([for OPAL CXXFLAGS]) ++ OPAL_WRAPPER_EXTRA_CXXFLAGS="$WRAPPER_EXTRA_CXXFLAGS $USER_WRAPPER_EXTRA_CXXFLAGS" ++ AC_SUBST([OPAL_WRAPPER_EXTRA_CXXFLAGS]) ++ AC_MSG_RESULT([$OPAL_WRAPPER_EXTRA_CXXFLAGS]) ++ ++ AC_MSG_CHECKING([for OPAL LDFLAGS]) ++ OPAL_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $WRAPPER_EXTRA_LDFLAGS $USER_WRAPPER_EXTRA_LDFLAGS" ++ AC_SUBST([OPAL_WRAPPER_EXTRA_LDFLAGS]) ++ AC_MSG_RESULT([$OPAL_WRAPPER_EXTRA_LDFLAGS]) ++ ++ AC_MSG_CHECKING([for OPAL LIBS]) ++ OPAL_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $WRAPPER_EXTRA_LIBS $USER_WRAPPER_EXTRA_LIBS" ++ AC_SUBST([OPAL_WRAPPER_EXTRA_LIBS]) ++ AC_MSG_RESULT([$OPAL_WRAPPER_EXTRA_LIBS]) ++ ++ AC_MSG_CHECKING([for OPAL extra include dirs]) ++ if test "$WANT_INSTALL_HEADERS" = "1" ; then ++ OPAL_WRAPPER_EXTRA_INCLUDES="openmpi" ++ else ++ OPAL_WRAPPER_EXTRA_INCLUDES= ++ fi ++ AC_SUBST([OPAL_WRAPPER_EXTRA_INCLUDES]) ++ AC_MSG_RESULT([$OPAL_WRAPPER_EXTRA_INCLUDES]) ++ ++ # ++ # ORTE ++ # ++ OMPI_UNIQ([orte_WRAPPER_EXTRA_LDFLAGS]) ++ OMPI_UNIQ([orte_WRAPPER_EXTRA_LIBS]) ++ ++ AC_MSG_CHECKING([for ORTE CPPFLAGS]) ++ ORTE_WRAPPER_EXTRA_CPPFLAGS="$OPAL_WRAPPER_EXTRA_CPPFLAGS" ++ AC_SUBST([ORTE_WRAPPER_EXTRA_CPPFLAGS]) ++ AC_MSG_RESULT([$ORTE_WRAPPER_EXTRA_CPPFLAGS]) ++ ++ AC_MSG_CHECKING([for ORTE CFLAGS]) ++ ORTE_WRAPPER_EXTRA_CFLAGS="$OPAL_WRAPPER_EXTRA_CFLAGS" ++ AC_SUBST([ORTE_WRAPPER_EXTRA_CFLAGS]) ++ AC_MSG_RESULT([$ORTE_WRAPPER_EXTRA_CFLAGS]) ++ ++ AC_MSG_CHECKING([for ORTE CXXFLAGS]) ++ ORTE_WRAPPER_EXTRA_CXXFLAGS="$OPAL_WRAPPER_EXTRA_CXXFLAGS" ++ AC_SUBST([ORTE_WRAPPER_EXTRA_CXXFLAGS]) ++ AC_MSG_RESULT([$ORTE_WRAPPER_EXTRA_CXXFLAGS]) ++ ++ AC_MSG_CHECKING([for ORTE LDFLAGS]) ++ ORTE_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $OPAL_WRAPPER_EXTRA_LDFLAGS" ++ AC_SUBST([ORTE_WRAPPER_EXTRA_LDFLAGS]) ++ AC_MSG_RESULT([$ORTE_WRAPPER_EXTRA_LDFLAGS]) ++ ++ AC_MSG_CHECKING([for ORTE LIBS]) ++ ORTE_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $OPAL_WRAPPER_EXTRA_LIBS" ++ AC_SUBST([ORTE_WRAPPER_EXTRA_LIBS]) ++ AC_MSG_RESULT([$ORTE_WRAPPER_EXTRA_LIBS]) ++ ++ AC_MSG_CHECKING([for ORTE extra include dirs]) ++ ORTE_WRAPPER_EXTRA_INCLUDES="$OPAL_WRAPPER_EXTRA_INCLUDES" ++ AC_SUBST([ORTE_WRAPPER_EXTRA_INCLUDES]) ++ AC_MSG_RESULT([$ORTE_WRAPPER_EXTRA_INCLUDES]) ++ ++ # ++ # OMPI ++ # ++ OMPI_UNIQ([ompi_WRAPPER_EXTRA_LDFLAGS]) ++ OMPI_UNIQ([ompi_WRAPPER_EXTRA_LIBS]) ++ ++ AC_MSG_CHECKING([for OMPI CPPFLAGS]) ++ OMPI_WRAPPER_EXTRA_CPPFLAGS="$ORTE_WRAPPER_EXTRA_CPPFLAGS" ++ AC_SUBST([OMPI_WRAPPER_EXTRA_CPPFLAGS]) ++ AC_MSG_RESULT([$OMPI_WRAPPER_EXTRA_CPPFLAGS]) ++ ++ AC_MSG_CHECKING([for OMPI CFLAGS]) ++ OMPI_WRAPPER_EXTRA_CFLAGS="$ORTE_WRAPPER_EXTRA_CFLAGS" ++ AC_SUBST([OMPI_WRAPPER_EXTRA_CFLAGS]) ++ AC_MSG_RESULT([$OMPI_WRAPPER_EXTRA_CFLAGS]) ++ ++ AC_MSG_CHECKING([for OMPI CXXFLAGS]) ++ OMPI_WRAPPER_EXTRA_CXXFLAGS="$ORTE_WRAPPER_EXTRA_CXXFLAGS" ++ AC_SUBST([OMPI_WRAPPER_EXTRA_CXXFLAGS]) ++ AC_MSG_RESULT([$OMPI_WRAPPER_EXTRA_CXXFLAGS]) ++ ++ AC_MSG_CHECKING([for OMPI FFLAGS]) ++ OMPI_WRAPPER_EXTRA_FFLAGS="$WRAPPER_EXTRA_FFLAGS $USER_WRAPPER_EXTRA_FFLAGS" ++ AC_SUBST([OMPI_WRAPPER_EXTRA_FFLAGS]) ++ AC_MSG_RESULT([$OMPI_WRAPPER_EXTRA_FFLAGS]) ++ ++ AC_MSG_CHECKING([for OMPI FCFLAGS]) ++ OMPI_WRAPPER_EXTRA_FCFLAGS="$WRAPPER_EXTRA_FCFLAGS $USER_WRAPPER_EXTRA_FCFLAGS" ++ AC_SUBST([OMPI_WRAPPER_EXTRA_FCFLAGS]) ++ AC_MSG_RESULT([$OMPI_WRAPPER_EXTRA_FCFLAGS]) ++ ++ AC_MSG_CHECKING([for OMPI LDFLAGS]) ++ OMPI_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $ORTE_WRAPPER_EXTRA_LDFLAGS" ++ AC_SUBST([OMPI_WRAPPER_EXTRA_LDFLAGS]) ++ AC_MSG_RESULT([$OMPI_WRAPPER_EXTRA_LDFLAGS]) ++ ++ AC_MSG_CHECKING([for OMPI LIBS]) ++ OMPI_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $ORTE_WRAPPER_EXTRA_LIBS" ++ AC_SUBST([OMPI_WRAPPER_EXTRA_LIBS]) ++ AC_MSG_RESULT([$OMPI_WRAPPER_EXTRA_LIBS]) ++ ++ AC_MSG_CHECKING([for OMPI extra include dirs]) ++ OMPI_WRAPPER_EXTRA_INCLUDES="$ORTE_WRAPPER_EXTRA_INCLUDES" ++ AC_SUBST([OMPI_WRAPPER_EXTRA_INCLUDES]) ++ AC_MSG_RESULT([$OMPI_WRAPPER_EXTRA_INCLUDES]) ++ ++ # language binding support. C++ is a bit different, as the ++ # compiler should work even if there is no language support. ++ if test "$WANT_MPI_CXX_SUPPORT" = "1" ; then ++ OMPI_WRAPPER_CXX_LIB="-lmpi_cxx" ++ OMPI_WRAPPER_CXX_REQUIRED_FILE="" ++ else ++ OMPI_WRAPPER_CXX_LIB="" ++ OMPI_WRAPPER_CXX_REQUIRED_FILE="" ++ fi ++ AC_SUBST([OMPI_WRAPPER_CXX_LIB]) ++ AC_SUBST([OMPI_WRAPPER_CXX_REQUIRED_FILE]) ++ ++ if test "$OMPI_WANT_F77_BINDINGS" = "1" ; then ++ OMPI_WRAPPER_F77_REQUIRED_FILE="" ++ else ++ OMPI_WRAPPER_F77_REQUIRED_FILE="not supported" ++ fi ++ AC_SUBST([OMPI_WRAPPER_F77_REQUIRED_FILE]) ++ ++ if test "$OMPI_WANT_F90_BINDINGS" = "1" ; then ++ OMPI_WRAPPER_F90_REQUIRED_FILE="" ++ else ++ OMPI_WRAPPER_F90_REQUIRED_FILE="not supported" ++ fi ++ AC_SUBST([OMPI_WRAPPER_F90_REQUIRED_FILE]) ++ ++ # For script-based wrappers that don't do relocatable binaries. ++ # Don't use if you don't have to. ++ exec_prefix_save="${exec_prefix}" ++ test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" ++ eval "OMPI_WRAPPER_INCLUDEDIR=\"${includedir}\"" ++ eval "OMPI_WRAPPER_LIBDIR=\"${libdir}\"" ++ exec_prefix="${exec_prefix_save}" ++ AC_SUBST(OMPI_WRAPPER_INCLUDEDIR) ++ AC_SUBST(OMPI_WRAPPER_LIBDIR) ++ ++ # compatibility defines that will eventually go away ++ WRAPPER_EXTRA_CFLAGS="$OMPI_WRAPPER_EXTRA_CFLAGS" ++ WRAPPER_EXTRA_CXXFLAGS="$OMPI_WRAPPER_EXTRA_CXXFLAGS" ++ WRAPPER_EXTRA_FFLAGS="$OMPI_WRAPPER_EXTRA_FFLAGS" ++ WRAPPER_EXTRA_FCFLAGS="$OMPI_WRAPPER_EXTRA_FCFLAGS" ++ WRAPPER_EXTRA_LDFLAGS="$OMPI_WRAPPER_EXTRA_LDFLAGS" ++ WRAPPER_EXTRA_LIBS="$OMPI_WRAPPER_EXTRA_LIBS" ++ ++ AC_SUBST(WRAPPER_EXTRA_CFLAGS) ++ AC_SUBST(WRAPPER_EXTRA_CXXFLAGS) ++ AC_SUBST(WRAPPER_EXTRA_FFLAGS) ++ AC_SUBST(WRAPPER_EXTRA_FCFLAGS) ++ AC_SUBST(WRAPPER_EXTRA_LDFLAGS) ++ AC_SUBST(WRAPPER_EXTRA_LIBS) ++ ++ AC_DEFINE_UNQUOTED(WRAPPER_EXTRA_CFLAGS, "$WRAPPER_EXTRA_CFLAGS", ++ [Additional CFLAGS to pass through the wrapper compilers]) ++ AC_DEFINE_UNQUOTED(WRAPPER_EXTRA_CXXFLAGS, "$WRAPPER_EXTRA_CXXFLAGS", ++ [Additional CXXFLAGS to pass through the wrapper compilers]) ++ AC_DEFINE_UNQUOTED(WRAPPER_EXTRA_FFLAGS, "$WRAPPER_EXTRA_FFLAGS", ++ [Additional FFLAGS to pass through the wrapper compilers]) ++ AC_DEFINE_UNQUOTED(WRAPPER_EXTRA_FCFLAGS, "$WRAPPER_EXTRA_FCFLAGS", ++ [Additional FCFLAGS to pass through the wrapper compilers]) ++ AC_DEFINE_UNQUOTED(WRAPPER_EXTRA_LDFLAGS, "$WRAPPER_EXTRA_LDFLAGS", ++ [Additional LDFLAGS to pass through the wrapper compilers]) ++ AC_DEFINE_UNQUOTED(WRAPPER_EXTRA_LIBS, "$WRAPPER_EXTRA_LIBS", ++ [Additional LIBS to pass through the wrapper compilers]) ++]) ++m4trace:config/ompi_try_assemble.m4:29: -1- AC_DEFUN([OMPI_TRY_ASSEMBLE], [cat >conftest.s <&AC_FD_CC ++ ifelse([$2],,:,[$2]) ++else ++ # save compiler output and failed program ++ cat conftest.out >&AC_FD_CC ++ echo "configure: failed program was:" >&AC_FD_CC ++ cat conftest.s >&AC_FD_CC ++ ifelse([$3],,:,[$3]) ++fi ++rm -rf conftest* ++unset ompi_assemble ++]) ++m4trace:acinclude.m4:24: -1- m4_include([config/ompi_get_version.m4]) ++m4trace:acinclude.m4:30: -1- m4_include([config/mca_no_configure_components.m4]) ++m4trace:config/mca_no_configure_components.m4:96: -1- AC_DEFUN([MCA_NO_CONFIG_CONFIG_FILES], [ ++ ++AC_CONFIG_FILES(opal/mca/backtrace/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl opal/mca/backtrace/darwin ++ ++AC_CONFIG_FILES([opal/mca/backtrace/darwin/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl opal/mca/backtrace/execinfo ++ ++AC_CONFIG_FILES([opal/mca/backtrace/execinfo/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl opal/mca/backtrace/none ++ ++AC_CONFIG_FILES([opal/mca/backtrace/none/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl opal/mca/backtrace/printstack ++ ++AC_CONFIG_FILES([opal/mca/backtrace/printstack/Makefile]) ++AC_CONFIG_FILES(opal/mca/carto/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl opal/mca/carto/auto_detect ++ ++AC_CONFIG_FILES([opal/mca/carto/auto_detect/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl opal/mca/carto/file ++ ++AC_CONFIG_FILES([opal/mca/carto/file/Makefile]) ++AC_CONFIG_FILES(opal/mca/crs/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl opal/mca/crs/blcr ++ ++AC_CONFIG_FILES([opal/mca/crs/blcr/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl opal/mca/crs/none ++ ++AC_CONFIG_FILES([opal/mca/crs/none/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl opal/mca/crs/self ++ ++AC_CONFIG_FILES([opal/mca/crs/self/Makefile]) ++AC_CONFIG_FILES(opal/mca/installdirs/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl opal/mca/installdirs/config ++ ++AC_CONFIG_FILES([opal/mca/installdirs/config/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl opal/mca/installdirs/env ++ ++AC_CONFIG_FILES([opal/mca/installdirs/env/Makefile]) ++AC_CONFIG_FILES(opal/mca/maffinity/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl opal/mca/maffinity/first_use ++ ++AC_CONFIG_FILES([opal/mca/maffinity/first_use/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl opal/mca/maffinity/libnuma ++ ++AC_CONFIG_FILES([opal/mca/maffinity/libnuma/Makefile]) ++AC_CONFIG_FILES(opal/mca/memchecker/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl opal/mca/memchecker/valgrind ++ ++AC_CONFIG_FILES([opal/mca/memchecker/valgrind/Makefile]) ++AC_CONFIG_FILES(opal/mca/memcpy/Makefile) ++AC_CONFIG_FILES(opal/mca/memory/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl opal/mca/memory/malloc_solaris ++ ++AC_CONFIG_FILES([opal/mca/memory/malloc_solaris/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl opal/mca/memory/mallopt ++ ++AC_CONFIG_FILES([opal/mca/memory/mallopt/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl opal/mca/memory/ptmalloc2 ++ ++AC_CONFIG_FILES([opal/mca/memory/ptmalloc2/Makefile]) ++AC_CONFIG_FILES(opal/mca/paffinity/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl opal/mca/paffinity/darwin ++ ++AC_CONFIG_FILES([opal/mca/paffinity/darwin/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl opal/mca/paffinity/linux ++ ++AC_CONFIG_FILES([opal/mca/paffinity/linux/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl opal/mca/paffinity/posix ++ ++AC_CONFIG_FILES([opal/mca/paffinity/posix/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl opal/mca/paffinity/solaris ++ ++AC_CONFIG_FILES([opal/mca/paffinity/solaris/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl opal/mca/paffinity/windows ++ ++AC_CONFIG_FILES([opal/mca/paffinity/windows/Makefile]) ++AC_CONFIG_FILES(opal/mca/timer/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl opal/mca/timer/aix ++ ++AC_CONFIG_FILES([opal/mca/timer/aix/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl opal/mca/timer/altix ++ ++AC_CONFIG_FILES([opal/mca/timer/altix/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl opal/mca/timer/catamount ++ ++AC_CONFIG_FILES([opal/mca/timer/catamount/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl opal/mca/timer/darwin ++ ++AC_CONFIG_FILES([opal/mca/timer/darwin/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl opal/mca/timer/linux ++ ++AC_CONFIG_FILES([opal/mca/timer/linux/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl opal/mca/timer/solaris ++ ++AC_CONFIG_FILES([opal/mca/timer/solaris/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl opal/mca/timer/windows ++ ++AC_CONFIG_FILES([opal/mca/timer/windows/Makefile]) ++AC_CONFIG_FILES(orte/mca/errmgr/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl orte/mca/errmgr/default ++ ++AC_CONFIG_FILES([orte/mca/errmgr/default/Makefile]) ++AC_CONFIG_FILES(orte/mca/ess/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/ess/alps ++ ++AC_CONFIG_FILES([orte/mca/ess/alps/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/ess/cnos ++ ++AC_CONFIG_FILES([orte/mca/ess/cnos/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/ess/env ++ ++AC_CONFIG_FILES([orte/mca/ess/env/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/ess/hnp ++ ++AC_CONFIG_FILES([orte/mca/ess/hnp/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/ess/lsf ++ ++AC_CONFIG_FILES([orte/mca/ess/lsf/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/ess/portals_utcp ++ ++AC_CONFIG_FILES([orte/mca/ess/portals_utcp/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/ess/singleton ++ ++AC_CONFIG_FILES([orte/mca/ess/singleton/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/ess/slurm ++ ++AC_CONFIG_FILES([orte/mca/ess/slurm/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/ess/tool ++ ++AC_CONFIG_FILES([orte/mca/ess/tool/Makefile]) ++AC_CONFIG_FILES(orte/mca/filem/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl orte/mca/filem/rsh ++ ++AC_CONFIG_FILES([orte/mca/filem/rsh/Makefile]) ++AC_CONFIG_FILES(orte/mca/grpcomm/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/grpcomm/bad ++ ++AC_CONFIG_FILES([orte/mca/grpcomm/bad/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/grpcomm/basic ++ ++AC_CONFIG_FILES([orte/mca/grpcomm/basic/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/grpcomm/cnos ++ ++AC_CONFIG_FILES([orte/mca/grpcomm/cnos/Makefile]) ++AC_CONFIG_FILES(orte/mca/iof/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl orte/mca/iof/hnp ++ ++AC_CONFIG_FILES([orte/mca/iof/hnp/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl orte/mca/iof/orted ++ ++AC_CONFIG_FILES([orte/mca/iof/orted/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl orte/mca/iof/tool ++ ++AC_CONFIG_FILES([orte/mca/iof/tool/Makefile]) ++AC_CONFIG_FILES(orte/mca/notifier/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/notifier/syslog ++ ++AC_CONFIG_FILES([orte/mca/notifier/syslog/Makefile]) ++AC_CONFIG_FILES(orte/mca/odls/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/odls/default ++ ++AC_CONFIG_FILES([orte/mca/odls/default/Makefile]) ++AC_CONFIG_FILES(orte/mca/oob/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/oob/tcp ++ ++AC_CONFIG_FILES([orte/mca/oob/tcp/Makefile]) ++AC_CONFIG_FILES(orte/mca/plm/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/plm/alps ++ ++AC_CONFIG_FILES([orte/mca/plm/alps/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/plm/lsf ++ ++AC_CONFIG_FILES([orte/mca/plm/lsf/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/plm/rsh ++ ++AC_CONFIG_FILES([orte/mca/plm/rsh/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/plm/slurm ++ ++AC_CONFIG_FILES([orte/mca/plm/slurm/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/plm/tm ++ ++AC_CONFIG_FILES([orte/mca/plm/tm/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/plm/xgrid ++ ++AC_CONFIG_FILES([orte/mca/plm/xgrid/Makefile]) ++AC_CONFIG_FILES(orte/mca/ras/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/ras/alps ++ ++AC_CONFIG_FILES([orte/mca/ras/alps/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/ras/gridengine ++ ++AC_CONFIG_FILES([orte/mca/ras/gridengine/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/ras/loadleveler ++ ++AC_CONFIG_FILES([orte/mca/ras/loadleveler/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/ras/lsf ++ ++AC_CONFIG_FILES([orte/mca/ras/lsf/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/ras/slurm ++ ++AC_CONFIG_FILES([orte/mca/ras/slurm/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/ras/tm ++ ++AC_CONFIG_FILES([orte/mca/ras/tm/Makefile]) ++AC_CONFIG_FILES(orte/mca/rmaps/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl orte/mca/rmaps/rank_file ++ ++AC_CONFIG_FILES([orte/mca/rmaps/rank_file/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl orte/mca/rmaps/round_robin ++ ++AC_CONFIG_FILES([orte/mca/rmaps/round_robin/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl orte/mca/rmaps/seq ++ ++AC_CONFIG_FILES([orte/mca/rmaps/seq/Makefile]) ++AC_CONFIG_FILES(orte/mca/rml/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/rml/ftrm ++ ++AC_CONFIG_FILES([orte/mca/rml/ftrm/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl orte/mca/rml/oob ++ ++AC_CONFIG_FILES([orte/mca/rml/oob/Makefile]) ++AC_CONFIG_FILES(orte/mca/routed/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl orte/mca/routed/binomial ++ ++AC_CONFIG_FILES([orte/mca/routed/binomial/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl orte/mca/routed/direct ++ ++AC_CONFIG_FILES([orte/mca/routed/direct/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl orte/mca/routed/linear ++ ++AC_CONFIG_FILES([orte/mca/routed/linear/Makefile]) ++AC_CONFIG_FILES(orte/mca/snapc/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl orte/mca/snapc/full ++ ++AC_CONFIG_FILES([orte/mca/snapc/full/Makefile]) ++AC_CONFIG_FILES(ompi/mca/allocator/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl ompi/mca/allocator/basic ++ ++AC_CONFIG_FILES([ompi/mca/allocator/basic/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl ompi/mca/allocator/bucket ++ ++AC_CONFIG_FILES([ompi/mca/allocator/bucket/Makefile]) ++AC_CONFIG_FILES(ompi/mca/bml/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl ompi/mca/bml/r2 ++ ++AC_CONFIG_FILES([ompi/mca/bml/r2/Makefile]) ++AC_CONFIG_FILES(ompi/mca/btl/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl ompi/mca/btl/elan ++ ++AC_CONFIG_FILES([ompi/mca/btl/elan/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl ompi/mca/btl/gm ++ ++AC_CONFIG_FILES([ompi/mca/btl/gm/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl ompi/mca/btl/mx ++ ++AC_CONFIG_FILES([ompi/mca/btl/mx/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl ompi/mca/btl/ofud ++ ++AC_CONFIG_FILES([ompi/mca/btl/ofud/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl ompi/mca/btl/openib ++ ++AC_CONFIG_FILES([ompi/mca/btl/openib/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl ompi/mca/btl/portals ++ ++AC_CONFIG_FILES([ompi/mca/btl/portals/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl ompi/mca/btl/self ++ ++AC_CONFIG_FILES([ompi/mca/btl/self/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl ompi/mca/btl/sm ++ ++AC_CONFIG_FILES([ompi/mca/btl/sm/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl ompi/mca/btl/tcp ++ ++AC_CONFIG_FILES([ompi/mca/btl/tcp/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl ompi/mca/btl/udapl ++ ++AC_CONFIG_FILES([ompi/mca/btl/udapl/Makefile]) ++AC_CONFIG_FILES(ompi/mca/coll/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl ompi/mca/coll/basic ++ ++AC_CONFIG_FILES([ompi/mca/coll/basic/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl ompi/mca/coll/hierarch ++ ++AC_CONFIG_FILES([ompi/mca/coll/hierarch/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl ompi/mca/coll/inter ++ ++AC_CONFIG_FILES([ompi/mca/coll/inter/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl ompi/mca/coll/self ++ ++AC_CONFIG_FILES([ompi/mca/coll/self/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl ompi/mca/coll/sm ++ ++AC_CONFIG_FILES([ompi/mca/coll/sm/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl ompi/mca/coll/tuned ++ ++AC_CONFIG_FILES([ompi/mca/coll/tuned/Makefile]) ++AC_CONFIG_FILES(ompi/mca/common/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl ompi/mca/common/mx ++ ++AC_CONFIG_FILES([ompi/mca/common/mx/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl ompi/mca/common/portals ++ ++AC_CONFIG_FILES([ompi/mca/common/portals/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl ompi/mca/common/sm ++ ++AC_CONFIG_FILES([ompi/mca/common/sm/Makefile]) ++AC_CONFIG_FILES(ompi/mca/crcp/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl ompi/mca/crcp/bkmrk ++ ++AC_CONFIG_FILES([ompi/mca/crcp/bkmrk/Makefile]) ++AC_CONFIG_FILES(ompi/mca/dpm/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl ompi/mca/dpm/orte ++ ++AC_CONFIG_FILES([ompi/mca/dpm/orte/Makefile]) ++AC_CONFIG_FILES(ompi/mca/io/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl ompi/mca/io/romio ++ ++AC_CONFIG_FILES([ompi/mca/io/romio/Makefile]) ++AC_CONFIG_FILES(ompi/mca/mpool/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl ompi/mca/mpool/fake ++ ++AC_CONFIG_FILES([ompi/mca/mpool/fake/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl ompi/mca/mpool/rdma ++ ++AC_CONFIG_FILES([ompi/mca/mpool/rdma/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl ompi/mca/mpool/sm ++ ++AC_CONFIG_FILES([ompi/mca/mpool/sm/Makefile]) ++AC_CONFIG_FILES(ompi/mca/mtl/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl ompi/mca/mtl/mx ++ ++AC_CONFIG_FILES([ompi/mca/mtl/mx/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl ompi/mca/mtl/portals ++ ++AC_CONFIG_FILES([ompi/mca/mtl/portals/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl ompi/mca/mtl/psm ++ ++AC_CONFIG_FILES([ompi/mca/mtl/psm/Makefile]) ++AC_CONFIG_FILES(ompi/mca/osc/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl ompi/mca/osc/pt2pt ++ ++AC_CONFIG_FILES([ompi/mca/osc/pt2pt/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl ompi/mca/osc/rdma ++ ++AC_CONFIG_FILES([ompi/mca/osc/rdma/Makefile]) ++AC_CONFIG_FILES(ompi/mca/pml/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl ompi/mca/pml/cm ++ ++AC_CONFIG_FILES([ompi/mca/pml/cm/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl ompi/mca/pml/crcpw ++ ++AC_CONFIG_FILES([ompi/mca/pml/crcpw/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl ompi/mca/pml/ob1 ++ ++AC_CONFIG_FILES([ompi/mca/pml/ob1/Makefile]) ++AC_CONFIG_FILES(ompi/mca/pml/v/mca/vprotocol/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl ompi/mca/pml/v/mca/vprotocol/pessimist ++ ++AC_CONFIG_FILES([ompi/mca/pml/v/mca/vprotocol/pessimist/Makefile]) ++dnl ---------------------------------------------------------------- ++ ++dnl m4-configure component: ++dnl ompi/mca/pml/v ++ ++AC_CONFIG_FILES([ompi/mca/pml/v/Makefile]) ++AC_CONFIG_FILES(ompi/mca/pubsub/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl ompi/mca/pubsub/orte ++ ++AC_CONFIG_FILES([ompi/mca/pubsub/orte/Makefile]) ++AC_CONFIG_FILES(ompi/mca/rcache/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl ompi/mca/rcache/vma ++ ++AC_CONFIG_FILES([ompi/mca/rcache/vma/Makefile]) ++AC_CONFIG_FILES(ompi/mca/topo/Makefile) ++dnl ---------------------------------------------------------------- ++ ++dnl No-configure component: ++dnl ompi/mca/topo/unity ++ ++AC_CONFIG_FILES([ompi/mca/topo/unity/Makefile]) ++]) ++m4trace:acinclude.m4:36: -1- m4_include([config/mca_m4_config_include.m4]) ++m4trace:config/mca_m4_config_include.m4:8: -1- m4_include([opal/mca/backtrace/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:9: -1- m4_include([opal/mca/backtrace/darwin/configure.m4]) ++m4trace:opal/mca/backtrace/darwin/configure.m4:20: -1- AC_DEFUN([MCA_backtrace_darwin_COMPILE_MODE], [ ++ AC_MSG_CHECKING([for MCA component $2:$3 compile mode]) ++ $4="static" ++ AC_MSG_RESULT([$$4]) ++]) ++m4trace:opal/mca/backtrace/darwin/configure.m4:30: -1- AC_DEFUN([MCA_backtrace_darwin_CONFIG], [ ++ AC_CHECK_FUNCS([vm_read_overwrite], ++ [backtrace_darwin_happy="yes"], ++ [backtrace_darwin_happy="no"]) ++ ++ case "${host}" in ++ i?86-*|x86_64*) ++ if test "$ac_cv_sizeof_long" = "8" ; then ++ backtrace_darwin_happy="no" ++ fi ++ esac ++ ++ if test "$backtrace_darwin_happy" = "yes" ; then ++ if test "$OMPI_C_GCC_INLINE_ASSEMBLY" = "0" ; then ++ backtrace_darwin_happy="no" ++ fi ++ fi ++ ++ AS_IF([test "$backtrace_darwin_happy" = "yes"], ++ [AC_CHECK_HEADERS([mach/mach_vm.h]) ++ AC_CHECK_FUNCS([mach_vm_region mach_vm_read])]) ++ ++ backtrace_darwin_CFLAGS="`echo $CFLAGS | sed 's/-pedantic//g'`" ++ AC_SUBST([backtrace_darwin_CFLAGS]) ++ ++ # see if registers are prefixed with __ or not. On systems ++ # previous to Leopard, they were not. On leopard, it depends on ++ # whether code is compiled in UNIX03 mode or not. Check PPC even ++ # if on x86 because x86 always has PPC includes, but the other way ++ # around is not guaranteed. ++ AS_IF([test "$backtrace_darwin_happy" = "yes"], ++ [AC_CHECK_MEMBERS([ppc_thread_state_t.srr0], [], [], [ ++#include ])]) ++ ++ AS_IF([test "$backtrace_darwin_happy" = "yes"], ++ [$1], [$2]) ++]) ++m4trace:config/mca_m4_config_include.m4:10: -1- m4_include([opal/mca/backtrace/execinfo/configure.m4]) ++m4trace:opal/mca/backtrace/execinfo/configure.m4:20: -1- AC_DEFUN([MCA_backtrace_execinfo_COMPILE_MODE], [ ++ AC_MSG_CHECKING([for MCA component $2:$3 compile mode]) ++ $4="static" ++ AC_MSG_RESULT([$$4]) ++]) ++m4trace:opal/mca/backtrace/execinfo/configure.m4:30: -1- AC_DEFUN([MCA_backtrace_execinfo_CONFIG], [ ++ AC_CHECK_HEADERS([execinfo.h]) ++ # FreeBSD has backtrace in -lexecinfo, usually in libc ++ OMPI_CHECK_FUNC_LIB([backtrace], [execinfo], ++ [backtrace_execinfo_happy="yes"], ++ [backtrace_execinfo_happy="no"]) ++ ++ AS_IF([test "$backtrace_execinfo_happy" = "yes"], ++ [$1], [$2]) ++]) ++m4trace:config/mca_m4_config_include.m4:11: -1- m4_include([opal/mca/backtrace/none/configure.m4]) ++m4trace:opal/mca/backtrace/none/configure.m4:20: -1- AC_DEFUN([MCA_backtrace_none_COMPILE_MODE], [ ++ AC_MSG_CHECKING([for MCA component $2:$3 compile mode]) ++ $4="static" ++ AC_MSG_RESULT([$$4]) ++]) ++m4trace:opal/mca/backtrace/none/configure.m4:30: -1- AC_DEFUN([MCA_backtrace_none_CONFIG], [$1]) ++m4trace:config/mca_m4_config_include.m4:12: -1- m4_include([opal/mca/backtrace/printstack/configure.m4]) ++m4trace:opal/mca/backtrace/printstack/configure.m4:20: -1- AC_DEFUN([MCA_backtrace_printstack_COMPILE_MODE], [ ++ AC_MSG_CHECKING([for MCA component $2:$3 compile mode]) ++ $4="static" ++ AC_MSG_RESULT([$$4]) ++]) ++m4trace:opal/mca/backtrace/printstack/configure.m4:30: -1- AC_DEFUN([MCA_backtrace_printstack_CONFIG], [ ++ AC_CHECK_HEADERS([ucontext.h]) ++ # FreeBSD has backtrace in -lexecinfo, usually in libc ++ AC_CHECK_FUNCS([printstack], ++ [backtrace_printstack_happy="yes"], ++ [backtrace_printstack_happy="no"]) ++ ++ AS_IF([test "$backtrace_printstack_happy" = "yes"], ++ [$1], [$2]) ++]) ++m4trace:config/mca_m4_config_include.m4:13: -1- m4_include([opal/mca/crs/blcr/configure.m4]) ++m4trace:opal/mca/crs/blcr/configure.m4:20: -1- AC_DEFUN([MCA_crs_blcr_CONFIG], [ ++ AC_ARG_WITH([blcr], ++ [AC_HELP_STRING([--with-blcr(=DIR)], ++ [Path to BLCR Installation])]) ++ AC_ARG_WITH([blcr-libdir], ++ [AC_HELP_STRING([--with-blcr-libdir=DIR], ++ [Search for BLCR libraries in DIR])]) ++ ++ check_crs_blcr_good="no" ++ # If we do not want BLCR, then do not compile it ++ AS_IF([test "$with_blcr" = "no"], ++ [$2 ++ check_crs_blcr_good="no"], ++ [check_crs_blcr_good="yes"]) ++ ++ # If we do not want FT, don't compile this component ++ AS_IF([test "$ompi_want_ft" = "0"], ++ [$2 ++ check_crs_blcr_good="no"], ++ [check_crs_blcr_good="yes"]) ++ ++ # Defaults ++ check_crs_blcr_dir_msg="compiler default" ++ check_crs_blcr_libdir_msg="linker default" ++ check_crs_blcr_dir="" ++ check_crs_blcr_libdir="" ++ ++ # Determine the search paths for the headers and libraries ++ AS_IF([test "$check_crs_blcr_good" != "yes"], [$2], ++ [AS_IF([test ! -z "$with_blcr" -a "$with_blcr" != "yes"], ++ [check_crs_blcr_dir="$with_blcr" ++ check_crs_blcr_dir_msg="$with_blcr (from --with-blcr)"]) ++ AS_IF([test ! -z "$with_blcr_libdir" -a "$with_blcr_libdir" != "yes"], ++ [check_crs_blcr_libdir="$with_blcr_libdir" ++ check_crs_blcr_libdir_msg="$with_blcr_libdir (from --with-blcr-libdir)"]) ++ ]) ++ ++ crs_blcr_save_CFLAGS="$CFLAGS" ++ crs_blcr_save_CPPFLAGS="$CPPFLAGS" ++ crs_blcr_save_LDFLAGS="$LDFLAGS" ++ crs_blcr_save_LIBS="$LIBS" ++ ++ crs_blcr_CFLAGS="$CFLAGS" ++ crs_blcr_CPPFLAGS="$CPPFLAGS" ++ crs_blcr_LDFLAGS="$LDFLAGS" ++ crs_blcr_LIBS="$LIBS" ++ ++ AS_IF([test "$check_crs_blcr_good" != "yes"], [$2], ++ [AC_MSG_CHECKING([for BLCR dir]) ++ AC_MSG_RESULT([$check_crs_blcr_dir_msg]) ++ AC_MSG_CHECKING([for BLCR library dir]) ++ AC_MSG_RESULT([$check_crs_blcr_libdir_msg]) ++ OMPI_CHECK_PACKAGE([crs_blcr_check], ++ [libcr.h], ++ [cr], ++ [cr_init], ++ [], ++ [$check_crs_blcr_dir], ++ [$check_crs_blcr_libdir], ++ [check_crs_blcr_good="yes"], ++ [check_crs_blcr_good="no"]) ++ ]) ++ ++ # Check to see if we found the BLCR libcr.h library ++ # If we did then add the arguments to the wrapper compiler ++ AS_IF([test "$check_crs_blcr_good" != "yes"], [$2], ++ [ ++ # ++ # Since BLCR libraries are not fully ISO99 C compliant ++ # -pedantic and -Wundef raise a bunch of warnings, so ++ # we just strip them off for this component ++ AC_MSG_WARN([Removed -pedantic and -Wundef from CFLAGS for blcr component because libcr.h is not really ANSI C]) ++ # Strip off problematic arguments ++ crs_blcr_CFLAGS="`echo $crs_blcr_check_CFLAGS | sed 's/-pedantic//g'`" ++ crs_blcr_CFLAGS="`echo $crs_blcr_CFLAGS | sed 's/-Wundef//g'`" ++ crs_blcr_CPPFLAGS="`echo $crs_blcr_check_CPPFLAGS | sed 's/-pedantic//g'`" ++ crs_blcr_CPPFLAGS="`echo $crs_blcr_CPPFLAGS | sed 's/-Wundef//g'`" ++ crs_blcr_LDFLAGS="$crs_blcr_check_LDFLAGS" ++ crs_blcr_LIBS="$crs_blcr_check_LIBS" ++ # ++ # Add to wrapper compiler ++ crs_blcr_WRAPPER_EXTRA_CFLAGS="$crs_blcr_CFLAGS" ++ crs_blcr_WRAPPER_EXTRA_CPPFLAGS="$crs_blcr_CPPFLAGS" ++ crs_blcr_WRAPPER_EXTRA_LDFLAGS="$crs_blcr_LDFLAGS" ++ crs_blcr_WRAPPER_EXTRA_LIBS="$crs_blcr_LIBS" ++ $1]) ++ ++ ++ # ++ # Check for version difference which may have: ++ # - working cr_request_file ++ # - working cr_request_checkpoint (which should be used instead of cr_request_file) ++ # - 'requester' parameter to checkpoint_info ++ # ++ AS_IF([test "$check_crs_blcr_good" != "yes"], [$2], [ ++ # ++ # First look for the cr_request_file function ++ # ++ crs_blcr_have_working_cr_request=0 ++ AC_MSG_CHECKING(for BLCR working cr_request) ++ OMPI_CHECK_FUNC_LIB([cr_request_file],[cr], ++ [AC_TRY_COMPILE([#include ], ++ [#if CR_RELEASE_MAJOR <= 0 && CR_RELEASE_MINOR < 6 ++ #error Version earlier than 0.6.0 ++ #endif ++ ], ++ [crs_blcr_have_working_cr_request=1 ++ ], ++ [crs_blcr_have_working_cr_request=0 ++ AC_MSG_WARN([This BLCR version does not contain a known working version of cr_request_file]) ++ ])], ++ [crs_blcr_have_working_cr_request=0 ++ AC_MSG_WARN([This BLCR version does not contain the cr_request_file function]) ++ ]) ++ AC_DEFINE_UNQUOTED([CRS_BLCR_HAVE_CR_REQUEST], [$crs_blcr_have_working_cr_request], ++ [BLCR cr_request_file check]) ++ ++ # ++ # Look for the cr_request_checkpoint function ++ # ++ crs_blcr_have_cr_request_checkpoint=0 ++ AC_MSG_CHECKING(for BLCR cr_request_checkpoint) ++ OMPI_CHECK_FUNC_LIB([cr_request_checkpoint],[cr], ++ [crs_blcr_have_cr_request_checkpoint=1 ++ ], ++ [crs_blcr_have_cr_request_checkpoint=0 ++ AC_MSG_WARN([This BLCR version does not contain the cr_request_checkpoint function]) ++ ]) ++ AC_DEFINE_UNQUOTED([CRS_BLCR_HAVE_CR_REQUEST_CHECKPOINT], [$crs_blcr_have_cr_request_checkpoint], ++ [BLCR cr_request_checkpoint check]) ++ ++ # ++ # Look for the cr_checkpoint_info.requester member ++ # ++ crs_blcr_have_info_requester=0 ++ AC_CHECK_MEMBER([struct cr_checkpoint_info.requester], ++ [crs_blcr_have_info_requester=1], ++ [AC_MSG_WARN([This BLCR version does not contain a 'requester' member of the 'cr_checkpoint_info' struct])], ++ [#include ]) ++ AC_DEFINE_UNQUOTED([CRS_BLCR_HAVE_INFO_REQUESTER], [$crs_blcr_have_info_requester], ++ [BLCRs cr_checkpoint_info.requester member availability]) ++ $1]) ++ ++ CFLAGS="$crs_blcr_save_CFLAGS" ++ CPPFLAGS="$crs_blcr_save_CPPFLAGS" ++ LDFLAGS="$crs_blcr_save_LDFLAGS" ++ LIBS="$crs_blcr_save_LIBS" ++ ++ # ++ AS_IF([test "$check_crs_blcr_good" = "yes"], ++ [ AC_SUBST([crs_blcr_crs_blcr_WRAPPER_EXTRA_LDFLAGS]) ++ AC_SUBST([crs_blcr_crs_blcr_WRAPPER_EXTRA_LIBS]) ++ AC_SUBST([crs_blcr_crs_blcr_WRAPPER_EXTRA_CPPFLAGS]) ++ AC_SUBST([crs_blcr_CFLAGS]) ++ AC_SUBST([crs_blcr_CPPFLAGS]) ++ AC_SUBST([crs_blcr_LDFLAGS]) ++ AC_SUBST([crs_blcr_LIBS]) ++ $1], ++ [AS_IF([test ! -z "$with_blcr" -a "$with_blcr" != "no"], ++ [AC_MSG_WARN([BLCR support requested but not found. Perhaps you need to specify the location of the BLCR libraries.]) ++ AC_MSG_ERROR([Aborting.])]) ++ $3]) ++ ++]) ++m4trace:config/mca_m4_config_include.m4:14: -1- m4_include([opal/mca/crs/self/configure.m4]) ++m4trace:opal/mca/crs/self/configure.m4:20: -1- AC_DEFUN([MCA_crs_self_CONFIG], [ ++ # If we don't want FT, don't compile this component ++ AS_IF([test "$ompi_want_ft" = "1"], ++ [crs_self_good="yes"], ++ [$2]) ++ ++ # We need to be able to dlopen the executable for this component to work. ++ AS_IF([test "$OMPI_ENABLE_DLOPEN_SUPPORT" = "1" -a "$crs_self_good" = "yes"], ++ [$1], ++ [$2]) ++]) ++m4trace:config/mca_m4_config_include.m4:15: -1- m4_include([opal/mca/installdirs/config/configure.m4]) ++m4trace:opal/mca/installdirs/config/configure.m4:12: -1- AC_DEFUN([MCA_installdirs_config_COMPILE_MODE], [ ++ AC_MSG_CHECKING([for MCA component $2:$3 compile mode]) ++ $4="static" ++ AC_MSG_RESULT([$$4]) ++]) ++m4trace:opal/mca/installdirs/config/configure.m4:22: -1- AC_DEFUN([MCA_installdirs_config_CONFIG], [ ++ AC_CONFIG_FILES([opal/mca/installdirs/config/install_dirs.h]) ++]) ++m4trace:config/mca_m4_config_include.m4:16: -1- m4_include([opal/mca/installdirs/env/configure.m4]) ++m4trace:opal/mca/installdirs/env/configure.m4:12: -1- AC_DEFUN([MCA_installdirs_env_COMPILE_MODE], [ ++ AC_MSG_CHECKING([for MCA component $2:$3 compile mode]) ++ $4="static" ++ AC_MSG_RESULT([$$4]) ++]) ++m4trace:opal/mca/installdirs/env/configure.m4:21: -1- AC_DEFUN([MCA_installdirs_env_CONFIG], [$1]) ++m4trace:config/mca_m4_config_include.m4:17: -1- m4_include([opal/mca/maffinity/libnuma/configure.m4]) ++m4trace:opal/mca/maffinity/libnuma/configure.m4:25: -1- AC_DEFUN([MCA_maffinity_libnuma_CONFIG], [ ++ AC_ARG_WITH([libnuma], ++ [AC_HELP_STRING([--with-libnuma], ++ [Directory where the libnuma software is installed])]) ++ ++ AS_IF([test "$with_libnuma" = "no"], ++ [maffinity_libnuma_happy="no"], ++ [maffinity_libnuma_happy="yes"]) ++ ++ AS_IF([test "$maffinity_libnuma_happy" = "yes"], ++ [OMPI_CHECK_PACKAGE([maffinity_libnuma], ++ [numa.h], ++ [numa], ++ [numa_available], ++ [], ++ [$with_libnuma], ++ [], ++ [maffinity_libnuma_happy="yes"], ++ [maffinity_libnuma_happy="no"])]) ++ ++ AS_IF([test "$maffinity_libnuma_happy" = "yes"], ++ [maffinity_libnuma_WRAPPER_EXTRA_LDFLAGS="$maffinity_libnuma_LDFLAGS" ++ maffinity_libnuma_WRAPPER_EXTRA_LIBS="$maffinity_libnuma_LIBS" ++ $1], ++ [$2]) ++ ++ # sanity check ++ AS_IF([test "$maffinity_libnuma_happy" = "no"], ++ [AS_IF([test "$with_libnuma" != "no" -a ! -z "$with_libnuma"], ++ [AC_MSG_ERROR([maffinity:libnuma requested but not found. Aborting])])]) ++ ++ # Check for MPOL_MF_MOVE ++ AS_IF([test "$maffinity_libnuma_happy" = "yes"], ++ [AC_CHECK_DECLS([MPOL_MF_MOVE])]) ++ ++ # substitute in the things needed to build libnuma ++ AC_SUBST([maffinity_libnuma_CPPFLAGS]) ++ AC_SUBST([maffinity_libnuma_LDFLAGS]) ++ AC_SUBST([maffinity_libnuma_LIBS]) ++]) ++m4trace:config/mca_m4_config_include.m4:18: -1- m4_include([opal/mca/memchecker/configure.m4]) ++m4trace:opal/mca/memchecker/configure.m4:16: -1- AC_DEFUN([MCA_memchecker_CONFIG], [ ++ ompi_show_subsubtitle "Pre-configuring the framework memchecker" ++ ++ AC_MSG_CHECKING([if --enable-memchecker was specified]) ++ AC_ARG_ENABLE(memchecker, ++ AC_HELP_STRING([--enable-memchecker], ++ [Enable memory and buffer checks. Note that disabling will *also* add "memchecker" to the --enable-mca-no-build list (default: disabled)])) ++ if test "$enable_memchecker" = "yes"; then ++ AC_MSG_RESULT([yes]) ++ WANT_MEMCHECKER=1 ++ else ++ AC_MSG_RESULT([no (adding "memchecker" to --enable-mca-no-build list)]) ++ WANT_MEMCHECKER=0 ++ ++ # Setting this environment variable causes ++ # MCA_COMONENT_BUILD_CHECK (in ompi_mca.m4, invoked by ++ # MCA_CONFIGURE_FRAMEWORK, below) to rule that the component ++ # should not be built. It is effectively the same as adding ++ # "memchecker" to the --enable-mca-no-build list. ++ DISABLE_memchecker=1 ++ fi ++ AC_DEFINE_UNQUOTED([OMPI_WANT_MEMCHECKER], ++ [$WANT_MEMCHECKER], ++ [if the memory and buffer checking should be enabled]) ++ AM_CONDITIONAL([OMPI_WANT_MEMCHECKER], ++ [test "$WANT_MEMCHECKER" = "1"]) ++ ++ # first, compile all the components ++ MCA_CONFIGURE_FRAMEWORK($1, $2, 1) ++ ++ AC_DEFINE_UNQUOTED([OMPI_MEMCHECKER_HAVE_COMPONENT], [$memchecker_base_found], ++ [Whether any opal memchecker mca components were found]) ++]) ++m4trace:config/mca_m4_config_include.m4:19: -1- m4_include([opal/mca/memchecker/valgrind/configure.m4]) ++m4trace:opal/mca/memchecker/valgrind/configure.m4:13: -1- AC_DEFUN([MCA_memchecker_valgrind_COMPILE_MODE], [ ++ AC_MSG_CHECKING([for MCA component $2:$3 compile mode]) ++ $4="static" ++ AC_MSG_RESULT([$$4]) ++]) ++m4trace:opal/mca/memchecker/valgrind/configure.m4:22: -1- AC_DEFUN([MCA_memchecker_valgrind_CONFIG], [ ++ OMPI_VAR_SCOPE_PUSH([opal_memchecker_valgrind_save_CPPFLAGS opal_memchecker_valgrind_happy opal_memchecker_valgrind_CPPFLAGS]) ++ ++ AC_ARG_WITH([valgrind], ++ [AC_HELP_STRING([--with-valgrind(=DIR)], ++ [Directory where the valgrind software is installed])]) ++ ++ memchecker_valgrind_CPPFLAGS= ++ opal_memchecker_valgrind_CPPFLAGS= ++ opal_memchecker_valgrind_save_CPPFLAGS="$CPPFLAGS" ++ opal_memchecker_valgrind_happy=no ++ AS_IF([test "$with_valgrind" != "no"], ++ [AS_IF([test ! -z "$with_valgrind" -a "$with_valgrind" != "yes"], ++ [CPPFLAGS="$CPPFLAGS -I$with_valgrind/include" ++ opal_memchecker_valgrind_CPPFLAGS="-I$with_valgrind/include"]) ++ AC_CHECK_HEADERS([valgrind/valgrind.h], ++ [AC_MSG_CHECKING([for VALGRIND_CHECK_MEM_IS_ADDRESSABLE]) ++ AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[ ++#include "valgrind/memcheck.h" ++]], ++ [[char buffer = 0xff; ++ VALGRIND_CHECK_MEM_IS_ADDRESSABLE(&buffer, sizeof(buffer));]]), ++ [AC_MSG_RESULT([yes]) ++ opal_memchecker_valgrind_happy=yes], ++ [AC_MSG_RESULT([no]) ++ AC_MSG_ERROR([Need Valgrind version 3.2.0 or later. Can not build component.])] ++ [AC_MSG_RESULT([cross-compiling; assume yes...?]) ++ AC_MSG_WARN([OMPI will fail to compile if you do not have Valgrind version 3.2.0 or later]) ++ opal_memchecker_valgrind_happy=yes]), ++ ], ++ [AC_MSG_WARN([valgrind.h not found]) ++ AC_MSG_WARN([Cannot compile this component])])]) ++ CPPFLAGS="$opal_memchecker_valgrind_save_CPPFLAGS" ++ ++ AS_IF([test "$opal_memchecker_valgrind_happy" = "yes"], ++ [memchecker_valgrind_CPPFLAGS=$opal_memchecker_valgrind_CPPFLAGS ++ $1],[$2]) ++ ++ AC_SUBST([memchecker_valgrind_CPPFLAGS]) ++ ++ OMPI_VAR_SCOPE_POP ++]) ++m4trace:config/mca_m4_config_include.m4:20: -1- m4_include([opal/mca/memcpy/configure.m4]) ++m4trace:opal/mca/memcpy/configure.m4:18: -1- AC_DEFUN([MCA_memcpy_CONFIG], [ ++ memcpy_base_include= ++ ++ # first, compile all the components ++ MCA_CONFIGURE_FRAMEWORK($1, $2, 1) ++ ++ # someone should have set this... ++ if test "$memcpy_base_include" = "" ; then ++ memcpy_base_include="base/memcpy_base_default.h" ++ fi ++ ++ AC_DEFINE_UNQUOTED([MCA_memcpy_IMPLEMENTATION_HEADER], ++ ["opal/mca/memcpy/$memcpy_base_include"], ++ [Header to include for memcpy implementation]) ++]) ++m4trace:config/mca_m4_config_include.m4:21: -1- m4_include([opal/mca/memory/configure.m4]) ++m4trace:opal/mca/memory/configure.m4:23: -1- AC_DEFUN([MCA_memory_CONFIG], [ ++ AC_ARG_WITH([memory-manager], ++ [AC_HELP_STRING([--with-memory-manager=TYPE], ++ [Use TYPE for intercepting memory management ++ calls to control memory pinning.])]) ++ ++ memory_base_found=0 ++ ++ # first, compile all the components ++ MCA_CONFIGURE_FRAMEWORK($1, $2, 1) ++ ++ AC_DEFINE_UNQUOTED([OMPI_MEMORY_HAVE_COMPONENT], [$memory_base_found], ++ [Whether any opal memory mca components were found]) ++]) ++m4trace:config/mca_m4_config_include.m4:22: -1- m4_include([opal/mca/memory/malloc_solaris/configure.m4]) ++m4trace:opal/mca/memory/malloc_solaris/configure.m4:21: -1- AC_DEFUN([MCA_memory_malloc_solaris_COMPILE_MODE], [ ++ AC_MSG_CHECKING([for MCA component $2:$3 compile mode]) ++ $4="static" ++ AC_MSG_RESULT([$$4]) ++]) ++m4trace:opal/mca/memory/malloc_solaris/configure.m4:30: -1- AC_DEFUN([MCA_memory_malloc_solaris_CONFIG], [ ++ OMPI_VAR_SCOPE_PUSH([memory_malloc_solaris_happy], ++ [memory_malloc_solaris_should_use], ++ [memory_malloc_solaris_munmap]) ++ ++ AC_MSG_CHECKING([for Solaris]) ++ ++ case "$host" in ++ *solaris*) ++ ++ AC_MSG_RESULT([yes]) ++ ++ AS_IF([test "$with_memory_manager" = "malloc_solaris"], ++ [memory_malloc_solaris_happy="yes" ++ memory_malloc_solaris_should_use=1], ++ [memory_malloc_solaris_should_use=0 ++ AS_IF([test "$with_memory_manager" = ""], ++ [memory_malloc_solaris_happy="yes"], ++ [memory_malloc_solaris_happy="no"])]) ++ ++ AS_IF([test "$memory_malloc_solaris_happy" = "yes"], ++ [AC_CHECK_HEADER([malloc.h], [], ++ [memory_malloc_solaris_happy="no"])]) ++ ++ AS_IF([test "$memory_malloc_solaris_happy" = "yes"], ++ [memory_malloc_solaris_munmap=0 ++ ++ AC_CHECK_HEADER([sys/syscall.h], ++ [AC_CHECK_FUNCS([syscall], ++ [memory_malloc_solaris_munmap=1])]) ++ ++ AC_CHECK_FUNCS([__munmap], [memory_malloc_solaris_munmap=1]) ++ ++ # only allow dlsym (and therefore add -ldl) if we ++ # really need to ++ AS_IF([test "$memory_malloc_solaris_munmap" = "0"], ++ [memory_malloc_solaris_LIBS_SAVE="$LIBS" ++ AC_CHECK_LIB([dl], ++ [dlsym], ++ [memory_malloc_solaris_LIBS="-ldl" ++ memory_malloc_solaris_munmap=1]) ++ AC_CHECK_FUNCS([dlsym]) ++ LIBS="$memory_malloc_solaris_LIBS_SAVE"]) ++ ++ AS_IF([test "$memory_malloc_solaris_munmap" = "0"], ++ [memory_malloc_solaris_happy="no"])]) ++ ++ AS_IF([test "$memory_malloc_solaris_happy" = "yes"], ++ [memory_malloc_solaris_WRAPPER_EXTRA_LIBS="$memory_malloc_solaris_LIBS"]) ++ ++ AS_IF([test "$memory_malloc_solaris_happy" = "no" -a \ ++ "$memory_malloc_solaris_should_use" = "1"], ++ [AC_MSG_ERROR([malloc_solaris memory management requested but not available. Aborting.])]) ++ ++ AC_SUBST(memory_malloc_solaris_LIBS) ++ ++ ;; ++ *) ++ AC_MSG_RESULT([no]) ++ AS_IF([test "$with_memory_manager" = "malloc_solaris"], ++ [memory_malloc_solaris_happy="no" ++ memory_malloc_solaris_should_use=0]) ++ ;; ++ esac ++ ++ AS_IF([test "$memory_malloc_solaris_happy" = "yes"], ++ [memory_base_found=1 ++ $1], [$2]) ++ ++ OMPI_VAR_SCOPE_POP ++]) ++m4trace:config/mca_m4_config_include.m4:23: -1- m4_include([opal/mca/memory/mallopt/configure.m4]) ++m4trace:opal/mca/memory/mallopt/configure.m4:20: -1- AC_DEFUN([MCA_memory_mallopt_COMPILE_MODE], [ ++ AC_MSG_CHECKING([for MCA component $2:$3 compile mode]) ++ $4="static" ++ AC_MSG_RESULT([$$4]) ++]) ++m4trace:opal/mca/memory/mallopt/configure.m4:30: -1- AC_DEFUN([MCA_memory_mallopt_CONFIG], [ ++ ++ AS_IF([test "$with_memory_manager" = "mallopt"], ++ [memory_mallopt_happy="yes" ++ memory_mallopt_should_use=1], ++ [memory_mallopt_should_use=0 ++ AS_IF([test "$with_memory_manager" = ""], ++ [memory_mallopt_happy="yes"], ++ [memory_mallopt_happy="no"])]) ++ ++ AS_IF([test "$memory_mallopt_happy" = "yes"], ++ [AC_CHECK_HEADER([malloc.h], [], [memory_mallopt_happy="no"])]) ++ ++ AS_IF([test "$memory_mallopt_happy" = "yes"], ++ [AC_CHECK_FUNCS([mallopt], [], [memory_mallopt_happy="no"])]) ++ ++ AS_IF([test "$memory_mallopt_happy" = "yes"], ++ [memory_mallopt_munmap=0 ++ ++ AC_CHECK_HEADER([syscall.h], ++ [AC_CHECK_FUNCS([syscall], [memory_mallopt_munmap=1])]) ++ ++ AC_CHECK_FUNCS([__munmap], [memory_mallopt_munmap=1]) ++ ++ # only allow dlsym (and therefore add -ldl) if we ++ # really need to ++ AS_IF([test "$memory_mallopt_munmap" = "0"], ++ [memory_mallopt_LIBS_SAVE="$LIBS" ++ AC_CHECK_LIB([dl], ++ [dlsym], ++ [memory_mallopt_LIBS="-ldl" ++ memory_mallopt_munmap=1]) ++ AC_CHECK_FUNCS([dlsym]) ++ LIBS="$memory_mallopt_LIBS_SAVE"]) ++ ++ AS_IF([test "$memory_mallopt_munmap" = "0"], ++ [memory_mallopt_happy="no"])]) ++ ++ AS_IF([test "$memory_mallopt_happy" = "yes"], ++ [memory_mallopt_WRAPPER_EXTRA_LIBS="$memory_mallopt_LIBS"]) ++ ++ AS_IF([test "$memory_mallopt_happy" = "no" -a \ ++ "$memory_malloc_hoooks_should_use" = "1"], ++ [AC_MSG_ERROR([mallopt memory management requested but not available. Aborting.])]) ++ ++ AC_SUBST(memory_mallopt_LIBS) ++ ++ AS_IF([test "$memory_mallopt_happy" = "yes"], ++ [memory_base_found=1 ++ $1], [$2]) ++]) ++m4trace:config/mca_m4_config_include.m4:24: -1- m4_include([opal/mca/memory/ptmalloc2/configure.m4]) ++m4trace:opal/mca/memory/ptmalloc2/configure.m4:21: -1- AC_DEFUN([MCA_memory_ptmalloc2_COMPILE_MODE], [ ++ AC_MSG_CHECKING([for MCA component $2:$3 compile mode]) ++ $4="static" ++ AC_MSG_RESULT([$$4]) ++]) ++m4trace:opal/mca/memory/ptmalloc2/configure.m4:28: -1- AC_DEFUN([MCA_memory_ptmalloc2_POST_CONFIG], [ ++ AM_CONDITIONAL([OMPI_WANT_EXTERNAL_PTMALLOC2], ++ [test "$enable_ptmalloc2_internal" != "yes"]) ++]) ++m4trace:opal/mca/memory/ptmalloc2/configure.m4:37: -1- AC_DEFUN([MCA_memory_ptmalloc2_CONFIG], [ ++ AC_ARG_ENABLE([ptmalloc2-internal], ++ [AC_HELP_STRING([--enable-ptmalloc2-internal], ++ [Build ptmalloc2 memory manager into libopen-pal, ++ instead of as separate library. Only has meaning ++ if ptmalloc2 memory component exists])]) ++ ++ AC_MSG_CHECKING([if ptmalloc2 should be part of libopen-pal]) ++ AS_IF([test "$enable_ptmalloc2_internal" = "yes"], ++ [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) ++ ++ ++ AS_IF([test "$with_memory_manager" = "ptmalloc2"], ++ [if test "`echo $host | grep apple-darwin`" != "" ; then ++ AC_MSG_WARN([*** Using ptmalloc with OS X will result in failure.]) ++ AC_MSG_ERROR([*** Aborting to save you the effort]) ++ fi ++ memory_ptmalloc2_happy="yes" ++ memory_ptmalloc2_should_use=1], ++ [memory_ptmalloc2_should_use=0 ++ AS_IF([test "$with_memory_manager" = ""], ++ [memory_ptmalloc2_happy="yes"], ++ [memory_ptmalloc2_happy="no"])]) ++ ++ ++ # Per ticket #227, Intel 9.0 v20051201 on ia64 with optimization ++ # of -O2 or higher will bork ptmalloc2 in strange in mysterious ++ # ways. Doh! So if the compiler vendor is intel and we're on an ++ # ia64 box, run "icc --version" and snarf the version string. If ++ # it's 9.0 and the version is <= 20051201, then disable ptmalloc2. ++ # Executive decision: ignore optimization levels (even though -O1 ++ # and -O0 seem to work). The upgrade to 9.1 is free, so that's a ++ # better path than trying to make a much more complicated test ++ # here. ++ ++ case $host in ++ ia64-*) ++ AS_IF([test "$ompi_c_vendor" = "intel"], ++ [# check for v9.0 <= 20051201 ++ icc_major_ver="`$CC --version | head -n 1 | awk '{ print [$]3 }'`" ++ icc_minor_ver="`$CC --version | head -n 1 | awk '{ print [$]4 }'`" ++ AS_IF([test "$icc_major_ver" = "9.0" -a "`expr $icc_minor_ver \<= 20051201`" = "1"], ++ [memory_ptmalloc2_happy="no" ++ AC_MSG_WARN([*** Detected Intel C compiler v9.0 <= 20051201 on ia64]) ++ AC_MSG_WARN([*** This compiler/platform combination has known problems with ptmalloc2]) ++ AC_MSG_WARN([*** Automatically disabling ptmalloc2])]) ++ unset icc_major_ver icc_minor_ver]) ++ ;; ++ esac ++ ++ AS_IF([test "$memory_ptmalloc2_happy" = "yes"], ++ [# check for malloc.h ++ AC_CHECK_HEADER([malloc.h], ++ [memory_ptmalloc2_happy="yes"], ++ [memory_ptmalloc2_happy="no"])]) ++ ++ AS_IF([test "$memory_ptmalloc2_happy" = "yes"], ++ [# check for init hook symbol ++ AC_CHECK_DECL([__malloc_initialize_hook], ++ [memory_ptmalloc2_happy="yes"], ++ [memory_ptmalloc2_happy="no"], ++ [AC_INCLUDES_DEFAULT ++ #include ])]) ++ ++ # ++ # See if we have sbrk prototyped ++ # ++ AS_IF([test "$memory_ptmalloc2_happy" = "yes"], [AC_CHECK_DECLS([sbrk])]) ++ ++ # ++ # Figure out how we're going to call mmap/munmap for real ++ # ++ AS_IF([test "$memory_ptmalloc2_happy" = "yes"], ++ [memory_ptmalloc2_mmap=0 ++ memory_ptmalloc2_munmap=1 ++ ++ # it's nearly impossible to call mmap from syscall(), so ++ # only go this route if we can't get at munmap any other ++ # way. ++ AC_CHECK_HEADER([syscall.h], ++ [AC_CHECK_FUNCS([syscall], [], [memory_ptmalloc2_munmap=0])]) ++ ++ # Always look for __munmap and __mmap ++ AC_CHECK_FUNCS([__munmap], [memory_ptmalloc2_mmap=1]) ++ AC_CHECK_FUNCS([__mmap]) ++ ++ # only allow dlsym (and therefore add -ldl) if we ++ # really need to ++ AS_IF([test "$memory_ptmalloc2_mmap" = "0"], ++ [memory_ptmalloc2_LIBS_SAVE="$LIBS" ++ AC_CHECK_LIB([dl], ++ [dlsym], ++ [LIBS="$LIBS -ldl" ++ memory_ptmalloc2_LIBS="-ldl" ++ memory_ptmalloc2_mmap=1]) ++ AC_CHECK_FUNCS([dlsym]) ++ LIBS="$memory_ptmalloc2_LIBS_SAVE"]) ++ ++ AS_IF([test "$memory_ptmalloc2_mmap" = "0" -a "$memory_ptmalloc2_munmap" = "0"], ++ [memory_ptmalloc2_happy="no"])]) ++ ++ AS_IF([test "$memory_ptmalloc2_happy" = "yes"], ++ [memory_ptmalloc2_WRAPPER_EXTRA_LIBS="$memory_ptmalloc2_LIBS"]) ++ ++ AS_IF([test "$memory_ptmalloc2_happy" = "no" -a \ ++ "$memory_malloc_hoooks_should_use" = "1"], ++ [AC_MSG_ERROR([ptmalloc2 memory management requested but not available. Aborting.])]) ++ ++ AC_SUBST([memory_ptmalloc2_LIBS]) ++ ++ AS_IF([test "$memory_ptmalloc2_happy" = "yes"], ++ [memory_base_found=1 ++ $1], [$2]) ++]) ++m4trace:config/mca_m4_config_include.m4:25: -1- m4_include([opal/mca/paffinity/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:26: -1- m4_include([opal/mca/paffinity/darwin/configure.m4]) ++m4trace:opal/mca/paffinity/darwin/configure.m4:24: -1- AC_DEFUN([MCA_paffinity_darwin_CONFIG], [ ++ OMPI_VAR_SCOPE_PUSH([paff_darwin_happy]) ++ # check to see if we have ++ # as this is a Darwin-specific thing ++ AC_CHECK_HEADER([mach/mach_host.h], [paff_darwin_happy=yes], [paff_darwin_happy=no]) ++ ++ AS_IF([test "$paff_darwin_happy" = "yes"], [$1], [$2]) ++ OMPI_VAR_SCOPE_POP ++]) ++m4trace:config/mca_m4_config_include.m4:27: -1- m4_include([opal/mca/paffinity/linux/configure.m4]) ++m4trace:opal/mca/paffinity/linux/configure.m4:24: -1- m4_include([opal/mca/paffinity/linux/plpa/config/plpa.m4]) ++m4trace:opal/mca/paffinity/linux/plpa/config/plpa.m4:23: -1- AC_DEFUN([PLPA_INIT], [ ++ # If we used the 2 param variant of PLPA_INIT, then assume the ++ # config prefix is ".". Otherwise, it's $1. ++ m4_ifval([$3], ++ [_PLPA_INIT_COMPAT([$1], [$2], [$3])], ++ [AC_MSG_WARN([The 2-argument form of the PLPA INIT m4 macro is deprecated]) ++ AC_MSG_WARN([It was removed starting with PLPA v1.2]) ++ AC_MSG_ERROR([Cannot continue])]) ++]) ++m4trace:opal/mca/paffinity/linux/plpa/config/plpa.m4:42: -1- AC_DEFUN([_PLPA_INIT_COMPAT], [ ++ AC_REQUIRE([_PLPA_INTERNAL_SETUP]) ++ AC_REQUIRE([AC_PROG_CC]) ++ AC_REQUIRE([AM_PROG_LEX]) ++ AC_REQUIRE([AC_PROG_YACC]) ++ ++ m4_define([plpa_config_prefix],[$1]) ++ ++ # Check for syscall() ++ AC_CHECK_FUNC([syscall], [plpa_config_happy=1], [plpa_config_happy=0]) ++ ++ # Look for syscall.h ++ if test "$plpa_config_happy" = 1; then ++ AC_CHECK_HEADER([sys/syscall.h], [plpa_config_happy=1], [plpa_config_happy=0]) ++ fi ++ ++ # Look for unistd.h ++ if test "$plpa_config_happy" = 1; then ++ AC_CHECK_HEADER([unistd.h], [plpa_config_happy=1], [plpa_config_happy=0]) ++ fi ++ ++ # Check for __NR_sched_setaffinity ++ if test "$plpa_config_happy" = 1; then ++ AC_MSG_CHECKING([for __NR_sched_setaffinity]) ++ if test "$plpa_emulate" = "yes"; then ++ AC_MSG_RESULT([emulated]) ++ AC_DEFINE([__NR_sched_setaffinity], [0], [Emulated value]) ++ else ++ AC_TRY_COMPILE([#include ++#include ], [#ifndef __NR_sched_setaffinity ++#error __NR_sched_setaffinity_not found! ++#endif ++int i = 1;], ++ [AC_MSG_RESULT([yes]) ++ plpa_config_happy=1], ++ [AC_MSG_RESULT([no]) ++ plpa_config_happy=0]) ++ fi ++ fi ++ ++ # Check for __NR_sched_getaffinity (probably overkill, but what ++ # the heck?) ++ if test "$plpa_config_happy" = 1; then ++ AC_MSG_CHECKING([for __NR_sched_getaffinity]) ++ if test "$plpa_emulate" = "yes"; then ++ AC_MSG_RESULT([emulated]) ++ AC_DEFINE([__NR_sched_getaffinity], [0], [Emulated value]) ++ else ++ AC_TRY_COMPILE([#include ++#include ], [#ifndef __NR_sched_getaffinity ++#error __NR_sched_getaffinity_not found! ++#endif ++int i = 1;], ++ [AC_MSG_RESULT([yes]) ++ plpa_config_happy=1], ++ [AC_MSG_RESULT([no]) ++ plpa_config_happy=0]) ++ fi ++ fi ++ ++ # If all was good, do the real init ++ AS_IF([test "$plpa_config_happy" = "1"], ++ [_PLPA_INIT($2, $3)], ++ [$3]) ++ PLPA_DO_AM_CONDITIONALS ++ ++ AC_CONFIG_FILES( ++ plpa_config_prefix[/Makefile] ++ plpa_config_prefix[/config/Makefile] ++ plpa_config_prefix[/src/Makefile] ++ plpa_config_prefix[/src/libplpa/Makefile] ++ plpa_config_prefix[/src/plpa-info/Makefile] ++ plpa_config_prefix[/src/plpa-taskset/Makefile] ++ ) ++ ++ # Cleanup ++ unset plpa_config_happy ++]) ++m4trace:opal/mca/paffinity/linux/plpa/config/plpa.m4:124: -1- AC_DEFUN([PLPA_STANDALONE], [ ++ AC_REQUIRE([_PLPA_INTERNAL_SETUP]) ++ plpa_mode=standalone ++]) ++m4trace:opal/mca/paffinity/linux/plpa/config/plpa.m4:132: -1- AC_DEFUN([PLPA_INCLUDED], [ ++ m4_ifval([$1], ++ [AC_MSG_WARN([The 1-argument form of the PLPA INCLUDED m4 macro is deprecated]) ++ AC_MSG_WARN([It was removed starting with PLPA v1.2]) ++ AC_MSG_ERROR([Cannot continue])]) ++ ++ AC_REQUIRE([_PLPA_INTERNAL_SETUP]) ++ plpa_mode=included ++ PLPA_DISABLE_EXECUTABLES ++]) ++m4trace:opal/mca/paffinity/linux/plpa/config/plpa.m4:164: -1- AC_DEFUN([PLPA_DISABLE_EXECUTABLES], [ ++ AC_REQUIRE([_PLPA_INTERNAL_SETUP]) ++ plpa_executables=no ++]) ++m4trace:opal/mca/paffinity/linux/plpa/config/plpa.m4:172: -1- AC_DEFUN([PLPA_ENABLE_EXECUTABLES], [ ++ AC_REQUIRE([_PLPA_INTERNAL_SETUP]) ++ plpa_executables=yes ++]) ++m4trace:opal/mca/paffinity/linux/plpa/config/plpa.m4:180: -1- AC_DEFUN([PLPA_SET_SYMBOL_PREFIX], [ ++ AC_REQUIRE([_PLPA_INTERNAL_SETUP]) ++ plpa_symbol_prefix_value=$1 ++]) ++m4trace:opal/mca/paffinity/linux/plpa/config/plpa.m4:188: -1- AC_DEFUN([_PLPA_INTERNAL_SETUP], [ ++ ++ AC_ARG_ENABLE([emulate], ++ AC_HELP_STRING([--enable-emulate], ++ [Emulate __NR_sched_setaffinity and __NR_sched_getaffinity, to allow building on non-Linux systems (for testing)])) ++ if test "$enable_emulate" = "yes"; then ++ plpa_emulate=yes ++ else ++ plpa_emulate=no ++ fi ++ ++ # Build and install the executables or no? ++ AC_ARG_ENABLE([executables], ++ AC_HELP_STRING([--disable-executables], ++ [Using --disable-executables disables building and installing the PLPA executables])) ++ if test "$enable_executables" = "yes" -o "$enable_executables" = ""; then ++ plpa_executables=yes ++ else ++ plpa_executables=no ++ fi ++ ++ # Included mode, or standalone? ++ AC_ARG_ENABLE([included-mode], ++ AC_HELP_STRING([--enable-included-mode], ++ [Using --enable-included-mode puts the PLPA into "included" mode. The default is --disable-included-mode, meaning that the PLPA is in "standalone" mode.])) ++ if test "$enable_included_mode" = "yes"; then ++ plpa_mode=included ++ if test "$enable_executables" = ""; then ++ plpa_executables=no ++ fi ++ else ++ plpa_mode=standalone ++ fi ++ ++dnl JMS: No fortran bindings yet ++dnl # Fortran bindings, or no? ++dnl AC_ARG_ENABLE([fortran], ++dnl AC_HELP_STRING([--disable-fortran], ++dnl [Using --disable-fortran disables building the Fortran PLPA API bindings])) ++dnl if test "$enable_fortran" = "yes" -o "$enable_fortran" = ""; then ++dnl plpa_fortran=yes ++dnl else ++dnl plpa_fortran=no ++dnl fi ++ ++ # Change the symbol prefix? ++ AC_ARG_WITH([plpa-symbol-prefix], ++ AC_HELP_STRING([--with-plpa-symbol-prefix=STRING], ++ [STRING can be any valid C symbol name. It will be prefixed to all public PLPA symbols. Default: "plpa_"])) ++ if test "$with_plpa_symbol_prefix" = ""; then ++ plpa_symbol_prefix_value=plpa_ ++ else ++ plpa_symbol_prefix_value=$with_plpa_symbol_prefix ++ fi ++ ++ # Debug mode? ++ AC_ARG_ENABLE([debug], ++ AC_HELP_STRING([--enable-debug], ++ [Using --enable-debug enables various maintainer-level debugging controls. This option is not recomended for end users.])) ++ if test "$enable_debug" = "yes"; then ++ plpa_debug=1 ++ plpa_debug_msg="enabled" ++ elif test "$enable_debug" = "" -a -d .svn; then ++ plpa_debug=1 ++ plpa_debug_msg="enabled (SVN checkout default)" ++ else ++ plpa_debug=0 ++ plpa_debug_msg="disabled" ++ fi ++]) ++m4trace:opal/mca/paffinity/linux/plpa/config/plpa.m4:262: -1- AC_DEFUN([_PLPA_INIT], [ ++ AC_REQUIRE([_PLPA_INTERNAL_SETUP]) ++ ++ # Are we building as standalone or included? ++ AC_MSG_CHECKING([for PLPA building mode]) ++ AC_MSG_RESULT([$plpa_mode]) ++ ++ # Debug mode? ++ AC_MSG_CHECKING([if want PLPA maintainer support]) ++ AC_DEFINE_UNQUOTED(PLPA_DEBUG, [$plpa_debug], [Whether we are in debugging more or not]) ++ AC_MSG_RESULT([$plpa_debug_msg]) ++ ++ # We need to set a path for header, etc files depending on whether ++ # we're standalone or included. this is taken care of by PLPA_INCLUDED. ++ ++ AC_MSG_CHECKING([for PLPA config prefix]) ++ AC_MSG_RESULT(plpa_config_prefix) ++ ++ # Note that plpa_config.h *MUST* be listed first so that it ++ # becomes the "main" config header file. Any AM_CONFIG_HEADERs ++ # after that (plpa.h) will only have selective #defines replaced, ++ # not the entire file. ++ AM_CONFIG_HEADER(plpa_config_prefix[/src/libplpa/plpa_config.h]) ++ AM_CONFIG_HEADER(plpa_config_prefix[/src/libplpa/plpa.h]) ++ ++ # What prefix are we using? ++ AC_MSG_CHECKING([for PLPA symbol prefix]) ++ AC_DEFINE_UNQUOTED(PLPA_SYM_PREFIX, [$plpa_symbol_prefix_value], ++ [The PLPA symbol prefix]) ++ # Ensure to [] escape the whole next line so that we can get the ++ # proper tr tokens ++ [plpa_symbol_prefix_value_caps="`echo $plpa_symbol_prefix_value | tr '[:lower:]' '[:upper:]'`"] ++ AC_DEFINE_UNQUOTED(PLPA_SYM_PREFIX_CAPS, [$plpa_symbol_prefix_value_caps], ++ [The PLPA symbol prefix in all caps]) ++ AC_MSG_RESULT([$plpa_symbol_prefix_value]) ++ ++dnl JMS: No fortran bindings yet ++dnl # Check for fortran ++dnl AC_MSG_CHECKING([whether to build PLPA Fortran API]) ++dnl AC_MSG_RESULT([$plpa_fortran]) ++ ++ # Check whether to build the exectuables or not ++ AC_MSG_CHECKING([whether to build PLPA executables]) ++ AC_MSG_RESULT([$plpa_executables]) ++ ++ # If we're building executables, we need some things for plpa-taskset ++ if test "$plpa_executables" = "yes"; then ++ AC_C_INLINE ++ fi ++ ++ # Success ++ $1 ++]) ++m4trace:opal/mca/paffinity/linux/plpa/config/plpa.m4:321: -1- AC_DEFUN([PLPA_DO_AM_CONDITIONALS], [ ++ if test "$plpa_did_am_conditionals" != "yes"; then ++ AM_CONDITIONAL([PLPA_BUILD_STANDALONE], [test "$plpa_mode" = "standalone"]) ++dnl JMS: No fortran bindings yet ++dnl AM_CONDITIONAL(PLPA_BUILD_FORTRAN, [test "$plpa_fortran" = "yes"]) ++ AM_CONDITIONAL(PLPA_BUILD_EXECUTABLES, [test "$plpa_executables" = "yes"]) ++ fi ++ plpa_did_am_conditionals=yes ++]) ++m4trace:opal/mca/paffinity/linux/configure.m4:26: -1- AC_DEFUN([MCA_paffinity_linux_POST_CONFIG], [ ++ PLPA_DO_AM_CONDITIONALS ++]) ++m4trace:opal/mca/paffinity/linux/configure.m4:30: -1- AC_DEFUN([MCA_paffinity_linux_CONFIG], [ ++ OMPI_VAR_SCOPE_PUSH([PLPA_VERSION]) ++ ++ # Setup PLPA ++ PLPA_SET_SYMBOL_PREFIX([opal_paffinity_linux_plpa_]) ++ PLPA_INCLUDED ++ PLPA_INIT([opal/mca/paffinity/linux/plpa], ++ [AC_MSG_CHECKING([for PLPA version]) ++ PLPA_VERSION=`$srcdir/opal/mca/paffinity/linux/plpa/config/plpa_get_version.sh $srcdir/opal/mca/paffinity/linux/plpa/VERSION` ++ AC_DEFINE_UNQUOTED([PAFFINITY_LINUX_PLPA_VERSION], ++ ["$PLPA_VERSION"], ++ [Version of PLPA embedded in OMPI]) ++ AC_MSG_RESULT([$PLPA_VERSION]) ++ $1], ++ [$2]) ++ ++ OMPI_VAR_SCOPE_POP ++]) ++m4trace:config/mca_m4_config_include.m4:28: -1- m4_include([opal/mca/paffinity/posix/configure.m4]) ++m4trace:opal/mca/paffinity/posix/configure.m4:24: -1- AC_DEFUN([MCA_paffinity_posix_CONFIG], [ ++ OMPI_VAR_SCOPE_PUSH([paff_posix_happy]) ++ # Check to see if we have ++ AC_CHECK_HEADER([unistd.h], [paff_posix_happy=yes], [paff_posix_happy=no]) ++ ++ # Check to see if we have _SC_NPROCESSORS_ONLN ++ AS_IF([test "$paff_posix_happy" = "yes"], ++ [AC_MSG_CHECKING([for _SC_NPROCESSORS_ONLN]) ++ AS_IF([test "$OMPI_HAVE__SC_NPROCESSORS_ONLN" = "1"], ++ [paff_posix_happy=yes], [paff_posix_happy=no]) ++ AC_MSG_RESULT([(cached) $paff_posix_happy])]) ++ ++ AS_IF([test "$paff_posix_happy" = "yes"], [$1], [$2]) ++ OMPI_VAR_SCOPE_POP ++]) ++m4trace:config/mca_m4_config_include.m4:29: -1- m4_include([opal/mca/paffinity/solaris/configure.m4]) ++m4trace:opal/mca/paffinity/solaris/configure.m4:24: -1- AC_DEFUN([MCA_paffinity_solaris_CONFIG], [ ++ OMPI_VAR_SCOPE_PUSH([paff_solaris_happy]) ++ #check to see if we have ++ AC_CHECK_HEADER([sys/procset.h], [paff_solaris_happy=yes], [paff_solaris_happy=no]) ++ ++ if test "$paff_solaris_happy" = "yes"; then ++ # check for processor_bind() ++ AC_CHECK_FUNC([processor_bind],[paff_solaris_happy=yes],[paff_solaris_happy=no]) ++ fi ++ ++ if test "$paff_solaris_happy" = "yes"; then ++ # check for whether header has P_PID defined ++ AC_MSG_CHECKING([if P_PID is defined]) ++ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[int i = P_PID;]])], ++ [paff_solaris_happy=yes],[paff_solaris_happy=no]) ++ AC_MSG_RESULT([$paff_solaris_happy ]) ++ fi ++ ++ AS_IF([test "$paff_solaris_happy" = "yes"], [$1], [$2]) ++ OMPI_VAR_SCOPE_POP ++]) ++m4trace:config/mca_m4_config_include.m4:30: -1- m4_include([opal/mca/paffinity/windows/configure.m4]) ++m4trace:opal/mca/paffinity/windows/configure.m4:22: -1- AC_DEFUN([MCA_paffinity_windows_CONFIG], [ ++ # check for GetProcessAffinityMask, which is defined only for some ++ # flavors of Windows. We should first check that the function is defined, ++ # and then check for it's presence in the kernel32 library. ++ AC_MSG_CHECKING(for working GetProcessAffinityMask) ++ AC_TRY_RUN( [#include ++int main( int argc, char** argv ) { ++ DWORD aff, mask; ++ GetProcessAffinityMask( NULL, &aff, &mask ); ++ return 0; }], ++ [AC_MSG_RESULT([yes]) ++ $1], ++ [AC_MSG_RESULT([no]) ++ $2], ++ [AC_COMPILE_IFELSE([#include ++int main( int argc, char** argv ) { ++ DWORD aff, mask; ++ GetProcessAffinityMask( NULL, &aff, &mask ); ++ return 0; }], ++ [AC_MSG_RESULT([yes]) ++ $1], ++ [AC_MSG_RESULT([no]) ++ $2])]) ++]) ++m4trace:config/mca_m4_config_include.m4:31: -1- m4_include([opal/mca/timer/configure.m4]) ++m4trace:opal/mca/timer/configure.m4:23: -1- AC_DEFUN([MCA_timer_CONFIG], [ ++ timer_base_include= ++ ++ # first, compile all the components ++ MCA_CONFIGURE_FRAMEWORK($1, $2, 1) ++ ++ # someone should have set this... ++ if test "$timer_base_include" = "" ; then ++ timer_base_include="base/timer_base_null.h" ++ fi ++ ++ AC_DEFINE_UNQUOTED([MCA_timer_IMPLEMENTATION_HEADER], ++ ["opal/mca/timer/$timer_base_include"], ++ [Header to include for timer implementation]) ++]) ++m4trace:config/mca_m4_config_include.m4:32: -1- m4_include([opal/mca/timer/aix/configure.m4]) ++m4trace:opal/mca/timer/aix/configure.m4:20: -1- AC_DEFUN([MCA_timer_aix_COMPILE_MODE], [ ++ AC_MSG_CHECKING([for MCA component $2:$3 compile mode]) ++ $4="static" ++ AC_MSG_RESULT([$$4]) ++]) ++m4trace:opal/mca/timer/aix/configure.m4:30: -1- AC_DEFUN([MCA_timer_aix_CONFIG], [ ++ AC_ARG_WITH([timer], ++ [AC_HELP_STRING([--with-timer=TYPE], ++ [Build high resolution timer component TYPE])]) ++ ++ AS_IF([test "$with_timer" = "aix"], ++ [timer_aix_happy="yes" ++ timer_aix_should_use=1], ++ [timer_aix_should_use=0 ++ AS_IF([test "$with_timer" = ""], ++ [timer_aix_happy="yes"], ++ [timer_aix_happy="no"])]) ++ ++ AS_IF([test "$timer_aix_happy" = "yes"], ++ [AC_CHECK_FUNC([time_base_to_time], ++ [timer_aix_happy="yes"], ++ [timer_aix_happy="no"])]) ++ ++ # look to see if -lpmapi is available ++ timer_aix_LIBS= ++ timer_aix_LIBS_SAVE="$LIBS" ++ AS_IF([test "$timer_aix_happy" = "yes"], ++ [AC_CHECK_LIB([pmapi], ++ [pm_cycles], ++ [LIBS="$LIBS -lpmapi" ++ timer_aix_LIBS="-lpmapi"], ++ [timer_aix_LIBS=""])]) ++ ++ # get us a HAVE_PM_CYCLES #define ++ AS_IF([test "$timer_aix_happy" = "yes"], ++ [AC_CHECK_FUNCS([pm_cycles]) ++ AC_CHECK_HEADERS([pmapi.h])]) ++ LIBS="$timer_aix_LIBS_SAVE" ++ ++ AS_IF([test "$timer_aix_happy" = "no" -a \ ++ "$timer_aix_should_use" = "1"], ++ [AC_MSG_ERROR([AIX timer requested but not available. Aborting.])]) ++ ++ AC_SUBST(timer_aix_LIBS) ++ ++ AS_IF([test "$timer_aix_happy" = "yes"], ++ [timer_aix_WRAPPER_EXTRA_LIBS="$timer_aix_LIBS" ++ timer_base_include="aix/timer_aix.h" ++ $1], ++ [$2]) ++]) ++m4trace:config/mca_m4_config_include.m4:33: -1- m4_include([opal/mca/timer/altix/configure.m4]) ++m4trace:opal/mca/timer/altix/configure.m4:20: -1- AC_DEFUN([MCA_timer_altix_COMPILE_MODE], [ ++ AC_MSG_CHECKING([for MCA component $2:$3 compile mode]) ++ $4="static" ++ AC_MSG_RESULT([$$4]) ++]) ++m4trace:opal/mca/timer/altix/configure.m4:30: -1- AC_DEFUN([MCA_timer_altix_CONFIG], [ ++ AC_ARG_WITH([timer], ++ [AC_HELP_STRING([--with-timer=TYPE], ++ [Build high resolution timer component TYPE])]) ++ ++ AS_IF([test "$with_timer" = "altix"], ++ [timer_altix_happy="yes" ++ timer_altix_should_use=1], ++ [timer_altix_should_use=0 ++ AS_IF([test "$with_timer" = ""], ++ [timer_altix_happy="yes"], ++ [timer_altix_happy="no"])]) ++ ++ AS_IF([test "$timer_altix_happy" = "yes"], ++ [AC_CHECK_HEADER([sn/mmtimer.h], ++ [timer_altix_happy="yes"], ++ [timer_altix_happy="no"])]) ++ ++ AS_IF([test "$timer_altix_happy" = "yes"], ++ [AC_CHECK_HEADERS([sys/ioctl.h sys/mman.h])]) ++ ++ AS_IF([test "$timer_altix_happy" = "yes"], ++ [AC_CACHE_CHECK([if MM timer can be opened], ++ [ompi_cv_mm_timer_mmap], ++ [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ ++#include ++#include ++#include ++#include ++#include ++#include ++], [ ++ int fd; ++ fd = open(MMTIMER_FULLNAME, O_RDONLY); ++ if (-1 ==fd) return 1;])], ++ [ompi_cv_mm_timer_mmap="yes"], ++ [ompi_cv_mm_timer_mmap="no"])]) ++ AS_IF([test "$ompi_cv_mm_timer_mmap" = "yes"], ++ [timer_altix_happy="yes"], ++ [timer_altix_happy="no"])]) ++ ++ AS_IF([test "$timer_altix_happy" = "no" -a \ ++ "$timer_altix_should_use" = "1"], ++ [AC_MSG_ERROR([Altix timer requested but not available. Aborting.])]) ++ ++ AS_IF([test "$timer_altix_happy" = "yes"], ++ [timer_base_include="altix/timer_altix.h" ++ $1], ++ [$2]) ++]) ++m4trace:config/mca_m4_config_include.m4:34: -1- m4_include([opal/mca/timer/catamount/configure.m4]) ++m4trace:opal/mca/timer/catamount/configure.m4:20: -1- AC_DEFUN([MCA_timer_catamount_COMPILE_MODE], [ ++ AC_MSG_CHECKING([for MCA component $2:$3 compile mode]) ++ $4="static" ++ AC_MSG_RESULT([$$4]) ++]) ++m4trace:opal/mca/timer/catamount/configure.m4:30: -1- AC_DEFUN([MCA_timer_catamount_CONFIG], [ ++ AC_ARG_WITH([timer], ++ [AC_HELP_STRING([--with-timer=TYPE], ++ [Build high resolution timer component TYPE])]) ++ ++ AS_IF([test "$with_timer" = "catamount"], ++ [timer_catamount_happy="yes" ++ timer_catamount_should_use=1], ++ [timer_catamount_should_use=0 ++ AS_IF([test "$with_timer" = ""], ++ [timer_catamount_happy="yes"], ++ [timer_catamount_happy="no"])]) ++ ++ AS_IF([test "$timer_catamount_happy" = "yes"], ++ [AC_CHECK_HEADERS([catamount/dclock.h], [], ++ [timer_catamount_happy=no])]) ++ ++ AS_IF([test "$timer_catamount_happy" = "yes"], ++ [AC_CACHE_CHECK([for __cpu_mhz], ++ [ompi_cv_have___cpu_mhz], ++ [AC_LINK_IFELSE([AC_LANG_PROGRAM([ ++#include ++ ],[ ++unsigned int a = __cpu_mhz; ++ ])], ++ [ompi_cv_have___cpu_mhz=yes], ++ [ompi_cv_have___cpu_mhz=no])]) ++ AS_IF([test "$ompi_cv_have___cpu_mhz" = "no"], ++ [timer_catamount_happy="no"])]) ++ ++ AS_IF([test "$timer_catamount_happy" = "no" -a \ ++ "$timer_catamount_should_use" = "1"], ++ [AC_MSG_ERROR([Catamount timer requested but not available. Aborting.])]) ++ ++ AS_IF([test "$timer_catamount_happy" = "yes"], ++ [timer_base_include="catamount/timer_catamount.h" ++ $1], ++ [$2]) ++]) ++m4trace:config/mca_m4_config_include.m4:35: -1- m4_include([opal/mca/timer/darwin/configure.m4]) ++m4trace:opal/mca/timer/darwin/configure.m4:20: -1- AC_DEFUN([MCA_timer_darwin_COMPILE_MODE], [ ++ AC_MSG_CHECKING([for MCA component $2:$3 compile mode]) ++ $4="static" ++ AC_MSG_RESULT([$$4]) ++]) ++m4trace:opal/mca/timer/darwin/configure.m4:30: -1- AC_DEFUN([MCA_timer_darwin_CONFIG], [ ++ AC_ARG_WITH([timer], ++ [AC_HELP_STRING([--with-timer=TYPE], ++ [Build high resolution timer component TYPE])]) ++ ++ AS_IF([test "$with_timer" = "darwin"], ++ [timer_darwin_happy="yes" ++ timer_darwin_should_use=1], ++ [timer_darwin_should_use=0 ++ AS_IF([test "$with_timer" = ""], ++ [timer_darwin_happy="yes"], ++ [timer_darwin_happy="no"])]) ++ ++ AS_IF([test "$timer_darwin_happy" = "yes"], ++ [AC_CHECK_HEADERS([mach/mach_time.h]) ++ AC_CHECK_FUNC([mach_absolute_time], ++ [timer_darwin_happy="yes"], ++ [timer_darwin_happy="no"])]) ++ ++ AS_IF([test "$timer_darwin_happy" = "no" -a \ ++ "$timer_darwin_should_use" = "1"], ++ [AC_MSG_ERROR([Darwin timer requested but not available. Aborting.])]) ++ ++ AS_IF([test "$timer_darwin_happy" = "yes"], ++ [timer_base_include="darwin/timer_darwin.h" ++ $1], ++ [$2]) ++]) ++m4trace:config/mca_m4_config_include.m4:36: -1- m4_include([opal/mca/timer/linux/configure.m4]) ++m4trace:opal/mca/timer/linux/configure.m4:20: -1- AC_DEFUN([MCA_timer_linux_COMPILE_MODE], [ ++ AC_MSG_CHECKING([for MCA component $2:$3 compile mode]) ++ $4="static" ++ AC_MSG_RESULT([$$4]) ++]) ++m4trace:opal/mca/timer/linux/configure.m4:30: -1- AC_DEFUN([MCA_timer_linux_CONFIG], [ ++ AC_ARG_WITH([timer], ++ [AC_HELP_STRING([--with-timer=TYPE], ++ [Build high resolution timer component TYPE])]) ++ ++ AS_IF([test "$with_timer" = "linux"], ++ [timer_linux_happy="yes" ++ timer_linux_should_use=1], ++ [timer_linux_should_use=0 ++ AS_IF([test "$with_timer" = ""], ++ [timer_linux_happy="yes"], ++ [timer_linux_happy="no"])]) ++ ++ case "${host}" in ++ i?86-*|x86_64*|ia64-*|powerpc-*|powerpc64-*|sparc*-*) ++ AS_IF([test "$timer_linux_happy" = "yes"], ++ [AS_IF([test -r "/proc/cpuinfo"], ++ [timer_linux_happy="yes"], ++ [timer_linux_happy="no"])]) ++ ;; ++ *) ++ timer_linux_happy="no" ++ ;; ++ esac ++ ++ AS_IF([test "$timer_linux_happy" = "no" -a \ ++ "$timer_linux_should_use" = "1"], ++ [AC_MSG_ERROR([Linux timer requested but not available. Aborting.])]) ++ ++ AS_IF([test "$timer_linux_happy" = "yes"], ++ [timer_base_include="linux/timer_linux.h" ++ $1], ++ [$2]) ++]) ++m4trace:config/mca_m4_config_include.m4:37: -1- m4_include([opal/mca/timer/solaris/configure.m4]) ++m4trace:opal/mca/timer/solaris/configure.m4:20: -1- AC_DEFUN([MCA_timer_solaris_COMPILE_MODE], [ ++ AC_MSG_CHECKING([for MCA component $2:$3 compile mode]) ++ $4="static" ++ AC_MSG_RESULT([$$4]) ++]) ++m4trace:opal/mca/timer/solaris/configure.m4:30: -1- AC_DEFUN([MCA_timer_solaris_CONFIG], [ ++ AC_ARG_WITH([timer], ++ [AC_HELP_STRING([--with-timer=TYPE], ++ [Build high resolution timer component TYPE])]) ++ ++ AS_IF([test "$with_timer" = "solaris"], ++ [timer_solaris_happy="yes" ++ timer_solaris_should_use=1], ++ [timer_solaris_should_use=0 ++ AS_IF([test "$with_timer" = ""], ++ [timer_solaris_happy="yes"], ++ [timer_solaris_happy="no"])]) ++ ++ AS_IF([test "$timer_solaris_happy" = "yes"], ++ [AC_CHECK_FUNC([gethrtime], ++ [timer_solaris_happy="yes"], ++ [timer_solaris_happy="no"])]) ++ ++ AS_IF([test "$timer_solaris_happy" = "no" -a \ ++ "$timer_solaris_should_use" = "1"], ++ [AC_MSG_ERROR([Solaris timer requested but not available. Aborting.])]) ++ ++ AS_IF([test "$timer_solaris_happy" = "yes"], ++ [timer_base_include="solaris/timer_solaris.h" ++ $1], ++ [$2]) ++]) ++m4trace:config/mca_m4_config_include.m4:38: -1- m4_include([opal/mca/timer/windows/configure.m4]) ++m4trace:opal/mca/timer/windows/configure.m4:20: -1- AC_DEFUN([MCA_timer_windows_COMPILE_MODE], [ ++ AC_MSG_CHECKING([for MCA component $2:$3 compile mode]) ++ $4="static" ++ AC_MSG_RESULT([$$4]) ++]) ++m4trace:opal/mca/timer/windows/configure.m4:30: -1- AC_DEFUN([MCA_timer_windows_CONFIG], [ ++ AC_ARG_WITH([timer], ++ [AC_HELP_STRING([--with-timer=TYPE], ++ [Build high resolution timer component TYPE])]) ++ ++ AS_IF([test "$with_timer" = "windows"], ++ [timer_windows_happy="yes" ++ timer_windows_should_use=1], ++ [timer_windows_should_use=0 ++ AS_IF([test "$with_timer" = ""], ++ [timer_windows_happy="yes"], ++ [timer_windows_happy="no"])]) ++ ++ AS_IF([test "$timer_windows_happy" = "yes"], ++ [AC_TRY_COMPILE([#include ], ++ [LARGE_INTEGER now; ++ QueryPerformanceCounter( &now );], ++ [timer_windows_happy="yes"], ++ [timer_windows_happy="no"])]) ++ ++ AS_IF([test "$timer_windows_happy" = "no" -a \ ++ "$timer_windows_should_use" = "1"], ++ [AC_MSG_ERROR([Windows timer requested but not available. Aborting.])]) ++ ++ AS_IF([test "$timer_windows_happy" = "yes"], ++ [timer_base_include="windows/timer_windows.h" ++ $1], ++ [$2]) ++]) ++m4trace:config/mca_m4_config_include.m4:39: -1- m4_include([orte/mca/ess/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:40: -1- m4_include([orte/mca/ess/alps/configure.m4]) ++m4trace:orte/mca/ess/alps/configure.m4:22: -1- AC_DEFUN([MCA_ess_alps_CONFIG], [ ++ OMPI_CHECK_ALPS([ess_alps], ++ [AC_CHECK_FUNC([cnos_get_rank], [$1], [$2])], ++ [$2]) ++]) ++m4trace:config/mca_m4_config_include.m4:41: -1- m4_include([orte/mca/ess/cnos/configure.m4]) ++m4trace:orte/mca/ess/cnos/configure.m4:22: -1- AC_DEFUN([MCA_ess_cnos_CONFIG], [ ++ # check for cnos functions ++ # a bit of a hack,,, we don't want ess_cnos if alps ++ # was requested, and we can't rely on build priority because ++ # ess_alps uses priorty 10 so that ess_hnp is built as well. ++ AC_CHECK_FUNC([cnos_get_rank], ++ [OMPI_CHECK_ALPS([ess_cnos], [$2], [$1])], ++ [$2]) ++]) ++m4trace:config/mca_m4_config_include.m4:42: -1- m4_include([orte/mca/ess/env/configure.m4]) ++m4trace:orte/mca/ess/env/configure.m4:13: -1- AC_DEFUN([MCA_ess_env_CONFIG], [$1]) ++m4trace:config/mca_m4_config_include.m4:43: -1- m4_include([orte/mca/ess/hnp/configure.m4]) ++m4trace:orte/mca/ess/hnp/configure.m4:13: -1- AC_DEFUN([MCA_ess_hnp_CONFIG], [$1]) ++m4trace:config/mca_m4_config_include.m4:44: -1- m4_include([orte/mca/ess/lsf/configure.m4]) ++m4trace:orte/mca/ess/lsf/configure.m4:23: -1- AC_DEFUN([MCA_ess_lsf_CONFIG], [ ++ OMPI_CHECK_LSF([ess_lsf], [ess_lsf_good=1], [ess_lsf_good=0]) ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ AS_IF([test "$ess_lsf_good" = "1"], ++ [ess_lsf_WRAPPER_EXTRA_LDFLAGS="$ess_lsf_LDFLAGS" ++ ess_lsf_WRAPPER_EXTRA_LIBS="$ess_lsf_LIBS" ++ $1], ++ [$2]) ++ ++ # set build flags to use in makefile ++ AC_SUBST([ess_lsf_CPPFLAGS]) ++ AC_SUBST([ess_lsf_LDFLAGS]) ++ AC_SUBST([ess_lsf_LIBS]) ++]) ++m4trace:config/mca_m4_config_include.m4:45: -1- m4_include([orte/mca/ess/portals_utcp/configure.m4]) ++m4trace:orte/mca/ess/portals_utcp/configure.m4:24: -1- AC_DEFUN([MCA_ess_portals_utcp_CONFIG], [ ++ # save compiler flags so that we don't alter them for later ++ # components. ++ ess_portals_utcp_save_CPPFLAGS="$CPPFLAGS" ++ ess_portals_utcp_save_LDFLAGS="$LDFLAGS" ++ ess_portals_utcp_save_LIBS="$LIBS" ++ ++ # allow user a way to say where the Portals installation is ++ AC_ARG_WITH(portals, ++ AC_HELP_STRING([--with-portals=DIR], ++ [Specify the installation directory of PORTALS])) ++ ++ AS_IF([test -n "$with_portals"], ++ [AS_IF([test -d "$with_portals/include"], ++ [ess_portals_utcp_CPPFLAGS="-I$with_portals/include" ++ CPPFLAGS="$CPPFLAGS $ess_portals_utcp_CPPFLAGS"], []) ++ AS_IF([test -d "$with_portals/lib"], ++ [ess_portals_utcp_LDFLAGS="-L$with_portals/lib" ++ LDFLAGS="$LDFLAGS $ess_portals_utcp_LDFLAGS"], [])]) ++ ++ # Try to find all the portals libraries (this is not fun!) ++ AC_ARG_WITH(portals-libs, ++ AC_HELP_STRING([--with-portals-libs=LIBS], ++ [Libraries to link with for portals])) ++ if test -n "$with_portals_libs" ; then ++ ess_portals_utcp_LIBS="" ++ for lib in $with_portals_libs ; do ++ ess_portals_utcp_LIBS="$ess_portals_utcp_LIBS -l$lib" ++ done ++ fi ++ ++ ess_portals_utcp_LIBS="-lp3utcp -lp3api -lp3lib -lp3rt -lp3utcp" ++ ++ # check for portals ++ LIBS="$LIBS $ess_portals_utcp_LIBS" ++ AC_MSG_CHECKING([for PtlGetRank]) ++ AC_LINK_IFELSE([AC_LANG_PROGRAM([#include ++#include ++#include ++#include ++#include ++FILE *utcp_api_out; ++FILE *utcp_lib_out;], ++ [unsigned int nprocs, rank; ++int dummy; ++PtlInit(&dummy); ++PtlNIInit(PTL_IFACE_DEFAULT, PTL_PID_ANY, NULL, NULL, NULL); ++PtlGetRank(PTL_INVALID_HANDLE, &rank, &nprocs);])], ++ [AC_MSG_RESULT([yes]) ++ $1], ++ [AC_MSG_RESULT([no]) ++ $2]) ++ ++ # we don't actually need the Portals code for this component, ++ # so don't link against them... ++ ess_portals_utcp_CPPFLAGS= ++ ess_portals_utcp_LDFLAGS= ++ ess_portals_utcp_LIBS= ++ ++ # substitute in the things needed to build Portals ++ AC_SUBST([ess_portals_utcp_CPPFLAGS]) ++ AC_SUBST([ess_portals_utcp_LDFLAGS]) ++ AC_SUBST([ess_portals_utcp_LIBS]) ++ ++ # reset the flags for the next test ++ CPPFLAGS="$ess_portals_utcp_save_CPPFLAGS" ++ LDFLAGS="$ess_portals_utcp_save_LDFLAGS" ++ LIBS="$ess_portals_utcp_save_LIBS" ++]) ++m4trace:config/mca_m4_config_include.m4:46: -1- m4_include([orte/mca/ess/singleton/configure.m4]) ++m4trace:orte/mca/ess/singleton/configure.m4:13: -1- AC_DEFUN([MCA_ess_singleton_CONFIG], [$1]) ++m4trace:config/mca_m4_config_include.m4:47: -1- m4_include([orte/mca/ess/slurm/configure.m4]) ++m4trace:orte/mca/ess/slurm/configure.m4:22: -1- AC_DEFUN([MCA_ess_slurm_CONFIG], [ ++ OMPI_CHECK_SLURM([ess_slurm], [ess_slurm_good=1], [ess_slurm_good=0]) ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ AS_IF([test "$ess_slurm_good" = "1"], ++ [ess_slurm_WRAPPER_EXTRA_LDFLAGS="$ess_slurm_LDFLAGS" ++ ess_slurm_WRAPPER_EXTRA_LIBS="$ess_slurm_LIBS" ++ $1], ++ [$2]) ++ ++ # set build flags to use in makefile ++ AC_SUBST([ess_slurm_CPPFLAGS]) ++ AC_SUBST([ess_slurm_LDFLAGS]) ++ AC_SUBST([ess_slurm_LIBS]) ++]) ++m4trace:config/mca_m4_config_include.m4:48: -1- m4_include([orte/mca/ess/tool/configure.m4]) ++m4trace:orte/mca/ess/tool/configure.m4:13: -1- AC_DEFUN([MCA_ess_tool_CONFIG], [$1]) ++m4trace:config/mca_m4_config_include.m4:49: -1- m4_include([orte/mca/grpcomm/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:50: -1- m4_include([orte/mca/grpcomm/bad/configure.m4]) ++m4trace:orte/mca/grpcomm/bad/configure.m4:13: -1- AC_DEFUN([MCA_grpcomm_bad_CONFIG], [$1]) ++m4trace:config/mca_m4_config_include.m4:51: -1- m4_include([orte/mca/grpcomm/basic/configure.m4]) ++m4trace:orte/mca/grpcomm/basic/configure.m4:13: -1- AC_DEFUN([MCA_grpcomm_basic_CONFIG], [$1]) ++m4trace:config/mca_m4_config_include.m4:52: -1- m4_include([orte/mca/grpcomm/cnos/configure.m4]) ++m4trace:orte/mca/grpcomm/cnos/configure.m4:22: -1- AC_DEFUN([MCA_grpcomm_cnos_CONFIG], [ ++ grpcomm_cnos_happy="no" ++ # see if we should enable super secret utcp support ++ if test "$with_grpcomm_cnos" = "utcp" ; then ++ grpcomm_cnos_happy="yes" ++ grpcomm_cnos_barrier=0 ++ else ++ # check for cnos functions ++ AC_CHECK_FUNC([cnos_barrier], ++ [grpcomm_cnos_happy="yes" ++ grpcomm_cnos_barrier=1], ++ [grpcomm_cnos_happy="no" ++ grpcomm_cnos_barrier=0]) ++ fi ++ ++ AC_DEFINE_UNQUOTED([OMPI_GRPCOMM_CNOS_HAVE_BARRIER], [$grpcomm_cnos_barrier], ++ [whether to use cnos_barrier or not]) ++ AS_IF([test "$grpcomm_cnos_happy" = "yes"], [$1], [$2]) ++]) ++m4trace:config/mca_m4_config_include.m4:53: -1- m4_include([orte/mca/notifier/syslog/configure.m4]) ++m4trace:orte/mca/notifier/syslog/configure.m4:13: -1- AC_DEFUN([MCA_notifier_syslog_CONFIG], [$1]) ++m4trace:config/mca_m4_config_include.m4:54: -1- m4_include([orte/mca/odls/default/configure.m4]) ++m4trace:orte/mca/odls/default/configure.m4:22: -1- AC_DEFUN([MCA_odls_default_CONFIG], [ ++ AC_CHECK_FUNC([fork], [$1], [$2]) ++]) ++m4trace:config/mca_m4_config_include.m4:55: -1- m4_include([orte/mca/oob/tcp/configure.m4]) ++m4trace:orte/mca/oob/tcp/configure.m4:22: -1- AC_DEFUN([MCA_oob_tcp_CONFIG], [ ++ # check for sockaddr_in (a good sign we have TCP) ++ AC_CHECK_TYPES([struct sockaddr_in], ++ [$1], ++ [$2], ++ [AC_INCLUDES_DEFAULT ++#ifdef HAVE_NETINET_IN_H ++#include ++#endif]) ++]) ++m4trace:config/mca_m4_config_include.m4:56: -1- m4_include([orte/mca/plm/alps/configure.m4]) ++m4trace:orte/mca/plm/alps/configure.m4:22: -1- AC_DEFUN([MCA_plm_alps_CONFIG], [ ++ OMPI_CHECK_ALPS([plm_alps], [$1], [$2]) ++]) ++m4trace:config/mca_m4_config_include.m4:57: -1- m4_include([orte/mca/plm/lsf/configure.m4]) ++m4trace:orte/mca/plm/lsf/configure.m4:22: -1- AC_DEFUN([MCA_plm_lsf_CONFIG], [ ++ OMPI_CHECK_LSF([plm_lsf], [plm_lsf_good=1], [plm_lsf_good=0]) ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ AS_IF([test "$plm_lsf_good" = "1"], ++ [plm_lsf_WRAPPER_EXTRA_LDFLAGS="$plm_lsf_LDFLAGS" ++ plm_lsf_WRAPPER_EXTRA_LIBS="$plm_lsf_LIBS" ++ $1], ++ [$2]) ++ ++ # set build flags to use in makefile ++ AC_SUBST([plm_lsf_CPPFLAGS]) ++ AC_SUBST([plm_lsf_LDFLAGS]) ++ AC_SUBST([plm_lsf_LIBS]) ++]) ++m4trace:config/mca_m4_config_include.m4:58: -1- m4_include([orte/mca/plm/rsh/configure.m4]) ++m4trace:orte/mca/plm/rsh/configure.m4:22: -1- AC_DEFUN([MCA_plm_rsh_CONFIG], [ ++ AC_CHECK_FUNC([fork], [$1], [$2]) ++]) ++m4trace:config/mca_m4_config_include.m4:59: -1- m4_include([orte/mca/plm/slurm/configure.m4]) ++m4trace:orte/mca/plm/slurm/configure.m4:22: -1- AC_DEFUN([MCA_plm_slurm_CONFIG], [ ++ OMPI_CHECK_SLURM([plm_slurm], [plm_slurm_good=1], [plm_slurm_good=0]) ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ AS_IF([test "$plm_slurm_good" = "1"], ++ [plm_slurm_WRAPPER_EXTRA_LDFLAGS="$plm_slurm_LDFLAGS" ++ plm_slurm_WRAPPER_EXTRA_LIBS="$plm_slurm_LIBS" ++ $1], ++ [$2]) ++ ++ # set build flags to use in makefile ++ AC_SUBST([plm_slurm_CPPFLAGS]) ++ AC_SUBST([plm_slurm_LDFLAGS]) ++ AC_SUBST([plm_slurm_LIBS]) ++]) ++m4trace:config/mca_m4_config_include.m4:60: -1- m4_include([orte/mca/plm/tm/configure.m4]) ++m4trace:orte/mca/plm/tm/configure.m4:22: -1- AC_DEFUN([MCA_plm_tm_CONFIG], [ ++ OMPI_CHECK_TM([plm_tm], [plm_tm_good=1], [plm_tm_good=0]) ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ AS_IF([test "$plm_tm_good" = "1"], ++ [plm_tm_WRAPPER_EXTRA_LDFLAGS="$plm_tm_LDFLAGS" ++ plm_tm_WRAPPER_EXTRA_LIBS="$plm_tm_LIBS" ++ $1], ++ [$2]) ++ ++ # set build flags to use in makefile ++ AC_SUBST([plm_tm_CPPFLAGS]) ++ AC_SUBST([plm_tm_LDFLAGS]) ++ AC_SUBST([plm_tm_LIBS]) ++]) ++m4trace:config/mca_m4_config_include.m4:61: -1- m4_include([orte/mca/plm/xgrid/configure.m4]) ++m4trace:orte/mca/plm/xgrid/configure.m4:22: -1- AC_DEFUN([MCA_plm_xgrid_CONFIG], [ ++ OMPI_CHECK_XGRID([plm_xgrid], [plm_xgrid_good=1], [plm_xgrid_good=0]) ++ ++ # For very dumb reasons involving linking, it's near impossible ++ # to build the XGrid components as static libraries. Disable if that's ++ # the case. ++ AS_IF([test "$plm_xgrid_good" = "0"], [$2], ++ [AS_IF([test "$compile_mode" = "dso"], ++ [ # plm_xgrid_LDFLAGS will be set by OMPI_CHECK_XGRID ++ plm_xgrid_WRAPPER_EXTRA_LDFLAGS="$plm_xgrid_LDFLAGS" ++ $1], ++ [AC_MSG_WARN([XGrid components must be built as DSOs. Disabling]) ++ $2])]) ++ ++ # set build flags to use in makefile ++ AC_SUBST([plm_xgrid_OBJCFLAGS]) ++ AC_SUBST([plm_xgrid_LDFLAGS]) ++]) ++m4trace:config/mca_m4_config_include.m4:62: -1- m4_include([orte/mca/ras/alps/configure.m4]) ++m4trace:orte/mca/ras/alps/configure.m4:23: -1- AC_DEFUN([MCA_ras_alps_CONFIG], [ ++ OMPI_CHECK_ALPS([ras_alps], [$1], [$2]) ++ ]) ++m4trace:config/mca_m4_config_include.m4:63: -1- m4_include([orte/mca/ras/gridengine/configure.m4]) ++m4trace:orte/mca/ras/gridengine/configure.m4:24: -1- AC_DEFUN([MCA_ras_gridengine_CONFIG], [ ++ OMPI_CHECK_GRIDENGINE([ras_gridengine], [$1], [$2]) ++]) ++m4trace:config/mca_m4_config_include.m4:64: -1- m4_include([orte/mca/ras/loadleveler/configure.m4]) ++m4trace:orte/mca/ras/loadleveler/configure.m4:22: -1- AC_DEFUN([MCA_ras_loadleveler_CONFIG], [ ++ OMPI_CHECK_LOADLEVELER([ras_loadleveler], [ras_loadleveler_good=1], [ras_loadleveler_good=0]) ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ AS_IF([test "$ras_loadleveler_good" = "1"], ++ [ras_loadleveler_WRAPPER_EXTRA_LDFLAGS="$ras_loadleveler_LDFLAGS" ++ ras_loadleveler_WRAPPER_EXTRA_LIBS="$ras_loadleveler_LIBS" ++ $1], ++ [$2]) ++ ++ # set build flags to use in makefile ++ AC_SUBST([ras_loadleveler_CPPFLAGS]) ++ AC_SUBST([ras_loadleveler_LDFLAGS]) ++ AC_SUBST([ras_loadleveler_LIBS]) ++]) ++m4trace:config/mca_m4_config_include.m4:65: -1- m4_include([orte/mca/ras/lsf/configure.m4]) ++m4trace:orte/mca/ras/lsf/configure.m4:22: -1- AC_DEFUN([MCA_ras_lsf_CONFIG], [ ++ OMPI_CHECK_LSF([ras_lsf], [ras_lsf_good=1], [ras_lsf_good=0]) ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ AS_IF([test "$ras_lsf_good" = "1"], ++ [ras_lsf_WRAPPER_EXTRA_LDFLAGS="$ras_lsf_LDFLAGS" ++ ras_lsf_WRAPPER_EXTRA_LIBS="$ras_lsf_LIBS" ++ $1], ++ [$2]) ++ ++ # set build flags to use in makefile ++ AC_SUBST([ras_lsf_CPPFLAGS]) ++ AC_SUBST([ras_lsf_LDFLAGS]) ++ AC_SUBST([ras_lsf_LIBS]) ++]) ++m4trace:config/mca_m4_config_include.m4:66: -1- m4_include([orte/mca/ras/slurm/configure.m4]) ++m4trace:orte/mca/ras/slurm/configure.m4:22: -1- AC_DEFUN([MCA_ras_slurm_CONFIG], [ ++ OMPI_CHECK_SLURM([ras_slurm], [ras_slurm_good=1], [ras_slurm_good=0]) ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ AS_IF([test "$ras_slurm_good" = "1"], ++ [ras_slurm_WRAPPER_EXTRA_LDFLAGS="$ras_slurm_LDFLAGS" ++ ras_slurm_WRAPPER_EXTRA_LIBS="$ras_slurm_LIBS" ++ $1], ++ [$2]) ++ ++ # set build flags to use in makefile ++ AC_SUBST([ras_slurm_CPPFLAGS]) ++ AC_SUBST([ras_slurm_LDFLAGS]) ++ AC_SUBST([ras_slurm_LIBS]) ++]) ++m4trace:config/mca_m4_config_include.m4:67: -1- m4_include([orte/mca/ras/tm/configure.m4]) ++m4trace:orte/mca/ras/tm/configure.m4:22: -1- AC_DEFUN([MCA_ras_tm_CONFIG], [ ++ OMPI_CHECK_TM([ras_tm], [ras_tm_good=1], [ras_tm_good=0]) ++ ++ # if check worked, set wrapper flags if so. ++ # Evaluate succeed / fail ++ AS_IF([test "$ras_tm_good" = "1"], ++ [ras_tm_WRAPPER_EXTRA_LDFLAGS="$ras_tm_LDFLAGS" ++ ras_tm_WRAPPER_EXTRA_LIBS="$ras_tm_LIBS" ++ $1], ++ [$2]) ++ ++ # set build flags to use in makefile ++ AC_SUBST([ras_tm_CPPFLAGS]) ++ AC_SUBST([ras_tm_LDFLAGS]) ++ AC_SUBST([ras_tm_LIBS]) ++]) ++m4trace:config/mca_m4_config_include.m4:68: -1- m4_include([orte/mca/rml/ftrm/configure.m4]) ++m4trace:orte/mca/rml/ftrm/configure.m4:20: -1- AC_DEFUN([MCA_rml_ftrm_CONFIG], [ ++ # If we don't want FT, don't compile this component ++ AS_IF([test "$ompi_want_ft" = "1"], ++ [$1], ++ [$2]) ++]) ++m4trace:config/mca_m4_config_include.m4:69: -1- m4_include([orte/mca/snapc/full/configure.m4]) ++m4trace:orte/mca/snapc/full/configure.m4:20: -1- AC_DEFUN([MCA_snapc_full_CONFIG], [ ++ # If we don't want FT, don't compile this component ++ AS_IF([test "$ompi_want_ft" = "1"], ++ [$1], ++ [$2]) ++]) ++m4trace:config/mca_m4_config_include.m4:70: -1- m4_include([ompi/mca/btl/elan/configure.m4]) ++m4trace:ompi/mca/btl/elan/configure.m4:18: -1- AC_DEFUN([OMPI_CHECK_ELAN], [ ++ AC_ARG_WITH([elan], ++ [AC_HELP_STRING([--with-elan(=DIR)], ++ [Build Elan (QsNet2) support, searching for libraries in DIR])]) ++ AC_ARG_WITH([elan-libdir], ++ [AC_HELP_STRING([--with-elan-libdir=DIR], ++ [Search for Elan (QsNet2) libraries in DIR])]) ++ ++ AS_IF([test "$with_elan" != "no"], ++ [AS_IF([test ! -z "$with_elan" -a "$with_elan" != "yes"], ++ [ompi_check_elan_dir="$with_elan"]) ++ AS_IF([test ! -z "$with_elan_libdir" -a "$with_elan_libdir" != "yes"], ++ [ompi_check_elan_libdir="$with_elan_libdir"]) ++ ++ OMPI_CHECK_PACKAGE([$1], ++ [elan/elan.h], ++ [elan], ++ [elan_init], ++ [], ++ [$ompi_check_elan_dir], ++ [$ompi_check_elan_libdir], ++ [ompi_check_elan_happy="yes"], ++ [ompi_check_elan_happy="no"]) ++ ], ++ [ompi_check_elan_happy="no"]) ++ ++ AS_IF([test "$ompi_check_elan_happy" = "yes"], ++ [$2], ++ [AS_IF([test ! -z "$with_elan" -a "$with_elan" != "no"], ++ [AC_MSG_ERROR([Elan (QsNet2) support requested but not found. Aborting])]) ++ $3]) ++ ]) ++m4trace:ompi/mca/btl/elan/configure.m4:54: -1- AC_DEFUN([MCA_btl_elan_CONFIG], [ ++ OMPI_CHECK_ELAN([btl_elan], ++ [btl_elan_happy="yes"], ++ [btl_elan_happy="no"]) ++ ++ AS_IF([test "$btl_elan_happy" = "yes"], ++ [btl_elan_WRAPPER_EXTRA_LDFLAGS="$btl_elan_LDFLAGS" ++ btl_elan_WRAPPER_EXTRA_LIBS="$btl_elan_LIBS" ++ $1], ++ [$2]) ++ ++ # substitute in the things needed to build elan ++ AC_SUBST([btl_elan_CFLAGS]) ++ AC_SUBST([btl_elan_CPPFLAGS]) ++ AC_SUBST([btl_elan_LDFLAGS]) ++ AC_SUBST([btl_elan_LIBS]) ++]) ++m4trace:config/mca_m4_config_include.m4:71: -1- m4_include([ompi/mca/btl/gm/configure.m4]) ++m4trace:ompi/mca/btl/gm/configure.m4:24: -1- AC_DEFUN([MCA_btl_gm_CONFIG], [ ++ OMPI_CHECK_GM([btl_gm], ++ [btl_gm_happy="yes"], ++ [btl_gm_happy="no"]) ++ ++ AS_IF([test "$btl_gm_happy" = "yes"], ++ [btl_gm_WRAPPER_EXTRA_LDFLAGS="$btl_gm_LDFLAGS" ++ btl_gm_WRAPPER_EXTRA_LIBS="$btl_gm_LIBS" ++ $1], ++ [$2]) ++ ++ # substitute in the things needed to build gm ++ AC_SUBST([btl_gm_CFLAGS]) ++ AC_SUBST([btl_gm_CPPFLAGS]) ++ AC_SUBST([btl_gm_LDFLAGS]) ++ AC_SUBST([btl_gm_LIBS]) ++]) ++m4trace:config/mca_m4_config_include.m4:72: -1- m4_include([ompi/mca/btl/mx/configure.m4]) ++m4trace:ompi/mca/btl/mx/configure.m4:24: -1- AC_DEFUN([MCA_btl_mx_CONFIG], [ ++ OMPI_CHECK_MX([btl_mx], ++ [btl_mx_happy="yes"], ++ [btl_mx_happy="no"]) ++ ++ AS_IF([test "$btl_mx_happy" = "yes"], ++ [btl_mx_WRAPPER_EXTRA_LDFLAGS="$btl_mx_LDFLAGS" ++ btl_mx_WRAPPER_EXTRA_LIBS="$btl_mx_LIBS" ++ $1], ++ [$2]) ++ ++ # substitute in the things needed to build mx ++ AC_SUBST([btl_mx_CFLAGS]) ++ AC_SUBST([btl_mx_CPPFLAGS]) ++ AC_SUBST([btl_mx_LDFLAGS]) ++ AC_SUBST([btl_mx_LIBS]) ++]) ++m4trace:config/mca_m4_config_include.m4:73: -1- m4_include([ompi/mca/btl/ofud/configure.m4]) ++m4trace:ompi/mca/btl/ofud/configure.m4:26: -1- AC_DEFUN([MCA_btl_ofud_CONFIG], [ ++ OMPI_CHECK_OPENIB([btl_ofud], ++ [btl_ofud_happy="yes"], ++ [btl_ofud_happy="no"]) ++ ++ AS_IF([test "$btl_ofud_happy" = "yes"], ++ [btl_ofud_WRAPPER_EXTRA_LDFLAGS="$btl_ofud_LDFLAGS" ++ btl_ofud_WRAPPER_EXTRA_LIBS="$btl_ofud_LIBS" ++ $1], ++ [$2]) ++ ++ ++ # substitute in the things needed to build OFUD ++ AC_SUBST([btl_ofud_CFLAGS]) ++ AC_SUBST([btl_ofud_CPPFLAGS]) ++ AC_SUBST([btl_ofud_LDFLAGS]) ++ AC_SUBST([btl_ofud_LIBS]) ++]) ++m4trace:config/mca_m4_config_include.m4:74: -1- m4_include([ompi/mca/btl/openib/configure.m4]) ++m4trace:ompi/mca/btl/openib/configure.m4:24: -1- AC_DEFUN([MCA_btl_openib_POST_CONFIG], [ ++ AM_CONDITIONAL([MCA_btl_openib_have_xrc], [test $1 -eq 1 -a "x$btl_openib_have_xrc" = "x1"]) ++ AM_CONDITIONAL([MCA_btl_openib_have_rdmacm], [test $1 -eq 1 -a "x$btl_openib_have_rdmacm" = "x1"]) ++ AM_CONDITIONAL([MCA_btl_openib_have_ibcm], [test $1 -eq 1 -a "x$btl_openib_have_ibcm" = "x1"]) ++]) ++m4trace:ompi/mca/btl/openib/configure.m4:34: -1- AC_DEFUN([MCA_btl_openib_CONFIG], [ ++ OMPI_VAR_SCOPE_PUSH([cpcs have_threads]) ++ cpcs="oob" ++ ++ OMPI_CHECK_OPENIB([btl_openib], ++ [btl_openib_happy="yes"], ++ [btl_openib_happy="no"]) ++ ++ AS_IF([test "$btl_openib_happy" = "yes"], ++ [btl_openib_WRAPPER_EXTRA_LDFLAGS="$btl_openib_LDFLAGS" ++ btl_openib_WRAPPER_EXTRA_LIBS="$btl_openib_LIBS" ++ ++ # With the new openib flags, look for ibv_fork_init ++ LDFLAGS_save="$LDFLAGS" ++ LIBS_save="$LIBS" ++ LDFLAGS="$LDFLAGS $btl_openib_LDFLAGS" ++ LIBS="$LIBS $btl_openib_LIBS" ++ AC_CHECK_FUNCS([ibv_fork_init]) ++ LDFLAGS="$LDFLAGS_save" ++ LIBS="$LIBS_save" ++ $1], ++ [$2]) ++ ++ AC_MSG_CHECKING([for thread support (needed for ibcm/rdmacm)]) ++ have_threads=`echo $THREAD_TYPE | awk '{ print [$]1 }'` ++ if test "x$have_threads" = "x"; then ++ have_threads=none ++ fi ++ AC_MSG_RESULT([$have_threads]) ++ ++ AS_IF([test "$btl_openib_happy" = "yes"], ++ [if test "x$btl_openib_have_xrc" = "x1"; then ++ cpcs="$cpcs xoob" ++ fi ++ if test "x$btl_openib_have_rdmacm" = "x1" -a \ ++ "$have_threads" != "none"; then ++ cpcs="$cpcs rdmacm" ++ fi ++ if test "x$btl_openib_have_ibcm" = "x1" -a \ ++ "$have_threads" != "none"; then ++ cpcs="$cpcs ibcm" ++ fi ++ AC_MSG_CHECKING([which openib btl cpcs will be built]) ++ AC_MSG_RESULT([$cpcs])]) ++ ++ # substitute in the things needed to build openib ++ AC_SUBST([btl_openib_CFLAGS]) ++ AC_SUBST([btl_openib_CPPFLAGS]) ++ AC_SUBST([btl_openib_LDFLAGS]) ++ AC_SUBST([btl_openib_LIBS]) ++ ++ OMPI_VAR_SCOPE_POP ++]) ++m4trace:config/mca_m4_config_include.m4:75: -1- m4_include([ompi/mca/btl/portals/configure.m4]) ++m4trace:ompi/mca/btl/portals/configure.m4:24: -1- AC_DEFUN([MCA_btl_portals_CONFIG], [ ++ OMPI_CHECK_PORTALS([btl_portals], ++ [btl_portals_happy="yes"], ++ [btl_portals_happy="no"]) ++ ++ AS_IF([test "$btl_portals_happy" = "yes"], ++ [btl_portals_WRAPPER_EXTRA_LDFLAGS="$btl_portals_LDFLAGS" ++ btl_portals_WRAPPER_EXTRA_LIBS="$btl_portals_LIBS" ++ $1], ++ [$2]) ++ ++ # substitute in the things needed to build portals ++ AC_SUBST([btl_portals_CPPFLAGS]) ++ AC_SUBST([btl_portals_LDFLAGS]) ++ AC_SUBST([btl_portals_LIBS]) ++]) ++m4trace:config/mca_m4_config_include.m4:76: -1- m4_include([ompi/mca/btl/tcp/configure.m4]) ++m4trace:ompi/mca/btl/tcp/configure.m4:22: -1- AC_DEFUN([MCA_btl_tcp_CONFIG], [ ++ # check for sockaddr_in (a good sign we have TCP) ++ AC_CHECK_TYPES([struct sockaddr_in], ++ [$1], ++ [$2], ++ [AC_INCLUDES_DEFAULT ++#ifdef HAVE_NETINET_IN_H ++#include ++#endif]) ++]) ++m4trace:config/mca_m4_config_include.m4:77: -1- m4_include([ompi/mca/btl/udapl/configure.m4]) ++m4trace:ompi/mca/btl/udapl/configure.m4:24: -1- AC_DEFUN([MCA_btl_udapl_CONFIG], [ ++ OMPI_CHECK_UDAPL([btl_udapl], ++ [btl_udapl_happy="yes"], ++ [btl_udapl_happy="no"]) ++ ++ AS_IF([test "$btl_udapl_happy" = "yes"], ++ [btl_udapl_WRAPPER_EXTRA_LDFLAGS="$btl_udapl_LDFLAGS" ++ btl_udapl_WRAPPER_EXTRA_LIBS="$btl_udapl_LIBS" ++ $1], ++ [$2]) ++ ++ # Borrowed from MVAPI BTL - a data structure in the uDAPL headers ++ # is not fully ISO C. Remove -pedantic to silence a warning. ++ btl_udapl_CFLAGS="`echo $CFLAGS | sed 's/-pedantic//g'`" ++ AS_IF([test "$btl_udapl_CFLAGS" != "$CFLAGS" -a "$btl_udapl_happy" = "yes"], ++ [AC_MSG_WARN([Removed -pedantic from CFLAGS for ++uDAPL component because the uDAPL headers are not fully ISO C])]) ++ ++ # substitute in the things needed to build udapl ++ AC_SUBST([btl_udapl_CFLAGS]) ++ AC_SUBST([btl_udapl_CPPFLAGS]) ++ AC_SUBST([btl_udapl_LDFLAGS]) ++ AC_SUBST([btl_udapl_LIBS]) ++]) ++m4trace:config/mca_m4_config_include.m4:78: -1- m4_include([ompi/mca/common/mx/configure.m4]) ++m4trace:ompi/mca/common/mx/configure.m4:24: -1- AC_DEFUN([MCA_common_mx_CONFIG], [ ++ OMPI_CHECK_MX([common_mx], ++ [common_mx_happy="yes"], ++ [common_mx_happy="no"]) ++ ++ AS_IF([test "$common_mx_happy" = "yes"], ++ [common_mx_WRAPPER_EXTRA_LDFLAGS="$common_mx_LDFLAGS" ++ common_mx_WRAPPER_EXTRA_LIBS="$common_mx_LIBS" ++ $1], ++ [$2]) ++ ++ # substitute in the things needed to build mx ++ AC_SUBST([common_mx_CFLAGS]) ++ AC_SUBST([common_mx_CPPFLAGS]) ++ AC_SUBST([common_mx_LDFLAGS]) ++ AC_SUBST([common_mx_LIBS]) ++]) ++m4trace:config/mca_m4_config_include.m4:79: -1- m4_include([ompi/mca/common/portals/configure.m4]) ++m4trace:ompi/mca/common/portals/configure.m4:24: -1- AC_DEFUN([MCA_common_portals_CONFIG], [ ++ OMPI_CHECK_PORTALS([common_portals], ++ [common_portals_happy="yes"], ++ [common_portals_happy="no"]) ++ ++ if test "$common_portals_happy" = "yes" -a "$with_portals_config" = "utcp" ; then ++ # Portals interface ++ symbols="PtlInit PtlFini PtlNIInit" ++ symbols="$symbols PtlNIFini PtlNIStatus PtlNIDist PtlNIHandle" ++ symbols="$symbols PtlGetUid PtlGetId PtlGetJid " ++ symbols="$symbols PtlMEAttach PtlMEAttachAny PtlMEInsert PtlMEUnlink" ++ symbols="$symbols PtlMDAttach PtlMDBind PtlMDUnlink PtlMDUpdate" ++ symbols="$symbols PtlEQAlloc PtlEQFree PtlEQGet PtlEQWait" ++ symbols="$symbols PtlEQPoll PtlACEntry" ++ symbols="$symbols PtlPut PtlPutRegion PtlGet PtlGetRegon PtlGetPut" ++ ++ # Portals reference implementation debugging stuff ++ symbols="$symbols PtlMEDump PtlNIEqDump PtlTblDump PtlNIDebug" ++ symbols="$symbols PtlErrorStr PtlEventKindStr PtlNIFailStr" ++ ++ # Portals reference implementation RTE interface ++ symbols="$symbols PtlGetNIDMap PtlGetPIDMap PtlGetRank PtlGetRankId" ++ symbols="$symbols PtlSetJID PtlSetNIDMap PtlSetPIDMap PtlSetRank" ++ ++ flags= ++ for symbol in $symbols ; do ++ case $host in ++ *-darwin*) ++ flags="$flags -Wl,-u,=_$symbol" ++ ;; ++ *-linux*) ++ flags="$flags -Wl,-undefined=$symbol" ++ ;; ++ esac ++ done ++ ++ OMPI_LIBMPI_EXTRA_LDFLAGS="$common_portals_LDFLAGS $flags" ++ OMPI_LIBMPI_EXTRA_LIBS="$common_portals_LIBS" ++ ++ commmon_portals_LIBS= ++ fi ++ ++ AS_IF([test "$common_portals_happy" = "yes"], ++ [common_portals_WRAPPER_EXTRA_LDFLAGS="$common_portals_LDFLAGS" ++ common_portals_WRAPPER_EXTRA_LIBS="$common_portals_LIBS" ++ $1], ++ [$2]) ++ ++ # substitute in the things needed to build portals ++ AC_SUBST([common_portals_CPPFLAGS]) ++ AC_SUBST([common_portals_LDFLAGS]) ++ AC_SUBST([common_portals_LIBS]) ++]) ++m4trace:config/mca_m4_config_include.m4:80: -1- m4_include([ompi/mca/crcp/bkmrk/configure.m4]) ++m4trace:ompi/mca/crcp/bkmrk/configure.m4:20: -1- AC_DEFUN([MCA_crcp_bkmrk_CONFIG], [ ++ # If we don't want FT, don't compile this component ++ AS_IF([test "$ompi_want_ft" = "1"], ++ [$1], ++ [$2]) ++]) ++m4trace:config/mca_m4_config_include.m4:81: -1- m4_include([ompi/mca/io/configure.m4]) ++m4trace:ompi/mca/io/configure.m4:14: -1- AC_DEFUN([MCA_io_CONFIG], [ ++ AC_ARG_ENABLE([mpi-io], ++ [AC_HELP_STRING([--disable-mpi-io], ++ [Disable built-in support for MPI-2 I/O, likely because ++ an externally-provided MPI I/O package will be used. ++ Default is to use the internal component system and ++ its specially modified version of ROMIO])]) ++ ++ AS_IF([test "$enable_mpi_io" != "no"], ++ [define_mpi_io=1 ++ OMPI_MPIF_MPI_IO_INCLUDE="include \"mpif-mpi-io.h\""], ++ [define_mpi_io=0 ++ OMPI_MPIF_MPI_IO_INCLUDE=""]) ++ ++ MCA_CONFIGURE_FRAMEWORK([$1], [$2], [$define_mpi_io]) ++ ++ AC_DEFINE_UNQUOTED([OMPI_PROVIDE_MPI_FILE_INTERFACE], [$define_mpi_io], ++ [Whether OMPI should provide MPI File interface]) ++ AM_CONDITIONAL([OMPI_PROVIDE_MPI_FILE_INTERFACE], [test "$define_mpi_io" = "1"]) ++ AC_SUBST([OMPI_MPIF_MPI_IO_INCLUDE]) ++]) ++m4trace:config/mca_m4_config_include.m4:82: -1- m4_include([ompi/mca/io/romio/configure.m4]) ++m4trace:ompi/mca/io/romio/configure.m4:21: -1- AC_DEFUN([MCA_io_romio_POST_CONFIG], [ ++ AS_IF([test $1 -eq 0 -a "$enable_dist" = "yes"], ++ [AC_MSG_ERROR([ROMIO disabled but --enable-dist specifed. This will result in a bad tarball. Aborting configure.])]) ++ AM_CONDITIONAL([MCA_io_romio_SHOULD_BUILD], [test $1 -eq 1]) ++ ++]) ++m4trace:ompi/mca/io/romio/configure.m4:31: -1- AC_DEFUN([MCA_io_romio_CONFIG], [ ++ OMPI_VAR_SCOPE_PUSH([io_romio_flags io_romio_flags_define io_romio_happy io_romio_save_LIBS]) ++ AC_ARG_ENABLE([io-romio], ++ [AC_HELP_STRING([--disable-io-romio], ++ [Disable the ROMIO MPI-IO component])]) ++ AC_ARG_WITH([io-romio-flags], ++ [AC_HELP_STRING([--with-io-romio-flags=FLAGS], ++ [Pass FLAGS to the ROMIO distribution configuration script])]) ++ AC_DEFINE_UNQUOTED([MCA_io_romio_USER_CONFIGURE_FLAGS], ["$with_io_romio_flags"], [Set of user-defined configure flags given to ROMIOs configure script via --with-io-romio-flags]) ++ AC_MSG_CHECKING([if want ROMIO component]) ++ AS_IF([test "$enable_io_romio" = "no"], ++ [AC_MSG_RESULT([no]) ++ $2], ++ [AC_MSG_RESULT([yes]) ++ AC_MSG_CHECKING([if MPI profiling is enabled]) ++ AS_IF([test "$enable_mpi_profile" = "no"], ++ [AC_MSG_RESULT([no]) ++ AC_MSG_WARN([*** The ROMIO io component requires the MPI profiling layer]) ++ AS_IF([test "$enable_io_romio" = "yes"], ++ [AC_MSG_ERROR([*** ROMIO requested but not available. Aborting])]) ++ $2], ++ [AC_MSG_RESULT([yes]) ++ ++ AS_IF([test -n "$with_io_romio_flags" -a "$with_io_romio_flags" != "no"], ++ [io_romio_flags="$with_io_romio_flags $io_romio_flags"], ++ [io_romio_flags=]) ++ # If ROMIO is going to end up in a DSO, all we need is ++ # shared library-ized objects, as we're only building a ++ # DSO (which is always shared). Otherwise, build with ++ # same flags as OMPI, as we might need any combination of ++ # shared and static-ized objects... ++ AS_IF([test "$compile_mode" = "dso"], ++ [io_romio_shared=enable ++ io_romio_static=disable], ++ [AS_IF([test "$enable_shared" = "yes"], ++ [io_romio_shared=enable], ++ [io_romio_shared=disable]) ++ AS_IF([test "$enable_static" = "yes"], ++ [io_romio_static=enable], ++ [io_romio_static=disable])]) ++ AS_IF([test -n "$prefix" -a "$prefix" != "NONE"], ++ [io_romio_prefix_arg="--prefix=$prefix"], ++ [io_romio_prefix_arg=]) ++ ++ AS_IF([test "$cross_compiling" = "yes"], ++ [AS_IF([test ! -z $build], [io_romio_flags="$io_romio_flags --build=$build"]) ++ AS_IF([test ! -z $host], [io_romio_flags="$io_romio_flags --host=$host"]) ++ AS_IF([test ! -z $target], [io_romio_flags="$io_romio_flags --target=$target"])]) ++ io_romio_flags_define="$io_romio_flags CFLAGS='$CFLAGS' CPPFLAGS='$CPPFLAGS' FFLAGS='$FFLAGS' LDFLAGS='$LDFLAGS' --$io_romio_shared-shared --$io_romio_static-static $io_romio_flags $io_romio_prefix_arg --with-mpi=open_mpi --disable-aio" ++ AC_DEFINE_UNQUOTED([MCA_io_romio_COMPLETE_CONFIGURE_FLAGS], ["$io_romio_flags_define"], [Complete set of command line arguments given to ROMIOs configure script]) ++ ++ io_romio_flags="$io_romio_flags CFLAGS="'"'"$CFLAGS"'"'" CPPFLAGS="'"'"$CPPFLAGS"'"'" FFLAGS="'"'"$FFLAGS"'"'" LDFLAGS="'"'"$LDFLAGS"'"'" --$io_romio_shared-shared --$io_romio_static-static $io_romio_flags $io_romio_prefix_arg --with-mpi=open_mpi --disable-aio" ++ ++ ompi_show_subtitle "Configuring ROMIO distribution" ++ OMPI_CONFIG_SUBDIR([ompi/mca/io/romio/romio], ++ [$io_romio_flags], ++ [io_romio_happy=1], [io_romio_happy=0]) ++ ++ AS_IF([test "$io_romio_happy" = "1"], ++ [ # grab the libraries list from ROMIO. We don't ++ # need this for building the component, as libtool ++ # will figure that part out. But we do need it for ++ # the wrapper settings ++ io_romio_save_LIBS="$LIBS" ++ LIBS= ++ . ompi/mca/io/romio/romio/localdefs ++ io_romio_LIBS="$LIBS" ++ LIBS="$io_romio_save_LIBS" ++ ++ echo "ROMIO distribution configured successfully" ++ io_romio_WRAPPER_EXTRA_LIBS="$io_romio_LIBS" ++ $1], ++ [AS_IF([test "$enable_io_romio" = "yes"], ++ [AC_MSG_ERROR([ROMIO distribution did not configure successfully])], ++ [AC_MSG_WARN([ROMIO distribution did not configure successfully])]) ++ $2])])]) ++ OMPI_VAR_SCOPE_POP ++]) ++m4trace:config/mca_m4_config_include.m4:83: -1- m4_include([ompi/mca/mtl/mx/configure.m4]) ++m4trace:ompi/mca/mtl/mx/configure.m4:24: -1- AC_DEFUN([MCA_mtl_mx_CONFIG], [ ++ OMPI_CHECK_MX([mtl_mx], ++ [mtl_mx_happy="yes"], ++ [mtl_mx_happy="no"]) ++ ++ AS_IF([test "$mtl_mx_happy" = "yes"], ++ [mtl_mx_WRAPPER_EXTRA_LDFLAGS="$mtl_mx_LDFLAGS" ++ mtl_mx_WRAPPER_EXTRA_LIBS="$mtl_mx_LIBS" ++ $1], ++ [$2]) ++ ++ # substitute in the things needed to build mx ++ AC_SUBST([mtl_mx_CFLAGS]) ++ AC_SUBST([mtl_mx_CPPFLAGS]) ++ AC_SUBST([mtl_mx_LDFLAGS]) ++ AC_SUBST([mtl_mx_LIBS]) ++]) ++m4trace:config/mca_m4_config_include.m4:84: -1- m4_include([ompi/mca/mtl/portals/configure.m4]) ++m4trace:ompi/mca/mtl/portals/configure.m4:43: -1- AC_DEFUN([MCA_mtl_portals_CONFIG], [ ++ OMPI_CHECK_PORTALS([mtl_portals], ++ [mtl_portals_happy="yes"], ++ [mtl_portals_happy="no"]) ++ ++ AS_IF([test "$mtl_portals_happy" = "yes"], ++ [mtl_portals_WRAPPER_EXTRA_LDFLAGS="$mtl_portals_LDFLAGS" ++ mtl_portals_WRAPPER_EXTRA_LIBS="$mtl_portals_LIBS" ++ $1], ++ [$2]) ++ ++ # substitute in the things needed to build portals ++ AC_SUBST([mtl_portals_CPPFLAGS]) ++ AC_SUBST([mtl_portals_LDFLAGS]) ++ AC_SUBST([mtl_portals_LIBS]) ++]) ++m4trace:config/mca_m4_config_include.m4:85: -1- m4_include([ompi/mca/mtl/psm/configure.m4]) ++m4trace:ompi/mca/mtl/psm/configure.m4:24: -1- AC_DEFUN([MCA_mtl_psm_CONFIG], [ ++ OMPI_CHECK_PSM([mtl_psm], ++ [mtl_psm_happy="yes"], ++ [mtl_psm_happy="no"]) ++ ++ AS_IF([test "$mtl_psm_happy" = "yes"], ++ [mtl_psm_WRAPPER_EXTRA_LDFLAGS="$mtl_psm_LDFLAGS" ++ mtl_psm_WRAPPER_EXTRA_LIBS="$mtl_psm_LIBS" ++ $1], ++ [$2]) ++ ++ # substitute in the things needed to build psm ++ AC_SUBST([mtl_psm_CFLAGS]) ++ AC_SUBST([mtl_psm_CPPFLAGS]) ++ AC_SUBST([mtl_psm_LDFLAGS]) ++ AC_SUBST([mtl_psm_LIBS]) ++]) ++m4trace:config/mca_m4_config_include.m4:86: -1- m4_include([ompi/mca/pml/crcpw/configure.m4]) ++m4trace:ompi/mca/pml/crcpw/configure.m4:20: -1- AC_DEFUN([MCA_pml_crcpw_CONFIG], [ ++ # If we don't want FT, don't compile this component ++ AS_IF([test "$ompi_want_ft" = "1"], ++ [$1], ++ [$2]) ++]) ++m4trace:config/mca_m4_config_include.m4:87: -1- m4_include([ompi/mca/pml/v/configure.m4]) ++m4trace:ompi/mca/pml/v/configure.m4:11: -1- AC_DEFUN([MCA_pml_v_CONFIG], [ ++ # This unmatched fi allows for recursing in the vprotocols, even if ++ # pml v is disabled by configure ++ eval ++ fi ++ ++ # We are going to make recursive call in shell, nothing is impossible ++ # Still, we need to be extra careful ++ ( ++ vprotocol_parent_component=$component ++ # Move the root of our project to the current component ++ srcdir=`cd $srcdir && pwd`/$project/mca/$framework ++ cd "$project/mca/$framework" ++ ++ MCA_CONFIGURE_FRAMEWORK($vprotocol_parent_component, vprotocol, $should_build) ++ ++ # Save results ++ cat >$vprotocol_parent_component/mca_vprotocol_config_output <conftest.tar]) ++m4trace:configure.ac:49: -1- AM_RUN_LOG([$am__untar &1 1>/dev/null ++ ompi_status=$? ++ AS_IF([test "$ompi_output" != "" -o "$ompi_status" = "0"], ++ [ompi_pragma_comment_happy=1 ++ ompi_message="[#]pragma comment"], ++ [ompi_static_const_char_happy=1 ++ ompi_message="static const char[[]]"])], ++ [OMPI_LOG_MSG([the failed program was:]) ++ OMPI_LOG_FILE([conftest.c]) ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[[]]"] ++ [ompi_static_const_char_happy=1 ++ ompi_message="static const char[[]]"])]) ++m4trace:configure.ac:200: -3- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:200: -3- OMPI_LOG_MSG([the failed program was:]) ++m4trace:configure.ac:200: -3- OMPI_LOG_FILE([conftest.c]) ++m4trace:configure.ac:200: -2- _OMPI_CHECK_IDENT([CC], [CFLAGS], [c], [[#]ident], [], [ompi_ident_happy=1 ++ ompi_message="[#]ident"], [ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[]" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[]" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[]" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++]) ++m4trace:configure.ac:200: -2- OMPI_LOG_COMMAND([$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}], [AS_IF([test -f conftest.${OBJEXT}], ++ [ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ AS_IF([test "$ompi_output" != "" -o "$ompi_status" = "0"], ++ [ompi_ident_happy=1 ++ ompi_message="[#]ident"], ++ [ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[]" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[]" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[]" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++])], ++ [OMPI_LOG_MSG([the failed program was:]) ++ OMPI_LOG_FILE([conftest.c]) ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[]" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[]" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[]" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++] ++ [ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[]" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[]" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[]" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++])]) ++m4trace:configure.ac:200: -2- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:200: -2- OMPI_LOG_MSG([the failed program was:]) ++m4trace:configure.ac:200: -2- OMPI_LOG_FILE([conftest.c]) ++m4trace:configure.ac:200: -1- _OMPI_CHECK_IDENT([CC], [CFLAGS], [c], [[#]pragma ident], [], [ompi_pragma_ident_happy=1 ++ ompi_message="[#]pragma ident"], [ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_ident_happy=1 ++ ompi_message="#ident" ++else ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++]) ++m4trace:configure.ac:200: -1- OMPI_LOG_COMMAND([$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}], [AS_IF([test -f conftest.${OBJEXT}], ++ [ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ AS_IF([test "$ompi_output" != "" -o "$ompi_status" = "0"], ++ [ompi_pragma_ident_happy=1 ++ ompi_message="[#]pragma ident"], ++ [ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_ident_happy=1 ++ ompi_message="#ident" ++else ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++])], ++ [OMPI_LOG_MSG([the failed program was:]) ++ OMPI_LOG_FILE([conftest.c]) ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_ident_happy=1 ++ ompi_message="#ident" ++else ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++] ++ [ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_ident_happy=1 ++ ompi_message="#ident" ++else ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ eval ompi_compiler="\$CC" ++ eval ompi_flags="\$CFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.c <&5 ++$ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.c" -a -f "conftest.c"; then ++ cat conftest.c >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++])]) ++m4trace:configure.ac:200: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:200: -1- OMPI_LOG_MSG([the failed program was:]) ++m4trace:configure.ac:200: -1- OMPI_LOG_FILE([conftest.c]) ++m4trace:configure.ac:200: -1- m4_pattern_allow([^OMPI_CC_USE_PRAGMA_IDENT$]) ++m4trace:configure.ac:200: -1- m4_pattern_allow([^OMPI_CC_USE_IDENT$]) ++m4trace:configure.ac:200: -1- m4_pattern_allow([^OMPI_CC_USE_PRAGMA_COMMENT$]) ++m4trace:configure.ac:200: -1- m4_pattern_allow([^OMPI_CC_USE_CONST_CHAR_IDENT$]) ++m4trace:configure.ac:206: -1- m4_pattern_allow([^HAVE_LONG_LONG$]) ++m4trace:configure.ac:207: -1- m4_pattern_allow([^HAVE_LONG_DOUBLE$]) ++m4trace:configure.ac:208: -1- m4_pattern_allow([^HAVE_INT8_T$]) ++m4trace:configure.ac:209: -1- m4_pattern_allow([^HAVE_UINT8_T$]) ++m4trace:configure.ac:210: -1- m4_pattern_allow([^HAVE_INT16_T$]) ++m4trace:configure.ac:211: -1- m4_pattern_allow([^HAVE_UINT16_T$]) ++m4trace:configure.ac:212: -1- m4_pattern_allow([^HAVE_INT32_T$]) ++m4trace:configure.ac:213: -1- m4_pattern_allow([^HAVE_UINT32_T$]) ++m4trace:configure.ac:214: -1- m4_pattern_allow([^HAVE_INT64_T$]) ++m4trace:configure.ac:215: -1- m4_pattern_allow([^HAVE_UINT64_T$]) ++m4trace:configure.ac:216: -1- m4_pattern_allow([^HAVE_INTPTR_T$]) ++m4trace:configure.ac:217: -1- m4_pattern_allow([^HAVE_UINTPTR_T$]) ++m4trace:configure.ac:218: -1- m4_pattern_allow([^HAVE_MODE_T$]) ++m4trace:configure.ac:219: -1- m4_pattern_allow([^HAVE_SSIZE_T$]) ++m4trace:configure.ac:220: -1- m4_pattern_allow([^HAVE_PTRDIFF_T$]) ++m4trace:configure.ac:226: -1- m4_pattern_allow([^SIZEOF_CHAR$]) ++m4trace:configure.ac:227: -1- m4_pattern_allow([^SIZEOF_SHORT$]) ++m4trace:configure.ac:228: -1- m4_pattern_allow([^SIZEOF_INT$]) ++m4trace:configure.ac:229: -1- m4_pattern_allow([^SIZEOF_LONG$]) ++m4trace:configure.ac:231: -1- m4_pattern_allow([^SIZEOF_LONG_LONG$]) ++m4trace:configure.ac:234: -1- m4_pattern_allow([^SIZEOF_LONG_DOUBLE$]) ++m4trace:configure.ac:236: -1- m4_pattern_allow([^SIZEOF_FLOAT$]) ++m4trace:configure.ac:237: -1- m4_pattern_allow([^SIZEOF_DOUBLE$]) ++m4trace:configure.ac:238: -1- m4_pattern_allow([^SIZEOF_VOID_P$]) ++m4trace:configure.ac:239: -1- m4_pattern_allow([^SIZEOF_SIZE_T$]) ++m4trace:configure.ac:241: -1- m4_pattern_allow([^SIZEOF_SSIZE_T$]) ++m4trace:configure.ac:244: -1- m4_pattern_allow([^SIZEOF_PTRDIFF_T$]) ++m4trace:configure.ac:251: -1- OMPI_C_GET_ALIGNMENT([char], [OMPI_ALIGNMENT_CHAR]) ++m4trace:configure.ac:251: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:251: the top level]) ++m4trace:configure.ac:251: -1- _m4_warn([obsolete], [The macro `_AC_COMPUTE_INT' is obsolete and will be deleted in a ++future version or Autoconf. Hence, it is suggested that you use ++instead the public AC_COMPUTE_INT macro. Note that the arguments are ++slightly different between the two.], [../../lib/autoconf/general.m4:2723: _AC_COMPUTE_INT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:251: the top level]) ++m4trace:configure.ac:251: -1- m4_pattern_allow([^OMPI_ALIGNMENT_CHAR$]) ++m4trace:configure.ac:252: -1- OMPI_C_GET_ALIGNMENT([short], [OMPI_ALIGNMENT_SHORT]) ++m4trace:configure.ac:252: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:252: the top level]) ++m4trace:configure.ac:252: -1- _m4_warn([obsolete], [The macro `_AC_COMPUTE_INT' is obsolete and will be deleted in a ++future version or Autoconf. Hence, it is suggested that you use ++instead the public AC_COMPUTE_INT macro. Note that the arguments are ++slightly different between the two.], [../../lib/autoconf/general.m4:2723: _AC_COMPUTE_INT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:252: the top level]) ++m4trace:configure.ac:252: -1- m4_pattern_allow([^OMPI_ALIGNMENT_SHORT$]) ++m4trace:configure.ac:253: -1- OMPI_C_GET_ALIGNMENT([wchar_t], [OMPI_ALIGNMENT_WCHAR]) ++m4trace:configure.ac:253: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:253: the top level]) ++m4trace:configure.ac:253: -1- _m4_warn([obsolete], [The macro `_AC_COMPUTE_INT' is obsolete and will be deleted in a ++future version or Autoconf. Hence, it is suggested that you use ++instead the public AC_COMPUTE_INT macro. Note that the arguments are ++slightly different between the two.], [../../lib/autoconf/general.m4:2723: _AC_COMPUTE_INT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:253: the top level]) ++m4trace:configure.ac:253: -1- m4_pattern_allow([^OMPI_ALIGNMENT_WCHAR$]) ++m4trace:configure.ac:254: -1- OMPI_C_GET_ALIGNMENT([int], [OMPI_ALIGNMENT_INT]) ++m4trace:configure.ac:254: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:254: the top level]) ++m4trace:configure.ac:254: -1- _m4_warn([obsolete], [The macro `_AC_COMPUTE_INT' is obsolete and will be deleted in a ++future version or Autoconf. Hence, it is suggested that you use ++instead the public AC_COMPUTE_INT macro. Note that the arguments are ++slightly different between the two.], [../../lib/autoconf/general.m4:2723: _AC_COMPUTE_INT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:254: the top level]) ++m4trace:configure.ac:254: -1- m4_pattern_allow([^OMPI_ALIGNMENT_INT$]) ++m4trace:configure.ac:255: -1- OMPI_C_GET_ALIGNMENT([long], [OMPI_ALIGNMENT_LONG]) ++m4trace:configure.ac:255: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:255: the top level]) ++m4trace:configure.ac:255: -1- _m4_warn([obsolete], [The macro `_AC_COMPUTE_INT' is obsolete and will be deleted in a ++future version or Autoconf. Hence, it is suggested that you use ++instead the public AC_COMPUTE_INT macro. Note that the arguments are ++slightly different between the two.], [../../lib/autoconf/general.m4:2723: _AC_COMPUTE_INT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:255: the top level]) ++m4trace:configure.ac:255: -1- m4_pattern_allow([^OMPI_ALIGNMENT_LONG$]) ++m4trace:configure.ac:257: -1- OMPI_C_GET_ALIGNMENT([long long], [OMPI_ALIGNMENT_LONG_LONG]) ++m4trace:configure.ac:257: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:257: the top level]) ++m4trace:configure.ac:257: -1- _m4_warn([obsolete], [The macro `_AC_COMPUTE_INT' is obsolete and will be deleted in a ++future version or Autoconf. Hence, it is suggested that you use ++instead the public AC_COMPUTE_INT macro. Note that the arguments are ++slightly different between the two.], [../../lib/autoconf/general.m4:2723: _AC_COMPUTE_INT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:257: the top level]) ++m4trace:configure.ac:257: -1- m4_pattern_allow([^OMPI_ALIGNMENT_LONG_LONG$]) ++m4trace:configure.ac:259: -1- OMPI_C_GET_ALIGNMENT([float], [OMPI_ALIGNMENT_FLOAT]) ++m4trace:configure.ac:259: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:259: the top level]) ++m4trace:configure.ac:259: -1- _m4_warn([obsolete], [The macro `_AC_COMPUTE_INT' is obsolete and will be deleted in a ++future version or Autoconf. Hence, it is suggested that you use ++instead the public AC_COMPUTE_INT macro. Note that the arguments are ++slightly different between the two.], [../../lib/autoconf/general.m4:2723: _AC_COMPUTE_INT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:259: the top level]) ++m4trace:configure.ac:259: -1- m4_pattern_allow([^OMPI_ALIGNMENT_FLOAT$]) ++m4trace:configure.ac:260: -1- OMPI_C_GET_ALIGNMENT([double], [OMPI_ALIGNMENT_DOUBLE]) ++m4trace:configure.ac:260: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:260: the top level]) ++m4trace:configure.ac:260: -1- _m4_warn([obsolete], [The macro `_AC_COMPUTE_INT' is obsolete and will be deleted in a ++future version or Autoconf. Hence, it is suggested that you use ++instead the public AC_COMPUTE_INT macro. Note that the arguments are ++slightly different between the two.], [../../lib/autoconf/general.m4:2723: _AC_COMPUTE_INT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:260: the top level]) ++m4trace:configure.ac:260: -1- m4_pattern_allow([^OMPI_ALIGNMENT_DOUBLE$]) ++m4trace:configure.ac:262: -1- OMPI_C_GET_ALIGNMENT([long double], [OMPI_ALIGNMENT_LONG_DOUBLE]) ++m4trace:configure.ac:262: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:262: the top level]) ++m4trace:configure.ac:262: -1- _m4_warn([obsolete], [The macro `_AC_COMPUTE_INT' is obsolete and will be deleted in a ++future version or Autoconf. Hence, it is suggested that you use ++instead the public AC_COMPUTE_INT macro. Note that the arguments are ++slightly different between the two.], [../../lib/autoconf/general.m4:2723: _AC_COMPUTE_INT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:262: the top level]) ++m4trace:configure.ac:262: -1- m4_pattern_allow([^OMPI_ALIGNMENT_LONG_DOUBLE$]) ++m4trace:configure.ac:264: -1- OMPI_C_GET_ALIGNMENT([void *], [OMPI_ALIGNMENT_VOID_P]) ++m4trace:configure.ac:264: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:264: the top level]) ++m4trace:configure.ac:264: -1- _m4_warn([obsolete], [The macro `_AC_COMPUTE_INT' is obsolete and will be deleted in a ++future version or Autoconf. Hence, it is suggested that you use ++instead the public AC_COMPUTE_INT macro. Note that the arguments are ++slightly different between the two.], [../../lib/autoconf/general.m4:2723: _AC_COMPUTE_INT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:264: the top level]) ++m4trace:configure.ac:264: -1- m4_pattern_allow([^OMPI_ALIGNMENT_VOID_P$]) ++m4trace:configure.ac:276: -1- m4_pattern_allow([^OMPI_NEED_C_BOOL$]) ++m4trace:configure.ac:312: -1- m4_pattern_allow([^restrict$]) ++m4trace:configure.ac:312: -1- m4_pattern_allow([^restrict$]) ++m4trace:configure.ac:314: -1- OMPI_C_WEAK_SYMBOLS ++m4trace:configure.ac:314: -1- _OMPI_C_WEAK_SYMBOLS([ompi_cv_c_weak_symbols="yes"], [ompi_cv_c_weak_symbols="no"]) ++m4trace:configure.ac:314: -2- OMPI_LOG_COMMAND([$CC $CFLAGS conftest.c conftest_weak.o -o conftest $LDFLAGS $LIBS], [ompi_c_weak_symbols_happy=1], [ompi_c_weak_symbols_happy=0]) ++m4trace:configure.ac:314: -2- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:314: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -c conftest_weak.c], [ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $CC $CFLAGS conftest.c conftest_weak.o -o conftest $LDFLAGS $LIBS" >&5 ++$CC $CFLAGS conftest.c conftest_weak.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ompi_c_weak_symbols_happy=1 ++else ++ unset ompi_status ++ ompi_c_weak_symbols_happy=0 ++fi], [ompi_c_weak_symbols_happy=0]) ++m4trace:configure.ac:314: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:320: -1- OMPI_CHECK_ICC_VARARGS ++m4trace:configure.ac:320: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++config/ompi_check_icc.m4:20: OMPI_CHECK_ICC_VARARGS is expanded from... ++configure.ac:320: the top level]) ++m4trace:configure.ac:355: -1- AM_CONDITIONAL([WANT_MPI_BINDINGS_LAYER], [test "$WANT_MPI_PROFILING" = 0 -o "$OMPI_PROFILING_COMPILE_SEPARATELY" = 1]) ++m4trace:configure.ac:355: -1- m4_pattern_allow([^WANT_MPI_BINDINGS_LAYER_TRUE$]) ++m4trace:configure.ac:355: -1- m4_pattern_allow([^WANT_MPI_BINDINGS_LAYER_FALSE$]) ++m4trace:configure.ac:355: -1- _AM_SUBST_NOTMAKE([WANT_MPI_BINDINGS_LAYER_TRUE]) ++m4trace:configure.ac:355: -1- _AM_SUBST_NOTMAKE([WANT_MPI_BINDINGS_LAYER_FALSE]) ++m4trace:configure.ac:358: -1- AM_CONDITIONAL([WANT_PMPI_BINDINGS_LAYER], [test "$WANT_MPI_PROFILING" = 1]) ++m4trace:configure.ac:358: -1- m4_pattern_allow([^WANT_PMPI_BINDINGS_LAYER_TRUE$]) ++m4trace:configure.ac:358: -1- m4_pattern_allow([^WANT_PMPI_BINDINGS_LAYER_FALSE$]) ++m4trace:configure.ac:358: -1- _AM_SUBST_NOTMAKE([WANT_PMPI_BINDINGS_LAYER_TRUE]) ++m4trace:configure.ac:358: -1- _AM_SUBST_NOTMAKE([WANT_PMPI_BINDINGS_LAYER_FALSE]) ++m4trace:configure.ac:360: -1- AM_CONDITIONAL([COMPILE_PROFILING_SEPARATELY], [test "$OMPI_PROFILING_COMPILE_SEPARATELY" = 1]) ++m4trace:configure.ac:360: -1- m4_pattern_allow([^COMPILE_PROFILING_SEPARATELY_TRUE$]) ++m4trace:configure.ac:360: -1- m4_pattern_allow([^COMPILE_PROFILING_SEPARATELY_FALSE$]) ++m4trace:configure.ac:360: -1- _AM_SUBST_NOTMAKE([COMPILE_PROFILING_SEPARATELY_TRUE]) ++m4trace:configure.ac:360: -1- _AM_SUBST_NOTMAKE([COMPILE_PROFILING_SEPARATELY_FALSE]) ++m4trace:configure.ac:362: -1- m4_pattern_allow([^OMPI_ENABLE_MPI_PROFILING$]) ++m4trace:configure.ac:364: -1- m4_pattern_allow([^OMPI_HAVE_WEAK_SYMBOLS$]) ++m4trace:configure.ac:372: -1- OMPI_SETUP_CXX ++m4trace:configure.ac:372: -1- _OMPI_START_SETUP_CXX ++m4trace:configure.ac:372: -1- _OMPI_PROG_CXX ++m4trace:configure.ac:372: -1- m4_pattern_allow([^CXX$]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^CXXFLAGS$]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^LDFLAGS$]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^LIBS$]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^CPPFLAGS$]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^CXX$]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^ac_ct_CXX$]) ++m4trace:configure.ac:372: -1- _AM_DEPENDENCIES([CXX]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^CXXDEPMODE$]) ++m4trace:configure.ac:372: -1- AM_CONDITIONAL([am__fastdepCXX], [ ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^am__fastdepCXX_TRUE$]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^am__fastdepCXX_FALSE$]) ++m4trace:configure.ac:372: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_TRUE]) ++m4trace:configure.ac:372: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_FALSE]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^CXXCPP$]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^CPPFLAGS$]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^CXXCPP$]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^OMPI_CXX$]) ++m4trace:configure.ac:372: -1- OMPI_WHICH([$ompi_cxx_argv0], [OMPI_CXX_ABSOLUTE]) ++m4trace:configure.ac:372: -1- OMPI_VAR_SCOPE_PUSH([ompi_prog ompi_file ompi_dir ompi_sentinel]) ++m4trace:configure.ac:372: -1- OMPI_VAR_SCOPE_POP ++m4trace:configure.ac:372: -1- m4_pattern_allow([^OMPI_CXX_ABSOLUTE$]) ++m4trace:configure.ac:372: -1- OMPI_CXX_COMPILER_VENDOR([ompi_cxx_vendor]) ++m4trace:configure.ac:372: -1- _OMPI_CHECK_COMPILER_VENDOR([ompi_cv_cxx_compiler_vendor]) ++m4trace:configure.ac:372: -1- OMPI_IF_IFELSE([defined(__INTEL_COMPILER) || defined(__ICC)], [ompi_check_compiler_vendor_result="intel"]) ++m4trace:configure.ac:372: -1- OMPI_IFDEF_IFELSE([__GNUC__], [ompi_check_compiler_vendor_result="gnu"]) ++m4trace:configure.ac:372: -1- OMPI_IFDEF_IFELSE([__TURBOC__], [ompi_check_compiler_vendor_result="borland"]) ++m4trace:configure.ac:372: -1- OMPI_IFDEF_IFELSE([__BORLANDC__], [ompi_check_compiler_vendor_result="borland"]) ++m4trace:configure.ac:372: -1- OMPI_IFDEF_IFELSE([__COMO__], [ompi_check_compiler_vendor_result="comeau"]) ++m4trace:configure.ac:372: -1- OMPI_IF_IFELSE([defined(__DECC) || defined(VAXC) || defined(__VAXC)], [ompi_check_compiler_vendor_result="compaq"], [OMPI_IF_IFELSE([defined(__osf__) && defined(__LANGUAGE_C__)], ++ [ompi_check_compiler_vendor_result="compaq"], ++ [OMPI_IFDEF_IFELSE([__DECCXX], ++ [ompi_check_compiler_vendor_result="compaq"])])]) ++m4trace:configure.ac:372: -1- OMPI_IF_IFELSE([defined(__osf__) && defined(__LANGUAGE_C__)], [ompi_check_compiler_vendor_result="compaq"], [OMPI_IFDEF_IFELSE([__DECCXX], ++ [ompi_check_compiler_vendor_result="compaq"])]) ++m4trace:configure.ac:372: -1- OMPI_IFDEF_IFELSE([__DECCXX], [ompi_check_compiler_vendor_result="compaq"]) ++m4trace:configure.ac:372: -1- OMPI_IFDEF_IFELSE([_CRAYC], [ompi_check_compiler_vendor_result="cray"]) ++m4trace:configure.ac:372: -1- OMPI_IFDEF_IFELSE([__DCC__], [ompi_check_compiler_vendor_result="diab"]) ++m4trace:configure.ac:372: -1- OMPI_IF_IFELSE([defined(__DMC__) || defined(__SC__) || defined(__ZTC__)], [ompi_check_compiler_vendor_result="digital mars"]) ++m4trace:configure.ac:372: -1- OMPI_IF_IFELSE([defined(__HP_cc) || defined(__HP_aCC)], [ompi_check_compiler_vendor_result="hp"]) ++m4trace:configure.ac:372: -1- OMPI_IF_IFELSE([defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__)], [ompi_check_compiler_vendor_result="ibm"], [OMPI_IF_IFELSE([defined(_AIX) && !defined(__GNUC__)], ++ [ompi_check_compiler_vendor_result="ibm"])]) ++m4trace:configure.ac:372: -1- OMPI_IF_IFELSE([defined(_AIX) && !defined(__GNUC__)], [ompi_check_compiler_vendor_result="ibm"]) ++m4trace:configure.ac:372: -1- OMPI_IFDEF_IFELSE([__KCC], [ompi_check_compiler_vendor_result="kai"]) ++m4trace:configure.ac:372: -1- OMPI_IFDEF_IFELSE([__LCC__], [ompi_check_compiler_vendor_result="lcc"]) ++m4trace:configure.ac:372: -1- OMPI_IFDEF_IFELSE([__HIGHC__], [ompi_check_compiler_vendor_result="metaware high"]) ++m4trace:configure.ac:372: -1- OMPI_IFDEF_IFELSE([__MWERKS__], [ompi_check_compiler_vendor_result="metrowerks"]) ++m4trace:configure.ac:372: -1- OMPI_IF_IFELSE([defined(sgi) || defined(__sgi)], [ompi_check_compiler_vendor_result="sgi"]) ++m4trace:configure.ac:372: -1- OMPI_IF_IFELSE([defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS)], [ompi_check_compiler_vendor_result="mpw"]) ++m4trace:configure.ac:372: -1- OMPI_IF_IFELSE([defined(_MSC_VER) || defined(__MSC_VER)], [ompi_check_compiler_vendor_result="microsoft"]) ++m4trace:configure.ac:372: -1- OMPI_IFDEF_IFELSE([__CC_NORCROFT], [ompi_check_compiler_vendor_result="norcroft"]) ++m4trace:configure.ac:372: -1- OMPI_IFDEF_IFELSE([__POCC__], [ompi_check_compiler_vendor_result="pelles"]) ++m4trace:configure.ac:372: -1- OMPI_IFDEF_IFELSE([__PGI], [ompi_check_compiler_vendor_result="portland group"]) ++m4trace:configure.ac:372: -1- OMPI_IF_IFELSE([defined(SASC) || defined(__SASC) || defined(__SASC__)], [ompi_check_compiler_vendor_result="sas"]) ++m4trace:configure.ac:372: -1- OMPI_IF_IFELSE([defined(__SUNPRO_C) || defined(__SUNPRO_CC)], [ompi_check_compiler_vendor_result="sun"]) ++m4trace:configure.ac:372: -1- OMPI_IFDEF_IFELSE([__TenDRA__], [ompi_check_compiler_vendor_result="tendra"]) ++m4trace:configure.ac:372: -1- OMPI_IFDEF_IFELSE([__TINYC__], [ompi_check_compiler_vendor_result="tiny"]) ++m4trace:configure.ac:372: -1- OMPI_IFDEF_IFELSE([__USLC__], [ompi_check_compiler_vendor_result="usl"]) ++m4trace:configure.ac:372: -1- OMPI_IFDEF_IFELSE([__WATCOMC__], [ompi_check_compiler_vendor_result="watcom"]) ++m4trace:configure.ac:372: -1- OMPI_CHECK_COMPILER_WORKS([C++], [#include ], [std::string foo = "Hello, world"], [], [AC_MSG_ERROR([Could not run a simple C++ program. Aborting.])]) ++m4trace:configure.ac:372: -1- OMPI_UNIQ([CXXFLAGS]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- OMPI_UNIQ([CXXFLAGS]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- OMPI_UNIQ([CXXFLAGS]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- OMPI_CXX_HAVE_EXCEPTIONS ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_LANG_SAVE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/lang.m4:167: AC_LANG_SAVE is expanded from... ++config/cxx_have_exceptions.m4:21: OMPI_CXX_HAVE_EXCEPTIONS is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_LANG_CPLUSPLUS' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/c.m4:105: AC_LANG_CPLUSPLUS is expanded from... ++config/cxx_have_exceptions.m4:21: OMPI_CXX_HAVE_EXCEPTIONS is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_LANG_RESTORE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/lang.m4:176: AC_LANG_RESTORE is expanded from... ++config/cxx_have_exceptions.m4:21: OMPI_CXX_HAVE_EXCEPTIONS is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- OMPI_CXX_FIND_EXCEPTION_FLAGS ++m4trace:configure.ac:372: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/cxx_find_exception_flags.m4:21: OMPI_CXX_FIND_EXCEPTION_FLAGS is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_LANG_SAVE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/lang.m4:167: AC_LANG_SAVE is expanded from... ++config/cxx_find_exception_flags.m4:21: OMPI_CXX_FIND_EXCEPTION_FLAGS is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_LANG_CPLUSPLUS' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/c.m4:105: AC_LANG_CPLUSPLUS is expanded from... ++config/cxx_find_exception_flags.m4:21: OMPI_CXX_FIND_EXCEPTION_FLAGS is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_LANG_RESTORE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/lang.m4:176: AC_LANG_RESTORE is expanded from... ++config/cxx_find_exception_flags.m4:21: OMPI_CXX_FIND_EXCEPTION_FLAGS is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_LANG_SAVE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/lang.m4:167: AC_LANG_SAVE is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_LANG_C' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/c.m4:73: AC_LANG_C is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_LANG_RESTORE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/lang.m4:176: AC_LANG_RESTORE is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^OMPI_HAVE_CXX_EXCEPTION_SUPPORT$]) ++m4trace:configure.ac:372: -1- OMPI_LANG_LINK_WITH_C([C++], [], [cat <&2 ++********************************************************************** ++* It appears that your C++ compiler is unable to link against object ++* files created by your C compiler. This generally indicates either ++* a conflict between the options specified in CFLAGS and CXXFLAGS ++* or a problem with the local compiler installation. More ++* information (including exactly what command was given to the ++* compilers and what error resulted when the commands were executed) is ++* available in the config.log file in this directory. ++********************************************************************** ++EOF ++ AC_MSG_ERROR([C and C++ compilers are not link compatible. Can not continue.])]) ++m4trace:configure.ac:372: -1- OMPI_LOG_COMMAND([$CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext], [AC_LANG_PUSH(C++) ++ ompi_lang_link_with_c_libs="$LIBS" ++ LIBS="conftest_c.o $LIBS" ++ m4_if(ompi_lang_link_with_c_fortran, 1, ++ [AC_LINK_IFELSE([AC_LANG_PROGRAM([], [ ++ external testfunc ++ call testfunc(1) ++])], ++ [AS_VAR_SET(lang_var, ["yes"])], [AS_VAR_SET(lang_var, ["no"])])], ++ [AC_LINK_IFELSE([AC_LANG_PROGRAM([ ++#if defined(c_plusplus) || defined(__cplusplus) ++extern "C" int testfunc(int); ++#else ++extern int testfunc(int); ++#endif ++], ++ [return testfunc(0);])], ++ [AS_VAR_SET(lang_var, ["yes"])], [AS_VAR_SET(lang_var, ["no"])])]) ++ LIBS="$ompi_lang_link_with_c_libs" ++ AC_LANG_POP(C++)], [AS_VAR_SET(lang_var, ["no"])]) ++m4trace:configure.ac:372: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:372: -1- OMPI_CXX_FIND_TEMPLATE_REPOSITORY ++m4trace:configure.ac:372: -1- _OMPI_CXX_FIND_TEMPLATE_REPOSITORY ++m4trace:configure.ac:372: -1- OMPI_CXX_FIND_TEMPLATE_PARAMETERS ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^OMPI_CXX_HAVE_BUILTIN_EXPECT$]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^OMPI_CXX_HAVE_BUILTIN_PREFETCH$]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^OMPI_CXX_SUPPORTS_2D_CONST_CAST$]) ++m4trace:configure.ac:372: -1- OMPI_CHECK_OPTFLAGS(["$CXXFLAGS"]) ++m4trace:configure.ac:376: -1- OMPI_CHECK_IDENT([CXX], [CXXFLAGS], [cc], [C++]) ++m4trace:configure.ac:376: -3- _OMPI_CHECK_IDENT([CXX], [CXXFLAGS], [cc], [[#]pragma comment(exestr, ], [)], [ompi_pragma_comment_happy=1 ++ ompi_message="[#]pragma comment"], [ompi_static_const_char_happy=1 ++ ompi_message="static const char[[]]"]) ++m4trace:configure.ac:376: -3- OMPI_LOG_COMMAND([$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}], [AS_IF([test -f conftest.${OBJEXT}], ++ [ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ AS_IF([test "$ompi_output" != "" -o "$ompi_status" = "0"], ++ [ompi_pragma_comment_happy=1 ++ ompi_message="[#]pragma comment"], ++ [ompi_static_const_char_happy=1 ++ ompi_message="static const char[[]]"])], ++ [OMPI_LOG_MSG([the failed program was:]) ++ OMPI_LOG_FILE([conftest.cc]) ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[[]]"] ++ [ompi_static_const_char_happy=1 ++ ompi_message="static const char[[]]"])]) ++m4trace:configure.ac:376: -3- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:376: -3- OMPI_LOG_MSG([the failed program was:]) ++m4trace:configure.ac:376: -3- OMPI_LOG_FILE([conftest.cc]) ++m4trace:configure.ac:376: -2- _OMPI_CHECK_IDENT([CXX], [CXXFLAGS], [cc], [[#]ident], [], [ompi_ident_happy=1 ++ ompi_message="[#]ident"], [ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[]" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[]" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[]" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++]) ++m4trace:configure.ac:376: -2- OMPI_LOG_COMMAND([$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}], [AS_IF([test -f conftest.${OBJEXT}], ++ [ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ AS_IF([test "$ompi_output" != "" -o "$ompi_status" = "0"], ++ [ompi_ident_happy=1 ++ ompi_message="[#]ident"], ++ [ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[]" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[]" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[]" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++])], ++ [OMPI_LOG_MSG([the failed program was:]) ++ OMPI_LOG_FILE([conftest.cc]) ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[]" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[]" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[]" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++] ++ [ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[]" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[]" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char[]" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++])]) ++m4trace:configure.ac:376: -2- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:376: -2- OMPI_LOG_MSG([the failed program was:]) ++m4trace:configure.ac:376: -2- OMPI_LOG_FILE([conftest.cc]) ++m4trace:configure.ac:376: -1- _OMPI_CHECK_IDENT([CXX], [CXXFLAGS], [cc], [[#]pragma ident], [], [ompi_pragma_ident_happy=1 ++ ompi_message="[#]pragma ident"], [ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_ident_happy=1 ++ ompi_message="#ident" ++else ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++]) ++m4trace:configure.ac:376: -1- OMPI_LOG_COMMAND([$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}], [AS_IF([test -f conftest.${OBJEXT}], ++ [ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ AS_IF([test "$ompi_output" != "" -o "$ompi_status" = "0"], ++ [ompi_pragma_ident_happy=1 ++ ompi_message="[#]pragma ident"], ++ [ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_ident_happy=1 ++ ompi_message="#ident" ++else ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++])], ++ [OMPI_LOG_MSG([the failed program was:]) ++ OMPI_LOG_FILE([conftest.cc]) ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_ident_happy=1 ++ ompi_message="#ident" ++else ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++] ++ [ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_ident_happy=1 ++ ompi_message="#ident" ++else ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++ ++ eval ompi_compiler="\$CXX" ++ eval ompi_flags="\$CXXFLAGS" ++ ++ ompi_ident="string_not_coincidentally_inserted_by_the_compiler" ++ cat > conftest.cc <&5 ++$ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT} 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ if test -f conftest.${OBJEXT}; then ++ ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`" ++ grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null ++ ompi_status=$? ++ if test "$ompi_output" != "" -o "$ompi_status" = "0"; then ++ ompi_pragma_comment_happy=1 ++ ompi_message="#pragma comment" ++else ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n ""; then ++ echo "configure:__oline__: the failed program was:" >&5 ++else ++ echo the failed program was: >&5 ++fi ++ ++# 1 is the filename ++if test -n "conftest.cc" -a -f "conftest.cc"; then ++ cat conftest.cc >&5 ++fi ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++ ompi_static_const_char_happy=1 ++ ompi_message="static const char" ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++ ++fi ++ ++else ++ unset ompi_status ++ ++fi ++ ++ unset ompi_compiler ompi_flags ompi_output ompi_status ++ rm -rf conftest.* conftest${EXEEXT} ++])]) ++m4trace:configure.ac:376: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:376: -1- OMPI_LOG_MSG([the failed program was:]) ++m4trace:configure.ac:376: -1- OMPI_LOG_FILE([conftest.cc]) ++m4trace:configure.ac:376: -1- m4_pattern_allow([^OMPI_CXX_USE_PRAGMA_IDENT$]) ++m4trace:configure.ac:376: -1- m4_pattern_allow([^OMPI_CXX_USE_IDENT$]) ++m4trace:configure.ac:376: -1- m4_pattern_allow([^OMPI_CXX_USE_PRAGMA_COMMENT$]) ++m4trace:configure.ac:376: -1- m4_pattern_allow([^OMPI_CXX_USE_CONST_CHAR_IDENT$]) ++m4trace:configure.ac:381: -1- m4_pattern_allow([^SIZEOF_BOOL$]) ++m4trace:configure.ac:385: -1- OMPI_C_GET_ALIGNMENT([bool], [OMPI_ALIGNMENT_CXX_BOOL]) ++m4trace:configure.ac:385: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:385: the top level]) ++m4trace:configure.ac:385: -1- _m4_warn([obsolete], [The macro `_AC_COMPUTE_INT' is obsolete and will be deleted in a ++future version or Autoconf. Hence, it is suggested that you use ++instead the public AC_COMPUTE_INT macro. Note that the arguments are ++slightly different between the two.], [../../lib/autoconf/general.m4:2723: _AC_COMPUTE_INT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:385: the top level]) ++m4trace:configure.ac:385: -1- m4_pattern_allow([^OMPI_ALIGNMENT_CXX_BOOL$]) ++m4trace:configure.ac:390: -1- AM_CONDITIONAL([WANT_MPI_CXX_BINDINGS], [test "$WANT_MPI_CXX_SUPPORT" = 1]) ++m4trace:configure.ac:390: -1- m4_pattern_allow([^WANT_MPI_CXX_BINDINGS_TRUE$]) ++m4trace:configure.ac:390: -1- m4_pattern_allow([^WANT_MPI_CXX_BINDINGS_FALSE$]) ++m4trace:configure.ac:390: -1- _AM_SUBST_NOTMAKE([WANT_MPI_CXX_BINDINGS_TRUE]) ++m4trace:configure.ac:390: -1- _AM_SUBST_NOTMAKE([WANT_MPI_CXX_BINDINGS_FALSE]) ++m4trace:configure.ac:392: -1- m4_pattern_allow([^OMPI_WANT_CXX_BINDINGS$]) ++m4trace:configure.ac:400: -1- OMPI_CHECK_ATTRIBUTES ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE$]) ++m4trace:configure.ac:400: -1- _OMPI_CHECK_SPECIFIC_ATTRIBUTE([aligned], [struct foo { char text[4]; } __attribute__ ((__aligned__(8)));], [], []) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([aligned]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([aligned]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([aligned]) ++m4trace:configure.ac:400: -1- _OMPI_CHECK_SPECIFIC_ATTRIBUTE([always_inline], [int foo (int arg) __attribute__ ((__always_inline__));], [], []) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([always_inline]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([always_inline]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([always_inline]) ++m4trace:configure.ac:400: -1- _OMPI_CHECK_SPECIFIC_ATTRIBUTE([cold], [ ++ int foo(int arg1, int arg2) __attribute__ ((__cold__)); ++ int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } ++ ], [], []) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([cold]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([cold]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([cold]) ++m4trace:configure.ac:400: -1- _OMPI_CHECK_SPECIFIC_ATTRIBUTE([const], [ ++ int foo(int arg1, int arg2) __attribute__ ((__const__)); ++ int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } ++ ], [], []) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([const]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([const]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([const]) ++m4trace:configure.ac:400: -1- _OMPI_CHECK_SPECIFIC_ATTRIBUTE([deprecated], [ ++ int foo(int arg1, int arg2) __attribute__ ((__deprecated__)); ++ int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } ++ ], [], []) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([deprecated]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([deprecated]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([deprecated]) ++m4trace:configure.ac:400: -1- _OMPI_CHECK_SPECIFIC_ATTRIBUTE([format], [ ++ int this_printf (void *my_object, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3))); ++ ], [ ++ static int usage (int * argument); ++ extern int this_printf (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3))); ++ ++ static int usage (int * argument) { ++ return this_printf (*argument, "%d", argument); /* This should produce a format warning */ ++ } ++ /* The autoconf-generated main-function is int main(), which produces a warning by itself */ ++ int main(void); ++ ], [$ATTRIBUTE_CFLAGS]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([format]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([format]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([format]) ++m4trace:configure.ac:400: -1- _OMPI_CHECK_SPECIFIC_ATTRIBUTE([hot], [ ++ int foo(int arg1, int arg2) __attribute__ ((__hot__)); ++ int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } ++ ], [], []) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([hot]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([hot]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([hot]) ++m4trace:configure.ac:400: -1- _OMPI_CHECK_SPECIFIC_ATTRIBUTE([malloc], [ ++#ifdef HAVE_STDLIB_H ++# include ++#endif ++ int * foo(int arg1) __attribute__ ((__malloc__)); ++ int * foo(int arg1) { return (int*) malloc(arg1); } ++ ], [], []) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([malloc]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([malloc]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([malloc]) ++m4trace:configure.ac:400: -1- _OMPI_CHECK_SPECIFIC_ATTRIBUTE([may_alias], [int * p_value __attribute__ ((__may_alias__));], [], []) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([may_alias]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([may_alias]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([may_alias]) ++m4trace:configure.ac:400: -1- _OMPI_CHECK_SPECIFIC_ATTRIBUTE([no_instrument_function], [int * foo(int arg1) __attribute__ ((__no_instrument_function__));], [], []) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([no_instrument_function]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([no_instrument_function]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([no_instrument_function]) ++m4trace:configure.ac:400: -1- _OMPI_CHECK_SPECIFIC_ATTRIBUTE([nonnull], [ ++ int square(int *arg) __attribute__ ((__nonnull__)); ++ int square(int *arg) { return *arg; } ++ ], [ ++ static int usage(int * argument); ++ int square(int * argument) __attribute__ ((__nonnull__)); ++ int square(int * argument) { return (*argument) * (*argument); } ++ ++ static int usage(int * argument) { ++ return square( ((void*)0) ); /* This should produce an argument must be nonnull warning */ ++ } ++ /* The autoconf-generated main-function is int main(), which produces a warning by itself */ ++ int main(void); ++ ], [$ATTRIBUTE_CFLAGS]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([nonnull]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([nonnull]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([nonnull]) ++m4trace:configure.ac:400: -1- _OMPI_CHECK_SPECIFIC_ATTRIBUTE([noreturn], [ ++#ifdef HAVE_UNISTD_H ++# include ++#endif ++#ifdef HAVE_STDLIB_H ++# include ++#endif ++ void fatal(int arg1) __attribute__ ((__noreturn__)); ++ void fatal(int arg1) { exit(arg1); } ++ ], [], []) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([noreturn]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([noreturn]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([noreturn]) ++m4trace:configure.ac:400: -1- _OMPI_CHECK_SPECIFIC_ATTRIBUTE([packed], [ ++ struct foo { ++ char a; ++ int x[2] __attribute__ ((__packed__)); ++ }; ++ ], [], []) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([packed]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([packed]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([packed]) ++m4trace:configure.ac:400: -1- _OMPI_CHECK_SPECIFIC_ATTRIBUTE([pure], [ ++ int square(int arg) __attribute__ ((__pure__)); ++ int square(int arg) { return arg * arg; } ++ ], [], []) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([pure]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([pure]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([pure]) ++m4trace:configure.ac:400: -1- _OMPI_CHECK_SPECIFIC_ATTRIBUTE([sentinel], [ ++ int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__)); ++ ], [ ++ static int usage(int * argument); ++ int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__)); ++ ++ static int usage(int * argument) { ++ void * last_arg_should_be_null = argument; ++ return my_execlp ("lala", "/home/there", last_arg_should_be_null); /* This should produce a warning */ ++ } ++ /* The autoconf-generated main-function is int main(), which produces a warning by itself */ ++ int main(void); ++ ], [$ATTRIBUTE_CFLAGS]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([sentinel]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([sentinel]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([sentinel]) ++m4trace:configure.ac:400: -1- _OMPI_CHECK_SPECIFIC_ATTRIBUTE([unused], [ ++ int square(int arg1 __attribute__ ((__unused__)), int arg2); ++ int square(int arg1, int arg2) { return arg2; } ++ ], [], []) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([unused]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([unused]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([unused]) ++m4trace:configure.ac:400: -1- _OMPI_CHECK_SPECIFIC_ATTRIBUTE([visibility], [ ++ int square(int arg1) __attribute__ ((__visibility__("hidden"))); ++ ], [], []) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([visibility]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([visibility]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([visibility]) ++m4trace:configure.ac:400: -1- _OMPI_CHECK_SPECIFIC_ATTRIBUTE([warn_unused_result], [ ++ int foo(int arg) __attribute__ ((__warn_unused_result__)); ++ int foo(int arg) { return arg + 3; } ++ ], [ ++ static int usage(int * argument); ++ int foo(int arg) __attribute__ ((__warn_unused_result__)); ++ ++ int foo(int arg) { return arg + 3; } ++ static int usage(int * argument) { ++ foo (*argument); /* Should produce an unused result warning */ ++ return 0; ++ } ++ ++ /* The autoconf-generated main-function is int main(), which produces a warning by itself */ ++ int main(void); ++ ], [$ATTRIBUTE_CFLAGS]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([warn_unused_result]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([warn_unused_result]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([warn_unused_result]) ++m4trace:configure.ac:400: -1- _OMPI_CHECK_SPECIFIC_ATTRIBUTE([weak_alias], [ ++ int foo(int arg); ++ int foo(int arg) { return arg + 3; } ++ int foo2(int arg) __attribute__ ((__weak__, __alias__("foo"))); ++ ], [], []) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([weak_alias]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([weak_alias]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _OMPI_ATTRIBUTE_FAIL_SEARCH([weak_alias]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_ALIGNED$]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_ALWAYS_INLINE$]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_COLD$]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_CONST$]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_DEPRECATED$]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_FORMAT$]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_HOT$]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_MALLOC$]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_MAY_ALIAS$]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_NO_INSTRUMENT_FUNCTION$]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_NONNULL$]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_NORETURN$]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_PACKED$]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_PURE$]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_SENTINEL$]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_UNUSED$]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_VISIBILITY$]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT$]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_WEAK_ALIAS$]) ++m4trace:configure.ac:409: -1- AM_PROG_AS ++m4trace:configure.ac:409: -1- m4_pattern_allow([^CCAS$]) ++m4trace:configure.ac:409: -1- m4_pattern_allow([^CCASFLAGS$]) ++m4trace:configure.ac:409: -1- _AM_IF_OPTION([no-dependencies], [], [_AM_DEPENDENCIES([CCAS])]) ++m4trace:configure.ac:409: -2- _AM_MANGLE_OPTION([no-dependencies]) ++m4trace:configure.ac:409: -1- _AM_DEPENDENCIES([CCAS]) ++m4trace:configure.ac:409: -1- m4_pattern_allow([^CCASDEPMODE$]) ++m4trace:configure.ac:409: -1- AM_CONDITIONAL([am__fastdepCCAS], [ ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3]) ++m4trace:configure.ac:409: -1- m4_pattern_allow([^am__fastdepCCAS_TRUE$]) ++m4trace:configure.ac:409: -1- m4_pattern_allow([^am__fastdepCCAS_FALSE$]) ++m4trace:configure.ac:409: -1- _AM_SUBST_NOTMAKE([am__fastdepCCAS_TRUE]) ++m4trace:configure.ac:409: -1- _AM_SUBST_NOTMAKE([am__fastdepCCAS_FALSE]) ++m4trace:configure.ac:410: -1- OMPI_CONFIG_ASM ++m4trace:configure.ac:410: -1- OMPI_VAR_SCOPE_PUSH([ompi_config_asm_flags_new ompi_config_asm_flag]) ++m4trace:configure.ac:410: -1- OMPI_VAR_SCOPE_POP ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_WANT_SMP_LOCKS$]) ++m4trace:configure.ac:410: -1- OMPI_CHECK_ASM_PROC ++m4trace:configure.ac:410: -1- OMPI_TRY_ASSEMBLE([ ++ .proc mysym ++mysym: ++ .endp mysym], [ompi_cv_asm_need_proc="yes"]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:157: OMPI_CHECK_ASM_PROC is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:157: OMPI_CHECK_ASM_PROC is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:157: OMPI_CHECK_ASM_PROC is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:157: OMPI_CHECK_ASM_PROC is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- OMPI_CHECK_ASM_TEXT ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_TEXT$]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_TEXT$]) ++m4trace:configure.ac:410: -1- OMPI_CHECK_ASM_GLOBAL ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_GLOBAL$]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_AS_GLOBAL$]) ++m4trace:configure.ac:410: -1- OMPI_CHECK_ASM_GNU_STACKEXEC ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OBJDUMP$]) ++m4trace:configure.ac:410: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -c conftest.c -o conftest.$OBJEXT], [$OBJDUMP -x conftest.$OBJEXT | $GREP '\.note\.GNU-stack' > /dev/null && ompi_cv_asm_gnu_stack_result=yes], [OMPI_LOG_MSG([the failed program was:], 1) ++ OMPI_LOG_FILE([conftest.c]) ++ ompi_cv_asm_gnu_stack_result=no]) ++m4trace:configure.ac:410: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:410: -1- OMPI_LOG_MSG([the failed program was:], [1]) ++m4trace:configure.ac:410: -1- OMPI_LOG_FILE([conftest.c]) ++m4trace:configure.ac:410: -1- OMPI_CHECK_ASM_LABEL_SUFFIX ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_LABEL_SUFFIX$]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_AS_LABEL_SUFFIX$]) ++m4trace:configure.ac:410: -1- OMPI_CHECK_ASM_GSYM ++m4trace:configure.ac:410: -1- _OMPI_CHECK_ASM_GSYM ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- OMPI_TRY_ASSEMBLE([ ++$ompi_cv_asm_text ++$ompi_cv_asm_proc ${sym}gsym_test_func ++$ompi_cv_asm_global ${sym}gsym_test_func ++${sym}gsym_test_func${ompi_cv_asm_label_suffix} ++$ompi_cv_asm_endproc ${sym}gsym_test_func ++ ], [ompi_compile="$CC $CFLAGS -I. conftest_c.c -c > conftest.cmpl 2>&1" ++ if AC_TRY_EVAL(ompi_compile) ; then ++ # save the warnings ++ cat conftest.cmpl >&AC_FD_CC ++ ompi_link="$CC $CFLAGS conftest_c.$OBJEXT conftest.$OBJEXT -o conftest $LDFLAGS $LIBS > conftest.link 2>&1" ++ if AC_TRY_EVAL(ompi_link) ; then ++ # save the warnings ++ cat conftest.link >&AC_FD_CC ++ asm_result=1 ++ else ++ cat conftest.link >&AC_FD_CC ++ echo "configure: failed C program was: " >&AC_FD_CC ++ cat conftest_c.c >&AC_FD_CC ++ echo "configure: failed ASM program was: " >&AC_FD_CC ++ cat conftest.s >&AC_FD_CC ++ asm_result=0 ++ fi ++ else ++ # save output and failed program ++ cat conftest.cmpl >&AC_FD_CC ++ echo "configure: failed C program was: " >&AC_FD_CC ++ cat conftest.c >&AC_FD_CC ++ asm_result=0 ++ fi], [asm_result=0]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_GSYM$]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_GSYM$]) ++m4trace:configure.ac:410: -1- OMPI_CHECK_ASM_LSYM ++m4trace:configure.ac:410: -1- AC_PROG_NM ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_PROG_NM' is obsolete. ++You should run autoupdate.], [config/libtool.m4:3246: AC_PROG_NM is expanded from... ++config/ompi_config_asm.m4:137: OMPI_CHECK_ASM_LSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- LT_PATH_NM ++m4trace:configure.ac:410: -1- m4_pattern_allow([^DUMPBIN$]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^ac_ct_DUMPBIN$]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^DUMPBIN$]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^NM$]) ++m4trace:configure.ac:410: -1- _OMPI_CHECK_ASM_LSYM([ompi_cv_asm_lsym]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_config_asm.m4:98: _OMPI_CHECK_ASM_LSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:137: OMPI_CHECK_ASM_LSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- OMPI_TRY_ASSEMBLE([foobar$ompi_cv_asm_label_suffix ++${sym}mytestlabel$ompi_cv_asm_label_suffix], [# ok, we succeeded at assembling. see if we can nm, ++ # throwing the results in a file ++ if $NM conftest.$OBJEXT > conftest.out 2>&AC_FD_CC ; then ++ if test "`$GREP mytestlabel conftest.out`" = "" ; then ++ # there was no symbol... looks promising to me ++ ompi_cv_asm_lsym="$sym" ++ asm_result=1 ++ elif test ["`$GREP ' [Nt] .*mytestlabel' conftest.out`"] = "" ; then ++ # see if we have a non-global-ish symbol ++ # but we should see if we can do better. ++ ompi_cv_asm_lsym="$sym" ++ fi ++ else ++ # not so much on the NM goodness :/ ++ echo "$NM failed. Output from NM was:" >&AC_FD_CC ++ cat conftest.out >&AC_FD_CC ++ AC_MSG_WARN([$NM could not read object file]) ++ fi ++ ]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:98: _OMPI_CHECK_ASM_LSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:137: OMPI_CHECK_ASM_LSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:98: _OMPI_CHECK_ASM_LSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:137: OMPI_CHECK_ASM_LSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:98: _OMPI_CHECK_ASM_LSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:137: OMPI_CHECK_ASM_LSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:98: _OMPI_CHECK_ASM_LSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:137: OMPI_CHECK_ASM_LSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:98: _OMPI_CHECK_ASM_LSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:137: OMPI_CHECK_ASM_LSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:98: _OMPI_CHECK_ASM_LSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:137: OMPI_CHECK_ASM_LSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:98: _OMPI_CHECK_ASM_LSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:137: OMPI_CHECK_ASM_LSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_LSYM$]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_LSYM$]) ++m4trace:configure.ac:410: -1- OMPI_CHECK_ASM_TYPE ++m4trace:configure.ac:410: -1- _OMPI_CHECK_ASM_TYPE ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_config_asm.m4:358: _OMPI_CHECK_ASM_TYPE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:347: OMPI_CHECK_ASM_TYPE is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- OMPI_TRY_ASSEMBLE([ .type mysym, ${type}function ++mysym:], [ompi_cv_asm_type="${type}" ++ asm_result=1]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:358: _OMPI_CHECK_ASM_TYPE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:347: OMPI_CHECK_ASM_TYPE is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:358: _OMPI_CHECK_ASM_TYPE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:347: OMPI_CHECK_ASM_TYPE is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:358: _OMPI_CHECK_ASM_TYPE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:347: OMPI_CHECK_ASM_TYPE is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:358: _OMPI_CHECK_ASM_TYPE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:347: OMPI_CHECK_ASM_TYPE is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_TYPE$]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_TYPE$]) ++m4trace:configure.ac:410: -1- OMPI_CHECK_ASM_SIZE ++m4trace:configure.ac:410: -1- OMPI_TRY_ASSEMBLE([ .size mysym, 1], [ompi_cv_asm_need_size="yes"]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:396: OMPI_CHECK_ASM_SIZE is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:396: OMPI_CHECK_ASM_SIZE is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:396: OMPI_CHECK_ASM_SIZE is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:396: OMPI_CHECK_ASM_SIZE is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_SIZE$]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_TYPE$]) ++m4trace:configure.ac:410: -1- OMPI_CHECK_ASM_ALIGN_LOG ++m4trace:configure.ac:410: -1- OMPI_TRY_ASSEMBLE([ $ompi_cv_asm_text ++ .align 4 ++ $ompi_cv_asm_global foo ++ .byte 1 ++ .align 4 ++foo$ompi_cv_asm_label_suffix ++ .byte 2], [ompi_asm_addr=[`$NM conftest.$OBJEXT | $GREP foo | sed -e 's/.*\([0-9a-fA-F][0-9a-fA-F]\).*foo.*/\1/'`]], [ompi_asm_addr=""]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:298: OMPI_CHECK_ASM_ALIGN_LOG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:298: OMPI_CHECK_ASM_ALIGN_LOG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:298: OMPI_CHECK_ASM_ALIGN_LOG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:298: OMPI_CHECK_ASM_ALIGN_LOG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:298: OMPI_CHECK_ASM_ALIGN_LOG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_ALIGN_LOG$]) ++m4trace:configure.ac:410: -1- OMPI_CHECK_POWERPC_REG ++m4trace:configure.ac:410: -1- OMPI_TRY_ASSEMBLE([$ompi_cv_asm_text ++ addi 1,1,0], [ompi_cv_asm_powerpc_r_reg=0], [OMPI_TRY_ASSEMBLE([$ompi_cv_asm_text ++ addi r1,r1,0], ++ [ompi_cv_asm_powerpc_r_reg=1], ++ [AC_MSG_ERROR([Can not determine how to use PPC registers])])]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:459: OMPI_CHECK_POWERPC_REG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:459: OMPI_CHECK_POWERPC_REG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:459: OMPI_CHECK_POWERPC_REG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:459: OMPI_CHECK_POWERPC_REG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- OMPI_TRY_ASSEMBLE([$ompi_cv_asm_text ++ addi r1,r1,0], [ompi_cv_asm_powerpc_r_reg=1], [AC_MSG_ERROR([Can not determine how to use PPC registers])]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:459: OMPI_CHECK_POWERPC_REG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:459: OMPI_CHECK_POWERPC_REG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:459: OMPI_CHECK_POWERPC_REG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:459: OMPI_CHECK_POWERPC_REG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_POWERPC_R_REGISTERS$]) ++m4trace:configure.ac:410: -1- OMPI_CHECK_POWERPC_64BIT([OMPI_ASM_SUPPORT_64BIT=1]) ++m4trace:configure.ac:410: -1- OMPI_TRY_ASSEMBLE([$ompi_cv_asm_text ++ $ldarx_asm], [ppc64_result=1], [ppc64_result=0]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:490: OMPI_CHECK_POWERPC_64BIT is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:490: OMPI_CHECK_POWERPC_64BIT is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:490: OMPI_CHECK_POWERPC_64BIT is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:490: OMPI_CHECK_POWERPC_64BIT is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- OMPI_CHECK_SPARCV8PLUS([have_v8plus=1]) ++m4trace:configure.ac:410: -1- OMPI_TRY_ASSEMBLE([$ompi_cv_asm_text ++ casa [%o0] 0x80, %o1, %o2], [sparc_result=1], [sparc_result=0]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:531: OMPI_CHECK_SPARCV8PLUS is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:531: OMPI_CHECK_SPARCV8PLUS is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:531: OMPI_CHECK_SPARCV8PLUS is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:531: OMPI_CHECK_SPARCV8PLUS is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_SUPPORT_64BIT$]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_SUPPORT_64BIT$]) ++m4trace:configure.ac:410: -1- OMPI_CHECK_INLINE_C_GCC([$OMPI_GCC_INLINE_ASSIGN]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_C_GCC_INLINE_ASSEMBLY$]) ++m4trace:configure.ac:410: -1- OMPI_CHECK_INLINE_C_DEC ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_C_DEC_INLINE_ASSEMBLY$]) ++m4trace:configure.ac:410: -1- OMPI_CHECK_INLINE_C_XLC ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_C_XLC_INLINE_ASSEMBLY$]) ++m4trace:configure.ac:410: -1- OMPI_CHECK_INLINE_CXX_GCC([$OMPI_GCC_INLINE_ASSIGN]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_CXX_GCC_INLINE_ASSEMBLY$]) ++m4trace:configure.ac:410: -1- OMPI_CHECK_INLINE_CXX_DEC ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_CXX_DEC_INLINE_ASSEMBLY$]) ++m4trace:configure.ac:410: -1- OMPI_CHECK_INLINE_CXX_XLC ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_CXX_XLC_INLINE_ASSEMBLY$]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASSEMBLY_FORMAT$]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASSEMBLY_FORMAT$]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASSEMBLY_ARCH$]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASSEMBLY_ARCH$]) ++m4trace:configure.ac:410: -1- OMPI_ASM_FIND_FILE ++m4trace:configure.ac:410: -1- m4_pattern_allow([^FGREP$]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^FGREP$]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^PERL$]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_config_asm.m4:1026: OMPI_ASM_FIND_FILE is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_config_asm.m4:1026: OMPI_ASM_FIND_FILE is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_HAVE_ASM_FILE$]) ++m4trace:configure.ac:410: -1- AM_CONDITIONAL([OMPI_HAVE_ASM_FILE], [test "$result" = "1"]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_HAVE_ASM_FILE_TRUE$]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_HAVE_ASM_FILE_FALSE$]) ++m4trace:configure.ac:410: -1- _AM_SUBST_NOTMAKE([OMPI_HAVE_ASM_FILE_TRUE]) ++m4trace:configure.ac:410: -1- _AM_SUBST_NOTMAKE([OMPI_HAVE_ASM_FILE_FALSE]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_FILE$]) ++m4trace:configure.ac:421: -1- OMPI_SETUP_F77 ++m4trace:configure.ac:421: -1- m4_pattern_allow([^F77$]) ++m4trace:configure.ac:421: -1- m4_pattern_allow([^FFLAGS$]) ++m4trace:configure.ac:421: -1- m4_pattern_allow([^LDFLAGS$]) ++m4trace:configure.ac:421: -1- m4_pattern_allow([^LIBS$]) ++m4trace:configure.ac:421: -1- m4_pattern_allow([^F77$]) ++m4trace:configure.ac:421: -1- m4_pattern_allow([^ac_ct_F77$]) ++m4trace:configure.ac:421: -1- OMPI_WHICH([$OMPI_F77_ARGV0], [OMPI_F77_ABSOLUTE]) ++m4trace:configure.ac:421: -1- OMPI_VAR_SCOPE_PUSH([ompi_prog ompi_file ompi_dir ompi_sentinel]) ++m4trace:configure.ac:421: -1- OMPI_VAR_SCOPE_POP ++m4trace:configure.ac:421: -1- OMPI_CHECK_COMPILER_WORKS([Fortran 77], [], [], [], [AC_MSG_ERROR([Could not run a simple Fortran 77 program. Aborting.])]) ++m4trace:configure.ac:421: -1- OMPI_F77_FIND_EXT_SYMBOL_CONVENTION ++m4trace:configure.ac:421: -1- OMPI_LOG_COMMAND([$F77 $FFLAGS -c conftest.f $LDFLAGS $LIBS], [if $NM conftest.o | $GREP foo_bar__ >/dev/null 2>&1 ; then ++ ompi_cv_f77_external_symbol="double underscore" ++ elif $NM conftest.o | $GREP foo_bar_ >/dev/null 2>&1 ; then ++ ompi_cv_f77_external_symbol="single underscore" ++ elif $NM conftest.o | $GREP FOO_bar >/dev/null 2>&1 ; then ++ ompi_cv_f77_external_symbol="mixed case" ++ elif $NM conftest.o | $GREP foo_bar >/dev/null 2>&1 ; then ++ ompi_cv_f77_external_symbol="no underscore" ++ elif $NM conftest.o | $GREP FOO_BAR >/dev/null 2>&1 ; then ++ ompi_cv_f77_external_symbol="upper case" ++ else ++ $NM conftest.o >conftest.out 2>&1 ++ OMPI_LOG_MSG([output from $NM:]) ++ OMPI_LOG_FILE([conftest.out]) ++ AC_MSG_ERROR([Could not determine Fortran naming convention.]) ++ fi], [AC_MSG_ERROR([Fortran compiler did not produce object file])]) ++m4trace:configure.ac:421: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:421: -1- OMPI_LOG_MSG([output from $NM:]) ++m4trace:configure.ac:421: -1- OMPI_LOG_FILE([conftest.out]) ++m4trace:configure.ac:421: -1- m4_pattern_allow([^OMPI_F77_DOUBLE_UNDERSCORE$]) ++m4trace:configure.ac:421: -1- m4_pattern_allow([^OMPI_F77_SINGLE_UNDERSCORE$]) ++m4trace:configure.ac:421: -1- m4_pattern_allow([^OMPI_F77_CAPS$]) ++m4trace:configure.ac:421: -1- m4_pattern_allow([^OMPI_F77_PLAIN$]) ++m4trace:configure.ac:421: -1- OMPI_LANG_LINK_WITH_C([Fortran 77], [], [cat <&5 ++$OMPI_F90 $FCFLAGS -o conftest conftestf90.o conftestf77.o $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ HAPPY=1 ++else ++ unset ompi_status ++ HAPPY=0 ++fi], [HAPPY=0]) ++m4trace:configure.ac:533: -2- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:533: -1- OMPI_LOG_COMMAND([$OMPI_F90 $FCFLAGS $FCFLAGS_f -c conftestf90.f], [ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $OMPI_F77 $FFLAGS -c conftestf77.f" >&5 ++$OMPI_F77 $FFLAGS -c conftestf77.f 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $OMPI_F90 $FCFLAGS -o conftest conftestf90.o conftestf77.o $LDFLAGS $LIBS" >&5 ++$OMPI_F90 $FCFLAGS -o conftest conftestf90.o conftestf77.o $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ HAPPY=1 ++else ++ unset ompi_status ++ HAPPY=0 ++fi ++else ++ unset ompi_status ++ HAPPY=0 ++fi], [HAPPY=0]) ++m4trace:configure.ac:533: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:533: -1- OMPI_LOG_MSG([here is the F77 program:], [1]) ++m4trace:configure.ac:533: -1- OMPI_LOG_FILE([conftestf77.f]) ++m4trace:configure.ac:533: -1- OMPI_LOG_MSG([here is the F90 program:], [1]) ++m4trace:configure.ac:533: -1- OMPI_LOG_FILE([conftestf90.f]) ++m4trace:configure.ac:533: -1- m4_pattern_allow([^OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS$]) ++m4trace:configure.ac:533: -1- m4_pattern_allow([^FCFLAGS_f$]) ++m4trace:configure.ac:533: -1- m4_pattern_allow([^FCFLAGS_f90$]) ++m4trace:configure.ac:533: -1- m4_pattern_allow([^OMPI_WANT_F90_BINDINGS$]) ++m4trace:configure.ac:533: -1- m4_pattern_allow([^OMPI_F90$]) ++m4trace:configure.ac:533: -1- AM_CONDITIONAL([OMPI_WANT_F90_BINDINGS], [test "$OMPI_WANT_F90_BINDINGS" = "1"]) ++m4trace:configure.ac:533: -1- m4_pattern_allow([^OMPI_WANT_F90_BINDINGS_TRUE$]) ++m4trace:configure.ac:533: -1- m4_pattern_allow([^OMPI_WANT_F90_BINDINGS_FALSE$]) ++m4trace:configure.ac:533: -1- _AM_SUBST_NOTMAKE([OMPI_WANT_F90_BINDINGS_TRUE]) ++m4trace:configure.ac:533: -1- _AM_SUBST_NOTMAKE([OMPI_WANT_F90_BINDINGS_FALSE]) ++m4trace:configure.ac:533: -1- m4_pattern_allow([^OMPI_F90_ABSOLUTE$]) ++m4trace:configure.ac:536: -1- OMPI_F90_FIND_MODULE_INCLUDE_FLAG ++m4trace:configure.ac:536: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 -c conftest-module.f90 $LDFLAGS $LIBS], [], [cd .. ++ rm -rf conftest.$$ ++ AC_MSG_RESULT([Whoops!]) ++ AC_MSG_WARN([*** Cannot seem to compile an f90 module]) ++ AC_MSG_ERROR([Cannot continue])]) ++m4trace:configure.ac:536: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:536: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftest.f90 ${flag}subdir $LDFLAGS $LIBS], [AS_VAR_SET(f90_inc_var, [$flag]) ++ ofi_module_flag="$flag"]) ++m4trace:configure.ac:536: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:536: -1- m4_pattern_allow([^OMPI_FC_MODULE_FLAG$]) ++m4trace:configure.ac:544: -1- OMPI_F90_CHECK([LOGICAL]) ++m4trace:configure.ac:544: -1- OMPI_F90_CHECK_TYPE([LOGICAL], [ofc_have_type=1], [ofc_have_type=0]) ++m4trace:configure.ac:544: -1- OMPI_F90_GET_SIZEOF([LOGICAL], [ofc_type_size]) ++m4trace:configure.ac:544: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_size_fn], [size]) ++m4trace:configure.ac:544: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy="yes"], [happy="no"])], [happy="no"]) ++m4trace:configure.ac:544: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:544: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:544: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:544: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:544: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:544: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`cat conftestval`])], [AC_MSG_ERROR([Could not determine size of LOGICAL])]) ++m4trace:configure.ac:544: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:544: -1- m4_pattern_allow([^OMPI_HAVE_F90_LOGICAL$]) ++m4trace:configure.ac:544: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_LOGICAL$]) ++m4trace:configure.ac:545: -1- OMPI_F90_CHECK([LOGICAL*1], [1]) ++m4trace:configure.ac:545: -1- OMPI_F90_CHECK_TYPE([LOGICAL*1], [ofc_have_type=1], [ofc_have_type=0]) ++m4trace:configure.ac:545: -1- OMPI_F90_GET_SIZEOF([LOGICAL*1], [ofc_type_size]) ++m4trace:configure.ac:545: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_size_fn], [size]) ++m4trace:configure.ac:545: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy="yes"], [happy="no"])], [happy="no"]) ++m4trace:configure.ac:545: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:545: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:545: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:545: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:545: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:545: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`cat conftestval`])], [AC_MSG_ERROR([Could not determine size of LOGICAL*1])]) ++m4trace:configure.ac:545: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:545: -1- m4_pattern_allow([^OMPI_HAVE_F90_LOGICAL1$]) ++m4trace:configure.ac:545: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_LOGICAL1$]) ++m4trace:configure.ac:546: -1- OMPI_F90_CHECK([LOGICAL*2], [2]) ++m4trace:configure.ac:546: -1- OMPI_F90_CHECK_TYPE([LOGICAL*2], [ofc_have_type=1], [ofc_have_type=0]) ++m4trace:configure.ac:546: -1- OMPI_F90_GET_SIZEOF([LOGICAL*2], [ofc_type_size]) ++m4trace:configure.ac:546: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_size_fn], [size]) ++m4trace:configure.ac:546: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy="yes"], [happy="no"])], [happy="no"]) ++m4trace:configure.ac:546: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:546: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:546: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:546: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:546: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:546: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`cat conftestval`])], [AC_MSG_ERROR([Could not determine size of LOGICAL*2])]) ++m4trace:configure.ac:546: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:546: -1- m4_pattern_allow([^OMPI_HAVE_F90_LOGICAL2$]) ++m4trace:configure.ac:546: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_LOGICAL2$]) ++m4trace:configure.ac:547: -1- OMPI_F90_CHECK([LOGICAL*4], [4]) ++m4trace:configure.ac:547: -1- OMPI_F90_CHECK_TYPE([LOGICAL*4], [ofc_have_type=1], [ofc_have_type=0]) ++m4trace:configure.ac:547: -1- OMPI_F90_GET_SIZEOF([LOGICAL*4], [ofc_type_size]) ++m4trace:configure.ac:547: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_size_fn], [size]) ++m4trace:configure.ac:547: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy="yes"], [happy="no"])], [happy="no"]) ++m4trace:configure.ac:547: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:547: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:547: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:547: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:547: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:547: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`cat conftestval`])], [AC_MSG_ERROR([Could not determine size of LOGICAL*4])]) ++m4trace:configure.ac:547: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:547: -1- m4_pattern_allow([^OMPI_HAVE_F90_LOGICAL4$]) ++m4trace:configure.ac:547: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_LOGICAL4$]) ++m4trace:configure.ac:548: -1- OMPI_F90_CHECK([LOGICAL*8], [8]) ++m4trace:configure.ac:548: -1- OMPI_F90_CHECK_TYPE([LOGICAL*8], [ofc_have_type=1], [ofc_have_type=0]) ++m4trace:configure.ac:548: -1- OMPI_F90_GET_SIZEOF([LOGICAL*8], [ofc_type_size]) ++m4trace:configure.ac:548: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_size_fn], [size]) ++m4trace:configure.ac:548: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy="yes"], [happy="no"])], [happy="no"]) ++m4trace:configure.ac:548: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:548: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:548: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:548: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:548: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:548: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`cat conftestval`])], [AC_MSG_ERROR([Could not determine size of LOGICAL*8])]) ++m4trace:configure.ac:548: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:548: -1- m4_pattern_allow([^OMPI_HAVE_F90_LOGICAL8$]) ++m4trace:configure.ac:548: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_LOGICAL8$]) ++m4trace:configure.ac:551: -1- OMPI_F90_CHECK([INTEGER]) ++m4trace:configure.ac:551: -1- OMPI_F90_CHECK_TYPE([INTEGER], [ofc_have_type=1], [ofc_have_type=0]) ++m4trace:configure.ac:551: -1- OMPI_F90_GET_SIZEOF([INTEGER], [ofc_type_size]) ++m4trace:configure.ac:551: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_size_fn], [size]) ++m4trace:configure.ac:551: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy="yes"], [happy="no"])], [happy="no"]) ++m4trace:configure.ac:551: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:551: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:551: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:551: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:551: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:551: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`cat conftestval`])], [AC_MSG_ERROR([Could not determine size of INTEGER])]) ++m4trace:configure.ac:551: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:551: -1- m4_pattern_allow([^OMPI_HAVE_F90_INTEGER$]) ++m4trace:configure.ac:551: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_INTEGER$]) ++m4trace:configure.ac:552: -1- OMPI_F90_CHECK([INTEGER*1], [1]) ++m4trace:configure.ac:552: -1- OMPI_F90_CHECK_TYPE([INTEGER*1], [ofc_have_type=1], [ofc_have_type=0]) ++m4trace:configure.ac:552: -1- OMPI_F90_GET_SIZEOF([INTEGER*1], [ofc_type_size]) ++m4trace:configure.ac:552: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_size_fn], [size]) ++m4trace:configure.ac:552: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy="yes"], [happy="no"])], [happy="no"]) ++m4trace:configure.ac:552: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:552: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:552: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:552: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:552: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:552: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`cat conftestval`])], [AC_MSG_ERROR([Could not determine size of INTEGER*1])]) ++m4trace:configure.ac:552: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:552: -1- m4_pattern_allow([^OMPI_HAVE_F90_INTEGER1$]) ++m4trace:configure.ac:552: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_INTEGER1$]) ++m4trace:configure.ac:553: -1- OMPI_F90_CHECK([INTEGER*2], [2]) ++m4trace:configure.ac:553: -1- OMPI_F90_CHECK_TYPE([INTEGER*2], [ofc_have_type=1], [ofc_have_type=0]) ++m4trace:configure.ac:553: -1- OMPI_F90_GET_SIZEOF([INTEGER*2], [ofc_type_size]) ++m4trace:configure.ac:553: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_size_fn], [size]) ++m4trace:configure.ac:553: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy="yes"], [happy="no"])], [happy="no"]) ++m4trace:configure.ac:553: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:553: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:553: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:553: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:553: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:553: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`cat conftestval`])], [AC_MSG_ERROR([Could not determine size of INTEGER*2])]) ++m4trace:configure.ac:553: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:553: -1- m4_pattern_allow([^OMPI_HAVE_F90_INTEGER2$]) ++m4trace:configure.ac:553: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_INTEGER2$]) ++m4trace:configure.ac:554: -1- OMPI_F90_CHECK([INTEGER*4], [4]) ++m4trace:configure.ac:554: -1- OMPI_F90_CHECK_TYPE([INTEGER*4], [ofc_have_type=1], [ofc_have_type=0]) ++m4trace:configure.ac:554: -1- OMPI_F90_GET_SIZEOF([INTEGER*4], [ofc_type_size]) ++m4trace:configure.ac:554: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_size_fn], [size]) ++m4trace:configure.ac:554: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy="yes"], [happy="no"])], [happy="no"]) ++m4trace:configure.ac:554: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:554: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:554: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:554: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:554: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:554: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`cat conftestval`])], [AC_MSG_ERROR([Could not determine size of INTEGER*4])]) ++m4trace:configure.ac:554: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:554: -1- m4_pattern_allow([^OMPI_HAVE_F90_INTEGER4$]) ++m4trace:configure.ac:554: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_INTEGER4$]) ++m4trace:configure.ac:555: -1- OMPI_F90_CHECK([INTEGER*8], [8]) ++m4trace:configure.ac:555: -1- OMPI_F90_CHECK_TYPE([INTEGER*8], [ofc_have_type=1], [ofc_have_type=0]) ++m4trace:configure.ac:555: -1- OMPI_F90_GET_SIZEOF([INTEGER*8], [ofc_type_size]) ++m4trace:configure.ac:555: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_size_fn], [size]) ++m4trace:configure.ac:555: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy="yes"], [happy="no"])], [happy="no"]) ++m4trace:configure.ac:555: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:555: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:555: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:555: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:555: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:555: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`cat conftestval`])], [AC_MSG_ERROR([Could not determine size of INTEGER*8])]) ++m4trace:configure.ac:555: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:555: -1- m4_pattern_allow([^OMPI_HAVE_F90_INTEGER8$]) ++m4trace:configure.ac:555: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_INTEGER8$]) ++m4trace:configure.ac:556: -1- OMPI_F90_CHECK([INTEGER*16], [16]) ++m4trace:configure.ac:556: -1- OMPI_F90_CHECK_TYPE([INTEGER*16], [ofc_have_type=1], [ofc_have_type=0]) ++m4trace:configure.ac:556: -1- OMPI_F90_GET_SIZEOF([INTEGER*16], [ofc_type_size]) ++m4trace:configure.ac:556: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_size_fn], [size]) ++m4trace:configure.ac:556: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy="yes"], [happy="no"])], [happy="no"]) ++m4trace:configure.ac:556: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:556: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:556: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:556: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:556: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:556: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`cat conftestval`])], [AC_MSG_ERROR([Could not determine size of INTEGER*16])]) ++m4trace:configure.ac:556: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:556: -1- m4_pattern_allow([^OMPI_HAVE_F90_INTEGER16$]) ++m4trace:configure.ac:556: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_INTEGER16$]) ++m4trace:configure.ac:559: -1- OMPI_F90_CHECK([REAL]) ++m4trace:configure.ac:559: -1- OMPI_F90_CHECK_TYPE([REAL], [ofc_have_type=1], [ofc_have_type=0]) ++m4trace:configure.ac:559: -1- OMPI_F90_GET_SIZEOF([REAL], [ofc_type_size]) ++m4trace:configure.ac:559: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_size_fn], [size]) ++m4trace:configure.ac:559: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy="yes"], [happy="no"])], [happy="no"]) ++m4trace:configure.ac:559: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:559: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:559: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:559: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:559: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:559: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`cat conftestval`])], [AC_MSG_ERROR([Could not determine size of REAL])]) ++m4trace:configure.ac:559: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:559: -1- m4_pattern_allow([^OMPI_HAVE_F90_REAL$]) ++m4trace:configure.ac:559: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_REAL$]) ++m4trace:configure.ac:560: -1- OMPI_F90_CHECK([REAL*2], [2]) ++m4trace:configure.ac:560: -1- OMPI_F90_CHECK_TYPE([REAL*2], [ofc_have_type=1], [ofc_have_type=0]) ++m4trace:configure.ac:560: -1- OMPI_F90_GET_SIZEOF([REAL*2], [ofc_type_size]) ++m4trace:configure.ac:560: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_size_fn], [size]) ++m4trace:configure.ac:560: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy="yes"], [happy="no"])], [happy="no"]) ++m4trace:configure.ac:560: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:560: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:560: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:560: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:560: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:560: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`cat conftestval`])], [AC_MSG_ERROR([Could not determine size of REAL*2])]) ++m4trace:configure.ac:560: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:560: -1- m4_pattern_allow([^OMPI_HAVE_F90_REAL2$]) ++m4trace:configure.ac:560: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_REAL2$]) ++m4trace:configure.ac:561: -1- OMPI_F90_CHECK([REAL*4], [4]) ++m4trace:configure.ac:561: -1- OMPI_F90_CHECK_TYPE([REAL*4], [ofc_have_type=1], [ofc_have_type=0]) ++m4trace:configure.ac:561: -1- OMPI_F90_GET_SIZEOF([REAL*4], [ofc_type_size]) ++m4trace:configure.ac:561: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_size_fn], [size]) ++m4trace:configure.ac:561: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy="yes"], [happy="no"])], [happy="no"]) ++m4trace:configure.ac:561: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:561: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:561: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:561: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:561: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:561: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`cat conftestval`])], [AC_MSG_ERROR([Could not determine size of REAL*4])]) ++m4trace:configure.ac:561: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:561: -1- m4_pattern_allow([^OMPI_HAVE_F90_REAL4$]) ++m4trace:configure.ac:561: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_REAL4$]) ++m4trace:configure.ac:562: -1- OMPI_F90_CHECK([REAL*8], [8]) ++m4trace:configure.ac:562: -1- OMPI_F90_CHECK_TYPE([REAL*8], [ofc_have_type=1], [ofc_have_type=0]) ++m4trace:configure.ac:562: -1- OMPI_F90_GET_SIZEOF([REAL*8], [ofc_type_size]) ++m4trace:configure.ac:562: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_size_fn], [size]) ++m4trace:configure.ac:562: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy="yes"], [happy="no"])], [happy="no"]) ++m4trace:configure.ac:562: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:562: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:562: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:562: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:562: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:562: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`cat conftestval`])], [AC_MSG_ERROR([Could not determine size of REAL*8])]) ++m4trace:configure.ac:562: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:562: -1- m4_pattern_allow([^OMPI_HAVE_F90_REAL8$]) ++m4trace:configure.ac:562: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_REAL8$]) ++m4trace:configure.ac:563: -1- OMPI_F90_CHECK([REAL*16], [16]) ++m4trace:configure.ac:563: -1- OMPI_F90_CHECK_TYPE([REAL*16], [ofc_have_type=1], [ofc_have_type=0]) ++m4trace:configure.ac:563: -1- OMPI_F90_GET_SIZEOF([REAL*16], [ofc_type_size]) ++m4trace:configure.ac:563: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_size_fn], [size]) ++m4trace:configure.ac:563: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy="yes"], [happy="no"])], [happy="no"]) ++m4trace:configure.ac:563: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:563: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:563: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:563: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:563: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:563: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`cat conftestval`])], [AC_MSG_ERROR([Could not determine size of REAL*16])]) ++m4trace:configure.ac:563: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:563: -1- m4_pattern_allow([^OMPI_HAVE_F90_REAL16$]) ++m4trace:configure.ac:563: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_REAL16$]) ++m4trace:configure.ac:564: -1- OMPI_F90_CHECK([DOUBLE PRECISION]) ++m4trace:configure.ac:564: -1- OMPI_F90_CHECK_TYPE([DOUBLE PRECISION], [ofc_have_type=1], [ofc_have_type=0]) ++m4trace:configure.ac:564: -1- OMPI_F90_GET_SIZEOF([DOUBLE PRECISION], [ofc_type_size]) ++m4trace:configure.ac:564: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_size_fn], [size]) ++m4trace:configure.ac:564: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy="yes"], [happy="no"])], [happy="no"]) ++m4trace:configure.ac:564: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:564: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:564: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:564: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:564: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:564: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`cat conftestval`])], [AC_MSG_ERROR([Could not determine size of DOUBLE PRECISION])]) ++m4trace:configure.ac:564: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:564: -1- m4_pattern_allow([^OMPI_HAVE_F90_DOUBLE_PRECISION$]) ++m4trace:configure.ac:564: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_DOUBLE_PRECISION$]) ++m4trace:configure.ac:567: -1- OMPI_F90_CHECK([COMPLEX]) ++m4trace:configure.ac:567: -1- OMPI_F90_CHECK_TYPE([COMPLEX], [ofc_have_type=1], [ofc_have_type=0]) ++m4trace:configure.ac:567: -1- OMPI_F90_GET_SIZEOF([COMPLEX], [ofc_type_size]) ++m4trace:configure.ac:567: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_size_fn], [size]) ++m4trace:configure.ac:567: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy="yes"], [happy="no"])], [happy="no"]) ++m4trace:configure.ac:567: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:567: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:567: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:567: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:567: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:567: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`cat conftestval`])], [AC_MSG_ERROR([Could not determine size of COMPLEX])]) ++m4trace:configure.ac:567: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:567: -1- m4_pattern_allow([^OMPI_HAVE_F90_COMPLEX$]) ++m4trace:configure.ac:567: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_COMPLEX$]) ++m4trace:configure.ac:568: -1- OMPI_F90_CHECK([COMPLEX*8], [8]) ++m4trace:configure.ac:568: -1- OMPI_F90_CHECK_TYPE([COMPLEX*8], [ofc_have_type=1], [ofc_have_type=0]) ++m4trace:configure.ac:568: -1- OMPI_F90_GET_SIZEOF([COMPLEX*8], [ofc_type_size]) ++m4trace:configure.ac:568: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_size_fn], [size]) ++m4trace:configure.ac:568: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy="yes"], [happy="no"])], [happy="no"]) ++m4trace:configure.ac:568: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:568: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:568: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:568: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:568: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:568: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`cat conftestval`])], [AC_MSG_ERROR([Could not determine size of COMPLEX*8])]) ++m4trace:configure.ac:568: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:568: -1- m4_pattern_allow([^OMPI_HAVE_F90_COMPLEX8$]) ++m4trace:configure.ac:568: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_COMPLEX8$]) ++m4trace:configure.ac:569: -1- OMPI_F90_CHECK([COMPLEX*16], [16]) ++m4trace:configure.ac:569: -1- OMPI_F90_CHECK_TYPE([COMPLEX*16], [ofc_have_type=1], [ofc_have_type=0]) ++m4trace:configure.ac:569: -1- OMPI_F90_GET_SIZEOF([COMPLEX*16], [ofc_type_size]) ++m4trace:configure.ac:569: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_size_fn], [size]) ++m4trace:configure.ac:569: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy="yes"], [happy="no"])], [happy="no"]) ++m4trace:configure.ac:569: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:569: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:569: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:569: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:569: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:569: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`cat conftestval`])], [AC_MSG_ERROR([Could not determine size of COMPLEX*16])]) ++m4trace:configure.ac:569: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:569: -1- m4_pattern_allow([^OMPI_HAVE_F90_COMPLEX16$]) ++m4trace:configure.ac:569: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_COMPLEX16$]) ++m4trace:configure.ac:570: -1- OMPI_F90_CHECK([COMPLEX*32], [32]) ++m4trace:configure.ac:570: -1- OMPI_F90_CHECK_TYPE([COMPLEX*32], [ofc_have_type=1], [ofc_have_type=0]) ++m4trace:configure.ac:570: -1- OMPI_F90_GET_SIZEOF([COMPLEX*32], [ofc_type_size]) ++m4trace:configure.ac:570: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_size_fn], [size]) ++m4trace:configure.ac:570: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy="yes"], [happy="no"])], [happy="no"]) ++m4trace:configure.ac:570: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:570: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:570: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:570: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:570: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:570: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`cat conftestval`])], [AC_MSG_ERROR([Could not determine size of COMPLEX*32])]) ++m4trace:configure.ac:570: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:570: -1- m4_pattern_allow([^OMPI_HAVE_F90_COMPLEX32$]) ++m4trace:configure.ac:570: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_COMPLEX32$]) ++m4trace:configure.ac:571: -1- OMPI_F90_CHECK([DOUBLE COMPLEX]) ++m4trace:configure.ac:571: -1- OMPI_F90_CHECK_TYPE([DOUBLE COMPLEX], [ofc_have_type=1], [ofc_have_type=0]) ++m4trace:configure.ac:571: -1- OMPI_F90_GET_SIZEOF([DOUBLE COMPLEX], [ofc_type_size]) ++m4trace:configure.ac:571: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_size_fn], [size]) ++m4trace:configure.ac:571: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], ++ [happy="yes"], [happy="no"])], [happy="no"]) ++m4trace:configure.ac:571: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:571: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:571: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:571: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:571: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:571: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`cat conftestval`])], [AC_MSG_ERROR([Could not determine size of DOUBLE COMPLEX])]) ++m4trace:configure.ac:571: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:571: -1- m4_pattern_allow([^OMPI_HAVE_F90_DOUBLE_COMPLEX$]) ++m4trace:configure.ac:571: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_DOUBLE_COMPLEX$]) ++m4trace:configure.ac:573: -1- m4_pattern_allow([^OMPI_F90_IKINDS$]) ++m4trace:configure.ac:574: -1- m4_pattern_allow([^OMPI_F90_RKINDS$]) ++m4trace:configure.ac:575: -1- m4_pattern_allow([^OMPI_F90_CKINDS$]) ++m4trace:configure.ac:582: -1- OMPI_F90_GET_INT_KIND([MPI_INTEGER_KIND], [4], [OMPI_MPI_INTEGER_KIND]) ++m4trace:configure.ac:582: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:582: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:582: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:582: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:582: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`sed 's/ *//' conftestval`])], [AC_MSG_ERROR([Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)])]) ++m4trace:configure.ac:582: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:584: -1- OMPI_F90_GET_INT_KIND([MPI_INTEGER_KIND], [9], [OMPI_MPI_INTEGER_KIND]) ++m4trace:configure.ac:584: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:584: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:584: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:584: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:584: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`sed 's/ *//' conftestval`])], [AC_MSG_ERROR([Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)])]) ++m4trace:configure.ac:584: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:586: -1- OMPI_F90_GET_INT_KIND([MPI_INTEGER_KIND], [18], [OMPI_MPI_INTEGER_KIND]) ++m4trace:configure.ac:586: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:586: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:586: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:586: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:586: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`sed 's/ *//' conftestval`])], [AC_MSG_ERROR([Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)])]) ++m4trace:configure.ac:586: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:588: -1- OMPI_F90_GET_INT_KIND([MPI_INTEGER_KIND], [19], [OMPI_MPI_INTEGER_KIND]) ++m4trace:configure.ac:588: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:588: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:588: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:588: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:588: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`sed 's/ *//' conftestval`])], [AC_MSG_ERROR([Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)])]) ++m4trace:configure.ac:588: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:591: -1- m4_pattern_allow([^OMPI_MPI_INTEGER_KIND$]) ++m4trace:configure.ac:596: -1- OMPI_F90_GET_INT_KIND([MPI_ADDRESS_KIND], [4], [OMPI_MPI_ADDRESS_KIND]) ++m4trace:configure.ac:596: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:596: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:596: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:596: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:596: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`sed 's/ *//' conftestval`])], [AC_MSG_ERROR([Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)])]) ++m4trace:configure.ac:596: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:598: -1- OMPI_F90_GET_INT_KIND([MPI_ADDRESS_KIND], [9], [OMPI_MPI_ADDRESS_KIND]) ++m4trace:configure.ac:598: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:598: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:598: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:598: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:598: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`sed 's/ *//' conftestval`])], [AC_MSG_ERROR([Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)])]) ++m4trace:configure.ac:598: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:600: -1- OMPI_F90_GET_INT_KIND([MPI_ADDRESS_KIND], [18], [OMPI_MPI_ADDRESS_KIND]) ++m4trace:configure.ac:600: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:600: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:600: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:600: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:600: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`sed 's/ *//' conftestval`])], [AC_MSG_ERROR([Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)])]) ++m4trace:configure.ac:600: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:602: -1- OMPI_F90_GET_INT_KIND([MPI_ADDRESS_KIND], [19], [OMPI_MPI_ADDRESS_KIND]) ++m4trace:configure.ac:602: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:602: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:602: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:602: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:602: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`sed 's/ *//' conftestval`])], [AC_MSG_ERROR([Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)])]) ++m4trace:configure.ac:602: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:606: -1- m4_pattern_allow([^OMPI_MPI_ADDRESS_KIND$]) ++m4trace:configure.ac:609: -1- OMPI_F90_GET_INT_KIND([MPI_OFFSET_KIND], [18], [OMPI_MPI_OFFSET_KIND]) ++m4trace:configure.ac:609: -1- OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS], [happy="yes"], [happy="no"]) ++m4trace:configure.ac:609: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:609: -1- OMPI_LOG_MSG([here is the fortran 90 program:], [1]) ++m4trace:configure.ac:609: -1- OMPI_LOG_FILE([conftestf.f90]) ++m4trace:configure.ac:609: -1- OMPI_LOG_COMMAND([./conftest], [AS_VAR_SET(type_var, [`sed 's/ *//' conftestval`])], [AC_MSG_ERROR([Could not determine kind of selected_int_kind(MPI_OFFSET_KIND)])]) ++m4trace:configure.ac:609: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:610: -1- m4_pattern_allow([^OMPI_MPI_OFFSET_KIND$]) ++m4trace:configure.ac:676: -1- m4_pattern_allow([^OMPI_USE_STDBOOL_H$]) ++m4trace:configure.ac:691: -1- m4_pattern_allow([^SIZEOF_PID_T$]) ++m4trace:configure.ac:693: -1- m4_pattern_allow([^HAVE_SOCKLEN_T$]) ++m4trace:configure.ac:693: -1- m4_pattern_allow([^HAVE_STRUCT_SOCKADDR_IN$]) ++m4trace:configure.ac:693: -1- m4_pattern_allow([^HAVE_STRUCT_SOCKADDR_IN6$]) ++m4trace:configure.ac:693: -1- m4_pattern_allow([^HAVE_STRUCT_SOCKADDR_STORAGE$]) ++m4trace:configure.ac:703: -1- m4_pattern_allow([^HAVE_DECL_AF_UNSPEC$]) ++m4trace:configure.ac:703: -1- m4_pattern_allow([^HAVE_DECL_AF_UNSPEC$]) ++m4trace:configure.ac:703: -1- m4_pattern_allow([^HAVE_DECL_PF_UNSPEC$]) ++m4trace:configure.ac:703: -1- m4_pattern_allow([^HAVE_DECL_PF_UNSPEC$]) ++m4trace:configure.ac:703: -1- m4_pattern_allow([^HAVE_DECL_AF_INET6$]) ++m4trace:configure.ac:703: -1- m4_pattern_allow([^HAVE_DECL_AF_INET6$]) ++m4trace:configure.ac:703: -1- m4_pattern_allow([^HAVE_DECL_PF_INET6$]) ++m4trace:configure.ac:703: -1- m4_pattern_allow([^HAVE_DECL_PF_INET6$]) ++m4trace:configure.ac:719: -1- m4_pattern_allow([^OMPI_HAVE_SA_RESTART$]) ++m4trace:configure.ac:723: -1- m4_pattern_allow([^HAVE_STRUCT_SOCKADDR_SA_LEN$]) ++m4trace:configure.ac:729: -1- m4_pattern_allow([^HAVE_STRUCT_DIRENT_D_TYPE$]) ++m4trace:configure.ac:733: -1- m4_pattern_allow([^HAVE_SIGINFO_T_SI_FD$]) ++m4trace:configure.ac:734: -1- m4_pattern_allow([^HAVE_SIGINFO_T_SI_BAND$]) ++m4trace:configure.ac:747: -1- m4_pattern_allow([^HAVE_LIBUTIL$]) ++m4trace:configure.ac:749: -1- m4_pattern_allow([^HAVE_LIBNSL$]) ++m4trace:configure.ac:751: -1- m4_pattern_allow([^HAVE_LIBSOCKET$]) ++m4trace:configure.ac:754: -1- OMPI_CHECK_FUNC_LIB([sched_yield], [rt]) ++m4trace:configure.ac:757: -1- OMPI_CHECK_FUNC_LIB([dirname], [gen]) ++m4trace:configure.ac:760: -1- OMPI_CHECK_FUNC_LIB([ceil], [m]) ++m4trace:configure.ac:785: -1- m4_pattern_allow([^HAVE_UNIX_BYTESWAP$]) ++m4trace:configure.ac:795: -1- m4_pattern_allow([^OMPI_HAVE_VA_COPY$]) ++m4trace:configure.ac:800: -1- m4_pattern_allow([^OMPI_HAVE_UNDERSCORE_VA_COPY$]) ++m4trace:configure.ac:803: -1- m4_pattern_allow([^HAVE_DECL___FUNC__$]) ++m4trace:configure.ac:803: -1- m4_pattern_allow([^HAVE_DECL___FUNC__$]) ++m4trace:configure.ac:853: -1- m4_pattern_allow([^OMPI_MPI_OFFSET_TYPE$]) ++m4trace:configure.ac:868: -1- m4_pattern_allow([^OMPI_PTRDIFF_TYPE$]) ++m4trace:configure.ac:881: -1- m4_pattern_allow([^OMPI_OFFSET_DATATYPE$]) ++m4trace:configure.ac:898: -1- m4_pattern_allow([^OPAL_HAVE__SC_NPROCESSORS_ONLN$]) ++m4trace:configure.ac:903: -1- m4_pattern_allow([^WORDS_BIGENDIAN$]) ++m4trace:configure.ac:905: -1- OMPI_CHECK_BROKEN_QSORT ++m4trace:configure.ac:905: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_broken_qsort.m4:37: OMPI_CHECK_BROKEN_QSORT is expanded from... ++configure.ac:905: the top level]) ++m4trace:configure.ac:905: -1- m4_pattern_allow([^OMPI_HAVE_BROKEN_QSORT$]) ++m4trace:configure.ac:922: -1- m4_pattern_allow([^OMPI_ALIGN_WORD_SIZE_INTEGERS$]) ++m4trace:configure.ac:936: -1- OMPI_CONFIG_THREADS ++m4trace:configure.ac:936: -1- OMPI_CONFIG_POSIX_THREADS([HAVE_POSIX_THREADS=1], [HAVE_POSIX_THREADS=0]) ++m4trace:configure.ac:936: -1- OMPI_INTL_POSIX_THREADS_PLAIN ++m4trace:configure.ac:936: -1- OMPI_INTL_POSIX_THREADS_PLAIN_C ++m4trace:configure.ac:936: -1- OMPI_INTL_PTHREAD_TRY_LINK([ompi_pthread_c_success=1], [ompi_pthread_c_success=0]) ++m4trace:configure.ac:936: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:30: OMPI_INTL_PTHREAD_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:127: OMPI_INTL_POSIX_THREADS_PLAIN_C is expanded from... ++config/ompi_config_pthreads.m4:258: OMPI_INTL_POSIX_THREADS_PLAIN is expanded from... ++config/ompi_config_pthreads.m4:603: OMPI_CONFIG_POSIX_THREADS is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- OMPI_INTL_POSIX_THREADS_PLAIN_CXX ++m4trace:configure.ac:936: -1- OMPI_INTL_PTHREAD_TRY_LINK([ompi_pthread_cxx_success=1], [ompi_pthread_cxx_success=0]) ++m4trace:configure.ac:936: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:30: OMPI_INTL_PTHREAD_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:175: OMPI_INTL_POSIX_THREADS_PLAIN_CXX is expanded from... ++config/ompi_config_pthreads.m4:258: OMPI_INTL_POSIX_THREADS_PLAIN is expanded from... ++config/ompi_config_pthreads.m4:603: OMPI_CONFIG_POSIX_THREADS is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- OMPI_INTL_POSIX_THREADS_PLAIN_FC ++m4trace:configure.ac:936: -1- OMPI_INTL_PTHREAD_TRY_LINK_F77([ompi_pthread_f77_success=1], [ompi_pthread_f77_success=0]) ++m4trace:configure.ac:936: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_thread_fn], [pthreadtest]) ++m4trace:configure.ac:936: -2- OMPI_LOG_COMMAND([$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS], [HAPPY=1], [HAPPY=0]) ++m4trace:configure.ac:936: -2- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:936: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ HAPPY=1 ++else ++ unset ompi_status ++ HAPPY=0 ++fi], [HAPPY=0]) ++m4trace:configure.ac:936: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:936: -1- OMPI_LOG_MSG([here is the C program:], [1]) ++m4trace:configure.ac:936: -1- OMPI_LOG_FILE([conftest.c]) ++m4trace:configure.ac:936: -1- OMPI_LOG_MSG([here is contest.h:], [1]) ++m4trace:configure.ac:936: -1- OMPI_LOG_FILE([conftest.h]) ++m4trace:configure.ac:936: -1- OMPI_LOG_MSG([here is the fortran program:], [1]) ++m4trace:configure.ac:936: -1- OMPI_LOG_FILE([conftestf.f]) ++m4trace:configure.ac:936: -1- OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS ++m4trace:configure.ac:936: -1- OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS_C ++m4trace:configure.ac:936: -1- OMPI_INTL_PTHREAD_TRY_LINK([ompi_pthread_c_success=1], [ompi_pthread_c_success=0]) ++m4trace:configure.ac:936: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:30: OMPI_INTL_PTHREAD_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:290: OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS_C is expanded from... ++config/ompi_config_pthreads.m4:368: OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS is expanded from... ++config/ompi_config_pthreads.m4:603: OMPI_CONFIG_POSIX_THREADS is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS_CXX ++m4trace:configure.ac:936: -1- OMPI_INTL_PTHREAD_TRY_LINK([ompi_pthread_cxx_success=1], [ompi_pthread_cxx_success=0]) ++m4trace:configure.ac:936: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:30: OMPI_INTL_PTHREAD_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:316: OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS_CXX is expanded from... ++config/ompi_config_pthreads.m4:368: OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS is expanded from... ++config/ompi_config_pthreads.m4:603: OMPI_CONFIG_POSIX_THREADS is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS_FC ++m4trace:configure.ac:936: -1- OMPI_INTL_PTHREAD_TRY_LINK_F77([ompi_pthread_f77_success=1], [ompi_pthread_f77_success=0]) ++m4trace:configure.ac:936: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_thread_fn], [pthreadtest]) ++m4trace:configure.ac:936: -2- OMPI_LOG_COMMAND([$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS], [HAPPY=1], [HAPPY=0]) ++m4trace:configure.ac:936: -2- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:936: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ HAPPY=1 ++else ++ unset ompi_status ++ HAPPY=0 ++fi], [HAPPY=0]) ++m4trace:configure.ac:936: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:936: -1- OMPI_LOG_MSG([here is the C program:], [1]) ++m4trace:configure.ac:936: -1- OMPI_LOG_FILE([conftest.c]) ++m4trace:configure.ac:936: -1- OMPI_LOG_MSG([here is contest.h:], [1]) ++m4trace:configure.ac:936: -1- OMPI_LOG_FILE([conftest.h]) ++m4trace:configure.ac:936: -1- OMPI_LOG_MSG([here is the fortran program:], [1]) ++m4trace:configure.ac:936: -1- OMPI_LOG_FILE([conftestf.f]) ++m4trace:configure.ac:936: -1- OMPI_INTL_POSIX_THREADS_LIBS ++m4trace:configure.ac:936: -1- OMPI_INTL_POSIX_THREADS_LIBS_C ++m4trace:configure.ac:936: -1- OMPI_INTL_PTHREAD_TRY_LINK([ompi_pthread_c_success=1], [ompi_pthread_c_success=0]) ++m4trace:configure.ac:936: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:30: OMPI_INTL_PTHREAD_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:416: OMPI_INTL_POSIX_THREADS_LIBS_C is expanded from... ++config/ompi_config_pthreads.m4:568: OMPI_INTL_POSIX_THREADS_LIBS is expanded from... ++config/ompi_config_pthreads.m4:603: OMPI_CONFIG_POSIX_THREADS is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- OMPI_INTL_POSIX_THREADS_LIBS_CXX ++m4trace:configure.ac:936: -1- OMPI_INTL_PTHREAD_TRY_LINK([ompi_pthread_cxx_success=1], [ompi_pthread_cxx_success=0]) ++m4trace:configure.ac:936: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:30: OMPI_INTL_PTHREAD_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:456: OMPI_INTL_POSIX_THREADS_LIBS_CXX is expanded from... ++config/ompi_config_pthreads.m4:568: OMPI_INTL_POSIX_THREADS_LIBS is expanded from... ++config/ompi_config_pthreads.m4:603: OMPI_CONFIG_POSIX_THREADS is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- OMPI_INTL_PTHREAD_TRY_LINK([ompi_pthread_cxx_success=1], [ompi_pthread_cxx_success=0]) ++m4trace:configure.ac:936: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:30: OMPI_INTL_PTHREAD_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:456: OMPI_INTL_POSIX_THREADS_LIBS_CXX is expanded from... ++config/ompi_config_pthreads.m4:568: OMPI_INTL_POSIX_THREADS_LIBS is expanded from... ++config/ompi_config_pthreads.m4:603: OMPI_CONFIG_POSIX_THREADS is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- OMPI_INTL_POSIX_THREADS_LIBS_FC ++m4trace:configure.ac:936: -1- OMPI_INTL_PTHREAD_TRY_LINK_F77([ompi_pthread_f77_success=1], [ompi_pthread_f77_success=0]) ++m4trace:configure.ac:936: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_thread_fn], [pthreadtest]) ++m4trace:configure.ac:936: -2- OMPI_LOG_COMMAND([$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS], [HAPPY=1], [HAPPY=0]) ++m4trace:configure.ac:936: -2- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:936: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ HAPPY=1 ++else ++ unset ompi_status ++ HAPPY=0 ++fi], [HAPPY=0]) ++m4trace:configure.ac:936: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:936: -1- OMPI_LOG_MSG([here is the C program:], [1]) ++m4trace:configure.ac:936: -1- OMPI_LOG_FILE([conftest.c]) ++m4trace:configure.ac:936: -1- OMPI_LOG_MSG([here is contest.h:], [1]) ++m4trace:configure.ac:936: -1- OMPI_LOG_FILE([conftest.h]) ++m4trace:configure.ac:936: -1- OMPI_LOG_MSG([here is the fortran program:], [1]) ++m4trace:configure.ac:936: -1- OMPI_LOG_FILE([conftestf.f]) ++m4trace:configure.ac:936: -1- OMPI_INTL_PTHREAD_TRY_LINK_F77([ompi_pthread_f77_success=1], [ompi_pthread_f77_success=0]) ++m4trace:configure.ac:936: -1- OMPI_F77_MAKE_C_FUNCTION([ompi_ac_thread_fn], [pthreadtest]) ++m4trace:configure.ac:936: -2- OMPI_LOG_COMMAND([$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS], [HAPPY=1], [HAPPY=0]) ++m4trace:configure.ac:936: -2- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:936: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ HAPPY=1 ++else ++ unset ompi_status ++ HAPPY=0 ++fi], [HAPPY=0]) ++m4trace:configure.ac:936: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:936: -1- OMPI_LOG_MSG([here is the C program:], [1]) ++m4trace:configure.ac:936: -1- OMPI_LOG_FILE([conftest.c]) ++m4trace:configure.ac:936: -1- OMPI_LOG_MSG([here is contest.h:], [1]) ++m4trace:configure.ac:936: -1- OMPI_LOG_FILE([conftest.h]) ++m4trace:configure.ac:936: -1- OMPI_LOG_MSG([here is the fortran program:], [1]) ++m4trace:configure.ac:936: -1- OMPI_LOG_FILE([conftestf.f]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_HAVE_PTHREAD_MUTEX_ERRORCHECK_NP$]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_HAVE_PTHREAD_MUTEX_ERRORCHECK$]) ++m4trace:configure.ac:936: -1- OMPI_CONFIG_SOLARIS_THREADS([HAVE_SOLARIS_THREADS=1], [HAVE_SOLARIS_THREADS=0]) ++m4trace:configure.ac:936: -1- OMPI_CONFIG_SOLARIS_THREADS_C ++m4trace:configure.ac:936: -1- OMPI_INTL_SOLARIS_TRY_LINK([ompi_sthread_c_success=1], [ompi_sthread_c_success=0]) ++m4trace:configure.ac:936: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++config/ompi_config_solaris_threads.m4:27: OMPI_INTL_SOLARIS_TRY_LINK is expanded from... ++config/ompi_config_solaris_threads.m4:110: OMPI_CONFIG_SOLARIS_THREADS_C is expanded from... ++config/ompi_config_solaris_threads.m4:195: OMPI_CONFIG_SOLARIS_THREADS is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- OMPI_CONFIG_SOLARIS_THREADS_CXX ++m4trace:configure.ac:936: -1- OMPI_INTL_SOLARIS_TRY_LINK([ompi_sthread_cxx_success=1], [ompi_sthread_cxx_success=0]) ++m4trace:configure.ac:936: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++config/ompi_config_solaris_threads.m4:27: OMPI_INTL_SOLARIS_TRY_LINK is expanded from... ++config/ompi_config_solaris_threads.m4:136: OMPI_CONFIG_SOLARIS_THREADS_CXX is expanded from... ++config/ompi_config_solaris_threads.m4:195: OMPI_CONFIG_SOLARIS_THREADS is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- OMPI_CONFIG_SOLARIS_THREADS_FC ++m4trace:configure.ac:936: -1- OMPI_INTL_SOLARIS_TRY_LINK_F77([ompi_sthread_f77_success=1], [ompi_sthread_f77_success=0]) ++m4trace:configure.ac:936: -2- OMPI_LOG_COMMAND([$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS], [HAPPY=1], [HAPPY=0]) ++m4trace:configure.ac:936: -2- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:936: -1- OMPI_LOG_COMMAND([$CC $CFLAGS -I. -c conftest.c], [ ++# 1 is the command ++# 2 is actions to do if success ++# 3 is actions to do if fail ++echo "configure:__oline__: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5 ++$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1 ++ompi_status=$? ++ ++# 1 is the message ++# 2 is whether to put a prefix or not ++if test -n "1"; then ++ echo "configure:__oline__: \$? = $ompi_status" >&5 ++else ++ echo \$? = $ompi_status >&5 ++fi ++if test "$ompi_status" = "0"; then ++ unset ompi_status ++ HAPPY=1 ++else ++ unset ompi_status ++ HAPPY=0 ++fi], [HAPPY=0]) ++m4trace:configure.ac:936: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:936: -1- OMPI_LOG_MSG([here is the C program:], [1]) ++m4trace:configure.ac:936: -1- OMPI_LOG_FILE([conftest.c]) ++m4trace:configure.ac:936: -1- OMPI_LOG_MSG([here is contest.h:], [1]) ++m4trace:configure.ac:936: -1- OMPI_LOG_FILE([conftest.h]) ++m4trace:configure.ac:936: -1- OMPI_LOG_MSG([here is the fortran program:], [1]) ++m4trace:configure.ac:936: -1- OMPI_LOG_FILE([conftestf.f]) ++m4trace:configure.ac:936: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_HAVE_SOLARIS_THREADS$]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_HAVE_POSIX_THREADS$]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_THREADS_HAVE_DIFFERENT_PIDS$]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_HAVE_SOLARIS_THREADS$]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_HAVE_POSIX_THREADS$]) ++m4trace:configure.ac:936: -1- OMPI_CHECK_PTHREAD_PIDS ++m4trace:configure.ac:936: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++config/ompi_check_pthread_pids.m4:20: OMPI_CHECK_PTHREAD_PIDS is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_THREADS_HAVE_DIFFERENT_PIDS$]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_HAVE_SOLARIS_THREADS$]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_HAVE_POSIX_THREADS$]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_THREADS_HAVE_DIFFERENT_PIDS$]) ++m4trace:configure.ac:936: -1- AM_CONDITIONAL([OMPI_HAVE_POSIX_THREADS], [test "$THREAD_TYPE" = "posix"]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_HAVE_POSIX_THREADS_TRUE$]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_HAVE_POSIX_THREADS_FALSE$]) ++m4trace:configure.ac:936: -1- _AM_SUBST_NOTMAKE([OMPI_HAVE_POSIX_THREADS_TRUE]) ++m4trace:configure.ac:936: -1- _AM_SUBST_NOTMAKE([OMPI_HAVE_POSIX_THREADS_FALSE]) ++m4trace:configure.ac:936: -1- AM_CONDITIONAL([OMPI_HAVE_SOLARIS_THREADS], [test "$THREAD_TYPE" = "solaris"]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_HAVE_SOLARIS_THREADS_TRUE$]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_HAVE_SOLARIS_THREADS_FALSE$]) ++m4trace:configure.ac:936: -1- _AM_SUBST_NOTMAKE([OMPI_HAVE_SOLARIS_THREADS_TRUE]) ++m4trace:configure.ac:936: -1- _AM_SUBST_NOTMAKE([OMPI_HAVE_SOLARIS_THREADS_FALSE]) ++m4trace:configure.ac:936: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_ENABLE_MPI_THREADS$]) ++m4trace:configure.ac:936: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_ENABLE_PROGRESS_THREADS$]) ++m4trace:configure.ac:936: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OPAL_ENABLE_FT_THREAD$]) ++m4trace:configure.ac:936: -1- AM_CONDITIONAL([WANT_FT_THREAD], [test "$ompi_want_ft_thread" = "1"]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^WANT_FT_THREAD_TRUE$]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^WANT_FT_THREAD_FALSE$]) ++m4trace:configure.ac:936: -1- _AM_SUBST_NOTMAKE([WANT_FT_THREAD_TRUE]) ++m4trace:configure.ac:936: -1- _AM_SUBST_NOTMAKE([WANT_FT_THREAD_FALSE]) ++m4trace:configure.ac:957: -1- m4_pattern_allow([^LN_S$]) ++m4trace:configure.ac:959: -1- m4_pattern_allow([^GREP$]) ++m4trace:configure.ac:959: -1- m4_pattern_allow([^GREP$]) ++m4trace:configure.ac:960: -1- AC_PROG_EGREP ++m4trace:configure.ac:960: -1- m4_pattern_allow([^EGREP$]) ++m4trace:configure.ac:960: -1- m4_pattern_allow([^EGREP$]) ++m4trace:configure.ac:965: -1- AM_PROG_AS ++m4trace:configure.ac:965: -1- m4_pattern_allow([^CCAS$]) ++m4trace:configure.ac:965: -1- m4_pattern_allow([^CCASFLAGS$]) ++m4trace:configure.ac:965: -1- _AM_IF_OPTION([no-dependencies], [], [_AM_DEPENDENCIES([CCAS])]) ++m4trace:configure.ac:965: -2- _AM_MANGLE_OPTION([no-dependencies]) ++m4trace:configure.ac:965: -1- _AM_DEPENDENCIES([CCAS]) ++m4trace:configure.ac:965: -1- m4_pattern_allow([^CCASDEPMODE$]) ++m4trace:configure.ac:965: -1- AM_CONDITIONAL([am__fastdepCCAS], [ ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3]) ++m4trace:configure.ac:965: -1- m4_pattern_allow([^am__fastdepCCAS_TRUE$]) ++m4trace:configure.ac:965: -1- m4_pattern_allow([^am__fastdepCCAS_FALSE$]) ++m4trace:configure.ac:965: -1- _AM_SUBST_NOTMAKE([am__fastdepCCAS_TRUE]) ++m4trace:configure.ac:965: -1- _AM_SUBST_NOTMAKE([am__fastdepCCAS_FALSE]) ++m4trace:configure.ac:966: -1- AM_PROG_LEX ++m4trace:configure.ac:966: -1- m4_pattern_allow([^LEX$]) ++m4trace:configure.ac:966: -1- m4_pattern_allow([^LEX_OUTPUT_ROOT$]) ++m4trace:configure.ac:966: -1- m4_pattern_allow([^LEXLIB$]) ++m4trace:configure.ac:966: -1- m4_pattern_allow([^YYTEXT_POINTER$]) ++m4trace:configure.ac:997: -1- OMPI_PS_FLAVOR_CHECK ++m4trace:configure.ac:997: -1- m4_pattern_allow([^ORTE_CLEAN_PS_CMD$]) ++m4trace:configure.ac:1003: -1- OMPI_CASE_SENSITIVE_FS_SETUP ++m4trace:configure.ac:1003: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_case_sensitive_fs_setup.m4:20: OMPI_CASE_SENSITIVE_FS_SETUP is expanded from... ++configure.ac:1003: the top level]) ++m4trace:configure.ac:1003: -1- AM_CONDITIONAL([CASE_SENSITIVE_FS], [test "$OMPI_WANT_CS_FS" = "1"]) ++m4trace:configure.ac:1003: -1- m4_pattern_allow([^CASE_SENSITIVE_FS_TRUE$]) ++m4trace:configure.ac:1003: -1- m4_pattern_allow([^CASE_SENSITIVE_FS_FALSE$]) ++m4trace:configure.ac:1003: -1- _AM_SUBST_NOTMAKE([CASE_SENSITIVE_FS_TRUE]) ++m4trace:configure.ac:1003: -1- _AM_SUBST_NOTMAKE([CASE_SENSITIVE_FS_FALSE]) ++m4trace:configure.ac:1012: -1- m4_pattern_allow([^HAVE_DECL_RLIMIT_NPROC$]) ++m4trace:configure.ac:1012: -1- m4_pattern_allow([^HAVE_DECL_RLIMIT_NPROC$]) ++m4trace:configure.ac:1029: -1- OMPI_CONFIG_SUBDIR_ARGS([ompi_subdir_args]) ++m4trace:configure.ac:1032: -1- OMPI_MCA ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_PROJECT([opal]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([opal], [backtrace], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_backtrace_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_backtrace_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_backtrace_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([opal], [backtrace], [execinfo], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [backtrace], [execinfo], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_backtrace_execinfo_COMPILE_MODE([opal], [backtrace], [execinfo], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_backtrace_execinfo_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_FUNC_LIB([backtrace], [execinfo], [backtrace_execinfo_happy="yes"], [backtrace_execinfo_happy="no"]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [backtrace], [execinfo], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [backtrace], [execinfo]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_backtrace_execinfo_DSO], [test "$BUILD_backtrace_execinfo_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_backtrace_execinfo_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_backtrace_execinfo_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_backtrace_execinfo_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_backtrace_execinfo_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_backtrace_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_backtrace_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_backtrace_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([opal], [backtrace], [printstack], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [backtrace], [printstack], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_backtrace_printstack_COMPILE_MODE([opal], [backtrace], [printstack], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_backtrace_printstack_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [backtrace], [printstack], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [backtrace], [printstack]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_backtrace_printstack_DSO], [test "$BUILD_backtrace_printstack_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_backtrace_printstack_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_backtrace_printstack_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_backtrace_printstack_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_backtrace_printstack_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_backtrace_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_backtrace_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_backtrace_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([opal], [backtrace], [darwin], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [backtrace], [darwin], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_backtrace_darwin_COMPILE_MODE([opal], [backtrace], [darwin], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_backtrace_darwin_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^backtrace_darwin_CFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_PPC_THREAD_STATE_T_SRR0$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [backtrace], [darwin], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [backtrace], [darwin]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_backtrace_darwin_DSO], [test "$BUILD_backtrace_darwin_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_backtrace_darwin_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_backtrace_darwin_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_backtrace_darwin_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_backtrace_darwin_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_backtrace_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_backtrace_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_backtrace_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([opal], [backtrace], [none], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [backtrace], [none], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_backtrace_none_COMPILE_MODE([opal], [backtrace], [none], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_backtrace_none_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [backtrace], [none], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [backtrace], [none]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_backtrace_none_DSO], [test "$BUILD_backtrace_none_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_backtrace_none_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_backtrace_none_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_backtrace_none_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_backtrace_none_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_backtrace_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_backtrace_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_backtrace_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_backtrace_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_backtrace_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_backtrace_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_backtrace_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_backtrace_ALL_SUBDIRS], [backtrace], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_backtrace_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_backtrace_STATIC_SUBDIRS], [backtrace], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_backtrace_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_backtrace_DSO_SUBDIRS], [backtrace], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_backtrace_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([opal], [carto], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_carto_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_carto_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([opal], [carto], [auto_detect], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [carto], [auto_detect], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([opal], [carto], [auto_detect], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [carto], [auto_detect], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [carto], [auto_detect]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_carto_auto_detect_DSO], [test "$BUILD_carto_auto_detect_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_carto_auto_detect_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_carto_auto_detect_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_carto_auto_detect_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_carto_auto_detect_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([opal], [carto], [file], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [carto], [file], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([opal], [carto], [file], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [carto], [file], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [carto], [file]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_carto_file_DSO], [test "$BUILD_carto_file_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_carto_file_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_carto_file_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_carto_file_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_carto_file_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_carto_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_carto_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([opal], [carto], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [carto], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([opal], [carto], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([opal/mca/carto/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [carto], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [carto], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_carto_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_carto_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_carto_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_carto_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_carto_ALL_SUBDIRS], [carto], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_carto_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_carto_STATIC_SUBDIRS], [carto], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_carto_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_carto_DSO_SUBDIRS], [carto], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_carto_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([opal], [crs], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_crs_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_crs_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([opal], [crs], [none], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [crs], [none], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([opal], [crs], [none], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [crs], [none], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [crs], [none]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_crs_none_DSO], [test "$BUILD_crs_none_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_crs_none_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_crs_none_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_crs_none_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_crs_none_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_crs_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([opal], [crs], [blcr], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [crs], [blcr], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([opal], [crs], [blcr], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_crs_blcr_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++opal/mca/crs/blcr/configure.m4:20: MCA_crs_blcr_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++opal/mca/crs/blcr/configure.m4:20: MCA_crs_blcr_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_PACKAGE([crs_blcr_check], [libcr.h], [cr], [cr_init], [], [$check_crs_blcr_dir], [$check_crs_blcr_libdir], [check_crs_blcr_good="yes"], [check_crs_blcr_good="no"]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_HEADER([crs_blcr_check], [libcr.h], [$check_crs_blcr_dir], [_OMPI_CHECK_PACKAGE_LIB([crs_blcr_check], [cr], [cr_init], [], [$check_crs_blcr_dir], [$check_crs_blcr_libdir], ++ [ompi_check_package_happy="yes"], ++ [ompi_check_package_happy="no"])], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/crs/blcr/configure.m4:20: MCA_crs_blcr_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([crs_blcr_check], [cr], [cr_init], [], [$check_crs_blcr_dir], [$check_crs_blcr_libdir], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/crs/blcr/configure.m4:20: MCA_crs_blcr_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/crs/blcr/configure.m4:20: MCA_crs_blcr_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/crs/blcr/configure.m4:20: MCA_crs_blcr_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([crs_blcr_check], [cr], [cr_init], [], [$check_crs_blcr_dir], [$check_crs_blcr_libdir], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/crs/blcr/configure.m4:20: MCA_crs_blcr_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/crs/blcr/configure.m4:20: MCA_crs_blcr_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/crs/blcr/configure.m4:20: MCA_crs_blcr_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_FUNC_LIB([cr_request_file], [cr], [AC_TRY_COMPILE([#include ], ++ [#if CR_RELEASE_MAJOR <= 0 && CR_RELEASE_MINOR < 6 ++ #error Version earlier than 0.6.0 ++ #endif ++ ], ++ [crs_blcr_have_working_cr_request=1 ++ ], ++ [crs_blcr_have_working_cr_request=0 ++ AC_MSG_WARN([This BLCR version does not contain a known working version of cr_request_file]) ++ ])], [crs_blcr_have_working_cr_request=0 ++ AC_MSG_WARN([This BLCR version does not contain the cr_request_file function]) ++ ]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++config/ompi_check_func_lib.m4:27: OMPI_CHECK_FUNC_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/crs/blcr/configure.m4:20: MCA_crs_blcr_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^CRS_BLCR_HAVE_CR_REQUEST$]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_FUNC_LIB([cr_request_checkpoint], [cr], [crs_blcr_have_cr_request_checkpoint=1 ++ ], [crs_blcr_have_cr_request_checkpoint=0 ++ AC_MSG_WARN([This BLCR version does not contain the cr_request_checkpoint function]) ++ ]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^CRS_BLCR_HAVE_CR_REQUEST_CHECKPOINT$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^CRS_BLCR_HAVE_INFO_REQUESTER$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^crs_blcr_crs_blcr_WRAPPER_EXTRA_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^crs_blcr_crs_blcr_WRAPPER_EXTRA_LIBS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^crs_blcr_crs_blcr_WRAPPER_EXTRA_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^crs_blcr_CFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^crs_blcr_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^crs_blcr_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^crs_blcr_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [crs], [blcr], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [crs], [blcr]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_crs_blcr_DSO], [test "$BUILD_crs_blcr_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_crs_blcr_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_crs_blcr_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_crs_blcr_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_crs_blcr_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_crs_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_crs_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_crs_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([opal], [crs], [self], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [crs], [self], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([opal], [crs], [self], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_crs_self_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [crs], [self], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [crs], [self]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_crs_self_DSO], [test "$BUILD_crs_self_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_crs_self_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_crs_self_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_crs_self_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_crs_self_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_crs_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_crs_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_crs_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_crs_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([opal], [crs], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [crs], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([opal], [crs], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([opal/mca/crs/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [crs], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [crs], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crs_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crs_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crs_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crs_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_crs_ALL_SUBDIRS], [crs], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crs_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_crs_STATIC_SUBDIRS], [crs], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crs_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_crs_DSO_SUBDIRS], [crs], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crs_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([opal], [installdirs], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_installdirs_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_installdirs_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_installdirs_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([opal], [installdirs], [env], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [installdirs], [env], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_installdirs_env_COMPILE_MODE([opal], [installdirs], [env], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_installdirs_env_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [installdirs], [env], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [installdirs], [env]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_installdirs_env_DSO], [test "$BUILD_installdirs_env_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_installdirs_env_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_installdirs_env_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_installdirs_env_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_installdirs_env_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_installdirs_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_installdirs_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_installdirs_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([opal], [installdirs], [config], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [installdirs], [config], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_installdirs_config_COMPILE_MODE([opal], [installdirs], [config], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_installdirs_config_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [installdirs], [config], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [installdirs], [config]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_installdirs_config_DSO], [test "$BUILD_installdirs_config_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_installdirs_config_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_installdirs_config_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_installdirs_config_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_installdirs_config_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_installdirs_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_installdirs_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_installdirs_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_installdirs_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([opal], [installdirs], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [installdirs], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([opal], [installdirs], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([opal/mca/installdirs/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [installdirs], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [installdirs], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_installdirs_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_installdirs_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_installdirs_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_installdirs_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_installdirs_ALL_SUBDIRS], [installdirs], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_installdirs_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_installdirs_STATIC_SUBDIRS], [installdirs], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_installdirs_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_installdirs_DSO_SUBDIRS], [installdirs], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_installdirs_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([opal], [maffinity], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_maffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_maffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([opal], [maffinity], [first_use], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [maffinity], [first_use], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([opal], [maffinity], [first_use], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [maffinity], [first_use], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [maffinity], [first_use]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_maffinity_first_use_DSO], [test "$BUILD_maffinity_first_use_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_maffinity_first_use_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_maffinity_first_use_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_maffinity_first_use_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_maffinity_first_use_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_maffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([opal], [maffinity], [libnuma], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [maffinity], [libnuma], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([opal], [maffinity], [libnuma], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_maffinity_libnuma_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++opal/mca/maffinity/libnuma/configure.m4:25: MCA_maffinity_libnuma_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_PACKAGE([maffinity_libnuma], [numa.h], [numa], [numa_available], [], [$with_libnuma], [], [maffinity_libnuma_happy="yes"], [maffinity_libnuma_happy="no"]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_HEADER([maffinity_libnuma], [numa.h], [$with_libnuma], [_OMPI_CHECK_PACKAGE_LIB([maffinity_libnuma], [numa], [numa_available], [], [$with_libnuma], [], ++ [ompi_check_package_happy="yes"], ++ [ompi_check_package_happy="no"])], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/maffinity/libnuma/configure.m4:25: MCA_maffinity_libnuma_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([maffinity_libnuma], [numa], [numa_available], [], [$with_libnuma], [], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/maffinity/libnuma/configure.m4:25: MCA_maffinity_libnuma_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/maffinity/libnuma/configure.m4:25: MCA_maffinity_libnuma_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/maffinity/libnuma/configure.m4:25: MCA_maffinity_libnuma_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([maffinity_libnuma], [numa], [numa_available], [], [$with_libnuma], [], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/maffinity/libnuma/configure.m4:25: MCA_maffinity_libnuma_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/maffinity/libnuma/configure.m4:25: MCA_maffinity_libnuma_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/maffinity/libnuma/configure.m4:25: MCA_maffinity_libnuma_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_DECL_MPOL_MF_MOVE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_DECL_MPOL_MF_MOVE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^maffinity_libnuma_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^maffinity_libnuma_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^maffinity_libnuma_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [maffinity], [libnuma], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [maffinity], [libnuma]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_maffinity_libnuma_DSO], [test "$BUILD_maffinity_libnuma_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_maffinity_libnuma_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_maffinity_libnuma_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_maffinity_libnuma_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_maffinity_libnuma_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_maffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_maffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_maffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_maffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([opal], [maffinity], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [maffinity], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([opal], [maffinity], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([opal/mca/maffinity/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [maffinity], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [maffinity], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_maffinity_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_maffinity_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_maffinity_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_maffinity_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_maffinity_ALL_SUBDIRS], [maffinity], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_maffinity_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_maffinity_STATIC_SUBDIRS], [maffinity], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_maffinity_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_maffinity_DSO_SUBDIRS], [maffinity], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_maffinity_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_memchecker_CONFIG([opal], [memchecker]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++opal/mca/memchecker/configure.m4:16: MCA_memchecker_CONFIG is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_WANT_MEMCHECKER$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_WANT_MEMCHECKER], [test "$WANT_MEMCHECKER" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_WANT_MEMCHECKER_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_WANT_MEMCHECKER_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_WANT_MEMCHECKER_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_WANT_MEMCHECKER_FALSE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([opal], [memchecker], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_memchecker_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_memchecker_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_memchecker_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([opal], [memchecker], [valgrind], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [memchecker], [valgrind], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_memchecker_valgrind_COMPILE_MODE([opal], [memchecker], [valgrind], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_memchecker_valgrind_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_PUSH([opal_memchecker_valgrind_save_CPPFLAGS opal_memchecker_valgrind_happy opal_memchecker_valgrind_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++opal/mca/memchecker/valgrind/configure.m4:22: MCA_memchecker_valgrind_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++opal/mca/memchecker/configure.m4:16: MCA_memchecker_CONFIG is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^memchecker_valgrind_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_POP ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [memchecker], [valgrind], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [memchecker], [valgrind]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_memchecker_valgrind_DSO], [test "$BUILD_memchecker_valgrind_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_memchecker_valgrind_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_memchecker_valgrind_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_memchecker_valgrind_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_memchecker_valgrind_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_memchecker_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_memchecker_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_memchecker_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memchecker_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memchecker_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memchecker_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memchecker_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_memchecker_ALL_SUBDIRS], [memchecker], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memchecker_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_memchecker_STATIC_SUBDIRS], [memchecker], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memchecker_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_memchecker_DSO_SUBDIRS], [memchecker], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memchecker_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_MEMCHECKER_HAVE_COMPONENT$]) ++m4trace:configure.ac:1032: -1- MCA_memcpy_CONFIG([opal], [memcpy]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([opal], [memcpy], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_memcpy_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_memcpy_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_memcpy_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memcpy_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memcpy_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memcpy_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memcpy_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_memcpy_ALL_SUBDIRS], [memcpy], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memcpy_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_memcpy_STATIC_SUBDIRS], [memcpy], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memcpy_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_memcpy_DSO_SUBDIRS], [memcpy], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memcpy_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memcpy_IMPLEMENTATION_HEADER$]) ++m4trace:configure.ac:1032: -1- MCA_memory_CONFIG([opal], [memory]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++opal/mca/memory/configure.m4:23: MCA_memory_CONFIG is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([opal], [memory], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_memory_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_memory_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_memory_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([opal], [memory], [ptmalloc2], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [memory], [ptmalloc2], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_memory_ptmalloc2_COMPILE_MODE([opal], [memory], [ptmalloc2], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_memory_ptmalloc2_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++opal/mca/memory/ptmalloc2/configure.m4:37: MCA_memory_ptmalloc2_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++opal/mca/memory/configure.m4:23: MCA_memory_CONFIG is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_DECL_SBRK$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_DECL_SBRK$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^memory_ptmalloc2_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [memory], [ptmalloc2], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [memory], [ptmalloc2]) ++m4trace:configure.ac:1032: -1- MCA_memory_ptmalloc2_POST_CONFIG([$should_build]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_WANT_EXTERNAL_PTMALLOC2], [test "$enable_ptmalloc2_internal" != "yes"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_WANT_EXTERNAL_PTMALLOC2_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_WANT_EXTERNAL_PTMALLOC2_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_WANT_EXTERNAL_PTMALLOC2_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_WANT_EXTERNAL_PTMALLOC2_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_memory_ptmalloc2_DSO], [test "$BUILD_memory_ptmalloc2_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_memory_ptmalloc2_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_memory_ptmalloc2_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_memory_ptmalloc2_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_memory_ptmalloc2_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_memory_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_memory_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_memory_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([opal], [memory], [malloc_solaris], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [memory], [malloc_solaris], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_memory_malloc_solaris_COMPILE_MODE([opal], [memory], [malloc_solaris], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_memory_malloc_solaris_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_PUSH([memory_malloc_solaris_happy], [memory_malloc_solaris_should_use], [memory_malloc_solaris_munmap]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^memory_malloc_solaris_LIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_POP ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [memory], [malloc_solaris], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [memory], [malloc_solaris]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_memory_malloc_solaris_DSO], [test "$BUILD_memory_malloc_solaris_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_memory_malloc_solaris_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_memory_malloc_solaris_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_memory_malloc_solaris_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_memory_malloc_solaris_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_memory_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_memory_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_memory_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([opal], [memory], [mallopt], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [memory], [mallopt], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_memory_mallopt_COMPILE_MODE([opal], [memory], [mallopt], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_memory_mallopt_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^memory_mallopt_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [memory], [mallopt], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [memory], [mallopt]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_memory_mallopt_DSO], [test "$BUILD_memory_mallopt_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_memory_mallopt_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_memory_mallopt_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_memory_mallopt_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_memory_mallopt_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_memory_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_memory_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_memory_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memory_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memory_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memory_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memory_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_memory_ALL_SUBDIRS], [memory], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memory_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_memory_STATIC_SUBDIRS], [memory], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memory_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_memory_DSO_SUBDIRS], [memory], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memory_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_MEMORY_HAVE_COMPONENT$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([opal], [paffinity], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_paffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_paffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_paffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([opal], [paffinity], [linux], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [paffinity], [linux], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([opal], [paffinity], [linux], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_paffinity_linux_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_PUSH([PLPA_VERSION]) ++m4trace:configure.ac:1032: -1- PLPA_SET_SYMBOL_PREFIX([opal_paffinity_linux_plpa_]) ++m4trace:configure.ac:1032: -1- _PLPA_INTERNAL_SETUP ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:188: _PLPA_INTERNAL_SETUP is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:180: PLPA_SET_SYMBOL_PREFIX is expanded from... ++opal/mca/paffinity/linux/configure.m4:30: MCA_paffinity_linux_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:188: _PLPA_INTERNAL_SETUP is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:180: PLPA_SET_SYMBOL_PREFIX is expanded from... ++opal/mca/paffinity/linux/configure.m4:30: MCA_paffinity_linux_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:188: _PLPA_INTERNAL_SETUP is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:180: PLPA_SET_SYMBOL_PREFIX is expanded from... ++opal/mca/paffinity/linux/configure.m4:30: MCA_paffinity_linux_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:188: _PLPA_INTERNAL_SETUP is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:180: PLPA_SET_SYMBOL_PREFIX is expanded from... ++opal/mca/paffinity/linux/configure.m4:30: MCA_paffinity_linux_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:188: _PLPA_INTERNAL_SETUP is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:180: PLPA_SET_SYMBOL_PREFIX is expanded from... ++opal/mca/paffinity/linux/configure.m4:30: MCA_paffinity_linux_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- PLPA_INCLUDED ++m4trace:configure.ac:1032: -1- PLPA_DISABLE_EXECUTABLES ++m4trace:configure.ac:1032: -1- PLPA_INIT([opal/mca/paffinity/linux/plpa], [AC_MSG_CHECKING([for PLPA version]) ++ PLPA_VERSION=`$srcdir/opal/mca/paffinity/linux/plpa/config/plpa_get_version.sh $srcdir/opal/mca/paffinity/linux/plpa/VERSION` ++ AC_DEFINE_UNQUOTED([PAFFINITY_LINUX_PLPA_VERSION], ++ ["$PLPA_VERSION"], ++ [Version of PLPA embedded in OMPI]) ++ AC_MSG_RESULT([$PLPA_VERSION]) ++ should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- _PLPA_INIT_COMPAT([opal/mca/paffinity/linux/plpa], [AC_MSG_CHECKING([for PLPA version]) ++ PLPA_VERSION=`$srcdir/opal/mca/paffinity/linux/plpa/config/plpa_get_version.sh $srcdir/opal/mca/paffinity/linux/plpa/VERSION` ++ AC_DEFINE_UNQUOTED([PAFFINITY_LINUX_PLPA_VERSION], ++ ["$PLPA_VERSION"], ++ [Version of PLPA embedded in OMPI]) ++ AC_MSG_RESULT([$PLPA_VERSION]) ++ should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^YACC$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^YACC$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^YFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^__NR_sched_setaffinity$]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:42: _PLPA_INIT_COMPAT is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:23: PLPA_INIT is expanded from... ++opal/mca/paffinity/linux/configure.m4:30: MCA_paffinity_linux_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^__NR_sched_getaffinity$]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:42: _PLPA_INIT_COMPAT is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:23: PLPA_INIT is expanded from... ++opal/mca/paffinity/linux/configure.m4:30: MCA_paffinity_linux_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -2- m4_pattern_allow([^PAFFINITY_LINUX_PLPA_VERSION$]) ++m4trace:configure.ac:1032: -1- _PLPA_INIT([{ echo "$as_me:$LINENO: checking for PLPA version" >&5 ++echo $ECHO_N "checking for PLPA version... $ECHO_C" >&6; } ++ PLPA_VERSION=`$srcdir/opal/mca/paffinity/linux/plpa/config/plpa_get_version.sh $srcdir/opal/mca/paffinity/linux/plpa/VERSION` ++ ++cat >>confdefs.h <<_ACEOF ++@%:@define PAFFINITY_LINUX_PLPA_VERSION "$PLPA_VERSION" ++_ACEOF ++ ++ { echo "$as_me:$LINENO: result: $PLPA_VERSION" >&5 ++echo "${ECHO_T}$PLPA_VERSION" >&6; } ++ should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^PLPA_DEBUG$]) ++m4trace:configure.ac:1032: -1- AM_CONFIG_HEADER([opal/mca/paffinity/linux/plpa/src/libplpa/plpa_config.h]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AM_CONFIG_HEADER' is obsolete. ++You should run autoupdate.], [/usr/share/aclocal-1.10/header.m4:12: AM_CONFIG_HEADER is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:262: _PLPA_INIT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:42: _PLPA_INIT_COMPAT is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:23: PLPA_INIT is expanded from... ++opal/mca/paffinity/linux/configure.m4:30: MCA_paffinity_linux_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AM_CONFIG_HEADER([opal/mca/paffinity/linux/plpa/src/libplpa/plpa.h]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AM_CONFIG_HEADER' is obsolete. ++You should run autoupdate.], [/usr/share/aclocal-1.10/header.m4:12: AM_CONFIG_HEADER is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:262: _PLPA_INIT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:42: _PLPA_INIT_COMPAT is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:23: PLPA_INIT is expanded from... ++opal/mca/paffinity/linux/configure.m4:30: MCA_paffinity_linux_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^PLPA_SYM_PREFIX$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^PLPA_SYM_PREFIX_CAPS$]) ++m4trace:configure.ac:1032: -1- PLPA_DO_AM_CONDITIONALS ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([PLPA_BUILD_STANDALONE], [test "$plpa_mode" = "standalone"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^PLPA_BUILD_STANDALONE_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^PLPA_BUILD_STANDALONE_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([PLPA_BUILD_STANDALONE_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([PLPA_BUILD_STANDALONE_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([PLPA_BUILD_EXECUTABLES], [test "$plpa_executables" = "yes"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^PLPA_BUILD_EXECUTABLES_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^PLPA_BUILD_EXECUTABLES_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([PLPA_BUILD_EXECUTABLES_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([PLPA_BUILD_EXECUTABLES_FALSE]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_POP ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [paffinity], [linux], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [paffinity], [linux]) ++m4trace:configure.ac:1032: -1- MCA_paffinity_linux_POST_CONFIG([$should_build]) ++m4trace:configure.ac:1032: -1- PLPA_DO_AM_CONDITIONALS ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([PLPA_BUILD_STANDALONE], [test "$plpa_mode" = "standalone"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^PLPA_BUILD_STANDALONE_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^PLPA_BUILD_STANDALONE_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([PLPA_BUILD_STANDALONE_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([PLPA_BUILD_STANDALONE_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([PLPA_BUILD_EXECUTABLES], [test "$plpa_executables" = "yes"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^PLPA_BUILD_EXECUTABLES_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^PLPA_BUILD_EXECUTABLES_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([PLPA_BUILD_EXECUTABLES_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([PLPA_BUILD_EXECUTABLES_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_paffinity_linux_DSO], [test "$BUILD_paffinity_linux_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_paffinity_linux_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_paffinity_linux_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_paffinity_linux_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_paffinity_linux_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_paffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_paffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_paffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([opal], [paffinity], [solaris], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [paffinity], [solaris], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([opal], [paffinity], [solaris], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_paffinity_solaris_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_PUSH([paff_solaris_happy]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_POP ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [paffinity], [solaris], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [paffinity], [solaris]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_paffinity_solaris_DSO], [test "$BUILD_paffinity_solaris_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_paffinity_solaris_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_paffinity_solaris_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_paffinity_solaris_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_paffinity_solaris_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_paffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_paffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_paffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([opal], [paffinity], [windows], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [paffinity], [windows], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([opal], [paffinity], [windows], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_paffinity_windows_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++opal/mca/paffinity/windows/configure.m4:22: MCA_paffinity_windows_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [paffinity], [windows], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [paffinity], [windows]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_paffinity_windows_DSO], [test "$BUILD_paffinity_windows_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_paffinity_windows_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_paffinity_windows_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_paffinity_windows_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_paffinity_windows_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_paffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_paffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_paffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([opal], [paffinity], [darwin], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [paffinity], [darwin], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([opal], [paffinity], [darwin], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_paffinity_darwin_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_PUSH([paff_darwin_happy]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_POP ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [paffinity], [darwin], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [paffinity], [darwin]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_paffinity_darwin_DSO], [test "$BUILD_paffinity_darwin_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_paffinity_darwin_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_paffinity_darwin_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_paffinity_darwin_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_paffinity_darwin_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_paffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_paffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_paffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([opal], [paffinity], [posix], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [paffinity], [posix], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([opal], [paffinity], [posix], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_paffinity_posix_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_PUSH([paff_posix_happy]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_POP ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [paffinity], [posix], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [paffinity], [posix]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_paffinity_posix_DSO], [test "$BUILD_paffinity_posix_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_paffinity_posix_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_paffinity_posix_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_paffinity_posix_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_paffinity_posix_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_paffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_paffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_paffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_paffinity_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_paffinity_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_paffinity_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_paffinity_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_paffinity_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_paffinity_ALL_SUBDIRS], [paffinity], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_paffinity_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_paffinity_STATIC_SUBDIRS], [paffinity], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_paffinity_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_paffinity_DSO_SUBDIRS], [paffinity], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_paffinity_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_timer_CONFIG([opal], [timer]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([opal], [timer], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_timer_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_timer_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_timer_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([opal], [timer], [catamount], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [timer], [catamount], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_timer_catamount_COMPILE_MODE([opal], [timer], [catamount], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_timer_catamount_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++opal/mca/timer/catamount/configure.m4:30: MCA_timer_catamount_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++opal/mca/timer/configure.m4:23: MCA_timer_CONFIG is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [timer], [catamount], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [timer], [catamount]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_timer_catamount_DSO], [test "$BUILD_timer_catamount_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_catamount_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_catamount_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_catamount_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_catamount_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_timer_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_timer_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_timer_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([opal], [timer], [aix], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [timer], [aix], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_timer_aix_COMPILE_MODE([opal], [timer], [aix], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_timer_aix_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^timer_aix_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [timer], [aix], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [timer], [aix]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_timer_aix_DSO], [test "$BUILD_timer_aix_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_aix_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_aix_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_aix_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_aix_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_timer_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_timer_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_timer_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([opal], [timer], [altix], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [timer], [altix], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_timer_altix_COMPILE_MODE([opal], [timer], [altix], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_timer_altix_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [timer], [altix], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [timer], [altix]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_timer_altix_DSO], [test "$BUILD_timer_altix_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_altix_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_altix_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_altix_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_altix_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_timer_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_timer_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_timer_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([opal], [timer], [darwin], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [timer], [darwin], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_timer_darwin_COMPILE_MODE([opal], [timer], [darwin], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_timer_darwin_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [timer], [darwin], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [timer], [darwin]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_timer_darwin_DSO], [test "$BUILD_timer_darwin_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_darwin_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_darwin_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_darwin_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_darwin_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_timer_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_timer_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_timer_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([opal], [timer], [solaris], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [timer], [solaris], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_timer_solaris_COMPILE_MODE([opal], [timer], [solaris], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_timer_solaris_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [timer], [solaris], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [timer], [solaris]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_timer_solaris_DSO], [test "$BUILD_timer_solaris_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_solaris_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_solaris_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_solaris_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_solaris_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_timer_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_timer_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_timer_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([opal], [timer], [windows], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [timer], [windows], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_timer_windows_COMPILE_MODE([opal], [timer], [windows], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_timer_windows_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/timer/windows/configure.m4:30: MCA_timer_windows_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++opal/mca/timer/configure.m4:23: MCA_timer_CONFIG is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [timer], [windows], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [timer], [windows]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_timer_windows_DSO], [test "$BUILD_timer_windows_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_windows_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_windows_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_windows_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_windows_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_timer_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_timer_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_timer_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([opal], [timer], [linux], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([opal], [timer], [linux], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_timer_linux_COMPILE_MODE([opal], [timer], [linux], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_timer_linux_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([opal], [timer], [linux], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([opal], [timer], [linux]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_timer_linux_DSO], [test "$BUILD_timer_linux_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_linux_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_linux_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_linux_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_linux_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_timer_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_timer_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_timer_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_timer_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_timer_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_timer_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_timer_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_timer_ALL_SUBDIRS], [timer], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_timer_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_timer_STATIC_SUBDIRS], [timer], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_timer_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_timer_DSO_SUBDIRS], [timer], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_timer_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_timer_IMPLEMENTATION_HEADER$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_opal_FRAMEWORKS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_opal_FRAMEWORKS_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_opal_FRAMEWORK_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_PROJECT([orte]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([orte], [errmgr], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_errmgr_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_errmgr_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([orte], [errmgr], [default], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [errmgr], [default], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [errmgr], [default], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [errmgr], [default], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [errmgr], [default]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_errmgr_default_DSO], [test "$BUILD_errmgr_default_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_errmgr_default_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_errmgr_default_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_errmgr_default_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_errmgr_default_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_errmgr_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_errmgr_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([orte], [errmgr], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [errmgr], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [errmgr], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([orte/mca/errmgr/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [errmgr], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [errmgr], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_errmgr_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_errmgr_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_errmgr_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_errmgr_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_errmgr_ALL_SUBDIRS], [errmgr], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_errmgr_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_errmgr_STATIC_SUBDIRS], [errmgr], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_errmgr_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_errmgr_DSO_SUBDIRS], [errmgr], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_errmgr_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([orte], [ess], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [ess], [portals_utcp], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [ess], [portals_utcp], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [ess], [portals_utcp], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_ess_portals_utcp_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++orte/mca/ess/portals_utcp/configure.m4:24: MCA_ess_portals_utcp_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++orte/mca/ess/portals_utcp/configure.m4:24: MCA_ess_portals_utcp_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ess_portals_utcp_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ess_portals_utcp_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ess_portals_utcp_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [ess], [portals_utcp], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [ess], [portals_utcp]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ess_portals_utcp_DSO], [test "$BUILD_ess_portals_utcp_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_portals_utcp_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_portals_utcp_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_portals_utcp_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_portals_utcp_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [ess], [cnos], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [ess], [cnos], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [ess], [cnos], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_ess_cnos_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_ALPS([ess_cnos], [should_build=0], [should_build=1]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_alps.m4:23: OMPI_CHECK_ALPS is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/functions.m4:67: AC_CHECK_FUNC is expanded from... ++orte/mca/ess/cnos/configure.m4:22: MCA_ess_cnos_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [ess], [cnos], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [ess], [cnos]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ess_cnos_DSO], [test "$BUILD_ess_cnos_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_cnos_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_cnos_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_cnos_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_cnos_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [ess], [alps], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [ess], [alps], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [ess], [alps], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_ess_alps_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_ALPS([ess_alps], [AC_CHECK_FUNC([cnos_get_rank], [should_build=1], [should_build=0])], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [ess], [alps], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [ess], [alps]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ess_alps_DSO], [test "$BUILD_ess_alps_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_alps_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_alps_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_alps_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_alps_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [ess], [env], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [ess], [env], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [ess], [env], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_ess_env_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [ess], [env], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [ess], [env]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ess_env_DSO], [test "$BUILD_ess_env_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_env_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_env_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_env_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_env_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [ess], [hnp], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [ess], [hnp], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [ess], [hnp], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_ess_hnp_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [ess], [hnp], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [ess], [hnp]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ess_hnp_DSO], [test "$BUILD_ess_hnp_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_hnp_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_hnp_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_hnp_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_hnp_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [ess], [lsf], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [ess], [lsf], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [ess], [lsf], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_ess_lsf_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_LSF([ess_lsf], [ess_lsf_good=1], [ess_lsf_good=0]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ess/lsf/configure.m4:23: MCA_ess_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ess/lsf/configure.m4:23: MCA_ess_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_PACKAGE([ess_lsf], [lsf/lsbatch.h], [bat], [lsb_launch], [-llsf], [$ompi_check_lsf_dir], [$ompi_check_lsf_libdir], [ompi_check_lsf_happy="yes"], [ompi_check_lsf_happy="no"]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_HEADER([ess_lsf], [lsf/lsbatch.h], [$ompi_check_lsf_dir], [_OMPI_CHECK_PACKAGE_LIB([ess_lsf], [bat], [lsb_launch], [-llsf], [$ompi_check_lsf_dir], [$ompi_check_lsf_libdir], ++ [ompi_check_package_happy="yes"], ++ [ompi_check_package_happy="no"])], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ess/lsf/configure.m4:23: MCA_ess_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([ess_lsf], [bat], [lsb_launch], [-llsf], [$ompi_check_lsf_dir], [$ompi_check_lsf_libdir], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ess/lsf/configure.m4:23: MCA_ess_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ess/lsf/configure.m4:23: MCA_ess_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ess/lsf/configure.m4:23: MCA_ess_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([ess_lsf], [bat], [lsb_launch], [-llsf], [$ompi_check_lsf_dir], [$ompi_check_lsf_libdir], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ess/lsf/configure.m4:23: MCA_ess_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ess/lsf/configure.m4:23: MCA_ess_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ess/lsf/configure.m4:23: MCA_ess_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ess_lsf_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ess_lsf_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ess_lsf_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [ess], [lsf], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [ess], [lsf]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ess_lsf_DSO], [test "$BUILD_ess_lsf_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_lsf_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_lsf_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_lsf_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_lsf_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [ess], [singleton], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [ess], [singleton], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [ess], [singleton], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_ess_singleton_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [ess], [singleton], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [ess], [singleton]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ess_singleton_DSO], [test "$BUILD_ess_singleton_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_singleton_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_singleton_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_singleton_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_singleton_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [ess], [slurm], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [ess], [slurm], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [ess], [slurm], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_ess_slurm_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_SLURM([ess_slurm], [ess_slurm_good=1], [ess_slurm_good=0]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_slurm.m4:23: OMPI_CHECK_SLURM is expanded from... ++orte/mca/ess/slurm/configure.m4:22: MCA_ess_slurm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- OMPI_WHICH([srun], [OMPI_CHECK_SLURM_SRUN]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_PUSH([ompi_prog ompi_file ompi_dir ompi_sentinel]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_POP ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ess_slurm_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ess_slurm_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ess_slurm_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [ess], [slurm], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [ess], [slurm]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ess_slurm_DSO], [test "$BUILD_ess_slurm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_slurm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_slurm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_slurm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_slurm_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [ess], [tool], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [ess], [tool], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [ess], [tool], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_ess_tool_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [ess], [tool], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [ess], [tool]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ess_tool_DSO], [test "$BUILD_ess_tool_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_tool_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_tool_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_tool_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_tool_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ess_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ess_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ess_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ess_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ess_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_ess_ALL_SUBDIRS], [ess], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ess_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_ess_STATIC_SUBDIRS], [ess], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ess_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_ess_DSO_SUBDIRS], [ess], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ess_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([orte], [filem], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_filem_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_filem_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([orte], [filem], [rsh], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [filem], [rsh], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [filem], [rsh], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [filem], [rsh], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [filem], [rsh]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_filem_rsh_DSO], [test "$BUILD_filem_rsh_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_filem_rsh_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_filem_rsh_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_filem_rsh_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_filem_rsh_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_filem_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_filem_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([orte], [filem], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [filem], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [filem], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([orte/mca/filem/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [filem], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [filem], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_filem_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_filem_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_filem_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_filem_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_filem_ALL_SUBDIRS], [filem], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_filem_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_filem_STATIC_SUBDIRS], [filem], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_filem_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_filem_DSO_SUBDIRS], [filem], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_filem_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([orte], [grpcomm], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_grpcomm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_grpcomm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_grpcomm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [grpcomm], [cnos], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [grpcomm], [cnos], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [grpcomm], [cnos], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_grpcomm_cnos_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_GRPCOMM_CNOS_HAVE_BARRIER$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [grpcomm], [cnos], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [grpcomm], [cnos]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_grpcomm_cnos_DSO], [test "$BUILD_grpcomm_cnos_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_grpcomm_cnos_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_grpcomm_cnos_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_grpcomm_cnos_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_grpcomm_cnos_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_grpcomm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_grpcomm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_grpcomm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [grpcomm], [bad], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [grpcomm], [bad], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [grpcomm], [bad], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_grpcomm_bad_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [grpcomm], [bad], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [grpcomm], [bad]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_grpcomm_bad_DSO], [test "$BUILD_grpcomm_bad_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_grpcomm_bad_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_grpcomm_bad_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_grpcomm_bad_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_grpcomm_bad_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_grpcomm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_grpcomm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_grpcomm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [grpcomm], [basic], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [grpcomm], [basic], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [grpcomm], [basic], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_grpcomm_basic_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [grpcomm], [basic], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [grpcomm], [basic]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_grpcomm_basic_DSO], [test "$BUILD_grpcomm_basic_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_grpcomm_basic_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_grpcomm_basic_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_grpcomm_basic_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_grpcomm_basic_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_grpcomm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_grpcomm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_grpcomm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_grpcomm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_grpcomm_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_grpcomm_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_grpcomm_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_grpcomm_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_grpcomm_ALL_SUBDIRS], [grpcomm], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_grpcomm_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_grpcomm_STATIC_SUBDIRS], [grpcomm], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_grpcomm_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_grpcomm_DSO_SUBDIRS], [grpcomm], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_grpcomm_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([orte], [iof], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_iof_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_iof_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([orte], [iof], [hnp], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [iof], [hnp], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [iof], [hnp], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [iof], [hnp], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [iof], [hnp]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_iof_hnp_DSO], [test "$BUILD_iof_hnp_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_iof_hnp_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_iof_hnp_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_iof_hnp_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_iof_hnp_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([orte], [iof], [orted], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [iof], [orted], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [iof], [orted], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [iof], [orted], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [iof], [orted]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_iof_orted_DSO], [test "$BUILD_iof_orted_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_iof_orted_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_iof_orted_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_iof_orted_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_iof_orted_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([orte], [iof], [tool], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [iof], [tool], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [iof], [tool], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [iof], [tool], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [iof], [tool]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_iof_tool_DSO], [test "$BUILD_iof_tool_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_iof_tool_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_iof_tool_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_iof_tool_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_iof_tool_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_iof_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_iof_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([orte], [iof], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [iof], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [iof], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([orte/mca/iof/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [iof], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [iof], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_iof_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_iof_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_iof_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_iof_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_iof_ALL_SUBDIRS], [iof], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_iof_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_iof_STATIC_SUBDIRS], [iof], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_iof_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_iof_DSO_SUBDIRS], [iof], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_iof_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([orte], [notifier], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_notifier_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_notifier_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_notifier_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [notifier], [syslog], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [notifier], [syslog], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [notifier], [syslog], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_notifier_syslog_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [notifier], [syslog], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [notifier], [syslog]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_notifier_syslog_DSO], [test "$BUILD_notifier_syslog_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_notifier_syslog_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_notifier_syslog_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_notifier_syslog_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_notifier_syslog_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_notifier_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_notifier_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_notifier_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_notifier_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([orte], [notifier], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [notifier], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [notifier], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([orte/mca/notifier/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [notifier], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [notifier], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_notifier_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_notifier_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_notifier_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_notifier_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_notifier_ALL_SUBDIRS], [notifier], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_notifier_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_notifier_STATIC_SUBDIRS], [notifier], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_notifier_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_notifier_DSO_SUBDIRS], [notifier], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_notifier_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([orte], [odls], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_odls_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_odls_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_odls_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [odls], [default], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [odls], [default], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [odls], [default], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_odls_default_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [odls], [default], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [odls], [default]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_odls_default_DSO], [test "$BUILD_odls_default_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_odls_default_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_odls_default_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_odls_default_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_odls_default_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_odls_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_odls_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_odls_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_odls_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([orte], [odls], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [odls], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [odls], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([orte/mca/odls/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [odls], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [odls], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_odls_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_odls_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_odls_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_odls_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_odls_ALL_SUBDIRS], [odls], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_odls_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_odls_STATIC_SUBDIRS], [odls], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_odls_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_odls_DSO_SUBDIRS], [odls], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_odls_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([orte], [oob], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_oob_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_oob_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_oob_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [oob], [tcp], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [oob], [tcp], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [oob], [tcp], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_oob_tcp_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_STRUCT_SOCKADDR_IN$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [oob], [tcp], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [oob], [tcp]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_oob_tcp_DSO], [test "$BUILD_oob_tcp_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_oob_tcp_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_oob_tcp_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_oob_tcp_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_oob_tcp_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_oob_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_oob_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_oob_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_oob_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([orte], [oob], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [oob], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [oob], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([orte/mca/oob/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [oob], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [oob], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_oob_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_oob_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_oob_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_oob_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_oob_ALL_SUBDIRS], [oob], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_oob_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_oob_STATIC_SUBDIRS], [oob], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_oob_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_oob_DSO_SUBDIRS], [oob], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_oob_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([orte], [plm], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_plm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_plm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_plm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [plm], [alps], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [plm], [alps], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [plm], [alps], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_plm_alps_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_ALPS([plm_alps], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [plm], [alps], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [plm], [alps]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_plm_alps_DSO], [test "$BUILD_plm_alps_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_plm_alps_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_plm_alps_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_plm_alps_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_plm_alps_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_plm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_plm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_plm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [plm], [lsf], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [plm], [lsf], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [plm], [lsf], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_plm_lsf_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_LSF([plm_lsf], [plm_lsf_good=1], [plm_lsf_good=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_PACKAGE([plm_lsf], [lsf/lsbatch.h], [bat], [lsb_launch], [-llsf], [$ompi_check_lsf_dir], [$ompi_check_lsf_libdir], [ompi_check_lsf_happy="yes"], [ompi_check_lsf_happy="no"]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_HEADER([plm_lsf], [lsf/lsbatch.h], [$ompi_check_lsf_dir], [_OMPI_CHECK_PACKAGE_LIB([plm_lsf], [bat], [lsb_launch], [-llsf], [$ompi_check_lsf_dir], [$ompi_check_lsf_libdir], ++ [ompi_check_package_happy="yes"], ++ [ompi_check_package_happy="no"])], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/plm/lsf/configure.m4:22: MCA_plm_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([plm_lsf], [bat], [lsb_launch], [-llsf], [$ompi_check_lsf_dir], [$ompi_check_lsf_libdir], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/plm/lsf/configure.m4:22: MCA_plm_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/plm/lsf/configure.m4:22: MCA_plm_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/plm/lsf/configure.m4:22: MCA_plm_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([plm_lsf], [bat], [lsb_launch], [-llsf], [$ompi_check_lsf_dir], [$ompi_check_lsf_libdir], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/plm/lsf/configure.m4:22: MCA_plm_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/plm/lsf/configure.m4:22: MCA_plm_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/plm/lsf/configure.m4:22: MCA_plm_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^plm_lsf_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^plm_lsf_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^plm_lsf_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [plm], [lsf], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [plm], [lsf]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_plm_lsf_DSO], [test "$BUILD_plm_lsf_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_plm_lsf_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_plm_lsf_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_plm_lsf_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_plm_lsf_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_plm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_plm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_plm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [plm], [rsh], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [plm], [rsh], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [plm], [rsh], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_plm_rsh_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [plm], [rsh], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [plm], [rsh]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_plm_rsh_DSO], [test "$BUILD_plm_rsh_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_plm_rsh_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_plm_rsh_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_plm_rsh_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_plm_rsh_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_plm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_plm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_plm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [plm], [slurm], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [plm], [slurm], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [plm], [slurm], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_plm_slurm_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_SLURM([plm_slurm], [plm_slurm_good=1], [plm_slurm_good=0]) ++m4trace:configure.ac:1032: -1- OMPI_WHICH([srun], [OMPI_CHECK_SLURM_SRUN]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_PUSH([ompi_prog ompi_file ompi_dir ompi_sentinel]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_POP ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^plm_slurm_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^plm_slurm_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^plm_slurm_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [plm], [slurm], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [plm], [slurm]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_plm_slurm_DSO], [test "$BUILD_plm_slurm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_plm_slurm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_plm_slurm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_plm_slurm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_plm_slurm_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_plm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_plm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_plm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [plm], [tm], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [plm], [tm], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [plm], [tm], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_plm_tm_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_TM([plm_tm], [plm_tm_good=1], [plm_tm_good=0]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/plm/tm/configure.m4:22: MCA_plm_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- OMPI_LOG_MSG([plm_tm_CPPFLAGS from pbs-config: $plm_tm_CPPFLAGS], [1]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_TM_LIBS_FLAGS([plm_tm], [LDFLAGS]) ++m4trace:configure.ac:1032: -1- OMPI_LOG_MSG([plm_tm_LDFLAGS from pbs-config: $plm_tm_LDFLAGS], [1]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_TM_LIBS_FLAGS([plm_tm], [LIBS]) ++m4trace:configure.ac:1032: -1- OMPI_LOG_MSG([plm_tm_LIBS from pbs-config: $plm_tm_LIBS], [1]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_HEADER([plm_tm], [tm.h], [$ompi_check_tm_dir], [ompi_check_tm_found="yes"], [ompi_check_tm_found="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/plm/tm/configure.m4:22: MCA_plm_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([plm_tm], [pbs], [tm_init], [], [$ompi_check_tm_dir], [$ompi_check_tm_libdir], [ompi_check_tm_found="yes"], [_OMPI_CHECK_PACKAGE_LIB([plm_tm], ++ [torque], ++ [tm_init], ++ [], ++ [$ompi_check_tm_dir], ++ [$ompi_check_tm_libdir], ++ [ompi_check_tm_found="yes"], ++ [ompi_check_tm_found="no"])]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/plm/tm/configure.m4:22: MCA_plm_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/plm/tm/configure.m4:22: MCA_plm_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/plm/tm/configure.m4:22: MCA_plm_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([plm_tm], [torque], [tm_init], [], [$ompi_check_tm_dir], [$ompi_check_tm_libdir], [ompi_check_tm_found="yes"], [ompi_check_tm_found="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/plm/tm/configure.m4:22: MCA_plm_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/plm/tm/configure.m4:22: MCA_plm_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/plm/tm/configure.m4:22: MCA_plm_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^plm_tm_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^plm_tm_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^plm_tm_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [plm], [tm], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [plm], [tm]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_plm_tm_DSO], [test "$BUILD_plm_tm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_plm_tm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_plm_tm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_plm_tm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_plm_tm_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_plm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_plm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_plm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [plm], [xgrid], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [plm], [xgrid], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [plm], [xgrid], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_plm_xgrid_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_XGRID([plm_xgrid], [plm_xgrid_good=1], [plm_xgrid_good=0]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OBJC$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OBJCFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^LIBS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OBJC$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ac_ct_OBJC$]) ++m4trace:configure.ac:1032: -1- _AM_DEPENDENCIES([OBJC]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OBJCDEPMODE$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([am__fastdepOBJC], [ ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^am__fastdepOBJC_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^am__fastdepOBJC_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([am__fastdepOBJC_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([am__fastdepOBJC_FALSE]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_xgrid.m4:25: OMPI_CHECK_XGRID is expanded from... ++orte/mca/plm/xgrid/configure.m4:22: MCA_plm_xgrid_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- OMPI_LANG_LINK_WITH_C([Objective C], [AC_CACHE_CHECK([for XgridFoundation Framework], ++ [ompi_cv_check_xgrid_foundation], ++ [_OMPI_CHECK_XGRID([ompi_cv_check_xgrid_foundation="yes"], ++ [ompi_cv_check_xgrid_foundation="no"])]) ++ AS_IF([test "$ompi_cv_check_xgrid_foundation" = "yes"], ++ [ompi_check_xgrid_happy="yes"], ++ [ompi_check_xgrid_happy="no"])], [ompi_check_xgrid_happy="no"]) ++m4trace:configure.ac:1032: -1- OMPI_LOG_COMMAND([$CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext], [AC_LANG_PUSH(Objective C) ++ ompi_lang_link_with_c_libs="$LIBS" ++ LIBS="conftest_c.o $LIBS" ++ m4_if(ompi_lang_link_with_c_fortran, 1, ++ [AC_LINK_IFELSE([AC_LANG_PROGRAM([], [ ++ external testfunc ++ call testfunc(1) ++])], ++ [AS_VAR_SET(lang_var, ["yes"])], [AS_VAR_SET(lang_var, ["no"])])], ++ [AC_LINK_IFELSE([AC_LANG_PROGRAM([ ++#if defined(c_plusplus) || defined(__cplusplus) ++extern "C" int testfunc(int); ++#else ++extern int testfunc(int); ++#endif ++], ++ [return testfunc(0);])], ++ [AS_VAR_SET(lang_var, ["yes"])], [AS_VAR_SET(lang_var, ["no"])])]) ++ LIBS="$ompi_lang_link_with_c_libs" ++ AC_LANG_POP(Objective C)], [AS_VAR_SET(lang_var, ["no"])]) ++m4trace:configure.ac:1032: -1- OMPI_LOG_MSG([\$? = $ompi_status], [1]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_XGRID([ompi_cv_check_xgrid_foundation="yes"], [ompi_cv_check_xgrid_foundation="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++config/ompi_check_xgrid.m4:52: _OMPI_CHECK_XGRID is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_lang_link_with_c.m4:17: OMPI_LANG_LINK_WITH_C is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_xgrid.m4:25: OMPI_CHECK_XGRID is expanded from... ++orte/mca/plm/xgrid/configure.m4:22: MCA_plm_xgrid_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^plm_xgrid_OBJCFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^plm_xgrid_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [plm], [xgrid], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [plm], [xgrid]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_plm_xgrid_DSO], [test "$BUILD_plm_xgrid_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_plm_xgrid_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_plm_xgrid_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_plm_xgrid_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_plm_xgrid_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_plm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_plm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_plm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_plm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([orte], [plm], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [plm], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [plm], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([orte/mca/plm/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [plm], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [plm], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_plm_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_plm_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_plm_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_plm_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_plm_ALL_SUBDIRS], [plm], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_plm_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_plm_STATIC_SUBDIRS], [plm], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_plm_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_plm_DSO_SUBDIRS], [plm], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_plm_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([orte], [ras], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ras_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ras_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ras_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [ras], [alps], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [ras], [alps], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [ras], [alps], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_ras_alps_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_ALPS([ras_alps], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [ras], [alps], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [ras], [alps]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ras_alps_DSO], [test "$BUILD_ras_alps_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ras_alps_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ras_alps_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ras_alps_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ras_alps_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ras_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ras_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ras_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [ras], [gridengine], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [ras], [gridengine], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [ras], [gridengine], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_ras_gridengine_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_GRIDENGINE([ras_gridengine], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_sge.m4:28: OMPI_CHECK_GRIDENGINE is expanded from... ++orte/mca/ras/gridengine/configure.m4:24: MCA_ras_gridengine_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^QRSH$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [ras], [gridengine], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [ras], [gridengine]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ras_gridengine_DSO], [test "$BUILD_ras_gridengine_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ras_gridengine_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ras_gridengine_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ras_gridengine_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ras_gridengine_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ras_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ras_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ras_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [ras], [loadleveler], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [ras], [loadleveler], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [ras], [loadleveler], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_ras_loadleveler_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_LOADLEVELER([ras_loadleveler], [ras_loadleveler_good=1], [ras_loadleveler_good=0]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_loadleveler.m4:24: OMPI_CHECK_LOADLEVELER is expanded from... ++orte/mca/ras/loadleveler/configure.m4:22: MCA_ras_loadleveler_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_PACKAGE([ras_loadleveler], [llapi.h], [llapi], [ll_query], [], [$ompi_check_loadleveler_dir], [], [ompi_check_loadleveler_happy="yes"], [ompi_check_loadleveler_happy="no"]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_HEADER([ras_loadleveler], [llapi.h], [$ompi_check_loadleveler_dir], [_OMPI_CHECK_PACKAGE_LIB([ras_loadleveler], [llapi], [ll_query], [], [$ompi_check_loadleveler_dir], [], ++ [ompi_check_package_happy="yes"], ++ [ompi_check_package_happy="no"])], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_loadleveler.m4:24: OMPI_CHECK_LOADLEVELER is expanded from... ++orte/mca/ras/loadleveler/configure.m4:22: MCA_ras_loadleveler_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([ras_loadleveler], [llapi], [ll_query], [], [$ompi_check_loadleveler_dir], [], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_loadleveler.m4:24: OMPI_CHECK_LOADLEVELER is expanded from... ++orte/mca/ras/loadleveler/configure.m4:22: MCA_ras_loadleveler_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_loadleveler.m4:24: OMPI_CHECK_LOADLEVELER is expanded from... ++orte/mca/ras/loadleveler/configure.m4:22: MCA_ras_loadleveler_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_loadleveler.m4:24: OMPI_CHECK_LOADLEVELER is expanded from... ++orte/mca/ras/loadleveler/configure.m4:22: MCA_ras_loadleveler_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([ras_loadleveler], [llapi], [ll_query], [], [$ompi_check_loadleveler_dir], [], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_loadleveler.m4:24: OMPI_CHECK_LOADLEVELER is expanded from... ++orte/mca/ras/loadleveler/configure.m4:22: MCA_ras_loadleveler_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_loadleveler.m4:24: OMPI_CHECK_LOADLEVELER is expanded from... ++orte/mca/ras/loadleveler/configure.m4:22: MCA_ras_loadleveler_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_loadleveler.m4:24: OMPI_CHECK_LOADLEVELER is expanded from... ++orte/mca/ras/loadleveler/configure.m4:22: MCA_ras_loadleveler_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ras_loadleveler_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ras_loadleveler_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ras_loadleveler_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [ras], [loadleveler], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [ras], [loadleveler]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ras_loadleveler_DSO], [test "$BUILD_ras_loadleveler_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ras_loadleveler_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ras_loadleveler_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ras_loadleveler_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ras_loadleveler_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ras_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ras_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ras_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [ras], [lsf], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [ras], [lsf], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [ras], [lsf], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_ras_lsf_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_LSF([ras_lsf], [ras_lsf_good=1], [ras_lsf_good=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_PACKAGE([ras_lsf], [lsf/lsbatch.h], [bat], [lsb_launch], [-llsf], [$ompi_check_lsf_dir], [$ompi_check_lsf_libdir], [ompi_check_lsf_happy="yes"], [ompi_check_lsf_happy="no"]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_HEADER([ras_lsf], [lsf/lsbatch.h], [$ompi_check_lsf_dir], [_OMPI_CHECK_PACKAGE_LIB([ras_lsf], [bat], [lsb_launch], [-llsf], [$ompi_check_lsf_dir], [$ompi_check_lsf_libdir], ++ [ompi_check_package_happy="yes"], ++ [ompi_check_package_happy="no"])], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ras/lsf/configure.m4:22: MCA_ras_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([ras_lsf], [bat], [lsb_launch], [-llsf], [$ompi_check_lsf_dir], [$ompi_check_lsf_libdir], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ras/lsf/configure.m4:22: MCA_ras_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ras/lsf/configure.m4:22: MCA_ras_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ras/lsf/configure.m4:22: MCA_ras_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([ras_lsf], [bat], [lsb_launch], [-llsf], [$ompi_check_lsf_dir], [$ompi_check_lsf_libdir], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ras/lsf/configure.m4:22: MCA_ras_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ras/lsf/configure.m4:22: MCA_ras_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ras/lsf/configure.m4:22: MCA_ras_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ras_lsf_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ras_lsf_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ras_lsf_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [ras], [lsf], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [ras], [lsf]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ras_lsf_DSO], [test "$BUILD_ras_lsf_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ras_lsf_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ras_lsf_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ras_lsf_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ras_lsf_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ras_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ras_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ras_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [ras], [slurm], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [ras], [slurm], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [ras], [slurm], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_ras_slurm_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_SLURM([ras_slurm], [ras_slurm_good=1], [ras_slurm_good=0]) ++m4trace:configure.ac:1032: -1- OMPI_WHICH([srun], [OMPI_CHECK_SLURM_SRUN]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_PUSH([ompi_prog ompi_file ompi_dir ompi_sentinel]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_POP ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ras_slurm_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ras_slurm_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ras_slurm_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [ras], [slurm], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [ras], [slurm]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ras_slurm_DSO], [test "$BUILD_ras_slurm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ras_slurm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ras_slurm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ras_slurm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ras_slurm_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ras_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ras_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ras_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [ras], [tm], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [ras], [tm], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [ras], [tm], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_ras_tm_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_TM([ras_tm], [ras_tm_good=1], [ras_tm_good=0]) ++m4trace:configure.ac:1032: -1- OMPI_LOG_MSG([ras_tm_CPPFLAGS from pbs-config: $ras_tm_CPPFLAGS], [1]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_TM_LIBS_FLAGS([ras_tm], [LDFLAGS]) ++m4trace:configure.ac:1032: -1- OMPI_LOG_MSG([ras_tm_LDFLAGS from pbs-config: $ras_tm_LDFLAGS], [1]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_TM_LIBS_FLAGS([ras_tm], [LIBS]) ++m4trace:configure.ac:1032: -1- OMPI_LOG_MSG([ras_tm_LIBS from pbs-config: $ras_tm_LIBS], [1]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_HEADER([ras_tm], [tm.h], [$ompi_check_tm_dir], [ompi_check_tm_found="yes"], [ompi_check_tm_found="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/ras/tm/configure.m4:22: MCA_ras_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([ras_tm], [pbs], [tm_init], [], [$ompi_check_tm_dir], [$ompi_check_tm_libdir], [ompi_check_tm_found="yes"], [_OMPI_CHECK_PACKAGE_LIB([ras_tm], ++ [torque], ++ [tm_init], ++ [], ++ [$ompi_check_tm_dir], ++ [$ompi_check_tm_libdir], ++ [ompi_check_tm_found="yes"], ++ [ompi_check_tm_found="no"])]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/ras/tm/configure.m4:22: MCA_ras_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/ras/tm/configure.m4:22: MCA_ras_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/ras/tm/configure.m4:22: MCA_ras_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([ras_tm], [torque], [tm_init], [], [$ompi_check_tm_dir], [$ompi_check_tm_libdir], [ompi_check_tm_found="yes"], [ompi_check_tm_found="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/ras/tm/configure.m4:22: MCA_ras_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/ras/tm/configure.m4:22: MCA_ras_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/ras/tm/configure.m4:22: MCA_ras_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ras_tm_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ras_tm_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ras_tm_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [ras], [tm], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [ras], [tm]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ras_tm_DSO], [test "$BUILD_ras_tm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ras_tm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ras_tm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ras_tm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ras_tm_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ras_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ras_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ras_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_ras_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([orte], [ras], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [ras], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [ras], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([orte/mca/ras/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [ras], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [ras], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ras_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ras_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ras_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ras_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_ras_ALL_SUBDIRS], [ras], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ras_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_ras_STATIC_SUBDIRS], [ras], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ras_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_ras_DSO_SUBDIRS], [ras], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ras_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([orte], [rmaps], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_rmaps_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_rmaps_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([orte], [rmaps], [rank_file], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [rmaps], [rank_file], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [rmaps], [rank_file], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [rmaps], [rank_file], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [rmaps], [rank_file]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_rmaps_rank_file_DSO], [test "$BUILD_rmaps_rank_file_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_rmaps_rank_file_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_rmaps_rank_file_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_rmaps_rank_file_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_rmaps_rank_file_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([orte], [rmaps], [round_robin], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [rmaps], [round_robin], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [rmaps], [round_robin], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [rmaps], [round_robin], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [rmaps], [round_robin]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_rmaps_round_robin_DSO], [test "$BUILD_rmaps_round_robin_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_rmaps_round_robin_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_rmaps_round_robin_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_rmaps_round_robin_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_rmaps_round_robin_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([orte], [rmaps], [seq], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [rmaps], [seq], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [rmaps], [seq], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [rmaps], [seq], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [rmaps], [seq]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_rmaps_seq_DSO], [test "$BUILD_rmaps_seq_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_rmaps_seq_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_rmaps_seq_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_rmaps_seq_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_rmaps_seq_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_rmaps_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_rmaps_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([orte], [rmaps], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [rmaps], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [rmaps], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([orte/mca/rmaps/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [rmaps], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [rmaps], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rmaps_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rmaps_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rmaps_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rmaps_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_rmaps_ALL_SUBDIRS], [rmaps], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rmaps_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_rmaps_STATIC_SUBDIRS], [rmaps], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rmaps_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_rmaps_DSO_SUBDIRS], [rmaps], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rmaps_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([orte], [rml], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_rml_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_rml_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([orte], [rml], [oob], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [rml], [oob], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [rml], [oob], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [rml], [oob], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [rml], [oob]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_rml_oob_DSO], [test "$BUILD_rml_oob_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_rml_oob_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_rml_oob_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_rml_oob_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_rml_oob_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_rml_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [rml], [ftrm], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [rml], [ftrm], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [rml], [ftrm], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_rml_ftrm_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [rml], [ftrm], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [rml], [ftrm]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_rml_ftrm_DSO], [test "$BUILD_rml_ftrm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_rml_ftrm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_rml_ftrm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_rml_ftrm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_rml_ftrm_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_rml_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_rml_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_rml_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_rml_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([orte], [rml], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [rml], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [rml], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([orte/mca/rml/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [rml], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [rml], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rml_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rml_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rml_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rml_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_rml_ALL_SUBDIRS], [rml], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rml_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_rml_STATIC_SUBDIRS], [rml], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rml_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_rml_DSO_SUBDIRS], [rml], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rml_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([orte], [routed], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_routed_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_routed_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([orte], [routed], [binomial], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [routed], [binomial], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [routed], [binomial], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [routed], [binomial], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [routed], [binomial]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_routed_binomial_DSO], [test "$BUILD_routed_binomial_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_routed_binomial_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_routed_binomial_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_routed_binomial_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_routed_binomial_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([orte], [routed], [direct], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [routed], [direct], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [routed], [direct], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [routed], [direct], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [routed], [direct]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_routed_direct_DSO], [test "$BUILD_routed_direct_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_routed_direct_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_routed_direct_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_routed_direct_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_routed_direct_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([orte], [routed], [linear], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [routed], [linear], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [routed], [linear], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [routed], [linear], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [routed], [linear]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_routed_linear_DSO], [test "$BUILD_routed_linear_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_routed_linear_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_routed_linear_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_routed_linear_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_routed_linear_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_routed_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_routed_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([orte], [routed], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [routed], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [routed], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([orte/mca/routed/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [routed], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [routed], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_routed_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_routed_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_routed_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_routed_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_routed_ALL_SUBDIRS], [routed], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_routed_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_routed_STATIC_SUBDIRS], [routed], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_routed_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_routed_DSO_SUBDIRS], [routed], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_routed_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([orte], [snapc], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_snapc_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_snapc_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_snapc_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([orte], [snapc], [full], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [snapc], [full], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [snapc], [full], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_snapc_full_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [snapc], [full], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [snapc], [full]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_snapc_full_DSO], [test "$BUILD_snapc_full_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_snapc_full_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_snapc_full_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_snapc_full_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_snapc_full_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_snapc_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_snapc_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_snapc_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_snapc_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([orte], [snapc], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([orte], [snapc], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([orte], [snapc], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([orte/mca/snapc/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([orte], [snapc], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([orte], [snapc], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_snapc_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_snapc_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_snapc_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_snapc_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_snapc_ALL_SUBDIRS], [snapc], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_snapc_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_snapc_STATIC_SUBDIRS], [snapc], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_snapc_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_snapc_DSO_SUBDIRS], [snapc], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_snapc_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_orte_FRAMEWORKS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_orte_FRAMEWORKS_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_orte_FRAMEWORK_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_PROJECT([ompi]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([ompi], [allocator], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_allocator_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_allocator_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([ompi], [allocator], [basic], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [allocator], [basic], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [allocator], [basic], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [allocator], [basic], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [allocator], [basic]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_allocator_basic_DSO], [test "$BUILD_allocator_basic_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_allocator_basic_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_allocator_basic_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_allocator_basic_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_allocator_basic_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([ompi], [allocator], [bucket], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [allocator], [bucket], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [allocator], [bucket], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [allocator], [bucket], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [allocator], [bucket]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_allocator_bucket_DSO], [test "$BUILD_allocator_bucket_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_allocator_bucket_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_allocator_bucket_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_allocator_bucket_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_allocator_bucket_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_allocator_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_allocator_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([ompi], [allocator], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [allocator], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [allocator], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([ompi/mca/allocator/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [allocator], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [allocator], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_allocator_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_allocator_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_allocator_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_allocator_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_allocator_ALL_SUBDIRS], [allocator], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_allocator_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_allocator_STATIC_SUBDIRS], [allocator], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_allocator_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_allocator_DSO_SUBDIRS], [allocator], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_allocator_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([ompi], [bml], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_bml_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_bml_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([ompi], [bml], [r2], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [bml], [r2], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [bml], [r2], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [bml], [r2], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [bml], [r2]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_bml_r2_DSO], [test "$BUILD_bml_r2_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_bml_r2_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_bml_r2_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_bml_r2_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_bml_r2_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_bml_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_bml_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([ompi], [bml], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [bml], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [bml], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([ompi/mca/bml/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [bml], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [bml], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_bml_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_bml_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_bml_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_bml_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_bml_ALL_SUBDIRS], [bml], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_bml_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_bml_STATIC_SUBDIRS], [bml], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_bml_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_bml_DSO_SUBDIRS], [bml], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_bml_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([ompi], [btl], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([ompi], [btl], [self], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [btl], [self], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [btl], [self], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [btl], [self], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [btl], [self]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_btl_self_DSO], [test "$BUILD_btl_self_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_self_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_self_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_self_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_self_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([ompi], [btl], [sm], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [btl], [sm], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [btl], [sm], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [btl], [sm], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [btl], [sm]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_btl_sm_DSO], [test "$BUILD_btl_sm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_sm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_sm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_sm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_sm_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([ompi], [btl], [elan], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [btl], [elan], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [btl], [elan], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_btl_elan_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_ELAN([btl_elan], [btl_elan_happy="yes"], [btl_elan_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++ompi/mca/btl/elan/configure.m4:18: OMPI_CHECK_ELAN is expanded from... ++ompi/mca/btl/elan/configure.m4:54: MCA_btl_elan_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++ompi/mca/btl/elan/configure.m4:18: OMPI_CHECK_ELAN is expanded from... ++ompi/mca/btl/elan/configure.m4:54: MCA_btl_elan_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_PACKAGE([btl_elan], [elan/elan.h], [elan], [elan_init], [], [$ompi_check_elan_dir], [$ompi_check_elan_libdir], [ompi_check_elan_happy="yes"], [ompi_check_elan_happy="no"]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_HEADER([btl_elan], [elan/elan.h], [$ompi_check_elan_dir], [_OMPI_CHECK_PACKAGE_LIB([btl_elan], [elan], [elan_init], [], [$ompi_check_elan_dir], [$ompi_check_elan_libdir], ++ [ompi_check_package_happy="yes"], ++ [ompi_check_package_happy="no"])], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++ompi/mca/btl/elan/configure.m4:18: OMPI_CHECK_ELAN is expanded from... ++ompi/mca/btl/elan/configure.m4:54: MCA_btl_elan_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([btl_elan], [elan], [elan_init], [], [$ompi_check_elan_dir], [$ompi_check_elan_libdir], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++ompi/mca/btl/elan/configure.m4:18: OMPI_CHECK_ELAN is expanded from... ++ompi/mca/btl/elan/configure.m4:54: MCA_btl_elan_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++ompi/mca/btl/elan/configure.m4:18: OMPI_CHECK_ELAN is expanded from... ++ompi/mca/btl/elan/configure.m4:54: MCA_btl_elan_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++ompi/mca/btl/elan/configure.m4:18: OMPI_CHECK_ELAN is expanded from... ++ompi/mca/btl/elan/configure.m4:54: MCA_btl_elan_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([btl_elan], [elan], [elan_init], [], [$ompi_check_elan_dir], [$ompi_check_elan_libdir], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++ompi/mca/btl/elan/configure.m4:18: OMPI_CHECK_ELAN is expanded from... ++ompi/mca/btl/elan/configure.m4:54: MCA_btl_elan_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++ompi/mca/btl/elan/configure.m4:18: OMPI_CHECK_ELAN is expanded from... ++ompi/mca/btl/elan/configure.m4:54: MCA_btl_elan_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++ompi/mca/btl/elan/configure.m4:18: OMPI_CHECK_ELAN is expanded from... ++ompi/mca/btl/elan/configure.m4:54: MCA_btl_elan_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_elan_CFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_elan_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_elan_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_elan_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [btl], [elan], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [btl], [elan]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_btl_elan_DSO], [test "$BUILD_btl_elan_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_elan_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_elan_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_elan_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_elan_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([ompi], [btl], [gm], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [btl], [gm], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [btl], [gm], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_btl_gm_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_GM([btl_gm], [btl_gm_happy="yes"], [btl_gm_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_gm.m4:123: OMPI_CHECK_GM is expanded from... ++ompi/mca/btl/gm/configure.m4:24: MCA_btl_gm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_gm.m4:123: OMPI_CHECK_GM is expanded from... ++ompi/mca/btl/gm/configure.m4:24: MCA_btl_gm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_PACKAGE([btl_gm], [gm.h], [gm], [gm_init], [], [$ompi_check_gm_dir], [$ompi_check_gm_libdir], [ompi_check_gm_happy="yes"], [ompi_check_gm_happy="no"]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_HEADER([btl_gm], [gm.h], [$ompi_check_gm_dir], [_OMPI_CHECK_PACKAGE_LIB([btl_gm], [gm], [gm_init], [], [$ompi_check_gm_dir], [$ompi_check_gm_libdir], ++ [ompi_check_package_happy="yes"], ++ [ompi_check_package_happy="no"])], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_gm.m4:123: OMPI_CHECK_GM is expanded from... ++ompi/mca/btl/gm/configure.m4:24: MCA_btl_gm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([btl_gm], [gm], [gm_init], [], [$ompi_check_gm_dir], [$ompi_check_gm_libdir], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_gm.m4:123: OMPI_CHECK_GM is expanded from... ++ompi/mca/btl/gm/configure.m4:24: MCA_btl_gm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_gm.m4:123: OMPI_CHECK_GM is expanded from... ++ompi/mca/btl/gm/configure.m4:24: MCA_btl_gm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_gm.m4:123: OMPI_CHECK_GM is expanded from... ++ompi/mca/btl/gm/configure.m4:24: MCA_btl_gm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([btl_gm], [gm], [gm_init], [], [$ompi_check_gm_dir], [$ompi_check_gm_libdir], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_gm.m4:123: OMPI_CHECK_GM is expanded from... ++ompi/mca/btl/gm/configure.m4:24: MCA_btl_gm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_gm.m4:123: OMPI_CHECK_GM is expanded from... ++ompi/mca/btl/gm/configure.m4:24: MCA_btl_gm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_gm.m4:123: OMPI_CHECK_GM is expanded from... ++ompi/mca/btl/gm/configure.m4:24: MCA_btl_gm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_GM_CONFIG([btl_gm]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++config/ompi_check_gm.m4:21: _OMPI_CHECK_GM_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_gm.m4:123: OMPI_CHECK_GM is expanded from... ++ompi/mca/btl/gm/configure.m4:24: MCA_btl_gm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++config/ompi_check_gm.m4:21: _OMPI_CHECK_GM_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_gm.m4:123: OMPI_CHECK_GM is expanded from... ++ompi/mca/btl/gm/configure.m4:24: MCA_btl_gm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_MCA_BTL_GM_API_VERSION$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_MCA_BTL_GM_HAVE_RDMA_PUT$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_MCA_BTL_GM_HAVE_RDMA_GET$]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++config/ompi_check_gm.m4:21: _OMPI_CHECK_GM_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_gm.m4:123: OMPI_CHECK_GM is expanded from... ++ompi/mca/btl/gm/configure.m4:24: MCA_btl_gm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_MCA_BTL_GM_GET_BROKEN$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_MCA_BTL_GM_SUPPORT_REGISTERING$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_gm_CFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_gm_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_gm_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_gm_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [btl], [gm], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [btl], [gm]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_btl_gm_DSO], [test "$BUILD_btl_gm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_gm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_gm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_gm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_gm_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([ompi], [btl], [mx], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [btl], [mx], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [btl], [mx], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_btl_mx_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_MX([btl_mx], [btl_mx_happy="yes"], [btl_mx_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/btl/mx/configure.m4:24: MCA_btl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/btl/mx/configure.m4:24: MCA_btl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_PACKAGE([btl_mx], [myriexpress.h], [myriexpress], [mx_finalize], [], [$ompi_check_mx_dir], [$ompi_check_mx_libdir], [ompi_check_mx_happy="yes"], [ompi_check_mx_happy="no"]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_HEADER([btl_mx], [myriexpress.h], [$ompi_check_mx_dir], [_OMPI_CHECK_PACKAGE_LIB([btl_mx], [myriexpress], [mx_finalize], [], [$ompi_check_mx_dir], [$ompi_check_mx_libdir], ++ [ompi_check_package_happy="yes"], ++ [ompi_check_package_happy="no"])], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/btl/mx/configure.m4:24: MCA_btl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([btl_mx], [myriexpress], [mx_finalize], [], [$ompi_check_mx_dir], [$ompi_check_mx_libdir], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/btl/mx/configure.m4:24: MCA_btl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/btl/mx/configure.m4:24: MCA_btl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/btl/mx/configure.m4:24: MCA_btl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([btl_mx], [myriexpress], [mx_finalize], [], [$ompi_check_mx_dir], [$ompi_check_mx_libdir], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/btl/mx/configure.m4:24: MCA_btl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/btl/mx/configure.m4:24: MCA_btl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/btl/mx/configure.m4:24: MCA_btl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_MX_MAPPER([]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MX_HAVE_MAPPER_STATE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_mx_CFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_mx_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_mx_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_mx_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [btl], [mx], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [btl], [mx]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_btl_mx_DSO], [test "$BUILD_btl_mx_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_mx_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_mx_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_mx_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_mx_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([ompi], [btl], [ofud], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [btl], [ofud], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [btl], [ofud], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_btl_ofud_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_OPENIB([btl_ofud], [btl_ofud_happy="yes"], [btl_ofud_happy="no"]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_PUSH([btl_ofud_msg]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/ofud/configure.m4:26: MCA_btl_ofud_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/ofud/configure.m4:26: MCA_btl_ofud_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/ofud/configure.m4:26: MCA_btl_ofud_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/ofud/configure.m4:26: MCA_btl_ofud_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/ofud/configure.m4:26: MCA_btl_ofud_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_PACKAGE([btl_ofud], [infiniband/verbs.h], [ibverbs], [ibv_open_device], [], [$ompi_check_openib_dir], [$ompi_check_openib_libdir], [ompi_check_openib_happy="yes"], [ompi_check_openib_happy="no"]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_HEADER([btl_ofud], [infiniband/verbs.h], [$ompi_check_openib_dir], [_OMPI_CHECK_PACKAGE_LIB([btl_ofud], [ibverbs], [ibv_open_device], [], [$ompi_check_openib_dir], [$ompi_check_openib_libdir], ++ [ompi_check_package_happy="yes"], ++ [ompi_check_package_happy="no"])], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/ofud/configure.m4:26: MCA_btl_ofud_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([btl_ofud], [ibverbs], [ibv_open_device], [], [$ompi_check_openib_dir], [$ompi_check_openib_libdir], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/ofud/configure.m4:26: MCA_btl_ofud_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/ofud/configure.m4:26: MCA_btl_ofud_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/ofud/configure.m4:26: MCA_btl_ofud_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([btl_ofud], [ibverbs], [ibv_open_device], [], [$ompi_check_openib_dir], [$ompi_check_openib_libdir], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/ofud/configure.m4:26: MCA_btl_ofud_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/ofud/configure.m4:26: MCA_btl_ofud_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/ofud/configure.m4:26: MCA_btl_ofud_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_IBV_CREATE_CQ_ARGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_STRUCT_IBV_DEVICE_TRANSPORT_TYPE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_HAVE_CONNECTX_XRC$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_HAVE_RDMACM$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_HAVE_IBCM$]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_POP ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_ofud_CFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_ofud_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_ofud_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_ofud_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [btl], [ofud], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [btl], [ofud]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_btl_ofud_DSO], [test "$BUILD_btl_ofud_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_ofud_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_ofud_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_ofud_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_ofud_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([ompi], [btl], [openib], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [btl], [openib], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [btl], [openib], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_btl_openib_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_PUSH([cpcs have_threads]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_OPENIB([btl_openib], [btl_openib_happy="yes"], [btl_openib_happy="no"]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_PUSH([btl_openib_msg]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_PACKAGE([btl_openib], [infiniband/verbs.h], [ibverbs], [ibv_open_device], [], [$ompi_check_openib_dir], [$ompi_check_openib_libdir], [ompi_check_openib_happy="yes"], [ompi_check_openib_happy="no"]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_HEADER([btl_openib], [infiniband/verbs.h], [$ompi_check_openib_dir], [_OMPI_CHECK_PACKAGE_LIB([btl_openib], [ibverbs], [ibv_open_device], [], [$ompi_check_openib_dir], [$ompi_check_openib_libdir], ++ [ompi_check_package_happy="yes"], ++ [ompi_check_package_happy="no"])], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/openib/configure.m4:34: MCA_btl_openib_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([btl_openib], [ibverbs], [ibv_open_device], [], [$ompi_check_openib_dir], [$ompi_check_openib_libdir], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/openib/configure.m4:34: MCA_btl_openib_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/openib/configure.m4:34: MCA_btl_openib_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/openib/configure.m4:34: MCA_btl_openib_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([btl_openib], [ibverbs], [ibv_open_device], [], [$ompi_check_openib_dir], [$ompi_check_openib_libdir], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/openib/configure.m4:34: MCA_btl_openib_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/openib/configure.m4:34: MCA_btl_openib_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/openib/configure.m4:34: MCA_btl_openib_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_IBV_CREATE_CQ_ARGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_STRUCT_IBV_DEVICE_TRANSPORT_TYPE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_HAVE_CONNECTX_XRC$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_HAVE_RDMACM$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_HAVE_IBCM$]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_POP ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_openib_CFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_openib_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_openib_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_openib_LIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_POP ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [btl], [openib], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [btl], [openib]) ++m4trace:configure.ac:1032: -1- MCA_btl_openib_POST_CONFIG([$should_build]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([MCA_btl_openib_have_xrc], [test $should_build -eq 1 -a "x$btl_openib_have_xrc" = "x1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_openib_have_xrc_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_openib_have_xrc_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([MCA_btl_openib_have_xrc_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([MCA_btl_openib_have_xrc_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([MCA_btl_openib_have_rdmacm], [test $should_build -eq 1 -a "x$btl_openib_have_rdmacm" = "x1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_openib_have_rdmacm_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_openib_have_rdmacm_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([MCA_btl_openib_have_rdmacm_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([MCA_btl_openib_have_rdmacm_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([MCA_btl_openib_have_ibcm], [test $should_build -eq 1 -a "x$btl_openib_have_ibcm" = "x1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_openib_have_ibcm_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_openib_have_ibcm_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([MCA_btl_openib_have_ibcm_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([MCA_btl_openib_have_ibcm_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_btl_openib_DSO], [test "$BUILD_btl_openib_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_openib_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_openib_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_openib_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_openib_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([ompi], [btl], [portals], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [btl], [portals], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [btl], [portals], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_btl_portals_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_PORTALS([btl_portals], [btl_portals_happy="yes"], [btl_portals_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_portals.m4:25: OMPI_CHECK_PORTALS is expanded from... ++ompi/mca/btl/portals/configure.m4:24: MCA_btl_portals_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_check_portals.m4:25: OMPI_CHECK_PORTALS is expanded from... ++ompi/mca/btl/portals/configure.m4:24: MCA_btl_portals_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_portals.m4:25: OMPI_CHECK_PORTALS is expanded from... ++ompi/mca/btl/portals/configure.m4:24: MCA_btl_portals_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PORTALS_HAVE_EVENT_UNLINK$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PORTALS_UTCP$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PORTALS_CRAYXT3$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PORTALS_CRAYXT3_MODEX$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_portals_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_portals_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_portals_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [btl], [portals], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [btl], [portals]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_btl_portals_DSO], [test "$BUILD_btl_portals_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_portals_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_portals_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_portals_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_portals_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([ompi], [btl], [tcp], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [btl], [tcp], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [btl], [tcp], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_btl_tcp_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_STRUCT_SOCKADDR_IN$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [btl], [tcp], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [btl], [tcp]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_btl_tcp_DSO], [test "$BUILD_btl_tcp_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_tcp_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_tcp_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_tcp_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_tcp_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([ompi], [btl], [udapl], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [btl], [udapl], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [btl], [udapl], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_btl_udapl_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_UDAPL([btl_udapl], [btl_udapl_happy="yes"], [btl_udapl_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_udapl.m4:27: OMPI_CHECK_UDAPL is expanded from... ++ompi/mca/btl/udapl/configure.m4:24: MCA_btl_udapl_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_udapl.m4:27: OMPI_CHECK_UDAPL is expanded from... ++ompi/mca/btl/udapl/configure.m4:24: MCA_btl_udapl_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_HEADER([btl_udapl], [dat/udat.h], [$ompi_check_udapl_dir], [ompi_check_udapl_happy="yes"], [ompi_check_udapl_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_udapl.m4:27: OMPI_CHECK_UDAPL is expanded from... ++ompi/mca/btl/udapl/configure.m4:24: MCA_btl_udapl_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([btl_udapl], [dat], [dat_registry_list_providers], [], [$ompi_check_udapl_dir], [$ompi_check_udapl_libdir], [ompi_check_udapl_happy="yes"], [_OMPI_CHECK_PACKAGE_LIB([btl_udapl], ++ [dat], ++ [dat_registry_list_providers], ++ [-ldapl], ++ [$ompi_check_udapl_dir], ++ [$ompi_check_udapl_libdir], ++ [ompi_check_udapl_happy="yes"], ++ [ompi_check_udapl_happy="no"])]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_udapl.m4:27: OMPI_CHECK_UDAPL is expanded from... ++ompi/mca/btl/udapl/configure.m4:24: MCA_btl_udapl_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_udapl.m4:27: OMPI_CHECK_UDAPL is expanded from... ++ompi/mca/btl/udapl/configure.m4:24: MCA_btl_udapl_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_udapl.m4:27: OMPI_CHECK_UDAPL is expanded from... ++ompi/mca/btl/udapl/configure.m4:24: MCA_btl_udapl_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([btl_udapl], [dat], [dat_registry_list_providers], [-ldapl], [$ompi_check_udapl_dir], [$ompi_check_udapl_libdir], [ompi_check_udapl_happy="yes"], [ompi_check_udapl_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_udapl.m4:27: OMPI_CHECK_UDAPL is expanded from... ++ompi/mca/btl/udapl/configure.m4:24: MCA_btl_udapl_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_udapl.m4:27: OMPI_CHECK_UDAPL is expanded from... ++ompi/mca/btl/udapl/configure.m4:24: MCA_btl_udapl_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_udapl.m4:27: OMPI_CHECK_UDAPL is expanded from... ++ompi/mca/btl/udapl/configure.m4:24: MCA_btl_udapl_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_udapl_CFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_udapl_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_udapl_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_udapl_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [btl], [udapl], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [btl], [udapl]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_btl_udapl_DSO], [test "$BUILD_btl_udapl_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_udapl_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_udapl_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_udapl_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_udapl_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_btl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([ompi], [btl], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [btl], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [btl], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([ompi/mca/btl/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [btl], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [btl], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_btl_ALL_SUBDIRS], [btl], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_btl_STATIC_SUBDIRS], [btl], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_btl_DSO_SUBDIRS], [btl], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([ompi], [coll], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_coll_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_coll_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([ompi], [coll], [basic], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [coll], [basic], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [coll], [basic], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [coll], [basic], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [coll], [basic]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_coll_basic_DSO], [test "$BUILD_coll_basic_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_coll_basic_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_coll_basic_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_coll_basic_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_coll_basic_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([ompi], [coll], [hierarch], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [coll], [hierarch], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [coll], [hierarch], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [coll], [hierarch], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [coll], [hierarch]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_coll_hierarch_DSO], [test "$BUILD_coll_hierarch_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_coll_hierarch_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_coll_hierarch_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_coll_hierarch_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_coll_hierarch_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([ompi], [coll], [inter], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [coll], [inter], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [coll], [inter], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [coll], [inter], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [coll], [inter]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_coll_inter_DSO], [test "$BUILD_coll_inter_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_coll_inter_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_coll_inter_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_coll_inter_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_coll_inter_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([ompi], [coll], [self], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [coll], [self], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [coll], [self], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [coll], [self], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [coll], [self]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_coll_self_DSO], [test "$BUILD_coll_self_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_coll_self_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_coll_self_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_coll_self_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_coll_self_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([ompi], [coll], [sm], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [coll], [sm], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [coll], [sm], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [coll], [sm], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [coll], [sm]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_coll_sm_DSO], [test "$BUILD_coll_sm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_coll_sm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_coll_sm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_coll_sm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_coll_sm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([ompi], [coll], [tuned], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [coll], [tuned], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [coll], [tuned], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [coll], [tuned], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [coll], [tuned]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_coll_tuned_DSO], [test "$BUILD_coll_tuned_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_coll_tuned_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_coll_tuned_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_coll_tuned_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_coll_tuned_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_coll_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_coll_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([ompi], [coll], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [coll], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [coll], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([ompi/mca/coll/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [coll], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [coll], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_coll_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_coll_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_coll_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_coll_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_coll_ALL_SUBDIRS], [coll], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_coll_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_coll_STATIC_SUBDIRS], [coll], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_coll_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_coll_DSO_SUBDIRS], [coll], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_coll_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([ompi], [common], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_common_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_common_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([ompi], [common], [sm], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [common], [sm], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [common], [sm], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [common], [sm], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [common], [sm]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_common_sm_DSO], [test "$BUILD_common_sm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_common_sm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_common_sm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_common_sm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_common_sm_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_common_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([ompi], [common], [mx], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [common], [mx], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [common], [mx], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_common_mx_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_MX([common_mx], [common_mx_happy="yes"], [common_mx_happy="no"]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_PACKAGE([common_mx], [myriexpress.h], [myriexpress], [mx_finalize], [], [$ompi_check_mx_dir], [$ompi_check_mx_libdir], [ompi_check_mx_happy="yes"], [ompi_check_mx_happy="no"]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_HEADER([common_mx], [myriexpress.h], [$ompi_check_mx_dir], [_OMPI_CHECK_PACKAGE_LIB([common_mx], [myriexpress], [mx_finalize], [], [$ompi_check_mx_dir], [$ompi_check_mx_libdir], ++ [ompi_check_package_happy="yes"], ++ [ompi_check_package_happy="no"])], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/common/mx/configure.m4:24: MCA_common_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([common_mx], [myriexpress], [mx_finalize], [], [$ompi_check_mx_dir], [$ompi_check_mx_libdir], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/common/mx/configure.m4:24: MCA_common_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/common/mx/configure.m4:24: MCA_common_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/common/mx/configure.m4:24: MCA_common_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([common_mx], [myriexpress], [mx_finalize], [], [$ompi_check_mx_dir], [$ompi_check_mx_libdir], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/common/mx/configure.m4:24: MCA_common_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/common/mx/configure.m4:24: MCA_common_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/common/mx/configure.m4:24: MCA_common_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_MX_MAPPER([]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MX_HAVE_MAPPER_STATE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^common_mx_CFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^common_mx_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^common_mx_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^common_mx_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [common], [mx], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [common], [mx]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_common_mx_DSO], [test "$BUILD_common_mx_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_common_mx_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_common_mx_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_common_mx_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_common_mx_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_common_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_common_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_common_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([ompi], [common], [portals], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [common], [portals], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [common], [portals], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_common_portals_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_PORTALS([common_portals], [common_portals_happy="yes"], [common_portals_happy="no"]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_check_portals.m4:25: OMPI_CHECK_PORTALS is expanded from... ++ompi/mca/common/portals/configure.m4:24: MCA_common_portals_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PORTALS_HAVE_EVENT_UNLINK$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PORTALS_UTCP$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PORTALS_CRAYXT3$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PORTALS_CRAYXT3_MODEX$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^common_portals_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^common_portals_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^common_portals_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [common], [portals], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [common], [portals]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_common_portals_DSO], [test "$BUILD_common_portals_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_common_portals_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_common_portals_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_common_portals_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_common_portals_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_common_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_common_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_common_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_common_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([ompi], [common], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [common], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [common], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([ompi/mca/common/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [common], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [common], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_common_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_common_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_common_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_common_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_common_ALL_SUBDIRS], [common], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_common_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_common_STATIC_SUBDIRS], [common], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_common_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_common_DSO_SUBDIRS], [common], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_common_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([ompi], [crcp], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_crcp_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_crcp_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_crcp_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([ompi], [crcp], [bkmrk], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [crcp], [bkmrk], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [crcp], [bkmrk], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_crcp_bkmrk_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [crcp], [bkmrk], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [crcp], [bkmrk]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_crcp_bkmrk_DSO], [test "$BUILD_crcp_bkmrk_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_crcp_bkmrk_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_crcp_bkmrk_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_crcp_bkmrk_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_crcp_bkmrk_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_crcp_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_crcp_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_crcp_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_crcp_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([ompi], [crcp], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [crcp], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [crcp], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([ompi/mca/crcp/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [crcp], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [crcp], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crcp_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crcp_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crcp_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crcp_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_crcp_ALL_SUBDIRS], [crcp], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crcp_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_crcp_STATIC_SUBDIRS], [crcp], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crcp_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_crcp_DSO_SUBDIRS], [crcp], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crcp_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([ompi], [dpm], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_dpm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_dpm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([ompi], [dpm], [orte], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [dpm], [orte], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [dpm], [orte], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [dpm], [orte], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [dpm], [orte]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_dpm_orte_DSO], [test "$BUILD_dpm_orte_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_dpm_orte_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_dpm_orte_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_dpm_orte_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_dpm_orte_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_dpm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_dpm_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([ompi], [dpm], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [dpm], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [dpm], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([ompi/mca/dpm/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [dpm], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [dpm], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_dpm_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_dpm_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_dpm_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_dpm_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_dpm_ALL_SUBDIRS], [dpm], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_dpm_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_dpm_STATIC_SUBDIRS], [dpm], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_dpm_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_dpm_DSO_SUBDIRS], [dpm], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_dpm_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_io_CONFIG([ompi], [io]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++ompi/mca/io/configure.m4:14: MCA_io_CONFIG is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([ompi], [io], [$define_mpi_io]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_io_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_io_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_io_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([ompi], [io], [romio], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [io], [romio], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [io], [romio], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_io_romio_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_PUSH([io_romio_flags io_romio_flags_define io_romio_happy io_romio_save_LIBS]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++ompi/mca/io/romio/configure.m4:31: MCA_io_romio_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++ompi/mca/io/configure.m4:14: MCA_io_CONFIG is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++ompi/mca/io/romio/configure.m4:31: MCA_io_romio_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++ompi/mca/io/configure.m4:14: MCA_io_CONFIG is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_io_romio_USER_CONFIGURE_FLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_io_romio_COMPLETE_CONFIGURE_FLAGS$]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([ompi/mca/io/romio/romio], [$io_romio_flags], [io_romio_happy=1], [io_romio_happy=0]) ++m4trace:configure.ac:1032: -1- OMPI_VAR_SCOPE_POP ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [io], [romio], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [io], [romio]) ++m4trace:configure.ac:1032: -1- MCA_io_romio_POST_CONFIG([$should_build]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([MCA_io_romio_SHOULD_BUILD], [test $should_build -eq 1]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_io_romio_SHOULD_BUILD_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_io_romio_SHOULD_BUILD_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([MCA_io_romio_SHOULD_BUILD_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([MCA_io_romio_SHOULD_BUILD_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_io_romio_DSO], [test "$BUILD_io_romio_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_io_romio_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_io_romio_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_io_romio_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_io_romio_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_io_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_io_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_io_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_io_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([ompi], [io], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [io], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [io], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([ompi/mca/io/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [io], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [io], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_io_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_io_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_io_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_io_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_io_ALL_SUBDIRS], [io], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_io_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_io_STATIC_SUBDIRS], [io], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_io_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_io_DSO_SUBDIRS], [io], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_io_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PROVIDE_MPI_FILE_INTERFACE$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_PROVIDE_MPI_FILE_INTERFACE], [test "$define_mpi_io" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PROVIDE_MPI_FILE_INTERFACE_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_PROVIDE_MPI_FILE_INTERFACE_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_MPIF_MPI_IO_INCLUDE$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([ompi], [mpool], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_mpool_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_mpool_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([ompi], [mpool], [fake], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [mpool], [fake], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [mpool], [fake], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [mpool], [fake], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [mpool], [fake]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_mpool_fake_DSO], [test "$BUILD_mpool_fake_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_mpool_fake_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_mpool_fake_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_mpool_fake_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_mpool_fake_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([ompi], [mpool], [rdma], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [mpool], [rdma], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [mpool], [rdma], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [mpool], [rdma], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [mpool], [rdma]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_mpool_rdma_DSO], [test "$BUILD_mpool_rdma_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_mpool_rdma_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_mpool_rdma_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_mpool_rdma_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_mpool_rdma_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([ompi], [mpool], [sm], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [mpool], [sm], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [mpool], [sm], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [mpool], [sm], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [mpool], [sm]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_mpool_sm_DSO], [test "$BUILD_mpool_sm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_mpool_sm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_mpool_sm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_mpool_sm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_mpool_sm_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_mpool_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_mpool_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([ompi], [mpool], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [mpool], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [mpool], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([ompi/mca/mpool/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [mpool], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [mpool], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mpool_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mpool_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mpool_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mpool_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_mpool_ALL_SUBDIRS], [mpool], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mpool_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_mpool_STATIC_SUBDIRS], [mpool], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mpool_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_mpool_DSO_SUBDIRS], [mpool], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mpool_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([ompi], [mtl], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_mtl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_mtl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_mtl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([ompi], [mtl], [mx], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [mtl], [mx], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [mtl], [mx], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_mtl_mx_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_MX([mtl_mx], [mtl_mx_happy="yes"], [mtl_mx_happy="no"]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_PACKAGE([mtl_mx], [myriexpress.h], [myriexpress], [mx_finalize], [], [$ompi_check_mx_dir], [$ompi_check_mx_libdir], [ompi_check_mx_happy="yes"], [ompi_check_mx_happy="no"]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_HEADER([mtl_mx], [myriexpress.h], [$ompi_check_mx_dir], [_OMPI_CHECK_PACKAGE_LIB([mtl_mx], [myriexpress], [mx_finalize], [], [$ompi_check_mx_dir], [$ompi_check_mx_libdir], ++ [ompi_check_package_happy="yes"], ++ [ompi_check_package_happy="no"])], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/mtl/mx/configure.m4:24: MCA_mtl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([mtl_mx], [myriexpress], [mx_finalize], [], [$ompi_check_mx_dir], [$ompi_check_mx_libdir], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/mtl/mx/configure.m4:24: MCA_mtl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/mtl/mx/configure.m4:24: MCA_mtl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/mtl/mx/configure.m4:24: MCA_mtl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([mtl_mx], [myriexpress], [mx_finalize], [], [$ompi_check_mx_dir], [$ompi_check_mx_libdir], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/mtl/mx/configure.m4:24: MCA_mtl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/mtl/mx/configure.m4:24: MCA_mtl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/mtl/mx/configure.m4:24: MCA_mtl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_MX_MAPPER([]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MX_HAVE_MAPPER_STATE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^mtl_mx_CFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^mtl_mx_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^mtl_mx_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^mtl_mx_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [mtl], [mx], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [mtl], [mx]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_mtl_mx_DSO], [test "$BUILD_mtl_mx_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_mtl_mx_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_mtl_mx_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_mtl_mx_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_mtl_mx_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_mtl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_mtl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_mtl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([ompi], [mtl], [portals], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [mtl], [portals], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [mtl], [portals], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_mtl_portals_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_PORTALS([mtl_portals], [mtl_portals_happy="yes"], [mtl_portals_happy="no"]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_check_portals.m4:25: OMPI_CHECK_PORTALS is expanded from... ++ompi/mca/mtl/portals/configure.m4:43: MCA_mtl_portals_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PORTALS_HAVE_EVENT_UNLINK$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PORTALS_UTCP$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PORTALS_CRAYXT3$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PORTALS_CRAYXT3_MODEX$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^mtl_portals_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^mtl_portals_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^mtl_portals_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [mtl], [portals], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [mtl], [portals]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_mtl_portals_DSO], [test "$BUILD_mtl_portals_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_mtl_portals_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_mtl_portals_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_mtl_portals_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_mtl_portals_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_mtl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_mtl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_mtl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([ompi], [mtl], [psm], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [mtl], [psm], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [mtl], [psm], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_mtl_psm_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_PSM([mtl_psm], [mtl_psm_happy="yes"], [mtl_psm_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_psm.m4:27: OMPI_CHECK_PSM is expanded from... ++ompi/mca/mtl/psm/configure.m4:24: MCA_mtl_psm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_psm.m4:27: OMPI_CHECK_PSM is expanded from... ++ompi/mca/mtl/psm/configure.m4:24: MCA_mtl_psm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- OMPI_CHECK_PACKAGE([mtl_psm], [psm.h], [psm_infinipath], [psm_finalize], [], [$ompi_check_psm_dir], [$ompi_check_psm_libdir], [ompi_check_psm_happy="yes"], [ompi_check_psm_happy="no"]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_HEADER([mtl_psm], [psm.h], [$ompi_check_psm_dir], [_OMPI_CHECK_PACKAGE_LIB([mtl_psm], [psm_infinipath], [psm_finalize], [], [$ompi_check_psm_dir], [$ompi_check_psm_libdir], ++ [ompi_check_package_happy="yes"], ++ [ompi_check_package_happy="no"])], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_psm.m4:27: OMPI_CHECK_PSM is expanded from... ++ompi/mca/mtl/psm/configure.m4:24: MCA_mtl_psm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([mtl_psm], [psm_infinipath], [psm_finalize], [], [$ompi_check_psm_dir], [$ompi_check_psm_libdir], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_psm.m4:27: OMPI_CHECK_PSM is expanded from... ++ompi/mca/mtl/psm/configure.m4:24: MCA_mtl_psm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_psm.m4:27: OMPI_CHECK_PSM is expanded from... ++ompi/mca/mtl/psm/configure.m4:24: MCA_mtl_psm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_psm.m4:27: OMPI_CHECK_PSM is expanded from... ++ompi/mca/mtl/psm/configure.m4:24: MCA_mtl_psm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _OMPI_CHECK_PACKAGE_LIB([mtl_psm], [psm_infinipath], [psm_finalize], [], [$ompi_check_psm_dir], [$ompi_check_psm_libdir], [ompi_check_package_happy="yes"], [ompi_check_package_happy="no"]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_psm.m4:27: OMPI_CHECK_PSM is expanded from... ++ompi/mca/mtl/psm/configure.m4:24: MCA_mtl_psm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_psm.m4:27: OMPI_CHECK_PSM is expanded from... ++ompi/mca/mtl/psm/configure.m4:24: MCA_mtl_psm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_psm.m4:27: OMPI_CHECK_PSM is expanded from... ++ompi/mca/mtl/psm/configure.m4:24: MCA_mtl_psm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^mtl_psm_CFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^mtl_psm_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^mtl_psm_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^mtl_psm_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [mtl], [psm], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [mtl], [psm]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_mtl_psm_DSO], [test "$BUILD_mtl_psm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_mtl_psm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_mtl_psm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_mtl_psm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_mtl_psm_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_mtl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_mtl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_mtl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_mtl_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([ompi], [mtl], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [mtl], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [mtl], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([ompi/mca/mtl/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [mtl], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [mtl], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mtl_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mtl_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mtl_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mtl_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_mtl_ALL_SUBDIRS], [mtl], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mtl_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_mtl_STATIC_SUBDIRS], [mtl], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mtl_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_mtl_DSO_SUBDIRS], [mtl], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mtl_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([ompi], [osc], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_osc_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_osc_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([ompi], [osc], [pt2pt], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [osc], [pt2pt], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [osc], [pt2pt], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [osc], [pt2pt], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [osc], [pt2pt]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_osc_pt2pt_DSO], [test "$BUILD_osc_pt2pt_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_osc_pt2pt_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_osc_pt2pt_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_osc_pt2pt_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_osc_pt2pt_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([ompi], [osc], [rdma], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [osc], [rdma], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [osc], [rdma], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [osc], [rdma], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [osc], [rdma]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_osc_rdma_DSO], [test "$BUILD_osc_rdma_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_osc_rdma_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_osc_rdma_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_osc_rdma_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_osc_rdma_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_osc_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_osc_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([ompi], [osc], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [osc], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [osc], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([ompi/mca/osc/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [osc], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [osc], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_osc_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_osc_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_osc_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_osc_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_osc_ALL_SUBDIRS], [osc], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_osc_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_osc_STATIC_SUBDIRS], [osc], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_osc_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_osc_DSO_SUBDIRS], [osc], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_osc_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([ompi], [pml], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_pml_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_pml_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([ompi], [pml], [cm], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [pml], [cm], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [pml], [cm], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [pml], [cm], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [pml], [cm]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_pml_cm_DSO], [test "$BUILD_pml_cm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_pml_cm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_pml_cm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_pml_cm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_pml_cm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([ompi], [pml], [ob1], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [pml], [ob1], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [pml], [ob1], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [pml], [ob1], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [pml], [ob1]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_pml_ob1_DSO], [test "$BUILD_pml_ob1_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_pml_ob1_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_pml_ob1_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_pml_ob1_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_pml_ob1_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_pml_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([ompi], [pml], [crcpw], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [pml], [crcpw], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [pml], [crcpw], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_pml_crcpw_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [pml], [crcpw], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [pml], [crcpw]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_pml_crcpw_DSO], [test "$BUILD_pml_crcpw_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_pml_crcpw_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_pml_crcpw_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_pml_crcpw_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_pml_crcpw_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_pml_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_pml_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_pml_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_M4_CONFIG_COMPONENT([ompi], [pml], [v], [all_components], [static_components], [dso_components], [static_ltlibs], [$components_looking_for_succeed], [components_last_result=1], [components_last_result=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [pml], [v], [should_build=$components_looking_for_succeed], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [pml], [v], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_pml_v_CONFIG([should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([$vprotocol_parent_component], [vprotocol], [$should_build]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_pml_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_pml_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([$vprotocol_parent_component], [vprotocol], [pessimist], [all_components], [static_components], [dso_components], [static_ltlibs], [$should_build]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([$vprotocol_parent_component], [vprotocol], [pessimist], [should_build=$should_build], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([$vprotocol_parent_component], [vprotocol], [pessimist], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([$vprotocol_parent_component], [vprotocol], [pessimist], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([$vprotocol_parent_component], [vprotocol], [pessimist]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_vprotocol_pessimist_DSO], [test "$BUILD_vprotocol_pessimist_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_vprotocol_pessimist_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_vprotocol_pessimist_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_vprotocol_pessimist_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_vprotocol_pessimist_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_pml_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_pml_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([$vprotocol_parent_component], [vprotocol], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([$vprotocol_parent_component], [vprotocol], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([$vprotocol_parent_component], [vprotocol], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([$vprotocol_parent_component/mca/vprotocol/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([$vprotocol_parent_component], [vprotocol], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([$vprotocol_parent_component], [vprotocol], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_vprotocol_ALL_SUBDIRS], [vprotocol], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_vprotocol_STATIC_SUBDIRS], [vprotocol], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_vprotocol_DSO_SUBDIRS], [vprotocol], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_vprotocol_pessimist_DSO], [test "\$BUILD_vprotocol_pessimist_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_vprotocol_pessimist_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_vprotocol_pessimist_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_vprotocol_pessimist_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_vprotocol_pessimist_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [pml], [v], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [pml], [v]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_pml_v_DSO], [test "$BUILD_pml_v_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_pml_v_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_pml_v_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_pml_v_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_pml_v_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_pml_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_pml_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_pml_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_pml_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([ompi], [pml], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [pml], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [pml], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([ompi/mca/pml/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [pml], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [pml], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pml_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pml_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pml_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pml_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_pml_ALL_SUBDIRS], [pml], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pml_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_pml_STATIC_SUBDIRS], [pml], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pml_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_pml_DSO_SUBDIRS], [pml], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pml_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([ompi], [pubsub], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_pubsub_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_pubsub_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([ompi], [pubsub], [orte], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [pubsub], [orte], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [pubsub], [orte], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [pubsub], [orte], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [pubsub], [orte]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_pubsub_orte_DSO], [test "$BUILD_pubsub_orte_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_pubsub_orte_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_pubsub_orte_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_pubsub_orte_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_pubsub_orte_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_pubsub_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_pubsub_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([ompi], [pubsub], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [pubsub], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [pubsub], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([ompi/mca/pubsub/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [pubsub], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [pubsub], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pubsub_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pubsub_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pubsub_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pubsub_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_pubsub_ALL_SUBDIRS], [pubsub], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pubsub_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_pubsub_STATIC_SUBDIRS], [pubsub], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pubsub_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_pubsub_DSO_SUBDIRS], [pubsub], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pubsub_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([ompi], [rcache], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_rcache_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_rcache_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([ompi], [rcache], [vma], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [rcache], [vma], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [rcache], [vma], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [rcache], [vma], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [rcache], [vma]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_rcache_vma_DSO], [test "$BUILD_rcache_vma_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_rcache_vma_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_rcache_vma_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_rcache_vma_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_rcache_vma_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_rcache_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_rcache_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([ompi], [rcache], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [rcache], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [rcache], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([ompi/mca/rcache/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [rcache], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [rcache], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rcache_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rcache_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rcache_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rcache_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_rcache_ALL_SUBDIRS], [rcache], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rcache_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_rcache_STATIC_SUBDIRS], [rcache], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rcache_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_rcache_DSO_SUBDIRS], [rcache], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rcache_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_FRAMEWORK([ompi], [topo], [1]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_topo_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_topo_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_NO_CONFIG_COMPONENT([ompi], [topo], [unity], [all_components], [static_components], [dso_components], [static_ltlibs], [1]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [topo], [unity], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [topo], [unity], [compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [topo], [unity], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [topo], [unity]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_topo_unity_DSO], [test "$BUILD_topo_unity_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_topo_unity_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_topo_unity_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_topo_unity_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_topo_unity_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_topo_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -2- OMPI_EVAL_ARG([MCA_topo_CONFIGURE_MODE]) ++m4trace:configure.ac:1032: -1- MCA_CONFIGURE_ALL_CONFIG_COMPONENTS([ompi], [topo], [all_components], [static_components], [dso_components], [static_ltlibs]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_BUILD_CHECK([ompi], [topo], [$component], [should_build=1], [should_build=0]) ++m4trace:configure.ac:1032: -1- MCA_COMPONENT_COMPILE_MODE([ompi], [topo], [$component], [compile_mode]) ++m4trace:configure.ac:1032: -1- OMPI_CONFIG_SUBDIR([ompi/mca/topo/$component], [$ompi_subdir_args], [should_build=1], [should_build=2]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_COMPONENT([ompi], [topo], [$component], [all_components], [static_components], [dso_components], [static_ltlibs], [$compile_mode]) ++m4trace:configure.ac:1032: -1- MCA_PROCESS_DEAD_COMPONENT([ompi], [topo], [$component]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_topo_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_topo_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_topo_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_topo_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_topo_ALL_SUBDIRS], [topo], [$all_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_topo_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_topo_STATIC_SUBDIRS], [topo], [$static_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_topo_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- OMPI_MCA_MAKE_DIR_LIST([MCA_topo_DSO_SUBDIRS], [topo], [$dso_components]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_topo_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ompi_FRAMEWORKS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ompi_FRAMEWORKS_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ompi_FRAMEWORK_LIBS$]) ++m4trace:configure.ac:1032: -1- MCA_SETUP_DIRECT_CALL([pml], [ompi]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pml_DIRECT_CALL_HEADER$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pml_DIRECT_CALL$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pml_DIRECT_CALL_COMPONENT$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pml_DIRECT_CALL_HEADER$]) ++m4trace:configure.ac:1032: -1- MCA_SETUP_DIRECT_CALL([mtl], [ompi]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mtl_DIRECT_CALL_HEADER$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mtl_DIRECT_CALL$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mtl_DIRECT_CALL_COMPONENT$]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mtl_DIRECT_CALL_HEADER$]) ++m4trace:configure.ac:1032: -1- MCA_NO_CONFIG_CONFIG_FILES([]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_PROJECT_SUBDIRS$]) ++m4trace:configure.ac:1046: -1- OMPI_CHECK_VISIBILITY ++m4trace:configure.ac:1046: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_check_visibility.m4:24: OMPI_CHECK_VISIBILITY is expanded from... ++configure.ac:1046: the top level]) ++m4trace:configure.ac:1046: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_check_visibility.m4:24: OMPI_CHECK_VISIBILITY is expanded from... ++configure.ac:1046: the top level]) ++m4trace:configure.ac:1046: -1- m4_pattern_allow([^OMPI_C_HAVE_VISIBILITY$]) ++m4trace:configure.ac:1054: -1- OMPI_CONTRIB ++m4trace:configure.ac:1054: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_contrib.m4:34: OMPI_CONTRIB is expanded from... ++configure.ac:1054: the top level]) ++m4trace:configure.ac:1054: -1- m4_include([ompi/contrib/vt/configure.m4]) ++m4trace:ompi/contrib/vt/configure.m4:24: -1- AC_DEFUN([OMPI_contrib_vt_CONFIG], [ ++ contrib_vt_args="--disable-option-checking 'MPICC=$CC' --with-openmpi '--with-mpi-inc-dir=$top_ompi_builddir/ompi/include' --with-mpi-status-size=5 --disable-config-titles --disable-config-summary" ++ ++ contrib_vt_skip=no ++ eval "set x $ac_configure_args"; shift ++ for contrib_vt_arg ++ do ++ if test "$contrib_vt_skip" = "yes"; then ++ contrib_vt_skip=no ++ else ++ case $contrib_vt_arg in ++ -with-contrib-vt-flags | --with-contrib-vt-flags) ++ contrib_vt_skip=yes ++ ;; ++ -with-contrib-vt-flags=* | --with-contrib-vt-flags=*) ++ ;; ++ -with-platform | --with-platform) ++ contrib_vt_skip=yes ++ ;; ++ -with-platform=* | --with-platform=*) ++ ;; ++ *) ++ case $contrib_vt_arg in ++ *\'*) contrib_vt_arg=`echo "$contrib_vt_arg" | sed "s/'/'\\\\\\\\''/g"` ;; ++ esac ++ contrib_vt_args="$contrib_vt_args '$contrib_vt_arg'" ++ ;; ++ esac ++ fi ++ done ++ ++ AC_ARG_WITH([contrib-vt-flags], ++ [AC_HELP_STRING([--with-contrib-vt-flags=FLAGS], ++ [Pass FLAGS to the VampirTrace distribution configuration script])]) ++ AS_IF([test "$with_contrib_vt_flags" != "yes" -a "$with_contrib_vt_flags" != "no"], ++ [contrib_vt_args="$contrib_vt_args $with_contrib_vt_flags"]) ++ ++ # Run VampirTrace's configure and see if it succeeded ++ OMPI_CONFIG_SUBDIR([ompi/contrib/vt/vt], ++ [$contrib_vt_args], ++ [contrib_vt_happy=1], [contrib_vt_happy=0]) ++ ++ # If VampirTrace configured itself successfully, setup OMPI-specific ++ # VampirTrace glue code to build. ++ AS_IF([test "$contrib_vt_happy" = "1"], ++ [$1 ++ AC_CONFIG_FILES([ ++ ompi/contrib/vt/Makefile ++ ompi/contrib/vt/wrappers/Makefile ++ ompi/contrib/vt/wrappers/mpicc-vt-wrapper-data.txt ++ ompi/contrib/vt/wrappers/mpic++-vt-wrapper-data.txt ++ ompi/contrib/vt/wrappers/mpif77-vt-wrapper-data.txt ++ ompi/contrib/vt/wrappers/mpif90-vt-wrapper-data.txt ++ ])], ++ [$2]) ++]) ++m4trace:configure.ac:1054: -1- _OMPI_CONTRIB_CONFIGURE([vt]) ++m4trace:configure.ac:1054: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++ompi/contrib/vt/configure.m4:24: OMPI_contrib_vt_CONFIG is expanded from... ++config/ompi_contrib.m4:98: _OMPI_CONTRIB_CONFIGURE is expanded from... ++config/ompi_contrib.m4:34: OMPI_CONTRIB is expanded from... ++configure.ac:1054: the top level]) ++m4trace:configure.ac:1054: -1- OMPI_CONFIG_SUBDIR([ompi/contrib/vt/vt], [$contrib_vt_args], [contrib_vt_happy=1], [contrib_vt_happy=0]) ++m4trace:configure.ac:1054: -1- m4_pattern_allow([^OMPI_ENABLE_CONTRIB_vt$]) ++m4trace:configure.ac:1054: -1- m4_pattern_allow([^OMPI_CONTRIB_SUBDIRS$]) ++m4trace:configure.ac:1054: -1- m4_pattern_allow([^OMPI_CONTRIB_DIST_SUBDIRS$]) ++m4trace:configure.ac:1073: -1- OMPI_SETUP_LIBEVENT ++m4trace:configure.ac:1073: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_setup_libevent.m4:20: OMPI_SETUP_LIBEVENT is expanded from... ++configure.ac:1073: the top level]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^STDC_HEADERS$]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^HAVE_TAILQFOREACH$]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^HAVE_TIMERADD$]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^TIME_WITH_SYS_TIME$]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^HAVE_SETFD$]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^HAVE_WORKING_POLL$]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^HAVE_RTSIG$]) ++m4trace:configure.ac:1073: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++config/ompi_setup_libevent.m4:20: OMPI_SETUP_LIBEVENT is expanded from... ++configure.ac:1073: the top level]) ++m4trace:configure.ac:1073: -1- _m4_warn([cross], [AC_RUN_IFELSE called without default to allow cross compiling], [../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++config/ompi_setup_libevent.m4:20: OMPI_SETUP_LIBEVENT is expanded from... ++configure.ac:1073: the top level]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^HAVE_WORKING_RTSIG$]) ++m4trace:configure.ac:1073: -1- _m4_warn([cross], [AC_RUN_IFELSE called without default to allow cross compiling], [../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++config/ompi_setup_libevent.m4:20: OMPI_SETUP_LIBEVENT is expanded from... ++configure.ac:1073: the top level]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^HAVE_EPOLL$]) ++m4trace:configure.ac:1073: -1- _m4_warn([cross], [AC_RUN_IFELSE called without default to allow cross compiling], [../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++config/ompi_setup_libevent.m4:20: OMPI_SETUP_LIBEVENT is expanded from... ++configure.ac:1073: the top level]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^HAVE_EPOLL$]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^HAVE_DEVPOLL$]) ++m4trace:configure.ac:1073: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++config/ompi_setup_libevent.m4:20: OMPI_SETUP_LIBEVENT is expanded from... ++configure.ac:1073: the top level]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^HAVE_WORKING_KQUEUE$]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^HAVE_EVENT_PORTS$]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^pid_t$]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^size_t$]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^u_int64_t$]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^u_int32_t$]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^u_int16_t$]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^u_int8_t$]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^OMPI_LIBEVENT_SOURCES$]) ++m4trace:configure.ac:1093: -1- LT_CONFIG_LTDL_DIR([opal/libltdl], [subproject]) ++m4trace:configure.ac:1093: -1- LTDL_CONVENIENCE ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LIBLTDL$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LTDLDEPS$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LTDLINCL$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^INCLTDL$]) ++m4trace:configure.ac:1093: -1- LT_INIT([dlopen win32-dll]) ++m4trace:configure.ac:1093: -1- m4_pattern_forbid([^_?LT_[A-Z_]+$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$]) ++m4trace:configure.ac:1093: -1- LTOPTIONS_VERSION ++m4trace:configure.ac:1093: -1- LTSUGAR_VERSION ++m4trace:configure.ac:1093: -1- LTVERSION_VERSION ++m4trace:configure.ac:1093: -1- LTOBSOLETE_VERSION ++m4trace:configure.ac:1093: -1- _LT_PROG_LTMAIN ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^AS$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^DLLTOOL$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^OBJDUMP$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LIBTOOL$]) ++m4trace:configure.ac:1093: -1- LT_PATH_LD ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^SED$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^SED$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^GREP$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LD$]) ++m4trace:configure.ac:1093: -1- LT_CMD_MAX_LEN ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^OBJDUMP$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^OBJDUMP$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^AR$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^STRIP$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^RANLIB$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([LT_OBJDIR]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LT_OBJDIR$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^lt_ECHO$]) ++m4trace:configure.ac:1093: -1- _LT_CC_BASENAME([$compiler]) ++m4trace:configure.ac:1093: -1- _LT_PATH_TOOL_PREFIX([${ac_tool_prefix}file], [/usr/bin$PATH_SEPARATOR$PATH]) ++m4trace:configure.ac:1093: -1- _LT_PATH_TOOL_PREFIX([file], [/usr/bin$PATH_SEPARATOR$PATH]) ++m4trace:configure.ac:1093: -1- LT_SUPPORTED_TAG([CC]) ++m4trace:configure.ac:1093: -1- _LT_COMPILER_BOILERPLATE ++m4trace:configure.ac:1093: -1- _LT_LINKER_BOILERPLATE ++m4trace:configure.ac:1093: -1- _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], [lt_cv_prog_compiler_rtti_exceptions], [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, )="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, ) -fno-rtti -fno-exceptions"]) ++m4trace:configure.ac:1093: -1- _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, ) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, )], [$_LT_TAGVAR(lt_prog_compiler_pic, )@&t@m4_if([],[],[ -DPIC],[m4_if([],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, ) in ++ "" | " "*) ;; ++ *) _LT_TAGVAR(lt_prog_compiler_pic, )=" $_LT_TAGVAR(lt_prog_compiler_pic, )" ;; ++ esac], [_LT_TAGVAR(lt_prog_compiler_pic, )= ++ _LT_TAGVAR(lt_prog_compiler_can_build_shared, )=no]) ++m4trace:configure.ac:1093: -1- _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], [lt_cv_prog_compiler_static_works], [$lt_tmp_static_flag], [], [_LT_TAGVAR(lt_prog_compiler_static, )=]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^DSYMUTIL$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^NMEDIT$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LIPO$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^OTOOL$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^OTOOL64$]) ++m4trace:configure.ac:1093: -1- LT_SYS_DLOPEN_SELF ++m4trace:configure.ac:1093: -1- LT_LANG([CXX]) ++m4trace:configure.ac:1093: -1- LT_SUPPORTED_TAG([CXX]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^CXX$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^CXXFLAGS$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LDFLAGS$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LIBS$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^CPPFLAGS$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^CXX$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^ac_ct_CXX$]) ++m4trace:configure.ac:1093: -1- _AM_DEPENDENCIES([CXX]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^CXXDEPMODE$]) ++m4trace:configure.ac:1093: -1- AM_CONDITIONAL([am__fastdepCXX], [ ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^am__fastdepCXX_TRUE$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^am__fastdepCXX_FALSE$]) ++m4trace:configure.ac:1093: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_TRUE]) ++m4trace:configure.ac:1093: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_FALSE]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^CXXCPP$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^CPPFLAGS$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^CXXCPP$]) ++m4trace:configure.ac:1093: -1- _LT_COMPILER_BOILERPLATE ++m4trace:configure.ac:1093: -1- _LT_LINKER_BOILERPLATE ++m4trace:configure.ac:1093: -1- _LT_CC_BASENAME([$compiler]) ++m4trace:configure.ac:1093: -1- LT_PATH_LD ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LD$]) ++m4trace:configure.ac:1093: -1- _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, CXX) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, CXX)], [$_LT_TAGVAR(lt_prog_compiler_pic, CXX)@&t@m4_if([CXX],[],[ -DPIC],[m4_if([CXX],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, CXX) in ++ "" | " "*) ;; ++ *) _LT_TAGVAR(lt_prog_compiler_pic, CXX)=" $_LT_TAGVAR(lt_prog_compiler_pic, CXX)" ;; ++ esac], [_LT_TAGVAR(lt_prog_compiler_pic, CXX)= ++ _LT_TAGVAR(lt_prog_compiler_can_build_shared, CXX)=no]) ++m4trace:configure.ac:1093: -1- _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], [lt_cv_prog_compiler_static_works_CXX], [$lt_tmp_static_flag], [], [_LT_TAGVAR(lt_prog_compiler_static, CXX)=]) ++m4trace:configure.ac:1093: -1- LT_LANG([F77]) ++m4trace:configure.ac:1093: -1- LT_SUPPORTED_TAG([F77]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^F77$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^FFLAGS$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LDFLAGS$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LIBS$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^F77$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^ac_ct_F77$]) ++m4trace:configure.ac:1093: -1- _LT_COMPILER_BOILERPLATE ++m4trace:configure.ac:1093: -1- _LT_LINKER_BOILERPLATE ++m4trace:configure.ac:1093: -1- _LT_CC_BASENAME([$compiler]) ++m4trace:configure.ac:1093: -1- _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, F77) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, F77)], [$_LT_TAGVAR(lt_prog_compiler_pic, F77)@&t@m4_if([F77],[],[ -DPIC],[m4_if([F77],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, F77) in ++ "" | " "*) ;; ++ *) _LT_TAGVAR(lt_prog_compiler_pic, F77)=" $_LT_TAGVAR(lt_prog_compiler_pic, F77)" ;; ++ esac], [_LT_TAGVAR(lt_prog_compiler_pic, F77)= ++ _LT_TAGVAR(lt_prog_compiler_can_build_shared, F77)=no]) ++m4trace:configure.ac:1093: -1- _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], [lt_cv_prog_compiler_static_works_F77], [$lt_tmp_static_flag], [], [_LT_TAGVAR(lt_prog_compiler_static, F77)=]) ++m4trace:configure.ac:1093: -1- LT_LANG([FC]) ++m4trace:configure.ac:1093: -1- LT_SUPPORTED_TAG([FC]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^FC$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^FCFLAGS$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LDFLAGS$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LIBS$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^FC$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^ac_ct_FC$]) ++m4trace:configure.ac:1093: -1- _LT_COMPILER_BOILERPLATE ++m4trace:configure.ac:1093: -1- _LT_LINKER_BOILERPLATE ++m4trace:configure.ac:1093: -1- _LT_CC_BASENAME([$compiler]) ++m4trace:configure.ac:1093: -1- _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, FC) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, FC)], [$_LT_TAGVAR(lt_prog_compiler_pic, FC)@&t@m4_if([FC],[],[ -DPIC],[m4_if([FC],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, FC) in ++ "" | " "*) ;; ++ *) _LT_TAGVAR(lt_prog_compiler_pic, FC)=" $_LT_TAGVAR(lt_prog_compiler_pic, FC)" ;; ++ esac], [_LT_TAGVAR(lt_prog_compiler_pic, FC)= ++ _LT_TAGVAR(lt_prog_compiler_can_build_shared, FC)=no]) ++m4trace:configure.ac:1093: -1- _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], [lt_cv_prog_compiler_static_works_FC], [$lt_tmp_static_flag], [], [_LT_TAGVAR(lt_prog_compiler_static, FC)=]) ++m4trace:configure.ac:1138: -1- OMPI_CONFIG_SUBDIR([opal/libltdl], [$ompi_subdir_args], [HAPPY=1], [HAPPY=0]) ++m4trace:configure.ac:1153: -1- OMPI_CHECK_LINKER_FLAGS([opal/libltdl/libtool], [-export-dynamic $flags]) ++m4trace:configure.ac:1153: -1- OMPI_LOG_MSG([$cmd], [yes]) ++m4trace:configure.ac:1153: -1- OMPI_LOG_MSG([\$? = $status], [yes]) ++m4trace:configure.ac:1178: -1- m4_pattern_allow([^LTDLINCL$]) ++m4trace:configure.ac:1179: -1- m4_pattern_allow([^LIBLTDL$]) ++m4trace:configure.ac:1180: -1- m4_pattern_allow([^LIBLTDL_SUBDIR$]) ++m4trace:configure.ac:1182: -1- m4_pattern_allow([^OMPI_WANT_LIBLTDL$]) ++m4trace:configure.ac:1185: -1- m4_pattern_allow([^OPAL_HAVE_LTDL_ADVISE$]) ++m4trace:configure.ac:1219: -1- OMPI_MAKE_STRIPPED_FLAGS([$CFLAGS]) ++m4trace:configure.ac:1237: -1- m4_pattern_allow([^CFLAGS_WITHOUT_OPTFLAGS$]) ++m4trace:configure.ac:1238: -1- m4_pattern_allow([^TOTALVIEW_DEBUG_FLAGS$]) ++m4trace:configure.ac:1246: -1- m4_pattern_allow([^CFLAGS$]) ++m4trace:configure.ac:1247: -1- m4_pattern_allow([^CPPFLAGS$]) ++m4trace:configure.ac:1248: -1- m4_pattern_allow([^CXXFLAGS$]) ++m4trace:configure.ac:1249: -1- m4_pattern_allow([^CXXCPPFLAGS$]) ++m4trace:configure.ac:1250: -1- m4_pattern_allow([^FFLAGS$]) ++m4trace:configure.ac:1251: -1- m4_pattern_allow([^FCFLAGS$]) ++m4trace:configure.ac:1253: -1- m4_pattern_allow([^OMPI_LIBMPI_EXTRA_LIBS$]) ++m4trace:configure.ac:1254: -1- m4_pattern_allow([^OMPI_LIBMPI_EXTRA_LDFLAGS$]) ++m4trace:configure.ac:1259: -1- m4_pattern_allow([^AMCA_PARAM_SETS_DIR$]) ++m4trace:configure.ac:1266: -1- OMPI_SETUP_WRAPPER_FINAL ++m4trace:configure.ac:1266: -1- OMPI_UNIQ([WRAPPER_EXTRA_CPPFLAGS]) ++m4trace:configure.ac:1266: -1- OMPI_UNIQ([WRAPPER_EXTRA_CFLAGS]) ++m4trace:configure.ac:1266: -1- OMPI_UNIQ([WRAPPER_EXTRA_CXXFLAGS]) ++m4trace:configure.ac:1266: -1- OMPI_UNIQ([WRAPPER_EXTRA_FFLAGS]) ++m4trace:configure.ac:1266: -1- OMPI_UNIQ([WRAPPER_EXTRA_FCFLAGS]) ++m4trace:configure.ac:1266: -1- OMPI_UNIQ([WRAPPER_EXTRA_LDFLAGS]) ++m4trace:configure.ac:1266: -1- OMPI_UNIQ([opal_WRAPPER_EXTRA_LDFLAGS]) ++m4trace:configure.ac:1266: -1- OMPI_UNIQ([opal_WRAPPER_EXTRA_LIBS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OPAL_WRAPPER_EXTRA_CPPFLAGS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OPAL_WRAPPER_EXTRA_CFLAGS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OPAL_WRAPPER_EXTRA_CXXFLAGS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OPAL_WRAPPER_EXTRA_LDFLAGS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OPAL_WRAPPER_EXTRA_LIBS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OPAL_WRAPPER_EXTRA_INCLUDES$]) ++m4trace:configure.ac:1266: -1- OMPI_UNIQ([orte_WRAPPER_EXTRA_LDFLAGS]) ++m4trace:configure.ac:1266: -1- OMPI_UNIQ([orte_WRAPPER_EXTRA_LIBS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^ORTE_WRAPPER_EXTRA_CPPFLAGS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^ORTE_WRAPPER_EXTRA_CFLAGS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^ORTE_WRAPPER_EXTRA_CXXFLAGS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^ORTE_WRAPPER_EXTRA_LDFLAGS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^ORTE_WRAPPER_EXTRA_LIBS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^ORTE_WRAPPER_EXTRA_INCLUDES$]) ++m4trace:configure.ac:1266: -1- OMPI_UNIQ([ompi_WRAPPER_EXTRA_LDFLAGS]) ++m4trace:configure.ac:1266: -1- OMPI_UNIQ([ompi_WRAPPER_EXTRA_LIBS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_EXTRA_CPPFLAGS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_EXTRA_CFLAGS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_EXTRA_CXXFLAGS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_EXTRA_FFLAGS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_EXTRA_FCFLAGS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_EXTRA_LDFLAGS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_EXTRA_LIBS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_EXTRA_INCLUDES$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_CXX_LIB$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_CXX_REQUIRED_FILE$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_F77_REQUIRED_FILE$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_F90_REQUIRED_FILE$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_INCLUDEDIR$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_LIBDIR$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^WRAPPER_EXTRA_CFLAGS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^WRAPPER_EXTRA_CXXFLAGS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^WRAPPER_EXTRA_FFLAGS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^WRAPPER_EXTRA_FCFLAGS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^WRAPPER_EXTRA_LDFLAGS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^WRAPPER_EXTRA_LIBS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^WRAPPER_EXTRA_CFLAGS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^WRAPPER_EXTRA_CXXFLAGS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^WRAPPER_EXTRA_FFLAGS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^WRAPPER_EXTRA_FCFLAGS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^WRAPPER_EXTRA_LDFLAGS$]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^WRAPPER_EXTRA_LIBS$]) ++m4trace:configure.ac:1273: -1- m4_pattern_allow([^OMPI_STDC_HEADERS$]) ++m4trace:configure.ac:1277: -1- m4_pattern_allow([^OMPI_HAVE_SYS_TIME_H$]) ++m4trace:configure.ac:1281: -1- m4_pattern_allow([^OMPI_HAVE_LONG_LONG$]) ++m4trace:configure.ac:1285: -1- m4_pattern_allow([^OMPI_HAVE_SYS_SYNCH_H$]) ++m4trace:configure.ac:1289: -1- m4_pattern_allow([^OMPI_SIZEOF_BOOL$]) ++m4trace:configure.ac:1291: -1- m4_pattern_allow([^OMPI_SIZEOF_INT$]) ++m4trace:configure.ac:1375: -1- m4_pattern_allow([^LIB@&t@OBJS$]) ++m4trace:configure.ac:1375: -1- m4_pattern_allow([^LTLIBOBJS$]) ++m4trace:configure.ac:1375: -1- _AC_AM_CONFIG_HEADER_HOOK([$ac_file]) ++m4trace:configure.ac:1375: -1- _AM_OUTPUT_DEPENDENCY_COMMANDS ++m4trace:configure.ac:1375: -1- _LT_PROG_LTMAIN +--- /dev/null ++++ b/autom4te.cache/traces.1 +@@ -0,0 +1,10499 @@ ++m4trace:aclocal.m4:975: -1- m4_include([config/c_get_alignment.m4]) ++m4trace:aclocal.m4:976: -1- m4_include([config/c_weak_symbols.m4]) ++m4trace:aclocal.m4:977: -1- m4_include([config/cxx_find_exception_flags.m4]) ++m4trace:aclocal.m4:978: -1- m4_include([config/cxx_find_template_parameters.m4]) ++m4trace:aclocal.m4:979: -1- m4_include([config/cxx_find_template_repository.m4]) ++m4trace:aclocal.m4:980: -1- m4_include([config/cxx_have_exceptions.m4]) ++m4trace:aclocal.m4:981: -1- m4_include([config/f77_check.m4]) ++m4trace:aclocal.m4:982: -1- m4_include([config/f77_check_logical_array.m4]) ++m4trace:aclocal.m4:983: -1- m4_include([config/f77_check_real16_c_equiv.m4]) ++m4trace:aclocal.m4:984: -1- m4_include([config/f77_check_type.m4]) ++m4trace:aclocal.m4:985: -1- m4_include([config/f77_find_ext_symbol_convention.m4]) ++m4trace:aclocal.m4:986: -1- m4_include([config/f77_get_alignment.m4]) ++m4trace:aclocal.m4:987: -1- m4_include([config/f77_get_fortran_handle_max.m4]) ++m4trace:aclocal.m4:988: -1- m4_include([config/f77_get_sizeof.m4]) ++m4trace:aclocal.m4:989: -1- m4_include([config/f77_get_value_true.m4]) ++m4trace:aclocal.m4:990: -1- m4_include([config/f90_check.m4]) ++m4trace:aclocal.m4:991: -1- m4_include([config/f90_check_type.m4]) ++m4trace:aclocal.m4:992: -1- m4_include([config/f90_find_module_include_flag.m4]) ++m4trace:aclocal.m4:993: -1- m4_include([config/f90_get_int_kind.m4]) ++m4trace:aclocal.m4:994: -1- m4_include([config/f90_get_sizeof.m4]) ++m4trace:aclocal.m4:995: -1- m4_include([config/libtool.m4]) ++m4trace:aclocal.m4:996: -1- m4_include([config/ltdl.m4]) ++m4trace:aclocal.m4:997: -1- m4_include([config/ltoptions.m4]) ++m4trace:aclocal.m4:998: -1- m4_include([config/ltsugar.m4]) ++m4trace:aclocal.m4:999: -1- m4_include([config/ltversion.m4]) ++m4trace:aclocal.m4:1000: -1- m4_include([config/lt~obsolete.m4]) ++m4trace:aclocal.m4:1001: -1- m4_include([config/ompi_case_sensitive_fs_setup.m4]) ++m4trace:aclocal.m4:1002: -1- m4_include([config/ompi_check_alps.m4]) ++m4trace:aclocal.m4:1003: -1- m4_include([config/ompi_check_attributes.m4]) ++m4trace:aclocal.m4:1004: -1- m4_include([config/ompi_check_broken_qsort.m4]) ++m4trace:aclocal.m4:1005: -1- m4_include([config/ompi_check_compiler_works.m4]) ++m4trace:aclocal.m4:1006: -1- m4_include([config/ompi_check_func_lib.m4]) ++m4trace:aclocal.m4:1007: -1- m4_include([config/ompi_check_gm.m4]) ++m4trace:aclocal.m4:1008: -1- m4_include([config/ompi_check_icc.m4]) ++m4trace:aclocal.m4:1009: -1- m4_include([config/ompi_check_ident.m4]) ++m4trace:aclocal.m4:1010: -1- m4_include([config/ompi_check_loadleveler.m4]) ++m4trace:aclocal.m4:1011: -1- m4_include([config/ompi_check_lsf.m4]) ++m4trace:aclocal.m4:1012: -1- m4_include([config/ompi_check_mx.m4]) ++m4trace:aclocal.m4:1013: -1- m4_include([config/ompi_check_openib.m4]) ++m4trace:aclocal.m4:1014: -1- m4_include([config/ompi_check_optflags.m4]) ++m4trace:aclocal.m4:1015: -1- m4_include([config/ompi_check_package.m4]) ++m4trace:aclocal.m4:1016: -1- m4_include([config/ompi_check_portals.m4]) ++m4trace:aclocal.m4:1017: -1- m4_include([config/ompi_check_ps.m4]) ++m4trace:aclocal.m4:1018: -1- m4_include([config/ompi_check_psm.m4]) ++m4trace:aclocal.m4:1019: -1- m4_include([config/ompi_check_pthread_pids.m4]) ++m4trace:aclocal.m4:1020: -1- m4_include([config/ompi_check_sge.m4]) ++m4trace:aclocal.m4:1021: -1- m4_include([config/ompi_check_slurm.m4]) ++m4trace:aclocal.m4:1022: -1- m4_include([config/ompi_check_tm.m4]) ++m4trace:aclocal.m4:1023: -1- m4_include([config/ompi_check_udapl.m4]) ++m4trace:aclocal.m4:1024: -1- m4_include([config/ompi_check_vendor.m4]) ++m4trace:aclocal.m4:1025: -1- m4_include([config/ompi_check_visibility.m4]) ++m4trace:aclocal.m4:1026: -1- m4_include([config/ompi_check_xgrid.m4]) ++m4trace:aclocal.m4:1027: -1- m4_include([config/ompi_config_asm.m4]) ++m4trace:aclocal.m4:1028: -1- m4_include([config/ompi_config_pthreads.m4]) ++m4trace:aclocal.m4:1029: -1- m4_include([config/ompi_config_solaris_threads.m4]) ++m4trace:aclocal.m4:1030: -1- m4_include([config/ompi_config_subdir.m4]) ++m4trace:aclocal.m4:1031: -1- m4_include([config/ompi_config_subdir_args.m4]) ++m4trace:aclocal.m4:1032: -1- m4_include([config/ompi_config_threads.m4]) ++m4trace:aclocal.m4:1033: -1- m4_include([config/ompi_configure_options.m4]) ++m4trace:aclocal.m4:1034: -1- m4_include([config/ompi_contrib.m4]) ++m4trace:aclocal.m4:1035: -1- m4_include([config/ompi_find_type.m4]) ++m4trace:aclocal.m4:1036: -1- m4_include([config/ompi_functions.m4]) ++m4trace:aclocal.m4:1037: -1- m4_include([config/ompi_get_libtool_linker_flags.m4]) ++m4trace:aclocal.m4:1038: -1- m4_include([config/ompi_interix.m4]) ++m4trace:aclocal.m4:1039: -1- m4_include([config/ompi_lang_link_with_c.m4]) ++m4trace:aclocal.m4:1040: -1- m4_include([config/ompi_load_platform.m4]) ++m4trace:aclocal.m4:1041: -1- m4_include([config/ompi_make_stripped_flags.m4]) ++m4trace:aclocal.m4:1042: -1- m4_include([config/ompi_mca.m4]) ++m4trace:aclocal.m4:1043: -1- m4_include([config/ompi_save_version.m4]) ++m4trace:aclocal.m4:1044: -1- m4_include([config/ompi_setup_cc.m4]) ++m4trace:aclocal.m4:1045: -1- m4_include([config/ompi_setup_cxx.m4]) ++m4trace:aclocal.m4:1046: -1- m4_include([config/ompi_setup_f77.m4]) ++m4trace:aclocal.m4:1047: -1- m4_include([config/ompi_setup_f90.m4]) ++m4trace:aclocal.m4:1048: -1- m4_include([config/ompi_setup_libevent.m4]) ++m4trace:aclocal.m4:1049: -1- m4_include([config/ompi_setup_wrappers.m4]) ++m4trace:aclocal.m4:1050: -1- m4_include([config/ompi_try_assemble.m4]) ++m4trace:aclocal.m4:1051: -1- m4_include([acinclude.m4]) ++m4trace:acinclude.m4:24: -1- m4_include([config/ompi_get_version.m4]) ++m4trace:acinclude.m4:30: -1- m4_include([config/mca_no_configure_components.m4]) ++m4trace:acinclude.m4:36: -1- m4_include([config/mca_m4_config_include.m4]) ++m4trace:config/mca_m4_config_include.m4:8: -1- m4_include([opal/mca/backtrace/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:9: -1- m4_include([opal/mca/backtrace/darwin/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:10: -1- m4_include([opal/mca/backtrace/execinfo/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:11: -1- m4_include([opal/mca/backtrace/none/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:12: -1- m4_include([opal/mca/backtrace/printstack/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:13: -1- m4_include([opal/mca/crs/blcr/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:14: -1- m4_include([opal/mca/crs/self/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:15: -1- m4_include([opal/mca/installdirs/config/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:16: -1- m4_include([opal/mca/installdirs/env/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:17: -1- m4_include([opal/mca/maffinity/libnuma/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:18: -1- m4_include([opal/mca/memchecker/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:19: -1- m4_include([opal/mca/memchecker/valgrind/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:20: -1- m4_include([opal/mca/memcpy/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:21: -1- m4_include([opal/mca/memory/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:22: -1- m4_include([opal/mca/memory/malloc_solaris/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:23: -1- m4_include([opal/mca/memory/mallopt/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:24: -1- m4_include([opal/mca/memory/ptmalloc2/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:25: -1- m4_include([opal/mca/paffinity/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:26: -1- m4_include([opal/mca/paffinity/darwin/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:27: -1- m4_include([opal/mca/paffinity/linux/configure.m4]) ++m4trace:opal/mca/paffinity/linux/configure.m4:24: -1- m4_include([opal/mca/paffinity/linux/plpa/config/plpa.m4]) ++m4trace:config/mca_m4_config_include.m4:28: -1- m4_include([opal/mca/paffinity/posix/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:29: -1- m4_include([opal/mca/paffinity/solaris/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:30: -1- m4_include([opal/mca/paffinity/windows/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:31: -1- m4_include([opal/mca/timer/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:32: -1- m4_include([opal/mca/timer/aix/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:33: -1- m4_include([opal/mca/timer/altix/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:34: -1- m4_include([opal/mca/timer/catamount/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:35: -1- m4_include([opal/mca/timer/darwin/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:36: -1- m4_include([opal/mca/timer/linux/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:37: -1- m4_include([opal/mca/timer/solaris/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:38: -1- m4_include([opal/mca/timer/windows/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:39: -1- m4_include([orte/mca/ess/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:40: -1- m4_include([orte/mca/ess/alps/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:41: -1- m4_include([orte/mca/ess/cnos/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:42: -1- m4_include([orte/mca/ess/env/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:43: -1- m4_include([orte/mca/ess/hnp/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:44: -1- m4_include([orte/mca/ess/lsf/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:45: -1- m4_include([orte/mca/ess/portals_utcp/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:46: -1- m4_include([orte/mca/ess/singleton/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:47: -1- m4_include([orte/mca/ess/slurm/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:48: -1- m4_include([orte/mca/ess/tool/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:49: -1- m4_include([orte/mca/grpcomm/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:50: -1- m4_include([orte/mca/grpcomm/bad/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:51: -1- m4_include([orte/mca/grpcomm/basic/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:52: -1- m4_include([orte/mca/grpcomm/cnos/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:53: -1- m4_include([orte/mca/notifier/syslog/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:54: -1- m4_include([orte/mca/odls/default/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:55: -1- m4_include([orte/mca/oob/tcp/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:56: -1- m4_include([orte/mca/plm/alps/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:57: -1- m4_include([orte/mca/plm/lsf/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:58: -1- m4_include([orte/mca/plm/rsh/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:59: -1- m4_include([orte/mca/plm/slurm/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:60: -1- m4_include([orte/mca/plm/tm/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:61: -1- m4_include([orte/mca/plm/xgrid/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:62: -1- m4_include([orte/mca/ras/alps/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:63: -1- m4_include([orte/mca/ras/gridengine/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:64: -1- m4_include([orte/mca/ras/loadleveler/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:65: -1- m4_include([orte/mca/ras/lsf/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:66: -1- m4_include([orte/mca/ras/slurm/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:67: -1- m4_include([orte/mca/ras/tm/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:68: -1- m4_include([orte/mca/rml/ftrm/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:69: -1- m4_include([orte/mca/snapc/full/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:70: -1- m4_include([ompi/mca/btl/elan/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:71: -1- m4_include([ompi/mca/btl/gm/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:72: -1- m4_include([ompi/mca/btl/mx/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:73: -1- m4_include([ompi/mca/btl/ofud/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:74: -1- m4_include([ompi/mca/btl/openib/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:75: -1- m4_include([ompi/mca/btl/portals/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:76: -1- m4_include([ompi/mca/btl/tcp/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:77: -1- m4_include([ompi/mca/btl/udapl/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:78: -1- m4_include([ompi/mca/common/mx/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:79: -1- m4_include([ompi/mca/common/portals/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:80: -1- m4_include([ompi/mca/crcp/bkmrk/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:81: -1- m4_include([ompi/mca/io/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:82: -1- m4_include([ompi/mca/io/romio/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:83: -1- m4_include([ompi/mca/mtl/mx/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:84: -1- m4_include([ompi/mca/mtl/portals/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:85: -1- m4_include([ompi/mca/mtl/psm/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:86: -1- m4_include([ompi/mca/pml/crcpw/configure.m4]) ++m4trace:config/mca_m4_config_include.m4:87: -1- m4_include([ompi/mca/pml/v/configure.m4]) ++m4trace:configure.ac:35: -1- AC_INIT([Open MPI], [m4_normalize(esyscmd([config/ompi_get_version.sh VERSION --base]))], [http://www.open-mpi.org/community/help/], [openmpi]) ++m4trace:configure.ac:35: -1- m4_pattern_forbid([^_?A[CHUM]_]) ++m4trace:configure.ac:35: -1- m4_pattern_forbid([_AC_]) ++m4trace:configure.ac:35: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS']) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^AS_FLAGS$]) ++m4trace:configure.ac:35: -1- m4_pattern_forbid([^_?m4_]) ++m4trace:configure.ac:35: -1- m4_pattern_forbid([^dnl$]) ++m4trace:configure.ac:35: -1- m4_pattern_forbid([^_?AS_]) ++m4trace:configure.ac:35: -1- AC_SUBST([SHELL], [${CONFIG_SHELL-/bin/sh}]) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([SHELL]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^SHELL$]) ++m4trace:configure.ac:35: -1- AC_SUBST([PATH_SEPARATOR]) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([PATH_SEPARATOR]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^PATH_SEPARATOR$]) ++m4trace:configure.ac:35: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])]) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([PACKAGE_NAME]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^PACKAGE_NAME$]) ++m4trace:configure.ac:35: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])]) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([PACKAGE_TARNAME]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) ++m4trace:configure.ac:35: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])]) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([PACKAGE_VERSION]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^PACKAGE_VERSION$]) ++m4trace:configure.ac:35: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])]) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([PACKAGE_STRING]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^PACKAGE_STRING$]) ++m4trace:configure.ac:35: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])]) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([PACKAGE_BUGREPORT]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) ++m4trace:configure.ac:35: -1- AC_SUBST([exec_prefix], [NONE]) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([exec_prefix]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^exec_prefix$]) ++m4trace:configure.ac:35: -1- AC_SUBST([prefix], [NONE]) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([prefix]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^prefix$]) ++m4trace:configure.ac:35: -1- AC_SUBST([program_transform_name], [s,x,x,]) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([program_transform_name]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^program_transform_name$]) ++m4trace:configure.ac:35: -1- AC_SUBST([bindir], ['${exec_prefix}/bin']) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([bindir]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^bindir$]) ++m4trace:configure.ac:35: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin']) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([sbindir]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^sbindir$]) ++m4trace:configure.ac:35: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec']) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([libexecdir]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^libexecdir$]) ++m4trace:configure.ac:35: -1- AC_SUBST([datarootdir], ['${prefix}/share']) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([datarootdir]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^datarootdir$]) ++m4trace:configure.ac:35: -1- AC_SUBST([datadir], ['${datarootdir}']) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([datadir]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^datadir$]) ++m4trace:configure.ac:35: -1- AC_SUBST([sysconfdir], ['${prefix}/etc']) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([sysconfdir]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^sysconfdir$]) ++m4trace:configure.ac:35: -1- AC_SUBST([sharedstatedir], ['${prefix}/com']) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([sharedstatedir]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^sharedstatedir$]) ++m4trace:configure.ac:35: -1- AC_SUBST([localstatedir], ['${prefix}/var']) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([localstatedir]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^localstatedir$]) ++m4trace:configure.ac:35: -1- AC_SUBST([includedir], ['${prefix}/include']) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([includedir]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^includedir$]) ++m4trace:configure.ac:35: -1- AC_SUBST([oldincludedir], ['/usr/include']) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([oldincludedir]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^oldincludedir$]) ++m4trace:configure.ac:35: -1- AC_SUBST([docdir], [m4_ifset([AC_PACKAGE_TARNAME], ++ ['${datarootdir}/doc/${PACKAGE_TARNAME}'], ++ ['${datarootdir}/doc/${PACKAGE}'])]) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([docdir]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^docdir$]) ++m4trace:configure.ac:35: -1- AC_SUBST([infodir], ['${datarootdir}/info']) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([infodir]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^infodir$]) ++m4trace:configure.ac:35: -1- AC_SUBST([htmldir], ['${docdir}']) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([htmldir]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^htmldir$]) ++m4trace:configure.ac:35: -1- AC_SUBST([dvidir], ['${docdir}']) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([dvidir]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^dvidir$]) ++m4trace:configure.ac:35: -1- AC_SUBST([pdfdir], ['${docdir}']) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([pdfdir]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^pdfdir$]) ++m4trace:configure.ac:35: -1- AC_SUBST([psdir], ['${docdir}']) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([psdir]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^psdir$]) ++m4trace:configure.ac:35: -1- AC_SUBST([libdir], ['${exec_prefix}/lib']) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([libdir]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^libdir$]) ++m4trace:configure.ac:35: -1- AC_SUBST([localedir], ['${datarootdir}/locale']) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([localedir]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^localedir$]) ++m4trace:configure.ac:35: -1- AC_SUBST([mandir], ['${datarootdir}/man']) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([mandir]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^mandir$]) ++m4trace:configure.ac:35: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^PACKAGE_NAME$]) ++m4trace:configure.ac:35: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */ ++#undef PACKAGE_NAME]) ++m4trace:configure.ac:35: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) ++m4trace:configure.ac:35: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */ ++#undef PACKAGE_TARNAME]) ++m4trace:configure.ac:35: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^PACKAGE_VERSION$]) ++m4trace:configure.ac:35: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */ ++#undef PACKAGE_VERSION]) ++m4trace:configure.ac:35: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^PACKAGE_STRING$]) ++m4trace:configure.ac:35: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */ ++#undef PACKAGE_STRING]) ++m4trace:configure.ac:35: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) ++m4trace:configure.ac:35: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */ ++#undef PACKAGE_BUGREPORT]) ++m4trace:configure.ac:35: -1- AC_SUBST([DEFS]) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([DEFS]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^DEFS$]) ++m4trace:configure.ac:35: -1- AC_SUBST([ECHO_C]) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([ECHO_C]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^ECHO_C$]) ++m4trace:configure.ac:35: -1- AC_SUBST([ECHO_N]) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([ECHO_N]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^ECHO_N$]) ++m4trace:configure.ac:35: -1- AC_SUBST([ECHO_T]) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([ECHO_T]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^ECHO_T$]) ++m4trace:configure.ac:35: -1- AC_SUBST([LIBS]) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([LIBS]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^LIBS$]) ++m4trace:configure.ac:35: -1- AC_SUBST([build_alias]) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([build_alias]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^build_alias$]) ++m4trace:configure.ac:35: -1- AC_SUBST([host_alias]) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([host_alias]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^host_alias$]) ++m4trace:configure.ac:35: -1- AC_SUBST([target_alias]) ++m4trace:configure.ac:35: -1- AC_SUBST_TRACE([target_alias]) ++m4trace:configure.ac:35: -1- m4_pattern_allow([^target_alias$]) ++m4trace:configure.ac:39: -1- AC_CONFIG_AUX_DIR([config]) ++m4trace:configure.ac:44: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_load_platform.m4:22: OMPI_LOAD_PLATFORM is expanded from... ++configure.ac:44: the top level]) ++m4trace:configure.ac:44: -1- AC_SUBST([OPAL_DEFAULT_MCA_PARAM_CONF], [$platform_file_dir/$platform_alt_mca_file]) ++m4trace:configure.ac:44: -1- AC_SUBST_TRACE([OPAL_DEFAULT_MCA_PARAM_CONF]) ++m4trace:configure.ac:44: -1- m4_pattern_allow([^OPAL_DEFAULT_MCA_PARAM_CONF$]) ++m4trace:configure.ac:44: -1- AC_SUBST([OPAL_PARAM_FROM_PLATFORM], ["yes"]) ++m4trace:configure.ac:44: -1- AC_SUBST_TRACE([OPAL_PARAM_FROM_PLATFORM]) ++m4trace:configure.ac:44: -1- m4_pattern_allow([^OPAL_PARAM_FROM_PLATFORM$]) ++m4trace:configure.ac:44: -1- AC_SUBST([OPAL_DEFAULT_MCA_PARAM_CONF], [$platform_file_dir/openmpi-mca-params.conf]) ++m4trace:configure.ac:44: -1- AC_SUBST_TRACE([OPAL_DEFAULT_MCA_PARAM_CONF]) ++m4trace:configure.ac:44: -1- m4_pattern_allow([^OPAL_DEFAULT_MCA_PARAM_CONF$]) ++m4trace:configure.ac:44: -1- AC_SUBST([OPAL_PARAM_FROM_PLATFORM], ["yes"]) ++m4trace:configure.ac:44: -1- AC_SUBST_TRACE([OPAL_PARAM_FROM_PLATFORM]) ++m4trace:configure.ac:44: -1- m4_pattern_allow([^OPAL_PARAM_FROM_PLATFORM$]) ++m4trace:configure.ac:44: -1- AC_SUBST([OPAL_DEFAULT_MCA_PARAM_CONF], [openmpi-mca-params.conf]) ++m4trace:configure.ac:44: -1- AC_SUBST_TRACE([OPAL_DEFAULT_MCA_PARAM_CONF]) ++m4trace:configure.ac:44: -1- m4_pattern_allow([^OPAL_DEFAULT_MCA_PARAM_CONF$]) ++m4trace:configure.ac:44: -1- AC_SUBST([OPAL_PARAM_FROM_PLATFORM], ["no"]) ++m4trace:configure.ac:44: -1- AC_SUBST_TRACE([OPAL_PARAM_FROM_PLATFORM]) ++m4trace:configure.ac:44: -1- m4_pattern_allow([^OPAL_PARAM_FROM_PLATFORM$]) ++m4trace:configure.ac:44: -1- AC_SUBST([OPAL_DEFAULT_MCA_PARAM_CONF], [openmpi-mca-params.conf]) ++m4trace:configure.ac:44: -1- AC_SUBST_TRACE([OPAL_DEFAULT_MCA_PARAM_CONF]) ++m4trace:configure.ac:44: -1- m4_pattern_allow([^OPAL_DEFAULT_MCA_PARAM_CONF$]) ++m4trace:configure.ac:49: -1- AM_INIT_AUTOMAKE([foreign dist-bzip2 subdir-objects no-define 1.10 tar-ustar]) ++m4trace:configure.ac:49: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$]) ++m4trace:configure.ac:49: -1- AM_AUTOMAKE_VERSION([1.10.1]) ++m4trace:configure.ac:49: -1- AC_REQUIRE_AUX_FILE([install-sh]) ++m4trace:configure.ac:49: -1- AC_SUBST([INSTALL_PROGRAM]) ++m4trace:configure.ac:49: -1- AC_SUBST_TRACE([INSTALL_PROGRAM]) ++m4trace:configure.ac:49: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) ++m4trace:configure.ac:49: -1- AC_SUBST([INSTALL_SCRIPT]) ++m4trace:configure.ac:49: -1- AC_SUBST_TRACE([INSTALL_SCRIPT]) ++m4trace:configure.ac:49: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) ++m4trace:configure.ac:49: -1- AC_SUBST([INSTALL_DATA]) ++m4trace:configure.ac:49: -1- AC_SUBST_TRACE([INSTALL_DATA]) ++m4trace:configure.ac:49: -1- m4_pattern_allow([^INSTALL_DATA$]) ++m4trace:configure.ac:49: -1- AC_SUBST([am__isrc], [' -I$(srcdir)']) ++m4trace:configure.ac:49: -1- AC_SUBST_TRACE([am__isrc]) ++m4trace:configure.ac:49: -1- m4_pattern_allow([^am__isrc$]) ++m4trace:configure.ac:49: -1- _AM_SUBST_NOTMAKE([am__isrc]) ++m4trace:configure.ac:49: -1- AC_SUBST([CYGPATH_W]) ++m4trace:configure.ac:49: -1- AC_SUBST_TRACE([CYGPATH_W]) ++m4trace:configure.ac:49: -1- m4_pattern_allow([^CYGPATH_W$]) ++m4trace:configure.ac:49: -1- _m4_warn([obsolete], [The macro `AC_FOREACH' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:196: AC_FOREACH is expanded from... ++aclocal.m4:761: _AM_SET_OPTIONS is expanded from... ++aclocal.m4:432: AM_INIT_AUTOMAKE is expanded from... ++configure.ac:49: the top level]) ++m4trace:configure.ac:49: -1- AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME']) ++m4trace:configure.ac:49: -1- AC_SUBST_TRACE([PACKAGE]) ++m4trace:configure.ac:49: -1- m4_pattern_allow([^PACKAGE$]) ++m4trace:configure.ac:49: -1- AC_SUBST([VERSION], ['AC_PACKAGE_VERSION']) ++m4trace:configure.ac:49: -1- AC_SUBST_TRACE([VERSION]) ++m4trace:configure.ac:49: -1- m4_pattern_allow([^VERSION$]) ++m4trace:configure.ac:49: -1- AC_REQUIRE_AUX_FILE([missing]) ++m4trace:configure.ac:49: -1- AC_SUBST([ACLOCAL]) ++m4trace:configure.ac:49: -1- AC_SUBST_TRACE([ACLOCAL]) ++m4trace:configure.ac:49: -1- m4_pattern_allow([^ACLOCAL$]) ++m4trace:configure.ac:49: -1- AC_SUBST([AUTOCONF]) ++m4trace:configure.ac:49: -1- AC_SUBST_TRACE([AUTOCONF]) ++m4trace:configure.ac:49: -1- m4_pattern_allow([^AUTOCONF$]) ++m4trace:configure.ac:49: -1- AC_SUBST([AUTOMAKE]) ++m4trace:configure.ac:49: -1- AC_SUBST_TRACE([AUTOMAKE]) ++m4trace:configure.ac:49: -1- m4_pattern_allow([^AUTOMAKE$]) ++m4trace:configure.ac:49: -1- AC_SUBST([AUTOHEADER]) ++m4trace:configure.ac:49: -1- AC_SUBST_TRACE([AUTOHEADER]) ++m4trace:configure.ac:49: -1- m4_pattern_allow([^AUTOHEADER$]) ++m4trace:configure.ac:49: -1- AC_SUBST([MAKEINFO]) ++m4trace:configure.ac:49: -1- AC_SUBST_TRACE([MAKEINFO]) ++m4trace:configure.ac:49: -1- m4_pattern_allow([^MAKEINFO$]) ++m4trace:configure.ac:49: -1- AC_SUBST([install_sh]) ++m4trace:configure.ac:49: -1- AC_SUBST_TRACE([install_sh]) ++m4trace:configure.ac:49: -1- m4_pattern_allow([^install_sh$]) ++m4trace:configure.ac:49: -1- AC_SUBST([STRIP]) ++m4trace:configure.ac:49: -1- AC_SUBST_TRACE([STRIP]) ++m4trace:configure.ac:49: -1- m4_pattern_allow([^STRIP$]) ++m4trace:configure.ac:49: -1- AC_SUBST([INSTALL_STRIP_PROGRAM]) ++m4trace:configure.ac:49: -1- AC_SUBST_TRACE([INSTALL_STRIP_PROGRAM]) ++m4trace:configure.ac:49: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$]) ++m4trace:configure.ac:49: -1- AC_REQUIRE_AUX_FILE([install-sh]) ++m4trace:configure.ac:49: -1- AC_SUBST([mkdir_p], ["$MKDIR_P"]) ++m4trace:configure.ac:49: -1- AC_SUBST_TRACE([mkdir_p]) ++m4trace:configure.ac:49: -1- m4_pattern_allow([^mkdir_p$]) ++m4trace:configure.ac:49: -1- AC_SUBST([AWK]) ++m4trace:configure.ac:49: -1- AC_SUBST_TRACE([AWK]) ++m4trace:configure.ac:49: -1- m4_pattern_allow([^AWK$]) ++m4trace:configure.ac:49: -1- AC_SUBST([SET_MAKE]) ++m4trace:configure.ac:49: -1- AC_SUBST_TRACE([SET_MAKE]) ++m4trace:configure.ac:49: -1- m4_pattern_allow([^SET_MAKE$]) ++m4trace:configure.ac:49: -1- AC_SUBST([am__leading_dot]) ++m4trace:configure.ac:49: -1- AC_SUBST_TRACE([am__leading_dot]) ++m4trace:configure.ac:49: -1- m4_pattern_allow([^am__leading_dot$]) ++m4trace:configure.ac:49: -1- AC_SUBST([AMTAR]) ++m4trace:configure.ac:49: -1- AC_SUBST_TRACE([AMTAR]) ++m4trace:configure.ac:49: -1- m4_pattern_allow([^AMTAR$]) ++m4trace:configure.ac:49: -1- AC_SUBST([am__tar]) ++m4trace:configure.ac:49: -1- AC_SUBST_TRACE([am__tar]) ++m4trace:configure.ac:49: -1- m4_pattern_allow([^am__tar$]) ++m4trace:configure.ac:49: -1- AC_SUBST([am__untar]) ++m4trace:configure.ac:49: -1- AC_SUBST_TRACE([am__untar]) ++m4trace:configure.ac:49: -1- m4_pattern_allow([^am__untar$]) ++m4trace:configure.ac:51: -1- m4_pattern_allow([m4_ifval]) ++m4trace:configure.ac:54: -1- AC_SUBST([CONFIGURE_DEPENDENCIES], ['$(top_srcdir)/VERSION']) ++m4trace:configure.ac:54: -1- AC_SUBST_TRACE([CONFIGURE_DEPENDENCIES]) ++m4trace:configure.ac:54: -1- m4_pattern_allow([^CONFIGURE_DEPENDENCIES$]) ++m4trace:configure.ac:60: -1- AC_SUBST([OMPI_CONFIGURE_USER]) ++m4trace:configure.ac:60: -1- AC_SUBST_TRACE([OMPI_CONFIGURE_USER]) ++m4trace:configure.ac:60: -1- m4_pattern_allow([^OMPI_CONFIGURE_USER$]) ++m4trace:configure.ac:60: -1- AC_SUBST([OMPI_CONFIGURE_HOST]) ++m4trace:configure.ac:60: -1- AC_SUBST_TRACE([OMPI_CONFIGURE_HOST]) ++m4trace:configure.ac:60: -1- m4_pattern_allow([^OMPI_CONFIGURE_HOST$]) ++m4trace:configure.ac:60: -1- AC_SUBST([OMPI_CONFIGURE_DATE]) ++m4trace:configure.ac:60: -1- AC_SUBST_TRACE([OMPI_CONFIGURE_DATE]) ++m4trace:configure.ac:60: -1- m4_pattern_allow([^OMPI_CONFIGURE_DATE$]) ++m4trace:configure.ac:67: -1- AC_SUBST([OMPI_MAJOR_VERSION]) ++m4trace:configure.ac:67: -1- AC_SUBST_TRACE([OMPI_MAJOR_VERSION]) ++m4trace:configure.ac:67: -1- m4_pattern_allow([^OMPI_MAJOR_VERSION$]) ++m4trace:configure.ac:67: -1- AC_SUBST([OMPI_MINOR_VERSION]) ++m4trace:configure.ac:67: -1- AC_SUBST_TRACE([OMPI_MINOR_VERSION]) ++m4trace:configure.ac:67: -1- m4_pattern_allow([^OMPI_MINOR_VERSION$]) ++m4trace:configure.ac:67: -1- AC_SUBST([OMPI_RELEASE_VERSION]) ++m4trace:configure.ac:67: -1- AC_SUBST_TRACE([OMPI_RELEASE_VERSION]) ++m4trace:configure.ac:67: -1- m4_pattern_allow([^OMPI_RELEASE_VERSION$]) ++m4trace:configure.ac:67: -1- AC_SUBST([OMPI_GREEK_VERSION]) ++m4trace:configure.ac:67: -1- AC_SUBST_TRACE([OMPI_GREEK_VERSION]) ++m4trace:configure.ac:67: -1- m4_pattern_allow([^OMPI_GREEK_VERSION$]) ++m4trace:configure.ac:67: -1- AC_SUBST([OMPI_WANT_SVN]) ++m4trace:configure.ac:67: -1- AC_SUBST_TRACE([OMPI_WANT_SVN]) ++m4trace:configure.ac:67: -1- m4_pattern_allow([^OMPI_WANT_SVN$]) ++m4trace:configure.ac:67: -1- AC_SUBST([OMPI_SVN_R]) ++m4trace:configure.ac:67: -1- AC_SUBST_TRACE([OMPI_SVN_R]) ++m4trace:configure.ac:67: -1- m4_pattern_allow([^OMPI_SVN_R$]) ++m4trace:configure.ac:67: -1- AC_SUBST([OMPI_VERSION]) ++m4trace:configure.ac:67: -1- AC_SUBST_TRACE([OMPI_VERSION]) ++m4trace:configure.ac:67: -1- m4_pattern_allow([^OMPI_VERSION$]) ++m4trace:configure.ac:67: -1- AC_SUBST([OMPI_RELEASE_DATE]) ++m4trace:configure.ac:67: -1- AC_SUBST_TRACE([OMPI_RELEASE_DATE]) ++m4trace:configure.ac:67: -1- m4_pattern_allow([^OMPI_RELEASE_DATE$]) ++m4trace:configure.ac:67: -1- AC_DEFINE_TRACE_LITERAL([OMPI_MAJOR_VERSION]) ++m4trace:configure.ac:67: -1- m4_pattern_allow([^OMPI_MAJOR_VERSION$]) ++m4trace:configure.ac:67: -1- AH_OUTPUT([OMPI_MAJOR_VERSION], [/* Major release number of Open MPI */ ++#undef OMPI_MAJOR_VERSION]) ++m4trace:configure.ac:67: -1- AC_DEFINE_TRACE_LITERAL([OMPI_MINOR_VERSION]) ++m4trace:configure.ac:67: -1- m4_pattern_allow([^OMPI_MINOR_VERSION$]) ++m4trace:configure.ac:67: -1- AH_OUTPUT([OMPI_MINOR_VERSION], [/* Minor release number of Open MPI */ ++#undef OMPI_MINOR_VERSION]) ++m4trace:configure.ac:67: -1- AC_DEFINE_TRACE_LITERAL([OMPI_RELEASE_VERSION]) ++m4trace:configure.ac:67: -1- m4_pattern_allow([^OMPI_RELEASE_VERSION$]) ++m4trace:configure.ac:67: -1- AH_OUTPUT([OMPI_RELEASE_VERSION], [/* Release release number of Open MPI */ ++#undef OMPI_RELEASE_VERSION]) ++m4trace:configure.ac:67: -1- AC_DEFINE_TRACE_LITERAL([OMPI_GREEK_VERSION]) ++m4trace:configure.ac:67: -1- m4_pattern_allow([^OMPI_GREEK_VERSION$]) ++m4trace:configure.ac:67: -1- AH_OUTPUT([OMPI_GREEK_VERSION], [/* Greek - alpha, beta, etc - release number of Open MPI */ ++#undef OMPI_GREEK_VERSION]) ++m4trace:configure.ac:67: -1- AC_DEFINE_TRACE_LITERAL([OMPI_VERSION]) ++m4trace:configure.ac:67: -1- m4_pattern_allow([^OMPI_VERSION$]) ++m4trace:configure.ac:67: -1- AH_OUTPUT([OMPI_VERSION], [/* Complete release number of Open MPI */ ++#undef OMPI_VERSION]) ++m4trace:configure.ac:67: -1- AC_DEFINE_TRACE_LITERAL([OMPI_RELEASE_DATE]) ++m4trace:configure.ac:67: -1- m4_pattern_allow([^OMPI_RELEASE_DATE$]) ++m4trace:configure.ac:67: -1- AH_OUTPUT([OMPI_RELEASE_DATE], [/* Release date of Open MPI */ ++#undef OMPI_RELEASE_DATE]) ++m4trace:configure.ac:67: -1- AC_CONFIG_FILES([ompi/include/ompi/version.h]) ++m4trace:configure.ac:70: -1- AC_SUBST([ORTE_MAJOR_VERSION]) ++m4trace:configure.ac:70: -1- AC_SUBST_TRACE([ORTE_MAJOR_VERSION]) ++m4trace:configure.ac:70: -1- m4_pattern_allow([^ORTE_MAJOR_VERSION$]) ++m4trace:configure.ac:70: -1- AC_SUBST([ORTE_MINOR_VERSION]) ++m4trace:configure.ac:70: -1- AC_SUBST_TRACE([ORTE_MINOR_VERSION]) ++m4trace:configure.ac:70: -1- m4_pattern_allow([^ORTE_MINOR_VERSION$]) ++m4trace:configure.ac:70: -1- AC_SUBST([ORTE_RELEASE_VERSION]) ++m4trace:configure.ac:70: -1- AC_SUBST_TRACE([ORTE_RELEASE_VERSION]) ++m4trace:configure.ac:70: -1- m4_pattern_allow([^ORTE_RELEASE_VERSION$]) ++m4trace:configure.ac:70: -1- AC_SUBST([ORTE_GREEK_VERSION]) ++m4trace:configure.ac:70: -1- AC_SUBST_TRACE([ORTE_GREEK_VERSION]) ++m4trace:configure.ac:70: -1- m4_pattern_allow([^ORTE_GREEK_VERSION$]) ++m4trace:configure.ac:70: -1- AC_SUBST([ORTE_WANT_SVN]) ++m4trace:configure.ac:70: -1- AC_SUBST_TRACE([ORTE_WANT_SVN]) ++m4trace:configure.ac:70: -1- m4_pattern_allow([^ORTE_WANT_SVN$]) ++m4trace:configure.ac:70: -1- AC_SUBST([ORTE_SVN_R]) ++m4trace:configure.ac:70: -1- AC_SUBST_TRACE([ORTE_SVN_R]) ++m4trace:configure.ac:70: -1- m4_pattern_allow([^ORTE_SVN_R$]) ++m4trace:configure.ac:70: -1- AC_SUBST([ORTE_VERSION]) ++m4trace:configure.ac:70: -1- AC_SUBST_TRACE([ORTE_VERSION]) ++m4trace:configure.ac:70: -1- m4_pattern_allow([^ORTE_VERSION$]) ++m4trace:configure.ac:70: -1- AC_SUBST([ORTE_RELEASE_DATE]) ++m4trace:configure.ac:70: -1- AC_SUBST_TRACE([ORTE_RELEASE_DATE]) ++m4trace:configure.ac:70: -1- m4_pattern_allow([^ORTE_RELEASE_DATE$]) ++m4trace:configure.ac:70: -1- AC_DEFINE_TRACE_LITERAL([ORTE_MAJOR_VERSION]) ++m4trace:configure.ac:70: -1- m4_pattern_allow([^ORTE_MAJOR_VERSION$]) ++m4trace:configure.ac:70: -1- AH_OUTPUT([ORTE_MAJOR_VERSION], [/* Major release number of Open Run-Time Environment */ ++#undef ORTE_MAJOR_VERSION]) ++m4trace:configure.ac:70: -1- AC_DEFINE_TRACE_LITERAL([ORTE_MINOR_VERSION]) ++m4trace:configure.ac:70: -1- m4_pattern_allow([^ORTE_MINOR_VERSION$]) ++m4trace:configure.ac:70: -1- AH_OUTPUT([ORTE_MINOR_VERSION], [/* Minor release number of Open Run-Time Environment */ ++#undef ORTE_MINOR_VERSION]) ++m4trace:configure.ac:70: -1- AC_DEFINE_TRACE_LITERAL([ORTE_RELEASE_VERSION]) ++m4trace:configure.ac:70: -1- m4_pattern_allow([^ORTE_RELEASE_VERSION$]) ++m4trace:configure.ac:70: -1- AH_OUTPUT([ORTE_RELEASE_VERSION], [/* Release release number of Open Run-Time Environment */ ++#undef ORTE_RELEASE_VERSION]) ++m4trace:configure.ac:70: -1- AC_DEFINE_TRACE_LITERAL([ORTE_GREEK_VERSION]) ++m4trace:configure.ac:70: -1- m4_pattern_allow([^ORTE_GREEK_VERSION$]) ++m4trace:configure.ac:70: -1- AH_OUTPUT([ORTE_GREEK_VERSION], [/* Greek - alpha, beta, etc - release number of Open Run-Time Environment */ ++#undef ORTE_GREEK_VERSION]) ++m4trace:configure.ac:70: -1- AC_DEFINE_TRACE_LITERAL([ORTE_VERSION]) ++m4trace:configure.ac:70: -1- m4_pattern_allow([^ORTE_VERSION$]) ++m4trace:configure.ac:70: -1- AH_OUTPUT([ORTE_VERSION], [/* Complete release number of Open Run-Time Environment */ ++#undef ORTE_VERSION]) ++m4trace:configure.ac:70: -1- AC_DEFINE_TRACE_LITERAL([ORTE_RELEASE_DATE]) ++m4trace:configure.ac:70: -1- m4_pattern_allow([^ORTE_RELEASE_DATE$]) ++m4trace:configure.ac:70: -1- AH_OUTPUT([ORTE_RELEASE_DATE], [/* Release date of Open Run-Time Environment */ ++#undef ORTE_RELEASE_DATE]) ++m4trace:configure.ac:70: -1- AC_CONFIG_FILES([orte/include/orte/version.h]) ++m4trace:configure.ac:73: -1- AC_SUBST([OPAL_MAJOR_VERSION]) ++m4trace:configure.ac:73: -1- AC_SUBST_TRACE([OPAL_MAJOR_VERSION]) ++m4trace:configure.ac:73: -1- m4_pattern_allow([^OPAL_MAJOR_VERSION$]) ++m4trace:configure.ac:73: -1- AC_SUBST([OPAL_MINOR_VERSION]) ++m4trace:configure.ac:73: -1- AC_SUBST_TRACE([OPAL_MINOR_VERSION]) ++m4trace:configure.ac:73: -1- m4_pattern_allow([^OPAL_MINOR_VERSION$]) ++m4trace:configure.ac:73: -1- AC_SUBST([OPAL_RELEASE_VERSION]) ++m4trace:configure.ac:73: -1- AC_SUBST_TRACE([OPAL_RELEASE_VERSION]) ++m4trace:configure.ac:73: -1- m4_pattern_allow([^OPAL_RELEASE_VERSION$]) ++m4trace:configure.ac:73: -1- AC_SUBST([OPAL_GREEK_VERSION]) ++m4trace:configure.ac:73: -1- AC_SUBST_TRACE([OPAL_GREEK_VERSION]) ++m4trace:configure.ac:73: -1- m4_pattern_allow([^OPAL_GREEK_VERSION$]) ++m4trace:configure.ac:73: -1- AC_SUBST([OPAL_WANT_SVN]) ++m4trace:configure.ac:73: -1- AC_SUBST_TRACE([OPAL_WANT_SVN]) ++m4trace:configure.ac:73: -1- m4_pattern_allow([^OPAL_WANT_SVN$]) ++m4trace:configure.ac:73: -1- AC_SUBST([OPAL_SVN_R]) ++m4trace:configure.ac:73: -1- AC_SUBST_TRACE([OPAL_SVN_R]) ++m4trace:configure.ac:73: -1- m4_pattern_allow([^OPAL_SVN_R$]) ++m4trace:configure.ac:73: -1- AC_SUBST([OPAL_VERSION]) ++m4trace:configure.ac:73: -1- AC_SUBST_TRACE([OPAL_VERSION]) ++m4trace:configure.ac:73: -1- m4_pattern_allow([^OPAL_VERSION$]) ++m4trace:configure.ac:73: -1- AC_SUBST([OPAL_RELEASE_DATE]) ++m4trace:configure.ac:73: -1- AC_SUBST_TRACE([OPAL_RELEASE_DATE]) ++m4trace:configure.ac:73: -1- m4_pattern_allow([^OPAL_RELEASE_DATE$]) ++m4trace:configure.ac:73: -1- AC_DEFINE_TRACE_LITERAL([OPAL_MAJOR_VERSION]) ++m4trace:configure.ac:73: -1- m4_pattern_allow([^OPAL_MAJOR_VERSION$]) ++m4trace:configure.ac:73: -1- AH_OUTPUT([OPAL_MAJOR_VERSION], [/* Major release number of Open Portable Access Layer */ ++#undef OPAL_MAJOR_VERSION]) ++m4trace:configure.ac:73: -1- AC_DEFINE_TRACE_LITERAL([OPAL_MINOR_VERSION]) ++m4trace:configure.ac:73: -1- m4_pattern_allow([^OPAL_MINOR_VERSION$]) ++m4trace:configure.ac:73: -1- AH_OUTPUT([OPAL_MINOR_VERSION], [/* Minor release number of Open Portable Access Layer */ ++#undef OPAL_MINOR_VERSION]) ++m4trace:configure.ac:73: -1- AC_DEFINE_TRACE_LITERAL([OPAL_RELEASE_VERSION]) ++m4trace:configure.ac:73: -1- m4_pattern_allow([^OPAL_RELEASE_VERSION$]) ++m4trace:configure.ac:73: -1- AH_OUTPUT([OPAL_RELEASE_VERSION], [/* Release release number of Open Portable Access Layer */ ++#undef OPAL_RELEASE_VERSION]) ++m4trace:configure.ac:73: -1- AC_DEFINE_TRACE_LITERAL([OPAL_GREEK_VERSION]) ++m4trace:configure.ac:73: -1- m4_pattern_allow([^OPAL_GREEK_VERSION$]) ++m4trace:configure.ac:73: -1- AH_OUTPUT([OPAL_GREEK_VERSION], [/* Greek - alpha, beta, etc - release number of Open Portable Access Layer */ ++#undef OPAL_GREEK_VERSION]) ++m4trace:configure.ac:73: -1- AC_DEFINE_TRACE_LITERAL([OPAL_VERSION]) ++m4trace:configure.ac:73: -1- m4_pattern_allow([^OPAL_VERSION$]) ++m4trace:configure.ac:73: -1- AH_OUTPUT([OPAL_VERSION], [/* Complete release number of Open Portable Access Layer */ ++#undef OPAL_VERSION]) ++m4trace:configure.ac:73: -1- AC_DEFINE_TRACE_LITERAL([OPAL_RELEASE_DATE]) ++m4trace:configure.ac:73: -1- m4_pattern_allow([^OPAL_RELEASE_DATE$]) ++m4trace:configure.ac:73: -1- AH_OUTPUT([OPAL_RELEASE_DATE], [/* Release date of Open Portable Access Layer */ ++#undef OPAL_RELEASE_DATE]) ++m4trace:configure.ac:73: -1- AC_CONFIG_FILES([opal/include/opal/version.h]) ++m4trace:configure.ac:76: -1- _m4_warn([obsolete], [The macro `AM_CONFIG_HEADER' is obsolete. ++You should run autoupdate.], [aclocal.m4:405: AM_CONFIG_HEADER is expanded from... ++configure.ac:76: the top level]) ++m4trace:configure.ac:76: -1- AC_CONFIG_HEADERS([opal/include/opal_config.h orte/include/orte_config.h ompi/include/ompi_config.h ompi/include/mpi.h]) ++m4trace:configure.ac:96: -1- AC_SUBST([OMPI_TOP_BUILDDIR]) ++m4trace:configure.ac:96: -1- AC_SUBST_TRACE([OMPI_TOP_BUILDDIR]) ++m4trace:configure.ac:96: -1- m4_pattern_allow([^OMPI_TOP_BUILDDIR$]) ++m4trace:configure.ac:99: -1- AC_SUBST([OMPI_TOP_SRCDIR]) ++m4trace:configure.ac:99: -1- AC_SUBST_TRACE([OMPI_TOP_SRCDIR]) ++m4trace:configure.ac:99: -1- m4_pattern_allow([^OMPI_TOP_SRCDIR$]) ++m4trace:configure.ac:110: -1- AH_OUTPUT([00001], [/* -*- c -*- ++ * ++ * Copyright (c) 2004-2005 The Trustees of Indiana University. ++ * All rights reserved. ++ * Copyright (c) 2004-2005 The Trustees of the University of Tennessee. ++ * All rights reserved. ++ * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, ++ * University of Stuttgart. All rights reserved. ++ * Copyright (c) 2004-2005 The Regents of the University of California. ++ * All rights reserved. ++ * $COPYRIGHT$ ++ * ++ * Additional copyrights may follow ++ * ++ * $HEADER$ ++ * ++ * Function: - OS, CPU and compiler dependent configuration ++ */ ++ ++#ifndef OPAL_CONFIG_H ++#define OPAL_CONFIG_H ++]) ++m4trace:configure.ac:132: -1- AH_OUTPUT([zzzz2], [ ++#include "opal_config_bottom.h" ++#endif /* OPAL_CONFIG_H */ ++]) ++m4trace:configure.ac:139: -1- AC_SUBST([CLEANFILES]) ++m4trace:configure.ac:139: -1- AC_SUBST_TRACE([CLEANFILES]) ++m4trace:configure.ac:139: -1- m4_pattern_allow([^CLEANFILES$]) ++m4trace:configure.ac:139: -1- AC_CANONICAL_HOST ++m4trace:configure.ac:139: -1- AC_CANONICAL_BUILD ++m4trace:configure.ac:139: -1- AC_REQUIRE_AUX_FILE([config.sub]) ++m4trace:configure.ac:139: -1- AC_REQUIRE_AUX_FILE([config.guess]) ++m4trace:configure.ac:139: -1- AC_SUBST([build], [$ac_cv_build]) ++m4trace:configure.ac:139: -1- AC_SUBST_TRACE([build]) ++m4trace:configure.ac:139: -1- m4_pattern_allow([^build$]) ++m4trace:configure.ac:139: -1- AC_SUBST([build_cpu], [$[1]]) ++m4trace:configure.ac:139: -1- AC_SUBST_TRACE([build_cpu]) ++m4trace:configure.ac:139: -1- m4_pattern_allow([^build_cpu$]) ++m4trace:configure.ac:139: -1- AC_SUBST([build_vendor], [$[2]]) ++m4trace:configure.ac:139: -1- AC_SUBST_TRACE([build_vendor]) ++m4trace:configure.ac:139: -1- m4_pattern_allow([^build_vendor$]) ++m4trace:configure.ac:139: -1- AC_SUBST([build_os]) ++m4trace:configure.ac:139: -1- AC_SUBST_TRACE([build_os]) ++m4trace:configure.ac:139: -1- m4_pattern_allow([^build_os$]) ++m4trace:configure.ac:139: -1- AC_SUBST([host], [$ac_cv_host]) ++m4trace:configure.ac:139: -1- AC_SUBST_TRACE([host]) ++m4trace:configure.ac:139: -1- m4_pattern_allow([^host$]) ++m4trace:configure.ac:139: -1- AC_SUBST([host_cpu], [$[1]]) ++m4trace:configure.ac:139: -1- AC_SUBST_TRACE([host_cpu]) ++m4trace:configure.ac:139: -1- m4_pattern_allow([^host_cpu$]) ++m4trace:configure.ac:139: -1- AC_SUBST([host_vendor], [$[2]]) ++m4trace:configure.ac:139: -1- AC_SUBST_TRACE([host_vendor]) ++m4trace:configure.ac:139: -1- m4_pattern_allow([^host_vendor$]) ++m4trace:configure.ac:139: -1- AC_SUBST([host_os]) ++m4trace:configure.ac:139: -1- AC_SUBST_TRACE([host_os]) ++m4trace:configure.ac:139: -1- m4_pattern_allow([^host_os$]) ++m4trace:configure.ac:139: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ARCH]) ++m4trace:configure.ac:139: -1- m4_pattern_allow([^OMPI_ARCH$]) ++m4trace:configure.ac:139: -1- AH_OUTPUT([OMPI_ARCH], [/* OMPI architecture string */ ++#undef OMPI_ARCH]) ++m4trace:configure.ac:139: -1- AC_SUBST([ac_prefix_program]) ++m4trace:configure.ac:139: -1- AC_SUBST_TRACE([ac_prefix_program]) ++m4trace:configure.ac:139: -1- m4_pattern_allow([^ac_prefix_program$]) ++m4trace:configure.ac:139: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_functions.m4:78: OMPI_BASIC_SETUP is expanded from... ++configure.ac:139: the top level]) ++m4trace:configure.ac:142: -1- AC_SUBST([top_ompi_srcdir]) ++m4trace:configure.ac:142: -1- AC_SUBST_TRACE([top_ompi_srcdir]) ++m4trace:configure.ac:142: -1- m4_pattern_allow([^top_ompi_srcdir$]) ++m4trace:configure.ac:144: -1- AC_SUBST([top_ompi_builddir]) ++m4trace:configure.ac:144: -1- AC_SUBST_TRACE([top_ompi_builddir]) ++m4trace:configure.ac:144: -1- m4_pattern_allow([^top_ompi_builddir$]) ++m4trace:configure.ac:150: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ENABLE_MEM_DEBUG]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OMPI_ENABLE_MEM_DEBUG$]) ++m4trace:configure.ac:150: -1- AH_OUTPUT([OMPI_ENABLE_MEM_DEBUG], [/* Whether we want the memory profiling or not */ ++#undef OMPI_ENABLE_MEM_DEBUG]) ++m4trace:configure.ac:150: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ENABLE_MEM_PROFILE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OMPI_ENABLE_MEM_PROFILE$]) ++m4trace:configure.ac:150: -1- AH_OUTPUT([OMPI_ENABLE_MEM_PROFILE], [/* Whether we want the memory profiling or not */ ++#undef OMPI_ENABLE_MEM_PROFILE]) ++m4trace:configure.ac:150: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ENABLE_DEBUG]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OMPI_ENABLE_DEBUG$]) ++m4trace:configure.ac:150: -1- AH_OUTPUT([OMPI_ENABLE_DEBUG], [/* Whether we want developer-level debugging code or not */ ++#undef OMPI_ENABLE_DEBUG]) ++m4trace:configure.ac:150: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- AC_DEFINE_TRACE_LITERAL([OMPI_GROUP_SPARSE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OMPI_GROUP_SPARSE$]) ++m4trace:configure.ac:150: -1- AH_OUTPUT([OMPI_GROUP_SPARSE], [/* Wether we want sparse process groups */ ++#undef OMPI_GROUP_SPARSE]) ++m4trace:configure.ac:150: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- AM_CONDITIONAL([OMPI_WANT_BUILD_F90_TRIVIAL], [test "$OMPI_F90_BUILD_SIZE" = "trivial"]) ++m4trace:configure.ac:150: -1- AC_SUBST([OMPI_WANT_BUILD_F90_TRIVIAL_TRUE]) ++m4trace:configure.ac:150: -1- AC_SUBST_TRACE([OMPI_WANT_BUILD_F90_TRIVIAL_TRUE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OMPI_WANT_BUILD_F90_TRIVIAL_TRUE$]) ++m4trace:configure.ac:150: -1- AC_SUBST([OMPI_WANT_BUILD_F90_TRIVIAL_FALSE]) ++m4trace:configure.ac:150: -1- AC_SUBST_TRACE([OMPI_WANT_BUILD_F90_TRIVIAL_FALSE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OMPI_WANT_BUILD_F90_TRIVIAL_FALSE$]) ++m4trace:configure.ac:150: -1- _AM_SUBST_NOTMAKE([OMPI_WANT_BUILD_F90_TRIVIAL_TRUE]) ++m4trace:configure.ac:150: -1- _AM_SUBST_NOTMAKE([OMPI_WANT_BUILD_F90_TRIVIAL_FALSE]) ++m4trace:configure.ac:150: -1- AM_CONDITIONAL([OMPI_WANT_BUILD_F90_SMALL], [test "$OMPI_F90_BUILD_SIZE" = "small"]) ++m4trace:configure.ac:150: -1- AC_SUBST([OMPI_WANT_BUILD_F90_SMALL_TRUE]) ++m4trace:configure.ac:150: -1- AC_SUBST_TRACE([OMPI_WANT_BUILD_F90_SMALL_TRUE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OMPI_WANT_BUILD_F90_SMALL_TRUE$]) ++m4trace:configure.ac:150: -1- AC_SUBST([OMPI_WANT_BUILD_F90_SMALL_FALSE]) ++m4trace:configure.ac:150: -1- AC_SUBST_TRACE([OMPI_WANT_BUILD_F90_SMALL_FALSE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OMPI_WANT_BUILD_F90_SMALL_FALSE$]) ++m4trace:configure.ac:150: -1- _AM_SUBST_NOTMAKE([OMPI_WANT_BUILD_F90_SMALL_TRUE]) ++m4trace:configure.ac:150: -1- _AM_SUBST_NOTMAKE([OMPI_WANT_BUILD_F90_SMALL_FALSE]) ++m4trace:configure.ac:150: -1- AM_CONDITIONAL([OMPI_WANT_BUILD_F90_MEDIUM], [test "$OMPI_F90_BUILD_SIZE" = "medium"]) ++m4trace:configure.ac:150: -1- AC_SUBST([OMPI_WANT_BUILD_F90_MEDIUM_TRUE]) ++m4trace:configure.ac:150: -1- AC_SUBST_TRACE([OMPI_WANT_BUILD_F90_MEDIUM_TRUE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OMPI_WANT_BUILD_F90_MEDIUM_TRUE$]) ++m4trace:configure.ac:150: -1- AC_SUBST([OMPI_WANT_BUILD_F90_MEDIUM_FALSE]) ++m4trace:configure.ac:150: -1- AC_SUBST_TRACE([OMPI_WANT_BUILD_F90_MEDIUM_FALSE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OMPI_WANT_BUILD_F90_MEDIUM_FALSE$]) ++m4trace:configure.ac:150: -1- _AM_SUBST_NOTMAKE([OMPI_WANT_BUILD_F90_MEDIUM_TRUE]) ++m4trace:configure.ac:150: -1- _AM_SUBST_NOTMAKE([OMPI_WANT_BUILD_F90_MEDIUM_FALSE]) ++m4trace:configure.ac:150: -1- AM_CONDITIONAL([OMPI_WANT_BUILD_F90_LARGE], [test "$OMPI_F90_BUILD_SIZE" = "large"]) ++m4trace:configure.ac:150: -1- AC_SUBST([OMPI_WANT_BUILD_F90_LARGE_TRUE]) ++m4trace:configure.ac:150: -1- AC_SUBST_TRACE([OMPI_WANT_BUILD_F90_LARGE_TRUE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OMPI_WANT_BUILD_F90_LARGE_TRUE$]) ++m4trace:configure.ac:150: -1- AC_SUBST([OMPI_WANT_BUILD_F90_LARGE_FALSE]) ++m4trace:configure.ac:150: -1- AC_SUBST_TRACE([OMPI_WANT_BUILD_F90_LARGE_FALSE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OMPI_WANT_BUILD_F90_LARGE_FALSE$]) ++m4trace:configure.ac:150: -1- _AM_SUBST_NOTMAKE([OMPI_WANT_BUILD_F90_LARGE_TRUE]) ++m4trace:configure.ac:150: -1- _AM_SUBST_NOTMAKE([OMPI_WANT_BUILD_F90_LARGE_FALSE]) ++m4trace:configure.ac:150: -1- AC_SUBST([OMPI_F90_BUILD_SIZE]) ++m4trace:configure.ac:150: -1- AC_SUBST_TRACE([OMPI_F90_BUILD_SIZE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OMPI_F90_BUILD_SIZE$]) ++m4trace:configure.ac:150: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- AC_SUBST([MPIF_H_PMPI_W_FUNCS]) ++m4trace:configure.ac:150: -1- AC_SUBST_TRACE([MPIF_H_PMPI_W_FUNCS]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^MPIF_H_PMPI_W_FUNCS$]) ++m4trace:configure.ac:150: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- AC_DEFINE_TRACE_LITERAL([OMPI_WANT_MPI_CXX_SEEK]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OMPI_WANT_MPI_CXX_SEEK$]) ++m4trace:configure.ac:150: -1- AH_OUTPUT([OMPI_WANT_MPI_CXX_SEEK], [/* do we want to try to work around C++ bindings SEEK_* issue? */ ++#undef OMPI_WANT_MPI_CXX_SEEK]) ++m4trace:configure.ac:150: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- AC_DEFINE_TRACE_LITERAL([MPI_PARAM_CHECK]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^MPI_PARAM_CHECK$]) ++m4trace:configure.ac:150: -1- AH_OUTPUT([MPI_PARAM_CHECK], [/* Whether we want to check MPI parameters always, never, or decide at ++ run-time */ ++#undef MPI_PARAM_CHECK]) ++m4trace:configure.ac:150: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- AM_CONDITIONAL([WANT_INSTALL_HEADERS], [test "$WANT_INSTALL_HEADERS" = 1]) ++m4trace:configure.ac:150: -1- AC_SUBST([WANT_INSTALL_HEADERS_TRUE]) ++m4trace:configure.ac:150: -1- AC_SUBST_TRACE([WANT_INSTALL_HEADERS_TRUE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^WANT_INSTALL_HEADERS_TRUE$]) ++m4trace:configure.ac:150: -1- AC_SUBST([WANT_INSTALL_HEADERS_FALSE]) ++m4trace:configure.ac:150: -1- AC_SUBST_TRACE([WANT_INSTALL_HEADERS_FALSE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^WANT_INSTALL_HEADERS_FALSE$]) ++m4trace:configure.ac:150: -1- _AM_SUBST_NOTMAKE([WANT_INSTALL_HEADERS_TRUE]) ++m4trace:configure.ac:150: -1- _AM_SUBST_NOTMAKE([WANT_INSTALL_HEADERS_FALSE]) ++m4trace:configure.ac:150: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- AC_DEFINE_TRACE_LITERAL([OMPI_WANT_PRETTY_PRINT_STACKTRACE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OMPI_WANT_PRETTY_PRINT_STACKTRACE$]) ++m4trace:configure.ac:150: -1- AH_OUTPUT([OMPI_WANT_PRETTY_PRINT_STACKTRACE], [/* if want pretty-print stack trace feature */ ++#undef OMPI_WANT_PRETTY_PRINT_STACKTRACE]) ++m4trace:configure.ac:150: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- AC_DEFINE_TRACE_LITERAL([OMPI_WANT_PERUSE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OMPI_WANT_PERUSE$]) ++m4trace:configure.ac:150: -1- AH_OUTPUT([OMPI_WANT_PERUSE], [/* if the peruse interface should be enabled */ ++#undef OMPI_WANT_PERUSE]) ++m4trace:configure.ac:150: -1- AM_CONDITIONAL([WANT_PERUSE], [test "$WANT_PERUSE" = "1"]) ++m4trace:configure.ac:150: -1- AC_SUBST([WANT_PERUSE_TRUE]) ++m4trace:configure.ac:150: -1- AC_SUBST_TRACE([WANT_PERUSE_TRUE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^WANT_PERUSE_TRUE$]) ++m4trace:configure.ac:150: -1- AC_SUBST([WANT_PERUSE_FALSE]) ++m4trace:configure.ac:150: -1- AC_SUBST_TRACE([WANT_PERUSE_FALSE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^WANT_PERUSE_FALSE$]) ++m4trace:configure.ac:150: -1- _AM_SUBST_NOTMAKE([WANT_PERUSE_TRUE]) ++m4trace:configure.ac:150: -1- _AM_SUBST_NOTMAKE([WANT_PERUSE_FALSE]) ++m4trace:configure.ac:150: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- AC_SUBST([OMPI_FORTRAN_MAX_ARRAY_RANK]) ++m4trace:configure.ac:150: -1- AC_SUBST_TRACE([OMPI_FORTRAN_MAX_ARRAY_RANK]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OMPI_FORTRAN_MAX_ARRAY_RANK$]) ++m4trace:configure.ac:150: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ENABLE_PTY_SUPPORT]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OMPI_ENABLE_PTY_SUPPORT$]) ++m4trace:configure.ac:150: -1- AH_OUTPUT([OMPI_ENABLE_PTY_SUPPORT], [/* Whether user wants PTY support or not */ ++#undef OMPI_ENABLE_PTY_SUPPORT]) ++m4trace:configure.ac:150: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ENABLE_HETEROGENEOUS_SUPPORT]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OMPI_ENABLE_HETEROGENEOUS_SUPPORT$]) ++m4trace:configure.ac:150: -1- AH_OUTPUT([OMPI_ENABLE_HETEROGENEOUS_SUPPORT], [/* Enable features required for heterogeneous support */ ++#undef OMPI_ENABLE_HETEROGENEOUS_SUPPORT]) ++m4trace:configure.ac:150: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- AC_DEFINE_TRACE_LITERAL([OPAL_ENABLE_TRACE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OPAL_ENABLE_TRACE$]) ++m4trace:configure.ac:150: -1- AH_OUTPUT([OPAL_ENABLE_TRACE], [/* Enable run-time tracing of internal functions */ ++#undef OPAL_ENABLE_TRACE]) ++m4trace:configure.ac:150: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- AC_DEFINE_TRACE_LITERAL([ORTE_DISABLE_FULL_SUPPORT]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^ORTE_DISABLE_FULL_SUPPORT$]) ++m4trace:configure.ac:150: -1- AH_OUTPUT([ORTE_DISABLE_FULL_SUPPORT], [/* Build full RTE support */ ++#undef ORTE_DISABLE_FULL_SUPPORT]) ++m4trace:configure.ac:150: -1- AM_CONDITIONAL([ORTE_DISABLE_FULL_SUPPORT], [test "$with_rte_support" = "no"]) ++m4trace:configure.ac:150: -1- AC_SUBST([ORTE_DISABLE_FULL_SUPPORT_TRUE]) ++m4trace:configure.ac:150: -1- AC_SUBST_TRACE([ORTE_DISABLE_FULL_SUPPORT_TRUE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^ORTE_DISABLE_FULL_SUPPORT_TRUE$]) ++m4trace:configure.ac:150: -1- AC_SUBST([ORTE_DISABLE_FULL_SUPPORT_FALSE]) ++m4trace:configure.ac:150: -1- AC_SUBST_TRACE([ORTE_DISABLE_FULL_SUPPORT_FALSE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^ORTE_DISABLE_FULL_SUPPORT_FALSE$]) ++m4trace:configure.ac:150: -1- _AM_SUBST_NOTMAKE([ORTE_DISABLE_FULL_SUPPORT_TRUE]) ++m4trace:configure.ac:150: -1- _AM_SUBST_NOTMAKE([ORTE_DISABLE_FULL_SUPPORT_FALSE]) ++m4trace:configure.ac:150: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- AC_DEFINE_TRACE_LITERAL([OPAL_ENABLE_FT]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OPAL_ENABLE_FT$]) ++m4trace:configure.ac:150: -1- AH_OUTPUT([OPAL_ENABLE_FT], [/* Enable fault tolerance general components and logic */ ++#undef OPAL_ENABLE_FT]) ++m4trace:configure.ac:150: -1- AC_DEFINE_TRACE_LITERAL([OPAL_ENABLE_FT_CR]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OPAL_ENABLE_FT_CR$]) ++m4trace:configure.ac:150: -1- AH_OUTPUT([OPAL_ENABLE_FT_CR], [/* Enable fault tolerance checkpoint/restart components and logic */ ++#undef OPAL_ENABLE_FT_CR]) ++m4trace:configure.ac:150: -1- AM_CONDITIONAL([WANT_FT], [test "$ompi_want_ft" = "1"]) ++m4trace:configure.ac:150: -1- AC_SUBST([WANT_FT_TRUE]) ++m4trace:configure.ac:150: -1- AC_SUBST_TRACE([WANT_FT_TRUE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^WANT_FT_TRUE$]) ++m4trace:configure.ac:150: -1- AC_SUBST([WANT_FT_FALSE]) ++m4trace:configure.ac:150: -1- AC_SUBST_TRACE([WANT_FT_FALSE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^WANT_FT_FALSE$]) ++m4trace:configure.ac:150: -1- _AM_SUBST_NOTMAKE([WANT_FT_TRUE]) ++m4trace:configure.ac:150: -1- _AM_SUBST_NOTMAKE([WANT_FT_FALSE]) ++m4trace:configure.ac:150: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- AM_CONDITIONAL([OMPI_INSTALL_BINARIES], [test "$enable_binaries" != "no"]) ++m4trace:configure.ac:150: -1- AC_SUBST([OMPI_INSTALL_BINARIES_TRUE]) ++m4trace:configure.ac:150: -1- AC_SUBST_TRACE([OMPI_INSTALL_BINARIES_TRUE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OMPI_INSTALL_BINARIES_TRUE$]) ++m4trace:configure.ac:150: -1- AC_SUBST([OMPI_INSTALL_BINARIES_FALSE]) ++m4trace:configure.ac:150: -1- AC_SUBST_TRACE([OMPI_INSTALL_BINARIES_FALSE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OMPI_INSTALL_BINARIES_FALSE$]) ++m4trace:configure.ac:150: -1- _AM_SUBST_NOTMAKE([OMPI_INSTALL_BINARIES_TRUE]) ++m4trace:configure.ac:150: -1- _AM_SUBST_NOTMAKE([OMPI_INSTALL_BINARIES_FALSE]) ++m4trace:configure.ac:150: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- AM_CONDITIONAL([OMPI_WANT_SCRIPT_WRAPPER_COMPILERS], [test "$enable_script_wrapper_compilers" = "yes"]) ++m4trace:configure.ac:150: -1- AC_SUBST([OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_TRUE]) ++m4trace:configure.ac:150: -1- AC_SUBST_TRACE([OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_TRUE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_TRUE$]) ++m4trace:configure.ac:150: -1- AC_SUBST([OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_FALSE]) ++m4trace:configure.ac:150: -1- AC_SUBST_TRACE([OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_FALSE]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_FALSE$]) ++m4trace:configure.ac:150: -1- _AM_SUBST_NOTMAKE([OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_TRUE]) ++m4trace:configure.ac:150: -1- _AM_SUBST_NOTMAKE([OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_FALSE]) ++m4trace:configure.ac:150: -1- AC_CONFIG_FILES([ompi/tools/wrappers/ompi_wrapper_script], [chmod +x ompi/tools/wrappers/ompi_wrapper_script]) ++m4trace:configure.ac:150: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- AC_DEFINE_TRACE_LITERAL([OMPI_WANT_HOME_CONFIG_FILES]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OMPI_WANT_HOME_CONFIG_FILES$]) ++m4trace:configure.ac:150: -1- AH_OUTPUT([OMPI_WANT_HOME_CONFIG_FILES], [/* Enable per-user config files */ ++#undef OMPI_WANT_HOME_CONFIG_FILES]) ++m4trace:configure.ac:150: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- AC_DEFINE_TRACE_LITERAL([OPAL_ENABLE_IPV6]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OPAL_ENABLE_IPV6$]) ++m4trace:configure.ac:150: -1- AH_OUTPUT([OPAL_ENABLE_IPV6], [/* Enable IPv6 support, but only if the underlying system supports it */ ++#undef OPAL_ENABLE_IPV6]) ++m4trace:configure.ac:150: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- AC_DEFINE_TRACE_LITERAL([ORTE_WANT_ORTERUN_PREFIX_BY_DEFAULT]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^ORTE_WANT_ORTERUN_PREFIX_BY_DEFAULT$]) ++m4trace:configure.ac:150: -1- AH_OUTPUT([ORTE_WANT_ORTERUN_PREFIX_BY_DEFAULT], [/* Whether we want orterun to effect "--prefix $prefix" by default */ ++#undef ORTE_WANT_ORTERUN_PREFIX_BY_DEFAULT]) ++m4trace:configure.ac:150: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- AC_DEFINE_TRACE_LITERAL([OPAL_PACKAGE_STRING]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OPAL_PACKAGE_STRING$]) ++m4trace:configure.ac:150: -1- AH_OUTPUT([OPAL_PACKAGE_STRING], [/* package/branding string for Open MPI */ ++#undef OPAL_PACKAGE_STRING]) ++m4trace:configure.ac:150: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_configure_options.m4:22: OMPI_CONFIGURE_OPTIONS is expanded from... ++configure.ac:150: the top level]) ++m4trace:configure.ac:150: -1- AC_DEFINE_TRACE_LITERAL([OPAL_IDENT_STRING]) ++m4trace:configure.ac:150: -1- m4_pattern_allow([^OPAL_IDENT_STRING$]) ++m4trace:configure.ac:150: -1- AH_OUTPUT([OPAL_IDENT_STRING], [/* ident string for Open MPI */ ++#undef OPAL_IDENT_STRING]) ++m4trace:configure.ac:173: -1- _m4_warn([obsolete], [The macro `AM_ENABLE_SHARED' is obsolete. ++You should run autoupdate.], [config/ltoptions.m4:202: AM_ENABLE_SHARED is expanded from... ++configure.ac:173: the top level]) ++m4trace:configure.ac:174: -1- _m4_warn([obsolete], [The macro `AM_DISABLE_STATIC' is obsolete. ++You should run autoupdate.], [config/ltoptions.m4:257: AM_DISABLE_STATIC is expanded from... ++configure.ac:174: the top level]) ++m4trace:configure.ac:176: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_setup_wrappers.m4:31: OMPI_SETUP_WRAPPER_INIT is expanded from... ++configure.ac:176: the top level]) ++m4trace:configure.ac:176: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_setup_wrappers.m4:31: OMPI_SETUP_WRAPPER_INIT is expanded from... ++configure.ac:176: the top level]) ++m4trace:configure.ac:176: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_setup_wrappers.m4:31: OMPI_SETUP_WRAPPER_INIT is expanded from... ++configure.ac:176: the top level]) ++m4trace:configure.ac:176: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_setup_wrappers.m4:31: OMPI_SETUP_WRAPPER_INIT is expanded from... ++configure.ac:176: the top level]) ++m4trace:configure.ac:176: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_setup_wrappers.m4:31: OMPI_SETUP_WRAPPER_INIT is expanded from... ++configure.ac:176: the top level]) ++m4trace:configure.ac:176: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_setup_wrappers.m4:31: OMPI_SETUP_WRAPPER_INIT is expanded from... ++configure.ac:176: the top level]) ++m4trace:configure.ac:188: -1- AC_SUBST([CC]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([CC]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^CC$]) ++m4trace:configure.ac:188: -1- AC_SUBST([CFLAGS]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([CFLAGS]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^CFLAGS$]) ++m4trace:configure.ac:188: -1- AC_SUBST([LDFLAGS]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([LDFLAGS]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^LDFLAGS$]) ++m4trace:configure.ac:188: -1- AC_SUBST([LIBS]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([LIBS]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^LIBS$]) ++m4trace:configure.ac:188: -1- AC_SUBST([CPPFLAGS]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([CPPFLAGS]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^CPPFLAGS$]) ++m4trace:configure.ac:188: -1- AC_SUBST([CC]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([CC]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^CC$]) ++m4trace:configure.ac:188: -1- AC_SUBST([CC]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([CC]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^CC$]) ++m4trace:configure.ac:188: -1- AC_SUBST([CC]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([CC]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^CC$]) ++m4trace:configure.ac:188: -1- AC_SUBST([CC]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([CC]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^CC$]) ++m4trace:configure.ac:188: -1- AC_SUBST([ac_ct_CC]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([ac_ct_CC]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^ac_ct_CC$]) ++m4trace:configure.ac:188: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([EXEEXT]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^EXEEXT$]) ++m4trace:configure.ac:188: -1- AC_SUBST([OBJEXT], [$ac_cv_objext]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([OBJEXT]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^OBJEXT$]) ++m4trace:configure.ac:188: -1- AC_SUBST([DEPDIR], ["${am__leading_dot}deps"]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([DEPDIR]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^DEPDIR$]) ++m4trace:configure.ac:188: -1- AC_SUBST([am__include]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([am__include]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^am__include$]) ++m4trace:configure.ac:188: -1- AC_SUBST([am__quote]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([am__quote]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^am__quote$]) ++m4trace:configure.ac:188: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) ++m4trace:configure.ac:188: -1- AC_SUBST([AMDEP_TRUE]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([AMDEP_TRUE]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^AMDEP_TRUE$]) ++m4trace:configure.ac:188: -1- AC_SUBST([AMDEP_FALSE]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([AMDEP_FALSE]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^AMDEP_FALSE$]) ++m4trace:configure.ac:188: -1- _AM_SUBST_NOTMAKE([AMDEP_TRUE]) ++m4trace:configure.ac:188: -1- _AM_SUBST_NOTMAKE([AMDEP_FALSE]) ++m4trace:configure.ac:188: -1- AC_SUBST([AMDEPBACKSLASH]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([AMDEPBACKSLASH]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^AMDEPBACKSLASH$]) ++m4trace:configure.ac:188: -1- _AM_SUBST_NOTMAKE([AMDEPBACKSLASH]) ++m4trace:configure.ac:188: -1- AC_SUBST([CCDEPMODE], [depmode=$am_cv_CC_dependencies_compiler_type]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([CCDEPMODE]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^CCDEPMODE$]) ++m4trace:configure.ac:188: -1- AM_CONDITIONAL([am__fastdepCC], [ ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_CC_dependencies_compiler_type" = gcc3]) ++m4trace:configure.ac:188: -1- AC_SUBST([am__fastdepCC_TRUE]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([am__fastdepCC_TRUE]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^am__fastdepCC_TRUE$]) ++m4trace:configure.ac:188: -1- AC_SUBST([am__fastdepCC_FALSE]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([am__fastdepCC_FALSE]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^am__fastdepCC_FALSE$]) ++m4trace:configure.ac:188: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_TRUE]) ++m4trace:configure.ac:188: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_FALSE]) ++m4trace:configure.ac:188: -1- AC_DEFINE_TRACE_LITERAL([OMPI_CC]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^OMPI_CC$]) ++m4trace:configure.ac:188: -1- AH_OUTPUT([OMPI_CC], [/* OMPI underlying C compiler */ ++#undef OMPI_CC]) ++m4trace:configure.ac:188: -1- AC_SUBST([OMPI_CC_ABSOLUTE]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([OMPI_CC_ABSOLUTE]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^OMPI_CC_ABSOLUTE$]) ++m4trace:configure.ac:188: -1- AM_PROG_CC_C_O ++m4trace:configure.ac:188: -1- AC_DEFINE_TRACE_LITERAL([NO_MINUS_C_MINUS_O]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^NO_MINUS_C_MINUS_O$]) ++m4trace:configure.ac:188: -1- AH_OUTPUT([NO_MINUS_C_MINUS_O], [/* Define to 1 if your C compiler doesn\'t accept -c and -o together. */ ++#undef NO_MINUS_C_MINUS_O]) ++m4trace:configure.ac:188: -1- AC_REQUIRE_AUX_FILE([compile]) ++m4trace:configure.ac:188: -1- AC_SUBST([CPP]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([CPP]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^CPP$]) ++m4trace:configure.ac:188: -1- AC_SUBST([CPPFLAGS]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([CPPFLAGS]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^CPPFLAGS$]) ++m4trace:configure.ac:188: -1- AC_SUBST([CPP]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([CPP]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^CPP$]) ++m4trace:configure.ac:188: -1- AC_SUBST([GREP]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([GREP]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^GREP$]) ++m4trace:configure.ac:188: -1- AC_SUBST([GREP]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([GREP]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^GREP$]) ++m4trace:configure.ac:188: -1- AC_SUBST([EGREP]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([EGREP]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^EGREP$]) ++m4trace:configure.ac:188: -1- AC_SUBST([EGREP]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([EGREP]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^EGREP$]) ++m4trace:configure.ac:188: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^STDC_HEADERS$]) ++m4trace:configure.ac:188: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */ ++#undef STDC_HEADERS]) ++m4trace:configure.ac:188: -1- AH_OUTPUT([_GNU_SOURCE], [/* Enable GNU extensions on systems that have them. */ ++#ifndef _GNU_SOURCE ++# undef _GNU_SOURCE ++#endif]) ++m4trace:configure.ac:188: -1- AC_DEFINE_TRACE_LITERAL([_GNU_SOURCE]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^_GNU_SOURCE$]) ++m4trace:configure.ac:188: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_setup_cc.m4:26: OMPI_SETUP_CC is expanded from... ++configure.ac:188: the top level]) ++m4trace:configure.ac:188: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_setup_cc.m4:26: OMPI_SETUP_CC is expanded from... ++configure.ac:188: the top level]) ++m4trace:configure.ac:188: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_setup_cc.m4:26: OMPI_SETUP_CC is expanded from... ++configure.ac:188: the top level]) ++m4trace:configure.ac:188: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_setup_cc.m4:26: OMPI_SETUP_CC is expanded from... ++configure.ac:188: the top level]) ++m4trace:configure.ac:188: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_setup_cc.m4:26: OMPI_SETUP_CC is expanded from... ++configure.ac:188: the top level]) ++m4trace:configure.ac:188: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_setup_cc.m4:26: OMPI_SETUP_CC is expanded from... ++configure.ac:188: the top level]) ++m4trace:configure.ac:188: -1- AC_DEFINE_TRACE_LITERAL([OMPI_C_HAVE_BUILTIN_EXPECT]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^OMPI_C_HAVE_BUILTIN_EXPECT$]) ++m4trace:configure.ac:188: -1- AH_OUTPUT([OMPI_C_HAVE_BUILTIN_EXPECT], [/* Whether C compiler supports __builtin_expect */ ++#undef OMPI_C_HAVE_BUILTIN_EXPECT]) ++m4trace:configure.ac:188: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_setup_cc.m4:26: OMPI_SETUP_CC is expanded from... ++configure.ac:188: the top level]) ++m4trace:configure.ac:188: -1- AC_DEFINE_TRACE_LITERAL([OMPI_C_HAVE_BUILTIN_PREFETCH]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^OMPI_C_HAVE_BUILTIN_PREFETCH$]) ++m4trace:configure.ac:188: -1- AH_OUTPUT([OMPI_C_HAVE_BUILTIN_PREFETCH], [/* Whether C compiler supports __builtin_prefetch */ ++#undef OMPI_C_HAVE_BUILTIN_PREFETCH]) ++m4trace:configure.ac:188: -1- AC_SUBST([CFLAGS_WITHOUT_OPTFLAGS]) ++m4trace:configure.ac:188: -1- AC_SUBST_TRACE([CFLAGS_WITHOUT_OPTFLAGS]) ++m4trace:configure.ac:188: -1- m4_pattern_allow([^CFLAGS_WITHOUT_OPTFLAGS$]) ++m4trace:configure.ac:192: -1- AM_CONDITIONAL([OMPI_NEED_WINDOWS_REPLACEMENTS], [test "$ompi_cv_c_compiler_vendor" = "microsoft" ]) ++m4trace:configure.ac:192: -1- AC_SUBST([OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE]) ++m4trace:configure.ac:192: -1- AC_SUBST_TRACE([OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE]) ++m4trace:configure.ac:192: -1- m4_pattern_allow([^OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE$]) ++m4trace:configure.ac:192: -1- AC_SUBST([OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE]) ++m4trace:configure.ac:192: -1- AC_SUBST_TRACE([OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE]) ++m4trace:configure.ac:192: -1- m4_pattern_allow([^OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE$]) ++m4trace:configure.ac:192: -1- _AM_SUBST_NOTMAKE([OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE]) ++m4trace:configure.ac:192: -1- _AM_SUBST_NOTMAKE([OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE]) ++m4trace:configure.ac:196: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++config/ompi_interix.m4:24: OMPI_INTERIX is expanded from... ++configure.ac:196: the top level]) ++m4trace:configure.ac:200: -1- AC_DEFINE_TRACE_LITERAL([OMPI_CC_USE_PRAGMA_IDENT]) ++m4trace:configure.ac:200: -1- m4_pattern_allow([^OMPI_CC_USE_PRAGMA_IDENT$]) ++m4trace:configure.ac:200: -1- AH_OUTPUT([OMPI_CC_USE_PRAGMA_IDENT], [/* Use #pragma ident strings for C files */ ++#undef OMPI_CC_USE_PRAGMA_IDENT]) ++m4trace:configure.ac:200: -1- AC_DEFINE_TRACE_LITERAL([OMPI_CC_USE_IDENT]) ++m4trace:configure.ac:200: -1- m4_pattern_allow([^OMPI_CC_USE_IDENT$]) ++m4trace:configure.ac:200: -1- AH_OUTPUT([OMPI_CC_USE_IDENT], [/* Use #ident strings for C files */ ++#undef OMPI_CC_USE_IDENT]) ++m4trace:configure.ac:200: -1- AC_DEFINE_TRACE_LITERAL([OMPI_CC_USE_PRAGMA_COMMENT]) ++m4trace:configure.ac:200: -1- m4_pattern_allow([^OMPI_CC_USE_PRAGMA_COMMENT$]) ++m4trace:configure.ac:200: -1- AH_OUTPUT([OMPI_CC_USE_PRAGMA_COMMENT], [/* Use #pragma comment for C files */ ++#undef OMPI_CC_USE_PRAGMA_COMMENT]) ++m4trace:configure.ac:200: -1- AC_DEFINE_TRACE_LITERAL([OMPI_CC_USE_CONST_CHAR_IDENT]) ++m4trace:configure.ac:200: -1- m4_pattern_allow([^OMPI_CC_USE_CONST_CHAR_IDENT$]) ++m4trace:configure.ac:200: -1- AH_OUTPUT([OMPI_CC_USE_CONST_CHAR_IDENT], [/* Use static const char[] strings for C files */ ++#undef OMPI_CC_USE_CONST_CHAR_IDENT]) ++m4trace:configure.ac:206: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_TYPES_H]) ++m4trace:configure.ac:206: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_STAT_H]) ++m4trace:configure.ac:206: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_STDLIB_H]) ++m4trace:configure.ac:206: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_STRING_H]) ++m4trace:configure.ac:206: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_MEMORY_H]) ++m4trace:configure.ac:206: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_STRINGS_H]) ++m4trace:configure.ac:206: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_INTTYPES_H]) ++m4trace:configure.ac:206: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_STDINT_H]) ++m4trace:configure.ac:206: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_UNISTD_H]) ++m4trace:configure.ac:206: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LONG_LONG]) ++m4trace:configure.ac:206: -1- m4_pattern_allow([^HAVE_LONG_LONG$]) ++m4trace:configure.ac:206: -1- AH_OUTPUT([HAVE_LONG_LONG], [/* Define to 1 if the system has the type `long long\'. */ ++#undef HAVE_LONG_LONG]) ++m4trace:configure.ac:207: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LONG_DOUBLE]) ++m4trace:configure.ac:207: -1- m4_pattern_allow([^HAVE_LONG_DOUBLE$]) ++m4trace:configure.ac:207: -1- AH_OUTPUT([HAVE_LONG_DOUBLE], [/* Define to 1 if the system has the type `long double\'. */ ++#undef HAVE_LONG_DOUBLE]) ++m4trace:configure.ac:208: -1- AC_DEFINE_TRACE_LITERAL([HAVE_INT8_T]) ++m4trace:configure.ac:208: -1- m4_pattern_allow([^HAVE_INT8_T$]) ++m4trace:configure.ac:208: -1- AH_OUTPUT([HAVE_INT8_T], [/* Define to 1 if the system has the type `int8_t\'. */ ++#undef HAVE_INT8_T]) ++m4trace:configure.ac:209: -1- AC_DEFINE_TRACE_LITERAL([HAVE_UINT8_T]) ++m4trace:configure.ac:209: -1- m4_pattern_allow([^HAVE_UINT8_T$]) ++m4trace:configure.ac:209: -1- AH_OUTPUT([HAVE_UINT8_T], [/* Define to 1 if the system has the type `uint8_t\'. */ ++#undef HAVE_UINT8_T]) ++m4trace:configure.ac:210: -1- AC_DEFINE_TRACE_LITERAL([HAVE_INT16_T]) ++m4trace:configure.ac:210: -1- m4_pattern_allow([^HAVE_INT16_T$]) ++m4trace:configure.ac:210: -1- AH_OUTPUT([HAVE_INT16_T], [/* Define to 1 if the system has the type `int16_t\'. */ ++#undef HAVE_INT16_T]) ++m4trace:configure.ac:211: -1- AC_DEFINE_TRACE_LITERAL([HAVE_UINT16_T]) ++m4trace:configure.ac:211: -1- m4_pattern_allow([^HAVE_UINT16_T$]) ++m4trace:configure.ac:211: -1- AH_OUTPUT([HAVE_UINT16_T], [/* Define to 1 if the system has the type `uint16_t\'. */ ++#undef HAVE_UINT16_T]) ++m4trace:configure.ac:212: -1- AC_DEFINE_TRACE_LITERAL([HAVE_INT32_T]) ++m4trace:configure.ac:212: -1- m4_pattern_allow([^HAVE_INT32_T$]) ++m4trace:configure.ac:212: -1- AH_OUTPUT([HAVE_INT32_T], [/* Define to 1 if the system has the type `int32_t\'. */ ++#undef HAVE_INT32_T]) ++m4trace:configure.ac:213: -1- AC_DEFINE_TRACE_LITERAL([HAVE_UINT32_T]) ++m4trace:configure.ac:213: -1- m4_pattern_allow([^HAVE_UINT32_T$]) ++m4trace:configure.ac:213: -1- AH_OUTPUT([HAVE_UINT32_T], [/* Define to 1 if the system has the type `uint32_t\'. */ ++#undef HAVE_UINT32_T]) ++m4trace:configure.ac:214: -1- AC_DEFINE_TRACE_LITERAL([HAVE_INT64_T]) ++m4trace:configure.ac:214: -1- m4_pattern_allow([^HAVE_INT64_T$]) ++m4trace:configure.ac:214: -1- AH_OUTPUT([HAVE_INT64_T], [/* Define to 1 if the system has the type `int64_t\'. */ ++#undef HAVE_INT64_T]) ++m4trace:configure.ac:215: -1- AC_DEFINE_TRACE_LITERAL([HAVE_UINT64_T]) ++m4trace:configure.ac:215: -1- m4_pattern_allow([^HAVE_UINT64_T$]) ++m4trace:configure.ac:215: -1- AH_OUTPUT([HAVE_UINT64_T], [/* Define to 1 if the system has the type `uint64_t\'. */ ++#undef HAVE_UINT64_T]) ++m4trace:configure.ac:216: -1- AC_DEFINE_TRACE_LITERAL([HAVE_INTPTR_T]) ++m4trace:configure.ac:216: -1- m4_pattern_allow([^HAVE_INTPTR_T$]) ++m4trace:configure.ac:216: -1- AH_OUTPUT([HAVE_INTPTR_T], [/* Define to 1 if the system has the type `intptr_t\'. */ ++#undef HAVE_INTPTR_T]) ++m4trace:configure.ac:217: -1- AC_DEFINE_TRACE_LITERAL([HAVE_UINTPTR_T]) ++m4trace:configure.ac:217: -1- m4_pattern_allow([^HAVE_UINTPTR_T$]) ++m4trace:configure.ac:217: -1- AH_OUTPUT([HAVE_UINTPTR_T], [/* Define to 1 if the system has the type `uintptr_t\'. */ ++#undef HAVE_UINTPTR_T]) ++m4trace:configure.ac:218: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MODE_T]) ++m4trace:configure.ac:218: -1- m4_pattern_allow([^HAVE_MODE_T$]) ++m4trace:configure.ac:218: -1- AH_OUTPUT([HAVE_MODE_T], [/* Define to 1 if the system has the type `mode_t\'. */ ++#undef HAVE_MODE_T]) ++m4trace:configure.ac:219: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SSIZE_T]) ++m4trace:configure.ac:219: -1- m4_pattern_allow([^HAVE_SSIZE_T$]) ++m4trace:configure.ac:219: -1- AH_OUTPUT([HAVE_SSIZE_T], [/* Define to 1 if the system has the type `ssize_t\'. */ ++#undef HAVE_SSIZE_T]) ++m4trace:configure.ac:220: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PTRDIFF_T]) ++m4trace:configure.ac:220: -1- m4_pattern_allow([^HAVE_PTRDIFF_T$]) ++m4trace:configure.ac:220: -1- AH_OUTPUT([HAVE_PTRDIFF_T], [/* Define to 1 if the system has the type `ptrdiff_t\'. */ ++#undef HAVE_PTRDIFF_T]) ++m4trace:configure.ac:226: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_CHAR]) ++m4trace:configure.ac:226: -1- m4_pattern_allow([^SIZEOF_CHAR$]) ++m4trace:configure.ac:226: -1- AH_OUTPUT([SIZEOF_CHAR], [/* The size of `char\', as computed by sizeof. */ ++#undef SIZEOF_CHAR]) ++m4trace:configure.ac:227: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_SHORT]) ++m4trace:configure.ac:227: -1- m4_pattern_allow([^SIZEOF_SHORT$]) ++m4trace:configure.ac:227: -1- AH_OUTPUT([SIZEOF_SHORT], [/* The size of `short\', as computed by sizeof. */ ++#undef SIZEOF_SHORT]) ++m4trace:configure.ac:228: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_INT]) ++m4trace:configure.ac:228: -1- m4_pattern_allow([^SIZEOF_INT$]) ++m4trace:configure.ac:228: -1- AH_OUTPUT([SIZEOF_INT], [/* The size of `int\', as computed by sizeof. */ ++#undef SIZEOF_INT]) ++m4trace:configure.ac:229: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_LONG]) ++m4trace:configure.ac:229: -1- m4_pattern_allow([^SIZEOF_LONG$]) ++m4trace:configure.ac:229: -1- AH_OUTPUT([SIZEOF_LONG], [/* The size of `long\', as computed by sizeof. */ ++#undef SIZEOF_LONG]) ++m4trace:configure.ac:231: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_LONG_LONG]) ++m4trace:configure.ac:231: -1- m4_pattern_allow([^SIZEOF_LONG_LONG$]) ++m4trace:configure.ac:231: -1- AH_OUTPUT([SIZEOF_LONG_LONG], [/* The size of `long long\', as computed by sizeof. */ ++#undef SIZEOF_LONG_LONG]) ++m4trace:configure.ac:234: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_LONG_DOUBLE]) ++m4trace:configure.ac:234: -1- m4_pattern_allow([^SIZEOF_LONG_DOUBLE$]) ++m4trace:configure.ac:234: -1- AH_OUTPUT([SIZEOF_LONG_DOUBLE], [/* The size of `long double\', as computed by sizeof. */ ++#undef SIZEOF_LONG_DOUBLE]) ++m4trace:configure.ac:236: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_FLOAT]) ++m4trace:configure.ac:236: -1- m4_pattern_allow([^SIZEOF_FLOAT$]) ++m4trace:configure.ac:236: -1- AH_OUTPUT([SIZEOF_FLOAT], [/* The size of `float\', as computed by sizeof. */ ++#undef SIZEOF_FLOAT]) ++m4trace:configure.ac:237: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_DOUBLE]) ++m4trace:configure.ac:237: -1- m4_pattern_allow([^SIZEOF_DOUBLE$]) ++m4trace:configure.ac:237: -1- AH_OUTPUT([SIZEOF_DOUBLE], [/* The size of `double\', as computed by sizeof. */ ++#undef SIZEOF_DOUBLE]) ++m4trace:configure.ac:238: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_VOID_P]) ++m4trace:configure.ac:238: -1- m4_pattern_allow([^SIZEOF_VOID_P$]) ++m4trace:configure.ac:238: -1- AH_OUTPUT([SIZEOF_VOID_P], [/* The size of `void *\', as computed by sizeof. */ ++#undef SIZEOF_VOID_P]) ++m4trace:configure.ac:239: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_SIZE_T]) ++m4trace:configure.ac:239: -1- m4_pattern_allow([^SIZEOF_SIZE_T$]) ++m4trace:configure.ac:239: -1- AH_OUTPUT([SIZEOF_SIZE_T], [/* The size of `size_t\', as computed by sizeof. */ ++#undef SIZEOF_SIZE_T]) ++m4trace:configure.ac:241: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_SSIZE_T]) ++m4trace:configure.ac:241: -1- m4_pattern_allow([^SIZEOF_SSIZE_T$]) ++m4trace:configure.ac:241: -1- AH_OUTPUT([SIZEOF_SSIZE_T], [/* The size of `ssize_t\', as computed by sizeof. */ ++#undef SIZEOF_SSIZE_T]) ++m4trace:configure.ac:244: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_PTRDIFF_T]) ++m4trace:configure.ac:244: -1- m4_pattern_allow([^SIZEOF_PTRDIFF_T$]) ++m4trace:configure.ac:244: -1- AH_OUTPUT([SIZEOF_PTRDIFF_T], [/* The size of `ptrdiff_t\', as computed by sizeof. */ ++#undef SIZEOF_PTRDIFF_T]) ++m4trace:configure.ac:251: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:251: the top level]) ++m4trace:configure.ac:251: -1- _m4_warn([obsolete], [The macro `_AC_COMPUTE_INT' is obsolete and will be deleted in a ++future version or Autoconf. Hence, it is suggested that you use ++instead the public AC_COMPUTE_INT macro. Note that the arguments are ++slightly different between the two.], [../../lib/autoconf/general.m4:2723: _AC_COMPUTE_INT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:251: the top level]) ++m4trace:configure.ac:251: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_CHAR]) ++m4trace:configure.ac:251: -1- m4_pattern_allow([^OMPI_ALIGNMENT_CHAR$]) ++m4trace:configure.ac:251: -1- AH_OUTPUT([OMPI_ALIGNMENT_CHAR], [/* Alignment of type char */ ++#undef OMPI_ALIGNMENT_CHAR]) ++m4trace:configure.ac:252: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:252: the top level]) ++m4trace:configure.ac:252: -1- _m4_warn([obsolete], [The macro `_AC_COMPUTE_INT' is obsolete and will be deleted in a ++future version or Autoconf. Hence, it is suggested that you use ++instead the public AC_COMPUTE_INT macro. Note that the arguments are ++slightly different between the two.], [../../lib/autoconf/general.m4:2723: _AC_COMPUTE_INT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:252: the top level]) ++m4trace:configure.ac:252: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_SHORT]) ++m4trace:configure.ac:252: -1- m4_pattern_allow([^OMPI_ALIGNMENT_SHORT$]) ++m4trace:configure.ac:252: -1- AH_OUTPUT([OMPI_ALIGNMENT_SHORT], [/* Alignment of type short */ ++#undef OMPI_ALIGNMENT_SHORT]) ++m4trace:configure.ac:253: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:253: the top level]) ++m4trace:configure.ac:253: -1- _m4_warn([obsolete], [The macro `_AC_COMPUTE_INT' is obsolete and will be deleted in a ++future version or Autoconf. Hence, it is suggested that you use ++instead the public AC_COMPUTE_INT macro. Note that the arguments are ++slightly different between the two.], [../../lib/autoconf/general.m4:2723: _AC_COMPUTE_INT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:253: the top level]) ++m4trace:configure.ac:253: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_WCHAR]) ++m4trace:configure.ac:253: -1- m4_pattern_allow([^OMPI_ALIGNMENT_WCHAR$]) ++m4trace:configure.ac:253: -1- AH_OUTPUT([OMPI_ALIGNMENT_WCHAR], [/* Alignment of type wchar_t */ ++#undef OMPI_ALIGNMENT_WCHAR]) ++m4trace:configure.ac:254: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:254: the top level]) ++m4trace:configure.ac:254: -1- _m4_warn([obsolete], [The macro `_AC_COMPUTE_INT' is obsolete and will be deleted in a ++future version or Autoconf. Hence, it is suggested that you use ++instead the public AC_COMPUTE_INT macro. Note that the arguments are ++slightly different between the two.], [../../lib/autoconf/general.m4:2723: _AC_COMPUTE_INT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:254: the top level]) ++m4trace:configure.ac:254: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_INT]) ++m4trace:configure.ac:254: -1- m4_pattern_allow([^OMPI_ALIGNMENT_INT$]) ++m4trace:configure.ac:254: -1- AH_OUTPUT([OMPI_ALIGNMENT_INT], [/* Alignment of type int */ ++#undef OMPI_ALIGNMENT_INT]) ++m4trace:configure.ac:255: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:255: the top level]) ++m4trace:configure.ac:255: -1- _m4_warn([obsolete], [The macro `_AC_COMPUTE_INT' is obsolete and will be deleted in a ++future version or Autoconf. Hence, it is suggested that you use ++instead the public AC_COMPUTE_INT macro. Note that the arguments are ++slightly different between the two.], [../../lib/autoconf/general.m4:2723: _AC_COMPUTE_INT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:255: the top level]) ++m4trace:configure.ac:255: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_LONG]) ++m4trace:configure.ac:255: -1- m4_pattern_allow([^OMPI_ALIGNMENT_LONG$]) ++m4trace:configure.ac:255: -1- AH_OUTPUT([OMPI_ALIGNMENT_LONG], [/* Alignment of type long */ ++#undef OMPI_ALIGNMENT_LONG]) ++m4trace:configure.ac:257: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:257: the top level]) ++m4trace:configure.ac:257: -1- _m4_warn([obsolete], [The macro `_AC_COMPUTE_INT' is obsolete and will be deleted in a ++future version or Autoconf. Hence, it is suggested that you use ++instead the public AC_COMPUTE_INT macro. Note that the arguments are ++slightly different between the two.], [../../lib/autoconf/general.m4:2723: _AC_COMPUTE_INT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:257: the top level]) ++m4trace:configure.ac:257: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_LONG_LONG]) ++m4trace:configure.ac:257: -1- m4_pattern_allow([^OMPI_ALIGNMENT_LONG_LONG$]) ++m4trace:configure.ac:257: -1- AH_OUTPUT([OMPI_ALIGNMENT_LONG_LONG], [/* Alignment of type long long */ ++#undef OMPI_ALIGNMENT_LONG_LONG]) ++m4trace:configure.ac:259: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:259: the top level]) ++m4trace:configure.ac:259: -1- _m4_warn([obsolete], [The macro `_AC_COMPUTE_INT' is obsolete and will be deleted in a ++future version or Autoconf. Hence, it is suggested that you use ++instead the public AC_COMPUTE_INT macro. Note that the arguments are ++slightly different between the two.], [../../lib/autoconf/general.m4:2723: _AC_COMPUTE_INT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:259: the top level]) ++m4trace:configure.ac:259: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_FLOAT]) ++m4trace:configure.ac:259: -1- m4_pattern_allow([^OMPI_ALIGNMENT_FLOAT$]) ++m4trace:configure.ac:259: -1- AH_OUTPUT([OMPI_ALIGNMENT_FLOAT], [/* Alignment of type float */ ++#undef OMPI_ALIGNMENT_FLOAT]) ++m4trace:configure.ac:260: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:260: the top level]) ++m4trace:configure.ac:260: -1- _m4_warn([obsolete], [The macro `_AC_COMPUTE_INT' is obsolete and will be deleted in a ++future version or Autoconf. Hence, it is suggested that you use ++instead the public AC_COMPUTE_INT macro. Note that the arguments are ++slightly different between the two.], [../../lib/autoconf/general.m4:2723: _AC_COMPUTE_INT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:260: the top level]) ++m4trace:configure.ac:260: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_DOUBLE]) ++m4trace:configure.ac:260: -1- m4_pattern_allow([^OMPI_ALIGNMENT_DOUBLE$]) ++m4trace:configure.ac:260: -1- AH_OUTPUT([OMPI_ALIGNMENT_DOUBLE], [/* Alignment of type double */ ++#undef OMPI_ALIGNMENT_DOUBLE]) ++m4trace:configure.ac:262: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:262: the top level]) ++m4trace:configure.ac:262: -1- _m4_warn([obsolete], [The macro `_AC_COMPUTE_INT' is obsolete and will be deleted in a ++future version or Autoconf. Hence, it is suggested that you use ++instead the public AC_COMPUTE_INT macro. Note that the arguments are ++slightly different between the two.], [../../lib/autoconf/general.m4:2723: _AC_COMPUTE_INT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:262: the top level]) ++m4trace:configure.ac:262: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_LONG_DOUBLE]) ++m4trace:configure.ac:262: -1- m4_pattern_allow([^OMPI_ALIGNMENT_LONG_DOUBLE$]) ++m4trace:configure.ac:262: -1- AH_OUTPUT([OMPI_ALIGNMENT_LONG_DOUBLE], [/* Alignment of type long double */ ++#undef OMPI_ALIGNMENT_LONG_DOUBLE]) ++m4trace:configure.ac:264: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:264: the top level]) ++m4trace:configure.ac:264: -1- _m4_warn([obsolete], [The macro `_AC_COMPUTE_INT' is obsolete and will be deleted in a ++future version or Autoconf. Hence, it is suggested that you use ++instead the public AC_COMPUTE_INT macro. Note that the arguments are ++slightly different between the two.], [../../lib/autoconf/general.m4:2723: _AC_COMPUTE_INT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:264: the top level]) ++m4trace:configure.ac:264: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_VOID_P]) ++m4trace:configure.ac:264: -1- m4_pattern_allow([^OMPI_ALIGNMENT_VOID_P$]) ++m4trace:configure.ac:264: -1- AH_OUTPUT([OMPI_ALIGNMENT_VOID_P], [/* Alignment of type void * */ ++#undef OMPI_ALIGNMENT_VOID_P]) ++m4trace:configure.ac:276: -1- AC_DEFINE_TRACE_LITERAL([OMPI_NEED_C_BOOL]) ++m4trace:configure.ac:276: -1- m4_pattern_allow([^OMPI_NEED_C_BOOL$]) ++m4trace:configure.ac:276: -1- AH_OUTPUT([OMPI_NEED_C_BOOL], [/* Whether the C compiler supports "bool" without any other help (such as ++ ) */ ++#undef OMPI_NEED_C_BOOL]) ++m4trace:configure.ac:305: -1- AH_OUTPUT([inline], [/* Define to `__inline__\' or `__inline\' if that\'s what the C compiler ++ calls it, or to nothing if \'inline\' is not supported under any name. */ ++#ifndef __cplusplus ++#undef inline ++#endif]) ++m4trace:configure.ac:312: -1- AC_DEFINE_TRACE_LITERAL([restrict]) ++m4trace:configure.ac:312: -1- m4_pattern_allow([^restrict$]) ++m4trace:configure.ac:312: -1- AH_OUTPUT([restrict], [/* Define to equivalent of C99 restrict keyword, or to nothing if this is not ++ supported. Do not define if restrict is supported directly. */ ++#undef restrict]) ++m4trace:configure.ac:312: -1- AC_DEFINE_TRACE_LITERAL([restrict]) ++m4trace:configure.ac:312: -1- m4_pattern_allow([^restrict$]) ++m4trace:configure.ac:320: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++config/ompi_check_icc.m4:20: OMPI_CHECK_ICC_VARARGS is expanded from... ++configure.ac:320: the top level]) ++m4trace:configure.ac:355: -1- AM_CONDITIONAL([WANT_MPI_BINDINGS_LAYER], [test "$WANT_MPI_PROFILING" = 0 -o "$OMPI_PROFILING_COMPILE_SEPARATELY" = 1]) ++m4trace:configure.ac:355: -1- AC_SUBST([WANT_MPI_BINDINGS_LAYER_TRUE]) ++m4trace:configure.ac:355: -1- AC_SUBST_TRACE([WANT_MPI_BINDINGS_LAYER_TRUE]) ++m4trace:configure.ac:355: -1- m4_pattern_allow([^WANT_MPI_BINDINGS_LAYER_TRUE$]) ++m4trace:configure.ac:355: -1- AC_SUBST([WANT_MPI_BINDINGS_LAYER_FALSE]) ++m4trace:configure.ac:355: -1- AC_SUBST_TRACE([WANT_MPI_BINDINGS_LAYER_FALSE]) ++m4trace:configure.ac:355: -1- m4_pattern_allow([^WANT_MPI_BINDINGS_LAYER_FALSE$]) ++m4trace:configure.ac:355: -1- _AM_SUBST_NOTMAKE([WANT_MPI_BINDINGS_LAYER_TRUE]) ++m4trace:configure.ac:355: -1- _AM_SUBST_NOTMAKE([WANT_MPI_BINDINGS_LAYER_FALSE]) ++m4trace:configure.ac:358: -1- AM_CONDITIONAL([WANT_PMPI_BINDINGS_LAYER], [test "$WANT_MPI_PROFILING" = 1]) ++m4trace:configure.ac:358: -1- AC_SUBST([WANT_PMPI_BINDINGS_LAYER_TRUE]) ++m4trace:configure.ac:358: -1- AC_SUBST_TRACE([WANT_PMPI_BINDINGS_LAYER_TRUE]) ++m4trace:configure.ac:358: -1- m4_pattern_allow([^WANT_PMPI_BINDINGS_LAYER_TRUE$]) ++m4trace:configure.ac:358: -1- AC_SUBST([WANT_PMPI_BINDINGS_LAYER_FALSE]) ++m4trace:configure.ac:358: -1- AC_SUBST_TRACE([WANT_PMPI_BINDINGS_LAYER_FALSE]) ++m4trace:configure.ac:358: -1- m4_pattern_allow([^WANT_PMPI_BINDINGS_LAYER_FALSE$]) ++m4trace:configure.ac:358: -1- _AM_SUBST_NOTMAKE([WANT_PMPI_BINDINGS_LAYER_TRUE]) ++m4trace:configure.ac:358: -1- _AM_SUBST_NOTMAKE([WANT_PMPI_BINDINGS_LAYER_FALSE]) ++m4trace:configure.ac:360: -1- AM_CONDITIONAL([COMPILE_PROFILING_SEPARATELY], [test "$OMPI_PROFILING_COMPILE_SEPARATELY" = 1]) ++m4trace:configure.ac:360: -1- AC_SUBST([COMPILE_PROFILING_SEPARATELY_TRUE]) ++m4trace:configure.ac:360: -1- AC_SUBST_TRACE([COMPILE_PROFILING_SEPARATELY_TRUE]) ++m4trace:configure.ac:360: -1- m4_pattern_allow([^COMPILE_PROFILING_SEPARATELY_TRUE$]) ++m4trace:configure.ac:360: -1- AC_SUBST([COMPILE_PROFILING_SEPARATELY_FALSE]) ++m4trace:configure.ac:360: -1- AC_SUBST_TRACE([COMPILE_PROFILING_SEPARATELY_FALSE]) ++m4trace:configure.ac:360: -1- m4_pattern_allow([^COMPILE_PROFILING_SEPARATELY_FALSE$]) ++m4trace:configure.ac:360: -1- _AM_SUBST_NOTMAKE([COMPILE_PROFILING_SEPARATELY_TRUE]) ++m4trace:configure.ac:360: -1- _AM_SUBST_NOTMAKE([COMPILE_PROFILING_SEPARATELY_FALSE]) ++m4trace:configure.ac:362: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ENABLE_MPI_PROFILING]) ++m4trace:configure.ac:362: -1- m4_pattern_allow([^OMPI_ENABLE_MPI_PROFILING$]) ++m4trace:configure.ac:362: -1- AH_OUTPUT([OMPI_ENABLE_MPI_PROFILING], [/* Whether we want MPI profiling or not */ ++#undef OMPI_ENABLE_MPI_PROFILING]) ++m4trace:configure.ac:364: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_WEAK_SYMBOLS]) ++m4trace:configure.ac:364: -1- m4_pattern_allow([^OMPI_HAVE_WEAK_SYMBOLS$]) ++m4trace:configure.ac:364: -1- AH_OUTPUT([OMPI_HAVE_WEAK_SYMBOLS], [/* Wehther we have weak symbols or not */ ++#undef OMPI_HAVE_WEAK_SYMBOLS]) ++m4trace:configure.ac:372: -1- AC_SUBST([CXX]) ++m4trace:configure.ac:372: -1- AC_SUBST_TRACE([CXX]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^CXX$]) ++m4trace:configure.ac:372: -1- AC_SUBST([CXXFLAGS]) ++m4trace:configure.ac:372: -1- AC_SUBST_TRACE([CXXFLAGS]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^CXXFLAGS$]) ++m4trace:configure.ac:372: -1- AC_SUBST([LDFLAGS]) ++m4trace:configure.ac:372: -1- AC_SUBST_TRACE([LDFLAGS]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^LDFLAGS$]) ++m4trace:configure.ac:372: -1- AC_SUBST([LIBS]) ++m4trace:configure.ac:372: -1- AC_SUBST_TRACE([LIBS]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^LIBS$]) ++m4trace:configure.ac:372: -1- AC_SUBST([CPPFLAGS]) ++m4trace:configure.ac:372: -1- AC_SUBST_TRACE([CPPFLAGS]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^CPPFLAGS$]) ++m4trace:configure.ac:372: -1- AC_SUBST([CXX]) ++m4trace:configure.ac:372: -1- AC_SUBST_TRACE([CXX]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^CXX$]) ++m4trace:configure.ac:372: -1- AC_SUBST([ac_ct_CXX]) ++m4trace:configure.ac:372: -1- AC_SUBST_TRACE([ac_ct_CXX]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^ac_ct_CXX$]) ++m4trace:configure.ac:372: -1- AC_SUBST([CXXDEPMODE], [depmode=$am_cv_CXX_dependencies_compiler_type]) ++m4trace:configure.ac:372: -1- AC_SUBST_TRACE([CXXDEPMODE]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^CXXDEPMODE$]) ++m4trace:configure.ac:372: -1- AM_CONDITIONAL([am__fastdepCXX], [ ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3]) ++m4trace:configure.ac:372: -1- AC_SUBST([am__fastdepCXX_TRUE]) ++m4trace:configure.ac:372: -1- AC_SUBST_TRACE([am__fastdepCXX_TRUE]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^am__fastdepCXX_TRUE$]) ++m4trace:configure.ac:372: -1- AC_SUBST([am__fastdepCXX_FALSE]) ++m4trace:configure.ac:372: -1- AC_SUBST_TRACE([am__fastdepCXX_FALSE]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^am__fastdepCXX_FALSE$]) ++m4trace:configure.ac:372: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_TRUE]) ++m4trace:configure.ac:372: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_FALSE]) ++m4trace:configure.ac:372: -1- AC_SUBST([CXXCPP]) ++m4trace:configure.ac:372: -1- AC_SUBST_TRACE([CXXCPP]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^CXXCPP$]) ++m4trace:configure.ac:372: -1- AC_SUBST([CPPFLAGS]) ++m4trace:configure.ac:372: -1- AC_SUBST_TRACE([CPPFLAGS]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^CPPFLAGS$]) ++m4trace:configure.ac:372: -1- AC_SUBST([CXXCPP]) ++m4trace:configure.ac:372: -1- AC_SUBST_TRACE([CXXCPP]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^CXXCPP$]) ++m4trace:configure.ac:372: -1- AC_DEFINE_TRACE_LITERAL([OMPI_CXX]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^OMPI_CXX$]) ++m4trace:configure.ac:372: -1- AH_OUTPUT([OMPI_CXX], [/* OMPI underlying C++ compiler */ ++#undef OMPI_CXX]) ++m4trace:configure.ac:372: -1- AC_SUBST([OMPI_CXX_ABSOLUTE]) ++m4trace:configure.ac:372: -1- AC_SUBST_TRACE([OMPI_CXX_ABSOLUTE]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^OMPI_CXX_ABSOLUTE$]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_LANG_SAVE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/lang.m4:167: AC_LANG_SAVE is expanded from... ++config/cxx_have_exceptions.m4:21: OMPI_CXX_HAVE_EXCEPTIONS is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_LANG_CPLUSPLUS' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/c.m4:105: AC_LANG_CPLUSPLUS is expanded from... ++config/cxx_have_exceptions.m4:21: OMPI_CXX_HAVE_EXCEPTIONS is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_LANG_RESTORE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/lang.m4:176: AC_LANG_RESTORE is expanded from... ++config/cxx_have_exceptions.m4:21: OMPI_CXX_HAVE_EXCEPTIONS is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/cxx_find_exception_flags.m4:21: OMPI_CXX_FIND_EXCEPTION_FLAGS is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_LANG_SAVE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/lang.m4:167: AC_LANG_SAVE is expanded from... ++config/cxx_find_exception_flags.m4:21: OMPI_CXX_FIND_EXCEPTION_FLAGS is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_LANG_CPLUSPLUS' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/c.m4:105: AC_LANG_CPLUSPLUS is expanded from... ++config/cxx_find_exception_flags.m4:21: OMPI_CXX_FIND_EXCEPTION_FLAGS is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_LANG_RESTORE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/lang.m4:176: AC_LANG_RESTORE is expanded from... ++config/cxx_find_exception_flags.m4:21: OMPI_CXX_FIND_EXCEPTION_FLAGS is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_LANG_SAVE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/lang.m4:167: AC_LANG_SAVE is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_LANG_C' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/c.m4:73: AC_LANG_C is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_LANG_RESTORE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/lang.m4:176: AC_LANG_RESTORE is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_CXX_EXCEPTION_SUPPORT]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^OMPI_HAVE_CXX_EXCEPTION_SUPPORT$]) ++m4trace:configure.ac:372: -1- AH_OUTPUT([OMPI_HAVE_CXX_EXCEPTION_SUPPORT], [/* Whether or not we have compiled with C++ exceptions support */ ++#undef OMPI_HAVE_CXX_EXCEPTION_SUPPORT]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- AC_DEFINE_TRACE_LITERAL([OMPI_CXX_HAVE_BUILTIN_EXPECT]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^OMPI_CXX_HAVE_BUILTIN_EXPECT$]) ++m4trace:configure.ac:372: -1- AH_OUTPUT([OMPI_CXX_HAVE_BUILTIN_EXPECT], [/* Whether C++ compiler supports __builtin_expect */ ++#undef OMPI_CXX_HAVE_BUILTIN_EXPECT]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- AC_DEFINE_TRACE_LITERAL([OMPI_CXX_HAVE_BUILTIN_PREFETCH]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^OMPI_CXX_HAVE_BUILTIN_PREFETCH$]) ++m4trace:configure.ac:372: -1- AH_OUTPUT([OMPI_CXX_HAVE_BUILTIN_PREFETCH], [/* Whether C++ compiler supports __builtin_prefetch */ ++#undef OMPI_CXX_HAVE_BUILTIN_PREFETCH]) ++m4trace:configure.ac:372: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_setup_cxx.m4:28: OMPI_SETUP_CXX is expanded from... ++configure.ac:372: the top level]) ++m4trace:configure.ac:372: -1- AC_DEFINE_TRACE_LITERAL([OMPI_CXX_SUPPORTS_2D_CONST_CAST]) ++m4trace:configure.ac:372: -1- m4_pattern_allow([^OMPI_CXX_SUPPORTS_2D_CONST_CAST$]) ++m4trace:configure.ac:372: -1- AH_OUTPUT([OMPI_CXX_SUPPORTS_2D_CONST_CAST], [/* Whether a const_cast on a 2-d array will work with the C++ compiler */ ++#undef OMPI_CXX_SUPPORTS_2D_CONST_CAST]) ++m4trace:configure.ac:376: -1- AC_DEFINE_TRACE_LITERAL([OMPI_CXX_USE_PRAGMA_IDENT]) ++m4trace:configure.ac:376: -1- m4_pattern_allow([^OMPI_CXX_USE_PRAGMA_IDENT$]) ++m4trace:configure.ac:376: -1- AH_OUTPUT([OMPI_CXX_USE_PRAGMA_IDENT], [/* Use #pragma ident strings for C++ files */ ++#undef OMPI_CXX_USE_PRAGMA_IDENT]) ++m4trace:configure.ac:376: -1- AC_DEFINE_TRACE_LITERAL([OMPI_CXX_USE_IDENT]) ++m4trace:configure.ac:376: -1- m4_pattern_allow([^OMPI_CXX_USE_IDENT$]) ++m4trace:configure.ac:376: -1- AH_OUTPUT([OMPI_CXX_USE_IDENT], [/* Use #ident strings for C++ files */ ++#undef OMPI_CXX_USE_IDENT]) ++m4trace:configure.ac:376: -1- AC_DEFINE_TRACE_LITERAL([OMPI_CXX_USE_PRAGMA_COMMENT]) ++m4trace:configure.ac:376: -1- m4_pattern_allow([^OMPI_CXX_USE_PRAGMA_COMMENT$]) ++m4trace:configure.ac:376: -1- AH_OUTPUT([OMPI_CXX_USE_PRAGMA_COMMENT], [/* Use #pragma comment for C++ files */ ++#undef OMPI_CXX_USE_PRAGMA_COMMENT]) ++m4trace:configure.ac:376: -1- AC_DEFINE_TRACE_LITERAL([OMPI_CXX_USE_CONST_CHAR_IDENT]) ++m4trace:configure.ac:376: -1- m4_pattern_allow([^OMPI_CXX_USE_CONST_CHAR_IDENT$]) ++m4trace:configure.ac:376: -1- AH_OUTPUT([OMPI_CXX_USE_CONST_CHAR_IDENT], [/* Use static const char[] strings for C++ files */ ++#undef OMPI_CXX_USE_CONST_CHAR_IDENT]) ++m4trace:configure.ac:381: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_BOOL]) ++m4trace:configure.ac:381: -1- m4_pattern_allow([^SIZEOF_BOOL$]) ++m4trace:configure.ac:381: -1- AH_OUTPUT([SIZEOF_BOOL], [/* The size of `bool\', as computed by sizeof. */ ++#undef SIZEOF_BOOL]) ++m4trace:configure.ac:385: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:385: the top level]) ++m4trace:configure.ac:385: -1- _m4_warn([obsolete], [The macro `_AC_COMPUTE_INT' is obsolete and will be deleted in a ++future version or Autoconf. Hence, it is suggested that you use ++instead the public AC_COMPUTE_INT macro. Note that the arguments are ++slightly different between the two.], [../../lib/autoconf/general.m4:2723: _AC_COMPUTE_INT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/c_get_alignment.m4:24: OMPI_C_GET_ALIGNMENT is expanded from... ++configure.ac:385: the top level]) ++m4trace:configure.ac:385: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_CXX_BOOL]) ++m4trace:configure.ac:385: -1- m4_pattern_allow([^OMPI_ALIGNMENT_CXX_BOOL$]) ++m4trace:configure.ac:385: -1- AH_OUTPUT([OMPI_ALIGNMENT_CXX_BOOL], [/* Alignment of type bool */ ++#undef OMPI_ALIGNMENT_CXX_BOOL]) ++m4trace:configure.ac:390: -1- AM_CONDITIONAL([WANT_MPI_CXX_BINDINGS], [test "$WANT_MPI_CXX_SUPPORT" = 1]) ++m4trace:configure.ac:390: -1- AC_SUBST([WANT_MPI_CXX_BINDINGS_TRUE]) ++m4trace:configure.ac:390: -1- AC_SUBST_TRACE([WANT_MPI_CXX_BINDINGS_TRUE]) ++m4trace:configure.ac:390: -1- m4_pattern_allow([^WANT_MPI_CXX_BINDINGS_TRUE$]) ++m4trace:configure.ac:390: -1- AC_SUBST([WANT_MPI_CXX_BINDINGS_FALSE]) ++m4trace:configure.ac:390: -1- AC_SUBST_TRACE([WANT_MPI_CXX_BINDINGS_FALSE]) ++m4trace:configure.ac:390: -1- m4_pattern_allow([^WANT_MPI_CXX_BINDINGS_FALSE$]) ++m4trace:configure.ac:390: -1- _AM_SUBST_NOTMAKE([WANT_MPI_CXX_BINDINGS_TRUE]) ++m4trace:configure.ac:390: -1- _AM_SUBST_NOTMAKE([WANT_MPI_CXX_BINDINGS_FALSE]) ++m4trace:configure.ac:392: -1- AC_DEFINE_TRACE_LITERAL([OMPI_WANT_CXX_BINDINGS]) ++m4trace:configure.ac:392: -1- m4_pattern_allow([^OMPI_WANT_CXX_BINDINGS$]) ++m4trace:configure.ac:392: -1- AH_OUTPUT([OMPI_WANT_CXX_BINDINGS], [/* Whether we want MPI cxx support or not */ ++#undef OMPI_WANT_CXX_BINDINGS]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_ATTRIBUTE]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE$]) ++m4trace:configure.ac:400: -1- AH_OUTPUT([OMPI_HAVE_ATTRIBUTE], [/* Whether your compiler has __attribute__ or not */ ++#undef OMPI_HAVE_ATTRIBUTE]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++config/ompi_check_attributes.m4:52: _OMPI_CHECK_SPECIFIC_ATTRIBUTE is expanded from... ++config/ompi_check_attributes.m4:145: OMPI_CHECK_ATTRIBUTES is expanded from... ++configure.ac:400: the top level]) ++m4trace:configure.ac:400: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_ATTRIBUTE_ALIGNED]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_ALIGNED$]) ++m4trace:configure.ac:400: -1- AH_OUTPUT([OMPI_HAVE_ATTRIBUTE_ALIGNED], [/* Whether your compiler has __attribute__ aligned or not */ ++#undef OMPI_HAVE_ATTRIBUTE_ALIGNED]) ++m4trace:configure.ac:400: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_ATTRIBUTE_ALWAYS_INLINE]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_ALWAYS_INLINE$]) ++m4trace:configure.ac:400: -1- AH_OUTPUT([OMPI_HAVE_ATTRIBUTE_ALWAYS_INLINE], [/* Whether your compiler has __attribute__ always_inline or not */ ++#undef OMPI_HAVE_ATTRIBUTE_ALWAYS_INLINE]) ++m4trace:configure.ac:400: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_ATTRIBUTE_COLD]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_COLD$]) ++m4trace:configure.ac:400: -1- AH_OUTPUT([OMPI_HAVE_ATTRIBUTE_COLD], [/* Whether your compiler has __attribute__ cold or not */ ++#undef OMPI_HAVE_ATTRIBUTE_COLD]) ++m4trace:configure.ac:400: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_ATTRIBUTE_CONST]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_CONST$]) ++m4trace:configure.ac:400: -1- AH_OUTPUT([OMPI_HAVE_ATTRIBUTE_CONST], [/* Whether your compiler has __attribute__ const or not */ ++#undef OMPI_HAVE_ATTRIBUTE_CONST]) ++m4trace:configure.ac:400: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_ATTRIBUTE_DEPRECATED]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_DEPRECATED$]) ++m4trace:configure.ac:400: -1- AH_OUTPUT([OMPI_HAVE_ATTRIBUTE_DEPRECATED], [/* Whether your compiler has __attribute__ deprecated or not */ ++#undef OMPI_HAVE_ATTRIBUTE_DEPRECATED]) ++m4trace:configure.ac:400: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_ATTRIBUTE_FORMAT]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_FORMAT$]) ++m4trace:configure.ac:400: -1- AH_OUTPUT([OMPI_HAVE_ATTRIBUTE_FORMAT], [/* Whether your compiler has __attribute__ format or not */ ++#undef OMPI_HAVE_ATTRIBUTE_FORMAT]) ++m4trace:configure.ac:400: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_ATTRIBUTE_HOT]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_HOT$]) ++m4trace:configure.ac:400: -1- AH_OUTPUT([OMPI_HAVE_ATTRIBUTE_HOT], [/* Whether your compiler has __attribute__ hot or not */ ++#undef OMPI_HAVE_ATTRIBUTE_HOT]) ++m4trace:configure.ac:400: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_ATTRIBUTE_MALLOC]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_MALLOC$]) ++m4trace:configure.ac:400: -1- AH_OUTPUT([OMPI_HAVE_ATTRIBUTE_MALLOC], [/* Whether your compiler has __attribute__ malloc or not */ ++#undef OMPI_HAVE_ATTRIBUTE_MALLOC]) ++m4trace:configure.ac:400: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_ATTRIBUTE_MAY_ALIAS]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_MAY_ALIAS$]) ++m4trace:configure.ac:400: -1- AH_OUTPUT([OMPI_HAVE_ATTRIBUTE_MAY_ALIAS], [/* Whether your compiler has __attribute__ may_alias or not */ ++#undef OMPI_HAVE_ATTRIBUTE_MAY_ALIAS]) ++m4trace:configure.ac:400: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_ATTRIBUTE_NO_INSTRUMENT_FUNCTION]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_NO_INSTRUMENT_FUNCTION$]) ++m4trace:configure.ac:400: -1- AH_OUTPUT([OMPI_HAVE_ATTRIBUTE_NO_INSTRUMENT_FUNCTION], [/* Whether your compiler has __attribute__ no_instrument_function or not */ ++#undef OMPI_HAVE_ATTRIBUTE_NO_INSTRUMENT_FUNCTION]) ++m4trace:configure.ac:400: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_ATTRIBUTE_NONNULL]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_NONNULL$]) ++m4trace:configure.ac:400: -1- AH_OUTPUT([OMPI_HAVE_ATTRIBUTE_NONNULL], [/* Whether your compiler has __attribute__ nonnull or not */ ++#undef OMPI_HAVE_ATTRIBUTE_NONNULL]) ++m4trace:configure.ac:400: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_ATTRIBUTE_NORETURN]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_NORETURN$]) ++m4trace:configure.ac:400: -1- AH_OUTPUT([OMPI_HAVE_ATTRIBUTE_NORETURN], [/* Whether your compiler has __attribute__ noreturn or not */ ++#undef OMPI_HAVE_ATTRIBUTE_NORETURN]) ++m4trace:configure.ac:400: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_ATTRIBUTE_PACKED]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_PACKED$]) ++m4trace:configure.ac:400: -1- AH_OUTPUT([OMPI_HAVE_ATTRIBUTE_PACKED], [/* Whether your compiler has __attribute__ packed or not */ ++#undef OMPI_HAVE_ATTRIBUTE_PACKED]) ++m4trace:configure.ac:400: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_ATTRIBUTE_PURE]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_PURE$]) ++m4trace:configure.ac:400: -1- AH_OUTPUT([OMPI_HAVE_ATTRIBUTE_PURE], [/* Whether your compiler has __attribute__ pure or not */ ++#undef OMPI_HAVE_ATTRIBUTE_PURE]) ++m4trace:configure.ac:400: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_ATTRIBUTE_SENTINEL]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_SENTINEL$]) ++m4trace:configure.ac:400: -1- AH_OUTPUT([OMPI_HAVE_ATTRIBUTE_SENTINEL], [/* Whether your compiler has __attribute__ sentinel or not */ ++#undef OMPI_HAVE_ATTRIBUTE_SENTINEL]) ++m4trace:configure.ac:400: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_ATTRIBUTE_UNUSED]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_UNUSED$]) ++m4trace:configure.ac:400: -1- AH_OUTPUT([OMPI_HAVE_ATTRIBUTE_UNUSED], [/* Whether your compiler has __attribute__ unused or not */ ++#undef OMPI_HAVE_ATTRIBUTE_UNUSED]) ++m4trace:configure.ac:400: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_ATTRIBUTE_VISIBILITY]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_VISIBILITY$]) ++m4trace:configure.ac:400: -1- AH_OUTPUT([OMPI_HAVE_ATTRIBUTE_VISIBILITY], [/* Whether your compiler has __attribute__ visibility or not */ ++#undef OMPI_HAVE_ATTRIBUTE_VISIBILITY]) ++m4trace:configure.ac:400: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT$]) ++m4trace:configure.ac:400: -1- AH_OUTPUT([OMPI_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT], [/* Whether your compiler has __attribute__ warn unused result or not */ ++#undef OMPI_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT]) ++m4trace:configure.ac:400: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_ATTRIBUTE_WEAK_ALIAS]) ++m4trace:configure.ac:400: -1- m4_pattern_allow([^OMPI_HAVE_ATTRIBUTE_WEAK_ALIAS$]) ++m4trace:configure.ac:400: -1- AH_OUTPUT([OMPI_HAVE_ATTRIBUTE_WEAK_ALIAS], [/* Whether your compiler has __attribute__ weak alias or not */ ++#undef OMPI_HAVE_ATTRIBUTE_WEAK_ALIAS]) ++m4trace:configure.ac:409: -1- AC_SUBST([CCAS]) ++m4trace:configure.ac:409: -1- AC_SUBST_TRACE([CCAS]) ++m4trace:configure.ac:409: -1- m4_pattern_allow([^CCAS$]) ++m4trace:configure.ac:409: -1- AC_SUBST([CCASFLAGS]) ++m4trace:configure.ac:409: -1- AC_SUBST_TRACE([CCASFLAGS]) ++m4trace:configure.ac:409: -1- m4_pattern_allow([^CCASFLAGS$]) ++m4trace:configure.ac:409: -1- AC_SUBST([CCASDEPMODE], [depmode=$am_cv_CCAS_dependencies_compiler_type]) ++m4trace:configure.ac:409: -1- AC_SUBST_TRACE([CCASDEPMODE]) ++m4trace:configure.ac:409: -1- m4_pattern_allow([^CCASDEPMODE$]) ++m4trace:configure.ac:409: -1- AM_CONDITIONAL([am__fastdepCCAS], [ ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3]) ++m4trace:configure.ac:409: -1- AC_SUBST([am__fastdepCCAS_TRUE]) ++m4trace:configure.ac:409: -1- AC_SUBST_TRACE([am__fastdepCCAS_TRUE]) ++m4trace:configure.ac:409: -1- m4_pattern_allow([^am__fastdepCCAS_TRUE$]) ++m4trace:configure.ac:409: -1- AC_SUBST([am__fastdepCCAS_FALSE]) ++m4trace:configure.ac:409: -1- AC_SUBST_TRACE([am__fastdepCCAS_FALSE]) ++m4trace:configure.ac:409: -1- m4_pattern_allow([^am__fastdepCCAS_FALSE$]) ++m4trace:configure.ac:409: -1- _AM_SUBST_NOTMAKE([am__fastdepCCAS_TRUE]) ++m4trace:configure.ac:409: -1- _AM_SUBST_NOTMAKE([am__fastdepCCAS_FALSE]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- AC_DEFINE_TRACE_LITERAL([OMPI_WANT_SMP_LOCKS]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_WANT_SMP_LOCKS$]) ++m4trace:configure.ac:410: -1- AH_OUTPUT([OMPI_WANT_SMP_LOCKS], [/* whether we want to have smp locks in atomic ops or not */ ++#undef OMPI_WANT_SMP_LOCKS]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:157: OMPI_CHECK_ASM_PROC is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:157: OMPI_CHECK_ASM_PROC is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:157: OMPI_CHECK_ASM_PROC is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:157: OMPI_CHECK_ASM_PROC is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ASM_TEXT]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_TEXT$]) ++m4trace:configure.ac:410: -1- AH_OUTPUT([OMPI_ASM_TEXT], [/* Assembly directive for setting text section */ ++#undef OMPI_ASM_TEXT]) ++m4trace:configure.ac:410: -1- AC_SUBST([OMPI_ASM_TEXT]) ++m4trace:configure.ac:410: -1- AC_SUBST_TRACE([OMPI_ASM_TEXT]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_TEXT$]) ++m4trace:configure.ac:410: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ASM_GLOBAL]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_GLOBAL$]) ++m4trace:configure.ac:410: -1- AH_OUTPUT([OMPI_ASM_GLOBAL], [/* Assembly directive for exporting symbols */ ++#undef OMPI_ASM_GLOBAL]) ++m4trace:configure.ac:410: -1- AC_SUBST([OMPI_AS_GLOBAL]) ++m4trace:configure.ac:410: -1- AC_SUBST_TRACE([OMPI_AS_GLOBAL]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_AS_GLOBAL$]) ++m4trace:configure.ac:410: -1- AC_SUBST([OBJDUMP]) ++m4trace:configure.ac:410: -1- AC_SUBST_TRACE([OBJDUMP]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OBJDUMP$]) ++m4trace:configure.ac:410: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ASM_LABEL_SUFFIX]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_LABEL_SUFFIX$]) ++m4trace:configure.ac:410: -1- AH_OUTPUT([OMPI_ASM_LABEL_SUFFIX], [/* Assembly suffix for labels */ ++#undef OMPI_ASM_LABEL_SUFFIX]) ++m4trace:configure.ac:410: -1- AC_SUBST([OMPI_AS_LABEL_SUFFIX]) ++m4trace:configure.ac:410: -1- AC_SUBST_TRACE([OMPI_AS_LABEL_SUFFIX]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_AS_LABEL_SUFFIX$]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:202: _OMPI_CHECK_ASM_GSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:186: OMPI_CHECK_ASM_GSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ASM_GSYM]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_GSYM$]) ++m4trace:configure.ac:410: -1- AH_OUTPUT([OMPI_ASM_GSYM], [/* Assembly prefix for gsym labels */ ++#undef OMPI_ASM_GSYM]) ++m4trace:configure.ac:410: -1- AC_SUBST([OMPI_ASM_GSYM]) ++m4trace:configure.ac:410: -1- AC_SUBST_TRACE([OMPI_ASM_GSYM]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_GSYM$]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_PROG_NM' is obsolete. ++You should run autoupdate.], [config/libtool.m4:3246: AC_PROG_NM is expanded from... ++config/ompi_config_asm.m4:137: OMPI_CHECK_ASM_LSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- AC_SUBST([DUMPBIN]) ++m4trace:configure.ac:410: -1- AC_SUBST_TRACE([DUMPBIN]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^DUMPBIN$]) ++m4trace:configure.ac:410: -1- AC_SUBST([ac_ct_DUMPBIN]) ++m4trace:configure.ac:410: -1- AC_SUBST_TRACE([ac_ct_DUMPBIN]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^ac_ct_DUMPBIN$]) ++m4trace:configure.ac:410: -1- AC_SUBST([DUMPBIN]) ++m4trace:configure.ac:410: -1- AC_SUBST_TRACE([DUMPBIN]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^DUMPBIN$]) ++m4trace:configure.ac:410: -1- AC_SUBST([NM]) ++m4trace:configure.ac:410: -1- AC_SUBST_TRACE([NM]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^NM$]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_config_asm.m4:98: _OMPI_CHECK_ASM_LSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:137: OMPI_CHECK_ASM_LSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:98: _OMPI_CHECK_ASM_LSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:137: OMPI_CHECK_ASM_LSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:98: _OMPI_CHECK_ASM_LSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:137: OMPI_CHECK_ASM_LSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:98: _OMPI_CHECK_ASM_LSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:137: OMPI_CHECK_ASM_LSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:98: _OMPI_CHECK_ASM_LSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:137: OMPI_CHECK_ASM_LSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:98: _OMPI_CHECK_ASM_LSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:137: OMPI_CHECK_ASM_LSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:98: _OMPI_CHECK_ASM_LSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:137: OMPI_CHECK_ASM_LSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:98: _OMPI_CHECK_ASM_LSYM is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:137: OMPI_CHECK_ASM_LSYM is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ASM_LSYM]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_LSYM$]) ++m4trace:configure.ac:410: -1- AH_OUTPUT([OMPI_ASM_LSYM], [/* Assembly prefix for lsym labels */ ++#undef OMPI_ASM_LSYM]) ++m4trace:configure.ac:410: -1- AC_SUBST([OMPI_ASM_LSYM]) ++m4trace:configure.ac:410: -1- AC_SUBST_TRACE([OMPI_ASM_LSYM]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_LSYM$]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_config_asm.m4:358: _OMPI_CHECK_ASM_TYPE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:347: OMPI_CHECK_ASM_TYPE is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:358: _OMPI_CHECK_ASM_TYPE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:347: OMPI_CHECK_ASM_TYPE is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:358: _OMPI_CHECK_ASM_TYPE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:347: OMPI_CHECK_ASM_TYPE is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:358: _OMPI_CHECK_ASM_TYPE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:347: OMPI_CHECK_ASM_TYPE is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:358: _OMPI_CHECK_ASM_TYPE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:347: OMPI_CHECK_ASM_TYPE is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ASM_TYPE]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_TYPE$]) ++m4trace:configure.ac:410: -1- AH_OUTPUT([OMPI_ASM_TYPE], [/* How to set function type in .type directive */ ++#undef OMPI_ASM_TYPE]) ++m4trace:configure.ac:410: -1- AC_SUBST([OMPI_ASM_TYPE]) ++m4trace:configure.ac:410: -1- AC_SUBST_TRACE([OMPI_ASM_TYPE]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_TYPE$]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:396: OMPI_CHECK_ASM_SIZE is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:396: OMPI_CHECK_ASM_SIZE is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:396: OMPI_CHECK_ASM_SIZE is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:396: OMPI_CHECK_ASM_SIZE is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ASM_SIZE]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_SIZE$]) ++m4trace:configure.ac:410: -1- AH_OUTPUT([OMPI_ASM_SIZE], [/* Do we need to give a .size directive */ ++#undef OMPI_ASM_SIZE]) ++m4trace:configure.ac:410: -1- AC_SUBST([OMPI_ASM_TYPE]) ++m4trace:configure.ac:410: -1- AC_SUBST_TRACE([OMPI_ASM_TYPE]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_TYPE$]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:298: OMPI_CHECK_ASM_ALIGN_LOG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:298: OMPI_CHECK_ASM_ALIGN_LOG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:298: OMPI_CHECK_ASM_ALIGN_LOG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:298: OMPI_CHECK_ASM_ALIGN_LOG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_config_asm.m4:298: OMPI_CHECK_ASM_ALIGN_LOG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ASM_ALIGN_LOG]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_ALIGN_LOG$]) ++m4trace:configure.ac:410: -1- AH_OUTPUT([OMPI_ASM_ALIGN_LOG], [/* Assembly align directive expects logarithmic value */ ++#undef OMPI_ASM_ALIGN_LOG]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:459: OMPI_CHECK_POWERPC_REG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:459: OMPI_CHECK_POWERPC_REG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:459: OMPI_CHECK_POWERPC_REG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:459: OMPI_CHECK_POWERPC_REG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:459: OMPI_CHECK_POWERPC_REG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:459: OMPI_CHECK_POWERPC_REG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:459: OMPI_CHECK_POWERPC_REG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:459: OMPI_CHECK_POWERPC_REG is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- AC_DEFINE_TRACE_LITERAL([OMPI_POWERPC_R_REGISTERS]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_POWERPC_R_REGISTERS$]) ++m4trace:configure.ac:410: -1- AH_OUTPUT([OMPI_POWERPC_R_REGISTERS], [/* Whether r notation is used for ppc registers */ ++#undef OMPI_POWERPC_R_REGISTERS]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:490: OMPI_CHECK_POWERPC_64BIT is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:490: OMPI_CHECK_POWERPC_64BIT is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:490: OMPI_CHECK_POWERPC_64BIT is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:490: OMPI_CHECK_POWERPC_64BIT is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:531: OMPI_CHECK_SPARCV8PLUS is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:531: OMPI_CHECK_SPARCV8PLUS is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:531: OMPI_CHECK_SPARCV8PLUS is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_try_assemble.m4:29: OMPI_TRY_ASSEMBLE is expanded from... ++config/ompi_config_asm.m4:531: OMPI_CHECK_SPARCV8PLUS is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ASM_SUPPORT_64BIT]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_SUPPORT_64BIT$]) ++m4trace:configure.ac:410: -1- AH_OUTPUT([OMPI_ASM_SUPPORT_64BIT], [/* Whether we can do 64bit assembly operations or not. Should not be used ++ outside of the assembly header files */ ++#undef OMPI_ASM_SUPPORT_64BIT]) ++m4trace:configure.ac:410: -1- AC_SUBST([OMPI_ASM_SUPPORT_64BIT]) ++m4trace:configure.ac:410: -1- AC_SUBST_TRACE([OMPI_ASM_SUPPORT_64BIT]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_SUPPORT_64BIT$]) ++m4trace:configure.ac:410: -1- AC_DEFINE_TRACE_LITERAL([OMPI_C_GCC_INLINE_ASSEMBLY]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_C_GCC_INLINE_ASSEMBLY$]) ++m4trace:configure.ac:410: -1- AH_OUTPUT([OMPI_C_GCC_INLINE_ASSEMBLY], [/* Whether C compiler supports GCC style inline assembly */ ++#undef OMPI_C_GCC_INLINE_ASSEMBLY]) ++m4trace:configure.ac:410: -1- AC_DEFINE_TRACE_LITERAL([OMPI_C_DEC_INLINE_ASSEMBLY]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_C_DEC_INLINE_ASSEMBLY$]) ++m4trace:configure.ac:410: -1- AH_OUTPUT([OMPI_C_DEC_INLINE_ASSEMBLY], [/* Whether C compiler supports DEC style inline assembly */ ++#undef OMPI_C_DEC_INLINE_ASSEMBLY]) ++m4trace:configure.ac:410: -1- AC_DEFINE_TRACE_LITERAL([OMPI_C_XLC_INLINE_ASSEMBLY]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_C_XLC_INLINE_ASSEMBLY$]) ++m4trace:configure.ac:410: -1- AH_OUTPUT([OMPI_C_XLC_INLINE_ASSEMBLY], [/* Whether C compiler supports XLC style inline assembly */ ++#undef OMPI_C_XLC_INLINE_ASSEMBLY]) ++m4trace:configure.ac:410: -1- AC_DEFINE_TRACE_LITERAL([OMPI_CXX_GCC_INLINE_ASSEMBLY]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_CXX_GCC_INLINE_ASSEMBLY$]) ++m4trace:configure.ac:410: -1- AH_OUTPUT([OMPI_CXX_GCC_INLINE_ASSEMBLY], [/* Whether C++ compiler supports GCC style inline assembly */ ++#undef OMPI_CXX_GCC_INLINE_ASSEMBLY]) ++m4trace:configure.ac:410: -1- AC_DEFINE_TRACE_LITERAL([OMPI_CXX_DEC_INLINE_ASSEMBLY]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_CXX_DEC_INLINE_ASSEMBLY$]) ++m4trace:configure.ac:410: -1- AH_OUTPUT([OMPI_CXX_DEC_INLINE_ASSEMBLY], [/* Whether C++ compiler supports DEC style inline assembly */ ++#undef OMPI_CXX_DEC_INLINE_ASSEMBLY]) ++m4trace:configure.ac:410: -1- AC_DEFINE_TRACE_LITERAL([OMPI_CXX_XLC_INLINE_ASSEMBLY]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_CXX_XLC_INLINE_ASSEMBLY$]) ++m4trace:configure.ac:410: -1- AH_OUTPUT([OMPI_CXX_XLC_INLINE_ASSEMBLY], [/* Whether C++ compiler supports XLC style inline assembly */ ++#undef OMPI_CXX_XLC_INLINE_ASSEMBLY]) ++m4trace:configure.ac:410: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ASSEMBLY_FORMAT]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASSEMBLY_FORMAT$]) ++m4trace:configure.ac:410: -1- AH_OUTPUT([OMPI_ASSEMBLY_FORMAT], [/* Format of assembly file */ ++#undef OMPI_ASSEMBLY_FORMAT]) ++m4trace:configure.ac:410: -1- AC_SUBST([OMPI_ASSEMBLY_FORMAT]) ++m4trace:configure.ac:410: -1- AC_SUBST_TRACE([OMPI_ASSEMBLY_FORMAT]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASSEMBLY_FORMAT$]) ++m4trace:configure.ac:410: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ASSEMBLY_ARCH]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASSEMBLY_ARCH$]) ++m4trace:configure.ac:410: -1- AH_OUTPUT([OMPI_ASSEMBLY_ARCH], [/* Architecture type of assembly to use for atomic operations */ ++#undef OMPI_ASSEMBLY_ARCH]) ++m4trace:configure.ac:410: -1- AC_SUBST([OMPI_ASSEMBLY_ARCH]) ++m4trace:configure.ac:410: -1- AC_SUBST_TRACE([OMPI_ASSEMBLY_ARCH]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASSEMBLY_ARCH$]) ++m4trace:configure.ac:410: -1- AC_SUBST([FGREP]) ++m4trace:configure.ac:410: -1- AC_SUBST_TRACE([FGREP]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^FGREP$]) ++m4trace:configure.ac:410: -1- AC_SUBST([FGREP]) ++m4trace:configure.ac:410: -1- AC_SUBST_TRACE([FGREP]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^FGREP$]) ++m4trace:configure.ac:410: -1- AC_SUBST([PERL]) ++m4trace:configure.ac:410: -1- AC_SUBST_TRACE([PERL]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^PERL$]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_config_asm.m4:1026: OMPI_ASM_FIND_FILE is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:364: AC_FD_CC is expanded from... ++config/ompi_config_asm.m4:1026: OMPI_ASM_FIND_FILE is expanded from... ++config/ompi_config_asm.m4:802: OMPI_CONFIG_ASM is expanded from... ++configure.ac:410: the top level]) ++m4trace:configure.ac:410: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_ASM_FILE]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_HAVE_ASM_FILE$]) ++m4trace:configure.ac:410: -1- AH_OUTPUT([OMPI_HAVE_ASM_FILE], [/* Whether there is an atomic assembly file available */ ++#undef OMPI_HAVE_ASM_FILE]) ++m4trace:configure.ac:410: -1- AM_CONDITIONAL([OMPI_HAVE_ASM_FILE], [test "$result" = "1"]) ++m4trace:configure.ac:410: -1- AC_SUBST([OMPI_HAVE_ASM_FILE_TRUE]) ++m4trace:configure.ac:410: -1- AC_SUBST_TRACE([OMPI_HAVE_ASM_FILE_TRUE]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_HAVE_ASM_FILE_TRUE$]) ++m4trace:configure.ac:410: -1- AC_SUBST([OMPI_HAVE_ASM_FILE_FALSE]) ++m4trace:configure.ac:410: -1- AC_SUBST_TRACE([OMPI_HAVE_ASM_FILE_FALSE]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_HAVE_ASM_FILE_FALSE$]) ++m4trace:configure.ac:410: -1- _AM_SUBST_NOTMAKE([OMPI_HAVE_ASM_FILE_TRUE]) ++m4trace:configure.ac:410: -1- _AM_SUBST_NOTMAKE([OMPI_HAVE_ASM_FILE_FALSE]) ++m4trace:configure.ac:410: -1- AC_SUBST([OMPI_ASM_FILE]) ++m4trace:configure.ac:410: -1- AC_SUBST_TRACE([OMPI_ASM_FILE]) ++m4trace:configure.ac:410: -1- m4_pattern_allow([^OMPI_ASM_FILE$]) ++m4trace:configure.ac:421: -1- AC_SUBST([F77]) ++m4trace:configure.ac:421: -1- AC_SUBST_TRACE([F77]) ++m4trace:configure.ac:421: -1- m4_pattern_allow([^F77$]) ++m4trace:configure.ac:421: -1- AC_SUBST([FFLAGS]) ++m4trace:configure.ac:421: -1- AC_SUBST_TRACE([FFLAGS]) ++m4trace:configure.ac:421: -1- m4_pattern_allow([^FFLAGS$]) ++m4trace:configure.ac:421: -1- AC_SUBST([LDFLAGS]) ++m4trace:configure.ac:421: -1- AC_SUBST_TRACE([LDFLAGS]) ++m4trace:configure.ac:421: -1- m4_pattern_allow([^LDFLAGS$]) ++m4trace:configure.ac:421: -1- AC_SUBST([LIBS]) ++m4trace:configure.ac:421: -1- AC_SUBST_TRACE([LIBS]) ++m4trace:configure.ac:421: -1- m4_pattern_allow([^LIBS$]) ++m4trace:configure.ac:421: -1- AC_SUBST([F77]) ++m4trace:configure.ac:421: -1- AC_SUBST_TRACE([F77]) ++m4trace:configure.ac:421: -1- m4_pattern_allow([^F77$]) ++m4trace:configure.ac:421: -1- AC_SUBST([ac_ct_F77]) ++m4trace:configure.ac:421: -1- AC_SUBST_TRACE([ac_ct_F77]) ++m4trace:configure.ac:421: -1- m4_pattern_allow([^ac_ct_F77$]) ++m4trace:configure.ac:421: -1- AC_DEFINE_TRACE_LITERAL([OMPI_F77_DOUBLE_UNDERSCORE]) ++m4trace:configure.ac:421: -1- m4_pattern_allow([^OMPI_F77_DOUBLE_UNDERSCORE$]) ++m4trace:configure.ac:421: -1- AH_OUTPUT([OMPI_F77_DOUBLE_UNDERSCORE], [/* Whether fortran symbols have a trailing double underscore or not */ ++#undef OMPI_F77_DOUBLE_UNDERSCORE]) ++m4trace:configure.ac:421: -1- AC_DEFINE_TRACE_LITERAL([OMPI_F77_SINGLE_UNDERSCORE]) ++m4trace:configure.ac:421: -1- m4_pattern_allow([^OMPI_F77_SINGLE_UNDERSCORE$]) ++m4trace:configure.ac:421: -1- AH_OUTPUT([OMPI_F77_SINGLE_UNDERSCORE], [/* Whether fortran symbols have a trailing underscore or not */ ++#undef OMPI_F77_SINGLE_UNDERSCORE]) ++m4trace:configure.ac:421: -1- AC_DEFINE_TRACE_LITERAL([OMPI_F77_CAPS]) ++m4trace:configure.ac:421: -1- m4_pattern_allow([^OMPI_F77_CAPS$]) ++m4trace:configure.ac:421: -1- AH_OUTPUT([OMPI_F77_CAPS], [/* Whether fortran symbols are all caps or not */ ++#undef OMPI_F77_CAPS]) ++m4trace:configure.ac:421: -1- AC_DEFINE_TRACE_LITERAL([OMPI_F77_PLAIN]) ++m4trace:configure.ac:421: -1- m4_pattern_allow([^OMPI_F77_PLAIN$]) ++m4trace:configure.ac:421: -1- AH_OUTPUT([OMPI_F77_PLAIN], [/* Whether fortran symbols have no trailing underscore or not */ ++#undef OMPI_F77_PLAIN]) ++m4trace:configure.ac:421: -1- AC_DEFINE_TRACE_LITERAL([OMPI_WANT_F77_BINDINGS]) ++m4trace:configure.ac:421: -1- m4_pattern_allow([^OMPI_WANT_F77_BINDINGS$]) ++m4trace:configure.ac:421: -1- AH_OUTPUT([OMPI_WANT_F77_BINDINGS], [/* Whether we want the MPI f77 bindings or not */ ++#undef OMPI_WANT_F77_BINDINGS]) ++m4trace:configure.ac:421: -1- AC_DEFINE_TRACE_LITERAL([OMPI_F77]) ++m4trace:configure.ac:421: -1- m4_pattern_allow([^OMPI_F77$]) ++m4trace:configure.ac:421: -1- AH_OUTPUT([OMPI_F77], [/* OMPI underlying F77 compiler */ ++#undef OMPI_F77]) ++m4trace:configure.ac:421: -1- AM_CONDITIONAL([OMPI_WANT_F77_BINDINGS], [test "$OMPI_WANT_F77_BINDINGS" = "1"]) ++m4trace:configure.ac:421: -1- AC_SUBST([OMPI_WANT_F77_BINDINGS_TRUE]) ++m4trace:configure.ac:421: -1- AC_SUBST_TRACE([OMPI_WANT_F77_BINDINGS_TRUE]) ++m4trace:configure.ac:421: -1- m4_pattern_allow([^OMPI_WANT_F77_BINDINGS_TRUE$]) ++m4trace:configure.ac:421: -1- AC_SUBST([OMPI_WANT_F77_BINDINGS_FALSE]) ++m4trace:configure.ac:421: -1- AC_SUBST_TRACE([OMPI_WANT_F77_BINDINGS_FALSE]) ++m4trace:configure.ac:421: -1- m4_pattern_allow([^OMPI_WANT_F77_BINDINGS_FALSE$]) ++m4trace:configure.ac:421: -1- _AM_SUBST_NOTMAKE([OMPI_WANT_F77_BINDINGS_TRUE]) ++m4trace:configure.ac:421: -1- _AM_SUBST_NOTMAKE([OMPI_WANT_F77_BINDINGS_FALSE]) ++m4trace:configure.ac:421: -1- AC_SUBST([OMPI_F77_ABSOLUTE]) ++m4trace:configure.ac:421: -1- AC_SUBST_TRACE([OMPI_F77_ABSOLUTE]) ++m4trace:configure.ac:421: -1- m4_pattern_allow([^OMPI_F77_ABSOLUTE$]) ++m4trace:configure.ac:426: -1- AC_DEFINE_TRACE_LITERAL([ompi_fortran_bogus_type_t]) ++m4trace:configure.ac:426: -1- m4_pattern_allow([^ompi_fortran_bogus_type_t$]) ++m4trace:configure.ac:426: -1- AH_OUTPUT([ompi_fortran_bogus_type_t], [/* A bogus type that allows us to have sentinel type values that are still ++ valid */ ++#undef ompi_fortran_bogus_type_t]) ++m4trace:configure.ac:432: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_FORTRAN_LOGICAL]) ++m4trace:configure.ac:432: -1- m4_pattern_allow([^OMPI_HAVE_FORTRAN_LOGICAL$]) ++m4trace:configure.ac:432: -1- AH_OUTPUT([OMPI_HAVE_FORTRAN_LOGICAL], [/* Whether we have Fortran 77 LOGICAL or not */ ++#undef OMPI_HAVE_FORTRAN_LOGICAL]) ++m4trace:configure.ac:432: -1- AC_DEFINE_TRACE_LITERAL([OMPI_SIZEOF_FORTRAN_LOGICAL]) ++m4trace:configure.ac:432: -1- m4_pattern_allow([^OMPI_SIZEOF_FORTRAN_LOGICAL$]) ++m4trace:configure.ac:432: -1- AH_OUTPUT([OMPI_SIZEOF_FORTRAN_LOGICAL], [/* Size of Fortran 77 LOGICAL */ ++#undef OMPI_SIZEOF_FORTRAN_LOGICAL]) ++m4trace:configure.ac:432: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_FORTRAN_LOGICAL]) ++m4trace:configure.ac:432: -1- m4_pattern_allow([^OMPI_ALIGNMENT_FORTRAN_LOGICAL$]) ++m4trace:configure.ac:432: -1- AH_OUTPUT([OMPI_ALIGNMENT_FORTRAN_LOGICAL], [/* Alignment of Fortran 77 LOGICAL */ ++#undef OMPI_ALIGNMENT_FORTRAN_LOGICAL]) ++m4trace:configure.ac:432: -1- AC_DEFINE_TRACE_LITERAL([ompi_fortran_logical_t]) ++m4trace:configure.ac:432: -1- m4_pattern_allow([^ompi_fortran_logical_t$]) ++m4trace:configure.ac:432: -1- AH_OUTPUT([ompi_fortran_logical_t], [/* C type corresponding to Fortran 77 LOGICAL */ ++#undef ompi_fortran_logical_t]) ++m4trace:configure.ac:434: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_FORTRAN_LOGICAL1]) ++m4trace:configure.ac:434: -1- m4_pattern_allow([^OMPI_HAVE_FORTRAN_LOGICAL1$]) ++m4trace:configure.ac:434: -1- AH_OUTPUT([OMPI_HAVE_FORTRAN_LOGICAL1], [/* Whether we have Fortran 77 LOGICAL*1 or not */ ++#undef OMPI_HAVE_FORTRAN_LOGICAL1]) ++m4trace:configure.ac:434: -1- AC_DEFINE_TRACE_LITERAL([OMPI_SIZEOF_FORTRAN_LOGICAL1]) ++m4trace:configure.ac:434: -1- m4_pattern_allow([^OMPI_SIZEOF_FORTRAN_LOGICAL1$]) ++m4trace:configure.ac:434: -1- AH_OUTPUT([OMPI_SIZEOF_FORTRAN_LOGICAL1], [/* Size of Fortran 77 LOGICAL*1 */ ++#undef OMPI_SIZEOF_FORTRAN_LOGICAL1]) ++m4trace:configure.ac:434: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_FORTRAN_LOGICAL1]) ++m4trace:configure.ac:434: -1- m4_pattern_allow([^OMPI_ALIGNMENT_FORTRAN_LOGICAL1$]) ++m4trace:configure.ac:434: -1- AH_OUTPUT([OMPI_ALIGNMENT_FORTRAN_LOGICAL1], [/* Alignment of Fortran 77 LOGICAL*1 */ ++#undef OMPI_ALIGNMENT_FORTRAN_LOGICAL1]) ++m4trace:configure.ac:434: -1- AC_DEFINE_TRACE_LITERAL([ompi_fortran_logical1_t]) ++m4trace:configure.ac:434: -1- m4_pattern_allow([^ompi_fortran_logical1_t$]) ++m4trace:configure.ac:434: -1- AH_OUTPUT([ompi_fortran_logical1_t], [/* C type corresponding to Fortran 77 LOGICAL*1 */ ++#undef ompi_fortran_logical1_t]) ++m4trace:configure.ac:436: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_FORTRAN_LOGICAL2]) ++m4trace:configure.ac:436: -1- m4_pattern_allow([^OMPI_HAVE_FORTRAN_LOGICAL2$]) ++m4trace:configure.ac:436: -1- AH_OUTPUT([OMPI_HAVE_FORTRAN_LOGICAL2], [/* Whether we have Fortran 77 LOGICAL*2 or not */ ++#undef OMPI_HAVE_FORTRAN_LOGICAL2]) ++m4trace:configure.ac:436: -1- AC_DEFINE_TRACE_LITERAL([OMPI_SIZEOF_FORTRAN_LOGICAL2]) ++m4trace:configure.ac:436: -1- m4_pattern_allow([^OMPI_SIZEOF_FORTRAN_LOGICAL2$]) ++m4trace:configure.ac:436: -1- AH_OUTPUT([OMPI_SIZEOF_FORTRAN_LOGICAL2], [/* Size of Fortran 77 LOGICAL*2 */ ++#undef OMPI_SIZEOF_FORTRAN_LOGICAL2]) ++m4trace:configure.ac:436: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_FORTRAN_LOGICAL2]) ++m4trace:configure.ac:436: -1- m4_pattern_allow([^OMPI_ALIGNMENT_FORTRAN_LOGICAL2$]) ++m4trace:configure.ac:436: -1- AH_OUTPUT([OMPI_ALIGNMENT_FORTRAN_LOGICAL2], [/* Alignment of Fortran 77 LOGICAL*2 */ ++#undef OMPI_ALIGNMENT_FORTRAN_LOGICAL2]) ++m4trace:configure.ac:436: -1- AC_DEFINE_TRACE_LITERAL([ompi_fortran_logical2_t]) ++m4trace:configure.ac:436: -1- m4_pattern_allow([^ompi_fortran_logical2_t$]) ++m4trace:configure.ac:436: -1- AH_OUTPUT([ompi_fortran_logical2_t], [/* C type corresponding to Fortran 77 LOGICAL*2 */ ++#undef ompi_fortran_logical2_t]) ++m4trace:configure.ac:438: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_FORTRAN_LOGICAL4]) ++m4trace:configure.ac:438: -1- m4_pattern_allow([^OMPI_HAVE_FORTRAN_LOGICAL4$]) ++m4trace:configure.ac:438: -1- AH_OUTPUT([OMPI_HAVE_FORTRAN_LOGICAL4], [/* Whether we have Fortran 77 LOGICAL*4 or not */ ++#undef OMPI_HAVE_FORTRAN_LOGICAL4]) ++m4trace:configure.ac:438: -1- AC_DEFINE_TRACE_LITERAL([OMPI_SIZEOF_FORTRAN_LOGICAL4]) ++m4trace:configure.ac:438: -1- m4_pattern_allow([^OMPI_SIZEOF_FORTRAN_LOGICAL4$]) ++m4trace:configure.ac:438: -1- AH_OUTPUT([OMPI_SIZEOF_FORTRAN_LOGICAL4], [/* Size of Fortran 77 LOGICAL*4 */ ++#undef OMPI_SIZEOF_FORTRAN_LOGICAL4]) ++m4trace:configure.ac:438: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_FORTRAN_LOGICAL4]) ++m4trace:configure.ac:438: -1- m4_pattern_allow([^OMPI_ALIGNMENT_FORTRAN_LOGICAL4$]) ++m4trace:configure.ac:438: -1- AH_OUTPUT([OMPI_ALIGNMENT_FORTRAN_LOGICAL4], [/* Alignment of Fortran 77 LOGICAL*4 */ ++#undef OMPI_ALIGNMENT_FORTRAN_LOGICAL4]) ++m4trace:configure.ac:438: -1- AC_DEFINE_TRACE_LITERAL([ompi_fortran_logical4_t]) ++m4trace:configure.ac:438: -1- m4_pattern_allow([^ompi_fortran_logical4_t$]) ++m4trace:configure.ac:438: -1- AH_OUTPUT([ompi_fortran_logical4_t], [/* C type corresponding to Fortran 77 LOGICAL*4 */ ++#undef ompi_fortran_logical4_t]) ++m4trace:configure.ac:440: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_FORTRAN_LOGICAL8]) ++m4trace:configure.ac:440: -1- m4_pattern_allow([^OMPI_HAVE_FORTRAN_LOGICAL8$]) ++m4trace:configure.ac:440: -1- AH_OUTPUT([OMPI_HAVE_FORTRAN_LOGICAL8], [/* Whether we have Fortran 77 LOGICAL*8 or not */ ++#undef OMPI_HAVE_FORTRAN_LOGICAL8]) ++m4trace:configure.ac:440: -1- AC_DEFINE_TRACE_LITERAL([OMPI_SIZEOF_FORTRAN_LOGICAL8]) ++m4trace:configure.ac:440: -1- m4_pattern_allow([^OMPI_SIZEOF_FORTRAN_LOGICAL8$]) ++m4trace:configure.ac:440: -1- AH_OUTPUT([OMPI_SIZEOF_FORTRAN_LOGICAL8], [/* Size of Fortran 77 LOGICAL*8 */ ++#undef OMPI_SIZEOF_FORTRAN_LOGICAL8]) ++m4trace:configure.ac:440: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_FORTRAN_LOGICAL8]) ++m4trace:configure.ac:440: -1- m4_pattern_allow([^OMPI_ALIGNMENT_FORTRAN_LOGICAL8$]) ++m4trace:configure.ac:440: -1- AH_OUTPUT([OMPI_ALIGNMENT_FORTRAN_LOGICAL8], [/* Alignment of Fortran 77 LOGICAL*8 */ ++#undef OMPI_ALIGNMENT_FORTRAN_LOGICAL8]) ++m4trace:configure.ac:440: -1- AC_DEFINE_TRACE_LITERAL([ompi_fortran_logical8_t]) ++m4trace:configure.ac:440: -1- m4_pattern_allow([^ompi_fortran_logical8_t$]) ++m4trace:configure.ac:440: -1- AH_OUTPUT([ompi_fortran_logical8_t], [/* C type corresponding to Fortran 77 LOGICAL*8 */ ++#undef ompi_fortran_logical8_t]) ++m4trace:configure.ac:442: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_FORTRAN_INTEGER]) ++m4trace:configure.ac:442: -1- m4_pattern_allow([^OMPI_HAVE_FORTRAN_INTEGER$]) ++m4trace:configure.ac:442: -1- AH_OUTPUT([OMPI_HAVE_FORTRAN_INTEGER], [/* Whether we have Fortran 77 INTEGER or not */ ++#undef OMPI_HAVE_FORTRAN_INTEGER]) ++m4trace:configure.ac:442: -1- AC_DEFINE_TRACE_LITERAL([OMPI_SIZEOF_FORTRAN_INTEGER]) ++m4trace:configure.ac:442: -1- m4_pattern_allow([^OMPI_SIZEOF_FORTRAN_INTEGER$]) ++m4trace:configure.ac:442: -1- AH_OUTPUT([OMPI_SIZEOF_FORTRAN_INTEGER], [/* Size of Fortran 77 INTEGER */ ++#undef OMPI_SIZEOF_FORTRAN_INTEGER]) ++m4trace:configure.ac:442: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_FORTRAN_INTEGER]) ++m4trace:configure.ac:442: -1- m4_pattern_allow([^OMPI_ALIGNMENT_FORTRAN_INTEGER$]) ++m4trace:configure.ac:442: -1- AH_OUTPUT([OMPI_ALIGNMENT_FORTRAN_INTEGER], [/* Alignment of Fortran 77 INTEGER */ ++#undef OMPI_ALIGNMENT_FORTRAN_INTEGER]) ++m4trace:configure.ac:442: -1- AC_DEFINE_TRACE_LITERAL([ompi_fortran_integer_t]) ++m4trace:configure.ac:442: -1- m4_pattern_allow([^ompi_fortran_integer_t$]) ++m4trace:configure.ac:442: -1- AH_OUTPUT([ompi_fortran_integer_t], [/* C type corresponding to Fortran 77 INTEGER */ ++#undef ompi_fortran_integer_t]) ++m4trace:configure.ac:444: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_FORTRAN_INTEGER1]) ++m4trace:configure.ac:444: -1- m4_pattern_allow([^OMPI_HAVE_FORTRAN_INTEGER1$]) ++m4trace:configure.ac:444: -1- AH_OUTPUT([OMPI_HAVE_FORTRAN_INTEGER1], [/* Whether we have Fortran 77 INTEGER*1 or not */ ++#undef OMPI_HAVE_FORTRAN_INTEGER1]) ++m4trace:configure.ac:444: -1- AC_DEFINE_TRACE_LITERAL([OMPI_SIZEOF_FORTRAN_INTEGER1]) ++m4trace:configure.ac:444: -1- m4_pattern_allow([^OMPI_SIZEOF_FORTRAN_INTEGER1$]) ++m4trace:configure.ac:444: -1- AH_OUTPUT([OMPI_SIZEOF_FORTRAN_INTEGER1], [/* Size of Fortran 77 INTEGER*1 */ ++#undef OMPI_SIZEOF_FORTRAN_INTEGER1]) ++m4trace:configure.ac:444: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_FORTRAN_INTEGER1]) ++m4trace:configure.ac:444: -1- m4_pattern_allow([^OMPI_ALIGNMENT_FORTRAN_INTEGER1$]) ++m4trace:configure.ac:444: -1- AH_OUTPUT([OMPI_ALIGNMENT_FORTRAN_INTEGER1], [/* Alignment of Fortran 77 INTEGER*1 */ ++#undef OMPI_ALIGNMENT_FORTRAN_INTEGER1]) ++m4trace:configure.ac:444: -1- AC_DEFINE_TRACE_LITERAL([ompi_fortran_integer1_t]) ++m4trace:configure.ac:444: -1- m4_pattern_allow([^ompi_fortran_integer1_t$]) ++m4trace:configure.ac:444: -1- AH_OUTPUT([ompi_fortran_integer1_t], [/* C type corresponding to Fortran 77 INTEGER*1 */ ++#undef ompi_fortran_integer1_t]) ++m4trace:configure.ac:446: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_FORTRAN_INTEGER2]) ++m4trace:configure.ac:446: -1- m4_pattern_allow([^OMPI_HAVE_FORTRAN_INTEGER2$]) ++m4trace:configure.ac:446: -1- AH_OUTPUT([OMPI_HAVE_FORTRAN_INTEGER2], [/* Whether we have Fortran 77 INTEGER*2 or not */ ++#undef OMPI_HAVE_FORTRAN_INTEGER2]) ++m4trace:configure.ac:446: -1- AC_DEFINE_TRACE_LITERAL([OMPI_SIZEOF_FORTRAN_INTEGER2]) ++m4trace:configure.ac:446: -1- m4_pattern_allow([^OMPI_SIZEOF_FORTRAN_INTEGER2$]) ++m4trace:configure.ac:446: -1- AH_OUTPUT([OMPI_SIZEOF_FORTRAN_INTEGER2], [/* Size of Fortran 77 INTEGER*2 */ ++#undef OMPI_SIZEOF_FORTRAN_INTEGER2]) ++m4trace:configure.ac:446: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_FORTRAN_INTEGER2]) ++m4trace:configure.ac:446: -1- m4_pattern_allow([^OMPI_ALIGNMENT_FORTRAN_INTEGER2$]) ++m4trace:configure.ac:446: -1- AH_OUTPUT([OMPI_ALIGNMENT_FORTRAN_INTEGER2], [/* Alignment of Fortran 77 INTEGER*2 */ ++#undef OMPI_ALIGNMENT_FORTRAN_INTEGER2]) ++m4trace:configure.ac:446: -1- AC_DEFINE_TRACE_LITERAL([ompi_fortran_integer2_t]) ++m4trace:configure.ac:446: -1- m4_pattern_allow([^ompi_fortran_integer2_t$]) ++m4trace:configure.ac:446: -1- AH_OUTPUT([ompi_fortran_integer2_t], [/* C type corresponding to Fortran 77 INTEGER*2 */ ++#undef ompi_fortran_integer2_t]) ++m4trace:configure.ac:448: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_FORTRAN_INTEGER4]) ++m4trace:configure.ac:448: -1- m4_pattern_allow([^OMPI_HAVE_FORTRAN_INTEGER4$]) ++m4trace:configure.ac:448: -1- AH_OUTPUT([OMPI_HAVE_FORTRAN_INTEGER4], [/* Whether we have Fortran 77 INTEGER*4 or not */ ++#undef OMPI_HAVE_FORTRAN_INTEGER4]) ++m4trace:configure.ac:448: -1- AC_DEFINE_TRACE_LITERAL([OMPI_SIZEOF_FORTRAN_INTEGER4]) ++m4trace:configure.ac:448: -1- m4_pattern_allow([^OMPI_SIZEOF_FORTRAN_INTEGER4$]) ++m4trace:configure.ac:448: -1- AH_OUTPUT([OMPI_SIZEOF_FORTRAN_INTEGER4], [/* Size of Fortran 77 INTEGER*4 */ ++#undef OMPI_SIZEOF_FORTRAN_INTEGER4]) ++m4trace:configure.ac:448: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_FORTRAN_INTEGER4]) ++m4trace:configure.ac:448: -1- m4_pattern_allow([^OMPI_ALIGNMENT_FORTRAN_INTEGER4$]) ++m4trace:configure.ac:448: -1- AH_OUTPUT([OMPI_ALIGNMENT_FORTRAN_INTEGER4], [/* Alignment of Fortran 77 INTEGER*4 */ ++#undef OMPI_ALIGNMENT_FORTRAN_INTEGER4]) ++m4trace:configure.ac:448: -1- AC_DEFINE_TRACE_LITERAL([ompi_fortran_integer4_t]) ++m4trace:configure.ac:448: -1- m4_pattern_allow([^ompi_fortran_integer4_t$]) ++m4trace:configure.ac:448: -1- AH_OUTPUT([ompi_fortran_integer4_t], [/* C type corresponding to Fortran 77 INTEGER*4 */ ++#undef ompi_fortran_integer4_t]) ++m4trace:configure.ac:450: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_FORTRAN_INTEGER8]) ++m4trace:configure.ac:450: -1- m4_pattern_allow([^OMPI_HAVE_FORTRAN_INTEGER8$]) ++m4trace:configure.ac:450: -1- AH_OUTPUT([OMPI_HAVE_FORTRAN_INTEGER8], [/* Whether we have Fortran 77 INTEGER*8 or not */ ++#undef OMPI_HAVE_FORTRAN_INTEGER8]) ++m4trace:configure.ac:450: -1- AC_DEFINE_TRACE_LITERAL([OMPI_SIZEOF_FORTRAN_INTEGER8]) ++m4trace:configure.ac:450: -1- m4_pattern_allow([^OMPI_SIZEOF_FORTRAN_INTEGER8$]) ++m4trace:configure.ac:450: -1- AH_OUTPUT([OMPI_SIZEOF_FORTRAN_INTEGER8], [/* Size of Fortran 77 INTEGER*8 */ ++#undef OMPI_SIZEOF_FORTRAN_INTEGER8]) ++m4trace:configure.ac:450: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_FORTRAN_INTEGER8]) ++m4trace:configure.ac:450: -1- m4_pattern_allow([^OMPI_ALIGNMENT_FORTRAN_INTEGER8$]) ++m4trace:configure.ac:450: -1- AH_OUTPUT([OMPI_ALIGNMENT_FORTRAN_INTEGER8], [/* Alignment of Fortran 77 INTEGER*8 */ ++#undef OMPI_ALIGNMENT_FORTRAN_INTEGER8]) ++m4trace:configure.ac:450: -1- AC_DEFINE_TRACE_LITERAL([ompi_fortran_integer8_t]) ++m4trace:configure.ac:450: -1- m4_pattern_allow([^ompi_fortran_integer8_t$]) ++m4trace:configure.ac:450: -1- AH_OUTPUT([ompi_fortran_integer8_t], [/* C type corresponding to Fortran 77 INTEGER*8 */ ++#undef ompi_fortran_integer8_t]) ++m4trace:configure.ac:452: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_FORTRAN_INTEGER16]) ++m4trace:configure.ac:452: -1- m4_pattern_allow([^OMPI_HAVE_FORTRAN_INTEGER16$]) ++m4trace:configure.ac:452: -1- AH_OUTPUT([OMPI_HAVE_FORTRAN_INTEGER16], [/* Whether we have Fortran 77 INTEGER*16 or not */ ++#undef OMPI_HAVE_FORTRAN_INTEGER16]) ++m4trace:configure.ac:452: -1- AC_DEFINE_TRACE_LITERAL([OMPI_SIZEOF_FORTRAN_INTEGER16]) ++m4trace:configure.ac:452: -1- m4_pattern_allow([^OMPI_SIZEOF_FORTRAN_INTEGER16$]) ++m4trace:configure.ac:452: -1- AH_OUTPUT([OMPI_SIZEOF_FORTRAN_INTEGER16], [/* Size of Fortran 77 INTEGER*16 */ ++#undef OMPI_SIZEOF_FORTRAN_INTEGER16]) ++m4trace:configure.ac:452: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_FORTRAN_INTEGER16]) ++m4trace:configure.ac:452: -1- m4_pattern_allow([^OMPI_ALIGNMENT_FORTRAN_INTEGER16$]) ++m4trace:configure.ac:452: -1- AH_OUTPUT([OMPI_ALIGNMENT_FORTRAN_INTEGER16], [/* Alignment of Fortran 77 INTEGER*16 */ ++#undef OMPI_ALIGNMENT_FORTRAN_INTEGER16]) ++m4trace:configure.ac:452: -1- AC_DEFINE_TRACE_LITERAL([ompi_fortran_integer16_t]) ++m4trace:configure.ac:452: -1- m4_pattern_allow([^ompi_fortran_integer16_t$]) ++m4trace:configure.ac:452: -1- AH_OUTPUT([ompi_fortran_integer16_t], [/* C type corresponding to Fortran 77 INTEGER*16 */ ++#undef ompi_fortran_integer16_t]) ++m4trace:configure.ac:455: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_FORTRAN_REAL]) ++m4trace:configure.ac:455: -1- m4_pattern_allow([^OMPI_HAVE_FORTRAN_REAL$]) ++m4trace:configure.ac:455: -1- AH_OUTPUT([OMPI_HAVE_FORTRAN_REAL], [/* Whether we have Fortran 77 REAL or not */ ++#undef OMPI_HAVE_FORTRAN_REAL]) ++m4trace:configure.ac:455: -1- AC_DEFINE_TRACE_LITERAL([OMPI_SIZEOF_FORTRAN_REAL]) ++m4trace:configure.ac:455: -1- m4_pattern_allow([^OMPI_SIZEOF_FORTRAN_REAL$]) ++m4trace:configure.ac:455: -1- AH_OUTPUT([OMPI_SIZEOF_FORTRAN_REAL], [/* Size of Fortran 77 REAL */ ++#undef OMPI_SIZEOF_FORTRAN_REAL]) ++m4trace:configure.ac:455: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_FORTRAN_REAL]) ++m4trace:configure.ac:455: -1- m4_pattern_allow([^OMPI_ALIGNMENT_FORTRAN_REAL$]) ++m4trace:configure.ac:455: -1- AH_OUTPUT([OMPI_ALIGNMENT_FORTRAN_REAL], [/* Alignment of Fortran 77 REAL */ ++#undef OMPI_ALIGNMENT_FORTRAN_REAL]) ++m4trace:configure.ac:455: -1- AC_DEFINE_TRACE_LITERAL([ompi_fortran_real_t]) ++m4trace:configure.ac:455: -1- m4_pattern_allow([^ompi_fortran_real_t$]) ++m4trace:configure.ac:455: -1- AH_OUTPUT([ompi_fortran_real_t], [/* C type corresponding to Fortran 77 REAL */ ++#undef ompi_fortran_real_t]) ++m4trace:configure.ac:457: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_FORTRAN_REAL2]) ++m4trace:configure.ac:457: -1- m4_pattern_allow([^OMPI_HAVE_FORTRAN_REAL2$]) ++m4trace:configure.ac:457: -1- AH_OUTPUT([OMPI_HAVE_FORTRAN_REAL2], [/* Whether we have Fortran 77 REAL*2 or not */ ++#undef OMPI_HAVE_FORTRAN_REAL2]) ++m4trace:configure.ac:457: -1- AC_DEFINE_TRACE_LITERAL([OMPI_SIZEOF_FORTRAN_REAL2]) ++m4trace:configure.ac:457: -1- m4_pattern_allow([^OMPI_SIZEOF_FORTRAN_REAL2$]) ++m4trace:configure.ac:457: -1- AH_OUTPUT([OMPI_SIZEOF_FORTRAN_REAL2], [/* Size of Fortran 77 REAL*2 */ ++#undef OMPI_SIZEOF_FORTRAN_REAL2]) ++m4trace:configure.ac:457: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_FORTRAN_REAL2]) ++m4trace:configure.ac:457: -1- m4_pattern_allow([^OMPI_ALIGNMENT_FORTRAN_REAL2$]) ++m4trace:configure.ac:457: -1- AH_OUTPUT([OMPI_ALIGNMENT_FORTRAN_REAL2], [/* Alignment of Fortran 77 REAL*2 */ ++#undef OMPI_ALIGNMENT_FORTRAN_REAL2]) ++m4trace:configure.ac:457: -1- AC_DEFINE_TRACE_LITERAL([ompi_fortran_real2_t]) ++m4trace:configure.ac:457: -1- m4_pattern_allow([^ompi_fortran_real2_t$]) ++m4trace:configure.ac:457: -1- AH_OUTPUT([ompi_fortran_real2_t], [/* C type corresponding to Fortran 77 REAL*2 */ ++#undef ompi_fortran_real2_t]) ++m4trace:configure.ac:459: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_FORTRAN_REAL4]) ++m4trace:configure.ac:459: -1- m4_pattern_allow([^OMPI_HAVE_FORTRAN_REAL4$]) ++m4trace:configure.ac:459: -1- AH_OUTPUT([OMPI_HAVE_FORTRAN_REAL4], [/* Whether we have Fortran 77 REAL*4 or not */ ++#undef OMPI_HAVE_FORTRAN_REAL4]) ++m4trace:configure.ac:459: -1- AC_DEFINE_TRACE_LITERAL([OMPI_SIZEOF_FORTRAN_REAL4]) ++m4trace:configure.ac:459: -1- m4_pattern_allow([^OMPI_SIZEOF_FORTRAN_REAL4$]) ++m4trace:configure.ac:459: -1- AH_OUTPUT([OMPI_SIZEOF_FORTRAN_REAL4], [/* Size of Fortran 77 REAL*4 */ ++#undef OMPI_SIZEOF_FORTRAN_REAL4]) ++m4trace:configure.ac:459: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_FORTRAN_REAL4]) ++m4trace:configure.ac:459: -1- m4_pattern_allow([^OMPI_ALIGNMENT_FORTRAN_REAL4$]) ++m4trace:configure.ac:459: -1- AH_OUTPUT([OMPI_ALIGNMENT_FORTRAN_REAL4], [/* Alignment of Fortran 77 REAL*4 */ ++#undef OMPI_ALIGNMENT_FORTRAN_REAL4]) ++m4trace:configure.ac:459: -1- AC_DEFINE_TRACE_LITERAL([ompi_fortran_real4_t]) ++m4trace:configure.ac:459: -1- m4_pattern_allow([^ompi_fortran_real4_t$]) ++m4trace:configure.ac:459: -1- AH_OUTPUT([ompi_fortran_real4_t], [/* C type corresponding to Fortran 77 REAL*4 */ ++#undef ompi_fortran_real4_t]) ++m4trace:configure.ac:461: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_FORTRAN_REAL8]) ++m4trace:configure.ac:461: -1- m4_pattern_allow([^OMPI_HAVE_FORTRAN_REAL8$]) ++m4trace:configure.ac:461: -1- AH_OUTPUT([OMPI_HAVE_FORTRAN_REAL8], [/* Whether we have Fortran 77 REAL*8 or not */ ++#undef OMPI_HAVE_FORTRAN_REAL8]) ++m4trace:configure.ac:461: -1- AC_DEFINE_TRACE_LITERAL([OMPI_SIZEOF_FORTRAN_REAL8]) ++m4trace:configure.ac:461: -1- m4_pattern_allow([^OMPI_SIZEOF_FORTRAN_REAL8$]) ++m4trace:configure.ac:461: -1- AH_OUTPUT([OMPI_SIZEOF_FORTRAN_REAL8], [/* Size of Fortran 77 REAL*8 */ ++#undef OMPI_SIZEOF_FORTRAN_REAL8]) ++m4trace:configure.ac:461: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_FORTRAN_REAL8]) ++m4trace:configure.ac:461: -1- m4_pattern_allow([^OMPI_ALIGNMENT_FORTRAN_REAL8$]) ++m4trace:configure.ac:461: -1- AH_OUTPUT([OMPI_ALIGNMENT_FORTRAN_REAL8], [/* Alignment of Fortran 77 REAL*8 */ ++#undef OMPI_ALIGNMENT_FORTRAN_REAL8]) ++m4trace:configure.ac:461: -1- AC_DEFINE_TRACE_LITERAL([ompi_fortran_real8_t]) ++m4trace:configure.ac:461: -1- m4_pattern_allow([^ompi_fortran_real8_t$]) ++m4trace:configure.ac:461: -1- AH_OUTPUT([ompi_fortran_real8_t], [/* C type corresponding to Fortran 77 REAL*8 */ ++#undef ompi_fortran_real8_t]) ++m4trace:configure.ac:463: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_FORTRAN_REAL16]) ++m4trace:configure.ac:463: -1- m4_pattern_allow([^OMPI_HAVE_FORTRAN_REAL16$]) ++m4trace:configure.ac:463: -1- AH_OUTPUT([OMPI_HAVE_FORTRAN_REAL16], [/* Whether we have Fortran 77 REAL*16 or not */ ++#undef OMPI_HAVE_FORTRAN_REAL16]) ++m4trace:configure.ac:463: -1- AC_DEFINE_TRACE_LITERAL([OMPI_SIZEOF_FORTRAN_REAL16]) ++m4trace:configure.ac:463: -1- m4_pattern_allow([^OMPI_SIZEOF_FORTRAN_REAL16$]) ++m4trace:configure.ac:463: -1- AH_OUTPUT([OMPI_SIZEOF_FORTRAN_REAL16], [/* Size of Fortran 77 REAL*16 */ ++#undef OMPI_SIZEOF_FORTRAN_REAL16]) ++m4trace:configure.ac:463: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_FORTRAN_REAL16]) ++m4trace:configure.ac:463: -1- m4_pattern_allow([^OMPI_ALIGNMENT_FORTRAN_REAL16$]) ++m4trace:configure.ac:463: -1- AH_OUTPUT([OMPI_ALIGNMENT_FORTRAN_REAL16], [/* Alignment of Fortran 77 REAL*16 */ ++#undef OMPI_ALIGNMENT_FORTRAN_REAL16]) ++m4trace:configure.ac:463: -1- AC_DEFINE_TRACE_LITERAL([ompi_fortran_real16_t]) ++m4trace:configure.ac:463: -1- m4_pattern_allow([^ompi_fortran_real16_t$]) ++m4trace:configure.ac:463: -1- AH_OUTPUT([ompi_fortran_real16_t], [/* C type corresponding to Fortran 77 REAL*16 */ ++#undef ompi_fortran_real16_t]) ++m4trace:configure.ac:469: -1- AC_DEFINE_TRACE_LITERAL([OMPI_REAL16_MATCHES_C]) ++m4trace:configure.ac:469: -1- m4_pattern_allow([^OMPI_REAL16_MATCHES_C$]) ++m4trace:configure.ac:469: -1- AH_OUTPUT([OMPI_REAL16_MATCHES_C], [/* Whether Fortran REAL*16 matches the bit format of the equivalent C type */ ++#undef OMPI_REAL16_MATCHES_C]) ++m4trace:configure.ac:471: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_FORTRAN_DOUBLE_PRECISION]) ++m4trace:configure.ac:471: -1- m4_pattern_allow([^OMPI_HAVE_FORTRAN_DOUBLE_PRECISION$]) ++m4trace:configure.ac:471: -1- AH_OUTPUT([OMPI_HAVE_FORTRAN_DOUBLE_PRECISION], [/* Whether we have Fortran 77 DOUBLE PRECISION or not */ ++#undef OMPI_HAVE_FORTRAN_DOUBLE_PRECISION]) ++m4trace:configure.ac:471: -1- AC_DEFINE_TRACE_LITERAL([OMPI_SIZEOF_FORTRAN_DOUBLE_PRECISION]) ++m4trace:configure.ac:471: -1- m4_pattern_allow([^OMPI_SIZEOF_FORTRAN_DOUBLE_PRECISION$]) ++m4trace:configure.ac:471: -1- AH_OUTPUT([OMPI_SIZEOF_FORTRAN_DOUBLE_PRECISION], [/* Size of Fortran 77 DOUBLE PRECISION */ ++#undef OMPI_SIZEOF_FORTRAN_DOUBLE_PRECISION]) ++m4trace:configure.ac:471: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_FORTRAN_DOUBLE_PRECISION]) ++m4trace:configure.ac:471: -1- m4_pattern_allow([^OMPI_ALIGNMENT_FORTRAN_DOUBLE_PRECISION$]) ++m4trace:configure.ac:471: -1- AH_OUTPUT([OMPI_ALIGNMENT_FORTRAN_DOUBLE_PRECISION], [/* Alignment of Fortran 77 DOUBLE PRECISION */ ++#undef OMPI_ALIGNMENT_FORTRAN_DOUBLE_PRECISION]) ++m4trace:configure.ac:471: -1- AC_DEFINE_TRACE_LITERAL([ompi_fortran_double_precision_t]) ++m4trace:configure.ac:471: -1- m4_pattern_allow([^ompi_fortran_double_precision_t$]) ++m4trace:configure.ac:471: -1- AH_OUTPUT([ompi_fortran_double_precision_t], [/* C type corresponding to Fortran 77 DOUBLE PRECISION */ ++#undef ompi_fortran_double_precision_t]) ++m4trace:configure.ac:474: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_FORTRAN_COMPLEX]) ++m4trace:configure.ac:474: -1- m4_pattern_allow([^OMPI_HAVE_FORTRAN_COMPLEX$]) ++m4trace:configure.ac:474: -1- AH_OUTPUT([OMPI_HAVE_FORTRAN_COMPLEX], [/* Whether we have Fortran 77 COMPLEX or not */ ++#undef OMPI_HAVE_FORTRAN_COMPLEX]) ++m4trace:configure.ac:474: -1- AC_DEFINE_TRACE_LITERAL([OMPI_SIZEOF_FORTRAN_COMPLEX]) ++m4trace:configure.ac:474: -1- m4_pattern_allow([^OMPI_SIZEOF_FORTRAN_COMPLEX$]) ++m4trace:configure.ac:474: -1- AH_OUTPUT([OMPI_SIZEOF_FORTRAN_COMPLEX], [/* Size of Fortran 77 COMPLEX */ ++#undef OMPI_SIZEOF_FORTRAN_COMPLEX]) ++m4trace:configure.ac:474: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_FORTRAN_COMPLEX]) ++m4trace:configure.ac:474: -1- m4_pattern_allow([^OMPI_ALIGNMENT_FORTRAN_COMPLEX$]) ++m4trace:configure.ac:474: -1- AH_OUTPUT([OMPI_ALIGNMENT_FORTRAN_COMPLEX], [/* Alignment of Fortran 77 COMPLEX */ ++#undef OMPI_ALIGNMENT_FORTRAN_COMPLEX]) ++m4trace:configure.ac:474: -1- AC_DEFINE_TRACE_LITERAL([ompi_fortran_complex_t]) ++m4trace:configure.ac:474: -1- m4_pattern_allow([^ompi_fortran_complex_t$]) ++m4trace:configure.ac:474: -1- AH_OUTPUT([ompi_fortran_complex_t], [/* C type corresponding to Fortran 77 COMPLEX */ ++#undef ompi_fortran_complex_t]) ++m4trace:configure.ac:487: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_FORTRAN_COMPLEX8]) ++m4trace:configure.ac:487: -1- m4_pattern_allow([^OMPI_HAVE_FORTRAN_COMPLEX8$]) ++m4trace:configure.ac:487: -1- AH_OUTPUT([OMPI_HAVE_FORTRAN_COMPLEX8], [/* Whether we have Fortran 77 COMPLEX*8 or not */ ++#undef OMPI_HAVE_FORTRAN_COMPLEX8]) ++m4trace:configure.ac:487: -1- AC_DEFINE_TRACE_LITERAL([OMPI_SIZEOF_FORTRAN_COMPLEX8]) ++m4trace:configure.ac:487: -1- m4_pattern_allow([^OMPI_SIZEOF_FORTRAN_COMPLEX8$]) ++m4trace:configure.ac:487: -1- AH_OUTPUT([OMPI_SIZEOF_FORTRAN_COMPLEX8], [/* Size of Fortran 77 COMPLEX*8 */ ++#undef OMPI_SIZEOF_FORTRAN_COMPLEX8]) ++m4trace:configure.ac:487: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_FORTRAN_COMPLEX8]) ++m4trace:configure.ac:487: -1- m4_pattern_allow([^OMPI_ALIGNMENT_FORTRAN_COMPLEX8$]) ++m4trace:configure.ac:487: -1- AH_OUTPUT([OMPI_ALIGNMENT_FORTRAN_COMPLEX8], [/* Alignment of Fortran 77 COMPLEX*8 */ ++#undef OMPI_ALIGNMENT_FORTRAN_COMPLEX8]) ++m4trace:configure.ac:487: -1- AC_DEFINE_TRACE_LITERAL([ompi_fortran_complex8_t]) ++m4trace:configure.ac:487: -1- m4_pattern_allow([^ompi_fortran_complex8_t$]) ++m4trace:configure.ac:487: -1- AH_OUTPUT([ompi_fortran_complex8_t], [/* C type corresponding to Fortran 77 COMPLEX*8 */ ++#undef ompi_fortran_complex8_t]) ++m4trace:configure.ac:488: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_FORTRAN_COMPLEX16]) ++m4trace:configure.ac:488: -1- m4_pattern_allow([^OMPI_HAVE_FORTRAN_COMPLEX16$]) ++m4trace:configure.ac:488: -1- AH_OUTPUT([OMPI_HAVE_FORTRAN_COMPLEX16], [/* Whether we have Fortran 77 COMPLEX*16 or not */ ++#undef OMPI_HAVE_FORTRAN_COMPLEX16]) ++m4trace:configure.ac:488: -1- AC_DEFINE_TRACE_LITERAL([OMPI_SIZEOF_FORTRAN_COMPLEX16]) ++m4trace:configure.ac:488: -1- m4_pattern_allow([^OMPI_SIZEOF_FORTRAN_COMPLEX16$]) ++m4trace:configure.ac:488: -1- AH_OUTPUT([OMPI_SIZEOF_FORTRAN_COMPLEX16], [/* Size of Fortran 77 COMPLEX*16 */ ++#undef OMPI_SIZEOF_FORTRAN_COMPLEX16]) ++m4trace:configure.ac:488: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_FORTRAN_COMPLEX16]) ++m4trace:configure.ac:488: -1- m4_pattern_allow([^OMPI_ALIGNMENT_FORTRAN_COMPLEX16$]) ++m4trace:configure.ac:488: -1- AH_OUTPUT([OMPI_ALIGNMENT_FORTRAN_COMPLEX16], [/* Alignment of Fortran 77 COMPLEX*16 */ ++#undef OMPI_ALIGNMENT_FORTRAN_COMPLEX16]) ++m4trace:configure.ac:488: -1- AC_DEFINE_TRACE_LITERAL([ompi_fortran_complex16_t]) ++m4trace:configure.ac:488: -1- m4_pattern_allow([^ompi_fortran_complex16_t$]) ++m4trace:configure.ac:488: -1- AH_OUTPUT([ompi_fortran_complex16_t], [/* C type corresponding to Fortran 77 COMPLEX*16 */ ++#undef ompi_fortran_complex16_t]) ++m4trace:configure.ac:489: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_FORTRAN_COMPLEX32]) ++m4trace:configure.ac:489: -1- m4_pattern_allow([^OMPI_HAVE_FORTRAN_COMPLEX32$]) ++m4trace:configure.ac:489: -1- AH_OUTPUT([OMPI_HAVE_FORTRAN_COMPLEX32], [/* Whether we have Fortran 77 COMPLEX*32 or not */ ++#undef OMPI_HAVE_FORTRAN_COMPLEX32]) ++m4trace:configure.ac:489: -1- AC_DEFINE_TRACE_LITERAL([OMPI_SIZEOF_FORTRAN_COMPLEX32]) ++m4trace:configure.ac:489: -1- m4_pattern_allow([^OMPI_SIZEOF_FORTRAN_COMPLEX32$]) ++m4trace:configure.ac:489: -1- AH_OUTPUT([OMPI_SIZEOF_FORTRAN_COMPLEX32], [/* Size of Fortran 77 COMPLEX*32 */ ++#undef OMPI_SIZEOF_FORTRAN_COMPLEX32]) ++m4trace:configure.ac:489: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGNMENT_FORTRAN_COMPLEX32]) ++m4trace:configure.ac:489: -1- m4_pattern_allow([^OMPI_ALIGNMENT_FORTRAN_COMPLEX32$]) ++m4trace:configure.ac:489: -1- AH_OUTPUT([OMPI_ALIGNMENT_FORTRAN_COMPLEX32], [/* Alignment of Fortran 77 COMPLEX*32 */ ++#undef OMPI_ALIGNMENT_FORTRAN_COMPLEX32]) ++m4trace:configure.ac:489: -1- AC_DEFINE_TRACE_LITERAL([ompi_fortran_complex32_t]) ++m4trace:configure.ac:489: -1- m4_pattern_allow([^ompi_fortran_complex32_t$]) ++m4trace:configure.ac:489: -1- AH_OUTPUT([ompi_fortran_complex32_t], [/* C type corresponding to Fortran 77 COMPLEX*32 */ ++#undef ompi_fortran_complex32_t]) ++m4trace:configure.ac:495: -1- AC_DEFINE_TRACE_LITERAL([OMPI_FORTRAN_HANDLE_MAX]) ++m4trace:configure.ac:495: -1- m4_pattern_allow([^OMPI_FORTRAN_HANDLE_MAX$]) ++m4trace:configure.ac:495: -1- AH_OUTPUT([OMPI_FORTRAN_HANDLE_MAX], [/* Max handle value for fortran MPI handles, effectively min(INT_MAX, max ++ fortran INTEGER value) */ ++#undef OMPI_FORTRAN_HANDLE_MAX]) ++m4trace:configure.ac:501: -1- AC_DEFINE_TRACE_LITERAL([OMPI_FORTRAN_VALUE_TRUE]) ++m4trace:configure.ac:501: -1- m4_pattern_allow([^OMPI_FORTRAN_VALUE_TRUE$]) ++m4trace:configure.ac:501: -1- AH_OUTPUT([OMPI_FORTRAN_VALUE_TRUE], [/* Fortran value for LOGICAL .TRUE. value */ ++#undef OMPI_FORTRAN_VALUE_TRUE]) ++m4trace:configure.ac:523: -1- AM_CONDITIONAL([WANT_MPI_F77_BINDINGS_LAYER], [test \( "$WANT_MPI_PROFILING" = 0 -o "$OMPI_PROFILING_COMPILE_SEPARATELY" = 1 \) -a "$OMPI_WANT_F77_BINDINGS" = 1]) ++m4trace:configure.ac:523: -1- AC_SUBST([WANT_MPI_F77_BINDINGS_LAYER_TRUE]) ++m4trace:configure.ac:523: -1- AC_SUBST_TRACE([WANT_MPI_F77_BINDINGS_LAYER_TRUE]) ++m4trace:configure.ac:523: -1- m4_pattern_allow([^WANT_MPI_F77_BINDINGS_LAYER_TRUE$]) ++m4trace:configure.ac:523: -1- AC_SUBST([WANT_MPI_F77_BINDINGS_LAYER_FALSE]) ++m4trace:configure.ac:523: -1- AC_SUBST_TRACE([WANT_MPI_F77_BINDINGS_LAYER_FALSE]) ++m4trace:configure.ac:523: -1- m4_pattern_allow([^WANT_MPI_F77_BINDINGS_LAYER_FALSE$]) ++m4trace:configure.ac:523: -1- _AM_SUBST_NOTMAKE([WANT_MPI_F77_BINDINGS_LAYER_TRUE]) ++m4trace:configure.ac:523: -1- _AM_SUBST_NOTMAKE([WANT_MPI_F77_BINDINGS_LAYER_FALSE]) ++m4trace:configure.ac:526: -1- AM_CONDITIONAL([WANT_PMPI_F77_BINDINGS_LAYER], [test "$OMPI_WANT_F77_BINDINGS" = 1 -a "$WANT_MPI_PROFILING" = 1]) ++m4trace:configure.ac:526: -1- AC_SUBST([WANT_PMPI_F77_BINDINGS_LAYER_TRUE]) ++m4trace:configure.ac:526: -1- AC_SUBST_TRACE([WANT_PMPI_F77_BINDINGS_LAYER_TRUE]) ++m4trace:configure.ac:526: -1- m4_pattern_allow([^WANT_PMPI_F77_BINDINGS_LAYER_TRUE$]) ++m4trace:configure.ac:526: -1- AC_SUBST([WANT_PMPI_F77_BINDINGS_LAYER_FALSE]) ++m4trace:configure.ac:526: -1- AC_SUBST_TRACE([WANT_PMPI_F77_BINDINGS_LAYER_FALSE]) ++m4trace:configure.ac:526: -1- m4_pattern_allow([^WANT_PMPI_F77_BINDINGS_LAYER_FALSE$]) ++m4trace:configure.ac:526: -1- _AM_SUBST_NOTMAKE([WANT_PMPI_F77_BINDINGS_LAYER_TRUE]) ++m4trace:configure.ac:526: -1- _AM_SUBST_NOTMAKE([WANT_PMPI_F77_BINDINGS_LAYER_FALSE]) ++m4trace:configure.ac:533: -1- AC_SUBST([FC]) ++m4trace:configure.ac:533: -1- AC_SUBST_TRACE([FC]) ++m4trace:configure.ac:533: -1- m4_pattern_allow([^FC$]) ++m4trace:configure.ac:533: -1- AC_SUBST([FCFLAGS]) ++m4trace:configure.ac:533: -1- AC_SUBST_TRACE([FCFLAGS]) ++m4trace:configure.ac:533: -1- m4_pattern_allow([^FCFLAGS$]) ++m4trace:configure.ac:533: -1- AC_SUBST([LDFLAGS]) ++m4trace:configure.ac:533: -1- AC_SUBST_TRACE([LDFLAGS]) ++m4trace:configure.ac:533: -1- m4_pattern_allow([^LDFLAGS$]) ++m4trace:configure.ac:533: -1- AC_SUBST([LIBS]) ++m4trace:configure.ac:533: -1- AC_SUBST_TRACE([LIBS]) ++m4trace:configure.ac:533: -1- m4_pattern_allow([^LIBS$]) ++m4trace:configure.ac:533: -1- AC_SUBST([FC]) ++m4trace:configure.ac:533: -1- AC_SUBST_TRACE([FC]) ++m4trace:configure.ac:533: -1- m4_pattern_allow([^FC$]) ++m4trace:configure.ac:533: -1- AC_SUBST([ac_ct_FC]) ++m4trace:configure.ac:533: -1- AC_SUBST_TRACE([ac_ct_FC]) ++m4trace:configure.ac:533: -1- m4_pattern_allow([^ac_ct_FC$]) ++m4trace:configure.ac:533: -1- AC_SUBST([OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS]) ++m4trace:configure.ac:533: -1- AC_SUBST_TRACE([OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS]) ++m4trace:configure.ac:533: -1- m4_pattern_allow([^OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS$]) ++m4trace:configure.ac:533: -1- AC_FC_SRCEXT([f]) ++m4trace:configure.ac:533: -1- AC_SUBST([FCFLAGS_f]) ++m4trace:configure.ac:533: -1- AC_SUBST_TRACE([FCFLAGS_f]) ++m4trace:configure.ac:533: -1- m4_pattern_allow([^FCFLAGS_f$]) ++m4trace:configure.ac:533: -1- AC_FC_SRCEXT([f90]) ++m4trace:configure.ac:533: -1- AC_SUBST([FCFLAGS_f90]) ++m4trace:configure.ac:533: -1- AC_SUBST_TRACE([FCFLAGS_f90]) ++m4trace:configure.ac:533: -1- m4_pattern_allow([^FCFLAGS_f90$]) ++m4trace:configure.ac:533: -1- AC_DEFINE_TRACE_LITERAL([OMPI_WANT_F90_BINDINGS]) ++m4trace:configure.ac:533: -1- m4_pattern_allow([^OMPI_WANT_F90_BINDINGS$]) ++m4trace:configure.ac:533: -1- AH_OUTPUT([OMPI_WANT_F90_BINDINGS], [/* Whether we want the MPI f90 bindings or not */ ++#undef OMPI_WANT_F90_BINDINGS]) ++m4trace:configure.ac:533: -1- AC_DEFINE_TRACE_LITERAL([OMPI_F90]) ++m4trace:configure.ac:533: -1- m4_pattern_allow([^OMPI_F90$]) ++m4trace:configure.ac:533: -1- AH_OUTPUT([OMPI_F90], [/* OMPI underlying F90 compiler */ ++#undef OMPI_F90]) ++m4trace:configure.ac:533: -1- AM_CONDITIONAL([OMPI_WANT_F90_BINDINGS], [test "$OMPI_WANT_F90_BINDINGS" = "1"]) ++m4trace:configure.ac:533: -1- AC_SUBST([OMPI_WANT_F90_BINDINGS_TRUE]) ++m4trace:configure.ac:533: -1- AC_SUBST_TRACE([OMPI_WANT_F90_BINDINGS_TRUE]) ++m4trace:configure.ac:533: -1- m4_pattern_allow([^OMPI_WANT_F90_BINDINGS_TRUE$]) ++m4trace:configure.ac:533: -1- AC_SUBST([OMPI_WANT_F90_BINDINGS_FALSE]) ++m4trace:configure.ac:533: -1- AC_SUBST_TRACE([OMPI_WANT_F90_BINDINGS_FALSE]) ++m4trace:configure.ac:533: -1- m4_pattern_allow([^OMPI_WANT_F90_BINDINGS_FALSE$]) ++m4trace:configure.ac:533: -1- _AM_SUBST_NOTMAKE([OMPI_WANT_F90_BINDINGS_TRUE]) ++m4trace:configure.ac:533: -1- _AM_SUBST_NOTMAKE([OMPI_WANT_F90_BINDINGS_FALSE]) ++m4trace:configure.ac:533: -1- AC_SUBST([OMPI_F90_ABSOLUTE]) ++m4trace:configure.ac:533: -1- AC_SUBST_TRACE([OMPI_F90_ABSOLUTE]) ++m4trace:configure.ac:533: -1- m4_pattern_allow([^OMPI_F90_ABSOLUTE$]) ++m4trace:configure.ac:536: -1- AC_SUBST([OMPI_FC_MODULE_FLAG]) ++m4trace:configure.ac:536: -1- AC_SUBST_TRACE([OMPI_FC_MODULE_FLAG]) ++m4trace:configure.ac:536: -1- m4_pattern_allow([^OMPI_FC_MODULE_FLAG$]) ++m4trace:configure.ac:544: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_F90_LOGICAL]) ++m4trace:configure.ac:544: -1- m4_pattern_allow([^OMPI_HAVE_F90_LOGICAL$]) ++m4trace:configure.ac:544: -1- AH_OUTPUT([OMPI_HAVE_F90_LOGICAL], [/* Whether we have Fortran 90 $ofc_fortran_type or not */ ++#undef OMPI_HAVE_F90_LOGICAL]) ++m4trace:configure.ac:544: -1- AC_SUBST([OMPI_SIZEOF_F90_LOGICAL]) ++m4trace:configure.ac:544: -1- AC_SUBST_TRACE([OMPI_SIZEOF_F90_LOGICAL]) ++m4trace:configure.ac:544: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_LOGICAL$]) ++m4trace:configure.ac:545: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_F90_LOGICAL1]) ++m4trace:configure.ac:545: -1- m4_pattern_allow([^OMPI_HAVE_F90_LOGICAL1$]) ++m4trace:configure.ac:545: -1- AH_OUTPUT([OMPI_HAVE_F90_LOGICAL1], [/* Whether we have Fortran 90 $ofc_fortran_type or not */ ++#undef OMPI_HAVE_F90_LOGICAL1]) ++m4trace:configure.ac:545: -1- AC_SUBST([OMPI_SIZEOF_F90_LOGICAL1]) ++m4trace:configure.ac:545: -1- AC_SUBST_TRACE([OMPI_SIZEOF_F90_LOGICAL1]) ++m4trace:configure.ac:545: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_LOGICAL1$]) ++m4trace:configure.ac:546: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_F90_LOGICAL2]) ++m4trace:configure.ac:546: -1- m4_pattern_allow([^OMPI_HAVE_F90_LOGICAL2$]) ++m4trace:configure.ac:546: -1- AH_OUTPUT([OMPI_HAVE_F90_LOGICAL2], [/* Whether we have Fortran 90 $ofc_fortran_type or not */ ++#undef OMPI_HAVE_F90_LOGICAL2]) ++m4trace:configure.ac:546: -1- AC_SUBST([OMPI_SIZEOF_F90_LOGICAL2]) ++m4trace:configure.ac:546: -1- AC_SUBST_TRACE([OMPI_SIZEOF_F90_LOGICAL2]) ++m4trace:configure.ac:546: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_LOGICAL2$]) ++m4trace:configure.ac:547: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_F90_LOGICAL4]) ++m4trace:configure.ac:547: -1- m4_pattern_allow([^OMPI_HAVE_F90_LOGICAL4$]) ++m4trace:configure.ac:547: -1- AH_OUTPUT([OMPI_HAVE_F90_LOGICAL4], [/* Whether we have Fortran 90 $ofc_fortran_type or not */ ++#undef OMPI_HAVE_F90_LOGICAL4]) ++m4trace:configure.ac:547: -1- AC_SUBST([OMPI_SIZEOF_F90_LOGICAL4]) ++m4trace:configure.ac:547: -1- AC_SUBST_TRACE([OMPI_SIZEOF_F90_LOGICAL4]) ++m4trace:configure.ac:547: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_LOGICAL4$]) ++m4trace:configure.ac:548: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_F90_LOGICAL8]) ++m4trace:configure.ac:548: -1- m4_pattern_allow([^OMPI_HAVE_F90_LOGICAL8$]) ++m4trace:configure.ac:548: -1- AH_OUTPUT([OMPI_HAVE_F90_LOGICAL8], [/* Whether we have Fortran 90 $ofc_fortran_type or not */ ++#undef OMPI_HAVE_F90_LOGICAL8]) ++m4trace:configure.ac:548: -1- AC_SUBST([OMPI_SIZEOF_F90_LOGICAL8]) ++m4trace:configure.ac:548: -1- AC_SUBST_TRACE([OMPI_SIZEOF_F90_LOGICAL8]) ++m4trace:configure.ac:548: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_LOGICAL8$]) ++m4trace:configure.ac:551: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_F90_INTEGER]) ++m4trace:configure.ac:551: -1- m4_pattern_allow([^OMPI_HAVE_F90_INTEGER$]) ++m4trace:configure.ac:551: -1- AH_OUTPUT([OMPI_HAVE_F90_INTEGER], [/* Whether we have Fortran 90 $ofc_fortran_type or not */ ++#undef OMPI_HAVE_F90_INTEGER]) ++m4trace:configure.ac:551: -1- AC_SUBST([OMPI_SIZEOF_F90_INTEGER]) ++m4trace:configure.ac:551: -1- AC_SUBST_TRACE([OMPI_SIZEOF_F90_INTEGER]) ++m4trace:configure.ac:551: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_INTEGER$]) ++m4trace:configure.ac:552: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_F90_INTEGER1]) ++m4trace:configure.ac:552: -1- m4_pattern_allow([^OMPI_HAVE_F90_INTEGER1$]) ++m4trace:configure.ac:552: -1- AH_OUTPUT([OMPI_HAVE_F90_INTEGER1], [/* Whether we have Fortran 90 $ofc_fortran_type or not */ ++#undef OMPI_HAVE_F90_INTEGER1]) ++m4trace:configure.ac:552: -1- AC_SUBST([OMPI_SIZEOF_F90_INTEGER1]) ++m4trace:configure.ac:552: -1- AC_SUBST_TRACE([OMPI_SIZEOF_F90_INTEGER1]) ++m4trace:configure.ac:552: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_INTEGER1$]) ++m4trace:configure.ac:553: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_F90_INTEGER2]) ++m4trace:configure.ac:553: -1- m4_pattern_allow([^OMPI_HAVE_F90_INTEGER2$]) ++m4trace:configure.ac:553: -1- AH_OUTPUT([OMPI_HAVE_F90_INTEGER2], [/* Whether we have Fortran 90 $ofc_fortran_type or not */ ++#undef OMPI_HAVE_F90_INTEGER2]) ++m4trace:configure.ac:553: -1- AC_SUBST([OMPI_SIZEOF_F90_INTEGER2]) ++m4trace:configure.ac:553: -1- AC_SUBST_TRACE([OMPI_SIZEOF_F90_INTEGER2]) ++m4trace:configure.ac:553: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_INTEGER2$]) ++m4trace:configure.ac:554: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_F90_INTEGER4]) ++m4trace:configure.ac:554: -1- m4_pattern_allow([^OMPI_HAVE_F90_INTEGER4$]) ++m4trace:configure.ac:554: -1- AH_OUTPUT([OMPI_HAVE_F90_INTEGER4], [/* Whether we have Fortran 90 $ofc_fortran_type or not */ ++#undef OMPI_HAVE_F90_INTEGER4]) ++m4trace:configure.ac:554: -1- AC_SUBST([OMPI_SIZEOF_F90_INTEGER4]) ++m4trace:configure.ac:554: -1- AC_SUBST_TRACE([OMPI_SIZEOF_F90_INTEGER4]) ++m4trace:configure.ac:554: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_INTEGER4$]) ++m4trace:configure.ac:555: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_F90_INTEGER8]) ++m4trace:configure.ac:555: -1- m4_pattern_allow([^OMPI_HAVE_F90_INTEGER8$]) ++m4trace:configure.ac:555: -1- AH_OUTPUT([OMPI_HAVE_F90_INTEGER8], [/* Whether we have Fortran 90 $ofc_fortran_type or not */ ++#undef OMPI_HAVE_F90_INTEGER8]) ++m4trace:configure.ac:555: -1- AC_SUBST([OMPI_SIZEOF_F90_INTEGER8]) ++m4trace:configure.ac:555: -1- AC_SUBST_TRACE([OMPI_SIZEOF_F90_INTEGER8]) ++m4trace:configure.ac:555: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_INTEGER8$]) ++m4trace:configure.ac:556: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_F90_INTEGER16]) ++m4trace:configure.ac:556: -1- m4_pattern_allow([^OMPI_HAVE_F90_INTEGER16$]) ++m4trace:configure.ac:556: -1- AH_OUTPUT([OMPI_HAVE_F90_INTEGER16], [/* Whether we have Fortran 90 $ofc_fortran_type or not */ ++#undef OMPI_HAVE_F90_INTEGER16]) ++m4trace:configure.ac:556: -1- AC_SUBST([OMPI_SIZEOF_F90_INTEGER16]) ++m4trace:configure.ac:556: -1- AC_SUBST_TRACE([OMPI_SIZEOF_F90_INTEGER16]) ++m4trace:configure.ac:556: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_INTEGER16$]) ++m4trace:configure.ac:559: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_F90_REAL]) ++m4trace:configure.ac:559: -1- m4_pattern_allow([^OMPI_HAVE_F90_REAL$]) ++m4trace:configure.ac:559: -1- AH_OUTPUT([OMPI_HAVE_F90_REAL], [/* Whether we have Fortran 90 $ofc_fortran_type or not */ ++#undef OMPI_HAVE_F90_REAL]) ++m4trace:configure.ac:559: -1- AC_SUBST([OMPI_SIZEOF_F90_REAL]) ++m4trace:configure.ac:559: -1- AC_SUBST_TRACE([OMPI_SIZEOF_F90_REAL]) ++m4trace:configure.ac:559: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_REAL$]) ++m4trace:configure.ac:560: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_F90_REAL2]) ++m4trace:configure.ac:560: -1- m4_pattern_allow([^OMPI_HAVE_F90_REAL2$]) ++m4trace:configure.ac:560: -1- AH_OUTPUT([OMPI_HAVE_F90_REAL2], [/* Whether we have Fortran 90 $ofc_fortran_type or not */ ++#undef OMPI_HAVE_F90_REAL2]) ++m4trace:configure.ac:560: -1- AC_SUBST([OMPI_SIZEOF_F90_REAL2]) ++m4trace:configure.ac:560: -1- AC_SUBST_TRACE([OMPI_SIZEOF_F90_REAL2]) ++m4trace:configure.ac:560: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_REAL2$]) ++m4trace:configure.ac:561: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_F90_REAL4]) ++m4trace:configure.ac:561: -1- m4_pattern_allow([^OMPI_HAVE_F90_REAL4$]) ++m4trace:configure.ac:561: -1- AH_OUTPUT([OMPI_HAVE_F90_REAL4], [/* Whether we have Fortran 90 $ofc_fortran_type or not */ ++#undef OMPI_HAVE_F90_REAL4]) ++m4trace:configure.ac:561: -1- AC_SUBST([OMPI_SIZEOF_F90_REAL4]) ++m4trace:configure.ac:561: -1- AC_SUBST_TRACE([OMPI_SIZEOF_F90_REAL4]) ++m4trace:configure.ac:561: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_REAL4$]) ++m4trace:configure.ac:562: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_F90_REAL8]) ++m4trace:configure.ac:562: -1- m4_pattern_allow([^OMPI_HAVE_F90_REAL8$]) ++m4trace:configure.ac:562: -1- AH_OUTPUT([OMPI_HAVE_F90_REAL8], [/* Whether we have Fortran 90 $ofc_fortran_type or not */ ++#undef OMPI_HAVE_F90_REAL8]) ++m4trace:configure.ac:562: -1- AC_SUBST([OMPI_SIZEOF_F90_REAL8]) ++m4trace:configure.ac:562: -1- AC_SUBST_TRACE([OMPI_SIZEOF_F90_REAL8]) ++m4trace:configure.ac:562: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_REAL8$]) ++m4trace:configure.ac:563: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_F90_REAL16]) ++m4trace:configure.ac:563: -1- m4_pattern_allow([^OMPI_HAVE_F90_REAL16$]) ++m4trace:configure.ac:563: -1- AH_OUTPUT([OMPI_HAVE_F90_REAL16], [/* Whether we have Fortran 90 $ofc_fortran_type or not */ ++#undef OMPI_HAVE_F90_REAL16]) ++m4trace:configure.ac:563: -1- AC_SUBST([OMPI_SIZEOF_F90_REAL16]) ++m4trace:configure.ac:563: -1- AC_SUBST_TRACE([OMPI_SIZEOF_F90_REAL16]) ++m4trace:configure.ac:563: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_REAL16$]) ++m4trace:configure.ac:564: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_F90_DOUBLE_PRECISION]) ++m4trace:configure.ac:564: -1- m4_pattern_allow([^OMPI_HAVE_F90_DOUBLE_PRECISION$]) ++m4trace:configure.ac:564: -1- AH_OUTPUT([OMPI_HAVE_F90_DOUBLE_PRECISION], [/* Whether we have Fortran 90 $ofc_fortran_type or not */ ++#undef OMPI_HAVE_F90_DOUBLE_PRECISION]) ++m4trace:configure.ac:564: -1- AC_SUBST([OMPI_SIZEOF_F90_DOUBLE_PRECISION]) ++m4trace:configure.ac:564: -1- AC_SUBST_TRACE([OMPI_SIZEOF_F90_DOUBLE_PRECISION]) ++m4trace:configure.ac:564: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_DOUBLE_PRECISION$]) ++m4trace:configure.ac:567: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_F90_COMPLEX]) ++m4trace:configure.ac:567: -1- m4_pattern_allow([^OMPI_HAVE_F90_COMPLEX$]) ++m4trace:configure.ac:567: -1- AH_OUTPUT([OMPI_HAVE_F90_COMPLEX], [/* Whether we have Fortran 90 $ofc_fortran_type or not */ ++#undef OMPI_HAVE_F90_COMPLEX]) ++m4trace:configure.ac:567: -1- AC_SUBST([OMPI_SIZEOF_F90_COMPLEX]) ++m4trace:configure.ac:567: -1- AC_SUBST_TRACE([OMPI_SIZEOF_F90_COMPLEX]) ++m4trace:configure.ac:567: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_COMPLEX$]) ++m4trace:configure.ac:568: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_F90_COMPLEX8]) ++m4trace:configure.ac:568: -1- m4_pattern_allow([^OMPI_HAVE_F90_COMPLEX8$]) ++m4trace:configure.ac:568: -1- AH_OUTPUT([OMPI_HAVE_F90_COMPLEX8], [/* Whether we have Fortran 90 $ofc_fortran_type or not */ ++#undef OMPI_HAVE_F90_COMPLEX8]) ++m4trace:configure.ac:568: -1- AC_SUBST([OMPI_SIZEOF_F90_COMPLEX8]) ++m4trace:configure.ac:568: -1- AC_SUBST_TRACE([OMPI_SIZEOF_F90_COMPLEX8]) ++m4trace:configure.ac:568: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_COMPLEX8$]) ++m4trace:configure.ac:569: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_F90_COMPLEX16]) ++m4trace:configure.ac:569: -1- m4_pattern_allow([^OMPI_HAVE_F90_COMPLEX16$]) ++m4trace:configure.ac:569: -1- AH_OUTPUT([OMPI_HAVE_F90_COMPLEX16], [/* Whether we have Fortran 90 $ofc_fortran_type or not */ ++#undef OMPI_HAVE_F90_COMPLEX16]) ++m4trace:configure.ac:569: -1- AC_SUBST([OMPI_SIZEOF_F90_COMPLEX16]) ++m4trace:configure.ac:569: -1- AC_SUBST_TRACE([OMPI_SIZEOF_F90_COMPLEX16]) ++m4trace:configure.ac:569: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_COMPLEX16$]) ++m4trace:configure.ac:570: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_F90_COMPLEX32]) ++m4trace:configure.ac:570: -1- m4_pattern_allow([^OMPI_HAVE_F90_COMPLEX32$]) ++m4trace:configure.ac:570: -1- AH_OUTPUT([OMPI_HAVE_F90_COMPLEX32], [/* Whether we have Fortran 90 $ofc_fortran_type or not */ ++#undef OMPI_HAVE_F90_COMPLEX32]) ++m4trace:configure.ac:570: -1- AC_SUBST([OMPI_SIZEOF_F90_COMPLEX32]) ++m4trace:configure.ac:570: -1- AC_SUBST_TRACE([OMPI_SIZEOF_F90_COMPLEX32]) ++m4trace:configure.ac:570: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_COMPLEX32$]) ++m4trace:configure.ac:571: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_F90_DOUBLE_COMPLEX]) ++m4trace:configure.ac:571: -1- m4_pattern_allow([^OMPI_HAVE_F90_DOUBLE_COMPLEX$]) ++m4trace:configure.ac:571: -1- AH_OUTPUT([OMPI_HAVE_F90_DOUBLE_COMPLEX], [/* Whether we have Fortran 90 $ofc_fortran_type or not */ ++#undef OMPI_HAVE_F90_DOUBLE_COMPLEX]) ++m4trace:configure.ac:571: -1- AC_SUBST([OMPI_SIZEOF_F90_DOUBLE_COMPLEX]) ++m4trace:configure.ac:571: -1- AC_SUBST_TRACE([OMPI_SIZEOF_F90_DOUBLE_COMPLEX]) ++m4trace:configure.ac:571: -1- m4_pattern_allow([^OMPI_SIZEOF_F90_DOUBLE_COMPLEX$]) ++m4trace:configure.ac:573: -1- AC_SUBST([OMPI_F90_IKINDS]) ++m4trace:configure.ac:573: -1- AC_SUBST_TRACE([OMPI_F90_IKINDS]) ++m4trace:configure.ac:573: -1- m4_pattern_allow([^OMPI_F90_IKINDS$]) ++m4trace:configure.ac:574: -1- AC_SUBST([OMPI_F90_RKINDS]) ++m4trace:configure.ac:574: -1- AC_SUBST_TRACE([OMPI_F90_RKINDS]) ++m4trace:configure.ac:574: -1- m4_pattern_allow([^OMPI_F90_RKINDS$]) ++m4trace:configure.ac:575: -1- AC_SUBST([OMPI_F90_CKINDS]) ++m4trace:configure.ac:575: -1- AC_SUBST_TRACE([OMPI_F90_CKINDS]) ++m4trace:configure.ac:575: -1- m4_pattern_allow([^OMPI_F90_CKINDS$]) ++m4trace:configure.ac:591: -1- AC_SUBST([OMPI_MPI_INTEGER_KIND]) ++m4trace:configure.ac:591: -1- AC_SUBST_TRACE([OMPI_MPI_INTEGER_KIND]) ++m4trace:configure.ac:591: -1- m4_pattern_allow([^OMPI_MPI_INTEGER_KIND$]) ++m4trace:configure.ac:606: -1- AC_SUBST([OMPI_MPI_ADDRESS_KIND]) ++m4trace:configure.ac:606: -1- AC_SUBST_TRACE([OMPI_MPI_ADDRESS_KIND]) ++m4trace:configure.ac:606: -1- m4_pattern_allow([^OMPI_MPI_ADDRESS_KIND$]) ++m4trace:configure.ac:610: -1- AC_SUBST([OMPI_MPI_OFFSET_KIND]) ++m4trace:configure.ac:610: -1- AC_SUBST_TRACE([OMPI_MPI_OFFSET_KIND]) ++m4trace:configure.ac:610: -1- m4_pattern_allow([^OMPI_MPI_OFFSET_KIND$]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_ALLOCA_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_ALLOCA_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_AIO_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_AIO_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_ARPA_INET_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_ARPA_INET_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_DIRENT_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_DIRENT_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_DLFCN_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_DLFCN_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_EXECINFO_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_EXECINFO_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_ERR_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_ERR_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_FCNTL_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_FCNTL_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_GRP_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_GRP_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_INTTYPES_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_LIBGEN_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_LIBGEN_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_LIBUTIL_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_LIBUTIL_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_NETDB_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_NETDB_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_NETINET_IN_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_NETINET_IN_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_NETINET_TCP_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_NETINET_TCP_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_POLL_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_POLL_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_PTHREAD_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_PTHREAD_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_PTY_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_PTY_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_PWD_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_PWD_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_SCHED_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SCHED_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_STDINT_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_STRING_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_STRINGS_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_STROPTS_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_STROPTS_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_SYS_FCNTL_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_FCNTL_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_SYS_IPC_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_IPC_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_SYS_IOCTL_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_IOCTL_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_SYS_MMAN_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_MMAN_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_SYS_PARAM_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_PARAM_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_SYS_QUEUE_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_QUEUE_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_SYS_RESOURCE_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_RESOURCE_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_SYS_SELECT_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_SELECT_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_SYS_SOCKET_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_SOCKET_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_SYS_SOCKIO_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_SOCKIO_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_STDARG_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_STDARG_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_STAT_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_SYS_STATVFS_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_STATVFS_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_SYS_TIME_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_TIME_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_SYS_TREE_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_TREE_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_TYPES_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_SYS_UIO_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_UIO_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_NET_UIO_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_NET_UIO_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_SYS_UTSNAME_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_UTSNAME_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_SYS_WAIT_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_WAIT_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_SYSLOG_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYSLOG_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_TIME_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_TIME_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_TERMIOS_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_TERMIOS_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_ULIMIT_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_ULIMIT_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_UNISTD_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_UTIL_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_UTIL_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_UTMP_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_UTMP_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_MALLOC_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_MALLOC_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_IFADDRS_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_IFADDRS_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_SYS_SYSCTL_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_SYSCTL_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_CRT_EXTERNS_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_CRT_EXTERNS_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_REGEX_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_REGEX_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_IOLIB_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_IOLIB_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_SOCKLIB_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SOCKLIB_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_HOSTLIB_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_HOSTLIB_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_SHLWAPI_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SHLWAPI_H]) ++m4trace:configure.ac:621: -1- AH_OUTPUT([HAVE_SYS_SYNCH_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_SYNCH_H]) ++m4trace:configure.ac:636: -1- AH_OUTPUT([HAVE_NET_IF_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_NET_IF_H]) ++m4trace:configure.ac:662: -1- AH_OUTPUT([HAVE_STDBOOL_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_STDBOOL_H]) ++m4trace:configure.ac:676: -1- AC_DEFINE_TRACE_LITERAL([OMPI_USE_STDBOOL_H]) ++m4trace:configure.ac:676: -1- m4_pattern_allow([^OMPI_USE_STDBOOL_H$]) ++m4trace:configure.ac:676: -1- AH_OUTPUT([OMPI_USE_STDBOOL_H], [/* Whether to use or not */ ++#undef OMPI_USE_STDBOOL_H]) ++m4trace:configure.ac:691: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_PID_T]) ++m4trace:configure.ac:691: -1- m4_pattern_allow([^SIZEOF_PID_T$]) ++m4trace:configure.ac:691: -1- AH_OUTPUT([SIZEOF_PID_T], [/* The size of `pid_t\', as computed by sizeof. */ ++#undef SIZEOF_PID_T]) ++m4trace:configure.ac:693: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SOCKLEN_T]) ++m4trace:configure.ac:693: -1- m4_pattern_allow([^HAVE_SOCKLEN_T$]) ++m4trace:configure.ac:693: -1- AH_OUTPUT([HAVE_SOCKLEN_T], [/* Define to 1 if the system has the type `socklen_t\'. */ ++#undef HAVE_SOCKLEN_T]) ++m4trace:configure.ac:693: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_SOCKADDR_IN]) ++m4trace:configure.ac:693: -1- m4_pattern_allow([^HAVE_STRUCT_SOCKADDR_IN$]) ++m4trace:configure.ac:693: -1- AH_OUTPUT([HAVE_STRUCT_SOCKADDR_IN], [/* Define to 1 if the system has the type `struct sockaddr_in\'. */ ++#undef HAVE_STRUCT_SOCKADDR_IN]) ++m4trace:configure.ac:693: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_SOCKADDR_IN6]) ++m4trace:configure.ac:693: -1- m4_pattern_allow([^HAVE_STRUCT_SOCKADDR_IN6$]) ++m4trace:configure.ac:693: -1- AH_OUTPUT([HAVE_STRUCT_SOCKADDR_IN6], [/* Define to 1 if the system has the type `struct sockaddr_in6\'. */ ++#undef HAVE_STRUCT_SOCKADDR_IN6]) ++m4trace:configure.ac:693: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_SOCKADDR_STORAGE]) ++m4trace:configure.ac:693: -1- m4_pattern_allow([^HAVE_STRUCT_SOCKADDR_STORAGE$]) ++m4trace:configure.ac:693: -1- AH_OUTPUT([HAVE_STRUCT_SOCKADDR_STORAGE], [/* Define to 1 if the system has the type `struct sockaddr_storage\'. */ ++#undef HAVE_STRUCT_SOCKADDR_STORAGE]) ++m4trace:configure.ac:703: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DECL_AF_UNSPEC]) ++m4trace:configure.ac:703: -1- m4_pattern_allow([^HAVE_DECL_AF_UNSPEC$]) ++m4trace:configure.ac:703: -1- AH_OUTPUT([HAVE_DECL_AF_UNSPEC], [/* Define to 1 if you have the declaration of `AF_UNSPEC\', and to 0 if you ++ don\'t. */ ++#undef HAVE_DECL_AF_UNSPEC]) ++m4trace:configure.ac:703: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DECL_AF_UNSPEC]) ++m4trace:configure.ac:703: -1- m4_pattern_allow([^HAVE_DECL_AF_UNSPEC$]) ++m4trace:configure.ac:703: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DECL_PF_UNSPEC]) ++m4trace:configure.ac:703: -1- m4_pattern_allow([^HAVE_DECL_PF_UNSPEC$]) ++m4trace:configure.ac:703: -1- AH_OUTPUT([HAVE_DECL_PF_UNSPEC], [/* Define to 1 if you have the declaration of `PF_UNSPEC\', and to 0 if you ++ don\'t. */ ++#undef HAVE_DECL_PF_UNSPEC]) ++m4trace:configure.ac:703: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DECL_PF_UNSPEC]) ++m4trace:configure.ac:703: -1- m4_pattern_allow([^HAVE_DECL_PF_UNSPEC$]) ++m4trace:configure.ac:703: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DECL_AF_INET6]) ++m4trace:configure.ac:703: -1- m4_pattern_allow([^HAVE_DECL_AF_INET6$]) ++m4trace:configure.ac:703: -1- AH_OUTPUT([HAVE_DECL_AF_INET6], [/* Define to 1 if you have the declaration of `AF_INET6\', and to 0 if you ++ don\'t. */ ++#undef HAVE_DECL_AF_INET6]) ++m4trace:configure.ac:703: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DECL_AF_INET6]) ++m4trace:configure.ac:703: -1- m4_pattern_allow([^HAVE_DECL_AF_INET6$]) ++m4trace:configure.ac:703: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DECL_PF_INET6]) ++m4trace:configure.ac:703: -1- m4_pattern_allow([^HAVE_DECL_PF_INET6$]) ++m4trace:configure.ac:703: -1- AH_OUTPUT([HAVE_DECL_PF_INET6], [/* Define to 1 if you have the declaration of `PF_INET6\', and to 0 if you ++ don\'t. */ ++#undef HAVE_DECL_PF_INET6]) ++m4trace:configure.ac:703: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DECL_PF_INET6]) ++m4trace:configure.ac:703: -1- m4_pattern_allow([^HAVE_DECL_PF_INET6$]) ++m4trace:configure.ac:719: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_SA_RESTART]) ++m4trace:configure.ac:719: -1- m4_pattern_allow([^OMPI_HAVE_SA_RESTART$]) ++m4trace:configure.ac:719: -1- AH_OUTPUT([OMPI_HAVE_SA_RESTART], [/* Whether we have SA_RESTART in or not */ ++#undef OMPI_HAVE_SA_RESTART]) ++m4trace:configure.ac:723: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_SOCKADDR_SA_LEN]) ++m4trace:configure.ac:723: -1- m4_pattern_allow([^HAVE_STRUCT_SOCKADDR_SA_LEN$]) ++m4trace:configure.ac:723: -1- AH_OUTPUT([HAVE_STRUCT_SOCKADDR_SA_LEN], [/* Define to 1 if `sa_len\' is member of `struct sockaddr\'. */ ++#undef HAVE_STRUCT_SOCKADDR_SA_LEN]) ++m4trace:configure.ac:729: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_DIRENT_D_TYPE]) ++m4trace:configure.ac:729: -1- m4_pattern_allow([^HAVE_STRUCT_DIRENT_D_TYPE$]) ++m4trace:configure.ac:729: -1- AH_OUTPUT([HAVE_STRUCT_DIRENT_D_TYPE], [/* Define to 1 if `d_type\' is member of `struct dirent\'. */ ++#undef HAVE_STRUCT_DIRENT_D_TYPE]) ++m4trace:configure.ac:733: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SIGINFO_T_SI_FD]) ++m4trace:configure.ac:733: -1- m4_pattern_allow([^HAVE_SIGINFO_T_SI_FD$]) ++m4trace:configure.ac:733: -1- AH_OUTPUT([HAVE_SIGINFO_T_SI_FD], [/* Define to 1 if `si_fd\' is member of `siginfo_t\'. */ ++#undef HAVE_SIGINFO_T_SI_FD]) ++m4trace:configure.ac:734: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SIGINFO_T_SI_BAND]) ++m4trace:configure.ac:734: -1- m4_pattern_allow([^HAVE_SIGINFO_T_SI_BAND$]) ++m4trace:configure.ac:734: -1- AH_OUTPUT([HAVE_SIGINFO_T_SI_BAND], [/* Define to 1 if `si_band\' is member of `siginfo_t\'. */ ++#undef HAVE_SIGINFO_T_SI_BAND]) ++m4trace:configure.ac:747: -1- AH_OUTPUT([HAVE_LIBUTIL], [/* Define to 1 if you have the `util\' library (-lutil). */ ++#undef HAVE_LIBUTIL]) ++m4trace:configure.ac:747: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBUTIL]) ++m4trace:configure.ac:747: -1- m4_pattern_allow([^HAVE_LIBUTIL$]) ++m4trace:configure.ac:749: -1- AH_OUTPUT([HAVE_LIBNSL], [/* Define to 1 if you have the `nsl\' library (-lnsl). */ ++#undef HAVE_LIBNSL]) ++m4trace:configure.ac:749: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBNSL]) ++m4trace:configure.ac:749: -1- m4_pattern_allow([^HAVE_LIBNSL$]) ++m4trace:configure.ac:751: -1- AH_OUTPUT([HAVE_LIBSOCKET], [/* Define to 1 if you have the `socket\' library (-lsocket). */ ++#undef HAVE_LIBSOCKET]) ++m4trace:configure.ac:751: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBSOCKET]) ++m4trace:configure.ac:751: -1- m4_pattern_allow([^HAVE_LIBSOCKET$]) ++m4trace:configure.ac:754: -1- AH_OUTPUT([HAVE_SCHED_YIELD], [/* Define to 1 if you have the `sched_yield\' function. */ ++#undef HAVE_SCHED_YIELD]) ++m4trace:configure.ac:757: -1- AH_OUTPUT([HAVE_DIRNAME], [/* Define to 1 if you have the `dirname\' function. */ ++#undef HAVE_DIRNAME]) ++m4trace:configure.ac:760: -1- AH_OUTPUT([HAVE_CEIL], [/* Define to 1 if you have the `ceil\' function. */ ++#undef HAVE_CEIL]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_ASPRINTF], [/* Define to 1 if you have the `asprintf\' function. */ ++#undef HAVE_ASPRINTF]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_SNPRINTF], [/* Define to 1 if you have the `snprintf\' function. */ ++#undef HAVE_SNPRINTF]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_VASPRINTF], [/* Define to 1 if you have the `vasprintf\' function. */ ++#undef HAVE_VASPRINTF]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_VSNPRINTF], [/* Define to 1 if you have the `vsnprintf\' function. */ ++#undef HAVE_VSNPRINTF]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_OPENPTY], [/* Define to 1 if you have the `openpty\' function. */ ++#undef HAVE_OPENPTY]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_ISATTY], [/* Define to 1 if you have the `isatty\' function. */ ++#undef HAVE_ISATTY]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_GETPWUID], [/* Define to 1 if you have the `getpwuid\' function. */ ++#undef HAVE_GETPWUID]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_FORK], [/* Define to 1 if you have the `fork\' function. */ ++#undef HAVE_FORK]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_WAITPID], [/* Define to 1 if you have the `waitpid\' function. */ ++#undef HAVE_WAITPID]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_EXECVE], [/* Define to 1 if you have the `execve\' function. */ ++#undef HAVE_EXECVE]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_PIPE], [/* Define to 1 if you have the `pipe\' function. */ ++#undef HAVE_PIPE]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_PTSNAME], [/* Define to 1 if you have the `ptsname\' function. */ ++#undef HAVE_PTSNAME]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_SETSID], [/* Define to 1 if you have the `setsid\' function. */ ++#undef HAVE_SETSID]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_MMAP], [/* Define to 1 if you have the `mmap\' function. */ ++#undef HAVE_MMAP]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_MALLOPT], [/* Define to 1 if you have the `mallopt\' function. */ ++#undef HAVE_MALLOPT]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_TCGETPGRP], [/* Define to 1 if you have the `tcgetpgrp\' function. */ ++#undef HAVE_TCGETPGRP]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_POSIX_MEMALIGN], [/* Define to 1 if you have the `posix_memalign\' function. */ ++#undef HAVE_POSIX_MEMALIGN]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_STRSIGNAL], [/* Define to 1 if you have the `strsignal\' function. */ ++#undef HAVE_STRSIGNAL]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_SYSCONF], [/* Define to 1 if you have the `sysconf\' function. */ ++#undef HAVE_SYSCONF]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_SYSLOG], [/* Define to 1 if you have the `syslog\' function. */ ++#undef HAVE_SYSLOG]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_REGCMP], [/* Define to 1 if you have the `regcmp\' function. */ ++#undef HAVE_REGCMP]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_REGEXEC], [/* Define to 1 if you have the `regexec\' function. */ ++#undef HAVE_REGEXEC]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_REGFREE], [/* Define to 1 if you have the `regfree\' function. */ ++#undef HAVE_REGFREE]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE__NSGETENVIRON], [/* Define to 1 if you have the `_NSGetEnviron\' function. */ ++#undef HAVE__NSGETENVIRON]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_SOCKETPAIR], [/* Define to 1 if you have the `socketpair\' function. */ ++#undef HAVE_SOCKETPAIR]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_STRNCPY_S], [/* Define to 1 if you have the `strncpy_s\' function. */ ++#undef HAVE_STRNCPY_S]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE__STRDUP], [/* Define to 1 if you have the `_strdup\' function. */ ++#undef HAVE__STRDUP]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_USLEEP], [/* Define to 1 if you have the `usleep\' function. */ ++#undef HAVE_USLEEP]) ++m4trace:configure.ac:762: -1- AH_OUTPUT([HAVE_MKFIFO], [/* Define to 1 if you have the `mkfifo\' function. */ ++#undef HAVE_MKFIFO]) ++m4trace:configure.ac:785: -1- AC_DEFINE_TRACE_LITERAL([HAVE_UNIX_BYTESWAP]) ++m4trace:configure.ac:785: -1- m4_pattern_allow([^HAVE_UNIX_BYTESWAP$]) ++m4trace:configure.ac:785: -1- AH_OUTPUT([HAVE_UNIX_BYTESWAP], [/* whether unix byteswap routines -- htonl, htons, nothl, ntohs -- are ++ available */ ++#undef HAVE_UNIX_BYTESWAP]) ++m4trace:configure.ac:795: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_VA_COPY]) ++m4trace:configure.ac:795: -1- m4_pattern_allow([^OMPI_HAVE_VA_COPY$]) ++m4trace:configure.ac:795: -1- AH_OUTPUT([OMPI_HAVE_VA_COPY], [/* Whether we have va_copy or not */ ++#undef OMPI_HAVE_VA_COPY]) ++m4trace:configure.ac:800: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_UNDERSCORE_VA_COPY]) ++m4trace:configure.ac:800: -1- m4_pattern_allow([^OMPI_HAVE_UNDERSCORE_VA_COPY$]) ++m4trace:configure.ac:800: -1- AH_OUTPUT([OMPI_HAVE_UNDERSCORE_VA_COPY], [/* Whether we have __va_copy or not */ ++#undef OMPI_HAVE_UNDERSCORE_VA_COPY]) ++m4trace:configure.ac:803: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DECL___FUNC__]) ++m4trace:configure.ac:803: -1- m4_pattern_allow([^HAVE_DECL___FUNC__$]) ++m4trace:configure.ac:803: -1- AH_OUTPUT([HAVE_DECL___FUNC__], [/* Define to 1 if you have the declaration of `__func__\', and to 0 if you ++ don\'t. */ ++#undef HAVE_DECL___FUNC__]) ++m4trace:configure.ac:803: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DECL___FUNC__]) ++m4trace:configure.ac:803: -1- m4_pattern_allow([^HAVE_DECL___FUNC__$]) ++m4trace:configure.ac:853: -1- AC_DEFINE_TRACE_LITERAL([OMPI_MPI_OFFSET_TYPE]) ++m4trace:configure.ac:853: -1- m4_pattern_allow([^OMPI_MPI_OFFSET_TYPE$]) ++m4trace:configure.ac:853: -1- AH_OUTPUT([OMPI_MPI_OFFSET_TYPE], [/* Type of MPI_Offset -- has to be defined here and typedef\'ed later because ++ mpi.h does not get AC SUBST\'s */ ++#undef OMPI_MPI_OFFSET_TYPE]) ++m4trace:configure.ac:868: -1- AC_DEFINE_TRACE_LITERAL([OMPI_PTRDIFF_TYPE]) ++m4trace:configure.ac:868: -1- m4_pattern_allow([^OMPI_PTRDIFF_TYPE$]) ++m4trace:configure.ac:868: -1- AH_OUTPUT([OMPI_PTRDIFF_TYPE], [/* type to use for ptrdiff_t */ ++#undef OMPI_PTRDIFF_TYPE]) ++m4trace:configure.ac:881: -1- AC_DEFINE_TRACE_LITERAL([OMPI_OFFSET_DATATYPE]) ++m4trace:configure.ac:881: -1- m4_pattern_allow([^OMPI_OFFSET_DATATYPE$]) ++m4trace:configure.ac:881: -1- AH_OUTPUT([OMPI_OFFSET_DATATYPE], [/* MPI datatype corresponding to MPI_Offset */ ++#undef OMPI_OFFSET_DATATYPE]) ++m4trace:configure.ac:898: -1- AC_DEFINE_TRACE_LITERAL([OPAL_HAVE__SC_NPROCESSORS_ONLN]) ++m4trace:configure.ac:898: -1- m4_pattern_allow([^OPAL_HAVE__SC_NPROCESSORS_ONLN$]) ++m4trace:configure.ac:898: -1- AH_OUTPUT([OPAL_HAVE__SC_NPROCESSORS_ONLN], [/* Define to 1 ifyou have the declaration of _SC_NPROCESSORS_ONLN, and to 0 ++ otherwise */ ++#undef OPAL_HAVE__SC_NPROCESSORS_ONLN]) ++m4trace:configure.ac:903: -1- AC_DEFINE_TRACE_LITERAL([WORDS_BIGENDIAN]) ++m4trace:configure.ac:903: -1- m4_pattern_allow([^WORDS_BIGENDIAN$]) ++m4trace:configure.ac:903: -1- AH_OUTPUT([WORDS_BIGENDIAN], [/* Define to 1 if your processor stores words with the most significant byte ++ first (like Motorola and SPARC, unlike Intel and VAX). */ ++#undef WORDS_BIGENDIAN]) ++m4trace:configure.ac:905: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_broken_qsort.m4:37: OMPI_CHECK_BROKEN_QSORT is expanded from... ++configure.ac:905: the top level]) ++m4trace:configure.ac:905: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_BROKEN_QSORT]) ++m4trace:configure.ac:905: -1- m4_pattern_allow([^OMPI_HAVE_BROKEN_QSORT$]) ++m4trace:configure.ac:905: -1- AH_OUTPUT([OMPI_HAVE_BROKEN_QSORT], [/* whether qsort is broken or not */ ++#undef OMPI_HAVE_BROKEN_QSORT]) ++m4trace:configure.ac:922: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ALIGN_WORD_SIZE_INTEGERS]) ++m4trace:configure.ac:922: -1- m4_pattern_allow([^OMPI_ALIGN_WORD_SIZE_INTEGERS$]) ++m4trace:configure.ac:922: -1- AH_OUTPUT([OMPI_ALIGN_WORD_SIZE_INTEGERS], [/* set to 1 if word-size integers must be aligned to word-size padding to ++ prevent bus errors */ ++#undef OMPI_ALIGN_WORD_SIZE_INTEGERS]) ++m4trace:configure.ac:936: -1- AH_OUTPUT([OMPI_HAVE_SOLARIS_THREADS], [/* Do we have native Solaris threads */ ++#undef OMPI_HAVE_SOLARIS_THREADS]) ++m4trace:configure.ac:936: -1- AH_OUTPUT([OMPI_HAVE_POSIX_THREADS], [/* Do we have POSIX threads */ ++#undef OMPI_HAVE_POSIX_THREADS]) ++m4trace:configure.ac:936: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:30: OMPI_INTL_PTHREAD_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:127: OMPI_INTL_POSIX_THREADS_PLAIN_C is expanded from... ++config/ompi_config_pthreads.m4:258: OMPI_INTL_POSIX_THREADS_PLAIN is expanded from... ++config/ompi_config_pthreads.m4:603: OMPI_CONFIG_POSIX_THREADS is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:30: OMPI_INTL_PTHREAD_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:175: OMPI_INTL_POSIX_THREADS_PLAIN_CXX is expanded from... ++config/ompi_config_pthreads.m4:258: OMPI_INTL_POSIX_THREADS_PLAIN is expanded from... ++config/ompi_config_pthreads.m4:603: OMPI_CONFIG_POSIX_THREADS is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:30: OMPI_INTL_PTHREAD_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:290: OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS_C is expanded from... ++config/ompi_config_pthreads.m4:368: OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS is expanded from... ++config/ompi_config_pthreads.m4:603: OMPI_CONFIG_POSIX_THREADS is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:30: OMPI_INTL_PTHREAD_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:316: OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS_CXX is expanded from... ++config/ompi_config_pthreads.m4:368: OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS is expanded from... ++config/ompi_config_pthreads.m4:603: OMPI_CONFIG_POSIX_THREADS is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:30: OMPI_INTL_PTHREAD_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:416: OMPI_INTL_POSIX_THREADS_LIBS_C is expanded from... ++config/ompi_config_pthreads.m4:568: OMPI_INTL_POSIX_THREADS_LIBS is expanded from... ++config/ompi_config_pthreads.m4:603: OMPI_CONFIG_POSIX_THREADS is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:30: OMPI_INTL_PTHREAD_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:456: OMPI_INTL_POSIX_THREADS_LIBS_CXX is expanded from... ++config/ompi_config_pthreads.m4:568: OMPI_INTL_POSIX_THREADS_LIBS is expanded from... ++config/ompi_config_pthreads.m4:603: OMPI_CONFIG_POSIX_THREADS is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:30: OMPI_INTL_PTHREAD_TRY_LINK is expanded from... ++config/ompi_config_pthreads.m4:456: OMPI_INTL_POSIX_THREADS_LIBS_CXX is expanded from... ++config/ompi_config_pthreads.m4:568: OMPI_INTL_POSIX_THREADS_LIBS is expanded from... ++config/ompi_config_pthreads.m4:603: OMPI_CONFIG_POSIX_THREADS is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_PTHREAD_MUTEX_ERRORCHECK_NP]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_HAVE_PTHREAD_MUTEX_ERRORCHECK_NP$]) ++m4trace:configure.ac:936: -1- AH_OUTPUT([OMPI_HAVE_PTHREAD_MUTEX_ERRORCHECK_NP], [/* If PTHREADS implementation supports PTHREAD_MUTEX_ERRORCHECK_NP */ ++#undef OMPI_HAVE_PTHREAD_MUTEX_ERRORCHECK_NP]) ++m4trace:configure.ac:936: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_PTHREAD_MUTEX_ERRORCHECK]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_HAVE_PTHREAD_MUTEX_ERRORCHECK$]) ++m4trace:configure.ac:936: -1- AH_OUTPUT([OMPI_HAVE_PTHREAD_MUTEX_ERRORCHECK], [/* If PTHREADS implementation supports PTHREAD_MUTEX_ERRORCHECK */ ++#undef OMPI_HAVE_PTHREAD_MUTEX_ERRORCHECK]) ++m4trace:configure.ac:936: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++config/ompi_config_solaris_threads.m4:27: OMPI_INTL_SOLARIS_TRY_LINK is expanded from... ++config/ompi_config_solaris_threads.m4:110: OMPI_CONFIG_SOLARIS_THREADS_C is expanded from... ++config/ompi_config_solaris_threads.m4:195: OMPI_CONFIG_SOLARIS_THREADS is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++config/ompi_config_solaris_threads.m4:27: OMPI_INTL_SOLARIS_TRY_LINK is expanded from... ++config/ompi_config_solaris_threads.m4:136: OMPI_CONFIG_SOLARIS_THREADS_CXX is expanded from... ++config/ompi_config_solaris_threads.m4:195: OMPI_CONFIG_SOLARIS_THREADS is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- AH_OUTPUT([OMPI_THREADS_HAVE_DIFFERENT_PIDS], [/* Do threads have different pids (pthreads on linux) */ ++#undef OMPI_THREADS_HAVE_DIFFERENT_PIDS]) ++m4trace:configure.ac:936: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_SOLARIS_THREADS]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_HAVE_SOLARIS_THREADS$]) ++m4trace:configure.ac:936: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_POSIX_THREADS]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_HAVE_POSIX_THREADS$]) ++m4trace:configure.ac:936: -1- AC_DEFINE_TRACE_LITERAL([OMPI_THREADS_HAVE_DIFFERENT_PIDS]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_THREADS_HAVE_DIFFERENT_PIDS$]) ++m4trace:configure.ac:936: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_SOLARIS_THREADS]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_HAVE_SOLARIS_THREADS$]) ++m4trace:configure.ac:936: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_POSIX_THREADS]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_HAVE_POSIX_THREADS$]) ++m4trace:configure.ac:936: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++config/ompi_check_pthread_pids.m4:20: OMPI_CHECK_PTHREAD_PIDS is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- AC_DEFINE_TRACE_LITERAL([OMPI_THREADS_HAVE_DIFFERENT_PIDS]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_THREADS_HAVE_DIFFERENT_PIDS$]) ++m4trace:configure.ac:936: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_SOLARIS_THREADS]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_HAVE_SOLARIS_THREADS$]) ++m4trace:configure.ac:936: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_POSIX_THREADS]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_HAVE_POSIX_THREADS$]) ++m4trace:configure.ac:936: -1- AC_DEFINE_TRACE_LITERAL([OMPI_THREADS_HAVE_DIFFERENT_PIDS]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_THREADS_HAVE_DIFFERENT_PIDS$]) ++m4trace:configure.ac:936: -1- AM_CONDITIONAL([OMPI_HAVE_POSIX_THREADS], [test "$THREAD_TYPE" = "posix"]) ++m4trace:configure.ac:936: -1- AC_SUBST([OMPI_HAVE_POSIX_THREADS_TRUE]) ++m4trace:configure.ac:936: -1- AC_SUBST_TRACE([OMPI_HAVE_POSIX_THREADS_TRUE]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_HAVE_POSIX_THREADS_TRUE$]) ++m4trace:configure.ac:936: -1- AC_SUBST([OMPI_HAVE_POSIX_THREADS_FALSE]) ++m4trace:configure.ac:936: -1- AC_SUBST_TRACE([OMPI_HAVE_POSIX_THREADS_FALSE]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_HAVE_POSIX_THREADS_FALSE$]) ++m4trace:configure.ac:936: -1- _AM_SUBST_NOTMAKE([OMPI_HAVE_POSIX_THREADS_TRUE]) ++m4trace:configure.ac:936: -1- _AM_SUBST_NOTMAKE([OMPI_HAVE_POSIX_THREADS_FALSE]) ++m4trace:configure.ac:936: -1- AM_CONDITIONAL([OMPI_HAVE_SOLARIS_THREADS], [test "$THREAD_TYPE" = "solaris"]) ++m4trace:configure.ac:936: -1- AC_SUBST([OMPI_HAVE_SOLARIS_THREADS_TRUE]) ++m4trace:configure.ac:936: -1- AC_SUBST_TRACE([OMPI_HAVE_SOLARIS_THREADS_TRUE]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_HAVE_SOLARIS_THREADS_TRUE$]) ++m4trace:configure.ac:936: -1- AC_SUBST([OMPI_HAVE_SOLARIS_THREADS_FALSE]) ++m4trace:configure.ac:936: -1- AC_SUBST_TRACE([OMPI_HAVE_SOLARIS_THREADS_FALSE]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_HAVE_SOLARIS_THREADS_FALSE$]) ++m4trace:configure.ac:936: -1- _AM_SUBST_NOTMAKE([OMPI_HAVE_SOLARIS_THREADS_TRUE]) ++m4trace:configure.ac:936: -1- _AM_SUBST_NOTMAKE([OMPI_HAVE_SOLARIS_THREADS_FALSE]) ++m4trace:configure.ac:936: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ENABLE_MPI_THREADS]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_ENABLE_MPI_THREADS$]) ++m4trace:configure.ac:936: -1- AH_OUTPUT([OMPI_ENABLE_MPI_THREADS], [/* Whether we should enable support for multiple user threads */ ++#undef OMPI_ENABLE_MPI_THREADS]) ++m4trace:configure.ac:936: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ENABLE_PROGRESS_THREADS]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OMPI_ENABLE_PROGRESS_THREADS$]) ++m4trace:configure.ac:936: -1- AH_OUTPUT([OMPI_ENABLE_PROGRESS_THREADS], [/* Whether we should use progress threads rather than polling */ ++#undef OMPI_ENABLE_PROGRESS_THREADS]) ++m4trace:configure.ac:936: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_config_threads.m4:20: OMPI_CONFIG_THREADS is expanded from... ++configure.ac:936: the top level]) ++m4trace:configure.ac:936: -1- AC_DEFINE_TRACE_LITERAL([OPAL_ENABLE_FT_THREAD]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^OPAL_ENABLE_FT_THREAD$]) ++m4trace:configure.ac:936: -1- AH_OUTPUT([OPAL_ENABLE_FT_THREAD], [/* Enable fault tolerance thread in Open PAL */ ++#undef OPAL_ENABLE_FT_THREAD]) ++m4trace:configure.ac:936: -1- AM_CONDITIONAL([WANT_FT_THREAD], [test "$ompi_want_ft_thread" = "1"]) ++m4trace:configure.ac:936: -1- AC_SUBST([WANT_FT_THREAD_TRUE]) ++m4trace:configure.ac:936: -1- AC_SUBST_TRACE([WANT_FT_THREAD_TRUE]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^WANT_FT_THREAD_TRUE$]) ++m4trace:configure.ac:936: -1- AC_SUBST([WANT_FT_THREAD_FALSE]) ++m4trace:configure.ac:936: -1- AC_SUBST_TRACE([WANT_FT_THREAD_FALSE]) ++m4trace:configure.ac:936: -1- m4_pattern_allow([^WANT_FT_THREAD_FALSE$]) ++m4trace:configure.ac:936: -1- _AM_SUBST_NOTMAKE([WANT_FT_THREAD_TRUE]) ++m4trace:configure.ac:936: -1- _AM_SUBST_NOTMAKE([WANT_FT_THREAD_FALSE]) ++m4trace:configure.ac:957: -1- AC_SUBST([LN_S], [$as_ln_s]) ++m4trace:configure.ac:957: -1- AC_SUBST_TRACE([LN_S]) ++m4trace:configure.ac:957: -1- m4_pattern_allow([^LN_S$]) ++m4trace:configure.ac:959: -1- AC_SUBST([GREP]) ++m4trace:configure.ac:959: -1- AC_SUBST_TRACE([GREP]) ++m4trace:configure.ac:959: -1- m4_pattern_allow([^GREP$]) ++m4trace:configure.ac:959: -1- AC_SUBST([GREP]) ++m4trace:configure.ac:959: -1- AC_SUBST_TRACE([GREP]) ++m4trace:configure.ac:959: -1- m4_pattern_allow([^GREP$]) ++m4trace:configure.ac:960: -1- AC_SUBST([EGREP]) ++m4trace:configure.ac:960: -1- AC_SUBST_TRACE([EGREP]) ++m4trace:configure.ac:960: -1- m4_pattern_allow([^EGREP$]) ++m4trace:configure.ac:960: -1- AC_SUBST([EGREP]) ++m4trace:configure.ac:960: -1- AC_SUBST_TRACE([EGREP]) ++m4trace:configure.ac:960: -1- m4_pattern_allow([^EGREP$]) ++m4trace:configure.ac:965: -1- AC_SUBST([CCAS]) ++m4trace:configure.ac:965: -1- AC_SUBST_TRACE([CCAS]) ++m4trace:configure.ac:965: -1- m4_pattern_allow([^CCAS$]) ++m4trace:configure.ac:965: -1- AC_SUBST([CCASFLAGS]) ++m4trace:configure.ac:965: -1- AC_SUBST_TRACE([CCASFLAGS]) ++m4trace:configure.ac:965: -1- m4_pattern_allow([^CCASFLAGS$]) ++m4trace:configure.ac:965: -1- AC_SUBST([CCASDEPMODE], [depmode=$am_cv_CCAS_dependencies_compiler_type]) ++m4trace:configure.ac:965: -1- AC_SUBST_TRACE([CCASDEPMODE]) ++m4trace:configure.ac:965: -1- m4_pattern_allow([^CCASDEPMODE$]) ++m4trace:configure.ac:965: -1- AM_CONDITIONAL([am__fastdepCCAS], [ ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3]) ++m4trace:configure.ac:965: -1- AC_SUBST([am__fastdepCCAS_TRUE]) ++m4trace:configure.ac:965: -1- AC_SUBST_TRACE([am__fastdepCCAS_TRUE]) ++m4trace:configure.ac:965: -1- m4_pattern_allow([^am__fastdepCCAS_TRUE$]) ++m4trace:configure.ac:965: -1- AC_SUBST([am__fastdepCCAS_FALSE]) ++m4trace:configure.ac:965: -1- AC_SUBST_TRACE([am__fastdepCCAS_FALSE]) ++m4trace:configure.ac:965: -1- m4_pattern_allow([^am__fastdepCCAS_FALSE$]) ++m4trace:configure.ac:965: -1- _AM_SUBST_NOTMAKE([am__fastdepCCAS_TRUE]) ++m4trace:configure.ac:965: -1- _AM_SUBST_NOTMAKE([am__fastdepCCAS_FALSE]) ++m4trace:configure.ac:966: -1- AC_SUBST([LEX]) ++m4trace:configure.ac:966: -1- AC_SUBST_TRACE([LEX]) ++m4trace:configure.ac:966: -1- m4_pattern_allow([^LEX$]) ++m4trace:configure.ac:966: -1- AC_SUBST([LEX_OUTPUT_ROOT], [$ac_cv_prog_lex_root]) ++m4trace:configure.ac:966: -1- AC_SUBST_TRACE([LEX_OUTPUT_ROOT]) ++m4trace:configure.ac:966: -1- m4_pattern_allow([^LEX_OUTPUT_ROOT$]) ++m4trace:configure.ac:966: -1- AC_SUBST([LEXLIB]) ++m4trace:configure.ac:966: -1- AC_SUBST_TRACE([LEXLIB]) ++m4trace:configure.ac:966: -1- m4_pattern_allow([^LEXLIB$]) ++m4trace:configure.ac:966: -1- AC_DEFINE_TRACE_LITERAL([YYTEXT_POINTER]) ++m4trace:configure.ac:966: -1- m4_pattern_allow([^YYTEXT_POINTER$]) ++m4trace:configure.ac:966: -1- AH_OUTPUT([YYTEXT_POINTER], [/* Define to 1 if `lex\' declares `yytext\' as a `char *\' by default, not a ++ `char[]\'. */ ++#undef YYTEXT_POINTER]) ++m4trace:configure.ac:997: -1- AC_DEFINE_TRACE_LITERAL([ORTE_CLEAN_PS_CMD]) ++m4trace:configure.ac:997: -1- m4_pattern_allow([^ORTE_CLEAN_PS_CMD$]) ++m4trace:configure.ac:997: -1- AH_OUTPUT([ORTE_CLEAN_PS_CMD], [/* Specific ps command to use in orte-clean */ ++#undef ORTE_CLEAN_PS_CMD]) ++m4trace:configure.ac:1003: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_case_sensitive_fs_setup.m4:20: OMPI_CASE_SENSITIVE_FS_SETUP is expanded from... ++configure.ac:1003: the top level]) ++m4trace:configure.ac:1003: -1- AM_CONDITIONAL([CASE_SENSITIVE_FS], [test "$OMPI_WANT_CS_FS" = "1"]) ++m4trace:configure.ac:1003: -1- AC_SUBST([CASE_SENSITIVE_FS_TRUE]) ++m4trace:configure.ac:1003: -1- AC_SUBST_TRACE([CASE_SENSITIVE_FS_TRUE]) ++m4trace:configure.ac:1003: -1- m4_pattern_allow([^CASE_SENSITIVE_FS_TRUE$]) ++m4trace:configure.ac:1003: -1- AC_SUBST([CASE_SENSITIVE_FS_FALSE]) ++m4trace:configure.ac:1003: -1- AC_SUBST_TRACE([CASE_SENSITIVE_FS_FALSE]) ++m4trace:configure.ac:1003: -1- m4_pattern_allow([^CASE_SENSITIVE_FS_FALSE$]) ++m4trace:configure.ac:1003: -1- _AM_SUBST_NOTMAKE([CASE_SENSITIVE_FS_TRUE]) ++m4trace:configure.ac:1003: -1- _AM_SUBST_NOTMAKE([CASE_SENSITIVE_FS_FALSE]) ++m4trace:configure.ac:1012: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DECL_RLIMIT_NPROC]) ++m4trace:configure.ac:1012: -1- m4_pattern_allow([^HAVE_DECL_RLIMIT_NPROC$]) ++m4trace:configure.ac:1012: -1- AH_OUTPUT([HAVE_DECL_RLIMIT_NPROC], [/* Define to 1 if you have the declaration of `RLIMIT_NPROC\', and to 0 if you ++ don\'t. */ ++#undef HAVE_DECL_RLIMIT_NPROC]) ++m4trace:configure.ac:1012: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DECL_RLIMIT_NPROC]) ++m4trace:configure.ac:1012: -1- m4_pattern_allow([^HAVE_DECL_RLIMIT_NPROC$]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_EXECINFO_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_EXECINFO_H]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_BACKTRACE], [/* Define to 1 if you have the `backtrace\' function. */ ++#undef HAVE_BACKTRACE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_backtrace_execinfo_DSO], [test "$BUILD_backtrace_execinfo_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_backtrace_execinfo_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_backtrace_execinfo_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_backtrace_execinfo_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_backtrace_execinfo_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_backtrace_execinfo_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_backtrace_execinfo_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_backtrace_execinfo_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_backtrace_execinfo_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_UCONTEXT_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_UCONTEXT_H]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_PRINTSTACK], [/* Define to 1 if you have the `printstack\' function. */ ++#undef HAVE_PRINTSTACK]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_backtrace_printstack_DSO], [test "$BUILD_backtrace_printstack_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_backtrace_printstack_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_backtrace_printstack_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_backtrace_printstack_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_backtrace_printstack_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_backtrace_printstack_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_backtrace_printstack_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_backtrace_printstack_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_backtrace_printstack_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_VM_READ_OVERWRITE], [/* Define to 1 if you have the `vm_read_overwrite\' function. */ ++#undef HAVE_VM_READ_OVERWRITE]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_MACH_MACH_VM_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_MACH_MACH_VM_H]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_MACH_VM_REGION], [/* Define to 1 if you have the `mach_vm_region\' function. */ ++#undef HAVE_MACH_VM_REGION]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_MACH_VM_READ], [/* Define to 1 if you have the `mach_vm_read\' function. */ ++#undef HAVE_MACH_VM_READ]) ++m4trace:configure.ac:1032: -1- AC_SUBST([backtrace_darwin_CFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([backtrace_darwin_CFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^backtrace_darwin_CFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PPC_THREAD_STATE_T_SRR0]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_PPC_THREAD_STATE_T_SRR0$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_PPC_THREAD_STATE_T_SRR0], [/* Define to 1 if `srr0\' is member of `ppc_thread_state_t\'. */ ++#undef HAVE_PPC_THREAD_STATE_T_SRR0]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_backtrace_darwin_DSO], [test "$BUILD_backtrace_darwin_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_backtrace_darwin_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_backtrace_darwin_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_backtrace_darwin_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_backtrace_darwin_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_backtrace_darwin_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_backtrace_darwin_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_backtrace_darwin_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_backtrace_darwin_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_backtrace_none_DSO], [test "$BUILD_backtrace_none_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_backtrace_none_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_backtrace_none_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_backtrace_none_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_backtrace_none_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_backtrace_none_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_backtrace_none_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_backtrace_none_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_backtrace_none_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_backtrace_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_backtrace_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_backtrace_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_backtrace_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_backtrace_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_backtrace_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_backtrace_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_backtrace_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_backtrace_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_backtrace_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_backtrace_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_backtrace_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_backtrace_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_backtrace_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_backtrace_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_backtrace_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_backtrace_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_backtrace_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_backtrace_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_backtrace_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_backtrace_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_carto_auto_detect_DSO], [test "$BUILD_carto_auto_detect_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_carto_auto_detect_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_carto_auto_detect_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_carto_auto_detect_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_carto_auto_detect_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_carto_auto_detect_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_carto_auto_detect_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_carto_auto_detect_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_carto_auto_detect_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_carto_file_DSO], [test "$BUILD_carto_file_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_carto_file_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_carto_file_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_carto_file_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_carto_file_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_carto_file_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_carto_file_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_carto_file_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_carto_file_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_carto_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_carto_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_carto_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_carto_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_carto_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_carto_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_carto_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_carto_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_carto_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_carto_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_carto_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_carto_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_carto_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_carto_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_carto_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_carto_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_carto_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_carto_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_carto_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_carto_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_carto_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_crs_none_DSO], [test "$BUILD_crs_none_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_crs_none_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_crs_none_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_crs_none_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_crs_none_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_crs_none_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_crs_none_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_crs_none_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_crs_none_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++opal/mca/crs/blcr/configure.m4:20: MCA_crs_blcr_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++opal/mca/crs/blcr/configure.m4:20: MCA_crs_blcr_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/crs/blcr/configure.m4:20: MCA_crs_blcr_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/crs/blcr/configure.m4:20: MCA_crs_blcr_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/crs/blcr/configure.m4:20: MCA_crs_blcr_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/crs/blcr/configure.m4:20: MCA_crs_blcr_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/crs/blcr/configure.m4:20: MCA_crs_blcr_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/crs/blcr/configure.m4:20: MCA_crs_blcr_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/crs/blcr/configure.m4:20: MCA_crs_blcr_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++config/ompi_check_func_lib.m4:27: OMPI_CHECK_FUNC_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/crs/blcr/configure.m4:20: MCA_crs_blcr_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_CR_REQUEST_FILE], [/* Define to 1 if you have the `cr_request_file\' function. */ ++#undef HAVE_CR_REQUEST_FILE]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([CRS_BLCR_HAVE_CR_REQUEST]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^CRS_BLCR_HAVE_CR_REQUEST$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([CRS_BLCR_HAVE_CR_REQUEST], [/* BLCR cr_request_file check */ ++#undef CRS_BLCR_HAVE_CR_REQUEST]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_CR_REQUEST_CHECKPOINT], [/* Define to 1 if you have the `cr_request_checkpoint\' function. */ ++#undef HAVE_CR_REQUEST_CHECKPOINT]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([CRS_BLCR_HAVE_CR_REQUEST_CHECKPOINT]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^CRS_BLCR_HAVE_CR_REQUEST_CHECKPOINT$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([CRS_BLCR_HAVE_CR_REQUEST_CHECKPOINT], [/* BLCR cr_request_checkpoint check */ ++#undef CRS_BLCR_HAVE_CR_REQUEST_CHECKPOINT]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([CRS_BLCR_HAVE_INFO_REQUESTER]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^CRS_BLCR_HAVE_INFO_REQUESTER$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([CRS_BLCR_HAVE_INFO_REQUESTER], [/* BLCRs cr_checkpoint_info.requester member availability */ ++#undef CRS_BLCR_HAVE_INFO_REQUESTER]) ++m4trace:configure.ac:1032: -1- AC_SUBST([crs_blcr_crs_blcr_WRAPPER_EXTRA_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([crs_blcr_crs_blcr_WRAPPER_EXTRA_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^crs_blcr_crs_blcr_WRAPPER_EXTRA_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([crs_blcr_crs_blcr_WRAPPER_EXTRA_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([crs_blcr_crs_blcr_WRAPPER_EXTRA_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^crs_blcr_crs_blcr_WRAPPER_EXTRA_LIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([crs_blcr_crs_blcr_WRAPPER_EXTRA_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([crs_blcr_crs_blcr_WRAPPER_EXTRA_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^crs_blcr_crs_blcr_WRAPPER_EXTRA_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([crs_blcr_CFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([crs_blcr_CFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^crs_blcr_CFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([crs_blcr_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([crs_blcr_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^crs_blcr_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([crs_blcr_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([crs_blcr_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^crs_blcr_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([crs_blcr_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([crs_blcr_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^crs_blcr_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_crs_blcr_DSO], [test "$BUILD_crs_blcr_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_crs_blcr_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_crs_blcr_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_crs_blcr_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_crs_blcr_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_crs_blcr_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_crs_blcr_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_crs_blcr_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_crs_blcr_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_crs_self_DSO], [test "$BUILD_crs_self_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_crs_self_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_crs_self_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_crs_self_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_crs_self_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_crs_self_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_crs_self_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_crs_self_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_crs_self_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_crs_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_crs_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crs_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_crs_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_crs_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crs_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_crs_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_crs_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crs_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_crs_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_crs_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crs_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_crs_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_crs_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crs_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_crs_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_crs_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crs_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_crs_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_crs_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crs_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_installdirs_env_DSO], [test "$BUILD_installdirs_env_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_installdirs_env_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_installdirs_env_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_installdirs_env_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_installdirs_env_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_installdirs_env_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_installdirs_env_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_installdirs_env_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_installdirs_env_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/installdirs/config/install_dirs.h]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_installdirs_config_DSO], [test "$BUILD_installdirs_config_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_installdirs_config_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_installdirs_config_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_installdirs_config_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_installdirs_config_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_installdirs_config_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_installdirs_config_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_installdirs_config_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_installdirs_config_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_installdirs_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_installdirs_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_installdirs_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_installdirs_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_installdirs_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_installdirs_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_installdirs_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_installdirs_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_installdirs_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_installdirs_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_installdirs_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_installdirs_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_installdirs_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_installdirs_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_installdirs_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_installdirs_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_installdirs_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_installdirs_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_installdirs_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_installdirs_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_installdirs_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_maffinity_first_use_DSO], [test "$BUILD_maffinity_first_use_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_maffinity_first_use_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_maffinity_first_use_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_maffinity_first_use_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_maffinity_first_use_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_maffinity_first_use_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_maffinity_first_use_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_maffinity_first_use_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_maffinity_first_use_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++opal/mca/maffinity/libnuma/configure.m4:25: MCA_maffinity_libnuma_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/maffinity/libnuma/configure.m4:25: MCA_maffinity_libnuma_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/maffinity/libnuma/configure.m4:25: MCA_maffinity_libnuma_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/maffinity/libnuma/configure.m4:25: MCA_maffinity_libnuma_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/maffinity/libnuma/configure.m4:25: MCA_maffinity_libnuma_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/maffinity/libnuma/configure.m4:25: MCA_maffinity_libnuma_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/maffinity/libnuma/configure.m4:25: MCA_maffinity_libnuma_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/maffinity/libnuma/configure.m4:25: MCA_maffinity_libnuma_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DECL_MPOL_MF_MOVE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_DECL_MPOL_MF_MOVE$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_DECL_MPOL_MF_MOVE], [/* Define to 1 if you have the declaration of `MPOL_MF_MOVE\', and to 0 if you ++ don\'t. */ ++#undef HAVE_DECL_MPOL_MF_MOVE]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DECL_MPOL_MF_MOVE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_DECL_MPOL_MF_MOVE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([maffinity_libnuma_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([maffinity_libnuma_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^maffinity_libnuma_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([maffinity_libnuma_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([maffinity_libnuma_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^maffinity_libnuma_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([maffinity_libnuma_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([maffinity_libnuma_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^maffinity_libnuma_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_maffinity_libnuma_DSO], [test "$BUILD_maffinity_libnuma_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_maffinity_libnuma_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_maffinity_libnuma_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_maffinity_libnuma_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_maffinity_libnuma_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_maffinity_libnuma_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_maffinity_libnuma_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_maffinity_libnuma_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_maffinity_libnuma_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_maffinity_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_maffinity_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_maffinity_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_maffinity_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_maffinity_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_maffinity_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_maffinity_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_maffinity_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_maffinity_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_maffinity_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_maffinity_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_maffinity_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_maffinity_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_maffinity_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_maffinity_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_maffinity_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_maffinity_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_maffinity_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_maffinity_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_maffinity_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_maffinity_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++opal/mca/memchecker/configure.m4:16: MCA_memchecker_CONFIG is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_WANT_MEMCHECKER]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_WANT_MEMCHECKER$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_WANT_MEMCHECKER], [/* if the memory and buffer checking should be enabled */ ++#undef OMPI_WANT_MEMCHECKER]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_WANT_MEMCHECKER], [test "$WANT_MEMCHECKER" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_WANT_MEMCHECKER_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_WANT_MEMCHECKER_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_WANT_MEMCHECKER_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_WANT_MEMCHECKER_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_WANT_MEMCHECKER_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_WANT_MEMCHECKER_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_WANT_MEMCHECKER_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_WANT_MEMCHECKER_FALSE]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++opal/mca/memchecker/valgrind/configure.m4:22: MCA_memchecker_valgrind_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++opal/mca/memchecker/configure.m4:16: MCA_memchecker_CONFIG is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_VALGRIND_VALGRIND_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_VALGRIND_VALGRIND_H]) ++m4trace:configure.ac:1032: -1- AC_SUBST([memchecker_valgrind_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([memchecker_valgrind_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^memchecker_valgrind_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_memchecker_valgrind_DSO], [test "$BUILD_memchecker_valgrind_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_memchecker_valgrind_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_memchecker_valgrind_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_memchecker_valgrind_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_memchecker_valgrind_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_memchecker_valgrind_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_memchecker_valgrind_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_memchecker_valgrind_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_memchecker_valgrind_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_memchecker_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_memchecker_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memchecker_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_memchecker_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_memchecker_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memchecker_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_memchecker_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_memchecker_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memchecker_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_memchecker_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_memchecker_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memchecker_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_memchecker_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_memchecker_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memchecker_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_memchecker_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_memchecker_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memchecker_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_memchecker_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_memchecker_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memchecker_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_MEMCHECKER_HAVE_COMPONENT]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_MEMCHECKER_HAVE_COMPONENT$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_MEMCHECKER_HAVE_COMPONENT], [/* Whether any opal memchecker mca components were found */ ++#undef OMPI_MEMCHECKER_HAVE_COMPONENT]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_memcpy_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_memcpy_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memcpy_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_memcpy_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_memcpy_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memcpy_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_memcpy_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_memcpy_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memcpy_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_memcpy_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_memcpy_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memcpy_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_memcpy_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_memcpy_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memcpy_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_memcpy_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_memcpy_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memcpy_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_memcpy_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_memcpy_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memcpy_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([MCA_memcpy_IMPLEMENTATION_HEADER]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memcpy_IMPLEMENTATION_HEADER$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([MCA_memcpy_IMPLEMENTATION_HEADER], [/* Header to include for memcpy implementation */ ++#undef MCA_memcpy_IMPLEMENTATION_HEADER]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++opal/mca/memory/configure.m4:23: MCA_memory_CONFIG is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++opal/mca/memory/ptmalloc2/configure.m4:37: MCA_memory_ptmalloc2_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++opal/mca/memory/configure.m4:23: MCA_memory_CONFIG is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DECL_SBRK]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_DECL_SBRK$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_DECL_SBRK], [/* Define to 1 if you have the declaration of `sbrk\', and to 0 if you don\'t. ++ */ ++#undef HAVE_DECL_SBRK]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DECL_SBRK]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_DECL_SBRK$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_SYSCALL], [/* Define to 1 if you have the `syscall\' function. */ ++#undef HAVE_SYSCALL]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE___MUNMAP], [/* Define to 1 if you have the `__munmap\' function. */ ++#undef HAVE___MUNMAP]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE___MMAP], [/* Define to 1 if you have the `__mmap\' function. */ ++#undef HAVE___MMAP]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_DLSYM], [/* Define to 1 if you have the `dlsym\' function. */ ++#undef HAVE_DLSYM]) ++m4trace:configure.ac:1032: -1- AC_SUBST([memory_ptmalloc2_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([memory_ptmalloc2_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^memory_ptmalloc2_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_WANT_EXTERNAL_PTMALLOC2], [test "$enable_ptmalloc2_internal" != "yes"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_WANT_EXTERNAL_PTMALLOC2_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_WANT_EXTERNAL_PTMALLOC2_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_WANT_EXTERNAL_PTMALLOC2_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_WANT_EXTERNAL_PTMALLOC2_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_WANT_EXTERNAL_PTMALLOC2_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_WANT_EXTERNAL_PTMALLOC2_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_WANT_EXTERNAL_PTMALLOC2_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_WANT_EXTERNAL_PTMALLOC2_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_memory_ptmalloc2_DSO], [test "$BUILD_memory_ptmalloc2_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_memory_ptmalloc2_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_memory_ptmalloc2_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_memory_ptmalloc2_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_memory_ptmalloc2_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_memory_ptmalloc2_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_memory_ptmalloc2_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_memory_ptmalloc2_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_memory_ptmalloc2_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_SYSCALL], [/* Define to 1 if you have the `syscall\' function. */ ++#undef HAVE_SYSCALL]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE___MUNMAP], [/* Define to 1 if you have the `__munmap\' function. */ ++#undef HAVE___MUNMAP]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_DLSYM], [/* Define to 1 if you have the `dlsym\' function. */ ++#undef HAVE_DLSYM]) ++m4trace:configure.ac:1032: -1- AC_SUBST([memory_malloc_solaris_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([memory_malloc_solaris_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^memory_malloc_solaris_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_memory_malloc_solaris_DSO], [test "$BUILD_memory_malloc_solaris_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_memory_malloc_solaris_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_memory_malloc_solaris_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_memory_malloc_solaris_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_memory_malloc_solaris_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_memory_malloc_solaris_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_memory_malloc_solaris_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_memory_malloc_solaris_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_memory_malloc_solaris_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_MALLOPT], [/* Define to 1 if you have the `mallopt\' function. */ ++#undef HAVE_MALLOPT]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_SYSCALL], [/* Define to 1 if you have the `syscall\' function. */ ++#undef HAVE_SYSCALL]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE___MUNMAP], [/* Define to 1 if you have the `__munmap\' function. */ ++#undef HAVE___MUNMAP]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_DLSYM], [/* Define to 1 if you have the `dlsym\' function. */ ++#undef HAVE_DLSYM]) ++m4trace:configure.ac:1032: -1- AC_SUBST([memory_mallopt_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([memory_mallopt_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^memory_mallopt_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_memory_mallopt_DSO], [test "$BUILD_memory_mallopt_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_memory_mallopt_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_memory_mallopt_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_memory_mallopt_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_memory_mallopt_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_memory_mallopt_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_memory_mallopt_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_memory_mallopt_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_memory_mallopt_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_memory_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_memory_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memory_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_memory_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_memory_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memory_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_memory_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_memory_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memory_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_memory_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_memory_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memory_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_memory_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_memory_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memory_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_memory_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_memory_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memory_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_memory_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_memory_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_memory_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_MEMORY_HAVE_COMPONENT]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_MEMORY_HAVE_COMPONENT$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_MEMORY_HAVE_COMPONENT], [/* Whether any opal memory mca components were found */ ++#undef OMPI_MEMORY_HAVE_COMPONENT]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:188: _PLPA_INTERNAL_SETUP is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:180: PLPA_SET_SYMBOL_PREFIX is expanded from... ++opal/mca/paffinity/linux/configure.m4:30: MCA_paffinity_linux_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:188: _PLPA_INTERNAL_SETUP is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:180: PLPA_SET_SYMBOL_PREFIX is expanded from... ++opal/mca/paffinity/linux/configure.m4:30: MCA_paffinity_linux_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:188: _PLPA_INTERNAL_SETUP is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:180: PLPA_SET_SYMBOL_PREFIX is expanded from... ++opal/mca/paffinity/linux/configure.m4:30: MCA_paffinity_linux_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:188: _PLPA_INTERNAL_SETUP is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:180: PLPA_SET_SYMBOL_PREFIX is expanded from... ++opal/mca/paffinity/linux/configure.m4:30: MCA_paffinity_linux_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:188: _PLPA_INTERNAL_SETUP is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:180: PLPA_SET_SYMBOL_PREFIX is expanded from... ++opal/mca/paffinity/linux/configure.m4:30: MCA_paffinity_linux_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_SUBST([YACC]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([YACC]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^YACC$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([YACC]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([YACC]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^YACC$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([YFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([YFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^YFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([__NR_sched_setaffinity]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^__NR_sched_setaffinity$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([__NR_sched_setaffinity], [/* Emulated value */ ++#undef __NR_sched_setaffinity]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:42: _PLPA_INIT_COMPAT is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:23: PLPA_INIT is expanded from... ++opal/mca/paffinity/linux/configure.m4:30: MCA_paffinity_linux_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([__NR_sched_getaffinity]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^__NR_sched_getaffinity$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([__NR_sched_getaffinity], [/* Emulated value */ ++#undef __NR_sched_getaffinity]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:42: _PLPA_INIT_COMPAT is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:23: PLPA_INIT is expanded from... ++opal/mca/paffinity/linux/configure.m4:30: MCA_paffinity_linux_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -2- AC_DEFINE_TRACE_LITERAL([PAFFINITY_LINUX_PLPA_VERSION]) ++m4trace:configure.ac:1032: -2- m4_pattern_allow([^PAFFINITY_LINUX_PLPA_VERSION$]) ++m4trace:configure.ac:1032: -2- AH_OUTPUT([PAFFINITY_LINUX_PLPA_VERSION], [/* Version of PLPA embedded in OMPI */ ++#undef PAFFINITY_LINUX_PLPA_VERSION]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([PLPA_DEBUG]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^PLPA_DEBUG$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([PLPA_DEBUG], [/* Whether we are in debugging more or not */ ++#undef PLPA_DEBUG]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AM_CONFIG_HEADER' is obsolete. ++You should run autoupdate.], [aclocal.m4:405: AM_CONFIG_HEADER is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:262: _PLPA_INIT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:42: _PLPA_INIT_COMPAT is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:23: PLPA_INIT is expanded from... ++opal/mca/paffinity/linux/configure.m4:30: MCA_paffinity_linux_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_HEADERS([opal/mca/paffinity/linux/plpa/src/libplpa/plpa_config.h]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AM_CONFIG_HEADER' is obsolete. ++You should run autoupdate.], [aclocal.m4:405: AM_CONFIG_HEADER is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:262: _PLPA_INIT is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:42: _PLPA_INIT_COMPAT is expanded from... ++opal/mca/paffinity/linux/plpa/config/plpa.m4:23: PLPA_INIT is expanded from... ++opal/mca/paffinity/linux/configure.m4:30: MCA_paffinity_linux_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_HEADERS([opal/mca/paffinity/linux/plpa/src/libplpa/plpa.h]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([PLPA_SYM_PREFIX]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^PLPA_SYM_PREFIX$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([PLPA_SYM_PREFIX], [/* The PLPA symbol prefix */ ++#undef PLPA_SYM_PREFIX]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([PLPA_SYM_PREFIX_CAPS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^PLPA_SYM_PREFIX_CAPS$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([PLPA_SYM_PREFIX_CAPS], [/* The PLPA symbol prefix in all caps */ ++#undef PLPA_SYM_PREFIX_CAPS]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([inline], [/* Define to `__inline__\' or `__inline\' if that\'s what the C compiler ++ calls it, or to nothing if \'inline\' is not supported under any name. */ ++#ifndef __cplusplus ++#undef inline ++#endif]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([PLPA_BUILD_STANDALONE], [test "$plpa_mode" = "standalone"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([PLPA_BUILD_STANDALONE_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([PLPA_BUILD_STANDALONE_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^PLPA_BUILD_STANDALONE_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([PLPA_BUILD_STANDALONE_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([PLPA_BUILD_STANDALONE_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^PLPA_BUILD_STANDALONE_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([PLPA_BUILD_STANDALONE_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([PLPA_BUILD_STANDALONE_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([PLPA_BUILD_EXECUTABLES], [test "$plpa_executables" = "yes"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([PLPA_BUILD_EXECUTABLES_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([PLPA_BUILD_EXECUTABLES_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^PLPA_BUILD_EXECUTABLES_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([PLPA_BUILD_EXECUTABLES_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([PLPA_BUILD_EXECUTABLES_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^PLPA_BUILD_EXECUTABLES_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([PLPA_BUILD_EXECUTABLES_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([PLPA_BUILD_EXECUTABLES_FALSE]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/paffinity/linux/plpa/Makefile ++ opal/mca/paffinity/linux/plpa/config/Makefile ++ opal/mca/paffinity/linux/plpa/src/Makefile ++ opal/mca/paffinity/linux/plpa/src/libplpa/Makefile ++ opal/mca/paffinity/linux/plpa/src/plpa-info/Makefile ++ opal/mca/paffinity/linux/plpa/src/plpa-taskset/Makefile ++ ]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([PLPA_BUILD_STANDALONE], [test "$plpa_mode" = "standalone"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([PLPA_BUILD_STANDALONE_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([PLPA_BUILD_STANDALONE_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^PLPA_BUILD_STANDALONE_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([PLPA_BUILD_STANDALONE_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([PLPA_BUILD_STANDALONE_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^PLPA_BUILD_STANDALONE_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([PLPA_BUILD_STANDALONE_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([PLPA_BUILD_STANDALONE_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([PLPA_BUILD_EXECUTABLES], [test "$plpa_executables" = "yes"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([PLPA_BUILD_EXECUTABLES_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([PLPA_BUILD_EXECUTABLES_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^PLPA_BUILD_EXECUTABLES_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([PLPA_BUILD_EXECUTABLES_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([PLPA_BUILD_EXECUTABLES_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^PLPA_BUILD_EXECUTABLES_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([PLPA_BUILD_EXECUTABLES_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([PLPA_BUILD_EXECUTABLES_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_paffinity_linux_DSO], [test "$BUILD_paffinity_linux_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_paffinity_linux_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_paffinity_linux_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_paffinity_linux_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_paffinity_linux_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_paffinity_linux_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_paffinity_linux_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_paffinity_linux_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_paffinity_linux_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_paffinity_solaris_DSO], [test "$BUILD_paffinity_solaris_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_paffinity_solaris_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_paffinity_solaris_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_paffinity_solaris_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_paffinity_solaris_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_paffinity_solaris_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_paffinity_solaris_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_paffinity_solaris_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_paffinity_solaris_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++opal/mca/paffinity/windows/configure.m4:22: MCA_paffinity_windows_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_paffinity_windows_DSO], [test "$BUILD_paffinity_windows_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_paffinity_windows_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_paffinity_windows_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_paffinity_windows_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_paffinity_windows_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_paffinity_windows_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_paffinity_windows_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_paffinity_windows_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_paffinity_windows_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_paffinity_darwin_DSO], [test "$BUILD_paffinity_darwin_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_paffinity_darwin_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_paffinity_darwin_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_paffinity_darwin_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_paffinity_darwin_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_paffinity_darwin_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_paffinity_darwin_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_paffinity_darwin_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_paffinity_darwin_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_paffinity_posix_DSO], [test "$BUILD_paffinity_posix_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_paffinity_posix_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_paffinity_posix_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_paffinity_posix_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_paffinity_posix_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_paffinity_posix_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_paffinity_posix_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_paffinity_posix_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_paffinity_posix_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_paffinity_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_paffinity_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_paffinity_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_paffinity_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_paffinity_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_paffinity_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_paffinity_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_paffinity_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_paffinity_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_paffinity_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_paffinity_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_paffinity_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_paffinity_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_paffinity_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_paffinity_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_paffinity_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_paffinity_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_paffinity_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_paffinity_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_paffinity_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_paffinity_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++opal/mca/timer/catamount/configure.m4:30: MCA_timer_catamount_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++opal/mca/timer/configure.m4:23: MCA_timer_CONFIG is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_CATAMOUNT_DCLOCK_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_CATAMOUNT_DCLOCK_H]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_timer_catamount_DSO], [test "$BUILD_timer_catamount_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_timer_catamount_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_timer_catamount_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_catamount_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_timer_catamount_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_timer_catamount_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_catamount_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_catamount_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_catamount_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_PM_CYCLES], [/* Define to 1 if you have the `pm_cycles\' function. */ ++#undef HAVE_PM_CYCLES]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_PMAPI_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_PMAPI_H]) ++m4trace:configure.ac:1032: -1- AC_SUBST([timer_aix_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([timer_aix_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^timer_aix_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_timer_aix_DSO], [test "$BUILD_timer_aix_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_timer_aix_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_timer_aix_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_aix_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_timer_aix_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_timer_aix_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_aix_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_aix_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_aix_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_SYS_IOCTL_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_IOCTL_H]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_SYS_MMAN_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_MMAN_H]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_timer_altix_DSO], [test "$BUILD_timer_altix_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_timer_altix_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_timer_altix_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_altix_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_timer_altix_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_timer_altix_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_altix_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_altix_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_altix_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_MACH_MACH_TIME_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_MACH_MACH_TIME_H]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_timer_darwin_DSO], [test "$BUILD_timer_darwin_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_timer_darwin_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_timer_darwin_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_darwin_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_timer_darwin_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_timer_darwin_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_darwin_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_darwin_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_darwin_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_timer_solaris_DSO], [test "$BUILD_timer_solaris_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_timer_solaris_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_timer_solaris_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_solaris_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_timer_solaris_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_timer_solaris_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_solaris_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_solaris_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_solaris_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++opal/mca/timer/windows/configure.m4:30: MCA_timer_windows_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++opal/mca/timer/configure.m4:23: MCA_timer_CONFIG is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_timer_windows_DSO], [test "$BUILD_timer_windows_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_timer_windows_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_timer_windows_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_windows_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_timer_windows_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_timer_windows_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_windows_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_windows_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_windows_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_timer_linux_DSO], [test "$BUILD_timer_linux_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_timer_linux_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_timer_linux_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_linux_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_timer_linux_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_timer_linux_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_timer_linux_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_linux_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_timer_linux_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_timer_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_timer_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_timer_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_timer_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_timer_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_timer_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_timer_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_timer_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_timer_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_timer_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_timer_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_timer_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_timer_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_timer_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_timer_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_timer_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_timer_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_timer_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_timer_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_timer_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_timer_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([MCA_timer_IMPLEMENTATION_HEADER]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_timer_IMPLEMENTATION_HEADER$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([MCA_timer_IMPLEMENTATION_HEADER], [/* Header to include for timer implementation */ ++#undef MCA_timer_IMPLEMENTATION_HEADER]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_opal_FRAMEWORKS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_opal_FRAMEWORKS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_opal_FRAMEWORKS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_opal_FRAMEWORKS_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_opal_FRAMEWORKS_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_opal_FRAMEWORKS_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_opal_FRAMEWORK_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_opal_FRAMEWORK_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_opal_FRAMEWORK_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_errmgr_default_DSO], [test "$BUILD_errmgr_default_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_errmgr_default_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_errmgr_default_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_errmgr_default_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_errmgr_default_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_errmgr_default_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_errmgr_default_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_errmgr_default_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_errmgr_default_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_errmgr_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_errmgr_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_errmgr_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_errmgr_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_errmgr_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_errmgr_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_errmgr_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_errmgr_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_errmgr_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_errmgr_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_errmgr_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_errmgr_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_errmgr_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_errmgr_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_errmgr_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_errmgr_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_errmgr_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_errmgr_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_errmgr_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_errmgr_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_errmgr_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++orte/mca/ess/portals_utcp/configure.m4:24: MCA_ess_portals_utcp_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++orte/mca/ess/portals_utcp/configure.m4:24: MCA_ess_portals_utcp_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_SUBST([ess_portals_utcp_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([ess_portals_utcp_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ess_portals_utcp_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([ess_portals_utcp_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([ess_portals_utcp_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ess_portals_utcp_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([ess_portals_utcp_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([ess_portals_utcp_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ess_portals_utcp_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ess_portals_utcp_DSO], [test "$BUILD_ess_portals_utcp_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ess_portals_utcp_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ess_portals_utcp_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_portals_utcp_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ess_portals_utcp_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ess_portals_utcp_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_portals_utcp_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_portals_utcp_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_portals_utcp_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_alps.m4:23: OMPI_CHECK_ALPS is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/functions.m4:67: AC_CHECK_FUNC is expanded from... ++orte/mca/ess/cnos/configure.m4:22: MCA_ess_cnos_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ess_cnos_DSO], [test "$BUILD_ess_cnos_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ess_cnos_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ess_cnos_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_cnos_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ess_cnos_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ess_cnos_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_cnos_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_cnos_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_cnos_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ess_alps_DSO], [test "$BUILD_ess_alps_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ess_alps_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ess_alps_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_alps_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ess_alps_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ess_alps_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_alps_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_alps_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_alps_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ess_env_DSO], [test "$BUILD_ess_env_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ess_env_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ess_env_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_env_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ess_env_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ess_env_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_env_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_env_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_env_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ess_hnp_DSO], [test "$BUILD_ess_hnp_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ess_hnp_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ess_hnp_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_hnp_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ess_hnp_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ess_hnp_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_hnp_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_hnp_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_hnp_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ess/lsf/configure.m4:23: MCA_ess_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ess/lsf/configure.m4:23: MCA_ess_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ess/lsf/configure.m4:23: MCA_ess_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ess/lsf/configure.m4:23: MCA_ess_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ess/lsf/configure.m4:23: MCA_ess_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ess/lsf/configure.m4:23: MCA_ess_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ess/lsf/configure.m4:23: MCA_ess_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ess/lsf/configure.m4:23: MCA_ess_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ess/lsf/configure.m4:23: MCA_ess_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_SUBST([ess_lsf_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([ess_lsf_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ess_lsf_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([ess_lsf_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([ess_lsf_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ess_lsf_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([ess_lsf_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([ess_lsf_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ess_lsf_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ess_lsf_DSO], [test "$BUILD_ess_lsf_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ess_lsf_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ess_lsf_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_lsf_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ess_lsf_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ess_lsf_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_lsf_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_lsf_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_lsf_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ess_singleton_DSO], [test "$BUILD_ess_singleton_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ess_singleton_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ess_singleton_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_singleton_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ess_singleton_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ess_singleton_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_singleton_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_singleton_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_singleton_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_slurm.m4:23: OMPI_CHECK_SLURM is expanded from... ++orte/mca/ess/slurm/configure.m4:22: MCA_ess_slurm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_SUBST([ess_slurm_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([ess_slurm_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ess_slurm_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([ess_slurm_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([ess_slurm_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ess_slurm_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([ess_slurm_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([ess_slurm_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ess_slurm_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ess_slurm_DSO], [test "$BUILD_ess_slurm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ess_slurm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ess_slurm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_slurm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ess_slurm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ess_slurm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_slurm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_slurm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_slurm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ess_tool_DSO], [test "$BUILD_ess_tool_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ess_tool_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ess_tool_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_tool_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ess_tool_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ess_tool_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ess_tool_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_tool_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ess_tool_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_ess_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_ess_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ess_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_ess_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_ess_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ess_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_ess_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_ess_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ess_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_ess_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_ess_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ess_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_ess_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_ess_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ess_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_ess_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_ess_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ess_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_ess_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_ess_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ess_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_filem_rsh_DSO], [test "$BUILD_filem_rsh_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_filem_rsh_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_filem_rsh_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_filem_rsh_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_filem_rsh_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_filem_rsh_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_filem_rsh_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_filem_rsh_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_filem_rsh_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_filem_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_filem_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_filem_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_filem_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_filem_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_filem_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_filem_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_filem_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_filem_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_filem_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_filem_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_filem_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_filem_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_filem_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_filem_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_filem_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_filem_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_filem_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_filem_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_filem_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_filem_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_GRPCOMM_CNOS_HAVE_BARRIER]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_GRPCOMM_CNOS_HAVE_BARRIER$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_GRPCOMM_CNOS_HAVE_BARRIER], [/* whether to use cnos_barrier or not */ ++#undef OMPI_GRPCOMM_CNOS_HAVE_BARRIER]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_grpcomm_cnos_DSO], [test "$BUILD_grpcomm_cnos_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_grpcomm_cnos_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_grpcomm_cnos_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_grpcomm_cnos_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_grpcomm_cnos_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_grpcomm_cnos_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_grpcomm_cnos_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_grpcomm_cnos_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_grpcomm_cnos_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_grpcomm_bad_DSO], [test "$BUILD_grpcomm_bad_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_grpcomm_bad_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_grpcomm_bad_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_grpcomm_bad_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_grpcomm_bad_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_grpcomm_bad_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_grpcomm_bad_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_grpcomm_bad_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_grpcomm_bad_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_grpcomm_basic_DSO], [test "$BUILD_grpcomm_basic_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_grpcomm_basic_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_grpcomm_basic_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_grpcomm_basic_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_grpcomm_basic_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_grpcomm_basic_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_grpcomm_basic_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_grpcomm_basic_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_grpcomm_basic_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_grpcomm_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_grpcomm_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_grpcomm_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_grpcomm_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_grpcomm_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_grpcomm_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_grpcomm_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_grpcomm_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_grpcomm_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_grpcomm_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_grpcomm_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_grpcomm_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_grpcomm_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_grpcomm_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_grpcomm_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_grpcomm_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_grpcomm_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_grpcomm_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_grpcomm_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_grpcomm_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_grpcomm_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_iof_hnp_DSO], [test "$BUILD_iof_hnp_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_iof_hnp_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_iof_hnp_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_iof_hnp_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_iof_hnp_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_iof_hnp_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_iof_hnp_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_iof_hnp_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_iof_hnp_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_iof_orted_DSO], [test "$BUILD_iof_orted_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_iof_orted_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_iof_orted_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_iof_orted_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_iof_orted_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_iof_orted_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_iof_orted_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_iof_orted_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_iof_orted_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_iof_tool_DSO], [test "$BUILD_iof_tool_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_iof_tool_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_iof_tool_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_iof_tool_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_iof_tool_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_iof_tool_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_iof_tool_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_iof_tool_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_iof_tool_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_iof_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_iof_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_iof_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_iof_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_iof_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_iof_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_iof_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_iof_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_iof_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_iof_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_iof_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_iof_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_iof_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_iof_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_iof_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_iof_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_iof_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_iof_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_iof_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_iof_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_iof_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_notifier_syslog_DSO], [test "$BUILD_notifier_syslog_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_notifier_syslog_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_notifier_syslog_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_notifier_syslog_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_notifier_syslog_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_notifier_syslog_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_notifier_syslog_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_notifier_syslog_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_notifier_syslog_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_notifier_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_notifier_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_notifier_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_notifier_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_notifier_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_notifier_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_notifier_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_notifier_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_notifier_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_notifier_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_notifier_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_notifier_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_notifier_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_notifier_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_notifier_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_notifier_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_notifier_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_notifier_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_notifier_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_notifier_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_notifier_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_odls_default_DSO], [test "$BUILD_odls_default_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_odls_default_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_odls_default_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_odls_default_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_odls_default_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_odls_default_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_odls_default_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_odls_default_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_odls_default_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_odls_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_odls_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_odls_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_odls_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_odls_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_odls_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_odls_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_odls_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_odls_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_odls_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_odls_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_odls_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_odls_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_odls_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_odls_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_odls_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_odls_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_odls_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_odls_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_odls_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_odls_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_SOCKADDR_IN]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_STRUCT_SOCKADDR_IN$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_STRUCT_SOCKADDR_IN], [/* Define to 1 if the system has the type `struct sockaddr_in\'. */ ++#undef HAVE_STRUCT_SOCKADDR_IN]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_oob_tcp_DSO], [test "$BUILD_oob_tcp_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_oob_tcp_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_oob_tcp_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_oob_tcp_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_oob_tcp_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_oob_tcp_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_oob_tcp_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_oob_tcp_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_oob_tcp_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_oob_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_oob_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_oob_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_oob_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_oob_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_oob_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_oob_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_oob_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_oob_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_oob_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_oob_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_oob_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_oob_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_oob_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_oob_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_oob_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_oob_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_oob_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_oob_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_oob_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_oob_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_plm_alps_DSO], [test "$BUILD_plm_alps_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_plm_alps_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_plm_alps_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_plm_alps_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_plm_alps_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_plm_alps_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_plm_alps_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_plm_alps_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_plm_alps_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/plm/lsf/configure.m4:22: MCA_plm_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/plm/lsf/configure.m4:22: MCA_plm_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/plm/lsf/configure.m4:22: MCA_plm_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/plm/lsf/configure.m4:22: MCA_plm_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/plm/lsf/configure.m4:22: MCA_plm_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/plm/lsf/configure.m4:22: MCA_plm_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/plm/lsf/configure.m4:22: MCA_plm_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_SUBST([plm_lsf_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([plm_lsf_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^plm_lsf_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([plm_lsf_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([plm_lsf_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^plm_lsf_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([plm_lsf_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([plm_lsf_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^plm_lsf_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_plm_lsf_DSO], [test "$BUILD_plm_lsf_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_plm_lsf_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_plm_lsf_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_plm_lsf_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_plm_lsf_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_plm_lsf_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_plm_lsf_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_plm_lsf_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_plm_lsf_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_plm_rsh_DSO], [test "$BUILD_plm_rsh_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_plm_rsh_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_plm_rsh_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_plm_rsh_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_plm_rsh_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_plm_rsh_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_plm_rsh_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_plm_rsh_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_plm_rsh_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([plm_slurm_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([plm_slurm_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^plm_slurm_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([plm_slurm_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([plm_slurm_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^plm_slurm_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([plm_slurm_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([plm_slurm_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^plm_slurm_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_plm_slurm_DSO], [test "$BUILD_plm_slurm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_plm_slurm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_plm_slurm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_plm_slurm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_plm_slurm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_plm_slurm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_plm_slurm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_plm_slurm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_plm_slurm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/plm/tm/configure.m4:22: MCA_plm_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/plm/tm/configure.m4:22: MCA_plm_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/plm/tm/configure.m4:22: MCA_plm_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/plm/tm/configure.m4:22: MCA_plm_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/plm/tm/configure.m4:22: MCA_plm_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/plm/tm/configure.m4:22: MCA_plm_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/plm/tm/configure.m4:22: MCA_plm_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/plm/tm/configure.m4:22: MCA_plm_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_SUBST([plm_tm_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([plm_tm_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^plm_tm_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([plm_tm_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([plm_tm_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^plm_tm_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([plm_tm_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([plm_tm_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^plm_tm_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_plm_tm_DSO], [test "$BUILD_plm_tm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_plm_tm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_plm_tm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_plm_tm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_plm_tm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_plm_tm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_plm_tm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_plm_tm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_plm_tm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OBJC]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OBJC]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OBJC$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OBJCFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OBJCFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OBJCFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^LIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OBJC]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OBJC]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OBJC$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([ac_ct_OBJC]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([ac_ct_OBJC]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ac_ct_OBJC$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OBJCDEPMODE], [depmode=$am_cv_OBJC_dependencies_compiler_type]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OBJCDEPMODE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OBJCDEPMODE$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([am__fastdepOBJC], [ ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3]) ++m4trace:configure.ac:1032: -1- AC_SUBST([am__fastdepOBJC_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([am__fastdepOBJC_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^am__fastdepOBJC_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([am__fastdepOBJC_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([am__fastdepOBJC_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^am__fastdepOBJC_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([am__fastdepOBJC_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([am__fastdepOBJC_FALSE]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_xgrid.m4:25: OMPI_CHECK_XGRID is expanded from... ++orte/mca/plm/xgrid/configure.m4:22: MCA_plm_xgrid_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++config/ompi_check_xgrid.m4:52: _OMPI_CHECK_XGRID is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_lang_link_with_c.m4:17: OMPI_LANG_LINK_WITH_C is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_xgrid.m4:25: OMPI_CHECK_XGRID is expanded from... ++orte/mca/plm/xgrid/configure.m4:22: MCA_plm_xgrid_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_SUBST([plm_xgrid_OBJCFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([plm_xgrid_OBJCFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^plm_xgrid_OBJCFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([plm_xgrid_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([plm_xgrid_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^plm_xgrid_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_plm_xgrid_DSO], [test "$BUILD_plm_xgrid_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_plm_xgrid_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_plm_xgrid_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_plm_xgrid_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_plm_xgrid_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_plm_xgrid_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_plm_xgrid_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_plm_xgrid_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_plm_xgrid_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_plm_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_plm_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_plm_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_plm_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_plm_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_plm_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_plm_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_plm_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_plm_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_plm_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_plm_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_plm_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_plm_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_plm_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_plm_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_plm_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_plm_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_plm_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_plm_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_plm_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_plm_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ras_alps_DSO], [test "$BUILD_ras_alps_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ras_alps_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ras_alps_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ras_alps_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ras_alps_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ras_alps_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ras_alps_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ras_alps_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ras_alps_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_sge.m4:28: OMPI_CHECK_GRIDENGINE is expanded from... ++orte/mca/ras/gridengine/configure.m4:24: MCA_ras_gridengine_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_SUBST([QRSH]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([QRSH]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^QRSH$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ras_gridengine_DSO], [test "$BUILD_ras_gridengine_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ras_gridengine_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ras_gridengine_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ras_gridengine_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ras_gridengine_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ras_gridengine_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ras_gridengine_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ras_gridengine_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ras_gridengine_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_loadleveler.m4:24: OMPI_CHECK_LOADLEVELER is expanded from... ++orte/mca/ras/loadleveler/configure.m4:22: MCA_ras_loadleveler_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_loadleveler.m4:24: OMPI_CHECK_LOADLEVELER is expanded from... ++orte/mca/ras/loadleveler/configure.m4:22: MCA_ras_loadleveler_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_loadleveler.m4:24: OMPI_CHECK_LOADLEVELER is expanded from... ++orte/mca/ras/loadleveler/configure.m4:22: MCA_ras_loadleveler_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_loadleveler.m4:24: OMPI_CHECK_LOADLEVELER is expanded from... ++orte/mca/ras/loadleveler/configure.m4:22: MCA_ras_loadleveler_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_loadleveler.m4:24: OMPI_CHECK_LOADLEVELER is expanded from... ++orte/mca/ras/loadleveler/configure.m4:22: MCA_ras_loadleveler_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_loadleveler.m4:24: OMPI_CHECK_LOADLEVELER is expanded from... ++orte/mca/ras/loadleveler/configure.m4:22: MCA_ras_loadleveler_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_loadleveler.m4:24: OMPI_CHECK_LOADLEVELER is expanded from... ++orte/mca/ras/loadleveler/configure.m4:22: MCA_ras_loadleveler_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_loadleveler.m4:24: OMPI_CHECK_LOADLEVELER is expanded from... ++orte/mca/ras/loadleveler/configure.m4:22: MCA_ras_loadleveler_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_SUBST([ras_loadleveler_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([ras_loadleveler_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ras_loadleveler_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([ras_loadleveler_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([ras_loadleveler_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ras_loadleveler_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([ras_loadleveler_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([ras_loadleveler_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ras_loadleveler_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ras_loadleveler_DSO], [test "$BUILD_ras_loadleveler_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ras_loadleveler_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ras_loadleveler_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ras_loadleveler_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ras_loadleveler_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ras_loadleveler_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ras_loadleveler_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ras_loadleveler_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ras_loadleveler_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ras/lsf/configure.m4:22: MCA_ras_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ras/lsf/configure.m4:22: MCA_ras_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ras/lsf/configure.m4:22: MCA_ras_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ras/lsf/configure.m4:22: MCA_ras_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ras/lsf/configure.m4:22: MCA_ras_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ras/lsf/configure.m4:22: MCA_ras_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_lsf.m4:24: OMPI_CHECK_LSF is expanded from... ++orte/mca/ras/lsf/configure.m4:22: MCA_ras_lsf_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_SUBST([ras_lsf_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([ras_lsf_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ras_lsf_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([ras_lsf_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([ras_lsf_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ras_lsf_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([ras_lsf_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([ras_lsf_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ras_lsf_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ras_lsf_DSO], [test "$BUILD_ras_lsf_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ras_lsf_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ras_lsf_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ras_lsf_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ras_lsf_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ras_lsf_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ras_lsf_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ras_lsf_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ras_lsf_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([ras_slurm_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([ras_slurm_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ras_slurm_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([ras_slurm_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([ras_slurm_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ras_slurm_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([ras_slurm_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([ras_slurm_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ras_slurm_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ras_slurm_DSO], [test "$BUILD_ras_slurm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ras_slurm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ras_slurm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ras_slurm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ras_slurm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ras_slurm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ras_slurm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ras_slurm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ras_slurm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/ras/tm/configure.m4:22: MCA_ras_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/ras/tm/configure.m4:22: MCA_ras_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/ras/tm/configure.m4:22: MCA_ras_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/ras/tm/configure.m4:22: MCA_ras_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/ras/tm/configure.m4:22: MCA_ras_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/ras/tm/configure.m4:22: MCA_ras_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_tm.m4:41: OMPI_CHECK_TM is expanded from... ++orte/mca/ras/tm/configure.m4:22: MCA_ras_tm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_SUBST([ras_tm_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([ras_tm_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ras_tm_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([ras_tm_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([ras_tm_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ras_tm_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([ras_tm_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([ras_tm_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^ras_tm_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_ras_tm_DSO], [test "$BUILD_ras_tm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ras_tm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ras_tm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ras_tm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_ras_tm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_ras_tm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_ras_tm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ras_tm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_ras_tm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_ras_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_ras_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ras_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_ras_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_ras_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ras_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_ras_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_ras_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ras_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_ras_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_ras_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ras_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_ras_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_ras_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ras_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_ras_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_ras_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ras_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_ras_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_ras_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ras_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_rmaps_rank_file_DSO], [test "$BUILD_rmaps_rank_file_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_rmaps_rank_file_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_rmaps_rank_file_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_rmaps_rank_file_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_rmaps_rank_file_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_rmaps_rank_file_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_rmaps_rank_file_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_rmaps_rank_file_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_rmaps_rank_file_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_rmaps_round_robin_DSO], [test "$BUILD_rmaps_round_robin_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_rmaps_round_robin_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_rmaps_round_robin_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_rmaps_round_robin_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_rmaps_round_robin_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_rmaps_round_robin_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_rmaps_round_robin_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_rmaps_round_robin_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_rmaps_round_robin_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_rmaps_seq_DSO], [test "$BUILD_rmaps_seq_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_rmaps_seq_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_rmaps_seq_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_rmaps_seq_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_rmaps_seq_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_rmaps_seq_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_rmaps_seq_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_rmaps_seq_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_rmaps_seq_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_rmaps_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_rmaps_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rmaps_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_rmaps_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_rmaps_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rmaps_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_rmaps_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_rmaps_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rmaps_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_rmaps_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_rmaps_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rmaps_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_rmaps_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_rmaps_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rmaps_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_rmaps_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_rmaps_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rmaps_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_rmaps_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_rmaps_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rmaps_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_rml_oob_DSO], [test "$BUILD_rml_oob_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_rml_oob_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_rml_oob_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_rml_oob_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_rml_oob_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_rml_oob_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_rml_oob_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_rml_oob_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_rml_oob_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_rml_ftrm_DSO], [test "$BUILD_rml_ftrm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_rml_ftrm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_rml_ftrm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_rml_ftrm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_rml_ftrm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_rml_ftrm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_rml_ftrm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_rml_ftrm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_rml_ftrm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_rml_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_rml_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rml_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_rml_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_rml_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rml_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_rml_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_rml_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rml_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_rml_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_rml_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rml_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_rml_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_rml_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rml_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_rml_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_rml_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rml_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_rml_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_rml_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rml_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_routed_binomial_DSO], [test "$BUILD_routed_binomial_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_routed_binomial_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_routed_binomial_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_routed_binomial_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_routed_binomial_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_routed_binomial_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_routed_binomial_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_routed_binomial_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_routed_binomial_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_routed_direct_DSO], [test "$BUILD_routed_direct_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_routed_direct_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_routed_direct_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_routed_direct_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_routed_direct_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_routed_direct_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_routed_direct_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_routed_direct_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_routed_direct_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_routed_linear_DSO], [test "$BUILD_routed_linear_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_routed_linear_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_routed_linear_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_routed_linear_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_routed_linear_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_routed_linear_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_routed_linear_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_routed_linear_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_routed_linear_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_routed_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_routed_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_routed_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_routed_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_routed_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_routed_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_routed_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_routed_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_routed_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_routed_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_routed_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_routed_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_routed_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_routed_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_routed_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_routed_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_routed_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_routed_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_routed_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_routed_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_routed_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_snapc_full_DSO], [test "$BUILD_snapc_full_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_snapc_full_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_snapc_full_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_snapc_full_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_snapc_full_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_snapc_full_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_snapc_full_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_snapc_full_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_snapc_full_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_snapc_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_snapc_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_snapc_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_snapc_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_snapc_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_snapc_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_snapc_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_snapc_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_snapc_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_snapc_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_snapc_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_snapc_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_snapc_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_snapc_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_snapc_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_snapc_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_snapc_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_snapc_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_snapc_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_snapc_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_snapc_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_orte_FRAMEWORKS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_orte_FRAMEWORKS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_orte_FRAMEWORKS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_orte_FRAMEWORKS_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_orte_FRAMEWORKS_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_orte_FRAMEWORKS_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_orte_FRAMEWORK_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_orte_FRAMEWORK_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_orte_FRAMEWORK_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_allocator_basic_DSO], [test "$BUILD_allocator_basic_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_allocator_basic_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_allocator_basic_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_allocator_basic_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_allocator_basic_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_allocator_basic_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_allocator_basic_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_allocator_basic_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_allocator_basic_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_allocator_bucket_DSO], [test "$BUILD_allocator_bucket_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_allocator_bucket_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_allocator_bucket_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_allocator_bucket_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_allocator_bucket_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_allocator_bucket_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_allocator_bucket_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_allocator_bucket_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_allocator_bucket_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_allocator_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_allocator_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_allocator_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_allocator_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_allocator_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_allocator_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_allocator_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_allocator_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_allocator_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_allocator_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_allocator_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_allocator_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_allocator_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_allocator_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_allocator_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_allocator_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_allocator_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_allocator_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_allocator_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_allocator_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_allocator_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_bml_r2_DSO], [test "$BUILD_bml_r2_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_bml_r2_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_bml_r2_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_bml_r2_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_bml_r2_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_bml_r2_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_bml_r2_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_bml_r2_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_bml_r2_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_bml_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_bml_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_bml_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_bml_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_bml_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_bml_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_bml_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_bml_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_bml_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_bml_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_bml_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_bml_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_bml_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_bml_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_bml_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_bml_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_bml_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_bml_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_bml_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_bml_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_bml_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_btl_self_DSO], [test "$BUILD_btl_self_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_btl_self_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_btl_self_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_self_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_btl_self_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_btl_self_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_self_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_self_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_self_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_btl_sm_DSO], [test "$BUILD_btl_sm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_btl_sm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_btl_sm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_sm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_btl_sm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_btl_sm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_sm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_sm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_sm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++ompi/mca/btl/elan/configure.m4:18: OMPI_CHECK_ELAN is expanded from... ++ompi/mca/btl/elan/configure.m4:54: MCA_btl_elan_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++ompi/mca/btl/elan/configure.m4:18: OMPI_CHECK_ELAN is expanded from... ++ompi/mca/btl/elan/configure.m4:54: MCA_btl_elan_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++ompi/mca/btl/elan/configure.m4:18: OMPI_CHECK_ELAN is expanded from... ++ompi/mca/btl/elan/configure.m4:54: MCA_btl_elan_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++ompi/mca/btl/elan/configure.m4:18: OMPI_CHECK_ELAN is expanded from... ++ompi/mca/btl/elan/configure.m4:54: MCA_btl_elan_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++ompi/mca/btl/elan/configure.m4:18: OMPI_CHECK_ELAN is expanded from... ++ompi/mca/btl/elan/configure.m4:54: MCA_btl_elan_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++ompi/mca/btl/elan/configure.m4:18: OMPI_CHECK_ELAN is expanded from... ++ompi/mca/btl/elan/configure.m4:54: MCA_btl_elan_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++ompi/mca/btl/elan/configure.m4:18: OMPI_CHECK_ELAN is expanded from... ++ompi/mca/btl/elan/configure.m4:54: MCA_btl_elan_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++ompi/mca/btl/elan/configure.m4:18: OMPI_CHECK_ELAN is expanded from... ++ompi/mca/btl/elan/configure.m4:54: MCA_btl_elan_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++ompi/mca/btl/elan/configure.m4:18: OMPI_CHECK_ELAN is expanded from... ++ompi/mca/btl/elan/configure.m4:54: MCA_btl_elan_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_elan_CFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_elan_CFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_elan_CFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_elan_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_elan_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_elan_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_elan_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_elan_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_elan_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_elan_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_elan_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_elan_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_btl_elan_DSO], [test "$BUILD_btl_elan_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_btl_elan_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_btl_elan_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_elan_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_btl_elan_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_btl_elan_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_elan_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_elan_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_elan_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_gm.m4:123: OMPI_CHECK_GM is expanded from... ++ompi/mca/btl/gm/configure.m4:24: MCA_btl_gm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_gm.m4:123: OMPI_CHECK_GM is expanded from... ++ompi/mca/btl/gm/configure.m4:24: MCA_btl_gm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_gm.m4:123: OMPI_CHECK_GM is expanded from... ++ompi/mca/btl/gm/configure.m4:24: MCA_btl_gm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_gm.m4:123: OMPI_CHECK_GM is expanded from... ++ompi/mca/btl/gm/configure.m4:24: MCA_btl_gm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_gm.m4:123: OMPI_CHECK_GM is expanded from... ++ompi/mca/btl/gm/configure.m4:24: MCA_btl_gm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_gm.m4:123: OMPI_CHECK_GM is expanded from... ++ompi/mca/btl/gm/configure.m4:24: MCA_btl_gm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_gm.m4:123: OMPI_CHECK_GM is expanded from... ++ompi/mca/btl/gm/configure.m4:24: MCA_btl_gm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_gm.m4:123: OMPI_CHECK_GM is expanded from... ++ompi/mca/btl/gm/configure.m4:24: MCA_btl_gm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_gm.m4:123: OMPI_CHECK_GM is expanded from... ++ompi/mca/btl/gm/configure.m4:24: MCA_btl_gm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++config/ompi_check_gm.m4:21: _OMPI_CHECK_GM_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_gm.m4:123: OMPI_CHECK_GM is expanded from... ++ompi/mca/btl/gm/configure.m4:24: MCA_btl_gm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++config/ompi_check_gm.m4:21: _OMPI_CHECK_GM_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_gm.m4:123: OMPI_CHECK_GM is expanded from... ++ompi/mca/btl/gm/configure.m4:24: MCA_btl_gm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_MCA_BTL_GM_API_VERSION]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_MCA_BTL_GM_API_VERSION$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_MCA_BTL_GM_API_VERSION], [/* Version of the GM API to use */ ++#undef OMPI_MCA_BTL_GM_API_VERSION]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_MCA_BTL_GM_HAVE_RDMA_PUT]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_MCA_BTL_GM_HAVE_RDMA_PUT$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_MCA_BTL_GM_HAVE_RDMA_PUT], [/* Whether we have gm_put() or gm_directed_send_with_callback() */ ++#undef OMPI_MCA_BTL_GM_HAVE_RDMA_PUT]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_MCA_BTL_GM_HAVE_RDMA_GET]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_MCA_BTL_GM_HAVE_RDMA_GET$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_MCA_BTL_GM_HAVE_RDMA_GET], [/* Whether we have get_get() or not */ ++#undef OMPI_MCA_BTL_GM_HAVE_RDMA_GET]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2367: AC_TRY_COMPILE is expanded from... ++config/ompi_check_gm.m4:21: _OMPI_CHECK_GM_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_gm.m4:123: OMPI_CHECK_GM is expanded from... ++ompi/mca/btl/gm/configure.m4:24: MCA_btl_gm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_MCA_BTL_GM_GET_BROKEN]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_MCA_BTL_GM_GET_BROKEN$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_MCA_BTL_GM_GET_BROKEN], [/* The GM build has or not a broker gm_get function */ ++#undef OMPI_MCA_BTL_GM_GET_BROKEN]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_MCA_BTL_GM_SUPPORT_REGISTERING]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_MCA_BTL_GM_SUPPORT_REGISTERING$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_MCA_BTL_GM_SUPPORT_REGISTERING], [/* The OS support or not the virtal page registration */ ++#undef OMPI_MCA_BTL_GM_SUPPORT_REGISTERING]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_gm_CFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_gm_CFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_gm_CFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_gm_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_gm_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_gm_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_gm_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_gm_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_gm_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_gm_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_gm_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_gm_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_btl_gm_DSO], [test "$BUILD_btl_gm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_btl_gm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_btl_gm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_gm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_btl_gm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_btl_gm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_gm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_gm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_gm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/btl/mx/configure.m4:24: MCA_btl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/btl/mx/configure.m4:24: MCA_btl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/btl/mx/configure.m4:24: MCA_btl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/btl/mx/configure.m4:24: MCA_btl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/btl/mx/configure.m4:24: MCA_btl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/btl/mx/configure.m4:24: MCA_btl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/btl/mx/configure.m4:24: MCA_btl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/btl/mx/configure.m4:24: MCA_btl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/btl/mx/configure.m4:24: MCA_btl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_MX_EXTENSIONS_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_MX_EXTENSIONS_H]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_MX_FORGET], [/* Define to 1 if you have the `mx_forget\' function. */ ++#undef HAVE_MX_FORGET]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_MX_REGISTER_UNEXP_HANDLER], [/* Define to 1 if you have the `mx_register_unexp_handler\' function. */ ++#undef HAVE_MX_REGISTER_UNEXP_HANDLER]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([MX_HAVE_MAPPER_STATE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MX_HAVE_MAPPER_STATE$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([MX_HAVE_MAPPER_STATE], [/* MX installation provide access to the mx_open_board and ++ mx__get_mapper_state functions */ ++#undef MX_HAVE_MAPPER_STATE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_mx_CFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_mx_CFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_mx_CFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_mx_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_mx_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_mx_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_mx_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_mx_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_mx_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_mx_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_mx_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_mx_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_btl_mx_DSO], [test "$BUILD_btl_mx_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_btl_mx_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_btl_mx_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_mx_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_btl_mx_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_btl_mx_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_mx_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_mx_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_mx_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/ofud/configure.m4:26: MCA_btl_ofud_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/ofud/configure.m4:26: MCA_btl_ofud_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/ofud/configure.m4:26: MCA_btl_ofud_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/ofud/configure.m4:26: MCA_btl_ofud_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/ofud/configure.m4:26: MCA_btl_ofud_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_FCNTL_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_FCNTL_H]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_SYS_POLL_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_POLL_H]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/ofud/configure.m4:26: MCA_btl_ofud_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/ofud/configure.m4:26: MCA_btl_ofud_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/ofud/configure.m4:26: MCA_btl_ofud_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/ofud/configure.m4:26: MCA_btl_ofud_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/ofud/configure.m4:26: MCA_btl_ofud_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/ofud/configure.m4:26: MCA_btl_ofud_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/ofud/configure.m4:26: MCA_btl_ofud_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_IBV_CREATE_CQ_ARGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_IBV_CREATE_CQ_ARGS$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_IBV_CREATE_CQ_ARGS], [/* Number of arguments to ibv_create_cq */ ++#undef OMPI_IBV_CREATE_CQ_ARGS]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER], [/* Define to 1 if you have the declaration of `IBV_EVENT_CLIENT_REREGISTER\', ++ and to 0 if you don\'t. */ ++#undef HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_IBV_GET_DEVICE_LIST], [/* Define to 1 if you have the `ibv_get_device_list\' function. */ ++#undef HAVE_IBV_GET_DEVICE_LIST]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_IBV_RESIZE_CQ], [/* Define to 1 if you have the `ibv_resize_cq\' function. */ ++#undef HAVE_IBV_RESIZE_CQ]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_IBV_DEVICE_TRANSPORT_TYPE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_STRUCT_IBV_DEVICE_TRANSPORT_TYPE$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_STRUCT_IBV_DEVICE_TRANSPORT_TYPE], [/* Define to 1 if `transport_type\' is member of `struct ibv_device\'. */ ++#undef HAVE_STRUCT_IBV_DEVICE_TRANSPORT_TYPE]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_IBV_CREATE_XRC_RCV_QP], [/* Define to 1 if you have the `ibv_create_xrc_rcv_qp\' function. */ ++#undef HAVE_IBV_CREATE_XRC_RCV_QP]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_RDMA_RDMA_CMA_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_RDMA_RDMA_CMA_H]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_INFINIBAND_CM_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_INFINIBAND_CM_H]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_INFINIBAND_DRIVER_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_INFINIBAND_DRIVER_H]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_CONNECTX_XRC]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_HAVE_CONNECTX_XRC$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_HAVE_CONNECTX_XRC], [/* Enable features required for ConnectX XRC support */ ++#undef OMPI_HAVE_CONNECTX_XRC]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_RDMACM]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_HAVE_RDMACM$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_HAVE_RDMACM], [/* Whether RDMA CM is available or not */ ++#undef OMPI_HAVE_RDMACM]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_IBCM]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_HAVE_IBCM$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_HAVE_IBCM], [/* Whether IB CM is available or not */ ++#undef OMPI_HAVE_IBCM]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_ofud_CFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_ofud_CFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_ofud_CFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_ofud_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_ofud_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_ofud_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_ofud_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_ofud_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_ofud_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_ofud_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_ofud_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_ofud_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_btl_ofud_DSO], [test "$BUILD_btl_ofud_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_btl_ofud_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_btl_ofud_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_ofud_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_btl_ofud_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_btl_ofud_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_ofud_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_ofud_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_ofud_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_FCNTL_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_FCNTL_H]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_SYS_POLL_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_POLL_H]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/openib/configure.m4:34: MCA_btl_openib_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/openib/configure.m4:34: MCA_btl_openib_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/openib/configure.m4:34: MCA_btl_openib_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/openib/configure.m4:34: MCA_btl_openib_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/openib/configure.m4:34: MCA_btl_openib_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/openib/configure.m4:34: MCA_btl_openib_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_openib.m4:30: OMPI_CHECK_OPENIB is expanded from... ++ompi/mca/btl/openib/configure.m4:34: MCA_btl_openib_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_IBV_CREATE_CQ_ARGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_IBV_CREATE_CQ_ARGS$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_IBV_CREATE_CQ_ARGS], [/* Number of arguments to ibv_create_cq */ ++#undef OMPI_IBV_CREATE_CQ_ARGS]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER], [/* Define to 1 if you have the declaration of `IBV_EVENT_CLIENT_REREGISTER\', ++ and to 0 if you don\'t. */ ++#undef HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_DECL_IBV_EVENT_CLIENT_REREGISTER$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_IBV_GET_DEVICE_LIST], [/* Define to 1 if you have the `ibv_get_device_list\' function. */ ++#undef HAVE_IBV_GET_DEVICE_LIST]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_IBV_RESIZE_CQ], [/* Define to 1 if you have the `ibv_resize_cq\' function. */ ++#undef HAVE_IBV_RESIZE_CQ]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_IBV_DEVICE_TRANSPORT_TYPE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_STRUCT_IBV_DEVICE_TRANSPORT_TYPE$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_STRUCT_IBV_DEVICE_TRANSPORT_TYPE], [/* Define to 1 if `transport_type\' is member of `struct ibv_device\'. */ ++#undef HAVE_STRUCT_IBV_DEVICE_TRANSPORT_TYPE]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_IBV_CREATE_XRC_RCV_QP], [/* Define to 1 if you have the `ibv_create_xrc_rcv_qp\' function. */ ++#undef HAVE_IBV_CREATE_XRC_RCV_QP]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_RDMA_RDMA_CMA_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_RDMA_RDMA_CMA_H]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_INFINIBAND_CM_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_INFINIBAND_CM_H]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_INFINIBAND_DRIVER_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_INFINIBAND_DRIVER_H]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_CONNECTX_XRC]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_HAVE_CONNECTX_XRC$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_HAVE_CONNECTX_XRC], [/* Enable features required for ConnectX XRC support */ ++#undef OMPI_HAVE_CONNECTX_XRC]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_RDMACM]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_HAVE_RDMACM$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_HAVE_RDMACM], [/* Whether RDMA CM is available or not */ ++#undef OMPI_HAVE_RDMACM]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_IBCM]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_HAVE_IBCM$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_HAVE_IBCM], [/* Whether IB CM is available or not */ ++#undef OMPI_HAVE_IBCM]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_IBV_FORK_INIT], [/* Define to 1 if you have the `ibv_fork_init\' function. */ ++#undef HAVE_IBV_FORK_INIT]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_openib_CFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_openib_CFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_openib_CFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_openib_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_openib_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_openib_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_openib_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_openib_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_openib_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_openib_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_openib_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_openib_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([MCA_btl_openib_have_xrc], [test $should_build -eq 1 -a "x$btl_openib_have_xrc" = "x1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_btl_openib_have_xrc_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_btl_openib_have_xrc_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_openib_have_xrc_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_btl_openib_have_xrc_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_btl_openib_have_xrc_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_openib_have_xrc_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([MCA_btl_openib_have_xrc_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([MCA_btl_openib_have_xrc_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([MCA_btl_openib_have_rdmacm], [test $should_build -eq 1 -a "x$btl_openib_have_rdmacm" = "x1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_btl_openib_have_rdmacm_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_btl_openib_have_rdmacm_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_openib_have_rdmacm_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_btl_openib_have_rdmacm_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_btl_openib_have_rdmacm_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_openib_have_rdmacm_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([MCA_btl_openib_have_rdmacm_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([MCA_btl_openib_have_rdmacm_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([MCA_btl_openib_have_ibcm], [test $should_build -eq 1 -a "x$btl_openib_have_ibcm" = "x1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_btl_openib_have_ibcm_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_btl_openib_have_ibcm_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_openib_have_ibcm_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_btl_openib_have_ibcm_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_btl_openib_have_ibcm_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_openib_have_ibcm_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([MCA_btl_openib_have_ibcm_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([MCA_btl_openib_have_ibcm_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_btl_openib_DSO], [test "$BUILD_btl_openib_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_btl_openib_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_btl_openib_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_openib_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_btl_openib_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_btl_openib_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_openib_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_openib_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_openib_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_portals.m4:25: OMPI_CHECK_PORTALS is expanded from... ++ompi/mca/btl/portals/configure.m4:24: MCA_btl_portals_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_check_portals.m4:25: OMPI_CHECK_PORTALS is expanded from... ++ompi/mca/btl/portals/configure.m4:24: MCA_btl_portals_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_portals.m4:25: OMPI_CHECK_PORTALS is expanded from... ++ompi/mca/btl/portals/configure.m4:24: MCA_btl_portals_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_PORTALS_HAVE_EVENT_UNLINK]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PORTALS_HAVE_EVENT_UNLINK$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_PORTALS_HAVE_EVENT_UNLINK], [/* Does Portals send a PTL_EVENT_UNLINK event */ ++#undef OMPI_PORTALS_HAVE_EVENT_UNLINK]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_PORTALS_UTCP]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PORTALS_UTCP$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_PORTALS_UTCP], [/* Use the UTCP reference implementation of Portals */ ++#undef OMPI_PORTALS_UTCP]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_PORTALS_CRAYXT3]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PORTALS_CRAYXT3$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_PORTALS_CRAYXT3], [/* Use the Cray XT-3 implementation of Portals */ ++#undef OMPI_PORTALS_CRAYXT3]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_PORTALS_CRAYXT3_MODEX]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PORTALS_CRAYXT3_MODEX$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_PORTALS_CRAYXT3_MODEX], [/* Use the Cray XT-3 implementation of Portals using Modex */ ++#undef OMPI_PORTALS_CRAYXT3_MODEX]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_portals_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_portals_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_portals_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_portals_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_portals_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_portals_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_portals_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_portals_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_portals_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_btl_portals_DSO], [test "$BUILD_btl_portals_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_btl_portals_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_btl_portals_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_portals_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_btl_portals_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_btl_portals_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_portals_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_portals_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_portals_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_SOCKADDR_IN]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^HAVE_STRUCT_SOCKADDR_IN$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_STRUCT_SOCKADDR_IN], [/* Define to 1 if the system has the type `struct sockaddr_in\'. */ ++#undef HAVE_STRUCT_SOCKADDR_IN]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_btl_tcp_DSO], [test "$BUILD_btl_tcp_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_btl_tcp_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_btl_tcp_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_tcp_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_btl_tcp_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_btl_tcp_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_tcp_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_tcp_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_tcp_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_udapl.m4:27: OMPI_CHECK_UDAPL is expanded from... ++ompi/mca/btl/udapl/configure.m4:24: MCA_btl_udapl_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_udapl.m4:27: OMPI_CHECK_UDAPL is expanded from... ++ompi/mca/btl/udapl/configure.m4:24: MCA_btl_udapl_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_udapl.m4:27: OMPI_CHECK_UDAPL is expanded from... ++ompi/mca/btl/udapl/configure.m4:24: MCA_btl_udapl_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_udapl.m4:27: OMPI_CHECK_UDAPL is expanded from... ++ompi/mca/btl/udapl/configure.m4:24: MCA_btl_udapl_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_udapl.m4:27: OMPI_CHECK_UDAPL is expanded from... ++ompi/mca/btl/udapl/configure.m4:24: MCA_btl_udapl_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_udapl.m4:27: OMPI_CHECK_UDAPL is expanded from... ++ompi/mca/btl/udapl/configure.m4:24: MCA_btl_udapl_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_udapl.m4:27: OMPI_CHECK_UDAPL is expanded from... ++ompi/mca/btl/udapl/configure.m4:24: MCA_btl_udapl_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_udapl.m4:27: OMPI_CHECK_UDAPL is expanded from... ++ompi/mca/btl/udapl/configure.m4:24: MCA_btl_udapl_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_udapl.m4:27: OMPI_CHECK_UDAPL is expanded from... ++ompi/mca/btl/udapl/configure.m4:24: MCA_btl_udapl_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_udapl_CFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_udapl_CFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_udapl_CFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_udapl_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_udapl_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_udapl_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_udapl_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_udapl_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_udapl_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([btl_udapl_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([btl_udapl_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^btl_udapl_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_btl_udapl_DSO], [test "$BUILD_btl_udapl_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_btl_udapl_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_btl_udapl_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_udapl_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_btl_udapl_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_btl_udapl_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_btl_udapl_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_udapl_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_btl_udapl_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_btl_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_btl_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_btl_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_btl_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_btl_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_btl_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_btl_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_btl_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_btl_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_btl_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_btl_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_btl_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_btl_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_btl_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_btl_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_coll_basic_DSO], [test "$BUILD_coll_basic_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_coll_basic_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_coll_basic_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_coll_basic_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_coll_basic_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_coll_basic_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_coll_basic_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_coll_basic_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_coll_basic_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_coll_hierarch_DSO], [test "$BUILD_coll_hierarch_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_coll_hierarch_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_coll_hierarch_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_coll_hierarch_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_coll_hierarch_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_coll_hierarch_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_coll_hierarch_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_coll_hierarch_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_coll_hierarch_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_coll_inter_DSO], [test "$BUILD_coll_inter_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_coll_inter_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_coll_inter_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_coll_inter_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_coll_inter_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_coll_inter_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_coll_inter_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_coll_inter_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_coll_inter_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_coll_self_DSO], [test "$BUILD_coll_self_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_coll_self_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_coll_self_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_coll_self_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_coll_self_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_coll_self_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_coll_self_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_coll_self_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_coll_self_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_coll_sm_DSO], [test "$BUILD_coll_sm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_coll_sm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_coll_sm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_coll_sm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_coll_sm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_coll_sm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_coll_sm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_coll_sm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_coll_sm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_coll_tuned_DSO], [test "$BUILD_coll_tuned_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_coll_tuned_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_coll_tuned_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_coll_tuned_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_coll_tuned_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_coll_tuned_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_coll_tuned_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_coll_tuned_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_coll_tuned_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_coll_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_coll_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_coll_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_coll_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_coll_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_coll_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_coll_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_coll_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_coll_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_coll_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_coll_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_coll_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_coll_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_coll_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_coll_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_coll_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_coll_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_coll_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_coll_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_coll_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_coll_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_common_sm_DSO], [test "$BUILD_common_sm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_common_sm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_common_sm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_common_sm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_common_sm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_common_sm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_common_sm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_common_sm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_common_sm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/common/mx/configure.m4:24: MCA_common_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/common/mx/configure.m4:24: MCA_common_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/common/mx/configure.m4:24: MCA_common_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/common/mx/configure.m4:24: MCA_common_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/common/mx/configure.m4:24: MCA_common_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/common/mx/configure.m4:24: MCA_common_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/common/mx/configure.m4:24: MCA_common_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_MX_EXTENSIONS_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_MX_EXTENSIONS_H]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_MX_FORGET], [/* Define to 1 if you have the `mx_forget\' function. */ ++#undef HAVE_MX_FORGET]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_MX_REGISTER_UNEXP_HANDLER], [/* Define to 1 if you have the `mx_register_unexp_handler\' function. */ ++#undef HAVE_MX_REGISTER_UNEXP_HANDLER]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([MX_HAVE_MAPPER_STATE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MX_HAVE_MAPPER_STATE$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([MX_HAVE_MAPPER_STATE], [/* MX installation provide access to the mx_open_board and ++ mx__get_mapper_state functions */ ++#undef MX_HAVE_MAPPER_STATE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([common_mx_CFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([common_mx_CFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^common_mx_CFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([common_mx_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([common_mx_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^common_mx_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([common_mx_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([common_mx_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^common_mx_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([common_mx_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([common_mx_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^common_mx_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_common_mx_DSO], [test "$BUILD_common_mx_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_common_mx_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_common_mx_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_common_mx_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_common_mx_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_common_mx_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_common_mx_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_common_mx_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_common_mx_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_check_portals.m4:25: OMPI_CHECK_PORTALS is expanded from... ++ompi/mca/common/portals/configure.m4:24: MCA_common_portals_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_PORTALS_HAVE_EVENT_UNLINK]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PORTALS_HAVE_EVENT_UNLINK$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_PORTALS_HAVE_EVENT_UNLINK], [/* Does Portals send a PTL_EVENT_UNLINK event */ ++#undef OMPI_PORTALS_HAVE_EVENT_UNLINK]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_PORTALS_UTCP]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PORTALS_UTCP$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_PORTALS_UTCP], [/* Use the UTCP reference implementation of Portals */ ++#undef OMPI_PORTALS_UTCP]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_PORTALS_CRAYXT3]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PORTALS_CRAYXT3$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_PORTALS_CRAYXT3], [/* Use the Cray XT-3 implementation of Portals */ ++#undef OMPI_PORTALS_CRAYXT3]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_PORTALS_CRAYXT3_MODEX]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PORTALS_CRAYXT3_MODEX$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_PORTALS_CRAYXT3_MODEX], [/* Use the Cray XT-3 implementation of Portals using Modex */ ++#undef OMPI_PORTALS_CRAYXT3_MODEX]) ++m4trace:configure.ac:1032: -1- AC_SUBST([common_portals_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([common_portals_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^common_portals_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([common_portals_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([common_portals_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^common_portals_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([common_portals_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([common_portals_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^common_portals_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_common_portals_DSO], [test "$BUILD_common_portals_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_common_portals_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_common_portals_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_common_portals_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_common_portals_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_common_portals_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_common_portals_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_common_portals_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_common_portals_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_common_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_common_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_common_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_common_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_common_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_common_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_common_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_common_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_common_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_common_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_common_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_common_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_common_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_common_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_common_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_common_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_common_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_common_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_common_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_common_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_common_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_crcp_bkmrk_DSO], [test "$BUILD_crcp_bkmrk_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_crcp_bkmrk_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_crcp_bkmrk_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_crcp_bkmrk_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_crcp_bkmrk_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_crcp_bkmrk_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_crcp_bkmrk_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_crcp_bkmrk_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_crcp_bkmrk_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_crcp_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_crcp_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crcp_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_crcp_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_crcp_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crcp_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_crcp_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_crcp_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crcp_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_crcp_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_crcp_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crcp_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_crcp_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_crcp_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crcp_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_crcp_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_crcp_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crcp_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_crcp_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_crcp_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_crcp_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_dpm_orte_DSO], [test "$BUILD_dpm_orte_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_dpm_orte_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_dpm_orte_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_dpm_orte_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_dpm_orte_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_dpm_orte_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_dpm_orte_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_dpm_orte_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_dpm_orte_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_dpm_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_dpm_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_dpm_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_dpm_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_dpm_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_dpm_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_dpm_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_dpm_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_dpm_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_dpm_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_dpm_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_dpm_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_dpm_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_dpm_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_dpm_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_dpm_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_dpm_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_dpm_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_dpm_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_dpm_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_dpm_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++ompi/mca/io/configure.m4:14: MCA_io_CONFIG is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++ompi/mca/io/romio/configure.m4:31: MCA_io_romio_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++ompi/mca/io/configure.m4:14: MCA_io_CONFIG is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++ompi/mca/io/romio/configure.m4:31: MCA_io_romio_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++ompi/mca/io/configure.m4:14: MCA_io_CONFIG is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([MCA_io_romio_USER_CONFIGURE_FLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_io_romio_USER_CONFIGURE_FLAGS$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([MCA_io_romio_USER_CONFIGURE_FLAGS], [/* Set of user-defined configure flags given to ROMIOs configure script via ++ --with-io-romio-flags */ ++#undef MCA_io_romio_USER_CONFIGURE_FLAGS]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([MCA_io_romio_COMPLETE_CONFIGURE_FLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_io_romio_COMPLETE_CONFIGURE_FLAGS$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([MCA_io_romio_COMPLETE_CONFIGURE_FLAGS], [/* Complete set of command line arguments given to ROMIOs configure script */ ++#undef MCA_io_romio_COMPLETE_CONFIGURE_FLAGS]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([MCA_io_romio_SHOULD_BUILD], [test $should_build -eq 1]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_io_romio_SHOULD_BUILD_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_io_romio_SHOULD_BUILD_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_io_romio_SHOULD_BUILD_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_io_romio_SHOULD_BUILD_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_io_romio_SHOULD_BUILD_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_io_romio_SHOULD_BUILD_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([MCA_io_romio_SHOULD_BUILD_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([MCA_io_romio_SHOULD_BUILD_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_io_romio_DSO], [test "$BUILD_io_romio_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_io_romio_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_io_romio_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_io_romio_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_io_romio_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_io_romio_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_io_romio_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_io_romio_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_io_romio_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_io_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_io_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_io_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_io_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_io_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_io_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_io_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_io_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_io_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_io_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_io_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_io_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_io_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_io_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_io_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_io_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_io_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_io_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_io_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_io_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_io_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_PROVIDE_MPI_FILE_INTERFACE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PROVIDE_MPI_FILE_INTERFACE$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_PROVIDE_MPI_FILE_INTERFACE], [/* Whether OMPI should provide MPI File interface */ ++#undef OMPI_PROVIDE_MPI_FILE_INTERFACE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_PROVIDE_MPI_FILE_INTERFACE], [test "$define_mpi_io" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_PROVIDE_MPI_FILE_INTERFACE_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_PROVIDE_MPI_FILE_INTERFACE_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PROVIDE_MPI_FILE_INTERFACE_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_PROVIDE_MPI_FILE_INTERFACE_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_MPIF_MPI_IO_INCLUDE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_MPIF_MPI_IO_INCLUDE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_MPIF_MPI_IO_INCLUDE$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_mpool_fake_DSO], [test "$BUILD_mpool_fake_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_mpool_fake_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_mpool_fake_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_mpool_fake_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_mpool_fake_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_mpool_fake_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_mpool_fake_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_mpool_fake_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_mpool_fake_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_mpool_rdma_DSO], [test "$BUILD_mpool_rdma_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_mpool_rdma_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_mpool_rdma_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_mpool_rdma_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_mpool_rdma_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_mpool_rdma_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_mpool_rdma_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_mpool_rdma_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_mpool_rdma_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_mpool_sm_DSO], [test "$BUILD_mpool_sm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_mpool_sm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_mpool_sm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_mpool_sm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_mpool_sm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_mpool_sm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_mpool_sm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_mpool_sm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_mpool_sm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_mpool_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_mpool_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mpool_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_mpool_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_mpool_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mpool_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_mpool_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_mpool_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mpool_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_mpool_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_mpool_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mpool_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_mpool_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_mpool_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mpool_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_mpool_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_mpool_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mpool_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_mpool_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_mpool_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mpool_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/mtl/mx/configure.m4:24: MCA_mtl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/mtl/mx/configure.m4:24: MCA_mtl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/mtl/mx/configure.m4:24: MCA_mtl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/mtl/mx/configure.m4:24: MCA_mtl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/mtl/mx/configure.m4:24: MCA_mtl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/mtl/mx/configure.m4:24: MCA_mtl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_mx.m4:66: OMPI_CHECK_MX is expanded from... ++ompi/mca/mtl/mx/configure.m4:24: MCA_mtl_mx_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_MX_EXTENSIONS_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_MX_EXTENSIONS_H]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_MX_FORGET], [/* Define to 1 if you have the `mx_forget\' function. */ ++#undef HAVE_MX_FORGET]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([HAVE_MX_REGISTER_UNEXP_HANDLER], [/* Define to 1 if you have the `mx_register_unexp_handler\' function. */ ++#undef HAVE_MX_REGISTER_UNEXP_HANDLER]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([MX_HAVE_MAPPER_STATE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MX_HAVE_MAPPER_STATE$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([MX_HAVE_MAPPER_STATE], [/* MX installation provide access to the mx_open_board and ++ mx__get_mapper_state functions */ ++#undef MX_HAVE_MAPPER_STATE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([mtl_mx_CFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([mtl_mx_CFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^mtl_mx_CFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([mtl_mx_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([mtl_mx_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^mtl_mx_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([mtl_mx_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([mtl_mx_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^mtl_mx_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([mtl_mx_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([mtl_mx_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^mtl_mx_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_mtl_mx_DSO], [test "$BUILD_mtl_mx_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_mtl_mx_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_mtl_mx_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_mtl_mx_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_mtl_mx_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_mtl_mx_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_mtl_mx_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_mtl_mx_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_mtl_mx_DSO_FALSE]) ++m4trace:configure.ac:1032: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_check_portals.m4:25: OMPI_CHECK_PORTALS is expanded from... ++ompi/mca/mtl/portals/configure.m4:43: MCA_mtl_portals_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_PORTALS_HAVE_EVENT_UNLINK]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PORTALS_HAVE_EVENT_UNLINK$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_PORTALS_HAVE_EVENT_UNLINK], [/* Does Portals send a PTL_EVENT_UNLINK event */ ++#undef OMPI_PORTALS_HAVE_EVENT_UNLINK]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_PORTALS_UTCP]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PORTALS_UTCP$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_PORTALS_UTCP], [/* Use the UTCP reference implementation of Portals */ ++#undef OMPI_PORTALS_UTCP]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_PORTALS_CRAYXT3]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PORTALS_CRAYXT3$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_PORTALS_CRAYXT3], [/* Use the Cray XT-3 implementation of Portals */ ++#undef OMPI_PORTALS_CRAYXT3]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([OMPI_PORTALS_CRAYXT3_MODEX]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_PORTALS_CRAYXT3_MODEX$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([OMPI_PORTALS_CRAYXT3_MODEX], [/* Use the Cray XT-3 implementation of Portals using Modex */ ++#undef OMPI_PORTALS_CRAYXT3_MODEX]) ++m4trace:configure.ac:1032: -1- AC_SUBST([mtl_portals_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([mtl_portals_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^mtl_portals_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([mtl_portals_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([mtl_portals_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^mtl_portals_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([mtl_portals_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([mtl_portals_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^mtl_portals_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_mtl_portals_DSO], [test "$BUILD_mtl_portals_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_mtl_portals_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_mtl_portals_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_mtl_portals_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_mtl_portals_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_mtl_portals_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_mtl_portals_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_mtl_portals_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_mtl_portals_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_psm.m4:27: OMPI_CHECK_PSM is expanded from... ++ompi/mca/mtl/psm/configure.m4:24: MCA_mtl_psm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++config/ompi_check_psm.m4:27: OMPI_CHECK_PSM is expanded from... ++ompi/mca/mtl/psm/configure.m4:24: MCA_mtl_psm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_psm.m4:27: OMPI_CHECK_PSM is expanded from... ++ompi/mca/mtl/psm/configure.m4:24: MCA_mtl_psm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_psm.m4:27: OMPI_CHECK_PSM is expanded from... ++ompi/mca/mtl/psm/configure.m4:24: MCA_mtl_psm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_psm.m4:27: OMPI_CHECK_PSM is expanded from... ++ompi/mca/mtl/psm/configure.m4:24: MCA_mtl_psm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/headers.m4:87: AC_CHECK_HEADER is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_psm.m4:27: OMPI_CHECK_PSM is expanded from... ++ompi/mca/mtl/psm/configure.m4:24: MCA_mtl_psm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_psm.m4:27: OMPI_CHECK_PSM is expanded from... ++ompi/mca/mtl/psm/configure.m4:24: MCA_mtl_psm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_psm.m4:27: OMPI_CHECK_PSM is expanded from... ++ompi/mca/mtl/psm/configure.m4:24: MCA_mtl_psm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- _m4_warn([obsolete], [The macro `AC_VERBOSE' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2097: AC_VERBOSE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:60: _OMPI_CHECK_PACKAGE_LIB is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_package.m4:23: _OMPI_CHECK_PACKAGE_HEADER is expanded from... ++config/ompi_check_package.m4:145: OMPI_CHECK_PACKAGE is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_check_psm.m4:27: OMPI_CHECK_PSM is expanded from... ++ompi/mca/mtl/psm/configure.m4:24: MCA_mtl_psm_CONFIG is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++config/ompi_mca.m4:540: MCA_CONFIGURE_M4_CONFIG_COMPONENT is expanded from... ++config/ompi_mca.m4:326: MCA_CONFIGURE_FRAMEWORK is expanded from... ++config/ompi_mca.m4:247: MCA_CONFIGURE_PROJECT is expanded from... ++config/ompi_mca.m4:37: OMPI_MCA is expanded from... ++configure.ac:1032: the top level]) ++m4trace:configure.ac:1032: -1- AC_SUBST([mtl_psm_CFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([mtl_psm_CFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^mtl_psm_CFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([mtl_psm_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([mtl_psm_CPPFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^mtl_psm_CPPFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([mtl_psm_LDFLAGS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([mtl_psm_LDFLAGS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^mtl_psm_LDFLAGS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([mtl_psm_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([mtl_psm_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^mtl_psm_LIBS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_mtl_psm_DSO], [test "$BUILD_mtl_psm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_mtl_psm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_mtl_psm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_mtl_psm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_mtl_psm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_mtl_psm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_mtl_psm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_mtl_psm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_mtl_psm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_mtl_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_mtl_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mtl_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_mtl_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_mtl_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mtl_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_mtl_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_mtl_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mtl_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_mtl_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_mtl_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mtl_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_mtl_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_mtl_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mtl_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_mtl_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_mtl_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mtl_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_mtl_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_mtl_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mtl_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_osc_pt2pt_DSO], [test "$BUILD_osc_pt2pt_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_osc_pt2pt_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_osc_pt2pt_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_osc_pt2pt_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_osc_pt2pt_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_osc_pt2pt_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_osc_pt2pt_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_osc_pt2pt_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_osc_pt2pt_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_osc_rdma_DSO], [test "$BUILD_osc_rdma_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_osc_rdma_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_osc_rdma_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_osc_rdma_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_osc_rdma_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_osc_rdma_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_osc_rdma_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_osc_rdma_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_osc_rdma_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_osc_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_osc_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_osc_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_osc_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_osc_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_osc_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_osc_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_osc_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_osc_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_osc_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_osc_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_osc_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_osc_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_osc_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_osc_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_osc_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_osc_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_osc_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_osc_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_osc_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_osc_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_pml_cm_DSO], [test "$BUILD_pml_cm_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_pml_cm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_pml_cm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_pml_cm_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_pml_cm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_pml_cm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_pml_cm_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_pml_cm_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_pml_cm_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_pml_ob1_DSO], [test "$BUILD_pml_ob1_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_pml_ob1_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_pml_ob1_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_pml_ob1_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_pml_ob1_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_pml_ob1_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_pml_ob1_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_pml_ob1_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_pml_ob1_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_pml_crcpw_DSO], [test "$BUILD_pml_crcpw_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_pml_crcpw_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_pml_crcpw_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_pml_crcpw_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_pml_crcpw_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_pml_crcpw_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_pml_crcpw_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_pml_crcpw_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_pml_crcpw_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_vprotocol_pessimist_DSO], [test "$BUILD_vprotocol_pessimist_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_vprotocol_pessimist_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_vprotocol_pessimist_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_vprotocol_pessimist_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_vprotocol_pessimist_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_vprotocol_pessimist_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_vprotocol_pessimist_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_vprotocol_pessimist_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_vprotocol_pessimist_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_vprotocol_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_vprotocol_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_vprotocol_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_vprotocol_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_vprotocol_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_vprotocol_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_vprotocol_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_vprotocol_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_vprotocol_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_vprotocol_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_vprotocol_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_vprotocol_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_vprotocol_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_vprotocol_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_vprotocol_pessimist_DSO], [test "\$BUILD_vprotocol_pessimist_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_vprotocol_pessimist_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_vprotocol_pessimist_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_vprotocol_pessimist_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_vprotocol_pessimist_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_vprotocol_pessimist_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_vprotocol_pessimist_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_vprotocol_pessimist_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_vprotocol_pessimist_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_vprotocol_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_vprotocol_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_vprotocol_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_vprotocol_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_vprotocol_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_vprotocol_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_vprotocol_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_vprotocol_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_vprotocol_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_vprotocol_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_vprotocol_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_vprotocol_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_vprotocol_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_vprotocol_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_vprotocol_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_pml_v_DSO], [test "$BUILD_pml_v_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_pml_v_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_pml_v_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_pml_v_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_pml_v_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_pml_v_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_pml_v_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_pml_v_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_pml_v_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_pml_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_pml_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pml_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_pml_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_pml_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pml_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_pml_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_pml_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pml_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_pml_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_pml_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pml_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_pml_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_pml_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pml_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_pml_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_pml_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pml_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_pml_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_pml_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pml_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_pubsub_orte_DSO], [test "$BUILD_pubsub_orte_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_pubsub_orte_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_pubsub_orte_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_pubsub_orte_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_pubsub_orte_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_pubsub_orte_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_pubsub_orte_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_pubsub_orte_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_pubsub_orte_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_pubsub_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_pubsub_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pubsub_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_pubsub_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_pubsub_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pubsub_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_pubsub_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_pubsub_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pubsub_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_pubsub_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_pubsub_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pubsub_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_pubsub_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_pubsub_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pubsub_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_pubsub_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_pubsub_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pubsub_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_pubsub_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_pubsub_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pubsub_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_rcache_vma_DSO], [test "$BUILD_rcache_vma_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_rcache_vma_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_rcache_vma_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_rcache_vma_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_rcache_vma_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_rcache_vma_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_rcache_vma_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_rcache_vma_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_rcache_vma_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_rcache_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_rcache_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rcache_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_rcache_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_rcache_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rcache_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_rcache_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_rcache_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rcache_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_rcache_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_rcache_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rcache_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_rcache_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_rcache_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rcache_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_rcache_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_rcache_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rcache_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_rcache_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_rcache_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_rcache_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AM_CONDITIONAL([OMPI_BUILD_topo_unity_DSO], [test "$BUILD_topo_unity_DSO" = "1"]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_topo_unity_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_topo_unity_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_topo_unity_DSO_TRUE$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([OMPI_BUILD_topo_unity_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([OMPI_BUILD_topo_unity_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^OMPI_BUILD_topo_unity_DSO_FALSE$]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_topo_unity_DSO_TRUE]) ++m4trace:configure.ac:1032: -1- _AM_SUBST_NOTMAKE([OMPI_BUILD_topo_unity_DSO_FALSE]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_topo_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_topo_ALL_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_topo_ALL_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_topo_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_topo_STATIC_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_topo_STATIC_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_topo_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_topo_DSO_COMPONENTS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_topo_DSO_COMPONENTS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_topo_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_topo_STATIC_LTLIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_topo_STATIC_LTLIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_topo_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_topo_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_topo_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_topo_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_topo_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_topo_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_topo_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_topo_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_topo_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_ompi_FRAMEWORKS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_ompi_FRAMEWORKS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ompi_FRAMEWORKS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_ompi_FRAMEWORKS_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_ompi_FRAMEWORKS_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ompi_FRAMEWORKS_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_ompi_FRAMEWORK_LIBS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_ompi_FRAMEWORK_LIBS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_ompi_FRAMEWORK_LIBS$]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_pml_DIRECT_CALL_HEADER]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_pml_DIRECT_CALL_HEADER]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pml_DIRECT_CALL_HEADER$]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([MCA_pml_DIRECT_CALL]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pml_DIRECT_CALL$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([MCA_pml_DIRECT_CALL], [/* Defined to 1 if pml should use direct calls instead of components */ ++#undef MCA_pml_DIRECT_CALL]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([MCA_pml_DIRECT_CALL_COMPONENT]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pml_DIRECT_CALL_COMPONENT$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([MCA_pml_DIRECT_CALL_COMPONENT], [/* name of component to use for direct calls, if MCA_pml_DIRECT_CALL is 1 */ ++#undef MCA_pml_DIRECT_CALL_COMPONENT]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([MCA_pml_DIRECT_CALL_HEADER]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_pml_DIRECT_CALL_HEADER$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([MCA_pml_DIRECT_CALL_HEADER], [/* Header pml includes to be direct called */ ++#undef MCA_pml_DIRECT_CALL_HEADER]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_mtl_DIRECT_CALL_HEADER]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_mtl_DIRECT_CALL_HEADER]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mtl_DIRECT_CALL_HEADER$]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([MCA_mtl_DIRECT_CALL]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mtl_DIRECT_CALL$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([MCA_mtl_DIRECT_CALL], [/* Defined to 1 if mtl should use direct calls instead of components */ ++#undef MCA_mtl_DIRECT_CALL]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([MCA_mtl_DIRECT_CALL_COMPONENT]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mtl_DIRECT_CALL_COMPONENT$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([MCA_mtl_DIRECT_CALL_COMPONENT], [/* name of component to use for direct calls, if MCA_mtl_DIRECT_CALL is 1 */ ++#undef MCA_mtl_DIRECT_CALL_COMPONENT]) ++m4trace:configure.ac:1032: -1- AC_DEFINE_TRACE_LITERAL([MCA_mtl_DIRECT_CALL_HEADER]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_mtl_DIRECT_CALL_HEADER$]) ++m4trace:configure.ac:1032: -1- AH_OUTPUT([MCA_mtl_DIRECT_CALL_HEADER], [/* Header mtl includes to be direct called */ ++#undef MCA_mtl_DIRECT_CALL_HEADER]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/backtrace/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/backtrace/darwin/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/backtrace/execinfo/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/backtrace/none/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/backtrace/printstack/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/carto/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/carto/auto_detect/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/carto/file/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/crs/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/crs/blcr/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/crs/none/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/crs/self/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/installdirs/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/installdirs/config/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/installdirs/env/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/maffinity/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/maffinity/first_use/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/maffinity/libnuma/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/memchecker/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/memchecker/valgrind/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/memcpy/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/memory/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/memory/malloc_solaris/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/memory/mallopt/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/memory/ptmalloc2/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/paffinity/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/paffinity/darwin/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/paffinity/linux/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/paffinity/posix/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/paffinity/solaris/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/paffinity/windows/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/timer/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/timer/aix/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/timer/altix/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/timer/catamount/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/timer/darwin/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/timer/linux/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/timer/solaris/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([opal/mca/timer/windows/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/errmgr/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/errmgr/default/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/ess/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/ess/alps/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/ess/cnos/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/ess/env/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/ess/hnp/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/ess/lsf/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/ess/portals_utcp/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/ess/singleton/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/ess/slurm/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/ess/tool/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/filem/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/filem/rsh/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/grpcomm/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/grpcomm/bad/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/grpcomm/basic/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/grpcomm/cnos/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/iof/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/iof/hnp/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/iof/orted/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/iof/tool/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/notifier/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/notifier/syslog/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/odls/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/odls/default/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/oob/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/oob/tcp/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/plm/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/plm/alps/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/plm/lsf/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/plm/rsh/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/plm/slurm/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/plm/tm/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/plm/xgrid/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/ras/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/ras/alps/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/ras/gridengine/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/ras/loadleveler/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/ras/lsf/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/ras/slurm/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/ras/tm/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/rmaps/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/rmaps/rank_file/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/rmaps/round_robin/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/rmaps/seq/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/rml/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/rml/ftrm/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/rml/oob/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/routed/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/routed/binomial/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/routed/direct/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/routed/linear/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/snapc/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([orte/mca/snapc/full/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/allocator/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/allocator/basic/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/allocator/bucket/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/bml/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/bml/r2/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/btl/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/btl/elan/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/btl/gm/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/btl/mx/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/btl/ofud/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/btl/openib/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/btl/portals/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/btl/self/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/btl/sm/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/btl/tcp/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/btl/udapl/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/coll/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/coll/basic/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/coll/hierarch/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/coll/inter/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/coll/self/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/coll/sm/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/coll/tuned/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/common/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/common/mx/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/common/portals/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/common/sm/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/crcp/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/crcp/bkmrk/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/dpm/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/dpm/orte/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/io/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/io/romio/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/mpool/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/mpool/fake/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/mpool/rdma/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/mpool/sm/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/mtl/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/mtl/mx/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/mtl/portals/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/mtl/psm/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/osc/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/osc/pt2pt/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/osc/rdma/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/pml/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/pml/cm/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/pml/crcpw/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/pml/ob1/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/pml/v/mca/vprotocol/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/pml/v/mca/vprotocol/pessimist/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/pml/v/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/pubsub/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/pubsub/orte/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/rcache/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/rcache/vma/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/topo/Makefile]) ++m4trace:configure.ac:1032: -1- AC_CONFIG_FILES([ompi/mca/topo/unity/Makefile]) ++m4trace:configure.ac:1032: -1- AC_SUBST([MCA_PROJECT_SUBDIRS]) ++m4trace:configure.ac:1032: -1- AC_SUBST_TRACE([MCA_PROJECT_SUBDIRS]) ++m4trace:configure.ac:1032: -1- m4_pattern_allow([^MCA_PROJECT_SUBDIRS$]) ++m4trace:configure.ac:1046: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_check_visibility.m4:24: OMPI_CHECK_VISIBILITY is expanded from... ++configure.ac:1046: the top level]) ++m4trace:configure.ac:1046: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2414: AC_TRY_LINK is expanded from... ++../../lib/m4sugar/m4sh.m4:516: AS_IF is expanded from... ++../../lib/autoconf/general.m4:1898: AC_CACHE_VAL is expanded from... ++../../lib/autoconf/general.m4:1911: AC_CACHE_CHECK is expanded from... ++config/ompi_check_visibility.m4:24: OMPI_CHECK_VISIBILITY is expanded from... ++configure.ac:1046: the top level]) ++m4trace:configure.ac:1046: -1- AC_DEFINE_TRACE_LITERAL([OMPI_C_HAVE_VISIBILITY]) ++m4trace:configure.ac:1046: -1- m4_pattern_allow([^OMPI_C_HAVE_VISIBILITY$]) ++m4trace:configure.ac:1046: -1- AH_OUTPUT([OMPI_C_HAVE_VISIBILITY], [/* Whether C compiler supports -fvisibility */ ++#undef OMPI_C_HAVE_VISIBILITY]) ++m4trace:configure.ac:1054: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1364: AC_ARG_ENABLE is expanded from... ++config/ompi_contrib.m4:34: OMPI_CONTRIB is expanded from... ++configure.ac:1054: the top level]) ++m4trace:configure.ac:1054: -1- m4_include([ompi/contrib/vt/configure.m4]) ++m4trace:configure.ac:1054: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++../../lib/autoconf/general.m4:1382: AC_ARG_WITH is expanded from... ++ompi/contrib/vt/configure.m4:24: OMPI_contrib_vt_CONFIG is expanded from... ++config/ompi_contrib.m4:98: _OMPI_CONTRIB_CONFIGURE is expanded from... ++config/ompi_contrib.m4:34: OMPI_CONTRIB is expanded from... ++configure.ac:1054: the top level]) ++m4trace:configure.ac:1054: -1- AC_CONFIG_FILES([ ++ ompi/contrib/vt/Makefile ++ ompi/contrib/vt/wrappers/Makefile ++ ompi/contrib/vt/wrappers/mpicc-vt-wrapper-data.txt ++ ompi/contrib/vt/wrappers/mpic++-vt-wrapper-data.txt ++ ompi/contrib/vt/wrappers/mpif77-vt-wrapper-data.txt ++ ompi/contrib/vt/wrappers/mpif90-vt-wrapper-data.txt ++ ]) ++m4trace:configure.ac:1054: -1- AC_DEFINE_TRACE_LITERAL([OMPI_ENABLE_CONTRIB_vt]) ++m4trace:configure.ac:1054: -1- m4_pattern_allow([^OMPI_ENABLE_CONTRIB_vt$]) ++m4trace:configure.ac:1054: -1- AH_OUTPUT([OMPI_ENABLE_CONTRIB_vt], [/* Enable contributed software package vt */ ++#undef OMPI_ENABLE_CONTRIB_vt]) ++m4trace:configure.ac:1054: -1- AC_SUBST([OMPI_CONTRIB_SUBDIRS]) ++m4trace:configure.ac:1054: -1- AC_SUBST_TRACE([OMPI_CONTRIB_SUBDIRS]) ++m4trace:configure.ac:1054: -1- m4_pattern_allow([^OMPI_CONTRIB_SUBDIRS$]) ++m4trace:configure.ac:1054: -1- AC_SUBST([OMPI_CONTRIB_DIST_SUBDIRS]) ++m4trace:configure.ac:1054: -1- AC_SUBST_TRACE([OMPI_CONTRIB_DIST_SUBDIRS]) ++m4trace:configure.ac:1054: -1- m4_pattern_allow([^OMPI_CONTRIB_DIST_SUBDIRS$]) ++m4trace:configure.ac:1073: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from... ++config/ompi_setup_libevent.m4:20: OMPI_SETUP_LIBEVENT is expanded from... ++configure.ac:1073: the top level]) ++m4trace:configure.ac:1073: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^STDC_HEADERS$]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */ ++#undef STDC_HEADERS]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_FCNTL_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_FCNTL_H]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_STDARG_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_STDARG_H]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_INTTYPES_H]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_STDINT_H]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_POLL_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_POLL_H]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_SIGNAL_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SIGNAL_H]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_UNISTD_H]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_SYS_EPOLL_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_EPOLL_H]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_SYS_TIME_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_TIME_H]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_SYS_QUEUE_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_QUEUE_H]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_SYS_EVENT_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_EVENT_H]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_SYS_IOCTL_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_IOCTL_H]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_SYS_DEVPOLL_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_SYS_DEVPOLL_H]) ++m4trace:configure.ac:1073: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TAILQFOREACH]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^HAVE_TAILQFOREACH$]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_TAILQFOREACH], [/* Define if TAILQ_FOREACH is defined in */ ++#undef HAVE_TAILQFOREACH]) ++m4trace:configure.ac:1073: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TIMERADD]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^HAVE_TIMERADD$]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_TIMERADD], [/* Define if timeradd is defined in */ ++#undef HAVE_TIMERADD]) ++m4trace:configure.ac:1073: -1- AC_DEFINE_TRACE_LITERAL([TIME_WITH_SYS_TIME]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^TIME_WITH_SYS_TIME$]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([TIME_WITH_SYS_TIME], [/* Define to 1 if you can safely include both and . */ ++#undef TIME_WITH_SYS_TIME]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_GETTIMEOFDAY], [/* Define to 1 if you have the `gettimeofday\' function. */ ++#undef HAVE_GETTIMEOFDAY]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_VASPRINTF], [/* Define to 1 if you have the `vasprintf\' function. */ ++#undef HAVE_VASPRINTF]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_FCNTL], [/* Define to 1 if you have the `fcntl\' function. */ ++#undef HAVE_FCNTL]) ++m4trace:configure.ac:1073: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SETFD]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^HAVE_SETFD$]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_SETFD], [/* Define if F_SETFD is defined in */ ++#undef HAVE_SETFD]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_SELECT], [/* Define to 1 if you have the `select\' function. */ ++#undef HAVE_SELECT]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_POLL], [/* Define to 1 if you have the `poll\' function. */ ++#undef HAVE_POLL]) ++m4trace:configure.ac:1073: -1- AC_DEFINE_TRACE_LITERAL([HAVE_WORKING_POLL]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^HAVE_WORKING_POLL$]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_WORKING_POLL], [/* Whether poll works for file descriptors and devices */ ++#undef HAVE_WORKING_POLL]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_SIGTIMEDWAIT], [/* Define to 1 if you have the `sigtimedwait\' function. */ ++#undef HAVE_SIGTIMEDWAIT]) ++m4trace:configure.ac:1073: -1- AC_DEFINE_TRACE_LITERAL([HAVE_RTSIG]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^HAVE_RTSIG$]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_RTSIG], [/* Define if your system supports POSIX realtime signals */ ++#undef HAVE_RTSIG]) ++m4trace:configure.ac:1073: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++config/ompi_setup_libevent.m4:20: OMPI_SETUP_LIBEVENT is expanded from... ++configure.ac:1073: the top level]) ++m4trace:configure.ac:1073: -1- _m4_warn([cross], [AC_RUN_IFELSE called without default to allow cross compiling], [../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++config/ompi_setup_libevent.m4:20: OMPI_SETUP_LIBEVENT is expanded from... ++configure.ac:1073: the top level]) ++m4trace:configure.ac:1073: -1- AC_DEFINE_TRACE_LITERAL([HAVE_WORKING_RTSIG]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^HAVE_WORKING_RTSIG$]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_WORKING_RTSIG], [/* Define if realtime signals work on pipes */ ++#undef HAVE_WORKING_RTSIG]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_EPOLL_CTL], [/* Define to 1 if you have the `epoll_ctl\' function. */ ++#undef HAVE_EPOLL_CTL]) ++m4trace:configure.ac:1073: -1- _m4_warn([cross], [AC_RUN_IFELSE called without default to allow cross compiling], [../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++config/ompi_setup_libevent.m4:20: OMPI_SETUP_LIBEVENT is expanded from... ++configure.ac:1073: the top level]) ++m4trace:configure.ac:1073: -1- AC_DEFINE_TRACE_LITERAL([HAVE_EPOLL]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^HAVE_EPOLL$]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_EPOLL], [/* Define if your system supports the epoll interface */ ++#undef HAVE_EPOLL]) ++m4trace:configure.ac:1073: -1- _m4_warn([cross], [AC_RUN_IFELSE called without default to allow cross compiling], [../../lib/autoconf/general.m4:2462: AC_RUN_IFELSE is expanded from... ++config/ompi_setup_libevent.m4:20: OMPI_SETUP_LIBEVENT is expanded from... ++configure.ac:1073: the top level]) ++m4trace:configure.ac:1073: -1- AC_DEFINE_TRACE_LITERAL([HAVE_EPOLL]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^HAVE_EPOLL$]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_EPOLL], [/* Define if your system supports the epoll interface */ ++#undef HAVE_EPOLL]) ++m4trace:configure.ac:1073: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DEVPOLL]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^HAVE_DEVPOLL$]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_DEVPOLL], [/* Define if /dev/poll is available */ ++#undef HAVE_DEVPOLL]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_KQUEUE], [/* Define to 1 if you have the `kqueue\' function. */ ++#undef HAVE_KQUEUE]) ++m4trace:configure.ac:1073: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. ++You should run autoupdate.], [../../lib/autoconf/general.m4:2478: AC_TRY_RUN is expanded from... ++config/ompi_setup_libevent.m4:20: OMPI_SETUP_LIBEVENT is expanded from... ++configure.ac:1073: the top level]) ++m4trace:configure.ac:1073: -1- AC_DEFINE_TRACE_LITERAL([HAVE_WORKING_KQUEUE]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^HAVE_WORKING_KQUEUE$]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_WORKING_KQUEUE], [/* Define if kqueue works correctly with pipes */ ++#undef HAVE_WORKING_KQUEUE]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_PORT_CREATE], [/* Define to 1 if you have the `port_create\' function. */ ++#undef HAVE_PORT_CREATE]) ++m4trace:configure.ac:1073: -1- AC_DEFINE_TRACE_LITERAL([HAVE_EVENT_PORTS]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^HAVE_EVENT_PORTS$]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([HAVE_EVENT_PORTS], [/* Define if your system supports event ports */ ++#undef HAVE_EVENT_PORTS]) ++m4trace:configure.ac:1073: -1- AC_DEFINE_TRACE_LITERAL([pid_t]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^pid_t$]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([pid_t], [/* Define to `int\' if does not define. */ ++#undef pid_t]) ++m4trace:configure.ac:1073: -1- AC_DEFINE_TRACE_LITERAL([size_t]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^size_t$]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([size_t], [/* Define to `unsigned int\' if does not define. */ ++#undef size_t]) ++m4trace:configure.ac:1073: -1- AC_DEFINE_TRACE_LITERAL([u_int64_t]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^u_int64_t$]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([u_int64_t], [/* Define to `unsigned long long\' if does not define. */ ++#undef u_int64_t]) ++m4trace:configure.ac:1073: -1- AC_DEFINE_TRACE_LITERAL([u_int32_t]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^u_int32_t$]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([u_int32_t], [/* Define to `unsigned int\' if does not define. */ ++#undef u_int32_t]) ++m4trace:configure.ac:1073: -1- AC_DEFINE_TRACE_LITERAL([u_int16_t]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^u_int16_t$]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([u_int16_t], [/* Define to `unsigned short\' if does not define. */ ++#undef u_int16_t]) ++m4trace:configure.ac:1073: -1- AC_DEFINE_TRACE_LITERAL([u_int8_t]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^u_int8_t$]) ++m4trace:configure.ac:1073: -1- AH_OUTPUT([u_int8_t], [/* Define to `unsigned char\' if does not define. */ ++#undef u_int8_t]) ++m4trace:configure.ac:1073: -1- AC_SUBST([OMPI_LIBEVENT_SOURCES]) ++m4trace:configure.ac:1073: -1- AC_SUBST_TRACE([OMPI_LIBEVENT_SOURCES]) ++m4trace:configure.ac:1073: -1- m4_pattern_allow([^OMPI_LIBEVENT_SOURCES$]) ++m4trace:configure.ac:1093: -1- LT_CONFIG_LTDL_DIR([opal/libltdl], [subproject]) ++m4trace:configure.ac:1093: -1- AC_SUBST([LIBLTDL]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([LIBLTDL]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LIBLTDL$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([LTDLDEPS]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([LTDLDEPS]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LTDLDEPS$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([LTDLINCL]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([LTDLINCL]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LTDLINCL$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([INCLTDL]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([INCLTDL]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^INCLTDL$]) ++m4trace:configure.ac:1093: -1- LT_INIT([dlopen win32-dll]) ++m4trace:configure.ac:1093: -1- m4_pattern_forbid([^_?LT_[A-Z_]+$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$]) ++m4trace:configure.ac:1093: -1- AC_REQUIRE_AUX_FILE([ltmain.sh]) ++m4trace:configure.ac:1093: -1- AC_SUBST([AS]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([AS]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^AS$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([DLLTOOL]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([DLLTOOL]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^DLLTOOL$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([OBJDUMP]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([OBJDUMP]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^OBJDUMP$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([LIBTOOL]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([LIBTOOL]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LIBTOOL$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([SED]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([SED]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^SED$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([SED]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([SED]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^SED$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([GREP]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([GREP]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^GREP$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([LD]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([LD]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LD$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([OBJDUMP]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([OBJDUMP]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^OBJDUMP$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([OBJDUMP]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([OBJDUMP]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^OBJDUMP$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([AR]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([AR]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^AR$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([STRIP]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([STRIP]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^STRIP$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([RANLIB]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([RANLIB]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^RANLIB$]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([LT_OBJDIR]) ++m4trace:configure.ac:1093: -1- AC_DEFINE_TRACE_LITERAL([LT_OBJDIR]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LT_OBJDIR$]) ++m4trace:configure.ac:1093: -1- AH_OUTPUT([LT_OBJDIR], [/* Define to the sub-directory in which libtool stores uninstalled libraries. ++ */ ++#undef LT_OBJDIR]) ++m4trace:configure.ac:1093: -1- AC_SUBST([lt_ECHO]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([lt_ECHO]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^lt_ECHO$]) ++m4trace:configure.ac:1093: -1- LT_SUPPORTED_TAG([CC]) ++m4trace:configure.ac:1093: -1- AC_SUBST([DSYMUTIL]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([DSYMUTIL]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^DSYMUTIL$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([NMEDIT]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([NMEDIT]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^NMEDIT$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([LIPO]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([LIPO]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LIPO$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([OTOOL]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([OTOOL]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^OTOOL$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([OTOOL64]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([OTOOL64]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^OTOOL64$]) ++m4trace:configure.ac:1093: -1- AH_OUTPUT([HAVE_DLFCN_H], [/* Define to 1 if you have the header file. */ ++#undef HAVE_DLFCN_H]) ++m4trace:configure.ac:1093: -1- LT_SUPPORTED_TAG([CXX]) ++m4trace:configure.ac:1093: -1- AC_SUBST([CXX]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([CXX]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^CXX$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([CXXFLAGS]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([CXXFLAGS]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^CXXFLAGS$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([LDFLAGS]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([LDFLAGS]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LDFLAGS$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([LIBS]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([LIBS]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LIBS$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([CPPFLAGS]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([CPPFLAGS]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^CPPFLAGS$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([CXX]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([CXX]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^CXX$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([ac_ct_CXX]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([ac_ct_CXX]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^ac_ct_CXX$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([CXXDEPMODE], [depmode=$am_cv_CXX_dependencies_compiler_type]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([CXXDEPMODE]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^CXXDEPMODE$]) ++m4trace:configure.ac:1093: -1- AM_CONDITIONAL([am__fastdepCXX], [ ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3]) ++m4trace:configure.ac:1093: -1- AC_SUBST([am__fastdepCXX_TRUE]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([am__fastdepCXX_TRUE]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^am__fastdepCXX_TRUE$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([am__fastdepCXX_FALSE]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([am__fastdepCXX_FALSE]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^am__fastdepCXX_FALSE$]) ++m4trace:configure.ac:1093: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_TRUE]) ++m4trace:configure.ac:1093: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_FALSE]) ++m4trace:configure.ac:1093: -1- AC_SUBST([CXXCPP]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([CXXCPP]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^CXXCPP$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([CPPFLAGS]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([CPPFLAGS]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^CPPFLAGS$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([CXXCPP]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([CXXCPP]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^CXXCPP$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([LD]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([LD]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LD$]) ++m4trace:configure.ac:1093: -1- LT_SUPPORTED_TAG([F77]) ++m4trace:configure.ac:1093: -1- AC_SUBST([F77]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([F77]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^F77$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([FFLAGS]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([FFLAGS]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^FFLAGS$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([LDFLAGS]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([LDFLAGS]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LDFLAGS$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([LIBS]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([LIBS]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LIBS$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([F77]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([F77]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^F77$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([ac_ct_F77]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([ac_ct_F77]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^ac_ct_F77$]) ++m4trace:configure.ac:1093: -1- LT_SUPPORTED_TAG([FC]) ++m4trace:configure.ac:1093: -1- AC_SUBST([FC]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([FC]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^FC$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([FCFLAGS]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([FCFLAGS]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^FCFLAGS$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([LDFLAGS]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([LDFLAGS]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LDFLAGS$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([LIBS]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([LIBS]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^LIBS$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([FC]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([FC]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^FC$]) ++m4trace:configure.ac:1093: -1- AC_SUBST([ac_ct_FC]) ++m4trace:configure.ac:1093: -1- AC_SUBST_TRACE([ac_ct_FC]) ++m4trace:configure.ac:1093: -1- m4_pattern_allow([^ac_ct_FC$]) ++m4trace:configure.ac:1178: -1- AC_SUBST([LTDLINCL]) ++m4trace:configure.ac:1178: -1- AC_SUBST_TRACE([LTDLINCL]) ++m4trace:configure.ac:1178: -1- m4_pattern_allow([^LTDLINCL$]) ++m4trace:configure.ac:1179: -1- AC_SUBST([LIBLTDL]) ++m4trace:configure.ac:1179: -1- AC_SUBST_TRACE([LIBLTDL]) ++m4trace:configure.ac:1179: -1- m4_pattern_allow([^LIBLTDL$]) ++m4trace:configure.ac:1180: -1- AC_SUBST([LIBLTDL_SUBDIR]) ++m4trace:configure.ac:1180: -1- AC_SUBST_TRACE([LIBLTDL_SUBDIR]) ++m4trace:configure.ac:1180: -1- m4_pattern_allow([^LIBLTDL_SUBDIR$]) ++m4trace:configure.ac:1182: -1- AC_DEFINE_TRACE_LITERAL([OMPI_WANT_LIBLTDL]) ++m4trace:configure.ac:1182: -1- m4_pattern_allow([^OMPI_WANT_LIBLTDL$]) ++m4trace:configure.ac:1182: -1- AH_OUTPUT([OMPI_WANT_LIBLTDL], [/* Whether to include support for libltdl or not */ ++#undef OMPI_WANT_LIBLTDL]) ++m4trace:configure.ac:1185: -1- AC_DEFINE_TRACE_LITERAL([OPAL_HAVE_LTDL_ADVISE]) ++m4trace:configure.ac:1185: -1- m4_pattern_allow([^OPAL_HAVE_LTDL_ADVISE$]) ++m4trace:configure.ac:1185: -1- AH_OUTPUT([OPAL_HAVE_LTDL_ADVISE], [/* Whether libltdl appears to have the lt_dladvise interface */ ++#undef OPAL_HAVE_LTDL_ADVISE]) ++m4trace:configure.ac:1237: -1- AC_SUBST([CFLAGS_WITHOUT_OPTFLAGS]) ++m4trace:configure.ac:1237: -1- AC_SUBST_TRACE([CFLAGS_WITHOUT_OPTFLAGS]) ++m4trace:configure.ac:1237: -1- m4_pattern_allow([^CFLAGS_WITHOUT_OPTFLAGS$]) ++m4trace:configure.ac:1238: -1- AC_SUBST([TOTALVIEW_DEBUG_FLAGS]) ++m4trace:configure.ac:1238: -1- AC_SUBST_TRACE([TOTALVIEW_DEBUG_FLAGS]) ++m4trace:configure.ac:1238: -1- m4_pattern_allow([^TOTALVIEW_DEBUG_FLAGS$]) ++m4trace:configure.ac:1246: -1- AC_SUBST([CFLAGS]) ++m4trace:configure.ac:1246: -1- AC_SUBST_TRACE([CFLAGS]) ++m4trace:configure.ac:1246: -1- m4_pattern_allow([^CFLAGS$]) ++m4trace:configure.ac:1247: -1- AC_SUBST([CPPFLAGS]) ++m4trace:configure.ac:1247: -1- AC_SUBST_TRACE([CPPFLAGS]) ++m4trace:configure.ac:1247: -1- m4_pattern_allow([^CPPFLAGS$]) ++m4trace:configure.ac:1248: -1- AC_SUBST([CXXFLAGS]) ++m4trace:configure.ac:1248: -1- AC_SUBST_TRACE([CXXFLAGS]) ++m4trace:configure.ac:1248: -1- m4_pattern_allow([^CXXFLAGS$]) ++m4trace:configure.ac:1249: -1- AC_SUBST([CXXCPPFLAGS]) ++m4trace:configure.ac:1249: -1- AC_SUBST_TRACE([CXXCPPFLAGS]) ++m4trace:configure.ac:1249: -1- m4_pattern_allow([^CXXCPPFLAGS$]) ++m4trace:configure.ac:1250: -1- AC_SUBST([FFLAGS]) ++m4trace:configure.ac:1250: -1- AC_SUBST_TRACE([FFLAGS]) ++m4trace:configure.ac:1250: -1- m4_pattern_allow([^FFLAGS$]) ++m4trace:configure.ac:1251: -1- AC_SUBST([FCFLAGS]) ++m4trace:configure.ac:1251: -1- AC_SUBST_TRACE([FCFLAGS]) ++m4trace:configure.ac:1251: -1- m4_pattern_allow([^FCFLAGS$]) ++m4trace:configure.ac:1253: -1- AC_SUBST([OMPI_LIBMPI_EXTRA_LIBS]) ++m4trace:configure.ac:1253: -1- AC_SUBST_TRACE([OMPI_LIBMPI_EXTRA_LIBS]) ++m4trace:configure.ac:1253: -1- m4_pattern_allow([^OMPI_LIBMPI_EXTRA_LIBS$]) ++m4trace:configure.ac:1254: -1- AC_SUBST([OMPI_LIBMPI_EXTRA_LDFLAGS]) ++m4trace:configure.ac:1254: -1- AC_SUBST_TRACE([OMPI_LIBMPI_EXTRA_LDFLAGS]) ++m4trace:configure.ac:1254: -1- m4_pattern_allow([^OMPI_LIBMPI_EXTRA_LDFLAGS$]) ++m4trace:configure.ac:1259: -1- AC_SUBST([AMCA_PARAM_SETS_DIR], ['$(pkgdatadir)/amca-param-sets']) ++m4trace:configure.ac:1259: -1- AC_SUBST_TRACE([AMCA_PARAM_SETS_DIR]) ++m4trace:configure.ac:1259: -1- m4_pattern_allow([^AMCA_PARAM_SETS_DIR$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([OPAL_WRAPPER_EXTRA_CPPFLAGS]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([OPAL_WRAPPER_EXTRA_CPPFLAGS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OPAL_WRAPPER_EXTRA_CPPFLAGS$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([OPAL_WRAPPER_EXTRA_CFLAGS]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([OPAL_WRAPPER_EXTRA_CFLAGS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OPAL_WRAPPER_EXTRA_CFLAGS$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([OPAL_WRAPPER_EXTRA_CXXFLAGS]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([OPAL_WRAPPER_EXTRA_CXXFLAGS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OPAL_WRAPPER_EXTRA_CXXFLAGS$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([OPAL_WRAPPER_EXTRA_LDFLAGS]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([OPAL_WRAPPER_EXTRA_LDFLAGS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OPAL_WRAPPER_EXTRA_LDFLAGS$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([OPAL_WRAPPER_EXTRA_LIBS]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([OPAL_WRAPPER_EXTRA_LIBS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OPAL_WRAPPER_EXTRA_LIBS$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([OPAL_WRAPPER_EXTRA_INCLUDES]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([OPAL_WRAPPER_EXTRA_INCLUDES]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OPAL_WRAPPER_EXTRA_INCLUDES$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([ORTE_WRAPPER_EXTRA_CPPFLAGS]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([ORTE_WRAPPER_EXTRA_CPPFLAGS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^ORTE_WRAPPER_EXTRA_CPPFLAGS$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([ORTE_WRAPPER_EXTRA_CFLAGS]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([ORTE_WRAPPER_EXTRA_CFLAGS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^ORTE_WRAPPER_EXTRA_CFLAGS$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([ORTE_WRAPPER_EXTRA_CXXFLAGS]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([ORTE_WRAPPER_EXTRA_CXXFLAGS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^ORTE_WRAPPER_EXTRA_CXXFLAGS$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([ORTE_WRAPPER_EXTRA_LDFLAGS]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([ORTE_WRAPPER_EXTRA_LDFLAGS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^ORTE_WRAPPER_EXTRA_LDFLAGS$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([ORTE_WRAPPER_EXTRA_LIBS]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([ORTE_WRAPPER_EXTRA_LIBS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^ORTE_WRAPPER_EXTRA_LIBS$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([ORTE_WRAPPER_EXTRA_INCLUDES]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([ORTE_WRAPPER_EXTRA_INCLUDES]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^ORTE_WRAPPER_EXTRA_INCLUDES$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([OMPI_WRAPPER_EXTRA_CPPFLAGS]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([OMPI_WRAPPER_EXTRA_CPPFLAGS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_EXTRA_CPPFLAGS$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([OMPI_WRAPPER_EXTRA_CFLAGS]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([OMPI_WRAPPER_EXTRA_CFLAGS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_EXTRA_CFLAGS$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([OMPI_WRAPPER_EXTRA_CXXFLAGS]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([OMPI_WRAPPER_EXTRA_CXXFLAGS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_EXTRA_CXXFLAGS$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([OMPI_WRAPPER_EXTRA_FFLAGS]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([OMPI_WRAPPER_EXTRA_FFLAGS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_EXTRA_FFLAGS$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([OMPI_WRAPPER_EXTRA_FCFLAGS]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([OMPI_WRAPPER_EXTRA_FCFLAGS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_EXTRA_FCFLAGS$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([OMPI_WRAPPER_EXTRA_LDFLAGS]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([OMPI_WRAPPER_EXTRA_LDFLAGS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_EXTRA_LDFLAGS$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([OMPI_WRAPPER_EXTRA_LIBS]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([OMPI_WRAPPER_EXTRA_LIBS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_EXTRA_LIBS$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([OMPI_WRAPPER_EXTRA_INCLUDES]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([OMPI_WRAPPER_EXTRA_INCLUDES]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_EXTRA_INCLUDES$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([OMPI_WRAPPER_CXX_LIB]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([OMPI_WRAPPER_CXX_LIB]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_CXX_LIB$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([OMPI_WRAPPER_CXX_REQUIRED_FILE]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([OMPI_WRAPPER_CXX_REQUIRED_FILE]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_CXX_REQUIRED_FILE$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([OMPI_WRAPPER_F77_REQUIRED_FILE]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([OMPI_WRAPPER_F77_REQUIRED_FILE]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_F77_REQUIRED_FILE$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([OMPI_WRAPPER_F90_REQUIRED_FILE]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([OMPI_WRAPPER_F90_REQUIRED_FILE]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_F90_REQUIRED_FILE$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([OMPI_WRAPPER_INCLUDEDIR]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([OMPI_WRAPPER_INCLUDEDIR]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_INCLUDEDIR$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([OMPI_WRAPPER_LIBDIR]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([OMPI_WRAPPER_LIBDIR]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^OMPI_WRAPPER_LIBDIR$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([WRAPPER_EXTRA_CFLAGS]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([WRAPPER_EXTRA_CFLAGS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^WRAPPER_EXTRA_CFLAGS$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([WRAPPER_EXTRA_CXXFLAGS]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([WRAPPER_EXTRA_CXXFLAGS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^WRAPPER_EXTRA_CXXFLAGS$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([WRAPPER_EXTRA_FFLAGS]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([WRAPPER_EXTRA_FFLAGS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^WRAPPER_EXTRA_FFLAGS$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([WRAPPER_EXTRA_FCFLAGS]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([WRAPPER_EXTRA_FCFLAGS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^WRAPPER_EXTRA_FCFLAGS$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([WRAPPER_EXTRA_LDFLAGS]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([WRAPPER_EXTRA_LDFLAGS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^WRAPPER_EXTRA_LDFLAGS$]) ++m4trace:configure.ac:1266: -1- AC_SUBST([WRAPPER_EXTRA_LIBS]) ++m4trace:configure.ac:1266: -1- AC_SUBST_TRACE([WRAPPER_EXTRA_LIBS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^WRAPPER_EXTRA_LIBS$]) ++m4trace:configure.ac:1266: -1- AC_DEFINE_TRACE_LITERAL([WRAPPER_EXTRA_CFLAGS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^WRAPPER_EXTRA_CFLAGS$]) ++m4trace:configure.ac:1266: -1- AH_OUTPUT([WRAPPER_EXTRA_CFLAGS], [/* Additional CFLAGS to pass through the wrapper compilers */ ++#undef WRAPPER_EXTRA_CFLAGS]) ++m4trace:configure.ac:1266: -1- AC_DEFINE_TRACE_LITERAL([WRAPPER_EXTRA_CXXFLAGS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^WRAPPER_EXTRA_CXXFLAGS$]) ++m4trace:configure.ac:1266: -1- AH_OUTPUT([WRAPPER_EXTRA_CXXFLAGS], [/* Additional CXXFLAGS to pass through the wrapper compilers */ ++#undef WRAPPER_EXTRA_CXXFLAGS]) ++m4trace:configure.ac:1266: -1- AC_DEFINE_TRACE_LITERAL([WRAPPER_EXTRA_FFLAGS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^WRAPPER_EXTRA_FFLAGS$]) ++m4trace:configure.ac:1266: -1- AH_OUTPUT([WRAPPER_EXTRA_FFLAGS], [/* Additional FFLAGS to pass through the wrapper compilers */ ++#undef WRAPPER_EXTRA_FFLAGS]) ++m4trace:configure.ac:1266: -1- AC_DEFINE_TRACE_LITERAL([WRAPPER_EXTRA_FCFLAGS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^WRAPPER_EXTRA_FCFLAGS$]) ++m4trace:configure.ac:1266: -1- AH_OUTPUT([WRAPPER_EXTRA_FCFLAGS], [/* Additional FCFLAGS to pass through the wrapper compilers */ ++#undef WRAPPER_EXTRA_FCFLAGS]) ++m4trace:configure.ac:1266: -1- AC_DEFINE_TRACE_LITERAL([WRAPPER_EXTRA_LDFLAGS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^WRAPPER_EXTRA_LDFLAGS$]) ++m4trace:configure.ac:1266: -1- AH_OUTPUT([WRAPPER_EXTRA_LDFLAGS], [/* Additional LDFLAGS to pass through the wrapper compilers */ ++#undef WRAPPER_EXTRA_LDFLAGS]) ++m4trace:configure.ac:1266: -1- AC_DEFINE_TRACE_LITERAL([WRAPPER_EXTRA_LIBS]) ++m4trace:configure.ac:1266: -1- m4_pattern_allow([^WRAPPER_EXTRA_LIBS$]) ++m4trace:configure.ac:1266: -1- AH_OUTPUT([WRAPPER_EXTRA_LIBS], [/* Additional LIBS to pass through the wrapper compilers */ ++#undef WRAPPER_EXTRA_LIBS]) ++m4trace:configure.ac:1273: -1- AC_DEFINE_TRACE_LITERAL([OMPI_STDC_HEADERS]) ++m4trace:configure.ac:1273: -1- m4_pattern_allow([^OMPI_STDC_HEADERS$]) ++m4trace:configure.ac:1273: -1- AH_OUTPUT([OMPI_STDC_HEADERS], [/* Do not use outside of mpi.h. Define to 1 if you have the ANSI C header ++ files. */ ++#undef OMPI_STDC_HEADERS]) ++m4trace:configure.ac:1277: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_SYS_TIME_H]) ++m4trace:configure.ac:1277: -1- m4_pattern_allow([^OMPI_HAVE_SYS_TIME_H$]) ++m4trace:configure.ac:1277: -1- AH_OUTPUT([OMPI_HAVE_SYS_TIME_H], [/* Do not use outside of mpi.h. Define to 1 if you have the ++ header file. */ ++#undef OMPI_HAVE_SYS_TIME_H]) ++m4trace:configure.ac:1281: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_LONG_LONG]) ++m4trace:configure.ac:1281: -1- m4_pattern_allow([^OMPI_HAVE_LONG_LONG$]) ++m4trace:configure.ac:1281: -1- AH_OUTPUT([OMPI_HAVE_LONG_LONG], [/* Do not use outside of mpi.h. Define to 1 if the system has the type `long ++ long\'. */ ++#undef OMPI_HAVE_LONG_LONG]) ++m4trace:configure.ac:1285: -1- AC_DEFINE_TRACE_LITERAL([OMPI_HAVE_SYS_SYNCH_H]) ++m4trace:configure.ac:1285: -1- m4_pattern_allow([^OMPI_HAVE_SYS_SYNCH_H$]) ++m4trace:configure.ac:1285: -1- AH_OUTPUT([OMPI_HAVE_SYS_SYNCH_H], [/* Do not use outside of mpi.h. Define to 1 if you have the ++ header file. */ ++#undef OMPI_HAVE_SYS_SYNCH_H]) ++m4trace:configure.ac:1289: -1- AC_DEFINE_TRACE_LITERAL([OMPI_SIZEOF_BOOL]) ++m4trace:configure.ac:1289: -1- m4_pattern_allow([^OMPI_SIZEOF_BOOL$]) ++m4trace:configure.ac:1289: -1- AH_OUTPUT([OMPI_SIZEOF_BOOL], [/* Do not use outside of mpi.h. The size of a `bool\', as computed by sizeof. ++ */ ++#undef OMPI_SIZEOF_BOOL]) ++m4trace:configure.ac:1291: -1- AC_DEFINE_TRACE_LITERAL([OMPI_SIZEOF_INT]) ++m4trace:configure.ac:1291: -1- m4_pattern_allow([^OMPI_SIZEOF_INT$]) ++m4trace:configure.ac:1291: -1- AH_OUTPUT([OMPI_SIZEOF_INT], [/* Do not use outside of mpi.h. The size of a `int\', as computed by sizeof. */ ++#undef OMPI_SIZEOF_INT]) ++m4trace:configure.ac:1300: -1- AC_CONFIG_FILES([ ++ Makefile ++ ++ config/Makefile ++ ++ contrib/Makefile ++ ++ opal/Makefile ++ opal/etc/Makefile ++ opal/include/Makefile ++ opal/asm/Makefile ++ opal/event/Makefile ++ opal/event/compat/Makefile ++ opal/event/compat/sys/Makefile ++ opal/util/Makefile ++ opal/util/keyval/Makefile ++ opal/mca/base/Makefile ++ opal/tools/wrappers/Makefile ++ opal/tools/wrappers/opalcc-wrapper-data.txt ++ opal/tools/wrappers/opalc++-wrapper-data.txt ++ opal/tools/opal-checkpoint/Makefile ++ opal/tools/opal-restart/Makefile ++ ++ orte/Makefile ++ orte/include/Makefile ++ orte/etc/Makefile ++ ++ orte/tools/orted/Makefile ++ orte/tools/orterun/Makefile ++ orte/tools/wrappers/Makefile ++ orte/tools/wrappers/ortecc-wrapper-data.txt ++ orte/tools/wrappers/ortec++-wrapper-data.txt ++ orte/tools/orte-checkpoint/Makefile ++ orte/tools/orte-iof/Makefile ++ orte/tools/orte-restart/Makefile ++ orte/tools/orte-ps/Makefile ++ orte/tools/orte-clean/Makefile ++ ++ ompi/Makefile ++ ompi/etc/Makefile ++ ompi/include/Makefile ++ ompi/include/mpif.h ++ ompi/include/mpif-config.h ++ ++ ompi/datatype/Makefile ++ ompi/debuggers/Makefile ++ ++ ompi/mpi/c/Makefile ++ ompi/mpi/c/profile/Makefile ++ ompi/mpi/cxx/Makefile ++ ompi/mpi/f77/Makefile ++ ompi/mpi/f77/profile/Makefile ++ ompi/mpi/f90/Makefile ++ ompi/mpi/f90/fortran_kinds.sh ++ ompi/mpi/f90/fortran_sizes.h ++ ompi/mpi/f90/scripts/Makefile ++ ++ ompi/tools/ompi_info/Makefile ++ ompi/tools/wrappers/Makefile ++ ompi/tools/wrappers/mpicc-wrapper-data.txt ++ ompi/tools/wrappers/mpic++-wrapper-data.txt ++ ompi/tools/wrappers/mpif77-wrapper-data.txt ++ ompi/tools/wrappers/mpif90-wrapper-data.txt ++ ompi/tools/ortetools/Makefile ++ ompi/tools/ompi-server/Makefile ++ ++ test/Makefile ++ test/event/Makefile ++ test/asm/Makefile ++ test/class/Makefile ++ test/support/Makefile ++ test/threads/Makefile ++ test/peruse/Makefile ++ test/datatype/Makefile ++]) ++m4trace:configure.ac:1375: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs]) ++m4trace:configure.ac:1375: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) ++m4trace:configure.ac:1375: -1- m4_pattern_allow([^LIB@&t@OBJS$]) ++m4trace:configure.ac:1375: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs]) ++m4trace:configure.ac:1375: -1- AC_SUBST_TRACE([LTLIBOBJS]) ++m4trace:configure.ac:1375: -1- m4_pattern_allow([^LTLIBOBJS$]) ++m4trace:configure.ac:1375: -1- AC_SUBST_TRACE([top_builddir]) ++m4trace:configure.ac:1375: -1- AC_SUBST_TRACE([srcdir]) ++m4trace:configure.ac:1375: -1- AC_SUBST_TRACE([abs_srcdir]) ++m4trace:configure.ac:1375: -1- AC_SUBST_TRACE([top_srcdir]) ++m4trace:configure.ac:1375: -1- AC_SUBST_TRACE([abs_top_srcdir]) ++m4trace:configure.ac:1375: -1- AC_SUBST_TRACE([builddir]) ++m4trace:configure.ac:1375: -1- AC_SUBST_TRACE([abs_builddir]) ++m4trace:configure.ac:1375: -1- AC_SUBST_TRACE([abs_top_builddir]) ++m4trace:configure.ac:1375: -1- AC_SUBST_TRACE([INSTALL]) ++m4trace:configure.ac:1375: -1- AC_SUBST_TRACE([MKDIR_P]) ++m4trace:configure.ac:1375: -1- AC_REQUIRE_AUX_FILE([ltmain.sh]) +--- a/config/Makefile.in ++++ b/config/Makefile.in +@@ -888,7 +888,6 @@ + sysconfdir = @sysconfdir@ + target_alias = @target_alias@ + timer_aix_LIBS = @timer_aix_LIBS@ +-top_build_prefix = @top_build_prefix@ + top_builddir = @top_builddir@ + top_ompi_builddir = @top_ompi_builddir@ + top_ompi_srcdir = @top_ompi_srcdir@ +--- /dev/null ++++ b/config/argz.m4 +@@ -0,0 +1,79 @@ ++# Portability macros for glibc argz. -*- Autoconf -*- ++# ++# Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc. ++# Written by Gary V. Vaughan ++# ++# This file is free software; the Free Software Foundation gives ++# unlimited permission to copy and/or distribute it, with or without ++# modifications, as long as this notice is preserved. ++ ++# serial 5 argz.m4 ++ ++AC_DEFUN([gl_FUNC_ARGZ], ++[gl_PREREQ_ARGZ ++ ++AC_CHECK_HEADERS([argz.h], [], [], [AC_INCLUDES_DEFAULT]) ++ ++AC_CHECK_TYPES([error_t], ++ [], ++ [AC_DEFINE([error_t], [int], ++ [Define to a type to use for `error_t' if it is not otherwise available.]) ++ AC_DEFINE([__error_t_defined], [1], [Define so that glibc/gnulib argp.h ++ does not typedef error_t.])], ++ [#if defined(HAVE_ARGZ_H) ++# include ++#endif]) ++ ++ARGZ_H= ++AC_CHECK_FUNCS([argz_add argz_append argz_count argz_create_sep argz_insert \ ++ argz_next argz_stringify], [], [ARGZ_H=argz.h; AC_LIBOBJ([argz])]) ++ ++dnl if have system argz functions, allow forced use of ++dnl libltdl-supplied implementation (and default to do so ++dnl on "known bad" systems). Could use a runtime check, but ++dnl (a) detecting malloc issues is notoriously unreliable ++dnl (b) only known system that declares argz functions, ++dnl provides them, yet they are broken, is cygwin ++dnl releases prior to 16-Mar-2007 (1.5.24 and earlier) ++dnl So, it's more straightforward simply to special case ++dnl this for known bad systems. ++AS_IF([test -z "$ARGZ_H"], ++ [AC_CACHE_CHECK( ++ [if argz actually works], ++ [lt_cv_sys_argz_works], ++ [[case $host_os in #( ++ *cygwin*) ++ lt_cv_sys_argz_works=no ++ if test "$cross_compiling" != no; then ++ lt_cv_sys_argz_works="guessing no" ++ else ++ lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' ++ save_IFS=$IFS ++ IFS=-. ++ set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` ++ IFS=$save_IFS ++ lt_os_major=${2-0} ++ lt_os_minor=${3-0} ++ lt_os_micro=${4-0} ++ if test "$lt_os_major" -gt 1 \ ++ || { test "$lt_os_major" -eq 1 \ ++ && { test "$lt_os_minor" -gt 5 \ ++ || { test "$lt_os_minor" -eq 5 \ ++ && test "$lt_os_micro" -gt 24; }; }; }; then ++ lt_cv_sys_argz_works=yes ++ fi ++ fi ++ ;; #( ++ *) lt_cv_sys_argz_works=yes ;; ++ esac]]) ++ AS_IF([test $lt_cv_sys_argz_works = yes], ++ [AC_DEFINE([HAVE_WORKING_ARGZ], 1, ++ [This value is set to 1 to indicate that the system argz facility works])], ++ [ARGZ_H=argz.h ++ AC_LIBOBJ([argz])])]) ++ ++AC_SUBST([ARGZ_H]) ++]) ++ ++# Prerequisites of lib/argz.c. ++AC_DEFUN([gl_PREREQ_ARGZ], [:]) +--- a/config/config.guess ++++ b/config/config.guess +@@ -4,7 +4,7 @@ + # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 + # Free Software Foundation, Inc. + +-timestamp='2008-12-19' ++timestamp='2008-01-23' + + # This file is free software; you can redistribute it and/or modify it + # under the terms of the GNU General Public License as published by +@@ -331,20 +331,7 @@ + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) +- eval $set_cc_for_build +- SUN_ARCH="i386" +- # If there is a compiler, see if it is configured for 64-bit objects. +- # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. +- # This test works for both compilers. +- if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then +- if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ +- (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ +- grep IS_64BIT_ARCH >/dev/null +- then +- SUN_ARCH="x86_64" +- fi +- fi +- echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` ++ echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize +@@ -809,7 +796,7 @@ + x86) + echo i586-pc-interix${UNAME_RELEASE} + exit ;; +- EM64T | authenticamd | genuineintel) ++ EM64T | authenticamd) + echo x86_64-unknown-interix${UNAME_RELEASE} + exit ;; + IA64) +@@ -948,9 +935,6 @@ + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} + exit ;; +- padre:Linux:*:*) +- echo sparc-unknown-linux-gnu +- exit ;; + parisc:Linux:*:* | hppa:Linux:*:*) + # Look for CPU level + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in +@@ -1001,6 +985,9 @@ + a.out-i386-linux) + echo "${UNAME_MACHINE}-pc-linux-gnuaout" + exit ;; ++ coff-i386) ++ echo "${UNAME_MACHINE}-pc-linux-gnucoff" ++ exit ;; + "") + # Either a pre-BFD a.out linker (linux-gnuoldld) or + # one that does not give us useful --help. +@@ -1154,16 +1141,6 @@ + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4; exit; } ;; +- NCR*:*:4.2:* | MPRAS*:*:4.2:*) +- OS_REL='.3' +- test -r /etc/.relid \ +- && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` +- /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ +- && { echo i486-ncr-sysv4.3${OS_REL}; exit; } +- /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ +- && { echo i586-ncr-sysv4.3${OS_REL}; exit; } +- /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ +- && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) + echo m68k-unknown-lynxos${UNAME_RELEASE} + exit ;; +@@ -1239,9 +1216,6 @@ + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + echo i586-pc-beos + exit ;; +- BePC:Haiku:*:*) # Haiku running on Intel PC compatible. +- echo i586-pc-haiku +- exit ;; + SX-4:SUPER-UX:*:*) + echo sx4-nec-superux${UNAME_RELEASE} + exit ;; +--- a/config/config.sub ++++ b/config/config.sub +@@ -4,7 +4,7 @@ + # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 + # Free Software Foundation, Inc. + +-timestamp='2009-01-19' ++timestamp='2008-01-16' + + # This file is (in principle) common to ALL GNU software. + # The presence of a machine in this file suggests that SOME GNU software +@@ -122,7 +122,6 @@ + case $maybe_os in + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ +- kopensolaris*-gnu* | \ + storm-chaos* | os2-emx* | rtmk-nova*) + os=-$maybe_os + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` +@@ -250,16 +249,13 @@ + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | i370 | i860 | i960 | ia64 \ + | ip2k | iq2000 \ +- | lm32 \ + | m32c | m32r | m32rle | m68000 | m68k | m88k \ +- | maxq | mb | microblaze | mcore | mep | metag \ ++ | maxq | mb | microblaze | mcore | mep \ + | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips16 \ + | mips64 | mips64el \ +- | mips64octeon | mips64octeonel \ +- | mips64orion | mips64orionel \ +- | mips64r5900 | mips64r5900el \ + | mips64vr | mips64vrel \ ++ | mips64orion | mips64orionel \ + | mips64vr4100 | mips64vr4100el \ + | mips64vr4300 | mips64vr4300el \ + | mips64vr5000 | mips64vr5000el \ +@@ -281,7 +277,7 @@ + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ + | pyramid \ + | score \ +- | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ ++ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ + | sh64 | sh64le \ + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ +@@ -290,7 +286,7 @@ + | v850 | v850e \ + | we32k \ + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ +- | z8k | z80) ++ | z8k) + basic_machine=$basic_machine-unknown + ;; + m6811 | m68hc11 | m6812 | m68hc12) +@@ -333,17 +329,14 @@ + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ + | i*86-* | i860-* | i960-* | ia64-* \ + | ip2k-* | iq2000-* \ +- | lm32-* \ + | m32c-* | m32r-* | m32rle-* \ + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ +- | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ ++ | m88110-* | m88k-* | maxq-* | mcore-* \ + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ + | mips16-* \ + | mips64-* | mips64el-* \ +- | mips64octeon-* | mips64octeonel-* \ +- | mips64orion-* | mips64orionel-* \ +- | mips64r5900-* | mips64r5900el-* \ + | mips64vr-* | mips64vrel-* \ ++ | mips64orion-* | mips64orionel-* \ + | mips64vr4100-* | mips64vr4100el-* \ + | mips64vr4300-* | mips64vr4300el-* \ + | mips64vr5000-* | mips64vr5000el-* \ +@@ -365,20 +358,20 @@ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ + | pyramid-* \ + | romp-* | rs6000-* \ +- | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ ++ | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ + | sparclite-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ + | tahoe-* | thumb-* \ +- | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ ++ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ + | tron-* \ + | v850-* | v850e-* | vax-* \ + | we32k-* \ + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ + | xstormy16-* | xtensa*-* \ + | ymp-* \ +- | z8k-* | z80-*) ++ | z8k-*) + ;; + # Recognize the basic CPU types without company name, with glob match. + xtensa*) +@@ -466,10 +459,6 @@ + basic_machine=c90-cray + os=-unicos + ;; +- cegcc) +- basic_machine=arm-unknown +- os=-cegcc +- ;; + convex-c1) + basic_machine=c1-convex + os=-bsd +@@ -537,10 +526,6 @@ + basic_machine=m88k-motorola + os=-sysv3 + ;; +- dicos) +- basic_machine=i686-pc +- os=-dicos +- ;; + djgpp) + basic_machine=i586-pc + os=-msdosdjgpp +@@ -1143,10 +1128,6 @@ + basic_machine=z8k-unknown + os=-sim + ;; +- z80-*-coff) +- basic_machine=z80-unknown +- os=-sim +- ;; + none) + basic_machine=none-none + os=-none +@@ -1185,7 +1166,7 @@ + we32k) + basic_machine=we32k-att + ;; +- sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) ++ sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) + basic_machine=sh-unknown + ;; + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) +@@ -1257,7 +1238,6 @@ + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ +- | -kopensolaris* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ + | -aos* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ +@@ -1268,7 +1248,7 @@ + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ +- | -chorusos* | -chorusrdb* | -cegcc* \ ++ | -chorusos* | -chorusrdb* \ + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ + | -uxpv* | -beos* | -mpeix* | -udk* \ +@@ -1408,9 +1388,6 @@ + -zvmoe) + os=-zvmoe + ;; +- -dicos*) +- os=-dicos +- ;; + -none) + ;; + *) +--- a/config/ltmain.sh ++++ b/config/ltmain.sh +@@ -65,7 +65,7 @@ + # compiler: $LTCC + # compiler flags: $LTCFLAGS + # linker: $LD (gnu? $with_gnu_ld) +-# $progname: (GNU libtool) 2.2.6 ++# $progname: (GNU libtool) 2.2.6 Debian-2.2.6a-1 + # automake: $automake_version + # autoconf: $autoconf_version + # +@@ -73,7 +73,7 @@ + + PROGRAM=ltmain.sh + PACKAGE=libtool +-VERSION=2.2.6 ++VERSION="2.2.6 Debian-2.2.6a-1" + TIMESTAMP="" + package_revision=1.3012 + +@@ -116,15 +116,15 @@ + + : ${CP="cp -f"} + : ${ECHO="echo"} +-: ${EGREP="/usr/bin/grep -E"} +-: ${FGREP="/usr/bin/grep -F"} +-: ${GREP="/usr/bin/grep"} ++: ${EGREP="/bin/grep -E"} ++: ${FGREP="/bin/grep -F"} ++: ${GREP="/bin/grep"} + : ${LN_S="ln -s"} + : ${MAKE="make"} + : ${MKDIR="mkdir"} + : ${MV="mv -f"} + : ${RM="rm -f"} +-: ${SED="/opt/local/bin/gsed"} ++: ${SED="/bin/sed"} + : ${SHELL="${CONFIG_SHELL-/bin/sh}"} + : ${Xsed="$SED -e 1s/^X//"} + +@@ -5033,7 +5033,10 @@ + case $pass in + dlopen) libs="$dlfiles" ;; + dlpreopen) libs="$dlprefiles" ;; +- link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; ++ link) ++ libs="$deplibs %DEPLIBS%" ++ test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs" ++ ;; + esac + fi + if test "$linkmode,$pass" = "lib,dlpreopen"; then +@@ -6206,6 +6209,9 @@ + revision="$number_minor" + lt_irix_increment=no + ;; ++ *) ++ func_fatal_configuration "$modename: unknown library version type \`$version_type'" ++ ;; + esac + ;; + no) +--- /dev/null ++++ b/config/ompi_get_version.sh +@@ -0,0 +1,168 @@ ++#!/bin/sh ++# ++# ompi_get_version is created from ompi_get_version.m4 and ompi_get_version.m4sh. ++# ++# Copyright (c) 2004-2006 The Trustees of Indiana University and Indiana ++# University Research and Technology ++# Corporation. All rights reserved. ++# Copyright (c) 2004-2005 The University of Tennessee and The University ++# of Tennessee Research Foundation. All rights ++# reserved. ++# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, ++# University of Stuttgart. All rights reserved. ++# Copyright (c) 2004-2005 The Regents of the University of California. ++# All rights reserved. ++# Copyright (c) 2008 Cisco Systems, Inc. All rights reserved. ++# $COPYRIGHT$ ++# ++# Additional copyrights may follow ++# ++# $HEADER$ ++# ++ ++ ++ ++# OMPI_GET_VERSION(version_file, variable_prefix) ++# ----------------------------------------------- ++# parse version_file for version information, setting ++# the following shell variables: ++# ++# prefix_VERSION ++# prefix_BASE_VERSION ++# prefix_MAJOR_VERSION ++# prefix_MINOR_VERSION ++# prefix_RELEASE_VERSION ++# prefix_GREEK_VERSION ++# prefix_WANT_SVN ++# prefix_SVN_R ++# prefix_RELEASE_DATE ++ ++ ++ ++srcfile="$1" ++option="$2" ++ ++case "$option" in ++ # svnversion can take a while to run. If we don't need it, don't run it. ++ --major|--minor|--release|--greek|--base|--help) ++ ompi_ver_need_svn=0 ++ ;; ++ *) ++ ompi_ver_need_svn=1 ++esac ++ ++ ++if test -z "$srcfile"; then ++ option="--help" ++else ++ ++ : ${ompi_ver_need_svn=1} ++ : ${srcdir=.} ++ : ${svnversion_result=-1} ++ ++ if test -f "$srcfile"; then ++ ompi_vers=`sed -n " ++ t clear ++ : clear ++ s/^major/OMPI_MAJOR_VERSION/ ++ s/^minor/OMPI_MINOR_VERSION/ ++ s/^release/OMPI_RELEASE_VERSION/ ++ s/^greek/OMPI_GREEK_VERSION/ ++ s/^want_svn/OMPI_WANT_SVN/ ++ s/^svn_r/OMPI_SVN_R/ ++ s/^date/OMPI_RELEASE_DATE/ ++ t print ++ b ++ : print ++ p" < "$srcfile"` ++ eval "$ompi_vers" ++ ++ # Only print release version if it isn't 0 ++ if test $OMPI_RELEASE_VERSION -ne 0 ; then ++ OMPI_VERSION="$OMPI_MAJOR_VERSION.$OMPI_MINOR_VERSION.$OMPI_RELEASE_VERSION" ++ else ++ OMPI_VERSION="$OMPI_MAJOR_VERSION.$OMPI_MINOR_VERSION" ++ fi ++ OMPI_VERSION="${OMPI_VERSION}${OMPI_GREEK_VERSION}" ++ OMPI_BASE_VERSION=$OMPI_VERSION ++ ++ if test $OMPI_WANT_SVN -eq 1 && test $ompi_ver_need_svn -eq 1 ; then ++ if test "$svnversion_result" != "-1" ; then ++ OMPI_SVN_R=$svnversion_result ++ fi ++ if test "$OMPI_SVN_R" = "-1" ; then ++ ++ if test -d "$srcdir/.svn" ; then ++ OMPI_SVN_R=r`svnversion "$srcdir"` ++ elif test -d "$srcdir/.hg" ; then ++ OMPI_SVN_R=hg`hg -v -R "$srcdir" tip | grep changeset | cut -d: -f3` ++ fi ++ if test "OMPI_SVN_R" = ""; then ++ OMPI_SVN_R=svn`date '+%m%d%Y'` ++ fi ++ ++ fi ++ OMPI_VERSION="${OMPI_VERSION}${OMPI_SVN_R}" ++ fi ++ fi ++ ++ ++ if test "$option" = ""; then ++ option="--full" ++ fi ++fi ++ ++case "$option" in ++ --full|-v|--version) ++ echo $OMPI_VERSION ++ ;; ++ --major) ++ echo $OMPI_MAJOR_VERSION ++ ;; ++ --minor) ++ echo $OMPI_MINOR_VERSION ++ ;; ++ --release) ++ echo $OMPI_RELEASE_VERSION ++ ;; ++ --greek) ++ echo $OMPI_GREEK_VERSION ++ ;; ++ --svn) ++ echo $OMPI_SVN_R ++ ;; ++ --base) ++ echo $OMPI_BASE_VERSION ++ ;; ++ --release-date) ++ echo $OMPI_RELEASE_DATE ++ ;; ++ --all) ++ echo ${OMPI_VERSION} ${OMPI_MAJOR_VERSION} ${OMPI_MINOR_VERSION} ${OMPI_RELEASE_VERSION} ${OMPI_GREEK_VERSION} ${OMPI_SVN_R} ++ ;; ++ -h|--help) ++ cat <